http://fredkschott.com/post/2014/03/understanding-error-first-callbacks-in-node-js/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @media (min-width: 30em) { | |
| .row { | |
| width: 100%; | |
| display: table; | |
| table-layout: fixed; | |
| } | |
| .row-loose { | |
| table-layout: auto; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NPM_BIN = $$(npm bin) | |
| BABEL = $(NPM_BIN)/babel | |
| SASS = $(NPM_BIN)/node-sass | |
| DIST = dist | |
| .PHONY: build javascript sass | |
| build: javascript sass | |
| $(DIST): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let Home = React.createClass({ | |
| statics: { | |
| fetch(app) { | |
| return new Promise(function(resolve, reject) { | |
| setTimeout(resolve, 1000) | |
| }) | |
| } | |
| }, | |
| render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| letter | frequency | |
|---|---|---|
| A | .08167 | |
| B | .01492 | |
| C | .02782 | |
| D | .04253 | |
| E | .12702 | |
| F | .02288 | |
| G | .02015 | |
| H | .06094 | |
| I | .06966 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function* range (start, end) { | |
| while (start < end) yield start++ | |
| } | |
| let [ a, b, c, d, e, f, g] = range(0, 10) | |
| console.log(a, b, c, d, e, f, g) | |
| console.log(...range(0, 10)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.4.11) | |
| // Compass (v1.0.3) | |
| // ---- | |
| @mixin atomic-css ($name) { | |
| @mixin $name { | |
| @content | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.4.9) | |
| // Compass (v1.0.1) | |
| // ---- | |
| $color: blue; | |
| $color: red !default; | |
| body { | |
| color: $color; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var states = { | |
| 'account': { | |
| component: AccountFields, | |
| next: 'survey' | |
| }, | |
| 'survey': { | |
| component: SurveyFields | |
| next: 'confirmation' | |
| } | |
| //.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.4.9) | |
| // Compass (v1.0.1) | |
| // ---- | |
| $colors: ( crimson: "#f00" ); | |
| $fancy: ( $colors: "oh so fancy" ); | |
| body { | |
| color: map-get($fancy, $colors); |