Skip to content

Instantly share code, notes, and snippets.

View hugoestr's full-sized avatar

Hugo Estrada hugoestr

  • Falls Church, VA
View GitHub Profile
" 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 {
@hugoestr
hugoestr / reader_writer.exs
Last active November 8, 2019 18:10
The code that I shared in the presentation
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
@hugoestr
hugoestr / about.md
Created August 9, 2011 14:36 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer