Skip to content

Instantly share code, notes, and snippets.

View yanatan16's full-sized avatar

Jon Eisen yanatan16

View GitHub Profile
@yanatan16
yanatan16 / Makefile.golang
Created June 18, 2012 22:26
Makefile for Golang projects
# Makefile for a go project
#
# Author: Jon Eisen
# site: joneisen.me
#
# Targets:
# all: Builds the code
# build: Builds the code
# fmt: Formats the source files
# clean: cleans the code
@possan
possan / microAjax.js
Created April 19, 2012 11:21
microAjax fix
function microAjax(url, callbackFunction) {
var o = {};
o.bindFunction = function (caller, object) {
return function () {
return caller.apply(object, [object]);
};
};
o.stateChange = function (object) {
if (o.request.readyState == 4)
o.callbackFunction(o.request.responseText);