Skip to content

Instantly share code, notes, and snippets.

View davewasmer's full-sized avatar

Dave Wasmer davewasmer

View GitHub Profile
@davewasmer
davewasmer / hack.sh
Created April 2, 2012 20:45 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@davewasmer
davewasmer / KinveyCollection.js
Created March 12, 2012 22:49 — forked from bhang/KinveyCollection.js
KinveyCollection
// User submission model
var UserSubmissionModel = Backbone.Model.extend({
// Backbone looks for 'id' by default
// However, MongoDB uses '_id' so we need to override it
idAttribute: '_id',
// Add a Basic Auth header to authenticate with Kinvey
sync: function(method, model, options) {
var self = this;
options.beforeSend = function(jqXHR) {