Skip to content

Instantly share code, notes, and snippets.

View RobertAKARobin's full-sized avatar

Robin (Robert) Thomas RobertAKARobin

View GitHub Profile
@RobertAKARobin
RobertAKARobin / gist:d0e74f6185b2ec87b484
Created March 20, 2015 23:26
Quiz Feedback MD/HTML
<!DOCTYPE html>
<html><head><link rel="stylesheet" id="theme" href="chrome-extension://febilkbfcbhebfnokafefeacimjdckgl/theme/Clearness.css"></head><body><h1 id="w01d05-quiz-clearing-things-up">W01D05 Quiz, Clearing things up</h1>
<h2 id="implicit-returns-vs-side-effects">Implicit returns vs side effects</h2>
<p>An implicit returned is what is returned by a method that <strong>does not</strong> have a <code>return</code> statement. Remember: <strong>everything</strong> in Ruby returns <em>something</em>, and a method will return the <strong>last thing</strong> that was retured <em>inside</em> the method, <em>unless</em> the method has a <code>return</code> statement.</p>
<p>A side effect is something that takes place <strong>outside</strong> of a method as a result of that method being executed, but is <strong>not</strong> explicitly returned by the method, nor necessarily implicitly returned.</p>
<h4 id="for-example-">For example:</h4>
<pre><code><span class="function"><span class="keyword">def</span> <span
@RobertAKARobin
RobertAKARobin / warmupw01d02.md
Last active August 29, 2015 14:17
Warmup, W01D02

Mission: Impossible!

We, the Impossible Missions Force, have become aware that Doctor Nefarious is planning on using his Nefarious Computer (a standard Macbook) to initiate a nuclear launch sequence that will destroy the entire world.

Our sources have told us that the nuclear launch sequence is run from a shell script, and have also given us a tree showing the contents of the Doctor's computer (the flash drive has been added to show where in the structure it will appear):

NO_NUCLEAR_LAUNCH_SEQUENCES_HERE/
	nopeNotALaunchSequence.sh
TOP_SECRET/
	SERIOUSLY_TOP_SECRET/
@RobertAKARobin
RobertAKARobin / w01d01homework.md
Last active August 29, 2015 14:17
w01d01 Homus Workus

Homework, W01D01


Create a function in your .bash_profile that will set up a working directory for a new GA student!

Things it should do:

  • Create a folder called GeneralAssembly
@RobertAKARobin
RobertAKARobin / InstallFest.md
Last active February 9, 2016 16:45
InstallFest instructions!

Installfest!

Here's a shortlink to this page: http://bit.ly/WDI5_DC_InstallFest

Please follow these instructions in order.

Terminal

Open Applications > Utilities > Terminal