Skip to content

Instantly share code, notes, and snippets.

View dac09's full-sized avatar

Daniel Choudhury dac09

View GitHub Profile
@dac09
dac09 / 0_reuse_code.js
Created March 29, 2016 23:17
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
@dac09
dac09 / injecting $http in the console
Last active August 29, 2015 14:16 — forked from chrishokamp/injecting $http in the console
injecting $http in the console Angular JS
var angularAppName = 'angularStore'; //replace this with your app name
var $inj = angular.injector([angularAppName]);
var serv = $inj.get('$http');
var x = serv({method: 'POST', url: 'http://127.0.0.1:5000'}).success(function(data){console.log(data)}).error(function(data, status, header){ console.log(data); console.log(status); console.log(header);});
console.log(x);