Skip to content

Instantly share code, notes, and snippets.

View timofurrer's full-sized avatar
Commits are my own. Powered by coffee.

Timo Furrer timofurrer

Commits are my own. Powered by coffee.
View GitHub Profile
@timofurrer
timofurrer / gist:83a313a0b0a79c740d2598349670b639
Last active June 13, 2018 20:31
URL to find issues I participated in
https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+involves%3Atimofurrer&type=Issues&ref=searchresults

Rekursion

  • Selbstaehnlichkeit -> Ein Verzeichnis enthaelt Dateien und andere Verzeichnisse

Iteration vs. Rekursion

Iteration

Wiederholend

#!/bin/sh
MODULES='
CNA:3264958
AD:3264934
FKOM:3265225
PMB:3265214
'
BASE_URL='https://elearning.hslu.ch/ilias/webdav.php/hslu'
@timofurrer
timofurrer / __main__.py
Created March 2, 2017 21:08
__main__.py
# -*- coding: utf-8 -*-
"""
This module provides a script to document Radish step implementations
"""
from sys import exit
from os.path import split
"""
Find a name for the given characters
"""
import sys
import csv
import codecs
import subprocess
chars = set([
# -*- coding: utf-8 -*-
"""
Parse compiled terminfo DB files
python terminfo.py /usr/share/terminfo adm3a
"""
import os
# -*- coding: utf-8 -*-
"""
Parse compiled terminfo DB files
python terminfo.py /usr/share/terminfo adm3a
"""
import os
#!/bin/bash
set -e
ENSURE_SSH=false
while [ -n "$1" ]; do
case "$1" in
-i|--image)
IMAGE="$2"; shift 2
#[derive(Debug)]
struct Attribute<'a> {
name: &'a str,
url: &'a str,
}
fn main() {
let attributes = vec![
Attribute {
name: "Batman",
@timofurrer
timofurrer / prioritylock.py
Created June 28, 2019 12:09
Python 3 Implementation of prioritized Lock objects
"""
This module implements a set of prioritized locks.
Implemented:
* PriorityLock
* FIFOPriorityLock
License: MIT <[email protected]>
"""