JSConf Slides, Codes and Notes
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
# CHANGELOG | |
# 3/22/15: | |
# - updated keyring | |
# | |
# To setup ansible on Mac: | |
# brew install ansible | |
# mkdir -p /usr/local/etc/ansible | |
# mkdir -p /usr/local/share/ansible | |
# | |
# To run: |
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
export UA_PROP='UA-XXXXX-Y' # Your UA property ID | |
export UA_CLIENT='wesalvaro' # A unique client (i.e. user) ID | |
alias ua_collect="curl www.google-analytics.com/collect -s -o /tmp/ua_collect --data v=1 --data tid=$UA_PROP --data cid=$UA_CLIENT" | |
# Tracks any "event" type. | |
function track_evt { | |
local category=$1 | |
local action=$2 | |
local value=$3 # integer | |
local label=$4 |
// Define the TRIG and ECHO pins used by the ultrasonic sensor, in my case they were pins 4 and 5. | |
#define TRIG 4 | |
#define ECHO 5 | |
void setup() { | |
// Initialize the serial communication | |
Serial.begin(9600); | |
// Set up pins | |
pinMode(TRIG, OUTPUT); |