Skip to content

Instantly share code, notes, and snippets.

@adhithyan15
adhithyan15 / countdown.js
Last active April 7, 2023 19:35
A simple countdown timer in Javascript
/********************************************************************************************************************
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
@adhithyan15
adhithyan15 / Test.tex
Last active April 26, 2020 21:32
Latex Highlight Text
\documentclass{article}
\usepackage[margin = 0.8in]{geometry}
\usepackage{soul}
\usepackage{color}
\begin{document}
@adhithyan15
adhithyan15 / countdown.coffee
Last active December 8, 2018 21:17
Coffeescript version of the Countdown.js timer script
###
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
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 / 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|