I hereby claim:
- I am secretfader on github.
- I am secretfader (https://keybase.io/secretfader) on keybase.
- I have a public key ASAXYRdegSysfkENZLYjO3C5Z9-preG46I4av2__bcJa-Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FROM alpine:3.4 | |
MAINTAINER Nicholas Young <[email protected]> | |
# Set environment variables | |
ENV HOME /root | |
ENV GOPATH /go | |
ENV PATH ${PATH}:${GOPATH}/bin | |
# Add development essentials and create required path | |
RUN sed -i -e 's/v3\.4/edge/g' /etc/apk/repositories && \ |
/** | |
* Dependencies | |
*/ | |
var MongooseError = require('mongoose/lib/error') | |
, Promise = require('bluebird'); | |
/** | |
* Module body / Expose | |
*/ | |
var parseError = function (err, options) { |
/** | |
* Shim | |
*/ | |
var Promise = require('bluebird'); | |
/** | |
* Dependencies | |
*/ | |
var mongo = require('mongodb') | |
, router = require('koa-router')() |
router.post('/', multipart, function *() { | |
if (this.state.files && this.state.files.media) { | |
this.state.files.media.pipe(fs.createWriteStream(/* output */)); | |
// stream error handling omitted | |
} | |
}); |
var util = require('util') | |
, path = require('path') | |
, Busboy = require('busboy') | |
, Emitter = require('events').EventEmitter | |
, Uploader; | |
Uploader = function () { | |
Emitter.call(this); | |
}; |
var EventEmitter = require("events").EventEmitter, | |
redis = require("redis"), | |
dateformat = require("dateformat"); | |
function population32(x) | |
{ | |
x -= ((x >> 1) & 0x55555555); | |
x = (((x >> 2) & 0x33333333) + (x & 0x33333333)); | |
x = (((x >> 4) + x) & 0x0f0f0f0f); | |
x += (x >> 8); |
replace
var manta = require('manta');
with
var manta = require('./mock-manta');
var distill = require('distill'); | |
var data = { | |
id: 1, | |
title: 'Hello, World', | |
dirty_field: 'This field should not be exposed.', | |
authors: { | |
id: 2, | |
name: 'Joshua', | |
email: '[email protected]' | |
} |
elements = [["accesses.2013.12", "17"], ["accesses.2013.12", "18"], ["accesses.2013.12", "19"], ["accesses.2013.12", "20"], ["accesses.2013.12", "21"], ["accesses.2013.12", "22"], ["accesses.2013.12", "23"], ["accesses.2013.12", "24"], ["accesses.2013.12", "25"], ["accesses.2013.12", "26"], ["accesses.2013.12", "27"], ["accesses.2013.12", "28"], ["accesses.2013.12", "29"], ["accesses.2013.12", "30"], ["accesses.2013.12", "31"], ["accesses.2014.1", "01"]] | |
# | |
# I need to pair down this array into something usable, like: | |
# | |
elements = [ | |
{ | |
key: 'accesses.2013.12', | |
days: [ 17, 18, 19 ] | |
}, |