Skip to content

Instantly share code, notes, and snippets.

@AKuederle
AKuederle / file.txt
Last active June 16, 2016 07:18
A short example how to deal strange datatypes
Sequence_ID, Sequence_Length, Hit_Count, Start, End, Strand
NM_172887.2,1-10753,1,10453,10459,+
XM_006504928.1,1-10641,1,10364,10370,+
XM_006504927.1,1-10650,1,10373,10379,+
XM_006504926.1,1-10659,1,10382,10388,+
NM_147219.2,1-8339,1,7632,7638,+
XM_006533065.2,1-8166,1,7529,7535,+
NM_009592.1,1-5759,3,2822,2828,+
3867,3873,+
3971,3977,+
@AKuederle
AKuederle / hotkey.sh
Last active November 8, 2016 08:14
Get Windows like App Hotkey Start-up behavior. First Argument: Path to app. Second argument: App-class (wmctrl -lx)
#!/bin/bash
contains() {
[[ $1 =~ $2 ]] && return 0 || return 1
}
app_list=$(wmctrl -lx | awk '{print $3}')
if contains "$app_list" "$2";
@AKuederle
AKuederle / main.py
Created December 22, 2016 20:28
law-citing
import jinja2
import os
import shutil
test_cites = {'0':{'name': 'test0', 'case_id': 0}, '1':{'name': 'test1', 'case_id': 1}, '2':{'name': 'test2', 'case_id': 2}}
class Citation(object):
num_citations = 0
cited = {}