Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created March 5, 2010 20:22
Show Gist options
  • Select an option

  • Save tim-smart/323099 to your computer and use it in GitHub Desktop.

Select an option

Save tim-smart/323099 to your computer and use it in GitHub Desktop.
db.get('stuff', gotThatStuff);
function gotThatStuff (value) {
db.store('stuff', 1 + value, storedThatStuff);
};
function storedThatStuff() {
puts('Great success!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment