Skip to content

Instantly share code, notes, and snippets.

View nicolaracco's full-sized avatar

Nicola Racco nicolaracco

  • Calco, LC - Italy
View GitHub Profile
#using excel
ExcelFile::Sheet.defile :game_of_thrones_episodes do
#dunno @ the moment
end
ExcelFile::Row.define :episode_row do
attribute :name
attribute :index
attribute :description
@nicolaracco
nicolaracco / refactoring.coffee
Created October 21, 2011 13:27
bindEvents refactoring
Class Product
options: ['size', 'fitting', 'last']
constructor: (@availabilities) ->
@bindEvents()
bindEvents: ->
for option in @options
callback = _(@optionClickHandler).bind @, option
@container(option).find('a').click callback