Skip to content

Instantly share code, notes, and snippets.

@jvangael
jvangael / gist:25f017952f367f6248b3dcceead7ad48
Created August 7, 2023 13:25
Quick hack to crawl the planning website of the South Cambridgeshire District Council
import argparse
import csv
import logging
import os
import requests
import random
import re
import sys
import time

Keybase proof

I hereby claim:

  • I am jvangael on github.
  • I am jvangael (https://keybase.io/jvangael) on keybase.
  • I have a public key whose fingerprint is 8EED 29BE 683E 948C A643 FF56 1449 E99F 2742 3DE4

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jvangael
jvangael / 2013_bigo_meetup
Last active December 24, 2015 12:19
My presentation on numerical optimization for the October 2013 London Big O Meetup: http://www.meetup.com/big-o-london/
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@jvangael
jvangael / json2csv.py
Created January 24, 2013 09:45
Little utility to transform a file with lines of json into a csv. The utility accepts a list of field names it will look for in the json and turn them into columns of the csv. This script relies on docopt and unicodecsv packages.
#!/usr/bin/env python
"""Reads json lines from stdin and write csv to stdout.
Usage:
json2csv.py -f <field>...
json2csv.py -h | --help
json2csv.py --version
Options:
-h --help Show this screen.
@jvangael
jvangael / math.net-onlinestats.cs
Created April 12, 2011 21:33
Math.Net Numerics - Online computation of statistics
using System;
using System.IO;
using System.Linq;
using MathNet.Numerics.Random;
using MathNet.Numerics.Statistics;
using MathNet.Numerics.Distributions;
using System.Collections.Generic;
using System.Diagnostics;
namespace RunningVariance