See what the other hackers are working on.
If you like an hack, play with it.
If not, remove it.
_ = require 'underscore' # documentcloud/underscore
I hereby claim:
To claim this, I am signing this object:
~/D/P/0/Present (master) $ carthage update | |
*** Fetching HLSKit | |
*** Fetching PresentAPIClient | |
*** Fetching PresentPrePermissions | |
*** Fetching PPhotoPickerController | |
*** Fetching Swifter | |
*** Fetching HanekeSwift | |
*** Fetching ReactiveCocoa | |
*** Fetching emitter-kit | |
*** Fetching facebook-ios-sdk |
precision mediump float; | |
varying vec2 position; | |
uniform float time; | |
const float waves = 19.; | |
// triangle wave from 0 to 1 | |
float wrap(float n) { | |
return abs(mod(n, 2.)-1.)*-3. + 1.; |
function requestUserOwnsPost(requestUser, post) { | |
return requestUser.id === post.owner; | |
} | |
const db = { | |
postsById: { | |
'2': { | |
id: 2, | |
owner: 1, | |
body: 'hey', |
const db = { | |
usersBySessionToken: { | |
'1': { | |
id: 1, | |
name: 'Dan', | |
}, | |
}, | |
postsById: { | |
'2': { |
(function generateContext() { | |
var _startTime = Date.now(), | |
_timeout = 10000, | |
_timedOut = false, | |
_finish = function(error) { | |
clearTimeout(_timeoutTimeout); | |
_endTime = Date.now(); | |
_totalExecutionTime = _endTime - _startTime; |
A dream-class that handles sequential-request streaming.
// Set deep property | |
function setProperty(p,v){p=p.split('.'),i=0,w=("string"===typeof v?'"'+v+'"':v);while(p[i])eval(p.slice(0,++i).join('.')+'='+(p[i]?"{}":w));return v} | |
// Example | |
setProperty('some.really.deep.property', 'now exists'); // "now exists" | |
// Get deep property | |
function getProperty(p){p=p.split('.'),v=this;while(p[0]&&v){v=v[p.shift()]}return v} | |
// Example | |
getProperty('some.really.deep.property'); // "now exists" |
{ | |
"retainLines": true, | |
"compact": true, | |
"comments": false, | |
"stage": 1, | |
"whitelist": [ | |
"es6.arrowFunctions", | |
"es6.blockScoping", | |
"es6.classes", | |
"es6.destructuring", |