Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import yaml
SERVERS = [
(
"asyncssh",
"images/asyncssh",
22000,
[
"2.0.0",
lyrics:
bing_lang_from: []
auto: yes
bing_client_secret: REDACTED
bing_lang_to:
google_API_key: REDACTED
google_engine_ID: REDACTED
genius_api_key: REDACTED
fallback:
force: no
TITLE "Die Schatzinsel"
PERFORMER "Robert Louis Stevenson gelesen von Simon Jäger"
FILE "Schatzinsel_CD1-5.mp3" MP3
TRACK 01 AUDIO
REM "CD 1 - Teil 1: Der alte Freibeuter"
PERFORMER "Robert Louis Stevenson gelesen von Simon Jäger"
TITLE "1. Kapitel: Der alte Seehund im Admiral Benbow"
INDEX 01 00:00:00
TRACK 02 AUDIO
PERFORMER "Robert Louis Stevenson gelesen von Simon Jäger"
#!/usr/bin/env python3
import logging
import requests
import urllib.parse
import netrc
import pprint
class BearerAuth(requests.auth.AuthBase):
def __init__(self, token):
#!/usr/bin/env python3
"""
Alternative lp2gh JSON Importer for Mixxx issue migration
You can install this like this:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install PyGithub
#!/usr/bin/env python3
"""
Alternative lp2gh JSON Importer for Mixxx issue migration
You can install this like this:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install PyGithub
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows, calc, chains, positioning}
\begin{document}
\begin{tikzpicture}[node distance = 4mm and 0mm,
box/.style = {shape=rectangle, draw, minimum size=2em, outer sep=0pt, on chain=#1},
sum/.style = {shape=circle, draw, inner sep=0pt, node contents={$+$}},
every path/.append style = {-latex'}
[2021-03-26T19:38:28+0100] [PACMAN] Running 'pacman -S -y -u --config /etc/pacman.conf --'
[2021-03-26T19:38:28+0100] [PACMAN] synchronizing package lists
[2021-03-26T19:38:30+0100] [PACMAN] starting full system upgrade
[2021-03-26T19:40:37+0100] [ALPM] running '60-mkinitcpio-remove.hook'...
[2021-03-26T19:40:37+0100] [ALPM] running 'ghc-unregister.hook'...
[2021-03-26T19:40:49+0100] [ALPM] transaction started
[2021-03-26T19:40:49+0100] [ALPM] upgraded gtk-update-icon-cache (1:4.0.3-2 -> 1:4.0.3-3)
[2021-03-26T19:40:50+0100] [ALPM] upgraded adwaita-icon-theme (3.38.0-1 -> 40rc-1)
[2021-03-26T19:40:50+0100] [ALPM] upgraded gsettings-desktop-schemas (3.38.0-1 -> 40.0-1)
[2021-03-26T19:40:50+0100] [ALPM] upgraded openssl (1.1.1.j-1 -> 1.1.1.k-1)
{
"macos-macosintel": {
"commit_id": "2d60e7d080cc8e8009cb062ebfd421971fa34686",
"commit_url": "https://github.com/Holzhaus/mixxx/commit/2d60e7d080cc8e8009cb062ebfd421971fa34686",
"build_log_url": "https://github.com/Holzhaus/mixxx/actions/runs/687860175",
"file_url": "https://downloads.mixxx.org/builds/deploy-manifest/macOS/Mixxx-deploy-manifest-r8104-2d60e7d080.dmg",
"file_size": 34146745,
"file_date": "2021-03-25T20:53:13.300074",
"file_sha256": "b5958a50feeb118e8d5f535f87237af4b407b7b1adafab40e927a1b267df5910"
},
import numpy as np
import matplotlib.pyplot as plot
def analog(subplot):
# Get x values of the sine wave
time = np.arange(0, 10, 0.001)
# Amplitude of the sine wave is sine of a variable like time
amplitude = np.sin(time)