Skip to content

Instantly share code, notes, and snippets.

View kozo2's full-sized avatar

Kozo Nishida kozo2

View GitHub Profile
@kozo2
kozo2 / ompi.txt
Created December 24, 2015 19:40
qconf -mp ompi
pe_name ompi
slots 256
user_lists NONE
xuser_lists NONE
start_proc_args /bin/true
stop_proc_args /bin/true
allocation_rule $round_robin
control_slaves TRUE
job_is_first_task FALSE
urgency_slots min
@kozo2
kozo2 / ompi256.txt
Created December 24, 2015 19:41
qconf -mp ompi256
e_name ompi256
slots 256
user_lists NONE
xuser_lists NONE
start_proc_args /bin/true
stop_proc_args /bin/true
allocation_rule $pe_slots
control_slaves FALSE
job_is_first_task TRUE
urgency_slots min
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kozo2
kozo2 / .travis.yml
Created January 3, 2016 00:06
travis yml file for karabiner
language: cpp
os:
- osx
compiler:
- clang
before_install:
#- brew update; brew upgrade
- gem install cocoapods; pod setup
- make
@kozo2
kozo2 / a.ipynb
Created January 5, 2016 10:36
ecell4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kozo2
kozo2 / a.R
Created January 12, 2016 21:25
gd = list(join1 = c(ag.db="gene_id", org.At.tair.db="gene_id"))
destination <- tempfile()
dir.create(destination)
library("OrganismDbi", lib.loc="~/R/win-library/3.2")
makeOrganismPackage(pkgname = "hoge.fuga", graphData = gd, organism = "Arabidopsis thaliana", version = "1.0.0", maintainer = "Kozo Nishida<knishida@riken.jp>", author = "Some Body", destDir = destination, license = "Artistic-2.0")
Error in .testKeys(fkeys) :
some foreign keys are not present in their associated databases
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import glob
from bs4 import BeautifulSoup
import bs4
htmls = glob.glob('./knapsack/C*')
output = open("knapsack.tsv", "w")
output.write("\t".join(["knapsackid", "name", "formula", "mw", "cas", "inchikey"]))
output.write("\n")
for i in htmls: