Avoid typing backticks twice (on Linux and Windows) using the instructions below :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
(function(e, s) { | |
e.src = s; | |
e.onload = function() { | |
jQuery.noConflict(); | |
console.log('jQuery injected'); | |
$('.movie-card__overlay').addClass('hover'); | |
setTimeout( function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Headlines: http://www.network-science.de/ascii/ | |
# Font: big Reflection: no Adjustment: left Stretch: no Width: 80 Text: HISTORY | |
# _ _ _____ _____ _______ ____ _______ __ | |
# | | | |_ _|/ ____|__ __/ __ \| __ \ \ / / | |
# | |__| | | | | (___ | | | | | | |__) \ \_/ / | |
# | __ | | | \___ \ | | | | | | _ / \ / | |
# | | | |_| |_ ____) | | | | |__| | | \ \ | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gnome-terminal -- /bin/bash -c 'docker-compose up;exec /bin/bash' | |
gnome-terminal -- /bin/bash -c 'npm start;exec /bin/bash' |
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
Add the code of snippet.js at the end of file: /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer