Skip to content

Instantly share code, notes, and snippets.

View keckelt's full-sized avatar
🐋

Klaus Eckelt keckelt

🐋
View GitHub Profile
@keckelt
keckelt / female.mat
Last active December 27, 2017 13:04
Split normal distributions
@keckelt
keckelt / starmovie.js
Last active April 1, 2018 15:29
Star Movie Bookmarklet: Reveal Times
javascript:
(function(e, s) {
e.src = s;
e.onload = function() {
jQuery.noConflict();
console.log('jQuery injected');
$('.movie-card__overlay').addClass('hover');
setTimeout( function(){
@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
@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 / .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
# _ _ _____ _____ _______ ____ _______ __
# | | | |_ _|/ ____|__ __/ __ \| __ \ \ / /
# | |__| | | | | (___ | | | | | | |__) \ \_/ /
# | __ | | | \___ \ | | | | | | _ / \ /
# | | | |_| |_ ____) | | | | |__| | | \ \ | |
gnome-terminal -- /bin/bash -c 'docker-compose up;exec /bin/bash'
gnome-terminal -- /bin/bash -c 'npm start;exec /bin/bash'
@keckelt
keckelt / Backtick Behaviour.md
Last active February 16, 2024 21:58
Avoid typing backticks twice (on Linux and Windows)

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

@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 / Dark Slack.md
Last active January 7, 2022 20:06
Slack Dark
# 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