Create your app
create-react-app my-app
cd my-app
Eject it, so that we can modify webpack config
npm run eject
y # when prompted
Create your app
create-react-app my-app
cd my-app
Eject it, so that we can modify webpack config
npm run eject
y # when prompted
/* | |
Usage (I however think that the code is self explanatory) | |
<ReactComment text={` | |
Very long comment with html link | |
<a href="https://gist.github.com/alexeychikk/bfe72a072a9a962f2da900b6151e4aae">Star me :)</a> | |
`} /> | |
*/ | |
import React, {Component, PropTypes} from 'react'; |
const I = x => x | |
const K = x => y => x | |
const A = f => x => f (x) | |
const T = x => f => f (x) | |
const W = f => x => f (x) (x) | |
const C = f => y => x => f (x) (y) | |
const B = f => g => x => f (g (x)) | |
const S = f => g => x => f (x) (g (x)) | |
const S_ = f => g => x => f (g (x)) (x) | |
const S2 = f => g => h => x => f (g (x)) (h (x)) |
import {Component} from 'angular2/core'; | |
import {MutliSelectDropdownComponent, DropdownItem, DropdownSelectionItem} from './multiselect.component'; | |
/* | |
* Example usage of a simple multi select dropdown for angular 2. | |
* See component for more information. | |
*/ | |
@Component({ | |
selector: 'my-app', | |
directives: [MutliSelectDropdownComponent], |
// Linear Congruential Generator | |
// Variant of a Lehman Generator | |
var lcg = (function() { | |
// Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes | |
// m is basically chosen to be large (as it is the max period) | |
// and for its relationships to a and c | |
var m = 4294967296, | |
// a - 1 should be divisible by m's prime factors | |
a = 1664525, | |
// c and m should be co-prime |