Skip to content

Instantly share code, notes, and snippets.

@gsathya
gsathya / ff.md
Created July 6, 2014 01:54 — forked from paulrouget/ff.md
#include <stdio.h>
#include <SDL2/SDL.h>
#include <assert.h>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
int result = 1;
int done = 0;
#include<assert.h>
#include<stdio.h>
int main (int argc, char *argv[])
{
FILE *fp;
int res;
long len;
fp = fopen("testappend", "wb+");
#include<stdio.h>
#include<unistd.h>
int main (int argc, char *argv[])
{
FILE *fp;
char test_buf[30];
fp = fopen("sdltest", "wb+");
if (!fp) {
printf("Could not open file\n");
def edit_distance(word1, word2):
len1 = len(word1)
len2 = len(word2)
table = [[0]*(len2+1) for i in range(len1+1)]
table2 = [[0]*(len2+1)]*(len1+1)
print table, "\n", table2
for i in range(len1+1):
table[i][0] = i
@gsathya
gsathya / test.py
Last active December 28, 2015 22:39
import csv
from ghost import Ghost
import threading
import time
def read_csv():
urls = []
with open('test.csv', "r") as ifile:
for row in ifile:
#!/bin/bash
set -u
#version number
VERSION=1.1.4
#Maximum 24-bit integer
MAX=16777215
#Maximum prime that statisfies p mod 4 = 3
section: screens
sathya:
lawn-128-61-117-4.lawn.gatech.edu:
end
section: links
sathya:
left = lawn-128-61-117-4.lawn.gatech.edu
lawn-128-61-117-4.lawn.gatech.edu:
right = sathya
end
local Experiment = {}
Experiment.__index = Experiment
function Experiment:create(urls)
local experiment = {}
setmetatable(experiment, Experiment)
experiment.urls = urls
return experiment
end
@gsathya
gsathya / array.cpp
Last active December 23, 2015 19:29
void print_array(int *array, int length) {
if (length == 0) {
return;
}
printf("[");
print_array_rec(array, length);
printf("]");
return;