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
<!DOCCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset=utf-8> | |
<meta name="viewport" content="width=620"> | |
<title>Embedly Drag and Drop</title> | |
<script src="js/jquery.min.js"></script> | |
<script src="js/jquery.embedly-3.1.1.min.js"></script> | |
</head> |
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
$(document).ready(function(){ | |
$(".start").css("width","100%"); | |
$(".start").css("height","100px"); | |
$(".start").css("background-color","#A6D1FF"); | |
$(".start").css("cursor","pointer"); | |
var playing = false; | |
try{ |
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
s1 = get_synth(35); | |
s2 = get_synth(35.2); | |
function get_synth(pitch){ | |
nodes={}; | |
nodes.source = myAudioContext.createOscillator(); | |
nodes.source.type=3; | |
nodes.filter = myAudioContext.createBiquadFilter(); | |
nodes.volume = myAudioContext.createGainNode(); | |
nodes.filter.type=0; //0 is a low pass filter |
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
libusb -> ./autogen.sh | |
glibtoolize: putting auxiliary files in `.'. | |
glibtoolize: copying file `./ltmain.sh' | |
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. | |
glibtoolize: copying file `m4/libtool.m4' | |
glibtoolize: copying file `m4/ltoptions.m4' | |
glibtoolize: copying file `m4/ltsugar.m4' | |
glibtoolize: copying file `m4/ltversion.m4' | |
glibtoolize: copying file `m4/lt~obsolete.m4' | |
configure.ac:34: error: 'AM_CONFIG_HEADER': this macro is obsolete. |
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
==> ./autogen.sh | |
You should use the 'AC_CONFIG_HEADERS' macro instead. | |
/usr/local/Cellar/automake/1.13.1/share/aclocal-1.13/obsolete-err.m4:14: AM_CONFIG_HEADER is expanded from... | |
configure.ac:25: the top level | |
autom4te: /usr/bin/m4 failed with exit status: 1 | |
aclocal: error: echo failed with exit status: 1 | |
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting |
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
// http://arduino.cc/en/Reference/Tone | |
void setup() { | |
// iterate over the notes of the melody: | |
} | |
void loop() { | |
tone(8, 2000); | |
} |
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
from flask import Flask | |
import flask | |
from twilio.rest import TwilioRestClient | |
import re | |
import random | |
import twilio.twiml | |
import os | |
''' | |
A snippet of a twilio app, using GET and POST |
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
/* | |
This code will click like's currently loaded | |
on a facebook page. It's likely in the future | |
the name of the classes may change. | |
Be careful though, if you do too many at once | |
you'll get a warning. | |
To use this copy and paste it to your browser's | |
javascript console, or add javascript: to the |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script type='text/javascript' src='http://static.firebase.com/demo/firebase.js'></script> | |
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> |
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
//see whichlight.com/blog/writing-a-web-scraper-over-http-with-nodejs for details | |
app.get('/pullstagram/:link?', function(req,res){ | |
url = req.params.link; | |
console.log(url); | |
request(url,function(err,response,body){ | |
if (!err && response.statusCode == 200) { | |
var window = jsdom(body).createWindow(), | |
$ = require('jquery').create(window); | |
var val = $('.photo').attr('src'); |