Skip to content

Instantly share code, notes, and snippets.

Fabian Klötzl kloetzl

Block or report user

Report or block kloetzl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dsa.js
var AT = 14;
var PA = 8;
function ohne(wa, wv){
if (wa == 1) {
var kritischer_schaden = (AT/20) * (PA/2/20) * (6 * 2);
var glücklicher_schaden = (1-AT/20) * (PA/2/20);
return kritischer_schaden + glücklicher_schaden;
}
View ensembl_ecoli.zsh
#!/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
@kloetzl
kloetzl / reaper.c
Created Jul 14, 2017
reaper source
View reaper.c
/*
* (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,
View foo.c
#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[])
View mat.py
#!/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)
@kloetzl
kloetzl / keybase.md
Last active Aug 29, 2015
keybase.md
View 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:

You can’t perform that action at this time.