Skip to content

Instantly share code, notes, and snippets.

View MasterOdin's full-sized avatar

Matthew Peveler MasterOdin

View GitHub Profile
@MasterOdin
MasterOdin / Dockerfile
Created June 25, 2018 10:52
asciidoc-alpine
# You can specify a specific python version of slim (based on Debian stretch, see https://hub.docker.com/_/python/)
# by doing --build-arg PYTHON_VERSION=<version> on the build command, and it defaults to Python 3.6
ARG PYTHON_VERSION=3.6
FROM python:${PYTHON_VERSION}-alpine
ENV GLIBC_VERSION 2.27-r0
ENV LILYPOND_VERSION 2.18.2-1
ENV DVISVGM_VERSION 2.4
ENV SOURCE_HIGHLIGHT_VERSION 3.1.8
From 0bae5587888cd251a14bd9068658a21fc7ba7ad2 Mon Sep 17 00:00:00 2001
From: Matthew Peveler <[email protected]>
Date: Mon, 23 Sep 2019 12:18:39 -0300
Subject: [PATCH 1/2] add __lt__ method for py2 old style class sort compat
---
scripts/build/output-distance.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/build/output-distance.py b/scripts/build/output-distance.py
@MasterOdin
MasterOdin / watson-test.js
Last active May 27, 2020 17:50
watson text to speech stream
// npm install speaker wav
const TextToSpeechV1 = require('ibm-watson/text-to-speech/v1');
const Speaker = require('speaker');
const wav = require('wav');
const textToSpeech = new TextToSpeechV1({});
const sentences = [
'On a cool night lit only by the orange glow of fire, we rushed to my grandfather’s home as his decades-old barn burned to the ground. The firemen let us stand nearby as they pumped water from the creek a quarter mile away. We watched the barn go up in flames, which stirred memories of jumping off foot-wide wooden beams into the hay below. The real sadness came as my elderly grandfather, who did not get out of bed, quietly asked if his cows were safe. He hadn’t had dairy cows in a dozen years.',