I wrote this four years ago, so instead use this command:
$ docker rmi $(docker images -q -f dangling=true)
| ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
| #!/bin/sh | |
| TMP=~/open-talk.wav | |
| touch $TMP | |
| cd /usr/share/hts-voice/nitech-jp-atr503-m001 | |
| #cd /usr/share/hts-voice/mei_happy | |
| echo "$1" | open_jtalk \ | |
| -td tree-dur.inf \ | |
| -tf tree-lf0.inf \ | |
| -tm tree-mgc.inf \ | |
| -md dur.pdf \ |
| import sys, select | |
| print "You have ten seconds to answer!" | |
| i, o, e = select.select( [sys.stdin], [], [], 10 ) | |
| if (i): | |
| print "You said", sys.stdin.readline().strip() | |
| else: | |
| print "You said nothing!" |
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } |
| library(shiny) | |
| shinyServer(function(input, output, session) { | |
| output$summary <- renderText({ | |
| ls(env=session$request) | |
| }) | |
| output$headers <- renderUI({ | |
| selectInput("header", "Header:", ls(env=session$request)) |
| import logging | |
| from StringIO import StringIO as StringBuffer | |
| logger = logging.getLogger('basic_logger') | |
| logger.setLevel(logging.DEBUG) | |
| ### Setup the console handler with a StringIO object | |
| log_capture_string = StringBuffer() | |
| # log_capture_string.encoding = 'cp1251' | |
| ch = logging.StreamHandler(log_capture_string) |
| from flask import Flask, Response | |
| app = Flask(__name__) | |
| @app.route("/wav") | |
| def streamwav(): | |
| def generate(): | |
| with open("signals/song.wav", "rb") as fwav: | |
| data = fwav.read(1024) |
| { | |
| "CodeCell": { | |
| "cm_config": { | |
| "indentUnit": 2 | |
| } | |
| } | |
| } |