Skip to content

Instantly share code, notes, and snippets.

View mauricio's full-sized avatar

Maurício Linhares mauricio

View GitHub Profile
# Variation on Hashrocket's script for managing the git process
# as documented here: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html
# Create shell scripts out of each of these, put them in your path (~/bin for example)
# chmod 755 them and use like this:
#
# This version of hack is totally different than Hackrockets. I feel that hack implies
# that you are getting started, not finishing up. sink is Hashrockets hack.
#
# $ hack branch_name
# Test and Implement until done
@mauricio
mauricio / ladder.md
Created October 28, 2015 15:36 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
@mauricio
mauricio / Benchmark.scala
Created October 24, 2012 05:15 — forked from mattetti/collection.rb
quick comparison in processing collections in Ruby vs Scala
import scala.util.Random
import scala.collection.mutable.ArrayBuffer
import scala.annotation.tailrec
import scala.collection.immutable.Vector
object Benchmark {
@tailrec def repeat(n: Int)(f: => Unit) {
if (n > 0) { f; repeat(n - 1)(f) }
}
@mauricio
mauricio / hack.sh
Created April 3, 2012 02:15 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
class Tupla <T> {
private final T esquerda;
private final T direita;
public Tupla(T esquerda, T direita) {