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 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 |
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 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 |
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
#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) | |
{ |
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
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) | |
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
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" |
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
#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; |
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
package main | |
import "fmt" | |
func main(){ | |
counter := 1 | |
for{ | |
if counter > 10{ | |
break; | |
} |
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
# 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 |
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
require 'slop' | |
# add(5,6,13) => 24 | |
def add(list_of_integers) | |
result = 0 | |
list_of_integers.each do |num| |
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
\documentclass{article} | |
\usepackage[margin = 0.8in]{geometry} | |
\usepackage{ulem} | |
\begin{document} | |
This year is \sout{2012}2013. | |
NewerOlder