Skip to content

Instantly share code, notes, and snippets.

from scikits.audiolab import wavread
from scikits.talkbox.features import mfcc
from scikits.talkbox.linpred.levinson_lpc import lpc
import os
import numpy as np
from test.LPC import LPCExtractor
from test.MFCC import get_mfcc_extractor
from collections import defaultdict
from sklearn.mixture import GMM
from collections import Counter
from scikits.audiolab import wavread
from scikits.talkbox.features import mfcc
from scikits.talkbox.linpred.levinson_lpc import lpc
import os
import numpy as np
from test.LPC import LPCExtractor
from test.MFCC import get_mfcc_extractor
from collections import defaultdict
from sklearn.mixture import GMM
from collections import Counter
#include <omp.h>
#include <stdio.h>
#include "tournament.h"
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
int main(int argc, char **argv)
{
import subprocess
values = [2,4,6,8]
iteration_count = 5
for x in range(0, len(values)):
print values[x]
p = subprocess.Popen("./testbarrier " + str(values[x])), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
import sys
import subprocess
number_of_processes = int(sys.argv[1])
number_of_iterations = 5
barrier_time = []
execution_time = []
mpi_loc = "/opt/openmpi-1.4.3-gcc44/bin/mpirun"
#include <stdio.h>
#include <mpi.h>
#include "tournament.h"
#include <sys/time.h>
int main(int argc, char **argv)
{
int process_number, total_number_of_processes;
struct timeval start, end;
int t1, t2;
@adhithyan15
adhithyan15 / while.go
Created May 10, 2015 23:52
While loop in Go
package main
import "fmt"
func main(){
counter := 1
for{
if counter > 10{
break;
}
# usage: `python ~/Desktop/contours.py 1994-654-12_v02.tif`
# output is to a squareless.txt file and the directory "out"
# Working well with thumbnails with 400px as their longest side - untested with other dimensions
# for i in $(ls -1 | grep tif); do python /Users/artsyinc/Documents/resistance/experiments/artwork_image_cropping/contours.py $i; done
import cv2
import numpy as np
from matplotlib import pyplot as plt
import sys
@adhithyan15
adhithyan15 / calc.rb
Created June 15, 2013 04:18
A simple command line calculator using Slop to process command line arguments. Licensed under MIT.
require 'slop'
# add(5,6,13) => 24
def add(list_of_integers)
result = 0
list_of_integers.each do |num|
@adhithyan15
adhithyan15 / strikethroughsample.tex
Created January 8, 2013 06:40
A sample file demonstrating striking out text using the ulem package.
\documentclass{article}
\usepackage[margin = 0.8in]{geometry}
\usepackage{ulem}
\begin{document}
This year is \sout{2012}2013.