Skip to content

Instantly share code, notes, and snippets.

View mallyvai's full-sized avatar
🐕
Reading this? Tweet me a dog photo

Vaibhav Mallya mallyvai

🐕
Reading this? Tweet me a dog photo
View GitHub Profile
@mallyvai
mallyvai / windows.h__.js
Created November 18, 2012 08:09
windows.h.js INFINITY
var ffi = require('ffi'),
ref = require('ref'),
Struct = require('ref-struct'),
Library = require('./Library'),
Type = ref.Type,
NULL = ref.NULL,
isNull = ref.isNull;
var groups = ['libs', 'types', 'structs', 'callbacks', 'enums'];
@mallyvai
mallyvai / listbm.py
Created November 27, 2010 07:20 — forked from gps/listbm.py
#!/usr/bin/env python
"""
listbm.py
Created by Gopal Sharma on 2010-11-26.
Copyright (c) 2010 Gopal Sharma and Vaibhav Mallya. All rights reserved to this version, and all previous versions, of this file.
"""
import random
import time
function XHConn()
{
var xmlhttp, bComplete = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
if (!xmlhttp) return null;
this.connect = function(sURL, sMethod, sVars, fnDone)
{