Skip to content

Instantly share code, notes, and snippets.

View StanSilas's full-sized avatar

Stan Silas(Vivek Mangipudi) StanSilas

View GitHub Profile
@StanSilas
StanSilas / list-all-repos.py
Created April 30, 2021 16:52 — forked from ralphbean/list-all-repos.py
Script to list all repos for a github organization
#!/usr/bin/env python
""" Print all of the clone-urls for a GitHub organization.
It requires the pygithub3 module, which you can install like this::
$ sudo yum -y install python-virtualenv
$ mkdir scratch
$ cd scratch
$ virtualenv my-virtualenv
@StanSilas
StanSilas / .block
Created January 3, 2018 03:17 — forked from kerryrodden/.block
Sequences sunburst
license: apache-2.0
@StanSilas
StanSilas / viv_audio.ipynb
Created December 15, 2017 05:41
printing audio segments on a plot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@StanSilas
StanSilas / gist:de60520beb01d777c922f54c4b587d09
Created December 14, 2017 18:38 — forked from mailletf/gist:3484932dd29d62b36092
Display a mel-scaled power spectrogram using librosa
# Mostly taken from: http://nbviewer.ipython.org/github/bmcfee/librosa/blob/master/examples/LibROSA%20demo.ipynb
import librosa
import matplotlib.pyplot as plt
# Load sound file
y, sr = librosa.load("filename.mp3")
# Let's make and display a mel-scaled power (energy-squared) spectrogram
S = librosa.feature.melspectrogram(y, sr=sr, n_mels=128)
@StanSilas
StanSilas / make all ; for htk
Created November 28, 2017 23:15
getting this big console message when running `make all` when trying to install htk
vivek@vivek:~/puppy/bin/htk$ make all
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/vivek/puppy/bin/htk/HTKLib'
gcc -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.o HGraf.c
HGraf.c: In function ‘DecodeKeyPress’:
HGraf.c:179:8: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
int n;
^
HGraf.c: In function ‘HGetEvent’:
@StanSilas
StanSilas / 00-ReduceSideJoin
Created February 21, 2016 02:04 — forked from airawat/00-ReduceSideJoin
ReduceSideJoin - Sample Java mapreduce program for joining datasets with cardinality of 1..1, and 1..many on the join key
My blog has an introduction to reduce side join in Java map reduce-
http://hadooped.blogspot.com/2013/09/reduce-side-join-options-in-java-map.html