Skip to content

Instantly share code, notes, and snippets.

View moui72's full-sized avatar
🏠
Working from home

Tyler Peckenpaugh moui72

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am moui72 on github.
  • I am moui72 (https://keybase.io/moui72) on keybase.
  • I have a public key ASBPu8IzAI4dMyYyoBIq9l8B47Iu59cHlSA6drUn5LWhlAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am moui72 on github.
  • I am moui72 (https://keybase.io/moui72) on keybase.
  • I have a public key ASBPu8IzAI4dMyYyoBIq9l8B47Iu59cHlSA6drUn5LWhlAo

To claim this, I am signing this object:

@moui72
moui72 / q.js
Last active December 4, 2019 23:51
HiCal interviewcake question
const merger = meetings => {
// initialize merged blocks with first meeting
let merged = [meetings[0]];
for (let mtg = 1; mtg < meetings.length; mtg++) {
// iterate over each other meeting once
// otherwise, look for collision btwn current mtg and existing time blocks
let collisionIndex = -1;
for(let i = 0; i < merged.length; i++){
// iterate over each existing merged block
if (
import webrtcvad
import csv
import time
import sys
import wave
import collections
import contextlib
from os import walk
from os.path import join, basename
from pydub import AudioSegment, scipy_effects
import webrtcvad
import wave
import collections
import contextlib
import sys
import glob
from os import walk
from os.path import join, basename, getctime
from json import dump, dumps
import csv
@moui72
moui72 / vad.py
Last active March 25, 2019 20:26
import webrtcvad
import wave
import collections
import contextlib
import sys
import glob
from os import walk
from os.path import join, basename, getctime
from json import dump, dumps
import csv
@moui72
moui72 / recursive-resample.sh
Last active March 25, 2019 16:22 — forked from jorgehatccrma/recursive-resample.sh
Recursively resample a bunch of audio files in a directory, using sox
#!/bin/bash
# A simple script to recursively resample a bunch of files
# in a directory. Only certain file extensions (mp3, aac,
# flac, wav) are considered.
#
# It takes 3 command line options: `indir`, `outdir` and `target_sr`.
# The destination (`outdir`) is relative to the current
# directory of where you were when the script was run.
# The desired sample rate should be provided as `target_sr`.
from os import walk
from os.path import join, basename
from pydub import AudioSegment
from json import dump, dumps
import pydub.scipy_effects
import numpy
import csv
import time
@moui72
moui72 / timings.py
Last active December 12, 2023 07:40
from os import walk
from os.path import join, basename
from pydub import AudioSegment
import pydub.scipy_effects
import numpy
import scipy.signal as sg
import csv
def count_silent_chunks(chunks, threshold, rev=False):
@moui72
moui72 / q.js
Created December 29, 2017 20:57
let state = {
...,
toggleables: [
// propertyName: default value
{ visible: true },
{ rankable: true }
],
...
}