Skip to content

Instantly share code, notes, and snippets.

View mattwelch's full-sized avatar

Matt Welch mattwelch

View GitHub Profile
@mattwelch
mattwelch / light discovery
Created March 30, 2015 02:24
sonos-moodring light discovery
var displayError = function(err) {
logMe("Error: "+err);
};
var displayResult = function(result) {
logMe("Result: " + JSON.stringify(result));
};
var registeredUser = function(registerResult) {
logMe('Created user '+APP_USERNAME);
@mattwelch
mattwelch / package.json
Created October 8, 2014 13:02
ContactRdioFavs Node Client
{
"name": "rdioFavs",
"version": "0.0.1",
"description": "Play a Salesforce Contact's favorite music on a Sonos",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Matt Welch",
"license": "ISC",
<apex:page showHeader="false" sidebar="false" docType="html-5.0" applyHtmlTag="false" applyBodyTag="false" standardController="Contact">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<apex:stylesheet value="{!URLFOR($Resource.OneStarter,'icons.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.OneStarter,'styles.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.OneStarter,'OneStarter.css')}"/>
<!-- We need these so we can create our auth hash for the OAuth1.0a for the Rdio API -->
<script src="https://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha1.js"></script>