Skip to content

Instantly share code, notes, and snippets.

View rgbkrk's full-sized avatar
🌎
Think globally, act locally

Kyle Kelley rgbkrk

🌎
Think globally, act locally
View GitHub Profile
@rgbkrk
rgbkrk / big_query_examples.md
Created May 25, 2017 18:45 — forked from arfon/big_query_examples.md
BigQuery Examples for blog post

How many times shouldn't it happen...

-- https://news.ycombinator.com/item?id=11396045

SELECT count(*)
FROM (SELECT id, repo_name, path
        FROM [bigquery-public-data:github_repos.sample_files]
 ) AS F
@rgbkrk
rgbkrk / dabblet.css
Created January 12, 2017 01:32 — forked from LeaVerou/dabblet.css
The cicada principle in animations
/**
* The cicada principle in animations
* Remember the cicada principle that used prime numbers to make multiple overlaid repeated backgrounds seem more random?
* There’s no reason it can’t be applied to repeating linear animations too (using primes for the durations, divided by 10)
*/
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes radius { 50% { border-radius: 50%; } }
@keyframes color { 33% { color: rebeccapurple; } 66% { color: deeppink } }
@keyframes width { 50% { border-width: .3em; } }
@rgbkrk
rgbkrk / dabblet.css
Last active January 3, 2017 18:43 — forked from csssecrets/dabblet.css
Pseudorandom stripes
/**
* Pseudorandom stripes
*/
background: #D5D5D5;
background-image:
linear-gradient(89deg, #EEE 23px, transparent 0),
linear-gradient(97deg, #DDD 17px, transparent 0),
linear-gradient(101deg, #D0D0D0 23px, transparent 0);
background-size: 83px 100%, 61px 100%, 41px 100%;
#!/usr/bin/python
import hashlib
import time
try:
from urllib.request import urlopen
except ImportError:
from urllib import urlopen
url = ('https://pypi.python.org/packages/source/v/virtualenv/' +
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.