I hereby claim:
- I am kevinwestern on github.
- I am kestern (https://keybase.io/kestern) on keybase.
- I have a public key ASCQ2RlgTDWHMFGSnMoOQdYSOCwJtWzcc_3SqHoWfrEhDgo
To claim this, I am signing this object:
window.getCSRF = () => document.cookie.split('; ').find(s => s.indexOf('csrf_token') === 0).substring('csrf_token='.length) | |
function deleteComment(id) { | |
fetch("https://www.reddit.com/svc/shreddit/graphql", { | |
"method": "POST", | |
"headers": { | |
"accept": "application/json", | |
"content-type": "application/json", | |
}, | |
"body": JSON.stringify({ |
I hereby claim:
To claim this, I am signing this object:
// Calculator.java | |
public class Calculator { | |
public Calculator() { | |
} | |
public int add(int num1, int num2) { | |
return num1 + num2; | |
} | |
} |
// Code goes here | |
var myApp = angular.module('myApp', ['ngResource']); | |
myApp.factory('indexedDB', ['$window', '$q', function($window, $q) { | |
var version = 2; | |
var indexedDB = $window.indexedDB; | |
var request = indexedDB.open('myapp', version); | |
var db = null; | |
var defer = $q.defer(); |
function thisIsOk() { | |
var name = getName(); | |
var age = getAge(); | |
if (age < 21) { | |
console.log("You're too young!"); | |
} else { | |
console.log("Come on in!"); | |
} | |
} |
[ Launch: Tributary inlet ] 7251821 by kevinwestern
[ Launch: schanges ] 7223700 by kevinwestern
var app = angular.module('apm', ['apm.controller']); | |
app.config(['$routeProvider', function($routeProvider) { | |
alert('test'); | |
$routeProvider.when('/', { | |
controller: 'HomeCtrl', | |
template: '/static/templates/home.ng' | |
}).otherwise({redirectTo: '/'}); | |
}]); |
$scope.playTrack = function(track) { | |
SC.oEmbed(track.permalink_url, { auto_play: true }, function(oEmbed) { | |
$scope.$apply(function() { | |
$scope.embeded = oEmbed; | |
}); | |
}); | |
}; | |
$scope.$watch($scope.embeded, function(){ console.log('omg'); }); |