Skip to content

Instantly share code, notes, and snippets.

@media (min-width: 30em) {
.row {
width: 100%;
display: table;
table-layout: fixed;
}
.row-loose {
table-layout: auto;
}
NPM_BIN = $$(npm bin)
BABEL = $(NPM_BIN)/babel
SASS = $(NPM_BIN)/node-sass
DIST = dist
.PHONY: build javascript sass
build: javascript sass
$(DIST):
let Home = React.createClass({
statics: {
fetch(app) {
return new Promise(function(resolve, reject) {
setTimeout(resolve, 1000)
})
}
},
render() {
letter frequency
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
G .02015
H .06094
I .06966
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))
@nhunzaker
nhunzaker / SassMeister-input.scss
Last active August 29, 2015 14:14
Generated by SassMeister.com.
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
@mixin atomic-css ($name) {
@mixin $name {
@content
}
@nhunzaker
nhunzaker / SassMeister-input.scss
Created January 15, 2015 21:13
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$color: blue;
$color: red !default;
body {
color: $color;
var states = {
'account': {
component: AccountFields,
next: 'survey'
},
'survey': {
component: SurveyFields
next: 'confirmation'
}
//..
@nhunzaker
nhunzaker / SassMeister-input.scss
Created January 8, 2015 22:11
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$colors: ( crimson: "#f00" );
$fancy: ( $colors: "oh so fancy" );
body {
color: map-get($fancy, $colors);