Skip to content

Instantly share code, notes, and snippets.

View kevinpeno's full-sized avatar
🏠
Working from home

Kevin Peno kevinpeno

🏠
Working from home
View GitHub Profile
/**
* Hack to allow jQuery to work within XHTML documents that define an xmlns
*/
/**
* Use the given object to override the given methods in its prototype
* with namespace-aware equivalents
*/
function addNS(obj, methods) {
var proto = obj.constructor.prototype;
@kevinpeno
kevinpeno / Schema.sql
Created August 6, 2011 04:39 — forked from SnugglePilot/gist:1128882
Sample Data for SQL Ingredient Selection
-- ----------------------------
-- Table structures
-- If using MySQL, update each table definition to use INNODB or foreign keys will be pointless
-- Example:
-- CREATE TABLE "Ingredient" (
-- "name" TEXT NOT NULL,
-- PRIMARY KEY ("name" ASC)
-- ) type INNODB;
-- ----------------------------
CREATE TABLE "Ingredient" (