Skip to content

Instantly share code, notes, and snippets.

@keithknox
keithknox / 2015-05-05.md
Last active August 29, 2015 14:20
A gistalt piece

When we began learning JavaScript this week, there was a feeling of "hitting the reset button" on everything that I have learned up until that point. I went through the same stages I did when I began learning Ruby: utter confusion, flailing about to piece together code that would work, seeing the patterns at work and then beginning to begin to understand. This weekend, I had a JavaScript book laying around, and I decided that I was going to try to find the point where things began to become fuzzy so I got to the first chapter. I understood that much. Got to the second chapter and that was familiar too. I kept skipping ahead to look for the "confusing stuff" and before I realized it, I was a solid 100 pages into the book....not bad for only learning this stuff beginning Monday.

What helped me through this is that the same core programming principles that were in Ruby were in JavaScript as well. In fact JavaScript's stricter syntax helped me understand things in Ruby that I ha missed the first time aroun

puts("I am C-3P0, human-cyborg relations. What is your name?")
name = gets().chomp
puts("It is a pleasure to meet you, " + name +". Have you ever met a protocol droid before?")
user_answer = gets().chomp
puts(user_answer + "? How interesting, for someone from around these parts.")
puts("I'm terribly sorry for prying, but you don't by any chance go by the alias of Obi-Wan Kenobi, do you?")
@keithknox
keithknox / gist:c00a413e4e4d4662516d
Last active August 29, 2015 14:17
Warmup exercise
mv TOP_SECRET/SERIOUSLY_TOP_SECRET/YOU_PROBABLY_SHOULDNT_BE_IN_HERE/totallyNotNuclearCodes.txt FLASH_DRIVE/
echo "8675309" > TOP_SECRET/SERIOUSLY_TOP_SECRET/YOU_PROBABLY_SHOULDNT_BE_IN_HERE/totallyNotNuclearCodes.txt
cp CAT_PHOTOS/nefariousMisterMittens.jpg FLASH_DRIVE/
rm -r NO_NUCLEAR_LAUNCH_SEQUENCES_HERE
mkdir -p DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE
say "Doctor Nefarious: Ha ha. Sincerely, Mot Esiurc" > DR_NEFARIOUS_NEW_LAUNCH_SEQUENCE/superDuperLaunchSequence.sh
@keithknox
keithknox / gist:f5489caae1ed80a2a3c0
Last active August 29, 2015 14:17
Homework, W01D01
new_student(){
mkdir -p GeneralAssembly/Homework/week01/day01
mkdir -p GeneralAssembly/Notes/week01/day01
mkdir -p GeneralAssembly/Projects
mkdir -p GeneralAssembly/Outcomes
echo "Keep calm and carry on!" > GeneralAssembly/README.md
echo "Hey there, student! Welcome to WDI6! I just set up this directory tree for you:"
tree GeneralAssembly
}