Zing, pow
Click it to make it go some more
# 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: |
<!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> |
#!/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. |
#!/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 | |
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, { |
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)], |
#!/usr/bin/env python | |
# | |
# Half-assed fuzzer for HTML strip-tags functions | |
# | |
from __future__ import print_function | |
BITS = [ | |
'<', '</', '>', '<!--', '-->', 'a', 'div', 'p', 'i', | |
] |
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 |
Zing, pow
Click it to make it go some more
Click it to make it go again.
A d3.js version of the "egyptian" effect used in Tron. A few really fun pages over here by GMUNK were the inspiration.