Skip to content

Instantly share code, notes, and snippets.

View mauruskuehne's full-sized avatar

Maurus Kühne mauruskuehne

View GitHub Profile
@mauruskuehne
mauruskuehne / add-spaces-to-things.py
Created December 27, 2018 18:30
add all 35C3 spaces to a new things list. Explore ALL the spaces!
import json, requests, urllib, subprocess
language = "de" # switch to "en" for english names
resp = requests.get("https://35c3.c3nav.de/api/spaces/")
spaces = json.loads(resp.text)
addToThingsUri = "things:///add"
proj = "things:///add-project?title=35C3 Spaces"
@mauruskuehne
mauruskuehne / AddressSplitterByFormating.vba
Created March 30, 2017 19:36
VBA Macro that splits addresses in an excel column by formatting and puts them in separate workbooks
Sub MoveAdr(lastCellOfInput As Range, firstRowOfOutput As Range, rowCount As Integer)
Dim i As Integer
For i = 0 To rowCount - 1
firstRowOfOutput.Offset(0, i).Value = lastCellOfInput.Offset(i, 0).Value
Next i
End Sub
Sub Macro1()
@mauruskuehne
mauruskuehne / main.swift
Last active December 20, 2015 18:44 — forked from psrb/main.swift
The Computer Language Benchmarks Game - Swift binary trees
import CoreFoundation
func type1(n:Int) {
/* The Computer Language Benchmarks Game
http://benchmarksgame.alioth.debian.org/
contributed by David Turnbull
*/
struct TreeNodeItem {