-
Simplest intro to git by github and codeschool - Try Git
-
[Intro to github]
{ | |
"private": true, | |
// ... | |
"#dependencies": "dependencies are the one shipped to the client", | |
"dependencies": { | |
"babel-polyfill": "^6.7.4", | |
"react": "^15.0.0", | |
// ... | |
"whatwg-fetch": "^0.11.1" | |
}, |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
// helper to create proper asset paths if an asset host is configured | |
App.assets = { | |
assets : { | |
<% AssetsUtil.images.each do |img| %> | |
"<%= img %>" : "<%= asset_path(img) %>", | |
<% end %> | |
}, | |
(by @andrestaltz)
So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
/* This shows how to use Object.create */ | |
/** BASE MODEL **********************************/ | |
function BaseModel(collection) { | |
this.collection = collection; | |
} | |
BaseModel.prototype.getCollection = function() { | |
return this.collection; |
// Support routines for automatically reporting user timing for common analytics platforms | |
// Currently supports Google Analytics, Boomerang and SOASTA mPulse | |
// In the case of boomerang, you will need to map the event names you want reported | |
// to timer names (for mPulse these need to be custom0, custom1, etc) using a global variable: | |
// rumMapping = {'aft': 'custom0'}; | |
(function() { | |
var wtt = function(n, t, b) { | |
t = Math.round(t); | |
if (t >= 0 && t < 3600000) { | |
// Google Analytics |
{ | |
/*** Globals ***/ | |
// To ignore any custom global variables, enable the `predef` option and list | |
// your variables within it. | |
"predef": [ | |
"window", | |
"document", | |
"jQuery", | |
"Backbone", | |
"Marionette", |