Skip to content

Instantly share code, notes, and snippets.

View fungs's full-sized avatar

Johannes Dröge fungs

View GitHub Profile
@fungs
fungs / clean_code.md
Created November 25, 2020 16:35 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@fungs
fungs / keybase.md
Created September 25, 2019 16:22
keybase.io identity proof

Keybase proof

I hereby claim:

  • I am fungs on github.
  • I am fungs (https://keybase.io/fungs) on keybase.
  • I have a public key ASBkDGIvTuSW_qYGK7NigQ4ZxbqpwstXQh-zeeOjS5hC7go

To claim this, I am signing this object:

@fungs
fungs / accession2taxon.py3
Created December 13, 2018 12:34
Query NCBI taxon IDs online using accession
#!/usr/bin/env python3
# Queries NCBI Entrez for taxon IDs given accessions
# Author: code@fungs.de
# License: free to use for everybody
from xml.etree.ElementTree import fromstring as xmlstringparse, ParseError as XMLParseError
from urllib.request import urlopen
from urllib.error import HTTPError
from time import sleep
from itertools import islice