Skip to content

Instantly share code, notes, and snippets.

@uafrazier
uafrazier / GitHub-Forking.md
Created October 10, 2017 14:25 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@uafrazier
uafrazier / index.html
Created November 23, 2015 04:30
D3: Texas Tornado Map (2014) v2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3: Texas Tornados</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Oswald:700,400);
body {
font-family: oswald, arial, sans-serif;
@uafrazier
uafrazier / index.html
Last active November 21, 2015 21:14
D3: Texas Tornado Map (2014)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3: Texas Tornados</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Oswald:700,400);
body {
font-family: oswald, arial, sans-serif;
@uafrazier
uafrazier / index.html
Last active November 12, 2015 17:21
D3: Map of Texas
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3: Map of Texas</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Oswald:700,400);
@uafrazier
uafrazier / index.html
Last active November 5, 2015 14:36
D3: Stacked Bar Chart (Smartphone OS Marketshare)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Knight Center D3: Stack Bar Chart</title>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Oswald:700,400);
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
body {
@uafrazier
uafrazier / index.html
Last active October 29, 2015 01:41
D3: Bar Chart (Networked Readiness Index - 2014)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Knight D3 | Module 1</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Oswald:700,400);
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
@uafrazier
uafrazier / index.html
Last active September 13, 2019 10:20
D3: Multi-Line Chart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>US Passports 1996-2014</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background:#24263F;
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 17 columns, instead of 9. in line 4.
id,name,owner_login,owner_id,owner_type,html_url,description,fork,created_at,updated_at,pushed_at,size,stargazers_count,language,forks_count,open_issues_count,score
943149,d3,mbostock,230541,User,https://github.com/mbostock/d3,A JavaScript visualization library for HTML and SVG.,FALSE,2010-09-27T17:22:42Z,2015-03-24T12:36:05Z,2015-03-20T19:01:30Z,72805,35863,JavaScript,9047,229,34.62675
2400938,fnordmetric,paulasmuth,564023,User,https://github.com/paulasmuth/fnordmetric,FnordMetric allows you collect and visualize timeseries data with SQL.,FALSE,2011-09-16T17:58:37Z,2015-03-24T05:48:15Z,2015-03-24T12:23:03Z,18137,4525,C++,362,89,9.765476
11010098,epoch,fastly,777070,Organization,https://github.com/fastly/epoch,"A general purpose, real-time visualization library.",FALSE,2013-06-27T23:04:32Z,2015-03-24T11:30:39Z,2015-03-08T03:44:15Z,3504,3911,HTML,186,45,24.238726
3859306,cubism,square,82592,Organization,https://github.com/square/cubism,Cubism.js: A JavaScript library for time series visualization.,FALSE,2012-0
@uafrazier
uafrazier / github-api-visualization-cleaned.csv
Last active August 29, 2015 14:18
D3: Bar Chart with Scales and Axes
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 17 columns, instead of 9. in line 4.
id,name,owner_login,owner_id,owner_type,html_url,description,fork,created_at,updated_at,pushed_at,size,stargazers_count,language,forks_count,open_issues_count,score
943149,d3,mbostock,230541,User,https://github.com/mbostock/d3,A JavaScript visualization library for HTML and SVG.,FALSE,2010-09-27T17:22:42Z,2015-03-24T12:36:05Z,2015-03-20T19:01:30Z,72805,35863,JavaScript,9047,229,34.62675
2400938,fnordmetric,paulasmuth,564023,User,https://github.com/paulasmuth/fnordmetric,FnordMetric allows you collect and visualize timeseries data with SQL.,FALSE,2011-09-16T17:58:37Z,2015-03-24T05:48:15Z,2015-03-24T12:23:03Z,18137,4525,C++,362,89,9.765476
11010098,epoch,fastly,777070,Organization,https://github.com/fastly/epoch,"A general purpose, real-time visualization library.",FALSE,2013-06-27T23:04:32Z,2015-03-24T11:30:39Z,2015-03-08T03:44:15Z,3504,3911,HTML,186,45,24.238726
3859306,cubism,square,82592,Organization,https://github.com/square/cubism,Cubism.js: A JavaScript library for time series visualization.,FALSE,2012-0
@uafrazier
uafrazier / index.html
Created April 4, 2015 13:59
Centered
<!DOCTYPE html>
<html lang="en">
<head>
<title>Centered</title>
<meta charset="utf-8">