Skip to content

Instantly share code, notes, and snippets.

View kloetzl's full-sized avatar

Fabian Klötzl kloetzl

View GitHub Profile
@kloetzl
kloetzl / keybase.md
Last active August 29, 2015 14:06
keybase.md

Keybase proof

I hereby claim:

  • I am kloetzl on github.
  • I am kloetzl (https://keybase.io/kloetzl) on keybase.
  • I have a public key whose fingerprint is D1BC 887A 4928 D548 D924 FF40 0FDA 859A 5603 76C1

To claim this, I am signing this object:

#!/usr/bin/python
mat = [[0,1],[1,0]]
print(mat)
#double each element
mat2 = [[ elem * 2 for elem in row] for row in mat]
print(mat2)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct line {
char *foo, *bar, * baz;
long derp, herp;
};
int main(int argc, char const *argv[])
@kloetzl
kloetzl / reaper.c
Created July 14, 2017 07:23
reaper source
/*
* (C) Copyright 2011, 2012, 2013, 2014, 2015 European Molecular Biology Laboratory.
* Author: Stijn van Dongen <stijn@ebi.ac.uk>.
* Contact: <kraken@ebi.ac.uk>
*
* This file is part of Reaper. Reaper is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of the License,
#!/usr/bin/zsh
wget "ftp://ftp.ensemblgenomes.org/pub/bacteria/release-36/species_EnsemblBacteria.txt"
mv species_EnsemblBacteria.txt species.txt
# |head -n 2
ECOLI=("${(@f)$(grep 'Escherichia coli' species.txt | cut -f 2,5)}")
for line in $ECOLI; do
<!doctype html>
<html>
<head>
<script src=https://code.jquery.com/jquery-3.4.1.min.js></script>
<style type="text/css">
tr > td:first-child {
border-right: solid 2px gray;
}