-- 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; } } |