-
What you're trying to accomplish?
Bundle new gems
-
The command you ran
β bundle
-
What you expected to happen?
This file contains 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
def get_grade(array) | |
sum = 0 | |
array.each do |x| | |
sum += x | |
end | |
average = sum / array.length | |
case average | |
when 90...100 | |
grade = 'A' | |
when 80...90 |
This is the list of programming concepts that Hacker School students have identified as scary. It was originally tweeted in image form by Alex Payne.
- Low-level errors
- Measuring performance
- Deleting code
- Getting out of IDEs (Xcode)
- Unable to build it from scratch
- Having to copy and paste code that I could not write myself
This file contains 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
β brew install ntfs-3g | |
β brew install fuse4x | |
# Follow steps the above commands tell you to follow | |
β brew info fuse4x-kext |
This file contains 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
curl -s http://ascii-middle-finger.com/ | grep -A 10 '<pre>' | grep -v 'pre' |
This file contains 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
class FooClass | |
def bar | |
baz | |
rescue StandardError => e | |
qux | |
raise | |
end | |
def baz | |
end |
This file contains 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
commit b242bf4e453f1a91703f006e9239ab0168256dd7 | |
Author: bglusman <[email protected]> | |
Date: Sun Mar 18 22:21:08 2012 -0400 | |
wiki methods on course and dryer path creation/use | |
diff --git a/app/models/course.rb b/app/models/course.rb | |
index baee48c..a98f0e3 100644 | |
--- a/app/models/course.rb | |
+++ b/app/models/course.rb |
This file contains 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
function current_git_branch { | |
git symbolic-ref HEAD | sed 's/refs\/heads\///' | |
} | |
# Assumes GIT URLS. No support for HTTPS | |
function git_repo_url { | |
git config --get remote.origin.url | sed 's/git@/https:\/\//' | sed 's/com:/com\//' | sed 's/.git$//' | |
} | |
function open_branch_url { |
This file contains 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
git clone [email protected]:jduan/s10-int.git jduan-s10-intCloning into jduan-s10-int... | |
remote: Counting objects: 117, done. | |
remote: Compressing objects: 100% (40/40), done. | |
remote: Total 117 (delta 71), reused 117 (delta 71) | |
Receiving objects: 100% (117/117), 14.10 KiB, done. | |
Resolving deltas: 100% (71/71), done. | |
β mendicant cd jduan-s10-int | |
β jduan-s10-int git:(master) ls | |
README.md |