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 | |
# Utility script to copy over a file or directory from one repo to another while maintaining history | |
# Taken from: https://savorywatt.com/2015/01/25/move-files-and-folders-between-git-repos-using-patches/ | |
# Usage: | |
# ./scripts/move_file_with_git_history.sh ~/some/repo/some/file/foo.py | |
# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425 | |
set -e | |
set -u | |
set -o pipefail |
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
#write { | |
max-width: 1160px; | |
} | |
code { | |
padding: 2px 4px; | |
font-size: 90%; | |
color: #c7254e; | |
background-color: #f9f2f4; | |
border-radius: 4px; |
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
#!/usr/bin/env python3 | |
''' | |
TODOC | |
Usage: | |
------ | |
./boiler_plate.py -d required -p optional | |
''' |
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 value_count(x, name=None): | |
''' | |
Helper function that wraps df.value_counts() into a more | |
presentable fashion. | |
Example: | |
======== | |
dat = a|b|c | |
1|2|3 | |
4|5|6 |
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 | |
echo "Vsearch started: $(date)"; | |
echo ""; | |
# generate all the proper directories | |
mkdir -p step1_otus; mkdir -p step2_otus; mkdir -p step3_otus; mkdir -p step4_otus | |
# must sort because searching done greedily | |
# see http://drive5.com/usearch/manual/uparseotu_algo.html |