Skip to content

Instantly share code, notes, and snippets.

View hexylena's full-sized avatar
🚫
Generally Unavailable until Q3

Helena hexylena

🚫
Generally Unavailable until Q3
View GitHub Profile
#!/bin/bash
VIRTUAL_ENV=$1
if [ -z $VIRTUAL_ENV ]; then
echo "usage: $0 </path/to/virtualenv> <cmd>"
exit 1
fi
. $VIRTUAL_ENV/bin/activate
shift 1

Keybase proof

I hereby claim:

  • I am erasche on github.
  • I am hxr (https://keybase.io/hxr) on keybase.
  • I have a public key whose fingerprint is 0C0E 0EA0 EBB8 E7D1 39B3 4551 149E 5F52 736B 9013

To claim this, I am signing this object:

@hexylena
hexylena / BaseSpaceFastQDownloader.py
Created May 6, 2016 17:10
BaseSpace Batch Downloader in Python
from urllib2 import Request, urlopen, URLError
from os.path import expanduser
import re
import hashlib
import json
import sys
import os
import logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger()
@hexylena
hexylena / dojo.js.patch
Created December 31, 2015 16:45
JBrowse analytics patch
--- a/src/dojo/dojo.js 2015-12-30 17:07:30.735832912 -0600
+++ b/src/dojo/dojo.js 2015-12-31 09:27:19.348605487 -0600
@@ -77,7 +77,7 @@
"https";if("undefined"!=typeof this.config.clientReport&&"undefined"!=typeof this.config.clientReport.protocol)b=this.config.clientReport.protocol;a=b+"://jbrowse.org/analytics/clientReport?"+dojo.objectToQuery(a);dojo.create("img",{style:{display:"none"},src:a},document.body)},getStore:function(a,b){if(!b)throw"invalid arguments";var c=this._storeCache||{};this._storeCache=c;if(c=c[a])c.refCount++,b(c.store);else{var f=this.config.stores[a];f?(c=f.type)?require([c],dojo.hitch(this,function(c){var d=
{};dojo.mixin(d,f);dojo.mixin(d,{config:f,browser:this,refSeq:this.refSeq});c=new c(d);this._storeCache[a]={refCount:1,store:c};b(c);b=void 0})):(console.warn("store "+a+" has no type defined"),b(null)):(console.warn("store '"+a+"' not found"),b(null))}},uniqCounter:0,addStoreConfig:function(a,b){a=a||"addStore"+this.uniqCounter++;if(!this.config.stores)this.config.stores={};if
@hexylena
hexylena / Shell Log.md
Last active September 7, 2016 15:34
tool_dependencies generator

Shell script to make producing tool_dependencies easier. It's simple to use, behaves a lot like a venv, and then produces a tool_dependencies.xml in the directory where you started when you deactivate at the end.

Pretty to activate:

. activate.sh

Example of use:

@hexylena
hexylena / phacts-galaxy.patch
Created July 23, 2014 18:23
Patch for phacts use in galaxy
241c241
< my $command = "$fasta_path -b 1 -H -q \"".$swd."/proteins/$prot\" \"$swd/$file_path\"";
---
> my $command = "$fasta_path -b 1 -H -q \"".$swd."/proteins/$prot\" \"$file_path\"";