This file contains 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 qsub-one () { | |
SHOWHELP="false" | |
GRID_OPTION=("-cwd") | |
GRID_SHELL="/bin/zsh" | |
while getopts p:n:m:hs: OPT; do | |
case $OPT in | |
"h") SHOWHELP="true";; | |
"n") GRID_NAME="$OPTARG";; | |
"m") GRID_OPTION=("${GRID_OPTION[@]}" "-l" "s_vmem=$OPTARG,mem_req=$OPTARG");; |
This file contains 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/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import sys | |
LICENSE = '''/* | |
* hogehoge | |
* Copyright (C) 2016 NAME | |
* |
This file contains 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
@Grab(group='org.apache.poi', module='poi', version='3.13') | |
@Grab(group='org.apache.poi', module='poi-ooxml', version='3.13') | |
@GrabExclude(group = 'stax', module = 'stax-api') | |
@Grab(group='org.apache.poi', module='poi-scratchpad', version='3.13') | |
import org.apache.poi.sl.usermodel.ShapeType | |
import org.apache.poi.sl.usermodel.TextParagraph | |
import org.apache.poi.sl.usermodel.VerticalAlignment | |
import org.apache.poi.xslf.usermodel.XMLSlideShow | |
import java.awt.Color |
This file contains 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
library(VennDiagram) | |
venn.quad <- function(g1, g2, g3, g4, category=rep("", 4)) { | |
draw.quad.venn(length(g1), length(g2), length(g3), length(g4), | |
length(intersect(g1, g2)), length(intersect(g1, g3)), length(intersect(g1, g4)), length(intersect(g2, g3)), length(intersect(g2, g4)), length(intersect(g3, g4)), | |
length(intersect(g1, intersect(g2, g3))), length(intersect(g1, intersect(g2, g4))), length(intersect(g1, intersect(g3, g4))), length(intersect(g2, intersect(g3, g4))), | |
length(intersect(intersect(g1, g2), intersect(g3, g4))), | |
category=category) | |
} |
This file contains 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 | |
source openjdk-common.sh | |
run mkdir -p $JAVA_BUILD_DIR | |
export JAVA_HOME=/usr/local/jvm/openjdk-1.8.0_${JAVA_UPDATE} | |
pushd $JAVA_BUILD_DIR | |
if [ ! -d rt-8u${JAVA_UPDATE}-b${JAVAFX_BUILDNUM} ]; then | |
run tar xzf $ARCHIVE_DIR/8u${JAVA_UPDATE}-b${JAVAFX_BUILDNUM}.tar.gz | |
fi |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | |
"DisableOSUpgrade"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx] | |
"DisableGwx"=dword:00000001 |
This file contains 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
/* | |
* light weight pthread compatible library for Windows | |
* (C) 2009 Okamura Yasunobu | |
*/ | |
#include "crossthread.h" | |
#include <stdio.h> | |
#ifdef _WIN32 |
This file contains 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/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import csv | |
import sqlite3 | |
import sys | |
import commonlib | |
import collections |
This file contains 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/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import git | |
import os | |
import os.path | |
import collections | |
VERBOSE = False |
This file contains 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/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import csv | |
def _main(): | |
parser = argparse.ArgumentParser(description="Convert RefFlat to BED format") | |
parser.add_argument('refFlat', type=argparse.FileType('r')) | |
parser.add_argument('outputBed', type=argparse.FileType('w')) |