Skip to content

Instantly share code, notes, and snippets.

View mockee's full-sized avatar

Yan Shi mockee

View GitHub Profile
@mockee
mockee / 0_reuse_code.js
Last active September 8, 2015 08:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mockee
mockee / define.js
Created September 11, 2012 16:46 — forked from dexteryy/define_adapter.js
AMD -> module pattern
(function(win) {
var each = function(obj, iterator, context) {
if (!obj) { return; }
if (Array.prototype.forEach && obj.forEach) {
obj.forEach(iterator, context);
} else {
for (var i = 0, l = obj.length; i < l; i++) {
if (i in obj) {
iterator.call(context, obj[i], i, obj);
require 'formula'
class Mysql51 < Formula
homepage 'http://dev.mysql.com/doc/refman/5.1/en/'
url 'http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.63.tar.gz'
md5 'ae5aef506088e521e4b1cc4f668e96d2'
depends_on 'readline'
def options
@mockee
mockee / mobile-meta-links.html
Created May 6, 2012 02:49
iOS Web App Configuration