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 python | |
import sys | |
try: | |
stream = open(sys.argv[1], 'r') | |
except: | |
stream = sys.stdin | |
is_header = True |
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
grep -oe "^[A-Za-z]*[0-9]*" COI.phy | nl -nln -v 0 | tail -n+2 > weevils.imap |
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 perl | |
# | |
# isolate_target_tree.pl | |
# Usage: isolate_target_tree.pl <target_tree_id> <trees_file> | |
use strict; | |
use warnings; | |
my $target_tree = shift; |
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 python | |
# Usage: diversity_index.py [percentage1 [percentage2 [...]]] | |
import sys | |
total = 0 | |
for i in sys.argv[1:]: | |
total += float(i) ** 2 | |
print 1 - total |
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 python | |
import sys | |
import numpy | |
import pylab | |
import random | |
lambd_A = random.random() | |
lambd_B = random.random() |
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 osascript | |
-- HUJA: Harvard University Journal Access | |
set MY_USERNAME to "username" | |
set MY_PASSWORD to "password" | |
set PROXY_SERVER to ".ezp-prod1.hul.harvard.edu" | |
set loginAnyway to false | |
tell application "Safari" to set origURL to URL of front document as string |
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 python | |
import sys | |
try: | |
stream = open(sys.argv[1], 'r') | |
except: | |
stream = sys.stdin | |
students = [] |
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/bash | |
# outsmart-slurm.bash | |
# Outsmarts SLURM by automatically increasing the memory allocation for a failing job. | |
# Usage: bash outsmart-slurm.bash [SBATCH file] | |
# Download the latest revision at https://gist.github.com/armanbilge/6390764 | |
if [ -z "$1" ] | |
then | |
echo "*** ERROR *** No SBATCH file specified." 1>&2 | |
echo "Usage: bash outsmart-slurm.bash [SBATCH file]" 1>&2 |
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
grep fullhostname rstb20120196supp1.xml | sed -e 's/\(<[^<][^<]*>\)//g' | sort | uniq | sed -e 's/^[[:space:]]*//' > bat-species.txt |
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
/** | |
* Buzzer.java | |
* | |
* Buzzer | |
*/ | |
package org.lexingtonma.lhs.nhb; | |
import java.awt.Color; | |
import java.awt.DefaultKeyboardFocusManager; | |
import java.awt.Font; |
OlderNewer