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 | |
# usage bash get_module_version.sh MODULENAME | |
# module name as first argument | |
mod=$1 | |
# get version | |
perl -M$mod -e "print \"$mod: \$$mod::VERSION\n\"" |
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
# No need to specify repos to install a CRAN package | |
cat("Setting R repository:http://cran.case.edu\n") | |
repo = getOption("repos") | |
# set up the server from which you will download the package. | |
repo["CRAN"] = "http://cran.case.edu" | |
options(repos = repo) | |
rm(repo) | |
# load BiocInstaller/biocLite when R starts | |
# you can now directly install bioconductor packages using biocLite('package-name') |
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
# history search | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward |
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
# usage: bash replace_nlchar.sh <filename> | |
perl -pi -e 's/\r/\n/g' $1 |
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 requests | |
def download_file_from_google_drive(id, destination): | |
def get_confirm_token(response): | |
for key, value in response.cookies.items(): | |
if key.startswith('download_warning'): | |
return value | |
return None |
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
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |