Skip to content

Instantly share code, notes, and snippets.

View jfelipe's full-sized avatar

Felipe Arango jfelipe

View GitHub Profile
Eileen M. Uchitelle
Ingeniera de Sistemas Senior en GitHub. Soy una ávida contribuidora Open Source y estoy en el Rails Core Team y en el Rails Security Team.
Disfruto hablar en conferencias, por lo general sobre el rendimiento o sobre contribuciones Open Source. Aparte de escribir código,
me gusta la cerveza artesanal y senderismo con mi marido, Abe y nuestro perro, Arya.
Konstantin Haase
Co-Fundador y CTO en Travis CI, ex estrella de la ópera. Konstantin se describe a sí mismo como un "entusiasta del Open Source" y contribuye a una serie de proyectos de Ruby,
incluyendo Ruby on Rails, Rack y Rubinus. Konstantin es también el actual mantenedor de Sinatra y bajo su dirección Sinatra se ha transformado en un
2016-02-24T21:33:10.486765+00:00 app[scheduler.1256]: ** [NewRelic][02/24/16 21:33:10 +0000 1ca8834d-800c-45f1-a8c8-9b25ef2310e5 (3)] INFO : Starting Agent shutdown
2016-02-24T21:33:12.362405+00:00 heroku[scheduler.1256]: State changed from up to complete
2016-02-24T21:33:12.351098+00:00 heroku[scheduler.1256]: Process exited with status 0
2016-02-24T21:33:58.337572+00:00 app[worker.1]: 2016-02-24T21:33:58Z 3 TID-ouorfqjf0 PdfGeneratorWorker JID-845ee5e956db58ea972ba931 INFO: start
2016-02-24T21:34:03.344795+00:00 app[worker.1]: ** [NewRelic][02/24/16 21:34:03 +0000 c2e38ff2-f241-45a0-8d17-abadf82296ab (3)] ERROR : Uncaught exception while finishing an HTTP request trace
2016-02-24T21:34:03.344864+00:00 app[worker.1]: ** [NewRelic][02/24/16 21:34:03 +0000 c2e38ff2-f241-45a0-8d17-abadf82296ab (3)] ERROR : URI::InvalidURIError: bad URI(is not URI?): ://:/
2016-02-24T21:34:03.676141+00:00 app[worker.1]: 2016-02-24T21:34:03Z 3 TID-ouorfqjf0 PdfGeneratorWorker JID-845ee5e956db58ea972ba931 INFO: fail: 5.339 sec
201
@jfelipe
jfelipe / sort_tree.rb
Created October 21, 2015 22:58
Code wars "Sort binary tree by levels"
# return the array containing the tree levels, from root to last level.
def tree_by_levels(node)
return [] unless node
result = []
q = [node]
until q.empty?
node = q.shift
q << node.left if node.left
q << node.right if node.right
result << node.value
def moving_shift(s, shift):
final_result = [""] * 5
result = ""
counter = shift
for letter in s:
if letter.isalpha():
pombo = ord(letter) + counter - limit(letter)
base = ord('z') - ord('a') + 1
new_letter = (pombo % base) + limit(letter)
result += str(chr(int(new_letter)))
<script type="text/javascript">
$(document).ready(function() {
try {
mixpanel.track("Landing Visit", { location: location.pathname });
$("#sign-up-menu-button").click(function(){
mixpanel.people.set({"Signup button": "navbar header"});
mixpanel.track("Click signup button", {"Button location": "navbar header"});
return true;
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:EnableOpenTypeKerning /> <w:DontFlipMirrorIndents /> <w:OverrideTableStyleHps /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0
# adds the current branch name in green
git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null)
if [[ -n $ref ]]; then
echo "[%{$fg_bold[green]%}${ref#refs/heads/}%{$reset_color%}]"
fi
}
# makes color constants available
autoload -U colors