This file contains hidden or 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 of ExcelHelper Module | |
use Tool::DB::ExcelHelper; | |
# definition of mapping between xls title and column | |
my $xls_schema = { | |
'Date' => 'date', | |
'Catalog No' => 'catno', | |
'Type' => 'type', | |
'old data' => 'old_val', | |
'new data' => 'new_val', |
This file contains hidden or 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
#!/usr/bin/perl | |
use local::lib; | |
use utf8; | |
use Bio::Database::KEGG::Path; | |
use Data::Dumper; | |
# input file (KGML file) | |
my $file = shift; | |
# parse the pathway info |
This file contains hidden or 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
set tabstop=4 | |
set shiftwidth=4 | |
set nu | |
set hls | |
call pathogen#runtime_append_all_bundles() | |
syntax on | |
filetype plugin indent on |
This file contains hidden or 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 java.io.*; | |
import java.security.MessageDigest; | |
public class FastaMD5 | |
{ | |
public static void main(String args[]) throws Exception | |
{ | |
int len=0; | |
byte[] buffer = new byte[1]; | |
MessageDigest complete = null; |
This file contains hidden or 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
var ele = $('#canvas').highcharts(); | |
var textWidth = ele.chartWidth; | |
$('#canvas').highcharts().renderer.text("No Data Available.",(textWidth/2)-65,115).css({ | |
color: '#4572A7', | |
fontSize: '16px', | |
textAlign: 'center', | |
}).attr({zIndex: 9999999}).add(); |
This file contains hidden or 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
#!/usr/bin/python | |
import subprocess | |
import os | |
import sys | |
#res = subprocess.Popen(['ls','-al','/ahome'],stdout=subprocess.PIPE,stderr=subprocess.PIPE); | |
#output,error = res.communicate() | |
#if res.returncode: | |
# #raise Exception(error) |
This file contains hidden or 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 <iostream> | |
using namespace std; | |
int main() { | |
long long int n; | |
long long int m; | |
long long int a; | |
cin >> n; | |
cin >> m; |
This file contains hidden or 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 <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
// The source of this code is http://kasonblog.blogspot.tw/2012/04/10810-ultra-quicksort-uva-online-judge.html | |
// and its realted information http://program-lover.blogspot.tw/2008/10/mergesort.html | |
// or http://programming-study-notes.blogspot.tw/2013/12/uva-10810-ultra-quicksort.html | |
// or http://www.tuicool.com/articles/ANb6Fv |
This file contains hidden or 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
function download_follow_link { | |
URL=$1 | |
DIRPATH=$(echo "$URL" | sed s-ftp://--) | |
DIRPATH=$(echo ${DIRPATH%/*}) | |
BASEURL=$(echo "$DIRPATH" | cut -d '/' -f1) | |
wget -m $URL | |
SYMLINKS=$(find $DIRPATH -type l) | |
for SYMLINK in $SYMLINKS | |
do |
This file contains hidden or 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
var page = require('webpage').create(); | |
var system = require('system'); | |
var map_result = { | |
"Reference Sequence" : "mouse_mm10(UCSC)", | |
"Known SNP/Indel" : "dbSNP138", | |
"leftReadsInput" : "36730566", | |
"leftReadsMapped" : "35130795 (95.6% of input)", | |
"leftReadsOfThese" : "9607 ( 0.0%) have multiple alignments (11204 have >1)", | |
"rightReadsInput" : "36730566", |