-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
322 lines (302 loc) · 10 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GitHub - Tips & tricks</title>
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="reveal.js/css/theme/black.css" id="theme">
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/custom.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<section>
<h2>GitHub - Tips & tricks</h2>
<p class="me">Maxence POUTORD</p>
<p class="me-link">
<a href="https://twitter.com/_maxpou"><i class="fa fa-twitter"></i> @_maxpou</a> |
<a href="http://www.maxpou.fr/"><i class="fa fa-globe"></i> maxpou.fr</a> |
<a href="mailto:hello@maxpou.fr"><i class="fa fa-envelope-o"></i> hello@maxpou.fr</a>
</p>
</section>
</section>
<section>
<section>
<h2>#1 - Github = Git + hub</h2>
<p><a href="https://hub.github.com/">hub.github.com</a></p>
</section>
<section>
<h2>Installation</h2>
<pre><code class="bash fragment" data-trim>
# MacOS
$ brew install hub
# Unix
$ git clone https://github.com/github/hub.git && cd hub
# assuming that `~/bin` is in your PATH:
$ script/build -o ~/bin/hub
</code><code class="bash fragment" data-trim>
$ alias git='hub'
</code><code class="bash fragment" data-trim>
$ git --version
git version 2.7.4
hub version 2.3.0
</code></pre>
</section>
<section>
<h2>$ hub</h2>
<pre><code class="bash" data-trim>
$ git
# ...
These GitHub commands are provided by hub:
pull-request Open a pull request on GitHub
fork Make a fork of a remote repository on GitHub and add as remote
create Create this repository on GitHub and add GitHub as origin
browse Open a GitHub page in the default browser
compare Open a compare page on GitHub
release List or create releases
issue List or create issues
ci-status Show the CI status of a commit
</pre></code>
</section>
</section>
<section>
<section>
<h2>#2 - GMF: a Markdown on steroid</h2>
<p><a href="https://guides.github.com/features/mastering-markdown/">guides.github.com/features/mastering-markdown</a></p>
</section>
<section>
<h2>Tables</h2>
<pre><code class="bash" data-trim>
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
</code></pre>
</section>
<section>
<h2>Syntax color</h2>
<pre class="fragment" data-fragment-index="0"><code class="javascript" data-trim>
```
if (score === 100) {
console.log("Yihaaa!")
}
```
</code></pre>
<pre class="fragment" data-fragment-index="1"><code data-trim>
```javascript
if (score === 100) {
console.log("Yihaaa!")
}
```
</code></pre>
</section>
<section>
<h2>blockquote</h2>
<pre><code data-trim>
> this text is quoted
</code></pre>
<p class="fragment">Or better: select text and press <kbd> R </kbd></p>
<p class="fragment">Want more shortcut key? press <kbd> ? </kbd></p>
</section>
<section>
<h2>Task Lists</h2>
<pre class="fragment" data-fragment-index="1"><code data-trim>
- [x] Prepare slides
- [ ] Give this talk
- [x] @maxpou fix issue #1
</code></pre>
</section>
<section>
<h2>...and other HTML Tags</h2>
<pre><code class="bash" data-trim>
<details>
<summary>License (MIT)</summary>
The MIT License (MIT)
Copyright (c) 2017 Maxence POUTORD
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software")
[...]
</details>
</code></pre>
</section>
</section>
<section>
<section>
<h2>#3 - Github Pages</h2>
<p><a href="https://pages.github.com/">pages.github.com</a></p>
</section>
<section>
<h2>Static website</h2>
<h3>(plain old HTML/JS/CSS)</h3>
<img data-src="img/htmlcssjs.png" style="border:none;width: 100%;">
</section>
<section>
<h2>Jekyll</h2>
<img data-src="img/jekyll.jpg" style="border:none;width: 100%;">
</section>
<section>
<h2>Deploying</h2>
<pre><code class="bash" data-trim>
$ git push
</code></pre>
</section>
<section>
<h2>URL</h2>
</section>
<section>
<h2>Managing dependencies?</h2>
<p class="fragment" data-fragment-index="0">Think about git submodules!</p>
<pre class="fragment" data-fragment-index="0"><code class="bash" data-trim>
$ git submodule add https://github.com/hakimel/reveal.js
</pre></code>
<img class="fragment" data-fragment-index="0" data-src="img/shoptocat.png" style="border:none;width: 33%;">
</section>
</section>
<section>
<section>
<h2>#4 - URL everywhere</h2>
<p><i>To exist, each action must have a specific URL.</i></p>
</section>
<section>
<h2>Removing whithespaces</h2>
<p><a href="https://github.com/maxpou-slides/github-tips-tricks/commit/2616cbecc713389f8455b066711bc74891a593a6">github.com/user/repo/commit/commit_sha1?w=1</a></p>
<a href="https://github.com/maxpou-slides/github-tips-tricks/commit/2616cbecc713389f8455b066711bc74891a593a6" target="_blank">
<img data-src="img/whitespace.gif" style="border:none;width: 50%;">
</a>
</section>
<section>
<h2>highlight lines</h2>
<p><a href="https://github.com/maxpou-slides/github-tips-tricks/blob/8d09d0d17dc086972d39a004939cf3259fa4a6ee/index.html#L24-L31" target="_blank">github.com/user/repo/commit/example#L3-L5</a></p>
</section>
</section>
<section>
<section>
<h2>#5 - Emoji 😍</h2>
<p><a href="http://www.webpagefx.com/tools/emoji-cheat-sheet/">Emoji cheat sheet</a></p>
</section>
<section>
<h2>Good example: Atom contributing’s style guides</h2>
<img data-src="img/commit-message-atom.png" style="border:none;width: 50%;">
</section>
</section>
<section>
<section>
<h2>#6 - Templates</h2>
</section>
<section>
<p class="fragment">Issue #1</p>
<blockquote class="fragment">
User: It didn't works.
</blockquote>
<blockquote class="fragment">
Maintainer: Which version are you using? What is your OS/Browser... Can you provide the steps to reproduce?
</blockquote>
<blockquote class="fragment">
User: ...
</blockquote>
<p class="fragment">Issue #2</p>
<blockquote class="fragment">
User2: It didn't works.
</blockquote>
<blockquote class="fragment">
Maintainer: Haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
</blockquote>
</section>
<section>
<h2>Template to the rescue!</h2>
<pre><code class="markdown" data-trim>
(ISSUE_TEMPLATE.md)
| Q | A
| ---------------- | -----
| Bug report? | yes/no
| Feature request? | yes/no
| BC Break report? | yes/no
| RFC? | yes/no
| Tool version | x.y.z
**Description**
**Version concerned**
**Steps to reproduce the issue:**
1.
2.
3.
**Expected Results:**
**Actual Results:**
**Additional details:**
</pre></code>
</section>
</section>
<section>
<section>
<h2>Full article</h2>
<img data-src="img/homercat.png" style="border:none;width: 33%;">
<br>
<a href="http://www.maxpou.fr/github-tips-and-tricks/"><i class="fa fa-globe" aria-hidden="true"></i> maxpou.fr/github-tips-and-tricks</a>
</section>
<section>
<h2>Thank you</h2>
<h3>Questions?</h3>
<img data-src="img/riddlocat.png" style="border:none;width: 33%;">
<br>
<a href="https://twitter.com/_maxpou"><i class="fa fa-twitter"></i> @_maxpou</a>
</section>
</section>
<section>
<section>
<h2>#7 - Bonus: Octodex</h2>
<p><a href="https://octodex.github.com/">octodex.github.com</a></p>
<img data-src="img/nyantocat.gif" style="border:none;width: 33%;">
</section>
<section>
<h2>#7 Bonus (bis)</h2>
<p>I have some stickers!</p>
<img data-src="img/stikers.png" style="border:none;width: 33%;">
</section>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
slideNumber: true,
history: true,
center: true,
width: 1000,
height: 700,
transition: 'convex', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true }
]
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67868977-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>