Skip to content

Instantly share code, notes, and snippets.

davegorst /
Created Jun 4, 2017
Show plasma animation on Raspberry Pi Sense HAT LED
import evdev
from sense_hat import SenseHat
from math import *
from time import sleep
import colorsys
import numpy
from datetime import datetime, timedelta
davegorst /
Created Feb 8, 2017
Some code to retrieve position from IP address
# Attempt to determine your position (including latitude and longitude) using your current IP address.
# Unless specified your latitude and longitude will be written to ~/.sunrise/location.ini
# Requires a recent version of Python (preferably 3+).
import sys
import urllib.request
import json
from html.parser import HTMLParser
if sys.version_info < (3,5):
davegorst / Unshield list
Created Sep 16, 2014
CNCTFD .cab file contents
View Unshield list
Cabinet: ./
3004 [DirectX (9.0c)]NS_NSR_NPL_1_0009___2\StringTable-0009-English.ips
548963 [DirectX (9.0c)]NS_NSR_NPL_1_0009___3\_IsRes.dll
385024 <Support>English Files\_IsRes.dll
153720 Zero Hour\00000000.016
308276 Zero Hour\00000000.256
58326522 Zero Hour\AudioEnglishZH.big
23965542 Zero Hour\AudioZH.big
358963 Zero Hour\BINKW32.DLL
41472 Zero Hour\DrvMgt.dll