21 Oct '12, 5am

#frontrend_ca function拡張するならこのあたり? Module: Sass::Script::Functions

# File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 969 def mix(color1, color2, weight = Number.new(50)) assert_type color1, :Color assert_type color2, :Color assert_type weight, :Number Sass::Util.check_range("Weight", 0..100, weight, '%') # This algorithm factors in both the user-provided weight (w) and the # difference between the alpha values of the two colors (a) to decide how # to perform the weighted average of the two RGB values. # # It works by first normalizing both parameters to be within [-1, 1], # where 1 indicates "only use color1", -1 indicates "only use color2", and # all values in between indicated a proportionately weighted average. # # Once we have the normalized variables w and a, we apply the formula # (w + a)/(1 + w*a) to get the combined weight (in [-1, 1]) of color1. # This formula has two especially nice properties: # # * When eit...

Full article: http://sass-lang.com/docs/yardoc/Sass/Script/Functions.ht...

Tweets

#Wireless Module Family joins Avnet #Embedded p...

epn-online.com 20 Oct '12, 7pm

Avnet Embedded has added Panasonic wireless modules to its European linecard. The extended deal brings devices for tight i...

MediaTek takes 10% stake in SiP module maker Ac...

digitimes.com 16 Oct '12, 9am

MediaTek takes 10% stake in SiP module maker AcSiP, says paper EDN, October 16; Steve Shen, DIGITIMES [Tuesday 16 October ...

The Solar Industry’s Living Dead: 180 Module Manufacturers to Succumb to Consolidation by 2015: With GTM Resea...

The Solar Industry’s Living Dead: 180 Module Ma...

greentechmedia.com 16 Oct '12, 4am

The Solar Industry’s Living Dead: 180 Module Manufacturers to Succumb to Consolidation by 2015 What does the future hold f...

Emic 2 Text-to-Speech Module is a voice synthes...

parallax.com 13 Oct '12, 11pm

Give your project a voice! Designed in conjunction with Grand Idea Studio , the Emic 2 Text-to-Speech Module is a multi-la...

Google’s Page Speed Server Module Now Out Of Be...

searchengineland.com 10 Oct '12, 8pm

Google announced the Apache HTTP server module they released to help webmasters speed up their sites about two years ago i...

SunPower Reducing Workforce in an Effort To Str...

renewableenergyworld.com 17 Oct '12, 1pm

"Industry conditions continue to be challenging and while it is never an easy decision to reduce positions, we must make p...

A ruby script to convert images to pure CSS

codepen.io 21 Oct '12, 2pm

A ruby script to convert images to pure CSS download ♦ upvote on hn ♦ see the code