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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |