forked from pengwynn/dallasrb-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.rb
361 lines (266 loc) · 10.8 KB
/
slides.rb
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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
# encoding: utf-8
block <<-EOS
#{ " CRAFT YOUR OWN WORKFLOW".inverse }#{ faux_terminal("IN THE SHELL") }
#{b "Wynn Netherland".upcase }
@pengwynn
#{"Dallas.rb".color("#999999") }
EOS
heading "My name is #{ faux_terminal("Wynn") }"
heading "Folks call me #{ "@pengwynn".bright } 🐧 . "
image "images/GitHub_Logo.jpg"
block <<-EOS
I love #{faux_terminal("TEXT MODE")}
EOS
subheading "That wasn't always true."
block <<-EOS
A long time ago in a cubicle far,
far away...
EOS
image "images/asp-example.jpg"
image "images/asp-custom.jpg"
heading "I later left .NET, because reasons."
block <<-EOS
<input type="hidden"
name="__VIEWSTATE"
value="dDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4Q=dDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4QdDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj7w=" />
EOS
# image "images/trollface.png"
heading "I jest, I jest."
block <<-EOS
#{faux_terminal("$ rails new pivot")}#{" ".inverse}
EOS
heading "A #{ b "new platform" } brought #{ b "new tools."}"
heading b("TextMate")
heading "#{b("Rails")}-y scripts"
diagram <<-EOS
script/generate ─┐
script/console │
script/server ├── 5x the Terminal.app
script/dbconsole │ (per project)
tail -f development.log ─┘
EOS
heading "Sass & Compass"
heading b("Sass") + ": CSS with superpowers"
heading b("Compass") + ": Sass framework for CSS3, sprites, & more"
image "images/scia.png"
heading "A new platform brought #{"new friends".bright}."
block <<-EOS
Friends: #{"Y U NO VIM?".bright }
Me: Um, I don't know. #{"Y U SHOUT?".bright}
EOS
image "images/vim-tweet.png"
block <<-EOS
#{"And later:".color("999999")}
Developers: #{"Y U NO SASS AND COMPASS?".bright }
Designers: GET OFF MY LAWN.
EOS
block <<-EOS
#{"Protip:".bright} Y U NO is the worst form of evangelism.
EOS
heading "My journey into the shell:"
block <<-EOS
The Changelog: #{"Episode 0.5.6".bright}
EOS
heading "I asked some Vim experts why they #{"<3".color(:red)} Vim."
# TODO: Expand
block <<-EOS
#{"Personal testimony".bright} of developers I respected
caused me to investigate Vim for myself.
EOS
heading b("MacVim")
heading "⌘C, ⌘V ,⌘S"
heading "↑ ↓ ← →"
heading "↑ ↑ ↓ ↓ ← → ← → B A"
block <<-EOS
#{" Use MacVim in the terminal with this one cool trick. ".inverse }
alias vim="mvim -m"
EOS
image "images/solarized.png"
heading "I now dreamt of a pure #{b('Terminal.app')} workflow."
heading "I could work from anywhere."
block <<-EOS
#{"joy".color("333333")}#{"++".color("666666")}
EOS
heading "Then I discovered tmux."
heading "A terminal multiplexer."
diagram <<-EOS
┌───────────────────────┬─────────────┐
│ │ │
│ │ pane 1 │
│ │ │
│ │ │
│ pane 0 ├─────────────┤
│ │ │
│ │ pane 2 │
│ │ │
│ │ │
└───────────────────────┴─────────────┘
#{"[ window 0 ]".bright} [ window 1 ] ...
EOS
diagram <<-EOS
┌───────────────────────┬─────────────┐
│ │ │
│ │ SSH │
│ │ │
│ │ │
│ VIM ├─────────────┤
│ │ │
│ │ SHELL │
│ │ │
│ │ │
└───────────────────────┴─────────────┘
#{"[ editor ]".bright} [ console ] ...
EOS
diagram <<-EOS
┌────────────────────────┬─────────────┐
┌───────────────────────┬─────────────┐ │
┌───────────────────────┬─────────────┐ │ │
│ │ │ │ │
│ │ SSH │ │ │
│ │ │ │─┤
│ │ │─┤ │
│ VIM ├─────────────┤ │ │
│ │ │ │ │
│ │ SHELL │ │ │
│ │ │ │─┘
│ │ │─┘
└───────────────────────┴─────────────┘
#{"[ editor ]".bright} [ console ] ...
EOS
diagram <<-EOS
┌────────────────────────┬─────────────┐
┌───────────────────────┬─────────────┐ │
┌─────────────────────────────────────┐ │ │
│ │ │ │
│ │ │ │
│ │ │─┤
│ │─┤ │
| #{" Stateful, per-project workspaces. ".inverse} │ │ │
│ │ │ │
│ │ │ │
│ │ │─┘
│ │─┘
└─────────────────────────────────────┘
#{"[ editor ]".bright} [ console ] ...
EOS
block <<-EOS
#{" CRAFT YOUR OWN IDE IN THE SHELL ".inverse }#{"_ ".inverse.blink }
EOS
# --- CRAFT -------------------------------------------------------------
block <<-EOS
#{" CRAFT ".inverse} YOUR OWN IDE IN THE SHELL
EOS
definition "craft", "kraft", "noun", "an activity involving skill\n in making things by hand."
# --- IDE ---------------------------------------------------------------
block <<-EOS
CRAFT YOUR OWN #{" IDE ".inverse} IN THE SHELL
EOS
definition "in·te·grat·ed", "ˈintiˌgrātid", "adjective", "with various parts or aspects\n #{"linked".bright} or #{"coordinated.".bright}"
definition "de·vel·op·ment", "diˈveləpmənt", "noun", "the #{"process".bright} of developing or\n being developed."
definition "en·vi·ron·ment", "enˈvīrənmənt", "noun", "the surroundings or conditions in\n which a person lives or #{"operates".bright}."
# --- SHELL -------------------------------------------------------------
block <<-EOS
CRAFT YOUR OWN IDE IN THE #{" SHELL ".inverse }#{"_ ".inverse.blink }
EOS
heading "Build your own light saber."
block <<-EOS
Build your own light saber.
#{" /////\\\\\\\\\\ ".inverse}#{" ".bright.color(:green).inverse }
EOS
heading "Why?"
heading "Text mode is #{"FAST".bright} and #{"LIGHTWEIGHT".bright}."
heading "Pair program, even on dialup."
heading "Stop porting your favorite color scheme."
heading "Switch between projects with ease."
heading "Automate tedious tasks."
heading "Customize and extend your tools."
heading "The same environment for all your #{" Ruby ".inverse }#{"_ ".inverse.blink } "
heading "The same environment for all your #{" CSS ".inverse }#{"_ ".inverse.blink } "
heading "The same environment for all your #{" SCSS ".inverse }#{"_ ".inverse.blink } "
heading "The same environment for all your #{" JavaScript ".inverse }#{"_ ".inverse.blink }"
heading "The same environment for all your #{" Go ".inverse }#{"_ ".inverse.blink } "
heading "The same environment for all your #{" words ".inverse }#{"_ ".inverse.blink } "
heading ("[ Show and tell time. ]")
heading b("zsh")
subheading 'globbing **/*'
subheading 'auto escaping \?foo\=bar'
subheading "tetris"
heading github("robbyrussell/oh-my-zsh")
heading b("pure")
heading github("sindresorhus/pure")
heading b("tmux")
subheading "windows"
subheading "panes"
subheading "splitting"
subheading "session chooser"
subheading "tree chooser"
heading b("Vim")
heading b("Git")
heading b("*nix")
subheading b("grep")
subheading "#{"ack".bright} is 'better than grep'"
subheading "#{"ack".bright} --thppt"
subheading "#{"ag".bright } is faster than ack"
heading b("Customization")
heading "tmux"
heading "<c-a>"
heading "customizing the status bar"
heading "mx"
heading "workspaces"
heading "Vim bundles"
heading "nerdtree"
heading "fugitive"
heading "git-gutter"
heading "All the tpope"
heading github("tpope")
heading "vim + tmux = #{"<3".color(:red)}"
heading "#{b("@mislav's")} hack for seamless navigation"
heading github("jasonrudolph/keyboard")
heading "Customizing Git"
heading github("github/hub")
heading "aliases"
heading "git-*"
heading "Bonus: #{"g".bright}()"
heading "Because git is too much to type, amirite?"
func = <<-EOS
function g {
if [[ $# > 0 ]]; then
git "$@"
else
git status --short --branch
fi
}
EOS
code func, :bash
heading "Test groove"
heading github("tpope/vim-ruby")
heading github("guard/guard")
subheading "See also :Dispatch"
heading github("tpope/vim-dispatch")
heading "Scripting workflows."
subheading "ls ~/bin"
subheading "grc"
heading github("mislav/coral")
heading b("Bootstrapping your battlestation")
subheading "boxen.github.com".underline
subheading "dotfiles.github.com".underline
heading b("Bootstrapping your project")
subheading "script/bootstrap"
subheading "script/server"
subheading "script/console"
subheading "script/test"
subheading "script/guard"
heading " Just for fun. ".inverse
heading github("pengwynn/rdio-cli")
heading github("sferik/t")
heading github("DTVD/rainbowstream")
# --- fin -------------------------------------------------------------
center <<-EOS
EOF
EOS
center <<-EOS
#{ " thanks ".upcase.inverse }
Feedback?
#{ github("pengwynn/pingwynn") }
#{ "@pengwynn".bright } 🐧 #{ "//".color("999999") } #{ "wynn.fm".underline }
EOS