I hereby claim:
- I am philcockfield on github.
- I am philcockfield (https://keybase.io/philcockfield) on keybase.
- I have a public key whose fingerprint is D0A6 38BE 4BF8 B07A 718C F0F5 2F49 29FA 6FB3 BABE
To claim this, I am signing this object:
import { Subject } from 'rxjs'; | |
/** | |
* Event declarations. | |
*/ | |
export type ThingEvent = ThingEventFoo | ThingEventBar; // Type merging. | |
export type ThingEventFoo = { | |
type: 'FOO'; | |
payload: { |
0x46Bfc199C8E96EA6B0F50cCF62FaBdB2772b9FCe |
git clone https://github.com/philcockfield/ui-harness-sample.git && cd ui-harness-sample && npm install |
I hereby claim:
To claim this, I am signing this object:
# base path, that will be used to resolve files and exclude | |
basePath = '..' | |
# list of files / patterns to load in the browser | |
# chai is from https://github.com/chaijs/chai - the main chai.js file in the root | |
files = [ | |
MOCHA | |
MOCHA_ADAPTER | |
# stubs come first so they can be available when all the units need them |
do -> | |
core = APP.ns 'core' | |
Model = core.Model | |
singletonManagers = {} | |
### | |
Base class for models that represent Mongo documents. |
do -> | |
# See: http://developers.facebook.com/docs/reference/javascript/ | |
ns = APP.ns 'core.facebook' | |
# ---------------------- Methods ---------------------- | |
ns.login = (callback) -> FB.login -> callback?() | |
ns.logout = (callback) -> FB.logout -> callback?() | |
ns.signedIn = -> authStatus() is 'signed-in' |
{ #each _songs } | |
<li> | |
<input type="text" value="{.name}"/> | |
{#if _canAdmin} | |
<button class="btn btn-mini" x-bind="click:deleteSong">Delete</button> | |
{/} | |
</li> | |
{/} | |
asArray = (options) -> | |
_.chain(options).where(checked:true).map((option) -> option.key).value() | |
module.exports = | |
### | |
Sets up the x-bind callback handlers. | |
Example binding in template: | |
<input type="checkbox" x-bind="click:checkbox" checked="{.checked}"> |
using System; | |
using MonoTouch.Dialog; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
using TheraPlay.Data; | |
namespace Namespace | |
{ | |
public class MyElement : Element | |
{ |