Skip to content

Instantly share code, notes, and snippets.

@pdjota
pdjota / commands.bash
Created September 14, 2012 19:22 — forked from anonymous/commands.bash
Downloading bioinfo tools to align a sample of miRNA to a Human Genome and known miRNA
#we need quite a lot of space
mount /dev/sdf bigdir/
cd bigdir/
# Download the Human Genome version 19 from:
# http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/
wget http://hgdownload.cse.ucsc.edu/goldenPath/hg19/bigZips/chromFa.tar.gz
tar xfz chromFa.tar.gz
# Create an index for the Genome
novoindex hg19.nix hg19.fa
@pdjota
pdjota / hint.js
Created August 27, 2012 16:11 — forked from ammonkc/gist:1094266
Write a report of JSHint usage in /Scripts dir
var fs = require('fs');
var jshint = require('jshint').JSHINT;
var processFile = function (file) {
fs.lstat(file, function (err, stats) {
if( stats.isFile() ) {
if (file.indexOf('min.js') < 0 && file.indexOf('.js') >= 0){ //no minified files.
fs.readFile( file, function (e, data) {
jshint(data.toString());
report.write('\n');
@pdjota
pdjota / modernizr-tests.js
Created May 14, 2012 13:08 — forked from danott/modernizr-tests.js
Custom Modernizr tests that are useful.
/* modernizr-test.js
* Daniel Ott
* 3 March 2011
* Custom Tests using Modernizr's addTest API
*/
/* iOS
* There may be times when we need a quick way to reference whether iOS is in play or not.
* While a primative means, will be helpful for that.
*/