This file contains 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
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 = {} |
This file contains 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
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,+ |
This file contains 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
"i3lock -i ~/Pictures/Backgrounds/main_background.png -e -f --insidevercolor=268bd2bf --insidewrongcolor=dc322fbf --insidecolor=073642bf --ringvercolor=268bd2ff --ringwrongcolor=dc322fff --ringcolor=073642ff --textcolor=839496ff --separatorcolor=073642ff --keyhlcolor=2aa198ff --bshlcolor=cb4b16ff -r" |
This file contains 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
#!/bin/bash | |
contains() { | |
[[ $1 =~ $2 ]] && return 0 || return 1 | |
} | |
app_list=$(wmctrl -lx | awk '{print $3}') | |
if contains "$app_list" "$2"; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
function global:prompt { | |
$realLASTEXITCODE = $LASTEXITCODE | |
$global:l = "$($(Get-History)[-1])" | |
$temp = "$($(Get-History)[-1])" -split " " | |
$global:lc = $temp[0] | |
$global:lp = $temp[1..($temp.length-1)] | |
# Reset color, which can be messed up by Enable-GitColors | |
$Host.UI.RawUI.ForegroundColor = $GitPromptSettings.DefaultForegroundColor | |
Write-Host($(Split-Path $pwd -Leaf)) -nonewline -foregroundcolor Blue |
This file contains 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
xautolock -time 10 -notify 30 -notifier "notify-send 'Locking screen in 30 s' --icon=appointment" -locker xflock4 |
This file contains 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
\the\textwidth |
This file contains 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
def find_nearest(array, value): | |
return (np.abs(array - value)).argmin() |
This file contains 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
find ~ -type d -name .git | xargs -n 1 dirname | xargs -n 1 basename |
NewerOlder