Skip to content

Instantly share code, notes, and snippets.

Chris Raynor drtriumph

Block or report user

Report or block drtriumph

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gcloud-error-repro.js
var gcloud = require('gcloud');
var nock = require('nock');
var KEY_FILENAME = '/path/to/key/filename';
var PROJECT_ID = 'project-id';
var storage = gcloud.storage({
keyFilename: KEY_FILENAME,
projectId: PROJECT_ID
});
@drtriumph
drtriumph / package.json
Last active Aug 30, 2017
Firebase Queue Example
View package.json
{
"name": "my-queue",
"version": "1.0.0",
"description": "My Queue",
"main": "queue_worker.js",
"dependencies": {
"firebase": "2.x",
"firebase-queue": "^1.0.0"
}
}
@drtriumph
drtriumph / README.md
Last active Aug 29, 2015
Side-by-side Comparison of knox vs gcloud-node
View README.md

Side-by-side Comparison of knox vs gcloud-node

Running the comparison

To run the comparison once cloned:

  • install the dependencies by running npm install
  • enter GCS and S3 bucket details at the top of index.js
  • run node index.js using node 0.10.

The comparison will create a random folder on both services, into which it will attempt to upload a large number (750) of relatively small (50kb) files containing random text.

View keybase.md

Keybase proof

I hereby claim:

  • I am drtriumph on github.
  • I am drtriumph (https://keybase.io/drtriumph) on keybase.
  • I have a public key whose fingerprint is 61D0 0145 5DC9 D8B8 4A19 60A6 3FE4 3C3C BDE3 558D

To claim this, I am signing this object:

@drtriumph
drtriumph / tokenize_example.pig
Created Aug 6, 2012
Simple TOKENIZE example
View tokenize_example.pig
rows = LOAD 'cassandra://Keyspace/OverlapIndex' USING CassandraStorage();
cols = FOREACH rows GENERATE FLATTEN(columns.value) AS (photos:chararray);
photos = FOREACH cols {
GENERATE TOKENIZE(cols.photos, '^');
}
DUMP photos;
You can’t perform that action at this time.