Skip to content

Instantly share code, notes, and snippets.

View cthiebaud's full-sized avatar

Christophe Thiebaud cthiebaud

View GitHub Profile
#!/bin/bash -e
#-vxe
git checkout --orphan newBranch
git add -A # Add all files and commit them
git commit -m "first commit"
git branch -D develop # Deletes the master branch
git branch -m develop # Rename the current branch to master
git push -f origin develop # Force push master branch to github
git gc --aggressive --prune=all # remove the old files
git push --set-upstream origin develop --force # hopefully push the void to github
@cthiebaud
cthiebaud / rtc_test_speech.html
Created December 23, 2020 21:35 — forked from ibanez270dx/rtc_test_speech.html
HTML5 Audio + Speech to Text...once you enable both microphone and voice recognition, say "facebook", "hack", or "what is my name"
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Web audio capture + Speech Recognition</title>
<link href="http://www.smartjava.org/examples/webaudio-filters/css/bootstrap.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
<h1 class="pagination-centered">HTML5 Web audio capture + Speech Recognition</h1><br />
import os
import math
print(os.getcwd())
content = []
with open('marine.en') as f2:
content = f2.readlines()
firstbeat = 11.*1000. + 300.