14 Jul '13, 9pm

I've just found about the ceil method in #sass. It rounds a number up to the nearest whole number: I feel happy!

# File '/var/www/sass-pages/.sass/lib/sass/script/functions.rb', line 975 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

#Guessing : Number 16 on iTunes! #singapore #gu...

twitter.com 13 Jul '13, 9pm

When you tweet with a location, Twitter stores that location. You can switch location on/off before each Tweet and always ...

good

cato-unbound.org 12 Jul '13, 2pm

Bitcoin is certainly money, but it is not just money. And that’s what’s so exciting about it. In his lead essay , Jim Harp...

Actor Cory Monteith, who played Finn Hudson in the TV show Glee, found dead in Vancouver hotel room

Actor Cory Monteith, who played Finn Hudson in ...

todayonline.com 14 Jul '13, 5am

VANCOUVER — Cory Monteith, the handsome young actor who shot to fame in the hit TV series Glee but was beset by addiction ...

Glee star Corey Monteith, 31, found dead in Van...

sg.news.yahoo.com 14 Jul '13, 6am

(Reuters) - Canadian actor Cory Monteith, 31-year-old heart throb of Fox's musical-comedy television series "Glee", was fo...