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
print("TensorFlow version: {}".format(tf.__version__)) | |
print("Intel MKL-DNN is enabled = {}".format(tf.pywrap_tensorflow.IsMklEnabled())) |
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
#get largest files / folders in the file system | |
du -h | sort -hr | head | |
#sum sizes of specific files | |
find . -name "*.pyc" -print0 | du -hc --files0-from=- | tail | |
#delete those same ones | |
find . -name "*.pyc" -exec rm {} \; |
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
#!/usr/bin/env bash | |
# Source: https://gist.github.com/jordan-brough/48e2803c0ffa6dc2e0bd | |
# Download this script as "git-recent" (no extension), chmod it to be executable and put it in your | |
# path somewhere (e.g. /usr/bin). You can then use it via `git recent` from inside any git repo. | |
# Example: | |
# | |
# $ git recent -n 5 |
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
//Note: this section 'buildscript` is only for the dependencies of the buildscript itself. | |
// See the second 'repositories' section below for the actual dependencies of GATK itself | |
buildscript { | |
repositories { | |
mavenCentral() | |
jcenter() // for shadow plugin | |
} | |
} | |
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
local ret_status="%(?:%{$fg_bold[green]%}🐋 :%{$fg_bold[red]%}🐳 %s)" | |
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
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 javax.tools.ToolProvider | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
} | |
plugins { | |
id "java" |
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
public static <T,U,R> Iterable<R> zipMap(Iterable<T> left, Iterable<U> right, BiFunction<T,U,R> f){ | |
return () -> new Iterator<R>() { | |
final Iterator<T> leftIter = left.iterator(); | |
final Iterator<U> rightIter = right.iterator(); | |
@Override | |
public boolean hasNext() { | |
if( leftIter.hasNext() ^ rightIter.hasNext()){ | |
throw new IllegalStateException("left and right had unequal lengths"); | |
} |
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
#!/bin/bash | |
echo "cloning" | |
git clone git@github.com:github/git-lfs.git | |
echo "cd into git-lfs" | |
cd git-lfs | |
echo "checkout commit 4457d7c7c5906025f753579f67f975792235b717" | |
git checkout 4457d7c7c5906025f753579f67f975792235b717 |
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
function updateSam { | |
hellbender PrintReads --disable_all_read_filters -I $1 -O out.sam && echo "moving out.sam to $1" && mv out.sam $1 | |
} | |
function updateBam { | |
hellbender PrintReads --disable_all_read_filters -I $1 -O out.bam && echo "moving out.bam to $1" && mv out.bam $1 | |
samtools index $1 | |
} | |
autoload -U zargs |
NewerOlder