Skip to content

Instantly share code, notes, and snippets.

View amiika's full-sized avatar

Miika Alonen amiika

  • CSC - IT Center for Science
  • Espoo
View GitHub Profile
@amiika
amiika / index.html
Last active December 10, 2015 10:18
Happy New Year with D3!
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body { background: #151515;}
circle { fill: none;stroke-width: 2.5px;}
</style>
</head>
<body>
@amiika
amiika / .gitignore
Last active December 11, 2015 17:09 — forked from GerHobbelt/.gitignore
# Editor backup files
*.bak
*~
@amiika
amiika / index.html
Last active December 11, 2015 17:18
Additive forces
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Force Layouts - Foci</title>
<script src="http://d3js.org/d3.v2.js"></script>
<link type="text/css" rel="stylesheet" href="style.css"/>
<style type="text/css">
circle {
@amiika
amiika / index.html
Last active December 15, 2015 09:08
HTML5 Audio intro
<!DOCTYPE html>
<html>
<body>
<audio autoplay loop preload src="http://www.wavlist.com/tv/014/hdwhatis.wav">
Your browser can't handle this!
</audio>
</body>
</html>
@amiika
amiika / index.html
Last active December 15, 2015 09:09
HTML5 Audio controls
<!DOCTYPE html>
<html>
<head>
<title>HTML5 audio test</title>
</head>
<body>
<h1>Grateful Dead Live at Barton Hall - Cornell University on May 8, 1977</h1>
<h2>ST Stephen</h2>
<audio id="mySong" controls preload autoplay>
<source src="http://archive.org/download/gd1977-05-08.shure57.stevenson.29303.flac16/gd1977-05-08d03t01.ogg">
@amiika
amiika / index.html
Last active January 5, 2017 01:06
Pitch detection
<!doctype html>
<!-- Forked from https://github.com/cwilso/PitchDetect -->
<html>
<head>
<title>Pitch Detector</title>
<link href='http://fonts.googleapis.com/css?family=Alike' rel='stylesheet' type='text/css'>
<style>
body { font: 14pt 'Alike', sans-serif;}
#note { font-size: 164px; }
.droptarget { background-color: #348781}
@amiika
amiika / index.html
Created April 26, 2013 11:27
Speech audio API test
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
speechSynthesis.speak(SpeechSynthesisUtterance('Hello World'));
</script>
</head>
<body>
</body>
</html>
@amiika
amiika / index.html
Last active December 16, 2015 16:59
HTML AUDIO API SUPPORT TEST
<!DOCTYPE html>
<html>
<head>
<script>
var context;
window.addEventListener('load', init, false);
function init() {
try {
audioContext = new AudioContext();
alert('Web Audio API is supported!');
@amiika
amiika / index.html
Last active December 16, 2015 16:59
MediaStream Processing API Test
<!DOCTYPE html>
<html>
<head>
<script>
function gotAudio(stream) {
// Start processing
// peerConnection.addStream(stream.createWorkerProcessor(new Worker("effect.js")));
}
window.addEventListener('load', init, false);
@amiika
amiika / index.html
Last active December 16, 2015 16:59
MIDI API Support Test
<!DOCTYPE html>
<html>
<head>
<script>
window.addEventListener('load', init, false);
function init() {
function onMIDISuccess( midiAccess ) {
alert( "MIDI ready!" );
}