Skip to content

Instantly share code, notes, and snippets.

View dylanbathurst's full-sized avatar

Dylan Bathurst dylanbathurst

View GitHub Profile
var buffer = '';
var req = http.request(opts, function (res) {
res
.on('data', function (chunk) {
buffer += chunk;
})
.on('end', function () {
httpResponse.write(buffer);
});
{
"pattern" :
[
// instrument 1
{
// bar 1
{
"color" : { "r":100, "g":255, "b":10 },
"counts" :
[
{
"audio" :
[
"blah.wav/mp3",
"poo.wav/mp3",
],
"pattern" :
[
var objOne = {};
var objTwo = {};
objOne.foo = {};
objOne.foo.bar = 100;
objTwo = objOne;
objTwo.foo.bar = 200;
.homeIcons {
margin: 0 auto;
margin-top: 55px;
height: 200px;
width:700px;
}