Skip to content

Instantly share code, notes, and snippets.

Can do

  • Set up and endpoint (node app) that relays a conversation thread to an ai endpoint (wit.ai or whatever)
  • Set up and endpoint (node app) that sends structured calls to action based off of simple logic

Can't yet do

  • Have AI endpoint reply with a structured message
  • Access a persistant state of answers to structured messages

Next Action

  • Learn how to persist state or access state if Facebook is already persisting state
@RyanParsley
RyanParsley / AngularUpdate.md
Last active May 12, 2016 13:52
ng-conf 2016 recap

name: Angular Update class: middle, center

Angular Update

ng-conf recap

May 9, 2016

???

I'd like to take 5 minutes to give debrief of ng-conf and share my take on the state of Angular 2.

@RyanParsley
RyanParsley / webcamFaceDetection.py
Created March 18, 2016 02:16
`python webcamFaceDetection.py ./haarcascades/haarcascade_frontalface_default.xml`
import cv2
import sys
cascPath = sys.argv[1]
faceCascade = cv2.CascadeClassifier(cascPath)
video_capture = cv2.VideoCapture(0)
while True:
# Capture frame-by-frame
@RyanParsley
RyanParsley / helloworld.py
Created March 17, 2016 22:11
make an image black and white and draw a line on it. I'm not really sure why
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('watch.jpg',cv2.IMREAD_GRAYSCALE)
plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis
plt.plot([200,300,400],[100,200,300],'c', linewidth=5)
plt.show()

Jenkins can run on it then be triggered from the web of an android app (mvp)

SSH into it and run scripts

getstructure.io?

Run scripts on git hooks

pushbullet can push the ip address to my phone on boot

name: Rethinking Copy Docs class: middle, center

Rethinking copy docs

Friends don't let friends use Word

Feb 11, 2016

??? I've been brainstorming and dogfooding new ways to avoid using Word with George Alexander for a while. Turns out George finds his current toolset woefully inadequate and I agree.

@RyanParsley
RyanParsley / frontendTesting.md
Last active January 29, 2016 16:09
Notes for a Frontend Testing Lunch and Learn

name: Frontend Testing Redux class: middle, center

Frontend Testing Redux:

The duxening

Jan 29, 2016


Two basic kinds of tests

@RyanParsley
RyanParsley / protractor.sh
Created January 28, 2016 20:58
This doesn't currently work on our server because of a phantom bug. It feels like the right code, I'll have to circle back to this when I have time.
set -e
./node_modules/.bin/webdriver-manager update
./node_modules/.bin/webdriver-manager start 2>&1 &
#wait for selenium
while ! curl http://localhost:4444/wd/hub/status &>/dev/null; do :; done
# Start server
cd dist && python -m SimpleHTTPServer 9999 2>&1 &
pid=$!
@RyanParsley
RyanParsley / .tmux.conf
Created January 22, 2016 18:59
Tmux Config
set -s escape-time 1
set -g base-index 1
set -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind | split-window -h
bind - split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
@RyanParsley
RyanParsley / bower.json
Last active November 30, 2015 17:22
Fragments from ideal project configuration
// Probably wanted in most projects
"dependencies": {
"modernizr": ""
}
// Probably wanted in all angular projects
"dependencies": {
"angular": "",
"angular-ui-router": ""
"angular-mocks": ""