Skip to content

Instantly share code, notes, and snippets.

@Gnonthgol
Gnonthgol / transfer.py
Last active April 8, 2020 11:52
Transfer angles for every circular orbit
#! /usr/bin/python
#
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <Gnonthgol@gmail.com> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return Gnonthgol
# ----------------------------------------------------------------------------
#
@Gnonthgol
Gnonthgol / gist:5767038
Last active December 18, 2015 10:09
osm donations ticker
import os
import time
import urllib2
from HTMLParser import HTMLParser
url = 'http://donate.osm.org/comments/'
class DonationHTMLParser(HTMLParser):
donations = []
keys = ['name', 'when', 'amount']
@Gnonthgol
Gnonthgol / veglister.py
Created October 28, 2012 12:46
Scraperwiki som hentar veglengder frå veglistene til vegvesenet
#Scraperwiki som hentar veglengder frå veglistene til vegvesenet
#Av Gnonthgol
import scraperwiki
import urllib2
import lxml.etree
import re
res = {}
CFLAGS = -g `pkg-config --cflags glib-2.0` `libgcrypt-config --cflags`
LDFLAGS = `pkg-config --libs glib-2.0` `libgcrypt-config --libs`