Skip to content

Instantly share code, notes, and snippets.

@justinbmeyer
justinbmeyer / handlebars.md
Created June 14, 2012 06:35
Why do you like Handlebars (and concerns about live-binding)

I'm considering adding an alternative to CanJS's EJS live-binding system. I really like EJS, it's extremely powerful, but ugly to look at. So, I'm trying to create a better mouse-trap.

Currently, the most popular mouse-trap seems to be Handlebars. What do you like about it?

  • Syntax, or
  • Prepared data

Syntax

Handlebars uses {{}} for insertion and {{#}} and {{/}} for widgets and control structures.

@toffebjorkskog
toffebjorkskog / search-mdn-bookmarklet.js
Created December 11, 2011 12:25
Search MDN bookmarklet
javascript:(function (q){
window.location = "http://google.com/?q=" + q + "#q=" + q;
}(prompt("Search MDN") + " site:http://developer.mozilla.org"));
@creaktive
creaktive / cpux86.js
Created May 18, 2011 13:07
Javascript PC Emulator by Fabrice Bellard
/*
PC Emulator
Copyright (c) 2011 Fabrice Bellard
Redistribution or commercial use is prohibited without the author's
permission.
*/
"use strict";
var aa;