Skip to content

Instantly share code, notes, and snippets.

@f3r
f3r / places_show.js.coffee
Last active August 29, 2015 14:08
Best practices on how to organize your coffeescript files in rails
# .../app/assets/javascripts/places_show.js.coffee
PlaceShow =
initialize: (opts) ->
#*******************************************************************************************
# INITIALIZERS
#*******************************************************************************************
isCalendarOpen = false
@.initializePanoramas()
@.initializeSlider()
@.initializeSharePlace(opts.share_title, opts.share_url, opts.share_id)
@f3r
f3r / gemfile.rb
Last active August 29, 2015 14:07
Sample WDI Development Gemfile
group :development do
# Spring speeds up development by keeping your application running in the background.
#> https://github.com/rails/spring
gem 'spring'
# Better Errors replaces the standard Rails error page with a much better and more useful error page.
#> https://github.com/charliesome/better_errors
gem 'better_errors'
gem 'binding_of_caller' # adding REPL