Skip to content

Instantly share code, notes, and snippets.

@lievcin
lievcin / Makefile
Created July 18, 2023 09:59 — forked from genyrosk/Makefile
Makefile for a Python environment with pyenv-virtualenv
SHELL:=/bin/bash
PROJECT=project
VERSION=3.7.4
VENV=${PROJECT}-${VERSION}
VENV_DIR=$(shell pyenv root)/versions/${VENV}
PYTHON=${VENV_DIR}/bin/python
JUPYTER_ENV_NAME=${VENV}
JUPYTER_PORT=8888
## Make sure you have `pyenv` and `pyenv-virtualenv` installed beforehand
@lievcin
lievcin / postsxml2csv.py
Created November 26, 2017 20:39 — forked from tripleee/postsxml2csv.py
postsxml2csv
#!/usr/bin/env python3
# -*- python -*-
from xml.etree import cElementTree
import csv
# Copy/paste from the help section on SEDE
# http://data.stackexchange.com/stackoverflow/query/new
schema = [