Skip to content

Instantly share code, notes, and snippets.

View joshthecoder's full-sized avatar

Joshua Roesslein joshthecoder

View GitHub Profile
static Persistent<Function> isNaN;
bool V8Util::isValueNaN(Handle<Value> value)
{
HandleScope scope;
if (isNaN.isEmpty()) {
Local<Object> global = Context::GetCurrent()->Global();
Local<Value> isNaNValue = global->Get(String::NewSymbol("isNaN"));
isNaN = Persistent<Function>::New(isNaNValue.As<Function>());
@joshthecoder
joshthecoder / gist:1167392
Created August 24, 2011 05:54 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: programmer for Appcelerator, Inc.
Favorite Python project: pypy
Favorite Conference: CodeConf!
Python Experience Level: Experienced
@joshthecoder
joshthecoder / Questions
Created June 20, 2011 23:41
Kiwi Pycon Give-away
GitHub username: joshthecoder
Day job: Software developer for Appcelerator working on Titanium Desktop.
Favorite open source project: Titanium
Open Source contributions (if any): Can't remember how many, but I do spend in my spare time sending patches to many projects.
Stranded on an island, what 3 items do you take: knife, tent, a good book
Tie-breaker, pick a number between 1 and 20,000: 19,999
Colors: enum { red, blue, green }
Animals: enum {
monkey
bird
cow
dog
}