This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
" pathogen setup | |
execute pathogen#infect() | |
" generic setup | |
syntax on | |
filetype plugin indent on | |
" setting spaces | |
set expandtab | |
set shiftwidth=2 |
function acktung() { | |
ack --ignore-dir={.bundle,log,dev,lib,vendor} $1 . | |
} | |
function ackount() { | |
ack -hc --ignore-dir={.bundle,log,dev,lib,vendor} $1 . | |
} | |
function ackls { |
defmodule CriticalResource do | |
def start() do | |
spawn(fn -> loop("initialize") end) | |
end | |
def loop(data) do | |
MyLogger.log(:resource, "data", "", data) | |
receive do | |
{:read, pid, name} -> |
defmodule Htest do | |
def equals(message, expect, value) do | |
IO.puts "#{message}: #{expect == value} " | |
end | |
end | |
defmodule Qsort do | |
def qsort([]), do: [] #base case for qsort | |
def qsort([pivot|[]]), do: [pivot] #base case for qsort |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer