Skip to content

Instantly share code, notes, and snippets.

function myPromise() {
function success1() {
}
function error1() {
console.log("yeah that work")
}
return $http.get().then(success1, error1)
}
@yagoferrer
yagoferrer / 0_reuse_code.js
Created February 27, 2014 17:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console