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 main({DOM}) { | |
| const h = CycleDOM.h; | |
| return { | |
| DOM: | |
| // click, click, click -> [2.. 4.. 4..] | |
| DOM.select('button').events('click'). | |
| map(evt => parseInt(evt.target.innerText)). | |
| filter(val => val % 2 === 0). | |
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
| <!doctype html> | |
| <!-- https://medium.com/@fkrautwald/we-are-not-writing-much-code-5404fb7d39e --> | |
| <div id="app"></div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.all.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-core/6.0.0/cycle.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-dom/9.0.2/cycle-dom.min.js"></script> | |
| <script src="https://rawgit.com/rofrol/c11c3926742b0ce65b87/raw/app.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
| <!doctype html> | |
| <!-- https://medium.com/@fkrautwald/we-are-not-writing-much-code-5404fb7d39e --> | |
| <div id="app"></div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.all.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-core/6.0.0/cycle.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-dom/9.0.2/cycle-dom.min.js"></script> | |
| <script src="https://rawgit.com/rofrol/c11c3926742b0ce65b87/raw/app.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
| <!doctype html> | |
| <!-- https://medium.com/@fkrautwald/we-are-not-writing-much-code-5404fb7d39e --> | |
| <div id="app"></div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.7/rx.all.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-core/6.0.0/cycle.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/cyclejs-dom/9.0.2/cycle-dom.min.js"></script> | |
| <script> | |
| Cycle.run((sources) => ({DOM: Rx.Observable.timer(0, 1000).map(i => CycleDOM.h(`div`, `Seconds elapsed: ${i}`))}),{DOM: CycleDOM.makeDOMDriver(`#app`)}) | |
| </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
| function main({DOM}) { | |
| const h = CycleDOM.h; | |
| return { | |
| DOM: | |
| // click, click, click -> [2.. 4.. 4..] | |
| DOM.select('button').events('click'). | |
| map(evt => parseInt(evt.target.innerText)). | |
| filter(val => val % 2 === 0). | |
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
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
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
| <a class="jsbin-embed" href="http://jsbin.com/somari/embed?js,output">JS Bin on jsbin.com</a><script src="http://static.jsbin.com/js/embed.min.js?3.35.9"></script> | |
| <div class="slide"> | |
| <section class="hbox" data-markdown> | |
| ## Who Am I? | |
| * Lead developer of [Modernizr](//modernizr.com) | |
| * Project lead of [HTML5 Boilerplate](//h5bp.com) | |
| * I curate that [page of polyfills](//bit.ly/polyfills) | |
| * Member of jQuery Team |
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 rebase -Xours material/master | |
| First, rewinding head to replay your work on top of it... | |
| fatal: Could not parse object '851623fbbbf97add64a11c1aba692f5803f06723^' | |
| Unknown exit code (128) from command: git-merge-recursive 851623fbbbf97add64a11c1aba692f5803f06723^ -- HEAD 851623fbbbf97add64a11c1aba692f5803f06723 |