I hereby claim:
- I am staltz on github.
- I am andrestaltz (https://keybase.io/andrestaltz) on keybase.
- I have a public key whose fingerprint is C83A 1721 7B3E 3DE2 23F2 F4C6 A1F0 0911 A32F D4DD
To claim this, I am signing this object:
let Rx = require(`rx`) | |
function makeRequestProxies(drivers) { | |
let requestProxies = {} | |
for (let name in drivers) { | |
if (drivers.hasOwnProperty(name)) { | |
requestProxies[name] = new Rx.ReplaySubject(1) | |
} | |
} | |
return requestProxies |
function *main() { | |
const confirmRequest = { | |
type: 'confirm', | |
value: 'Are you sure?', | |
}; | |
const confirmResponse = yield confirmRequest; | |
if (confirmResponse === true) { | |
const consoleRequest = { | |
type: 'console', |
# Name it whatever you want. I like `y` because in my keyboard layout it's close to `;` | |
function y() { | |
previous=$? | |
if [ $previous -eq 0 ]; then | |
osascript -e "display notification \"Done\" with title \"Terminal Task\"" && say "it is done"; | |
else | |
osascript -e "display notification \"Failed\" with title \"Terminal Task\"" && say "it went to the trees"; | |
fi | |
} |
var operators = [ | |
'\\.case', | |
'\\.create', | |
'\\.defer', | |
'\\.empty', | |
'\\.forkJoin', | |
'\\.from', | |
'\\.fromCallback', | |
'\\.fromEvent', | |
'\\.fromEventPattern', |
'use strict'; | |
var React = require('react-native'); | |
var Cycle = require('cyclejs'); | |
var {Rx, h} = Cycle; | |
var createExperimentalIOSRenderer = require('./src/ios-renderer.ios.js'); | |
var {StyleSheet, Text, TextInput, View} = React; | |
var styles = StyleSheet.create({ | |
container: { |
I hereby claim:
To claim this, I am signing this object:
[alias] | |
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative | |
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit | |
lg = !"git lg1" |
// Generic helper function that takes a main() (the top-level component) | |
// and wraps it with Stanga logic | |
function wrapWithStanga(main, initialState) { | |
return function (sources) { | |
const modProxy$ = new Subject(); | |
const modelSource = Model(initialState)(modProxy$); | |
sources.model = modelSource; | |
const sinks = main(sources); | |
sinks.model.subscribe(modProxy$); |
{run} = require '@cycle/core' | |
{Observable} = require 'rx' | |
{div, input, h2, makeDOMDriver} = require '@cycle/dom' | |
intent = (domSource) => | |
changeWeight$ = domSource | |
.select('#weight').events('input') | |
.map((ev) => ev.target.value) | |
changeHeight$ = domSource | |
.select('#height').events('input') |
function main() { | |
return { | |
DOM: Rx.Observable.timer(0, 1000) | |
.map(i => { | |
return { | |
tagName: 'h1', | |
children: [`Seconds elapsed ${i}`] | |
} | |
}) | |
} |