Skip to content

Instantly share code, notes, and snippets.

View aybarshazar's full-sized avatar

Aybars Hazar Simsir aybarshazar

  • Doctolib
  • Berlin
View GitHub Profile
def flatten(arr)
result = []
arr.each do |item|
if item.is_a?(Array)
sub_array = flatten(item)
sub_array.each { |sub_item| result << sub_item }
else
result << item
end
@aybarshazar
aybarshazar / .git_commit_msg.txt
Last active October 30, 2015 08:29
Commit template
# http://codeinthehole.com/writing/a-useful-template-for-commit-messages/
# git config --global commit.template ~/.git_commit_msg.txt
# If applied, this commit will...
Provide a Fabric task for installing Puppet modules
# Explain why this change is being made
This change consolidates all project tasks in the fabfile.py and means
we can get rid of the makefile.