forked from gdiannarbor/intro-ruby
/
setup.html
297 lines (267 loc) · 14.3 KB
/
setup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Intro to Ruby : Setup ~ Girl Develop It</title>
<meta name="description" content="This is the official Girl Develop It Core Intro to Ruby course. The course is meant to be taught in four two-hour sessions. Each of the slides and practice files are customizable according to the needs of a given class or audience.">
<meta name="author" content="Girl Develop It">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/gdiaa.css" id="theme">
<link rel="stylesheet" href="lib/css/light.css">
<link rel="stylesheet" href="css/print/pdf.css" media="print">
<script src="lib/js/head.min.js"></script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<!-- Opening slide -->
<section>
<img src="images/gdi_logo_badge.png" class="img--bare" height="450px" />
<div class="box--small">
<h3><span class="green">Intro to Ruby</span></h3>
<h4><span class="blue">Setup</span></h4>
</div>
</section>
<!-- Welcome-->
<!-- <section>
<h3>Welcome!</h3>
<div class = "left-align">
<p>Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.</p>
<p class ="green">Some "rules"</p>
<ul>
<li>We are here for you!</li>
<li>Every question is important</li>
<li>Help each other</li>
<li>Have fun</li>
</ul>
</div>
</section> -->
<!-- <section>
<h3>Welcome!</h3>
<div class = "left-align">
<p class = "blue">Tell us about yourself.</p>
<ul>
<li>Who are you?</li>
<li>What do you hope to get out of this class?</li>
<li>What is your favorite ice cream or frozen dessert?</li>
</ul>
</div>
</section> -->
<section>
<h3>What we will cover today</h3>
<ul class="list--tall box--small ">
<li>Installing Ruby</li>
<li>Installing any other tools you'll need</li>
<li>Command Line Basics</li>
</ul>
</section>
<!-- Part 1: Installfest, 60 minutes -->
<section>
<h3>A little help from our friends...</h3>
<p class="copy--small box">We'll be using Railsbridge's Installfest instructions to get set up.</p>
<p class="copy--small box--small"><a target="_blank" href="http://railsbridge.org/" alt="railsbridge home">Railsbridge</a> is an awesome organization that<br/>Girl Develop It is friends with and you should be, too! </p>
</section>
<section>
<h3>Installfest</h3>
<div class="box">
<p class=""><a target="_blank" href="http://docs.railsbridge.org/installfest/" alt="railsbridge installfest">Here it is!</a></p>
<p class="box--small green">http://docs.railsbridge.org/installfest</p>
<ul class="list--tall copy--small">
<li>Work through the instructions for your operating system.</li>
<li><strong>STOP after the "Configure Git" step.</strong></li>
<li>If you get stuck or lost, get help in our <a href="https://gdiaa.slack.com/messages/0815-ruby/">#0815-ruby</a> Slack channel.<br/><small>Request a Slack invite here: <a href="https://gdiaa-slack.herokuapp.com/" target="_blank">https://gdiaa-slack.herokuapp.com/</a></small></li>
<li>This process should take about an hour.</li>
</ul>
</div>
</section>
<!-- Part 2: Intro to Terminal, 20 minutes -->
<section>
<h3>Intro to Terminal</h3>
<div class="box copy--small">
<p><i>Working in the terminal can be really intimidating at first!</i></p>
<p class="box">With practice, <span class="blue">navigation and file manipulation</span><br/>is significantly <span class="green">faster in the terminal</span> than in the GUI.</p>
<p>Professional software developers use the terminal all the time,<br/>and this class will require some use of it.</p>
</div>
</section>
<section>
<h3>Intro to Terminal</h3>
<div class="box">
<p><b>Mac & Linux users:</b> Open <strong>Terminal</strong></p>
<p class="box--small"><b>Windows users:</b> Install & Open <strong><a href="http://git-scm.com/download/win" target="_blank">Git-Bash</a></strong></p>
<br >
<p class="copy--small">We will not be using Windows "cmd" program,<br/>as it uses a different syntax than *NIX systems.</p>
</div>
</section>
<section>
<h3>Intro to Terminal Prompt</h3>
<div class="box--small copy--small">
<p>The line that appears in the terminal when you open it is called<br/><em>the prompt</em>.</p>
<p class="box--small">It usually contains information about the <strong>user and current directory</strong>.<br/>It can be customized.</p>
<img src="images/prompt1.png" alt="example prompt">
<img src="images/prompt2.png" alt="example prompt">
<img src="images/prompt3.png" alt="example prompt">
<img src="images/prompt4.png" alt="example prompt">
<img src="images/prompt5.png" alt="example prompt">
<p class="box--small"><strong>Terminal instructions</strong> often start a line with a <strong>$</strong>.<br/><small>This just represents the last character in the prompt, you don't have to type it.</small></p>
</div>
</section>
<section>
<h3>Terminal Cheatsheet</h3>
<table style="font-size: 20px; line-height: 1.4em;">
<tr>
<td style="padding-bottom: .5em;"><code>.</code></td>
<td>the current directory- ex: <code>touch ./wow.txt</code></td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>..</code></td>
<td>the parent of current directory - ex: <code>cd ../RubyParty</code></td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>~</code></td>
<td>the root directory- ex: <code>cd ~/Pictures</code></td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>cd [location]</code></td>
<td>"change directory" to [location]</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>pwd</code></td>
<td>"present working directory" - where am I?</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>ls -al</code></td>
<td>"list all" of the contents of current directory, including invisible ones</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>touch [filename.extension]</code></td>
<td>create a file called [filename.extension] in the current directory</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>mkdir [directoryname]</code></td>
<td>create a directory called [directoryname] in the current directory<br/>
<small><em>With great power comes great responsibility. <strong>Be very careful with this one.</strong></em></small>
</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>rm [filename]</code></td>
<td>"remove" (delete) the file called [filename]</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>rm -rf [directoryname]</code></td>
<td>"remove recursively with force" the directory called [directoryname]</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>clear</code> OR <code>cmd+k</code></td>
<td>clear the terminal screen</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>help</code></td>
<td>lists all possible commands</td>
</tr>
<tr>
<td style="padding-bottom: .5em;"><code>man [command]</code></td>
<td>displays the manual for [command]</td>
</tr>
</table>
</section>
<section>
<h3>Terminal Activities</h3>
<p class="box--small">Try out the following commands!<br/><small>Things that start with <code>#</code> are comments - you don't need to type those out.</small></p>
<pre><code class="terminal">
# navigate to your desktop
cd ~/Desktop #Linux, Mac
cd desktop #Windows
# make a directory called ruby_adventures
mkdir ruby_adventures
# navigate into the new ruby_adventures directory
cd ruby_adventures
# create a new file in the current (ruby_adventures) directory
touch setup.rb
# list the contents of the current (ruby_adventures) directory
ls
</code></pre>
</section>
<section>
<h3>Terminal Activities</h3>
<p class="box--small copy--small">Not sure what a command does? Or how it works? Use <code>man</code><br/><small>Try using <code>man</code> with a few commands. Type the letter <code>q</code> to exit <code>man</code>.</small></p>
<pre style="height: 30px; overflow:hidden;"><code class="terminal">
man ls
</code></pre>
<p>Output:</p>
<img src="images/manls.png" >
</section>
<!-- Let's Develop It - 10 min -->
<section>
<h3>Let's Develop It!</h3>
<p class="box--small">Working in the terminal, create a directory called <code>gdi_ruby</code> in the location of your choosing.<br/> <small>Desktop? Documents? Somewhere you'll be able to find it again!</small></p>
<p class="copy--small">Inside the <code>gdi_ruby</code> directory, create a file called <code>setup.txt</code>.</p>
</section>
<section>
<h3>You're all set up!</h3>
</section>
<section>
<h3>Questions?</h3>
<p class="box copy--small">Message us in the <a href="https://gdiaa.slack.com/messages/0815-ruby/">#0815-ruby</a> Slack channel.<br/><small>Request a Slack invite here: <a href="https://gdiaa-slack.herokuapp.com/" target="_blank">https://gdiaa-slack.herokuapp.com/</a></small></p>
</section>
<section>
<h3>Homework</h3>
<p class="box--small copy--small"><strong>Practice:</strong> spend at least 20 minutes practicing navigating and creating/removing documents and directories with the command line.</p>
<p class="box--small copy--small"><strong>Prep:</strong> Work through Code Academy's <a target="_blank" href="http://www.codecademy.com/courses/ruby-beginner-en-d1Ylq/0/1?curriculum_id=5059f8619189a5000201fbcb" alt="Code Academy">"Intro to Ruby"</a>. If you don't have previous programming experience, read Chapters 1 and 2 in <a target="_blank" href="https://pine.fm/LearnToProgram/?Chapter=01" alt="Learn to Program">Learn to Program</a> - don't try to do the exercises at the end, though. </p>
</section>
<!-- <section>
<h3>Resources</h3>
<p>Learning is more fun with people! </p>
<ul>
<li>Start a study group with some classmates</li>
<li>Attend Ada's <a href="http://adadevacademy.tumblr.com/post/69102537531/ada-after-hours" alt="After Hours info">after hours</a> to study with women</li>
<li>Visit Seattle.rb's weekly <a href="http://www.seattlerb.org/" alt="Nerd Party info">nerd party</a> to hack with nerds</li>
<li>Check out Seattle on Rails' <a href="http://www.meetup.com/The-Seattle-Ruby-on-Rails-Developers-Meetup-Group/" alt="Seattle on Rails info">practice nights</a></li>
</ul>
</section> -->
<!-- Opening slide -->
<section>
<img src="images/gdi_logo_badge.png" class="img--bare" height="450px" />
<div class="box--small">
<h3><span class="green">Intro to Ruby</span></h3>
<h4><span class="blue">See you soon!</span></h4>
</div>
</section>
</div>
<footer>
<div class="copyright">
Intro to Ruby ~ GDI Ann Arbor ~
<a rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/3.0/80x15.png" /></a>
</div>
</footer>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
rollingLinks: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>