Skip to content

Instantly share code, notes, and snippets.

View tswast's full-sized avatar

Tim Sweña (Swast) tswast

View GitHub Profile
@tswast
tswast / bigquery_github.py
Created September 12, 2018 21:26 — forked from crwilcox/bigquery_github.py
Scan GitHub using BigQuery
from google.cloud import bigquery
import json
GITHUB_USERNAME = 'crwilcox'
START_DATE = "2018-03-05"
END_DATE = "2018-08-31"
client = bigquery.client.Client()
query = f"""SELECT repository, type, event AS status, COUNT(*) AS count
@tswast
tswast / README.md
Last active December 10, 2015 05:48 — forked from mbostock/.block
Multi-Series Line to Stacked Area Chart Transition

This stacked area chart is constructed from a TSV file storing the market share of several popular web browsers over the last year. Data is from Clicky Web Analytics. The chart employs conventional margins and a number of D3 features: