Instantly share code, notes, and snippets.
This file contains hidden or 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
constc=newAudioContext(); | |
constreq=newRequest('https://dl.dropboxusercontent.com/u/334064/tmp/wh.mp3'); | |
constsource=c.createBufferSource(); | |
constosc=c.createOscillator(); | |
constgain=c.createGain(); | |
osc.frequency.value=0.4; | |
gain.gain.value=0.0; | |
osc.connect(gain) | |
source.loop=true; |
youpy /keybase.md
CreatedDecember 8, 2016 01:17
youpy /gist:92c608766f9aeb2aa4aa
Last activeAugust 29, 2015 14:18
This file contains hidden or 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
vars=document.createElement('script'); | |
s.setAttribute( | |
'src', | |
'https://youpy.github.io/Hoover.js/example/hoover.min.js' | |
); | |
s.addEventListener('load',function(){ | |
varhoover=newHoover(newAudioContext()); | |
varinterval=200; |
youpy /cuisson_sous_vide.ino
Last activeAugust 29, 2015 14:14
This file contains hidden or 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
constdouble THRESHOLD =64.0;// +2 | |
// http://makers-with-myson.blog.so-net.ne.jp/2014-04-05 | |
unsignedint on[] = {2552,2680,824,860,820,860,824,1892,852,1868,824,1896,824,1892,828,856,828,856,848,53728,2552,2672,828,860,824,856,824,1896,852,1864,824,1896,824,1896,852,828,828,856,828,53840,2560,2672,828,856,848,836,824,1892,824,1892,828,1892,852,1868,852,832,848,832,828}; | |
unsignedint off[] = {2552,2676,852,832,824,1896,848,832,828,856,828,1892,824,856,852,1868,824,1892,852,53944,2556,2676,824,860,820,1896,828,856,828,852,848,1872,824,856,828,1896,824,1892,824,53844,2552,2676,852,832,824,1896,848,836,824,856,828,1892,824,860,820,1896,828,1888,848}; | |
voidsetup() { | |
Serial.begin(115200); | |
pinMode(12, OUTPUT); | |
analogReference(INTERNAL); |
youpy /android-scala-skeleton.sh
Last activeAugust 29, 2015 14:13
This file contains hidden or 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
#!/bin/sh | |
# | |
# required | |
# - scala | |
# - sbt (0.13.7 or higher) | |
# - Android SDK | |
set -e -x -u | |
target=$1 |
This file contains hidden or 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
functiondoPost(request){ | |
varsubject; | |
varcalendarName='gas_review'; | |
if(request){ | |
subject=request.parameters.text[0].replace(/done:*/,''); | |
}else{ | |
subject='test subject'; | |
} |
youpy /micron_crasher.rb
Last activeAugust 29, 2015 14:11
This file contains hidden or 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
require'coremidi' | |
require'nerpin' | |
micron=Nerpin::Micron(CoreMIDI::Destination.all[1]) | |
micron.patch_cable_2_destination(76) | |
micron.patch_cable_4_source(17) | |
micron.patch_cable_4_destination(67) | |
micron.patch_cable_5_source(6) | |
micron.patch_cable_5_destination(2) |
This file contains hidden or 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
# coding: utf-8 | |
require'mac-skype' | |
require'mac-skype/Ruby4Skype' | |
defmain | |
text,blob=ARGV | |
blank='' | |
Skype.init | |
Skype.attach_wait |
youpy /echoHttpRequest.js
Last activeAugust 29, 2015 14:08 — forked fromMarak/echoHttpRequest.js
Echo HTTP requests This file contains hidden or 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
module['exports']=functionechoHttp(hook){ | |
hook.debug("Debug messages are sent to the debug console"); | |
hook.debug(hook.params); | |
hook.debug(hook.req.path); | |
hook.debug(hook.req.method); |
NewerOlder