Skip to content

Instantly share code, notes, and snippets.

Hugo Estrada hugoestr

View GitHub Profile
View .vimrc
" pathogen setup
execute pathogen#infect()
" generic setup
syntax on
filetype plugin indent on
" setting spaces
set expandtab
set shiftwidth=2
View some useful shell configs
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 Nov 8, 2019
The code that I shared in the presentation
View reader_writer.exs
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} ->
View qsort.exs
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 Aug 9, 2011 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
View about.md
You can’t perform that action at this time.