Skip to content

Instantly share code, notes, and snippets.

View briancarycom's full-sized avatar

Brian Cary briancarycom

View GitHub Profile
@briancarycom
briancarycom / displayLCD
Created June 12, 2016 17:06
simple LCD display on Arduino
#include <SoftwareSerial.h>
SoftwareSerial LCD= SoftwareSerial(255, 3);
void setup() {
pinMode(3, OUTPUT);
LCD.begin(9600);
delay(1000);
LCD.print("Hey Brian");
}
int[] lines = new int[10];
int counter = 0;
float startTime, currTime;
float hitTime;
float bpm = 10070;
PShape bassDrum;
PShape highHat;
PShape snare;
int[] lines = new int[10];
int counter = 0;
float startTime, currTime;
float hitTime;
float bpm = 170;
PShape bassDrum;
@briancarycom
briancarycom / mouselines
Created June 9, 2016 23:38
processing sketch for mouse lines
int[] lines = new int[10];
int counter = 0;
void setup() {
size(1800, 800);
}
void draw() {
//background(0);
@briancarycom
briancarycom / gist:a3e0f32a7b3a32de6ccb
Last active August 29, 2015 14:07
tracking api cookbook - jquery version
// Example 1 - Visitor on page for 3 seconds
$(document).ready(function() {
var delayLength = 3000;
setTimeout(function(){
_pq.push(["track", "User visited"]);
}, delayLength);
});
// Example 2a - Visitor hovered over element of class
$(document).ready(function() {
@briancarycom
briancarycom / pa_tracking_api
Created September 30, 2014 23:58
Tracking API cookbook
(function() {
window._pa = window._pa || {};
// _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions
// _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions
// _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.perfectaudience.com/serve/5356d3fed85252febe000003.js";
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
})();
@briancarycom
briancarycom / gist:8948037
Created February 12, 2014 01:16
Perfect Audience Designer position
Front-end Developer / Designer
About the Position:
We're looking for someone to take ownership of interaction & graphic design for Perfect Audience — on web and mobile. Instead of designing yet another drab tool solely aimed at agency campaign managers, your goal is to build a dashboard that makes using & managing dozens of campaigns simple and delightful.
What we are looking for:
Understanding of and instinct for design and user experience
Ability to create designs from scratch (with the tools of your choice)
Ability to bring designs to life with HTML/CSS/Javascript (You don't fear committing code. Heck our CEO commits code!)
@briancarycom
briancarycom / rt_test.php
Created October 5, 2012 01:13
Testing the ReTargeter API
$endpoint = "http://apidev.retargeter.com/api/retargeter/test";
$data = array(
"action" => "test",
"sandbox"=>"true"
);
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 1);