Skip to content

Instantly share code, notes, and snippets.

@boneskull
boneskull / bbb.yml
Last active June 3, 2021 11:26
Ansible Playbook for Configuring BeagleBone Black on Debian (wheezy) from MacOS X 10.10.x w/ setup for Edimax EW-7811Un
# 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:
@airportyh
airportyh / jsconf_slides_codes_and_notes.md
Last active June 19, 2017 20:51
JSConf 2014 Slides, Codes and Notes.

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.

Modular frontend with NPM - Jake Verbaten (@Raynos)

@wesalvaro
wesalvaro / .ua.zsh
Last active December 23, 2015 05:29
Track shell stuff with Universal Analytics!
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
@Elucidation
Elucidation / Ultrasonic_arduino_example.ino
Last active December 27, 2015 22:16
Simple example for how to measure distance from the SainSmart Ultrasonic Module HC-SR04 Distance Sensor, no external libraries needed.I bought it here: http://www.amazon.com/SainSmart-Ultrasonic-Distance-Mega2560-Duemilanove/dp/B004U8TOE6/
// 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);