Skip to content

Instantly share code, notes, and snippets.

@thetallweeks
thetallweeks / 0_reuse_code.js
Created December 31, 2015 19:44
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
// currently
function update(id, deployment, local) {
var deferred = $q.defer(),
d = $q.defer();
if (!local) {
$http.patch('/api/deployments/' + id, deployment).success(function (data) {
if (_.isObject(data)) {
d.resolve(deployment);
} else {