Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am clangley on github.
  • I am chrislangley (https://keybase.io/chrislangley) on keybase.
  • I have a public key whose fingerprint is 795D 898D 4FBB 8146 B8AB 50F6 0144 5E60 5A13 A649

To claim this, I am signing this object:

@clangley
clangley / main.js
Created May 16, 2012 16:09
Create a simple todo js with agilityjs and firebase
//Enter firebase URL
var firebaseUrl = "";
var dataref = new Firebase(firebaseUrl);
var item = $$({}, '<li><span data-bind="content"/> <button>x</button></li>', '& span { cursor:pointer; }', {
'change':function(){
dataref.push({content:this.model.get('content'), index:this.model.get('index')});
},