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
/******************************************************************************************************************** | |
Countdown.js is a simple script to add a countdown timer | |
for your website. Currently it can only do full minutes | |
and partial minutes aren't supported. This script is a fork of http://jsfiddle.net/HRrYG/ with some | |
added extensions. Since the original code that I forked was released under Creative Commons by SA license, | |
I have to release this code under the same license. You can view a live demo of this code at http://jsfiddle.net/JmrQE/2/. | |
********************************************************************************************************************/ | |
function countdown(minutes) { | |
var seconds = 60; | |
var mins = minutes |
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{soul} | |
\usepackage{color} | |
\begin{document} |
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
### | |
Countdown.coffee is the coffeescript version of the countdown.js timer script. | |
Thanks to js2coffee.org | |
### | |
countdown = (minutes) -> | |
tick = -> | |
#This script expects an element with an ID = "counter". You can change that to what ever you want. | |
counter = document.getElementById("counter") | |
current_minutes = mins - 1 |
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
require 'slop' | |
# add(5,6,13) => 24 | |
def add(list_of_integers) | |
result = 0 | |
list_of_integers.each do |num| |
NewerOlder