Skip to content

Instantly share code, notes, and snippets.

@saketkc
saketkc / 0_reuse_code.js
Last active May 23, 2016 17:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/usr/bin/env python
'''
Automatically estimate insert size of the paired-end reads for a given SAM/BAM file.
Usage: getinsertsize.py <SAM file> or samtools view <BAM file> | getinsertsize.py -
Author: Wei Li
'''
from __future__ import print_function
import sys;
@saketkc
saketkc / FileUpload.java
Created May 14, 2012 14:53
FileUpload Rest Service
package com.starcamping.boundary.rest;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.UUID;
@saketkc
saketkc / wedding_ivr.php
Created April 13, 2012 04:44 — forked from kookoolib/wedding_ivr.php
KooKoo Wedding IVR
<?php
session_start();
require_once("response.php");//response.php is the kookoo xml preparation class file
$r = new Response();
$r->setFiller("yes");
$recore_wav="update";
if(isset ($_REQUEST['event']) && $_REQUEST['event']== "NewCall" )
{
$_SESSION['caller_number']=$_REQUEST['cid'];
$_SESSION['kookoo_number']=$_REQUEST['called_number'];