Skip to content

Instantly share code, notes, and snippets.

View ghempton's full-sized avatar

Gordon L. Hempton ghempton

View GitHub Profile
@ghempton
ghempton / gist:11389065
Created April 29, 2014 02:00
Transactional Route
`import Route from 'outreach/core/route'`
# Route which manages a transaction on it's content.
# E.g. when the route is exited, the transaction will
# be rolled back
class TransactionalRoute extends Route
resolveSession: (parentSession) ->
@session = parentSession.newSession()
/**
Attempting to create a subclass of `Model` that supports
CP's and Ember.Observable.
*/
function EmberModel() {
Model.apply(this, arguments);
return CoreObject.apply(this);
}
var PrototypeMixin = Model.prototype;
@ghempton
ghempton / react-link.js
Created November 26, 2014 17:54
React Link Helper
### Keybase proof
I hereby claim:
* I am ghempton on github.
* I am gordon (https://keybase.io/gordon) on keybase.
* I have a public key whose fingerprint is D4FB AED6 9E30 D434 AC3D 17E3 E406 8EA9 1729 1FD0
To claim this, I am signing this object: