Skip to content

Instantly share code, notes, and snippets.

davegorst

Block or report user

Report or block davegorst

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davegorst
davegorst / plasma_hat.py
Created Jun 4, 2017
Show plasma animation on Raspberry Pi Sense HAT LED
View plasma_hat.py
#!/usr/bin/python
import evdev
from sense_hat import SenseHat
from math import *
from time import sleep
import colorsys
import numpy
from datetime import datetime, timedelta
@davegorst
davegorst / findme.py
Created Feb 8, 2017
Some code to retrieve position from IP address
View findme.py
#!/usr/bin/python3
# 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
davegorst / Unshield list
Created Sep 16, 2014
CNCTFD .cab file contents
View Unshield list
Cabinet: ./data1.cab
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
You can’t perform that action at this time.