Skip to content

Instantly share code, notes, and snippets.

View ronsims2's full-sized avatar
๐Ÿ€
Ballin'

Ron Sims II ronsims2

๐Ÿ€
Ballin'
View GitHub Profile
@ronsims2
ronsims2 / deebs-jsbin
Created December 15, 2014 22:05
Add deebs to jsbin.
libraries.add({
text: 'orangeMantis',
scripts: [
{ text: 'deebsjs', url: 'http://www.deebsjs.com/downloads/deebs.min.js' }
]
});
javascript:(function(w, d){
var script = d.createElement('script');
script.id = "mantiscope";
script.type = "text/javascript";
script.src = "https://cdn.rawgit.com/orangemantis/mantiscope/master/mantiscope.js";
script.async = false;
d.body.appendChild(script);
})(window, document);
(function(w,d){
/*Animate all images buffering 240 images at a time, 20 sec of footage
@ 12fps (images/sec)
*/
//get all image data
var metaData = {
cf: 0,//The current image shown
cfs: 0, //The current buffer segment
lfb: 0, //last buffered frame (image url number in raw array)
buffer: [], //currently buffered images
@ronsims2
ronsims2 / jsbin.ketunu.js
Last active August 29, 2015 14:11
Image directory flip book// source http://jsbin.com/ketunu
(function(w,d){
/*Animate all images buffering 240 images at a time, 20 sec of footage
@ 12fps (images/sec)
*/
//get all image data
var metaData = {
cf: 0,//The current image shown
cfs: 0, //The current buffer segment
lfb: 0, //last buffered frame (image url number in raw array)
buffer: [], //currently buffered images
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">