Skip to content

Instantly share code, notes, and snippets.

View ajkamel's full-sized avatar
👋

Ash Kamel ajkamel

👋
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
* executing "if [ -d /var/deploy/wags_solid/web_head/shared/cached-copy ]; then cd /var/deploy/wags_solid/web_head/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 796d6b311fda4b5393d087c106a8dd15f71f25cf && git submodule -q init && git submodule -q sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule -q update --init $GIT_RECURSIVE && git clean -q -d -x -f; else git clone -q -b master git@bitbucket.org:ajkamel/wags_solid.git /var/deploy/wags_solid/web_head/shared/cached-copy && cd /var/deploy/wags_solid/web_head/shared/cached-copy && git checkout -q -b deploy 796d6b311fda4b5393d087c106a8dd15f71f25cf && git submodule -q init && git submodule -q sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5\" ] && echo --recursive) && gi
@ajkamel
ajkamel / triangle_sum.md
Last active August 29, 2015 14:07
Triangle Problem

I first found this problem when looking at a Yodle engineering challenge question.

Basically you this takes a file with lines of numbers and finds the largest sum by totaling the largest adjacent numbers for each new line.

triangle_array = []

f = File.open("triangle.txt", "r")
	f.each_line do |line|
 triangle_array &lt;&lt; line.split.map(&amp;:to_i)

Tadashi one of my classmates made this really cool gist note taking app called Gistopio. You can find it here at gistopio.herokuapp.com

@ajkamel
ajkamel / file.rb
Created February 21, 2014 17:34
free-programming-books.md at master on vhf/free-programming-books
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md