Skip to content

Instantly share code, notes, and snippets.

studying cancer genomics

Isaac Pei ipstone

studying cancer genomics
View GitHub Profile
View benchmark1.lua
local function groupby(func, seq)
local t = {}
for _, val in ipairs(seq) do
local key = func(val)
t[key] = t[key] or {}
t[key][#t[key] + 1] = val
return t
Nanguage /
Last active Apr 3, 2018
crawl genecard, fetch gene infos.
# -*- coding: utf-8 -*-
crawl genecard, fetch gene infos.
usage: [-h] [--xpath XPATH] [--base-url BASE_URL]
[--num NUM] [--timeout TIMEOUT]
View converting bash aliases to fish functions
`cat ~/.bash_aliases | egrep '^alias' | sed 's/alias//'`.split("\n").each do |line|
parts = line.strip.split(/=/)
name, cmd = parts[0], parts[1].gsub(/('|")/,'')
file = '/home/%s/.config/fish/functions/' % [`whoami`.strip, name]
content = [ 'function %s' % name, ' %s $argv;' % cmd, 'end' ].join("\n"), 'w+'){|io| io.write(content) }
lambdalisue /
Created Jul 7, 2014
GVim compile and install script for CentOS
#!/usr/bin/env bash
# GVim compile and install script for CentOS
# Description: Install VIM with +python/+python3 via pyenv installed pythons
# Author: Alisue <>
# License: MIT
# GistID: 01996ca7877f72b860b2
elucify /
Last active May 13, 2020
ClinVar sample


This directory contains:

  • ClinVar ( dataset reports, and ClinVar development documents
  • documents related to the NCBI collaboration with ClinGen (
  • - how to apply for expert panel status
  • data common to ClinVar and GTR
  • - terminology used by both GTR and ClinVar.
jacob-ogre / jacob-ogre_ST2.sublime-keymap
Created Jun 26, 2013
Sublime Text: Custom keybindings, mostly Vintage (Vim)
View jacob-ogre_ST2.sublime-keymap
// Working in some additional Vim or Vim-like bindings; using 'g' as <leader>
// because it's homerow and unused for most commands:
{ "keys": ["g", "t"], "command": "next_view", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "r"], "command": "prev_view", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "n"], "command": "focus_side_bar", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "w"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["g", "m"], "command": "find_under_expand", "context": [{"key": "setting.command_mode"}] },
{ "keys": ["g", "s"], "command": "sftp_browse_server", "context": [{"key": "setting.command_mode"}] },
sachac /
Created Mar 31, 2013
Source code for my Emacs conference talk


  • Emacs learning curve?

Meta information


  • Mix of Emacs geeks skewed towards people who’ve been using this for a while (after all, takes a certain commitment to come all the way to an Emacs conference!)


harrifeng /
Last active Mar 17, 2021
Compile emacs on redhat and centos
yum -y groupinstall "Development Tools"
yum -y install gtk+-devel gtk2-devel
yum -y install libXpm-devel
yum -y install libpng-devel
yum -y install giflib-devel
spl /
Last active Mar 17, 2021
Mendeley plans with pricing and storage details

These are the simplified pricing and storage numbers for Mendeley subscription plans as of 2019-01-10:

Plan Price/month Price/year (/month) Storage
Plus $4.99 $55 ($4.58) 5GB
Pro $9.99 $110 ($9.17) 10GB
Max $14.99 $165 ($13.75) 100GB*

This information is available only from their [upgrade page] and can only be

zcaceres /
Last active Mar 23, 2021
Supercharge Your Bash Workflows with GNU `parallel`

Supercharge Your Bash Workflows with GNU parallel

GNU parallel is a command line tool for running jobs in parallel.

parallel is awesome and belongs in the toolbox of every programmer. But I found the docs a bit overwhelming at first. Fortunately, you can start being useful with parallel with just a few basic commands.

Why is parallel so useful?

Let's compare sequential and parallel execution of the same compute-intensive task.

Imagine you have a folder of .wav audio files to convert to .flac: