Skip to content

Instantly share code, notes, and snippets.

Syd Lawrence sydlawrence

Block or report user

Report or block sydlawrence

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ad.json
"message": {
"text": "For those who prefer to forgo the hustle and bustle of growing a seedling in the dirt, we offer the option of nurturing a sophisticated virtual cucumber.",
"quick_replies": [
"content_type": "text",
"title": "Adopt your cucumber",
"payload": "@BP:MESSAGE:2168"
View awesomewall.demo.json
"data": [{
"_id": "56f16a940b809d59f763959e",
"attribution": null,
"tags": [
sydlawrence / slack-secret-santa.js
Last active Nov 24, 2015
secret santa generator and post to slack, disclaimer: rushed together, did what we needed...
View slack-secret-santa.js
var Slack = require('node-slack'),
webhookUri = '{WEBHOOKURI}';
var slack = new Slack(webhookUri);
var users = [
View musicviz.pde
//import Minim library
import ddf.minim.*;
//for displaying the sound's frequency
import ddf.minim.analysis.*;
Minim minim;
//to make it play song files
AudioPlayer song;
View gist:cce66361a0663d8bc24d
"requireCapitalizedConstructors": true,
"requireMultipleVarDecl": true,
"disallowEmptyBlocks": true,
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"requireParenthesesAroundIIFE": true,
"disallowKeywords": [
View .gitignore
# Mac OSX Specific
# ----------------
# Windows Specific
# ----------------
sydlawrence / app.js
Last active Aug 29, 2015
The basic launchpad node app
View app.js
var midiConnector = require('midi-launchpad').connect(midiport);
// wait for the connector to be ready
midiConnector.on("ready",function(launchpad) {
launchpad.on("press", function(button){
launchpad.on("release", function(button) {
sydlawrence / under-pressure-cheats.js
Last active Dec 24, 2015
Javascript under pressure cheats...
View under-pressure-cheats.js
// Paste these in chunks into the developer console. BEFORE you press "Start game"
editor.setValue("function doubleInteger(i) { return i*2; }");
// wait for the previous tests to run and succeed, then paste the next
editor.setValue("function isNumberEven(i) { return !(i%2); }");
View Example Tomahawk Resolver
* (c) 2011 Dominik Schmidt <>
var DummyResolver = Tomahawk.extend(TomahawkResolver,
name: 'Dummy Resolver',
weight: 75,
sydlawrence / twilioSoundcloud.php
Last active Dec 23, 2015
upload twilio recording to soundcloud
View twilioSoundcloud.php
// download the recording to the local machine
file_put_contents("recording.wav", file_get_contents($_POST['RecordingUrl']));
// setup the track info to send to soundcloud
$track = array(
'track[asset_data]' => '@recording.wav' // adding @ adds the contents to $_FILES
// upload the sound using the soundcloud php sdk
You can’t perform that action at this time.