Skip to content

Instantly share code, notes, and snippets.

Avatar
🌐
studying cancer genomics

Isaac Pei ipstone

🌐
studying cancer genomics
View GitHub Profile
View samizdat-shell-help.bash
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@romainl
romainl / Don't use Vim.md
Last active Mar 25, 2021
Don't use Vim for the wrong reasons
View Don't use Vim.md

Don't use Vim

Don't do the crime, if you can't do the time.

-- Anthony Vincenzo "Tony" Baretta

Vim is an amazing text editor. I love it. Really, I wouldn't [organize][organize] a Vim advent calendar if I didn't. But, as amazing as it is, Vim is not for everyone. It can't solve all your problems, or be a TUI version of your favorite IDE, or make you a better programmer, or land you that dream job in the Bay Area. But Vim can help you be more mindful, focused, and efficient, as long as you approach it with the right mindset.

Don't get me wrong, I certainly welcome you to try Vim, but I'm not a proselyte. I don't thrive on newbies. I just want you to use the right tool for the job and not waste your—and anyone's—time on a fruitless quest.

@zcaceres
zcaceres / supercharge-your-bash-workflows-with-gnu-parallel.md
Last active Mar 23, 2021
Supercharge Your Bash Workflows with GNU `parallel`
View supercharge-your-bash-workflows-with-gnu-parallel.md

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:

@spl
spl / mendeley-pricing.md
Last active Mar 17, 2021
Mendeley plans with pricing and storage details
View mendeley-pricing.md

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

@Nanguage
Nanguage / fetch-genecard.py
Last active Apr 3, 2018
crawl genecard, fetch gene infos.
View fetch-genecard.py
# -*- coding: utf-8 -*-
"""
crawl genecard, fetch gene infos.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
usage: fetch-genecard.py [-h] [--xpath XPATH] [--base-url BASE_URL]
[--num NUM] [--timeout TIMEOUT]
id_list
@harrifeng
harrifeng / redhat-compile-emacs.sh
Last active Mar 17, 2021
Compile emacs on redhat and centos
View redhat-compile-emacs.sh
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
@jennybc
jennybc / yaml_frontmatter_r_github_document.yaml
Last active Mar 27, 2021
YAML frontmatter for R Markdown to cause rmarkdown::render() to retain intermediate Markdown file for .R and .Rmd files, respectively
View yaml_frontmatter_r_github_document.yaml
#' ---
#' title: "Something fascinating"
#' author: "Jenny Bryan"
#' date: "`r format(Sys.Date())`"
#' output: github_document
#' ---
@elucify
elucify / README.md
Last active May 13, 2020
ClinVar sample README.md
View README.md

ClinVar

This directory contains:

  • ClinVar (http://www.ncbi.nlm.nih.gov/clinvar/) dataset reports, and ClinVar development documents
  • documents related to the NCBI collaboration with ClinGen (http://www.clinicalgenome.org/)
  • ftp://ftp.ncbi.nih.gov/pub/clinvar/ClinGen/ExpertPanelRequestForm.docx - how to apply for expert panel status
  • data common to ClinVar and GTR
  • ftp://ftp.ncbi.nlm.nih.gov/pub/GTR/standard_terms - terminology used by both GTR and ClinVar.
@lambdalisue
lambdalisue / install_gvim.sh
Created Jul 7, 2014
GVim compile and install script for CentOS
View install_gvim.sh
#!/usr/bin/env bash
#==============================================================================
# GVim compile and install script for CentOS
#
# Description: Install VIM with +python/+python3 via pyenv installed pythons
# Author: Alisue <lambdalisue@hashnote.net>
# License: MIT
# GistID: 01996ca7877f72b860b2
#==============================================================================