This is just some stencils I created for myself to draw FMC (http://www.fmc-modeling.org/) diagrams with draw.io.
Here is how they look:
man -t bash | open -f -a Preview |
import sys | |
d = {} | |
for line in sys.stdin: | |
adds, dels, path = line.rstrip().split('\t') | |
if path in d: | |
d[path]['adds'] += int(adds) | |
d[path]['dels'] += int(dels) | |
d[path]['count'] += 1 |
This is just some stencils I created for myself to draw FMC (http://www.fmc-modeling.org/) diagrams with draw.io.
Here is how they look:
# taken from user Albert's answer on StackOverflow | |
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title | |
# tested on Mac OS X 10.7.5 | |
global frontApp, frontAppName, windowTitle | |
set windowTitle to "" | |
tell application "System Events" | |
set frontApp to first application process whose frontmost is true | |
set frontAppName to name of frontApp |
wget -qO- --header="Accept: application/x-bibtex" "https://doi.org/10.1109/5.771073" |
#!/usr/bin/env python3 | |
# In this bonus challenge, you'll need to check the winner of the battle but this time, a sorcerer wins if he succeeds in winning 3 spell clashes in a row. | |
# | |
# 1. Create variables POWER, gandalf and saruman as seen above. | |
# | |
# spells have names, dictionary that associates that name to a power. | |
POWER = { | |
'Fireball': 50, |
bibexport -o extracted.bib main.aux | |
echo "delete.field = { abstract }" > remove-abs.rsc && bibtool -r remove-abs.rsc extracted.bib -o minified.bib |
sudo apt install libresample1 | |
http://mirrors.kernel.org/ubuntu/pool/universe/liba/libav/libavutil52_9.20-0ubuntu0.14.04.1_amd64.deb | |
sudo gdebi libavutil52_9.18-0ubuntu0.14.04.1_amd64.deb | |
http://security.ubuntu.com/ubuntu/pool/universe/liba/libav/libswscale2_9.20-0ubuntu0.14.04.1_amd64.deb | |
sudo gdebi libswscale2_9.18-0ubuntu0.14.04.1_amd64.deb | |
# Download clickshare deb | |
# https://drive.google.com/drive/folders/0B9IKZqXvLKM_Yno1UmpGLVRXNDg | |
# https://drive.google.com/file/d/0B9IKZqXvLKM_QzF4aTlRNVV5Wk0/view | |
sudo gdebi clickshare_01.07.01-79_amd64.deb |
#!/usr/bin/zsh | |
# This hook is sourced after this virtualenv is activated. | |
echo $fg_bold[green] $(python --version) | |
echo $fg_bold[green] $(which python) |
#!/usr/bin/env python3 | |
import os | |
import tkinter as tk | |
from tkinter import filedialog | |
from tkinter import ttk | |
from tkinter import scrolledtext | |
import time | |
import threading |