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
declare function Record(): any | |
const RecordInstance = Record({ | |
}) | |
class _Foo extends RecordInstance {} | |
exports.Foo = _Foo |
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
class Gradient2D{ | |
PImage source; | |
Gradient2D(String src){ | |
source = loadImage(src); | |
} | |
color get(float g1, float g2){ | |
int x = constrain( floor( g1*source.width ), 0, source.width-1); |
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
const Observable = require("zen-observable"); | |
let sink; | |
const list = []; | |
const error = new Error(); | |
new Observable(_sink => { | |
sink = _sink; | |
return () => list.push('cleanup'); | |
}).subscribe({ |
I hereby claim:
- I am leebyron on github.
- I am leeb (https://keybase.io/leeb) on keybase.
- I have a public key ASBnVuESLbEjmR4Ac79vgbgOLVoPtA6GAZSV-MxsHpJ1_Ao
To claim this, I am signing this object:
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
<svg version="1.1" width="184px" height="166px" viewBox="0 0 184 166"> | |
<g transform="translate(92 83)"> | |
<circle fill="#fff" r="16" /> | |
<g fill="none" stroke="#fff" stroke-width="8"> | |
<ellipse rx="84" ry="32" /> | |
<ellipse rx="84" ry="32" transform="rotate(120)" /> | |
<ellipse rx="84" ry="32" transform="rotate(60)" /> | |
</g> | |
</g> | |
</svg> |
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
function maybeFilter(array, predicate) { | |
var newArray; | |
array.forEach((item, i) => { | |
if (predicate(item)) { | |
if (newArray) { | |
newArray.push(item) | |
} | |
} else if (!newArray) { | |
newArray = array.slice(0, i) | |
} |
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
diff --git a/html/js/javelin/core/Event.js b/html/js/javelin/core/Event.js | |
index 94df448..0848521 100644 | |
--- a/html/js/javelin/core/Event.js | |
+++ b/html/js/javelin/core/Event.js | |
@@ -267,7 +267,12 @@ JX.install('Event', { | |
/** | |
* @task info | |
*/ | |
- nodes : {} | |
+ nodes : {}, |
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
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification | |
{ | |
// check for future network connectivity changes | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(updateNetStatus:) | |
name:kNetConnectionChangeNotification | |
object:[NetConnection netConnection]]; | |
} | |
- (void)updateNetStatus:(NSNotification *)notif |
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
String make = columns[0]; | |
int id = int(columns[4]); | |
String model = columns[1]; | |
int year = int(columns[2]); | |
String trim = columns[5]; | |
int trade_in_value_excellent = 0; | |
int trade_in_value_good = 0; | |
int trade_in_value_fair = 0; | |
int private_party_value_excellent = 0; |