Skip to content

Instantly share code, notes, and snippets.

@oxtopus
oxtopus / README.md
Last active June 10, 2017 19:02 — forked from bcavagnolo/asset-store-spec.md
asset store spec

Asset Store

webapp.py comprises a simple web application to host assets such that:

  • Every asset that we store has an "asset name". There are some rules about asset names:
    • They must be globally unique across all assets
    • They can only contain alphanumeric ascii characters, underscores, and dashes
    • They cannot start with an underscore or dash
    • They must be between 4 and 64 characters long
.
├── setup.py
├── some_python_project
│   └── __init__.py
└── some_python_project.egg-info
├── PKG-INFO
├── SOURCES.txt
├── dependency_links.txt
└── top_level.txt
core@core-01 ~ $ docker run \
> --name nupic-mysql \
> -e MYSQL_ROOT_PASSWORD=nupic \
> -p 3306:3306 \
> -d \
> mysql:5.6
Unable to find image 'mysql:5.6' locally
5.6: Pulling from mysql
9d3ceacde91b: Pull complete
$ pip install --upgrade pip --user
You are using pip version 6.1.1, however version 7.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/Users/amarshall/Library/Python/2.7/lib/python/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting pip
Downloading pip-7.0.1-py2.py3-none-any.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 160kB/s
Installing collected packages: pip
Found existing installation: pip 6.1.1
@oxtopus
oxtopus / README.md
Last active August 29, 2015 14:21
issue #2115
============================= test session starts ==============================
platform linux2 -- Python 2.7.6 -- pytest-2.4.2
plugins: cov, xdist
collected 788 items / 1 errors / 2 skipped
../usr/local/lib/python2.7/dist-packages/tests/unit/nupic/utils_test.py ...
../usr/local/lib/python2.7/dist-packages/tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py ...ss..
../usr/local/lib/python2.7/dist-packages/tests/unit/nupic/algorithms/anomaly_likelihood_test.py .............
../usr/local/lib/python2.7/dist-packages/tests/unit/nupic/algorithms/anomaly_test.py ............
../usr/local/lib/python2.7/dist-packages/tests/unit/nupic/algorithms/cells4_test.py
foo.split("").reverse().join("").split(/:(?!([\\]))/).map(function(_){if (_) {return _.split("").reverse().join("")} else {return _ }}).reverse().filter(function(_) {return (_)})
@oxtopus
oxtopus / history.txt
Last active June 10, 2024 16:28 — forked from anonymous/history.txt
Installing NuPIC from scratch on Ubuntu 13.10
sudo apt-get update
sudo apt-get install python-dev git python-pip automake libtool libssl-dev
git clone https://github.com/numenta/nupic.git
mkdir -p nta/eng
echo "
export NTA=$HOME/nta/eng
export NUPIC=$HOME/nupic
export BUILDDIR=/tmp/ntabuild
export MK_JOBS=3
source $HOME/nupic/env.sh" >> ~/.bashrc
@oxtopus
oxtopus / demo.py
Last active December 23, 2015 22:09
import validictory
import yaml
data = yaml.load("""
- foo
- bar: [baz, null, 1.0, 2]
""")
with open('schema.yml', 'r') as inp:
schema = yaml.load(inp.read())
@oxtopus
oxtopus / Output
Created June 10, 2013 18:03
Bootstrap NuPIC installation in virtualenv from github.
$ ./bootstrap-nta.sh
Running virtualenv with interpreter /usr/bin/python2.6
New python executable in nta/bin/python2.6
Also creating executable in nta/bin/python
Installing setuptools............done.
Installing pip...............done.
Cloning into 'nupic'...
remote: Counting objects: 12804, done.
remote: Compressing objects: 100% (8984/8984), done.
remote: Total 12804 (delta 3622), reused 12540 (delta 3558)