View make-subtitles.sh
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/bash | |
set -euxo pipefail | |
echo "Converting audio" | |
rm -f temp.wav | |
ffmpeg -i "$1" -ar 16000 -ac 1 -c:a pcm_s16le temp.wav | |
echo "Transcribing" | |
./main -m models/ggml-base.en.bin -f ./temp.wav --output-srt -t 8 -ml 42 | |
mv temp.wav.srt "${1%.*}.en.srt" | |
# optional: rewrite the original file to include subtitles |
View add-subtitles.sh
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/bash | |
echo "Converting audio" | |
rm -f temp.wav | |
ffmpeg -i "$1" -ar 16000 -ac 1 -c:a pcm_s16le temp.wav | |
echo "Transcribing" | |
./main -m models/ggml-base.en.bin -f ./temp.wav --output-srt | |
echo "Adding to video file" | |
ffmpeg -i "$1" -i temp.wav.srt -c copy -metadata:s:s:0 language=eng "${1%.*}.subtitled.mkv" |
View git-fanfic-setup.sh
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 | |
# thanks hanselman https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx | |
git config --global alias.new '!git init && git symbolic-ref HEAD refs/heads/canon' | |
# https://twitter.com/tesseralis/status/1271197776886370305 | |
git config --global alias.retcon 'rebase' | |
git config --global alias.op 'blame' | |
git config --global alias.clip-show 'log' | |
git config --global alias.fanfic 'branch' |
View helloworld.bf
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
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
+ | |
[ | |
> |
View life.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
from pprint import pprint | |
import random | |
def nextgen(state): | |
new_state = [] | |
for i in range(5): | |
new_state.append([0] * 5) | |
for x in range(5): |
View rlwe-integers.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View explore.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
from collections import defaultdict | |
import json | |
import os | |
import os.path | |
import shutil | |
from pygments.formatters import HtmlFormatter | |
from pygments.lexers import get_lexer_for_filename | |
from pygments import highlight |
View segfault.py
This file has been truncated, but you can view the full file.
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
def f(): | |
a0 = 0 | |
a1 = 1 | |
a2 = 2 | |
a3 = 3 | |
a4 = 4 | |
a5 = 5 | |
a6 = 6 | |
a7 = 7 | |
a8 = 8 |
View repro.chpl
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
proc f() : (int, int) { | |
return f(); | |
} | |
proc main() { | |
f(); | |
} |
View repro.chpl
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
proc f() : (int, int) { | |
return f(); | |
} | |
proc main() { | |
f(); | |
} |
NewerOlder