A cheat sheet with the patterns I apply to draw a Circle of Fifths from memory and some more nice little things you can read from it once it's drawn.
Draw a circle with twelve markers clockwise
# -*- coding: utf-8 -*- | |
"""Update script for AutoDNS / InternetX. | |
Requires: | |
- https://pypi.org/project/requests/ | |
- https://pypi.org/project/click/ | |
""" | |
import logging | |
from re import match |
# -*- coding: utf-8 -*- | |
"""Proof-of-concept. | |
This scripts tries to document the drawbacks of the paywall used on General-Anzeiger Bonn. | |
http://gabonn.de/ | |
As with many other paywalls the content behind the paywall is still present – in this | |
case with letter-randomized "blurred" words. The raw data itself can easily be obtained | |
with any HTML parser like BeautifulSoup. |
*.md | |
!README.md | |
node_modules/ |
FROM ubuntu:17.10 | |
# Install basic environment | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | |
wget vim git iputils-ping python3 python3-pip unzip | |
RUN echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_17.04/ /' > /etc/apt/sources.list.d/owncloud-client.list | |
RUN wget -nv https://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_17.04/Release.key -O Release.key | |
RUN apt-key add - < Release.key | |
RUN apt-get update && apt-get upgrade -y |
#!/bin/bash | |
# Where to put the google drive data? | |
target_folder="/where/to/put/data" | |
# Make sure this script only runs once to be used in crontab | |
lock_file=${target_folder}/LOCKFILE | |
if [ -f $lock_file ]; then echo "Locked."; exit 0; fi | |
touch $lock_file |
#!/bin/bash |
/* | |
A COMPACT KIOSK-LIKE THEME FOR JIRA KANBAN BOARD | |
@BastiTee | |
URL-FILTERING | |
------------- | |
- Use this regex in stylus/browser: .*rapidView=42[^v]* | |
- Make sure to change the '42' to your board's number | |
*/ |
package com.acme.jvm | |
import java.util.stream.Stream | |
typealias Board = List<List<Boolean>> | |
fun step(board: Board) = board.mapIndexed { rowIdx, row -> | |
row.mapIndexed { colIdx, cellAlive -> | |
neighboursAlive(board, rowIdx, colIdx) in if (cellAlive) 2..3 else 3..3 | |
} |
# #!/bin/bash | |
function aws_get_file() { | |
# Returns the file as binary | |
# | |
aws_request "GET" "-XGET" "$1" | |
} | |
function aws_get_file_metadata { | |
# Returns a string like: |