Skip to content

Instantly share code, notes, and snippets.

@ToJans
ToJans / 99bottles.js
Last active August 29, 2015 14:14
99 bottles of beer as short as possible in ECMAScript 6 - currently 142 characters
x=""
b=r=>`${c||"No more"} bottle${c-1?"s":""} of beer${r&&c--||" on the wall"}
`
for(c=99;c;)x+=b()+b(1)+`Take one down, pass it around
`+b()
// jshint node:true, latedef:nofunc
'use strict';
var flo = require('fb-flo'),
gulp = require('gulp'),
path = require('path'),
map = require('map-stream'),
minimatch = require('minimatch'),
lazypipe = require('lazypipe'),
rimraf = require('rimraf'),
@spoike
spoike / reactjs_componentapi_cheatsheet.md
Created May 13, 2014 07:51
React JS Cheatsheets for Component API, Specifications and Lifecycle

ReactJS Component Cheatsheet

To create a ReactComponent:

ReactComponent React.createClass(object proto)

Basic JSX example:

var TitleComponent = React.createClass({

// REQUIRED