Skip to content

Instantly share code, notes, and snippets.

@jbeuckm
jbeuckm / index.html
Last active December 17, 2015 13:59 — forked from ZJONSSON/index.html
Doing X3Dom with D3
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://x3dom.org/x3dom/example/x3dom.js"></script>
</head>
<body>
</body>
@jbeuckm
jbeuckm / index.html
Last active December 17, 2015 17:19
Converted to simple squares.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://x3dom.org/x3dom/example/x3dom.js"></script>
</head>
<body>
</body>
@jbeuckm
jbeuckm / index.html
Last active May 27, 2019 05:36
K-Means in 2D
<html lang="en" xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://rawgithub.com/yannickulrich/presenter/master/lib/jqMath/UnifrakturMaguntia.css">
<link rel="stylesheet" href="https://rawgithub.com/yannickulrich/presenter/master/lib/jqMath/jqmath-0.4.0.css">
<script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script src="https://rawgithub.com/yannickulrich/presenter/master/lib/jqMath/jqmath-etc-0.4.0.min.js"></script>
@jbeuckm
jbeuckm / globe.png
Last active December 19, 2015 07:59
CSS Position Particles (500)
globe.png
@jbeuckm
jbeuckm / globe.png
Last active December 19, 2015 14:48
Canvas Particles (2000)
globe.png
@jbeuckm
jbeuckm / index.html
Last active January 3, 2016 20:19
Hello, Three.js
<html>
<head>
<title>My first Three.js app</title>
<style>
body {
margin: 0;
}
canvas {
width: 100%;
height: 100%
@jbeuckm
jbeuckm / index.html
Last active May 27, 2019 05:24
K-Means in 3D
<html lang="en" xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
@jbeuckm
jbeuckm / gist:10950742
Created April 17, 2014 03:24
keybase.md
### Keybase proof
I hereby claim:
* I am jbeuckm on github.
* I am jbeuckm (https://keybase.io/jbeuckm) on keybase.
* I have a public key whose fingerprint is 98AA E0F0 FC55 604F 78FB 1DC9 80A6 12E4 1266 F8B3
To claim this, I am signing this object:
@jbeuckm
jbeuckm / insertStyles.js
Created May 15, 2014 16:13
Insert styles into the head element with jquery
function insertStyles(selectors, styles) {
var text = selectors.join(', ') + ' { ';
for (var i in styles) {
text += i + ':' + styles[i] + '; ';
}
text += '}';
@jbeuckm
jbeuckm / 020_replace_strings.js
Created June 17, 2015 14:49
Cordova hook to replace strings in the javascript.
#!/usr/bin/env node
// this plugin replaces arbitrary text in arbitrary files
//
// Look for the string CONFIGURE HERE for areas that need configuration
//
var fs = require('fs');
var path = require('path');
var glob = require("glob");