This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: sample | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
class Person: | |
WAITING = 0 | |
IN_ELEVATOR = 1 | |
DONE = 2 | |
def __init__(self, from_floor, to_floor): | |
self.from_floor = from_floor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MasterOdin\Gists; | |
/** | |
* Class LipsumGenerator | |
* @package MasterOdin\Gists | |
* | |
* Provides a way to generate dummy text to be used on a page using | |
* http://www.lipsum.com as the generator. More convinent than |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class AdjacencyChecker { | |
public static void main(String[] args) { | |
int[][] matrix = {{1,1,1,0,0},{1,0,0,0,1},{1,1,1,0,0},{0,0,0,1,1}}; | |
List<Integer> list = new ArrayList<>(); | |
for (int i = 0; i < matrix.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================== | |
# OS X # | |
#================== | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am MasterOdin on github. | |
* I am masterodin (https://keybase.io/masterodin) on keybase. | |
* I have a public key whose fingerprint is B60F B57C 9D18 D1AC 25A2 4BDD CA5E 164E 9A4E FBFB | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import md5 | |
import string | |
import time | |
''' | |
# Brute force solves a md5 hash (for a postgres user role) | |
# Assumes that password is only [a-zA-Z] | |
''' | |
def getNextCharacter(string,pos,characters): |
NewerOlder