This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Storage = (function() { | |
var uniqueId = 0; | |
function Storage() {} | |
Storage.prototype.add = function(item) { | |
var id = this.generateId() | |
, data = this._toJSON(item); | |
localStorage[id] = data; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mustachio extends Backbone.View | |
render: (template_id, context) -> | |
@templates[template_id].call @, context | |
@prepare = -> | |
templates = {} | |
raw_templates = $('script[type="text/x-handlebars-template"]') | |
raw_templates.each (i, template) -> | |
$template = $(template) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"imagemagick": {"ghostscript": true}, | |
"redis": {"launchd": true}, | |
"rbenv": {"versions": ["1.9.3-p194"]}, | |
"basic_brew": {"formulae": [ | |
"bash-completion", | |
"wget", | |
"android-sdk" | |
]}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"imagemagick": {"ghostscript": true}, | |
"redis": {"launchd": true}, | |
"rbenv": {"versions": ["1.9.3-p194"]}, | |
"basic_brew": {"formulae": [ | |
"bash-completion", | |
"wget", | |
"android-sdk" | |
]}, |