This file contains 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
import React from "react" | |
import {render} from "react-dom" | |
import Bacon from "baconjs" | |
import {sum} from "lodash" | |
import {atom} from "megablob" | |
import {Combinator} from "megablob/react" | |
function init() { |
This file contains 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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right |
This file contains 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
// bundlen entry point | |
const he = require("he") | |
const initial = JSON.parse(he.unescape(document.getElementById("state").innerHTML)) | |
console.log(initial) | |
This file contains 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
const he = require("he") | |
const initial = JSON.parse(he.unescape(window.INITIAL_STATE)) | |
console.log(initial) | |
This file contains 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
const initial = JSON.parse(app.getAttribute('data-state')) | |
console.log(initial) |
This file contains 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
/* | |
* <ClientOnly> | |
* <MyStuff /> | |
* </ClientOnly> | |
*/ | |
export default React.createClass({ | |
getInitialState() { | |
return { allowRender: false } | |
}, | |
componentDidMount() { |
This file contains 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
import React from "react" | |
import {findDOMNode} from "react-dom" | |
export default React.createClass({ | |
componentWillMount() { | |
if (process.browser) { | |
this.setState({html: findDOMNode(this).innerHTML}) | |
} | |
}, | |
render() { |
This file contains 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
let i = 0 | |
let main = () => document.querySelector("#app").innerHTML = `Seconds elapsed ${i++}` | |
main() && setInterval(main, 1000) |
This file contains 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
import React from "react" | |
import {Subject, Observable} from "rx" | |
import {render} from "react-dom" | |
import {Combinator} from "react-combinators/rx" | |
import {createDispatcher} from "fluorine-lib" | |
const initialBMI = {weight: 80, height: 180} | |
function BMI(state, action) { |
This file contains 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
Using Theano backend. | |
Load data | |
> dataset = ../datasets/sample_xs_2.txt | |
> words | |
- total = 3500 | |
- distinct = 7 | |
> chars = 14 | |
> metadata saved to "./output/meta.json" | |
Generate matrices | |
> dim(X) = (128, 5, 8, 14) |