Skip to content

Instantly share code, notes, and snippets.

View keckelt's full-sized avatar
🐋

Klaus Eckelt keckelt

🐋
View GitHub Profile
@keckelt
keckelt / Caleydo_checkout.sh
Created July 25, 2019 07:43
Checkout all Caleydo repos
# src: https://www.jakeworth.com/clone-all-of-an-organizations-git-repos/
curl -s https://api.github.com/orgs/Caleydo/repos?per_page=200 | \
ruby -e 'require "json"; JSON.load(STDIN.read).each \
{ |repo| %x[git clone -b develop \"#{repo["ssh_url"]}\" ]}'
@keckelt
keckelt / MP4toGIF.sh
Created May 13, 2019 14:25
Video to GIF
ffmpeg -i video.mp4 -pix_fmt rgb24 image.gif
# Source: https://coderwall.com/p/euwpig/a-better-git-log
# example: git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# config:
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# execute: git lg
@keckelt
keckelt / Dark Slack.md
Last active January 7, 2022 20:06
Slack Dark
@keckelt
keckelt / D3 Boxplot.md
Last active March 12, 2019 07:59 — forked from jensgrubert/README.md
D3.js Boxplot with Axes and Labels

A box-and-whisker plot with axes. Based on Mike Bostock's implementation. Instead of using individual svg elements as in Mike's implementation, here all boxplots are rendered with in one root element. This makes it easy to add axes.

Further differences between the two implementations are:

  • visibility of boxplot labels can be switched with the labels variable
  • CSV files are supported in which each column is an independent variable and each row contains measurements for all variables (see data.csv)
  • transitions are not used here but can be easily added again
@keckelt
keckelt / Backtick Behaviour.md
Last active February 2, 2025 04:08
Avoid typing backticks twice (on Linux and Windows)

Avoid typing backticks twice (on Linux and Windows) using the instructions below :)

gnome-terminal -- /bin/bash -c 'docker-compose up;exec /bin/bash'
gnome-terminal -- /bin/bash -c 'npm start;exec /bin/bash'
@keckelt
keckelt / .bashrc
Last active September 17, 2018 08:46
Bash Config
# Headlines: http://www.network-science.de/ascii/
# Font: big Reflection: no Adjustment: left Stretch: no Width: 80 Text: HISTORY
# _ _ _____ _____ _______ ____ _______ __
# | | | |_ _|/ ____|__ __/ __ \| __ \ \ / /
# | |__| | | | | (___ | | | | | | |__) \ \_/ /
# | __ | | | \___ \ | | | | | | _ / \ /
# | | | |_| |_ ____) | | | | |__| | | \ \ | |
@keckelt
keckelt / sharelatex-dark.user.css
Created July 18, 2018 15:58
ShareLatex Monokai Theme
/* ==UserStyle==
@name ShareLatex Monokai Theme
@namespace github.com/openstyles/stylus
@version 1.0.0
@license CC BY-SA
@description Fork of ZenTauro's monokai theme for ShareLatex: https://userstyles.org/styles/142332/monokai-dark which no longer styled fienames.
==/UserStyle== */
@-moz-document regexp(".*sharelatex.com/project/.*") {
@keckelt
keckelt / enrichment.py
Last active July 3, 2018 08:13
Python Gene Set Enrichment Analysis
from __future__ import division
import random
import math
import matplotlib.pyplot as plt
import numpy as np
def enrichment_score(all_genes, gene_set):
running_sum = 0
scores = [running_sum] # enrichment scores of the random walk