This Gist archives metadata for replaced DeepDive release assets, from which we can sum download counts, etc.
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
// Scroll to selection focus, but only if it's out of view. Align selection | |
// focus with the top or bottom edge of its scroll-container. Return true | |
// on success. | |
// * there might be several nested scroll-containers, including window | |
// * must not try to scroll overflow:hidden and overflow:visible elements | |
// * no scrolling should happen if selection focus is visible | |
// * selection is not necessarily collapsed | |
// * range.getBoundingClientRect doesn't work for collapsed ranges | |
// * Opera reports incorrect startOffset and endOffset for collapsed ranges | |
// outside of text nodes (e.g. between 2 <br> elements), range.insertNode |
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
import re | |
import csv | |
import json | |
import sys | |
import requests | |
from requests.auth import HTTPBasicAuth | |
import hashlib | |
''' | |
Usage: 'python3 mysqlToJson.py <targetFile.sql> | |