Skip to content

Instantly share code, notes, and snippets.

View sanderpick's full-sized avatar
🎟️
Got me a ticket to ride

Sander Pick sanderpick

🎟️
Got me a ticket to ride
View GitHub Profile
@sanderpick
sanderpick / gist:1249306
Created September 28, 2011 21:27
main.js
window._ = require('underscore');
window.Step = require('step');
window.DNode = require('dnode');
requirejs(['libs/json2',
'libs/modernizr-1.7.min',
'libs/backbone-min',
'libs/store.min'],
function () {
window.App = {
@sanderpick
sanderpick / gist:4073812
Created November 14, 2012 18:21
mol row result view
/*
* Search Result view
*/
define([
// dependencies
'jQuery',
'Underscore',
'views/boiler',
'text!/templates/rows/result.html',
@sanderpick
sanderpick / gist:4077373
Created November 15, 2012 08:24
Vimeo Player API wrapper
/*
* Vimeo Player API wrapper
*/
define(['Underscore'], function (_) {
// create a new wrapper
var Player = function(iframe, options) {
this.options = options || {};
this.iframe = iframe.get(0);
Credit(status=u'failed', account=Account(holds_uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg/holds', name=u'Sander Pick', roles=[u'merchant', u'buyer'], created_at=datetime.datetime(2013, 1, 23, 2, 25, 47, 420721, tzinfo=<iso8601.iso8601.Utc object at 0x10e3696d0>), uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg', bank_accounts_uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg/bank_accounts', refunds_uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg/refunds', meta={}, debits_uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg/debits', transactions_uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg/transactions', email_address=u'sanderpick@gmail.com', id=u'AC1x4WUWLDstw17737PnXUwg', credits_uri=u'/v1/marketplaces/TEST-MP3pC20sLzdm4MNIebqlJYLw/accounts/AC1x4WUWLDstw17737PnXUwg/credits', ca
info: Creating snapshot 0.1.0-9
info Uploading: [=============================] 100%
info: Updating app island-mail-notifier
info: Activating snapshot 0.1.0-9 for island-mail-notifier
info: Starting app island-mail-notifier
error: Error running command deploy
error: socket hang up
info:
info: jitsu's client request timed out before the server could respond
help: This error may be due to network connection problems
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: Rackspace Error (404): Item not found
error: Error output from Haibu:
error:
error: Error: Rackspace Error (404): Item not found
error: at Request._callback (/root/haibu-orchestra/node_modules/haibu/node_modules/cloudfiles/lib/cloudfiles/common.js:184:18)
error: at Request.init.self.callback (/root/haibu-orchestra/node_modules/haibu/node_modules/request/main.js:119:22)
error: There was an error while attempting to start the app
error: Error spawning drone
error: Script took too long to listen on a socket
error: This type of error is usually a user error.
@sanderpick
sanderpick / gist:5470651
Created April 26, 2013 21:43
Start mongod on port 27017 (default), pointing to /data/db (default)
sudo touch /var/log/mongod.log
sudo mkdir -p /data/db
sudo mongod --fork --logpath /var/log/mongod.log
this.occSearchView = new OccSearchView({parentView: this, listEl: 'table#mytable'}).render();
if (this.parentView.options.listEl)
this.$el.appendTo(this.parentView.$(listEl));
else
this.$el.appendTo(this.parentView.$el);
@sanderpick
sanderpick / gist:6041721
Created July 19, 2013 19:23
can i haz font names?
for(NSString* family in [UIFont familyNames]) {
NSLog(@"%@", family);
for(NSString* name in [UIFont fontNamesForFamilyName: family]) {
NSLog(@" %@", name);
}
}