Skip to content

Instantly share code, notes, and snippets.

View rhyolight's full-sized avatar

Matthew Taylor rhyolight

View GitHub Profile
@rhyolight
rhyolight / rdp.js
Created May 31, 2012 20:32
Ramer-Douglas-Peucker line filtering algorithm in JavaScript
function findPerpendicularDistance(point, line) {
var pointX = point[0],
pointY = point[1],
lineStart = {
x: line[0][0],
y: line[0][1]
},
lineEnd = {
x: line[1][0],
y: line[1][1]
@rhyolight
rhyolight / request-to-travis-ci.md
Last active May 13, 2020 20:16
An Open Request to Travis-CI

An Open Request to Travis-CI

I run open source projects for Numenta, and we are heavy users of Travis-CI. Most aspects of your service are oustanding. Here is a short list of the ways in which I love Travis-CI:

  • Your customer support is immediately responsive, via email and chat.
  • Your service integrates wonderfully with all the other services we use.
  • Your API is excellent and well-documented.
  • The rest of your documentation is also very complete and easy to read.
  • You provide an OS X build environment!
  • Builds are extremely customizable.
pip install nupic
Collecting nupic
Using cached nupic-0.5.5-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): numpy==1.9.2 in /anaconda/lib/python2.7/site-packages (from nupic)
Requirement already satisfied (use --upgrade to upgrade): pytest-xdist==1.8 in /anaconda/lib/python2.7/site-packages (from nupic)
Requirement already satisfied (use --upgrade to upgrade): pytest==2.5.1 in /anaconda/lib/python2.7/site-packages (from nupic)
Requirement already satisfied (use --upgrade to upgrade): DBUtils==1.1 in /anaconda/lib/python2.7/site-packages (from nupic)
Collecting pycapnp==0.5.8; platform_system == "Linux" or platform_system == "Darwin" (from nupic)
Using cached pycapnp-0.5.8.tar.gz
Collecting asteval==0.9.1 (from nupic)
@rhyolight
rhyolight / nab docker error
Created February 11, 2020 16:33
docker error
∙ docker build --no-cache --rm -f "Dockerfile" -t nab:latest "."
Sending build context to Docker daemon 298.8MB
Step 1/9 : FROM ubuntu:18.04 as base
---> ccc6e87d482b
Step 2/9 : FROM python:3.6.10-alpine3.11
---> 781b53c4648c
Step 3/9 : COPY --from=base . .
---> 38c34cef2881
Step 4/9 : RUN apt update && apt install -y gcc
---> Running in 627c731ef6f0
@rhyolight
rhyolight / nab-py36-numpy-pandas-dockerfile
Created February 11, 2020 16:32
Dockerfile attempt Ubuntu 18.04, Python 3.6, Numpy, Pandas, Cython
FROM ubuntu:18.04 as base
FROM python:3.6.10-alpine3.11
COPY --from=base . .
RUN apt update && \
apt install -y gcc
COPY . /nab
WORKDIR /nab
@rhyolight
rhyolight / description of my react onclick trigger problem.md
Created June 26, 2019 18:07
description of my react onclick trigger problem
@rhyolight
rhyolight / siraj-message.md
Last active June 17, 2019 09:44
Your video on HTM coming this week

Siraj,

First of all, I love what you're doing with YouTube. I commend you for your educational work. I'm also passionate about education, and I've learned a lot from watching your videos.

Second of all, you mentioned on twitter today that you were doing a video on HTM this week. Well I've been making videos about HTM for a couple years now, and I just wanted to ask you a favor. If you don't mind, I would love it if you added a Card to your video that linked to my HTM School playlist.

I've spent so much time putting these together, and our channel is still really small. A link from you would be a huge deal to me and my community!

Thanks so much for everything you do to education people about he future of AI!

  • Working Memory 2.0: Earl K. Miller et al: Neuron
  • Perceptual Cycles: Ruin VanRullen: CellPress
  • Dynamics of Active Sensing and perceptual selection: Charles E Schroeder, et al: Current Opinion in Neurobiology
  • Shifting the spotlight of attention: evidence for discrete computations in cognition: Buschman and Miller: Frontiers in Human Neuroscience
  • A Dynamic Interplay within the Frontoparietal Network Underlies Rhythmic Spatial Attention: Fiebelkorn et al: Neuron
@rhyolight
rhyolight / rhyolights-twitch-faq.md
Last active March 31, 2019 15:09
Rhyolight's Twitch FAQ

What Exactly Am I Watching?

If you are watching me on Twitch, there are generally three types of streams I'll do:

  • AI / Neuroscience Chat: Open chat, usually with a topic. I will go over the topic on the whiteboard, open web resources, chat about the topic, and answer questions and comments. This show has a topic, but I allow it to go off the rails if there is interest.
  • Work Session: Since I'm an Open Source Community Manager, so 95% of my daily work is open and transparent, so why not live stream it? If I'm in a work session, I will try to keep on topic, so please don't be offended if I don't answer your off-topic chat. I work on several different types of projects. Most are educational in some way, many require programming and graphics. I love to create graphical simulations of biological systems and working on community HTM projects during work sessions.
  • Numenta Research Meeting: Most current live research
@rhyolight
rhyolight / err.log
Created September 25, 2018 18:40
error log for nupic installation with orthodoxy
Requirement already satisfied: numpy==1.12.1 in ./Library/Python/2.7/lib/python/site-packages (1.12.1)
Requirement already satisfied: pytest==3.0.7 in ./Library/Python/2.7/lib/python/site-packages (3.0.7)
Requirement already satisfied: pytest-cov==2.5.0 in ./Library/Python/2.7/lib/python/site-packages (2.5.0)
Requirement already satisfied: pytest-xdist==1.16.0 in ./Library/Python/2.7/lib/python/site-packages (1.16.0)
Collecting pycapnp==0.6.3
Using cached https://files.pythonhosted.org/packages/73/5e/f9e4369639883c1efc1c1729e51ed65b5acdadf3445cfa800b1db66d5856/pycapnp-0.6.3.tar.gz
Requirement already satisfied: py>=1.4.29 in ./Library/Python/2.7/lib/python/site-packages (from pytest==3.0.7) (1.5.2)
Requirement already satisfied: setuptools in ./Library/Python/2.7/lib/python/site-packages (from pytest==3.0.7) (40.4.3)
Requirement already satisfied: coverage>=3.7.1 in ./Library/Python/2.7/lib/python/site-packages (from pytest-cov==2.5.0) (3.7.1)
Requirement already satisfied: execnet>=1.1 in /Library/Python/2