Skip to content

Instantly share code, notes, and snippets.

View wess's full-sized avatar
💭
When am I not writing code?

Wess Cope wess

💭
When am I not writing code?
View GitHub Profile
@wess
wess / US Zip Codes from 2013 Government Data
Created April 7, 2017 14:46 — forked from erichurst/US Zip Codes from 2013 Government Data
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
00622,17.991245, -67.153993
@wess
wess / my_app.ex
Created March 17, 2017 14:27 — forked from alanpeabody/my_app.ex
Websockets in Elixir with Cowboy and Plug
defmodule MyApp do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [
dispatch: dispatch
])
from Cozmo import *
triggerActions = {"AcknowledgeFaceInitPause" : cozmo.anim.Triggers.AcknowledgeFaceInitPause,
"AcknowledgeFaceNamed" : cozmo.anim.Triggers.AcknowledgeFaceNamed,
"AcknowledgeFaceUnnamed" : cozmo.anim.Triggers.AcknowledgeFaceUnnamed,
"AcknowledgeObject" : cozmo.anim.Triggers.AcknowledgeObject,
"AskToBeRightedLeft" : cozmo.anim.Triggers.AskToBeRightedLeft,
"AskToBeRightedRight" : cozmo.anim.Triggers.AskToBeRightedRight,
"BlockReact" : cozmo.anim.Triggers.BlockReact,
"BuildPyramidReactToBase" : cozmo.anim.Triggers.BuildPyramidReactToBase,