Tadashi one of my classmates made this really cool gist note taking app called Gistopio. You can find it here at gistopio.herokuapp.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md |
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 << line.split.map(&:to_i)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Page Title</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |