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
{% macro create_f_parse_ua_string() %} | |
CREATE OR REPLACE FUNCTION utils.parse_ua_string(ua_string varchar) | |
RETURNS VARIANT | |
LANGUAGE JAVASCRIPT | |
AS $$ | |
/*! | |
* UAParser.js v0.7.20 | |
* Lightweight JavaScript-based User-Agent string parser | |
* https://github.com/faisalman/ua-parser-js | |
* |
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
FROM centos | |
RUN yum install -y tar wget postgresql-devel | |
RUN wget http://bin.begriffs.com/dbapi/heroku/postgrest-0.2.8.0.tar.xz | |
RUN tar --xz -xvf postgrest-0.2.8.0.tar.xz | |
RUN mv postgrest-0.2.8.0 /usr/local/bin/postgrest | |
CMD postgrest --db-host localhost --db-port 5432 \ | |
--db-name my_db --db-user postgres \ | |
--db-pass foobar --db-pool 200 \ |
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
# Paste URLs and other text here for easier copying | |
http://cloud1.galaxyproject.org/ |
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 sys | |
from Bio import SearchIO | |
# usage: parse_blast_hits.py inputfile > outputfile | |
file = sys.argv[1] | |
for qresult in SearchIO.parse(file, 'blast-text'): | |
print("%s" % (qresult.id)) |
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
#!/usr/bin/perl -w | |
while(<>) { | |
chomp($_); | |
my @o = split("",$_); | |
print join(',',@o) . "\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
In [26]: pid = client.getNextPID(u'foo') | |
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<ipython-input-26-9c5d45fed03c> in <module>() | |
----> 1 pid = client.getNextPID(u'foo') | |
/Library/Python/2.7/site-packages/fcrepo/client.pyc in getNextPID(self, namespace, numPIDs, format) | |
19 | |
20 def getNextPID(self, namespace, numPIDs=1, format=u'text/xml'): | |
---> 21 request = self.api.getNextPID() |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. |
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
#!/usr/bin/perl -w | |
for ($job in @ARGV) { | |
system "qsub $job"; | |
} |
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/sh: raxmlHPC-PTHREADS-SSE3: command not found | |
Return error code 127 from command: | |
['raxmlHPC-PTHREADS-SSE3', '-T 4', '-s /home/galaxy/galaxy-dist/database/files/000/dataset_76.dat', '-n galaxy', '-m GTRGAMMA', '-p 1234567890'] |
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 B as b | |
b.D() |
NewerOlder