I hereby claim:
- I am antonycourtney on github.
- I am antonycourtney (https://keybase.io/antonycourtney) on keybase.
- I have a public key whose fingerprint is AB91 EB05 4FD6 D49C 7823 CACA F085 C3EC E772 A21D
To claim this, I am signing this object:
-- Apply an affine transform (passed as static arg) | |
-- to any GUI: | |
transformGUI :: Transform -> GUI b c -> GUI b c | |
transformGUI tf g = proc (inp, b) -> | |
(pic, c) <- g -< (inverse tf %$ inp, b) | |
returnA -< (tf %$ pic, c) | |
-- Dynamic version of TransformGUI | |
-- Takes Transform input signal instead of | |
-- static arg: |
import breeze.linalg._ | |
import breeze.math._ | |
import breeze.stats.distributions._ | |
object TimingTest { | |
def timeIt[R](block: => R): R = { | |
val t0 = System.nanoTime() | |
val result = block // call-by-name |
I hereby claim:
To claim this, I am signing this object:
Papers published as part of this conference form part of the scientific record. As such, authors are expected to make all data sets, source code and related artifacts needed to reproduce the published results publicly available.
In rare cases papers may be accepted that do not meet this criteria. These papers must include a standard disclaimer on the title page (given below).
Please select one of the following:
/** | |
* todoItem.js - An individual item in the TODO list as an Immutable record | |
*/ | |
export default class TodoItem extends Immutable.Record({ | |
id: '', | |
complete: false, | |
text: '' | |
}) { | |
constructor(text,complete = false) { | |
super({id: genID(), text, complete}); |
/** | |
* todoAppState.js -- Application State for TodoMVC as | |
* an immutable record | |
*/ | |
export default class TodoAppState extends Immutable.Record({ | |
todoItems: Immutable.Map() // map from id to TodoItem | |
}) { | |
/** | |
* functional item update -- returns a new state with the given item included in the | |
* set of todo items. If there is an existing entry for item.id, the result state |
/** | |
* todoApp.React.js -- top-level React component for TodoMVC | |
*/ | |
export default class TodoApp extends React.Component { | |
render() { | |
const appState = this.props.appState; | |
const allTodos = appState.getAll(); | |
return ( | |
<div> | |
<Header /> |
/** | |
* viewTest.js -- render TodoApp component with static test data | |
*/ | |
const item0 = new TodoItem('This is a test item'); | |
const state0 = new TodoAppState(); | |
const todoAppState = state0.addItem(item0); | |
React.render( | |
<TodoApp appState={todoAppState} />, | |
document.getElementById('todoapp') |
/** | |
* todoApp.React.js -- top-level React component for TodoMVC | |
*/ | |
export default class TodoApp extends React.Component { | |
render() { | |
const appState = this.props.appState; | |
const allTodos = appState.getAll(); | |
return ( | |
<div> | |
<Header stateRefUpdater={this.props.stateRefUpdater} /> |
/** | |
* Header.react.js -- React component for TodoMVC Header UI | |
*/ | |
import React from 'react'; | |
import TodoTextInput from './TodoTextInput.react'; | |
import * as TodoActions from '../todoActions'; | |
export default class Header extends React.Component { | |
render() { | |
return ( |