Skip to content

Instantly share code, notes, and snippets.

View zeekay's full-sized avatar
💎
👋

z zeekay

💎
👋
View GitHub Profile
servers = (
{
address = "innerirc.net";
chatnet = "innerirc";
port = "6697";
use_ssl = "yes";
ssl_verify = "no";
autoconnect = "no";
},
{
module.exports =
staticPath: './public'
bundles:
'/app.css':
main: './assets/css/app.styl'
'/app.js':
main: './assets/js/app.coffee'
require 'formula'
class TidyHtml5 < Formula
head 'git://github.com/w3c/tidy-html5.git'
homepage 'http://w3c.github.com/tidy-html5/'
def install
system "make",
"-Cbuild/gmake",
"-j1", # make fails with this Makefile when jobs > 1
@zeekay
zeekay / gist:3877034
Created October 12, 2012 02:49
Tastypie helper
from inspect import isclass
from tastypie.resources import ModelResource
from django.conf import settings
from itertools import chain
def generate_urls():
for app in settings.INSTALLED_APPS:
if not app.startswith('django'):
try:
function foo(x) {
return x;
}
function bar() {
return foo.call(this, 42);
}
var calls = [];
var fs = require('fs'),
uglify = require('uglify-js2'),
code = fs.readFileSync('./orig.js', 'utf8');
var ast = uglify.parse(code);
// List all functions
var functions = [];
var walker = new uglify.TreeWalker(function(node){
if (node instanceof uglify.AST_Defun) {
async = require 'async'
async.waterfall [
(cb) ->
cb null, 1
(one, cb) ->
cb null, one, 2
(one, two, cb) ->
zk@qi ~/.vim ‹2d master 5a4a480753›
› cloc .
5927 text files.
5550 unique files.
13970 files ignored.
http://cloc.sourceforge.net v 1.56 T=20.0 s (43.2 files/s, 8243.4 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
require 'formula'
class MacvimCustom < Formula
homepage 'http://code.google.com/p/macvim/'
head 'https://github.com/b4winckler/macvim.git', :branch => 'master'
option "custom-icons", "Try to generate custom document icons"
option "override-system-vim", "Override system vim"
option "with-cscope", "Build with Cscope support"
option "with-lua", "Build with Lua scripting support"
class AsyncBase
constructor: ->
@_queue = []
@_result = null
_add: (fn, args) ->
@_queue.push [fn, args]
end: (callback) ->
result = null