Skip to content

Instantly share code, notes, and snippets.

View jasonm's full-sized avatar

Jason Morrison jasonm

View GitHub Profile
XMLHttpRequest cannot load https://view-api.box.com/proxy/--hash-goes-here--/info.json. The 'Access-Control-Allow-Origin' header contains the invalid value '*, *'. Origin 'https://my-local-box.dev' is therefore not allowed access.
hey test
this is a test
whee
this is a test
whee
foo
baz
blat
(master) ~/dev/pgpitter $ curl -i -d@data localhost:7000/statuses -H "Content-Type: application/json"
HTTP/1.1 500 Internal Server Error
Date: Tue, 04 Mar 2014 04:21:00 GMT
Status: 500 Internal Server Error
Connection: close
Content-Type: text/plain; charset=utf-8
X-Request-Id: 2b7084b6-5eed-48c9-82dd-110f580a5c54
X-Runtime: 0.023212
Transfer-Encoding: chunked
/tmp $ curl -O https://pypi.python.org/packages/source/s/selenium/selenium-2.42.1.tar.gz
/tmp $ tar xvfz selenium-2.42.1.tar.gz
x selenium-2.42.1/
x selenium-2.42.1/MANIFEST.in
x selenium-2.42.1/PKG-INFO
x selenium-2.42.1/py/
x selenium-2.42.1/py/CHANGES
# (...snip...)
[~] cat ~/.ipython/profile_default/ipython_notebook_config.py
c = get_config()
c.NotebookApp.webapp_settings = {
"headers": {
"Access-Control-Allow-Origin": "*"
}
}
require 'rubygems'
require 'bio'
triplets = %w( 1 2 3 1 2 2 4 2 1 3 2 4 3 1 1 3 4 4 2 4 1 1 1 4 2 3 1)
bases = %w(a c t g)
decoded = []
bases.each do |i|
bases.each do |j|
bases.each do |k|