Skip to content

Instantly share code, notes, and snippets.

@idettman
idettman / index.html
Created May 16, 2019 04:41
Scrolling images using CSS (using no vendor prefixes)
<div id='horizontalScroll' class='scrollContainer'>
<div class='images-1'>
<img src='http://upload.wikimedia.org/wikipedia/commons/5/5b/Linux_kernel_map.png'/>
</div>
<div class='images-loop'>
<img src='http://upload.wikimedia.org/wikipedia/commons/5/5b/Linux_kernel_map.png'/>
</div>
</div>
<div id='verticalScroll' class="scrollContainer">
@idettman
idettman / script.js
Last active October 30, 2025 07:53
Dynamically generated barcode
/*
Dynamically generated barcode
Author: Isaac A. Dettman
*/
var BarCodeGenerator = (function(window, document) {
var UPC_TO_BARCODE_MAP = [
[3, 2, 1, 1],
[2, 2, 2, 1],
[2, 1, 2, 2],
[1, 4, 1, 1],
@idettman
idettman / index.html
Created May 16, 2019 04:26
Tearable Cloth
<canvas id="c"></canvas>
<div id="info">
<div id="top">
<a id="close" href="">&times;</a>
</div>
<p>
<br>- Tear the cloth with your mouse.
<br>
<br>- Right click and drag to cut the cloth
@idettman
idettman / index.html
Created May 16, 2019 04:22
Noise monotone increasing
<canvas width="512" height="256"></canvas>
<h3>Strictly Monotone Increasing Noise Function</h3>
@idettman
idettman / index.html
Created May 16, 2019 04:22
Web Audio Api Convolver
<h2>Web Audio Api Convolver</h2>
<div class="mix">
<div class="controls">
<label>Dry Wet</label>
<input type="range" value="100" step="1" min="0" max="100" oninput="changeValue(this.value, 'mix');"></input>
<label>Choose Impulse</label>
<select id="impulse" size="1" onchange="loadImpulse(this.value);">
<option value="factory.hall.wav">Factory Hall</option>
<option value="pa.horn.in.hall.wav">PA horn in hall</option>
<option value="blaupunkt.tube.radio.wav">Blaupunkt tube radio</option>
<canvas id = 'canv'></canvas>