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
# Robins hack to maybe try do the 10 seconds required to tick? | |
Egg Timer* | |
Stopped* | |
wind forward -> Done? | |
Ticking | |
wind forward -> Running Done? | |
wind backward -> Done? | |
tick -> Running Done? |
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
# Robins changes to Traffic Light UI example for | |
Search Bar Hacked* | |
Inactive* | |
focused -> Active | |
submitted -> Empty Search | |
Active | |
canceled -> Inactive | |
typed -> Text Entry |
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
// prettier-ignore | |
// Compare types for equivalence | |
// Reference: https://github.com/Microsoft/TypeScript/issues/27024 | |
// | |
// Better fix coming in Typescript 4 ? my read isn't clear on this | |
// Reference: https://github.com/microsoft/TypeScript/issues/37314#issuecomment-598459316 | |
export type EqualTypes<X extends unknown, Y extends unknown> = | |
(<T>() => T extends X ? 1 : 2) extends | |
(<T>() => T extends Y ? 1 : 2) ? true : false; |
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
// This is a typescript version of react-formed. | |
// Reference: https://github.com/davezuko/react-reformed | |
// | |
// Good reference on creating high order components in Typescript. | |
// Reference: https://dev.to/danhomola/react-higher-order-components-in-typescript-made-simple | |
import * as React from 'react'; | |
import * as assign from 'object-assign'; | |
// State of the HOC you need to compute the InjectedProps | |
interface State<TModel> { |
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
/** | |
* Type definitions for Redux-form v6. | |
* Updated for 6.0.0-rc.3 including splitting of Field properties to 'input'. | |
*/ | |
import {Component, ComponentClass, StatelessComponent, ReactElement, ReactEventHandler, SyntheticEvent} from 'react'; | |
import {Dispatch, Reducer, Action} from 'redux'; | |
declare namespace ReduxForm { | |
export type FieldValue = any; |
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
<!DOCTYPE HTML> | |
<html><head><meta charset="UTF-8"><title>Main</title><style>html, head, body { padding:0; margin:0; } | |
body { font-family: calibri, helvetica, arial, sans-serif; } | |
a:link { text-decoration: none; color: rgb(15,102,230); } | |
a:visited { text-decoration: none; } | |
a:active { text-decoration: none; } | |
a:hover { text-decoration: underline; color: rgb(234,21,122); } | |
html,body { height: 100%; margin: 0px; } | |
</style></head><body><script>var Elm = Elm || { Native: {} }; | |
Elm.Native.Basics = {}; |