Skip to content

Instantly share code, notes, and snippets.

View gaybro8777's full-sized avatar
💭
Im not gay. I'm just getting back at my dad for not getting me an xbox

Michael Corrado gaybro8777

💭
Im not gay. I'm just getting back at my dad for not getting me an xbox
View GitHub Profile
@Jxck
Jxck / manifest.json
Created September 29, 2012 03:02
Chrome Socket API Server
{
"manifest_version": 2,
"name": "Chrome Socket API Server",
"description": "listen & accept for socket",
"version": "0.1",
"app": {
"background": {
"scripts": ["server.js"]
}
},
@Jxck
Jxck / index.js
Created August 25, 2012 08:12
implement calculator by js with BNF parser
DEBUG = false;
TEST = true;
noop = function() {};
log = assert = noop;
if (DEBUG) {
log = console.log.bind(console);
}
if (TEST) {
assert = function(a,b,m) { console.assert(a.toString() === b.toString(), m); };
@Jxck
Jxck / fizzbuzz.js
Created May 30, 2012 02:59
tdd sample with fizzbuzz
DEBUG = TEST = false;
function fizzbuzz(n) {
if(n % 15 === 0) return "FizzBuzz";
if(n % 3 === 0) return "Fizz";
if(n % 5 === 0) return "Buzz";
return n;
}
function main() {
@colinmollenhour
colinmollenhour / Data.php
Created May 17, 2012 02:45
Zend_Locale_Data local caching fix.
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd