24 Mar '12, 6am

Currently coding our 50th NationBuilder custom theme. We're making better use of Sass functions:

# File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 942 def mix(color1, color2, weight = Number.new(50)) assert_type color1, :Color assert_type color2, :Color assert_type weight, :Number unless (0..100).include?(weight.value) raise ArgumentError.new("Weight #{weight} must be between 0% and 100%") end # This algorithm factors in both the user-provided weight # and the difference between the alpha values of the two colors # 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 color 0", # 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 fo...

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

Tweets

Rohm to Roll Out 'Full-SiC' Power Module: Rohm ...

techon.nikkeibp.co.jp 24 Mar '12, 12am

Rohm to Roll Out 'Full-SiC' Power Module Mar 24, 2012 08:51 Tadashi Nezu, Nikkei Electronics Rohm Co Ltd will start volume...

@nickcooley @meyerweb It is:

sass-lang.com 28 Mar '12, 7pm

# File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 942 def mix(color1, color2, weight = Number.new(50))...

China solar wafer price drops due to low solar module quotes: The price of solar modules in both Europe and Chin...

China solar wafer price drops due to low solar ...

digitimes.com 19 Mar '12, 6am

China solar wafer price drops due to low solar module quotes Nuying Huang, Taipei; Jackie Chang, DIGITIMES [Monday 19 Marc...

Another innovation from Microchip around its MIPS-Based PIC32 microcontrollers

Another innovation from Microchip around its MI...

eetimes.com 22 Mar '12, 8pm

The Wi-Fi Comm Demo Board from Microchip Technology Inc. combines Microchip’s 32-bit PIC32 microcontroller family with its...

Asia Continues to Dominate Solar Module Output

renewableenergyworld.com 14 Mar '12, 6pm

The six biggest suppliers — thin-film leader First Solar, China's Suntech-Yingli-Trina solar triumvirate, Canadian Solar, ...

Asia Continues to Dominate Solar Module Output

renewableenergyworld.com 14 Mar '12, 5pm

The six biggest suppliers — thin-film leader First Solar, China's Suntech-Yingli-Trina solar triumvirate, Canadian Solar, ...

Module: ActionView::Helpers::FormTagHelper:

api.rubyonrails.org 05 Apr '12, 11pm

Starts a form tag that points the action to an url configured with url_for_options just like ActionController::Base#url_fo...

Super happy that the GPS module for my clock pr...

sparkfun.com 25 Mar '12, 1am

The Fastrax UP501 receiver with embedded antenna is ideally suited for navigation systems, asset tracking devices and batt...