123
877
_ + __
=> 1000
#Anatomy of a Git Diff
This is a hunk, not a chunk.
diff --git a/lorem b/lorem
index 5da0182..4fcdc38 100644
--- a/lorem
+++ b/lorem
@@ -16,4 +16,24 @@ Nullam congue nunc sollicitudin, fermentum urna vel, tempus lorem. Morbi molesti
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
#Anatomy of a Git Diff | |
This is a **hunk**, not a *chunk*. | |
``` | |
diff --git a/lorem b/lorem | |
index 5da0182..4fcdc38 100644 | |
--- a/lorem | |
+++ b/lorem | |
@@ -16,4 +16,24 @@ Nullam congue nunc sollicitudin, fermentum urna vel, tempus lorem. Morbi molesti |
I hereby claim:
- I am pricees on github.
- I am pricees (https://keybase.io/pricees) on keybase.
- I have a public key ASAWbRPQvm0-rtCndpOV97jHD5YBztE_Ejd22wytR2JMxgo
To claim this, I am signing this object:
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
# ./Gemfile | |
# $ bundle | |
source "https://rubygems.org" | |
gem "activemodel" | |
############################################### | |
# foo.rb | |
# $ bundle exec ruby foo.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
Suggestions for discovering new stuff, active living, de-Google/Amazon/Facebook'ing my life | |
What to order at a restaurant? | |
- The signature item (if the restaurants signature item is crap...run) | |
- Chef’s or wait-staffs favorite | |
- The last thing the previous table ordered | |
- Ask for the freshest ingredients | |
How to choose a restaurant? |
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
Are you interested in cultivating a Centro engineering culture? | |
1) How does culture drive performance? | |
2) What is culture worth? | |
3) What processes in an organization affect culture? | |
What accomplishment(s) are you most proud of and why? (at Centro) | |
What accomplishment(s) are you most proud of and why? (outside Centro) | |
Of the teams you have worked on in your career: | |
- What has motivated you to give everything you have? Do you have that same motivation here? If not, what is lacking? |
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
https://developer.mozilla.org/en-US/docs/Web/API/Console | |
# 2 ways to access | |
window.console.log("Hello World") | |
console.log("Yo, sup world!") | |
# Four different levels of output | |
console.log("Hello World") // console.debug is it's alias |
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
count = (ARGV.first || 3).to_i | |
puts "Creating #{count} threads" | |
threads = count.times.map do |n| | |
num = n + 1 | |
puts "Creating thread #{num}" | |
t = Thread.new do | |
loop do | |
puts "Thread #{num}" | |
sleep rand(2..5) | |
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
t = Thread.new do | |
loop do | |
puts "Thread 1" | |
sleep rand(3) | |
end | |
end | |
t1 = Thread.new do | |
loop do | |
puts "\tThread 2" |
NewerOlder