I hereby claim:
- I am avh4 on github.
- I am avh4 (https://keybase.io/avh4) on keybase.
- I have a public key whose fingerprint is 77C4 B904 349C F1E5 5BBD 8FE4 79AC 6B2F 3F6C CA93
To claim this, I am signing this object:
package net.avh4.test.otto; | |
import com.squareup.otto.ThreadEnforcer; | |
import java.util.ArrayList; | |
import static org.hamcrest.Matchers.hasItem; | |
import static org.junit.Assert.assertThat; | |
public class TestBus extends com.squareup.otto.Bus { |
public class IntegrationTestBase extends FluentTest { | |
private static final String ngAppElement = "html"; | |
private static final String markerClass = "angularReady"; | |
public void waitForAngular() { | |
executeScript( | |
"angular.element(document.querySelector('body')).removeClass('" + markerClass + "');" + | |
"angular.element(document.querySelector('" + ngAppElement + "'))" + | |
" .injector().get('$browser').notifyWhenNoOutstandingRequests("+ | |
" function() {" + |
var playerData = { | |
"U123": { name: "RockMAN", score: 150, wins: 1, losses: 200, currentGame: false, position: {} }, | |
"U888": { name: "Jenny", score: 2, wins: 1, losses: 0, currentGame: "G1", position: {} }, | |
"U007": { name: "Johnny", score: 0, wins: 0, losses: 0, currentGame: "G2", position: {} } | |
}; | |
var activeGames = { | |
"G1": { players: ["U555", "U888"], found: true, results: {"U555": "U555", "U888": "U555"} }, | |
"G2": { players: ["U123", "U007"], found: false, results: {} } |
// You shouldn't normally want these, but if you are debugging or working on dark magic, | |
// here is how you can call retain/release/retainCount in ARC | |
// From http://stackoverflow.com/a/15707096 | |
#define ARCRetain(...) { void *retainedThing = (__bridge_retained void *)__VA_ARGS__; retainedThing = retainedThing; } | |
#define ARCRelease(...) { void *retainedThing = (__bridge void *) __VA_ARGS__; id unretainedThing = (__bridge_transfer id)retainedThing; unretainedThing = nil; } | |
// From http://stackoverflow.com/a/8963645 | |
#define ARCRetainCount(obj) CFGetRetainCount((__bridge CFTypeRef)NSApp) |
I hereby claim:
To claim this, I am signing this object:
import Color | |
import Mouse | |
e (col,text) = plainText text |> color col |> width 400 | |
type Model = [(Color, String)] | |
model : Model | |
model = | |
[ (Color.red, "short") |
-- -- -- type definitions | |
type Outline = Outline | |
{ title : String | |
, description: String | |
, inbox : List Outline | |
, children : List Outline | |
} | |
type OutlineCrumb |
-- Only works with Elm 0.15 | |
import Html | |
import Task | |
import Port | |
import Debug | |
import Dict | |
import Time | |
-- MODEL |
import Json.Decode as Decode | |
decodeClickLocation : Decode.Decoder (Int,Int) | |
decodeClickLocation = | |
Decode.object2 (,) | |
(Decode.object2 (-) | |
(Decode.at ["pageX"] Decode.int) | |
(Decode.at ["target", "offsetLeft"] Decode.int) | |
) | |
(Decode.object2 (-) |
class Game { | |
int ballX = 0; | |
int ballY = 0; | |
public void update() { | |
ballX = ballX + 5; | |
ballY = ballY + 5; | |
} | |
} |