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
syntax on | |
set showmatch | |
set ignorecase | |
set showmode | |
set ts=4 | |
set sw=4 | |
set autoindent | |
set smartindent | |
" Enable file type plugins |
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
#!/bin/bash | |
/usr/bin/python -c "help(\"$1\")" |
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
cythonize() { | |
cython --embed $1.py | |
gcc -I/usr/include/python2.7 -o $1 $1.c -lpython2.7 | |
} |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^wiki/(.*)$ /subfolder/w/index.php?title=$1 [L,QSA] | |
RewriteRule ^$/subfolder/wiki/ [L,QSA] | |
<?php | |
$wgScriptPath = "/subfolder/w"; |
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
{ | |
"_id": { | |
"$oid": "4f5e631e69adda9f62821f90" | |
}, | |
"category": "c2", | |
"description": "Genes up-regulated in pancreatic cancer cells grown in orthotopic xenograft tumors compared to those grown in vitro.", | |
"human-ensembl": [ | |
"ENSG00000142789", | |
"ENSG00000133110", | |
"ENSG00000112664", |
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
#!/bin/bash | |
galaxypid=$(ps -efw|grep paster|awk '{ print $2 }'|head -n 1);kill $galaxypid; | |
sh run.sh & |
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
''' | |
Read a tab separated file, with headers, into a "list" (or better, | |
a generator object returning items, but behaves similar), where | |
each dict uses the headers in the first line as keys. | |
Author: Samuel Lampa 2013 - [email protected] | |
''' | |
# Open file | |
infile = open(some_filename) |
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 re | |
import string | |
def main(): | |
file = open("Homo_sapiens.GRCh37.67.dna_rm.chromosome.Y.fa","r") | |
a = 0 | |
t = 0 | |
g = 0 | |
c = 0 | |
for line in file: |
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 re | |
import string | |
def main(): | |
file = open("Homo_sapiens.GRCh37.67.dna_rm.chromosome.Y.fa","r") | |
cdef int a, t, c, g | |
a = 0 | |
t = 0 | |
g = 0 | |
c = 0 |
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
program gc; | |
{$mode objfpc} // Do not forget this ever | |
uses | |
Sysutils; | |
var | |
FastaFile: TextFile; | |
CurrentLine: String; | |
GCCount: Integer; |