Skip to content

Instantly share code, notes, and snippets.

View stephensekula's full-sized avatar

Stephen Sekula stephensekula

View GitHub Profile
@stephensekula
stephensekula / HEPAuthorStudy.py
Last active July 17, 2019 00:27
A script for retrieving "big science" data from INSPIREHEP.net. Created to harvest data for the SMU-in-Taos Cultural Institute, 2019, for the course "The Secret City: Los Alamos and the Atomic Age"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Name: HEPAuthorStudy
# Description: A script for retrieving "big science" data from INSPIREHEP.net.
# Created to harvest data for the SMU-in-Taos Cultural Institute,
# 2019, for the course "The Secret City: Los Alamos and the
# Atomic Age". The idea was to study the number of accelerator-
# based experiments, and the size of author lists from those
# experiments, as a function of time from before WWII to well
@stephensekula
stephensekula / gist:47820ab98ae44ae322325bf9df8b2162
Last active May 24, 2019 02:31
RSS Liberator (from iTunes Feed)
#!/usr/bin/env python3
import subprocess
import re
import sys
import json
re_iTunes = re.compile('http.*id([0-9]+)')
url_iTunes = sys.argv[1]
@stephensekula
stephensekula / extradimenions_5D_KK_example
Created June 23, 2017 16:27
A visualization of circle-compactified 5-D Kaluza-Klein extra dimensions.
from vpython import *
import math
# Create a display
scene2 = canvas(title='Kaluza-Klein Extra Dimensions - 5D',
x=0, y=0, width=1024, height=768,
center=vector(0,-20,0), background=vector(0,0,0))