Skip to content

Instantly share code, notes, and snippets.


Cyrille Bogaert hugeen

View GitHub Profile
hugeen / gist:4662065
Created Jan 29, 2013
Convert XML to JSON with JavaScript
View gist:4662065
// Source From
// Changes XML to JSON
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) { // element
// do attributes
hugeen / CGLM.example.js
Created Sep 1, 2011 — forked from kirbysayshi/CGLM.example.js
My attempt at two methods of a constant game-loop in JavaScript
View CGLM.example.js
// Example CGLM usage:
function priorityOne(dt, stats){