Skip to content

Instantly share code, notes, and snippets.

View andreazevedo's full-sized avatar

Andre Azevedo Pinto andreazevedo

  • Google
  • Mountain View, CA
View GitHub Profile
@lscoder
lscoder / SimpleCombination
Last active October 2, 2015 03:08
Combinação simples (Triângulo de Pascal)
// Cálculo de combinação simples utilizando o triângulo de Pascal, onde:
//
// Relação de Stifel
//
// | n-1 | + | n-1 | = | n |
// | k-1 | | k | | k |
//
// Ex.: Quantidade de jogos da Mega Sena
// var quantity = SimpleCombination(60, 6);
//
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 25, 2024 19:41
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@gregoriokusowski
gregoriokusowski / gist:4634474
Created January 25, 2013 13:32
Since we started to use a branching model to control every stuff we send to production, we use the interactive rebase into a temp branch in order choose commits, keep their reference and check the code before check it to the stable branch.
git checkout master
git checkout -b temp
git rebase -i stable
# Time to select/remove/squash commits
git checkout stable
git pull . temp
git branch -d temp
@haf
haf / LICENSE
Last active February 14, 2024 11:15
Setting up a digitalocean proxy
https://www.gnu.org/licenses/gpl-3.0.en.html
GNU GENERAL PUBLIC LICENSE v3