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
//http://www.webpackbin.com/4kRwlEo1Z | |
import Motorcycle from '@motorcycle/core' | |
import {div, label, input, hr, h1, makeDOMDriver} from '@motorcycle/dom'; | |
import most from 'most' | |
function main(sources) { | |
const input$ = sources.DOM.select('.field').events('input') | |
const click$ = sources.DOM.select('.btn').events('click') | |
const sinks = { |
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
//http://www.webpackbin.com/VkPA2Qj1Z | |
import Motorcycle from '@motorcycle/core'; | |
import {div, label, input, hr, h1, makeDOMDriver} from '@motorcycle/dom'; | |
function main(sources) { | |
const sinks = { | |
DOM: sources.DOM.select('.field').events('input') | |
.map(ev => ev.target.value) | |
.startWith('') | |
.map(name => |
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
//http://www.webpackbin.com/N1KplM91b | |
import Motorcycle from '@motorcycle/core' | |
import {div, label, input, hr, h1, makeDOMDriver} from '@motorcycle/dom'; | |
import most from 'most' | |
function main(sources) { | |
const input$ = sources.DOM.select('.field').events('input') | |
const nameChange$ = input$ |
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 ug() { | |
~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/MacOS/GoogleSoftwareUpdateAgent -runMode oneshot -userInitiated YES | |
} |
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
//Run it here: http://www.webpackbin.com/VJBxSuP1W | |
import Motorcycle from '@motorcycle/core' | |
import {div, label, input, hr, h1, makeDOMDriver} from '@motorcycle/dom'; | |
import most from 'most' | |
function main(sources) { | |
const input$ = sources.DOM.select('.field').events('input') | |
const click$ = sources.DOM.select('.btn').events('click') | |
const sinks = { |
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
// Run it here: http://www.webpackbin.com/Nk5AREvJb | |
import Motorcycle from '@motorcycle/core' | |
import {div, label, input, hr, h1, makeDOMDriver} from '@motorcycle/dom'; | |
import most from 'most' | |
function main(sources) { | |
const input$ = sources.DOM.select('.field').events('input') | |
const click$ = sources.DOM.select('.btn').events('click') | |
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
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jasmine/2.4.1/jasmine.min.css"> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jasmine/2.4.1/jasmine.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jasmine/2.4.1/jasmine-html.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jasmine/2.4.1/boot.min.js"></script> |
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
git_next() { | |
BRANCH=$1 | |
git checkout `git log --reverse --ancestry-path HEAD..${BRANCH:="master"} | head -n 1 | cut -d \ -f 2` | |
} | |
git_prev(){ | |
git checkout HEAD^ | |
} |
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 i -S autoprefixer-core babel babel-loader css-loader json-loader postcss-loader react react-hot-loader style-loader stylus-loader url-loader webpack-dev-server yeticss |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |