Skip to content

Instantly share code, notes, and snippets.

View johnp's full-sized avatar

Johannes Pfrang johnp

View GitHub Profile
@johnp
johnp / inputSpeed.c
Created September 24, 2012 00:44
Measure the maximum speed of GPIO input polling using native C register access
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sched.h>
@johnp
johnp / iconLoader.py
Created May 5, 2012 18:18
WoT-XVM iconLoader.py
# Python version 3.2
import sys;
import json;
import urllib.request;
"""
Change URLs according to server region.
Import by "import iconLoader from iconLoader" in python shell
Execute e.g. iconLoader("WG");
-> Downloads 24x24 icon and adds formatted config line to clanlist.txt