This file contains 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
{ | |
"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" | |
} |
This file contains 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
{ | |
"data": [{ | |
"_id": "56f16a940b809d59f763959e", | |
"attribution": null, | |
"tags": [ | |
"fashion", | |
"love", | |
"lfl", | |
"thisislondon", | |
"instapic", |
This file contains 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
var Slack = require('node-slack'), | |
webhookUri = '{WEBHOOKURI}'; | |
var slack = new Slack(webhookUri); | |
var users = [ | |
'sydlawrence', | |
'adverplanner', | |
'sophtly', | |
'robman', |
This file contains 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
//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; |
This file contains 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
{ | |
"requireCapitalizedConstructors": true, | |
"requireMultipleVarDecl": true, | |
"disallowEmptyBlocks": true, | |
"disallowSpaceAfterObjectKeys": true, | |
"requireCommaBeforeLineBreak": true, | |
"requireParenthesesAroundIIFE": true, | |
"disallowKeywords": [ | |
"with" | |
], |
This file contains 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
# Mac OSX Specific | |
# ---------------- | |
.DS_Store | |
._* | |
.Spotlight-V100 | |
.Trashes | |
# Windows Specific | |
# ---------------- | |
Thumbs.db |
This file contains 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
var midiConnector = require('midi-launchpad').connect(midiport); | |
// wait for the connector to be ready | |
midiConnector.on("ready",function(launchpad) { | |
launchpad.on("press", function(button){ | |
button.light(launchpad.colors.green.high); | |
}); | |
launchpad.on("release", function(button) { | |
button.light(launchpad.colors.off); | |
}); |
This file contains 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
// Paste these in chunks into the developer console. BEFORE you press "Start game" | |
startGame(); | |
editor.setValue("function doubleInteger(i) { return i*2; }"); | |
runCode(); | |
// wait for the previous tests to run and succeed, then paste the next | |
runCode(); | |
editor.setValue("function isNumberEven(i) { return !(i%2); }"); |
This file contains 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
/* | |
* (c) 2011 Dominik Schmidt <[email protected]> | |
*/ | |
var DummyResolver = Tomahawk.extend(TomahawkResolver, | |
{ | |
settings: | |
{ | |
name: 'Dummy Resolver', | |
weight: 75, |
This file contains 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
<?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 |
NewerOlder