Skip to content

Instantly share code, notes, and snippets.

@martijnvermaat
martijnvermaat / example.png
Last active August 29, 2015 13:56
Overlap-relative centers
example.png
@martijnvermaat
martijnvermaat / logo.ipynb
Last active August 29, 2015 13:56
kMer logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@martijnvermaat
martijnvermaat / __init__.py
Last active July 20, 2018 14:37
Matplotlib for use in LaTeX
import math
from matplotlib import rcParams
def configure(document_fontsize=14.4, available_width=307.28987):
"""
Configures Matplotlib so saved figures can be used in LaTeX documents.
Uses the sans-serif TeX Gyre Heros font (Helvetica), also for math.
@martijnvermaat
martijnvermaat / userContent.css
Last active August 29, 2015 14:03
Hide comments on Losse Veter (losseveter.nl)
/*
* Hide comments on Losse Veter (losseveter.nl)
*
* Most of the user comments on Losse Veter are either racist or zealot
* epistels about doping. With this Firefox setting, you can enjoy just
* the track and field news.
*
* Edit this file and copy it as userContent.css into your Firefox
* profile-directory/chrome/
*/
@martijnvermaat
martijnvermaat / fix_sslv3.sh
Last active January 5, 2016 10:07
Fix curl/gnutls SSLv3 on Ubuntu 14.04
#!/bin/bash
# Fix curl/gnutls SSLv3 on Ubuntu 14.04
#
# The curl version on Ubuntu 14.04 Trusty Tahr has a bug (through gnutls) in
# its SSLv3 support. This also affects git.
#
# http://sourceforge.net/p/curl/bugs/1319/
#
# This downgrades curl to 7.32 (from Ubuntu 13.12), which does not have the
# bug. It also uninstalls the landscape-client and python-pycurl packages
@martijnvermaat
martijnvermaat / limit-directory-size
Created September 6, 2014 00:12
Limit directory size by deleting files accessed least recently
#!/bin/bash
# Limit directory size by deleting files accessed least recently.
#
# Use inotify to wait for files written to the specified directory. On such an
# event, and if the directory size is over the specified maximum size, keep
# deleting files until the size is below the maximum. Repeat (so, never exit).
#
# Names of deleted files are written to stdout, messages are prefixed with the
# string ">>>".
#
@martijnvermaat
martijnvermaat / .gitignore
Last active August 29, 2015 14:07
Profiling k-mer pairwise comparison
.ipynb_checkpoints
*.pdf
*.fa
[abcde].k1
[abcde].k2
[abcde].k3
[abcde].k4
[abcde].k5
[abcde].k6
[abcde].k7
@martijnvermaat
martijnvermaat / windows_batch_checker.md
Created January 30, 2015 10:52
Running the automated Batch Checker

Running the automated Batch Checker

(By Jeroen Laros.)

Installation

Python core libraries

Go to the Python website. In the Downloads tab, click the Python 2.7.9

@martijnvermaat
martijnvermaat / emacs.md
Last active November 14, 2016 18:08
Emacs notes

Emacs notes

Just some Emacs things that I cannot seem to remember without writing them down. I'm an Emacs newbie (but have been using it for 15 years).

These are random and specific to my setup, so probably not useful to anyone else.

Config can be found here: https://github.com/martijnvermaat/dotfiles

@martijnvermaat
martijnvermaat / plink_dbsnp.md
Last active May 30, 2016 16:02
Rename Plink SNPs to their dbSNP rs#