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
Vagrant.require_version ">= 1.5.3" | |
unless Vagrant.has_plugin?("vagrant-vbguest") | |
raise "Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`" | |
end | |
VAGRANTFILE_API_VERSION = "2" | |
MEMORY = 2048 | |
CPU_COUNT = 3 |
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/env python | |
# | |
# Half-assed fuzzer for HTML strip-tags functions | |
# | |
from __future__ import print_function | |
BITS = [ | |
'<', '</', '>', '<!--', '-->', 'a', 'div', 'p', 'i', | |
] |
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 subprocess | |
# Usage: put it in the current directory, and run | |
# py.test -p gitignore [...] | |
def pytest_ignore_collect(path, config): | |
if path.basename == '.git': # Ignore .git directory | |
return True | |
child = subprocess.Popen(['git', 'check-ignore', str(path)], |
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
library(proto) | |
library(ggplot2) | |
stat_hist_summary <- function (mapping = NULL, data = NULL, geom = "vline", position = "identity", | |
fun = median, ...) { | |
StatHistSummary$new(mapping = mapping, data = data, geom = geom, | |
position = position, fun = fun, ...) | |
} | |
StatHistSummary <- proto(ggplot2:::Stat, { |
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/env python | |
import StringIO | |
import numpy as np | |
from bottle import route | |
from bottle import run | |
from bottle import abort | |
import Image | |
import requests | |
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/env python | |
""" | |
Translate compact hex sequence representation to standard bases. | |
If you have NCBI ASN.1 data, the easiest way to get a FASTA version is to | |
use NCBI's asn2fasta tool, which is available here: | |
https://ftp.ncbi.nlm.nih.gov/asn1-converters/by_program/asn2fasta/ | |
NCBI2na is a compact representation of sequence data, where each base just | |
takes 2 bits. It's commonly found in text ASN.1 files as hexadecimal strings. |
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
<!doctype html> | |
<meta charset="utf-8"> | |
<title>PubMed Search</title> | |
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<ul id="output"></ul> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script src="pubmed-search.js"></script> |
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
# This is a work-for-hire for the Government of the United States, so it is not | |
# subject to copyright protection. | |
""" | |
logiq - A way to build complex conditions and evaluate them against the world. | |
The goal is to make the conditions easy to construct, and give them useful and | |
concise error messages as well. | |
These are some requirement nodes: |
OlderNewer