(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import code; code.interact(local=dict(globals(), **locals())) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
class @Facebook | |
rootElement = null | |
eventsBound = false | |
@load: -> | |
unless $('#fb-root').size() > 0 | |
initialRoot = $('<div>').attr('id', 'fb-root') | |
$('body').prepend initialRoot |
require 'rubygems' | |
require 'mechanize' | |
require 'fastercsv' | |
def get_all_option_values(page, attr_name) | |
page.search("[name=#{attr_name}]").search("option").map do |opt| | |
option_value = opt.attribute("value").value | |
[option_value, opt.text.strip.gsub(/\302\240\302\240/, '')] if option_value && option_value.length > 0 | |
end.compact | |
end |