I hereby claim:
- I am jdoig on github.
- I am jamesdoig (https://keybase.io/jamesdoig) on keybase.
- I have a public key whose fingerprint is 3969 9C8A C169 BB2D 80C1 C892 4DEB 3CFD B920 BBE0
To claim this, I am signing this object:
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
| import sys | |
| import time | |
| from datetime import datetime, timedelta | |
| from random import randint | |
| STATES = { | |
| 'happy': lambda a: ('happy','prrrr') if not a else ( | |
| 'sad', 'pffft'), | |
| 'hungry': lambda a: ('happy', 'nom') if a == 'feed' else ( | |
| 'sad', "no I'm hungry!"), |
| ig.module | |
| 'game.entities.Player' | |
| .requires | |
| 'impact.entity' | |
| .defines => | |
| class @.EntityPlayer extends ig.Entity | |
| animSheet: new ig.AnimationSheet 'media/player.png', 16, 16 | |
| size: |
| `import ui.SpriteView as SpriteView;` | |
| class Mario extends GC.Application | |
| initUI: -> | |
| sprite = new SpriteView({ | |
| superview: @.view | |
| x: 100 | |
| y: 100 | |
| width: 23 | |
| height: 29 |
| `import ui.View as View` | |
| `import animate` | |
| toColor = (x) -> (x % 255).toString(16) | |
| class Trail extends GC.Application | |
| createTrail: (pt) -> | |
| opts = merge(pt, {superview: GC.app.view}) | |
| new TrailBox(pt, opts) |
| `import ui.TextView as TextView` | |
| class helloWorld extends GC.Application | |
| initUI:-> | |
| textView = new TextView({ | |
| superview: @view | |
| layout: "box" | |
| text: "Hello, Coffee!" | |
| color: "white"}) |
| (ns github-java-import-demo.core | |
| (:import (ie.ucd.murmur MurmurHash)) | |
| (:gen-class)) | |
| (defn -main | |
| "I don't do a whole lot." | |
| [& args] | |
| (println (str "Hello " (MurmurHash/hash32 "World")))) |
| :git-dependencies [["git://github.com/tnm/murmurhash-java.git"]] | |
| :java-source-paths [".lein-git-deps/murmurhash-java/src/main/java/ie/ucd/murmur/"] |
| {:user {:plugins [[lein-difftest "1.3.7"] | |
| [lein-marginalia "0.7.1"] | |
| [lein-pprint "1.1.1"] | |
| [lein-swank "1.4.3"] | |
| [lein-git-deps "0.0.1-SNAPSHOT"]]}} |