Skip to content

Instantly share code, notes, and snippets.

@rjw57
rjw57 / vector_pipeline.json
Created April 22, 2012 16:03
Foldbeam vector test #1
{
"outputs": {
"output": "composite:output"
},
"nodes": {
"vector": {
"type": "foldbeam.vector:VectorRendererNode",
"parameters": {
"sql": "SELECT * FROM Stops WHERE BusStopType = \"MKD\"",
"pen_rgba": [
@rjw57
rjw57 / cmplx.c
Created May 17, 2012 14:46
Complex number arithmetic
/* Pre-processor directive */
#include <stdio.h>
#include <math.h>
/*Type def */
typedef struct
{
float real;
float imag;
} complex;
/* Function prototypes */
@rjw57
rjw57 / idevicefirmwares.py
Created May 18, 2012 15:03
Extract all firmware URLs from the Apple iDevice firmware list
#!/usr/bin/env python2
from __future__ import print_function
import logging
import urllib2
import plistlib
import sys
log = logging.getLogger()
@rjw57
rjw57 / bayes-arch.txt
Created October 30, 2012 19:11
Bayesian Archaeology paper referecnes
A Bayesian approach to seriation problems in archaeology
http://www.sciencedirect.com/science/article/pii/S0167947303000343
A Bayesian Approach to Ageing Perinatal Skeletal Material from Archaeological Sites: Implications for the Evidence for Infanticide in Roman-Britain
http://www.sciencedirect.com/science/article/pii/S0305440301907769#
Bayesian interpretation of radiocarbon results (thesis)
http://etheses.nottingham.ac.uk/1035/1/359686.pdf
Spatial and Multivariate Analysis, Random Sampling Error, and Analytical Noise: Empirical Bayesian Methods at Teotihuacan, Mexico
@rjw57
rjw57 / realtime-traffic-info.ipynb
Last active December 16, 2015 10:39
A simple IPython notebook showing how to retrieve realtime traffic information in the UK, specifically within England.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rjw57
rjw57 / highways-agency-links.ipynb
Last active December 16, 2015 11:28
An example of plotting some of the data from https://github.com/rjw57/highways-agency-live-traffic
@rjw57
rjw57 / CGSPrivate.h
Last active December 2, 2022 06:36
CGSPrivate.h - undocumented APIs for OSX. Re-licensed under MIT licence.
/* CGSPrivate.h -- Header file for undocumented CoreGraphics stuff. */
/* This file is a relicensed portion of DesktopManager and was originally released under
* the terms of the GNU General Public Licence. Original licence text follows the new terms.
* The contents of this file has been re-released by the original author under the following terms:
*
* Copyright (C) 2003, 2004, 2013 Richard J Wareham <richwareham@users.sourceforge.net>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
@rjw57
rjw57 / cat-position-data.json
Last active December 18, 2015 12:10
Extracted data from BBC's "Secret life of cats" http://www.bbc.co.uk/news/science-environment-22567526 JSON file gives timestamped pixel locations in map images. Map images copied from BBC website.
{
"cats": [
{
"videoLabel": "Ginger confronts a rival",
"name": "Ginger",
"metersToShow": 60,
"color": "#0D7C35",
"videoLocation": [
74.44,
250.92
@rjw57
rjw57 / england-basemap-osgrid.tiff
Last active September 22, 2018 20:00
A Python script to plot the current delay times on England's major road links.
@rjw57
rjw57 / twython-geo-tag.ipynb
Created June 25, 2013 13:34
An IPython notebook demonstrating how to determine tweet locations with Twython.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.