I hereby claim:
- I am kevinresol on github.
- I am kevinresol (https://keybase.io/kevinresol) on keybase.
- I have a public key whose fingerprint is 0411 D430 43CF E70E A1EB A7E1 43D5 3282 049D FB30
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 |
| package util; | |
| /** | |
| * ... | |
| * @author Kevin | |
| */ | |
| @:build(util.AssetPathsMacro.build()) | |
| class AssetPaths | |
| { |
| Convert js-style callback to Future, with macro |
| Copy expressions with Haxe macro |
| class Pool<T> { | |
| var pool:Array<T>; | |
| var factory:Void->T; | |
| public function new(factory) { | |
| this.factory = factory; | |
| pool = []; | |
| } | |
| public function get() { | |
| if(pool.length == 0) return factory(); | |
| return pool.pop(); |
| lix install haxelib:travix | |
| lix install haxelib:hxnodejs | |
| lix install gh:haxetink/tink_chunk | |
| lix install gh:haxetink/tink_streams#pure | |
| lix install gh:haxetink/tink_io#pure | |
| lix install gh:haxetink/tink_http#pure | |
| lix install gh:haxetink/tink_web#pure | |
| class Map extends View<{workers:WorkersData}> { | |
| var map:GoogleMap; | |
| var markers:Array<GoogleMapMarker> = []; | |
| var locations:List<Location>; | |
| function render() { | |
| // "extract" the location and store in class variable | |
| // this also cause render() to run again when the `locations` are updated | |
| this.locations = workers.locations; |
| # Posts | |
| ## Categories | |
| | Name | Slug | | |
| | -- | -- | | |
| | Contact | contact | | |
| | Home Banner | home-banner | | |
| | Home Masthead | home-masthead | | |
| | Work | work | |
I hereby claim:
To claim this, I am signing this object:
| package api; | |
| // to use: add `implements api.Wiper` to your API class | |
| // but it doesn't handle imports, either you use wildcard (import api.*) or guard them with `#if` | |
| #if macro | |
| import haxe.macro.Context; | |
| using tink.MacroApi; | |
| #end |