This file contains hidden or 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
IFS=$'\n' | |
for line in `cat fastq_list.tsv`; do | |
zcat $line | head -n 1 | awk -v fname=$line -v OFS="\t" '{ print $0, fname}' >> fastq_headers.tsv | |
done |
This file contains hidden or 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
wget -r --no-parent --reject ".*" ftp://[email protected]/bundle/hg19/ |
This file contains hidden or 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
[ | |
{ "keys": ["command+down"], "command": "plus_line", "args": {"lines": 10}}, | |
{ "keys": ["command+up"], "command": "minus_line", "args": {"lines": 10}}, | |
] |
This file contains hidden or 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
name: bamsurgeon | |
channels: | |
- bioconda | |
- conda-forge | |
- defaults | |
dependencies: | |
- python=2.7 | |
- bwa=0.7.17 | |
- picard==2.9.2 | |
- velvet==1.2.10 |
This file contains hidden or 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
# https://benjcunningham.org/blog/unnest-list-columns-in-pandas.html | |
import pandas as pd | |
def unnest(df, col): | |
unnested = (df.apply(lambda x: pd.Series(x[col]), axis=1) | |
.stack() | |
.reset_index(level=1, drop=True)) | |
unnested.name = col | |
return df.drop(col, axis=1).join(unnested) |
This file contains hidden or 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
package main | |
/* | |
# <bitbar.title>Strava</bitbar.title> | |
# <bitbar.version>v0.0.1</bitbar.version> | |
# <bitbar.author>Daniel Cook</bitbar.author> | |
# <bitbar.author.github>danielecook</bitbar.author.github> | |
# <bitbar.desc>Bitbar Strava tracker</bitbar.desc> | |
*/ |
This file contains hidden or 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
SET GLOBAL general_log = 'ON'; | |
SET GLOBAL general_log_file = "/Users/dancook/Documents/snippet-q/snippet-q/mysql.log"; | |
SET GLOBAL log_output = 'FILE'; |
This file contains hidden or 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 html | |
import requests | |
from bs4 import BeautifulSoup | |
def boolify(s): | |
if s == 'True': | |
return True | |
if s == 'False': | |
return False | |
raise ValueError("huh?") |
This file contains hidden or 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
✔ Alignment | ✔ Anaconda | |
✔ ayu | ✔ Color Highlighter | |
✔ Gist | ✔ Git | |
✔ GitGutter | ✔ Jinja2 | |
✔ LESS | ✔ MarkdownEditing | |
✔ Package Control | ✔ PackagesUI | |
✔ Pretty JSON | ✔ Python 3 | |
✔ Python Improved | ✔ rainbow_csv | |
✔ Se |
This file contains hidden or 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
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist | |
sudo /usr/libexec/locate.updatedb |