Skip to content

Instantly share code, notes, and snippets.

View remogatto's full-sized avatar

Andrea Fazzi remogatto

View GitHub Profile
@remogatto
remogatto / gist:839055
Created February 22, 2011 17:51 — forked from sub/gist:839014
def create
offer = Offer.find(params[:offer_id])
if params[:offer_id]
task = JSON.parse(params[:tasks])
unless task.nil?
# seleziona i parametri rispondenti alla RE active_(.*)
# in questo modo otterrai una lista "elems" di al max 3 elementi del tipo
# elems == ['active_gift', 'active_encoding', ...]
elems.each do |elem|
klass_name = elem.split('_')[1].capitalize
@remogatto
remogatto / .gitignore
Created October 11, 2011 18:47 — forked from rpl/.gitignore
Go Websocket implementation, hybi and Firefox
_obj
*~
bin