Skip to content

Instantly share code, notes, and snippets.

@biglovisa
Last active December 1, 2015 19:00
Show Gist options
  • Save biglovisa/e3d08e39049ee368f87a to your computer and use it in GitHub Desktop.
Save biglovisa/e3d08e39049ee368f87a to your computer and use it in GitHub Desktop.
December 1

Tuesday December 1 1507

IdeaBox PSA

  • http://jsbin.com/nuhuyurami/4/edit?js,output
  • underscore.js #template)[http://underscorejs.org/#template
  • in application.js, with the asset pipeline, it will first require jQuery and then tree .
    • This means that the Rails asset pipeline will take all your JavaScript and jam it all together into one massive file
    • The compiled file is required in app/views/layouts/application.html.erb and therefore available to you anywhere (whether you like it or not) in your application

Array prototype methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment