Skip to content

Instantly share code, notes, and snippets.

@epintos
epintos / mediumStoriesStats.js
Last active January 22, 2023 10:39
Export Medium Stats Stores to CSV
// Run Inspector Console in chrome and copy and paste the following code in the /stats/stories view
function download(filename, text) {
var pom = document.createElement('a');
pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
pom.setAttribute('download', filename);
if (document.createEvent) {
var event = document.createEvent('MouseEvents');
event.initEvent('click', true, true);
@drmalex07
drmalex07 / argparse-example-1.py
Last active May 24, 2021 17:29
A typical example of Python's argparse combined with configparser . #python #argparse #configparser
import os
import logging
import argparse
import ConfigParser as configparser
from paste.deploy.converters import asbool, asint, aslist
#
# Declare expected command-line arguments
#