forked from AdamWilsonLabEDU/SpatialDataScience
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path11_Git.html
More file actions
642 lines (583 loc) · 21.8 KB
/
11_Git.html
File metadata and controls
642 lines (583 loc) · 21.8 KB
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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
<title>Version Control (with Git)</title>
<script src="site_libs/jquery-1.11.3/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="site_libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
<script src="site_libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="site_libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="site_libs/bootstrap-3.3.5/shim/respond.min.js"></script>
<link href="site_libs/font-awesome-4.5.0/css/font-awesome.min.css" rel="stylesheet" />
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet"
href="site_libs/highlight/textmate.css"
type="text/css" />
<script src="site_libs/highlight/highlight.js"></script>
<style type="text/css">
pre:not([class]) {
background-color: white;
}
</style>
<script type="text/javascript">
if (window.hljs && document.readyState && document.readyState === "complete") {
window.setTimeout(function() {
hljs.initHighlighting();
}, 0);
}
</script>
<style type="text/css">
h1 {
font-size: 34px;
}
h1.title {
font-size: 38px;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 18px;
}
h5 {
font-size: 16px;
}
h6 {
font-size: 12px;
}
.table th:not([align]) {
text-align: left;
}
</style>
<link rel="stylesheet" href="styles.css" type="text/css" />
</head>
<body>
<style type = "text/css">
.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
code {
color: inherit;
background-color: rgba(0, 0, 0, 0.04);
}
img {
max-width:100%;
height: auto;
}
.tabbed-pane {
padding-top: 12px;
}
button.code-folding-btn:focus {
outline: none;
}
</style>
<style type="text/css">
/* padding for bootstrap navbar */
body {
padding-top: 51px;
padding-bottom: 40px;
}
/* offset scroll position for anchor links (for fixed navbar) */
.section h1 {
padding-top: 56px;
margin-top: -56px;
}
.section h2 {
padding-top: 56px;
margin-top: -56px;
}
.section h3 {
padding-top: 56px;
margin-top: -56px;
}
.section h4 {
padding-top: 56px;
margin-top: -56px;
}
.section h5 {
padding-top: 56px;
margin-top: -56px;
}
.section h6 {
padding-top: 56px;
margin-top: -56px;
}
</style>
<script>
// manage active state of menu based on current page
$(document).ready(function () {
// active menu anchor
href = window.location.pathname
href = href.substr(href.lastIndexOf('/') + 1)
if (href === "")
href = "index.html";
var menuAnchor = $('a[href="' + href + '"]');
// mark it active
menuAnchor.parent().addClass('active');
// if it's got a parent navbar menu mark it active as well
menuAnchor.closest('li.dropdown').addClass('active');
});
</script>
<div class="container-fluid main-container">
<!-- tabsets -->
<script src="site_libs/navigation-1.1/tabsets.js"></script>
<script>
$(document).ready(function () {
window.buildTabsets("TOC");
});
</script>
<!-- code folding -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">GEO 503: R Spatial Data Science</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="Syllabus.html">Syllabus</a>
</li>
<li>
<a href="Schedule.html">Schedule</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
Content
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="CourseContent.html">About Course Content</a>
</li>
<li class="dropdown-header">Module 1: Introduction to R</li>
<li>
<a href="00_CourseIntroductionFrame.html">00 Course Introduction</a>
</li>
<li>
<a href="01_Rintro.html">01 First Steps</a>
</li>
<li>
<a href="02_DataWrangling.html">02 Data Wrangling</a>
</li>
<li>
<a href="03_Plotting.html">03 Plotting</a>
</li>
<li class="divider"></li>
<li class="dropdown-header">Module 2: Spatial Analyses</li>
<li>
<a href="04_Spatial.html">04 Spatial Data</a>
</li>
<li>
<a href="05_Raster.html">05 Spatial Raster Data</a>
</li>
<li>
<a href="06_RasterTwo.html">06 More Raster Data</a>
</li>
<li class="divider"></li>
<li class="dropdown-header">Module 2: Advanced Programming</li>
<li>
<a href="07_Reproducibile.html">07 Reproducible Research</a>
</li>
<li>
<a href="08_WeatherData.html">08 Weather Data Processing</a>
</li>
<li>
<a href="09_RemoteSensing.html">09 Satellite Data Processing</a>
</li>
<li>
<a href="10_ParallelProcessing.html">10 Parallel Processing</a>
</li>
<li>
<a href="11_Git.html">11 Version Control with Git</a>
</li>
<li class="divider"></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
Assignments
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="Homework.html">Homeworks</a>
</li>
<li>
<a href="PackageIntro.html">Package Introduction</a>
</li>
<li>
<a href="Project.html">Final Project</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
Resources
<span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="Resources.html">Resources</a>
</li>
<li>
<a href="GitSSHNotes.html">Setting up Github</a>
</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://github.com/adammwilson/RDataScience">
<span class="fa fa-github fa-lg"></span>
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
<div class="fluid-row" id="header">
<h1 class="title toc-ignore">Version Control (with Git)</h1>
</div>
<div id="background" class="section level1">
<h1>Background</h1>
<blockquote>
<p>“The goal of reproducible research is to tie specific instructions to data analysis and experimental data so that scholarship can be recreated, better understood and verified.” <small> Max Kuhn, CRAN Task View: Reproducible Research </small></p>
</blockquote>
<div id="our-work-exists-on-a-spectrum-of-reproducibility" class="section level2">
<h2>Our work exists on a spectrum of reproducibility</h2>
<p><img src="11_assets/peng-spectrum.jpg" alt="alt text" width="800"></p>
<p><small>Peng 2011, Science 334(6060) pp. 1226-1227</small></p>
<p>In this module you will explore the use of software called Git to manage ‘versions’ of files. Similar to ‘track-changes’ in Microsoft Word, Git keeps track of any edits and makes it possible to track who made the change and when. Git (and other version control software) are most commonly used to manage collaboratively edited code, but it can keep track of any file.</p>
</div>
<div id="benefits-are-straightforward" class="section level2">
<h2>Benefits are straightforward</h2>
<ul>
<li><strong>Verification & Reliability</strong>: Find and fix bugs. Today’s results == tomorrow’s.</li>
<li><strong>Transparency</strong>: increased citation count, broader impact, improved institutional memory</li>
<li><strong>Efficiency</strong>: Reduces duplication of effort. Payoff in the (not so) long run</li>
<li><strong>Flexibility</strong>: When you don’t ‘point-and-click’ you gain many new analytic options.</li>
</ul>
</div>
<div id="common-practices-of-many-scientists" class="section level2">
<h2>Common practices of many scientists</h2>
<ul>
<li>Enter data in Excel</li>
<li>Use Excel for data cleaning & descriptive statistics</li>
<li>Import data into SPSS/SAS/Stata for further analysis</li>
<li>Use point-and-click options to run statistical analyses</li>
<li>Copy & paste output to Word document, repeatedly</li>
</ul>
<p>These steps can be very difficult to reproduce (even for the same person at a later date)!</p>
</div>
</div>
<div id="version-control" class="section level1">
<h1>Version Control</h1>
<div id="tracking-changes-with-version-control" class="section level2">
<h2>Tracking changes with version control</h2>
<p><strong>Payoffs</strong></p>
<ul>
<li>Eases collaboration</li>
<li>Can track changes in any file type (ideally plain text)</li>
<li>Can revert file to any point in its tracked history</li>
</ul>
<p><strong>Costs</strong></p>
<ul>
<li>Learning curve</li>
</ul>
</div>
<div id="git" class="section level2">
<h2>Git</h2>
<p><img src="11_assets/git.png" alt="alt text" width="30%"></p>
<ul>
<li><strong>Strong support for non-linear development:</strong> Rapid branching and merging, specific tools for visualizing and navigating a non-linear development history.</li>
<li><strong>Distributed development:</strong> No central server needed, each user has a full copy</li>
<li><strong>Efficient handling of large projects:</strong> Designed to manage the Linux OS</li>
<li><strong>Cryptographic authentication of history:</strong> The ID of a particular version depends uponthe complete history. Once published, it is not possible to change the old versions without it being noticed.</li>
</ul>
</div>
<div id="git-has-integrity" class="section level2">
<h2>Git Has Integrity</h2>
<p>Everything <em>checksummed</em> before storage and then referred by <em>checksum</em>.</p>
<blockquote>
<p>It’s impossible to change the contents of any file or directory without Git knowing. You can’t lose information in transit or get file corruption without Git being able to detect it.</p>
</blockquote>
</div>
<div id="checksum" class="section level2">
<h2>Checksum</h2>
<p>A way of reducing digital information to a unique ID:</p>
<p><img src="11_assets/checksum.jpg" alt="alt text" width="50%"></p>
<p>A 40-character hexadecimal SHA-1 hash: <code>24b9da6552252987aa493b52f8696cd6d3b00373</code></p>
<p>Git doesn’t care about filenames, extensions, etc. It’s the information that matters…</p>
</div>
</div>
<div id="git-tutorial-lets-get-started" class="section level1">
<h1>Git Tutorial: let’s get started</h1>
<div class="well">
<h2 id="your-turn">Your turn</h2>
<p>Take 15 minutes or so at <a href="https://try.github.io/levels/1/challenges/1">this site to walk through some basic git commands</a><br> <a href=https://try.github.io/levels/1/challenges/1> <img src="11_assets/trygit.png" alt="alt text" width="75%"></a></p>
</div>
</div>
<div id="the-3-states-of-files" class="section level2">
<h2>The 3 states of files</h2>
<div id="staged-modified-committed" class="section level3">
<h3>staged, modified, committed</h3>
<p><img src="11_assets/staging.png" alt="alt text" width="75%"></p>
<p>The important stuff is hidden in the <code>.git</code> folder.</p>
</div>
</div>
<div id="github" class="section level2">
<h2>Github</h2>
<blockquote>
<p>GitHub is a web-based Git repository hosting service. It offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project. <small> <a href=https://en.wikipedia.org/wiki/GitHub> Wikipedia </a> </small></p>
</blockquote>
<p>There are other ways to use Git, you can host your own server or use another private company, such as BitBucket.</p>
<p>You can think of GitHub as part:</p>
<ul>
<li>Server to back up your files</li>
<li>Website to share your files</li>
<li>Method to track changes to your files</li>
<li>Platform to collaboratively develop code (or other files)</li>
</ul>
<div id="example-this-course-website-is-managed-using-git-github" class="section level3">
<h3>Example: this course website is managed using Git & GitHub</h3>
<p><a href=https://github.com/adammwilson/RDataScience/tree/gh-pages> <img src="11_assets/githubcoursewebsite.png" alt="alt text" width="100%"></a></p>
</div>
</div>
<div id="install-git-on-your-computer" class="section level2">
<h2>Install Git on your computer</h2>
<div id="windows-and-osx" class="section level3">
<h3>Windows and OSX</h3>
<p><a href="http://git-scm.com/downloads" class="uri">http://git-scm.com/downloads</a></p>
</div>
<div id="linux" class="section level3">
<h3>Linux</h3>
<p><code>sudo apt-get install git</code> or similar</p>
</div>
</div>
<div id="creating-an-account-on-github" class="section level2">
<h2>Creating an account on <a href="github.com">GitHub</a></h2>
<ol style="list-style-type: decimal">
<li>Create a GitHub account at <a href="https://github.com/" class="uri">https://github.com/</a>
<ul>
<li>This will be a public account associated with your name</li>
<li>Choose a username wisely for future use</li>
<li>Don’t worry about details, you can fill them in later</li>
</ul></li>
<li>Create a repository called <em>demo</em>
<ul>
<li>Add a brief and informative description</li>
<li>Choose “Public”</li>
<li>Check the box for “Initialize this repository with a README”</li>
</ul></li>
<li>Click “Create Repository”</li>
</ol>
</div>
<div id="in-rstudio-clone-the-repository" class="section level2">
<h2>In RStudio: <code>clone</code> the repository</h2>
<ol style="list-style-type: decimal">
<li>Go to RStudio
<ul>
<li>File -> New Project</li>
<li>Version Control: Checkout a project from a version control repository</li>
<li>Git: Clone a project from a repository</li>
</ul></li>
<li>Fill in the info:
<ul>
<li>URL: use HTTPS address</li>
<li>Create as a subdirectory of: Browse and create a new folder called <code>GEO503</code> (or similar)</li>
</ul></li>
</ol>
<p>To set up a connection that doesn’t require you to type in your password every time, <a href="GitSSHNotes.html">see here</a></p>
</div>
<div id="commit-to-github-from-within-rstudio" class="section level2">
<h2>Commit to GitHub from within RStudio</h2>
<div id="steps" class="section level3">
<h3>Steps:</h3>
<ol style="list-style-type: decimal">
<li>Edit: make changes to a file in the repository you cloned above</li>
<li>Stage: tell git which changes you want to commit</li>
<li>Commit (with a message)</li>
<li>Push: send the updated files to GitHub</li>
</ol>
</div>
</div>
<div id="staging" class="section level2">
<h2>Staging</h2>
<p><img src="11_assets/Stage.png" alt="alt text" width="75%"></p>
<p>Select which changed files (added, deleted, or edited) you want to commit.</p>
</div>
<div id="committing" class="section level2">
<h2>Committing</h2>
<p><img src="11_assets/Commit.png" alt="alt text" width="100%"></p>
<p>Add a <em>commit message</em> and click commit.</p>
</div>
<div id="syncing-push" class="section level2">
<h2>Syncing (<code>push</code>)</h2>
<p><img src="11_assets/Push.png" alt="alt text" width="100%"></p>
<p>Click the green arrow to sync with GitHub.</p>
</div>
<div id="git-file-lifecycle" class="section level2">
<h2>Git File Lifecycle</h2>
<p><img src="11_assets/lifecycle.png" alt="alt text" width="100%"></p>
</div>
<div id="git-command-line-from-rstudio" class="section level2">
<h2>Git command line from RStudio</h2>
<p>RStudio has limited functionality.</p>
<p><img src="11_assets/CommandLine.png" alt="alt text" width="75%"></p>
</div>
<div id="git-help" class="section level2">
<h2>Git help</h2>
<pre><code>$ git help <verb>
$ git <verb> --help
$ man git-<verb></code></pre>
<p>For example, you can get the manpage help for the config command by running <code>git help config</code></p>
</div>
<div id="git-status" class="section level2">
<h2>Git status</h2>
<p><img src="11_assets/GitCL.png" alt="alt text" width="75%"></p>
<p>Similar to info in git tab in RStudio</p>
</div>
<div id="git-config" class="section level2">
<h2>Git config</h2>
<p><code>git config</code> shows you all the git configuration settings:</p>
<ul>
<li><code>user.email</code></li>
<li><code>remote.origin.url</code> (e.g. to connect to GitHub)</li>
</ul>
</div>
<div id="branching" class="section level2">
<h2>Branching</h2>
<p>Branches used to develop features isolated from each other. <img src="11_assets/Merge.png" alt="alt text" width="100%"></p>
<p>Default: <em>master</em> branch. Use other branches for development/collaboration and merge them back upon completion.</p>
</div>
<div id="basic-branching" class="section level2">
<h2>Basic Branching</h2>
<pre><code>$ git checkout -b devel # create new branch and switch to it
$ git checkout master #switch back to master
$ git merge devel #merge in changes from devel branch</code></pre>
<p>But we won’t do much with branching in this course…</p>
</div>
<div id="git-can-do-far-more" class="section level2">
<h2>Git can do far more!</h2>
<p>Check out the (free) book <a href="https://git-scm.com/book/en/v2">ProGIT</a></p>
<p><img src="11_assets/progit2.png" alt="alt text" width="30%"></p>
<p>Or the <a href="https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf">cheatsheet</a>.</p>
</div>
<div id="philosphy" class="section level2">
<h2>Philosphy</h2>
<p>Remember, the data and code are <em>real</em>, the products (tables, figures) are ephemeral…</p>
</div>
<div id="git-and-rmarkdown" class="section level2">
<h2>Git and RMarkdown</h2>
<div id="visualize-.md-on-github" class="section level3">
<h3>Visualize .md on GitHub</h3>
<p>Update the YAML header to keep the markdown file</p>
<p>From this:</p>
<pre class="r"><code>title: "Untitled"
author: "Adam M. Wilson"
output: html_document</code></pre>
<p>To this:</p>
<pre class="r"><code>title: "Demo"
author: "Adam M. Wilson"
output:
html_document:
keep_md: true</code></pre>
<p>And click <code>knit HTML</code> to generate the output</p>
</div>
</div>
<div id="visualize-example" class="section level2">
<h2>Visualize example</h2>
<p><img src="11_assets/ghmd.png" alt="alt text" width="50%"></p>
<div id="explore-markdown-git" class="section level3">
<h3>Explore markdown<->Git</h3>
<ol style="list-style-type: decimal">
<li>Use <em>File -> New File -> R Markdown</em> to create a new markdown file.<br />
</li>
<li>Use the Cheatsheet to add sections (<code>#</code> and <code>##</code>) and some example narrative.<br />
</li>
<li><code>Stage</code>, <code>Commit</code>, <code>Push</code>!</li>
<li>Make more changes then <code>Stage</code>, <code>Commit</code>, <code>Push</code>!</li>
<li>Explore the markdown file on your GitHub website.</li>
</ol>
<p><br></p>
</div>
</div>
<div id="motivations-claerbouts-principle" class="section level2">
<h2>Motivations: Claerbout’s principle</h2>
<blockquote>
<p>“An article about computational result is advertising, not scholarship. The actual scholarship is the full software environment, code and data, that produced the result.” <small> Claerbout and Karrenbach, Proceedings of the 62nd Annual International Meeting of the Society of Exploration Geophysics. 1992</small></p>
</blockquote>
</div>
<div id="colophon" class="section level2">
<h2>Colophon</h2>
<ul>
<li><a href="https://github.com/benmarwick/CSSS-Primer-Reproducible-Research">Slides based on Ben Marwick’s presentation to the UW Center for Statistics and Social Sciences (12 March 2014)</a> (<a href="http://orcid.org/0000-0001-7879-4531">OrcID</a>)</li>
<li>Git Slides based on materials from Dr. Çetinkaya-Rundel</li>
</ul>
</div>
</div>
<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-2684666-2', 'auto');
ga('send', 'pageview');
</script>
<!-- disqus -->
<div id="disqus_thread" style="margin-top: 45px;"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'rdataanalysis'; // required: replace example with your forum shortname
var disqus_identifier = "{{ page.url }}";
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq );
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">
comments powered by Disqus.</a>
</noscript>
<!-- give the footer some space -->
<br/>
<br/>
<footer id="site-footer">
<div id="footer1">
<a href="http://www.adamwilson.us"><img src="img/wilson.png" alt="logo" width=40px></a>
<a href="http://adamwilson.us/#contact"><i class="fa fa-envelope fa-2x"></i></a>
<a href="https://twitter.com/AdamWilsonLab"><i class="fa fa-twitter fa-2x"></i></a>
<a href="https://github.com/AdamMWilson"><i class="fa fa-github fa-2x"></i></a>
</div>
<div id="footer2">
<a rel="license" property="http://creativecommons.org/ns#license"
href="http://creativecommons.org/licenses/by/4.0/" ><img src="img/cc-by.svg" alt="cc-by"/></a>
</div>
</footer>
</div>
<script>
// add bootstrap table styles to pandoc tables
$(document).ready(function () {
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
});
</script>
</body>
</html>