Skip to content

Instantly share code, notes, and snippets.

@mathdoodle
mathdoodle / README.css
Last active November 2, 2016 13:02
Vector Decomposition
table {
background: #FFFFFF;
border: solid 1px #DDDDDD;
margin-bottom: 1.25rem;
table-layout: auto; }
table caption {
background: transparent;
color: #222222;
font-size: 1rem;
font-weight: bold; }
@mathdoodle
mathdoodle / README.md
Last active April 9, 2021 19:54
Showdown

Here's some of the syntax supported

Paragraphs

Paragraphs in Markdown are just one or more lines of consecutive text followed by one or more blank lines.

On July 2, an alien mothership entered Earth's orbit and deployed several dozen saucer-shaped "destroyer" spacecraft, each 15 miles (24 km) wide.

On July 3, the Black Knights, a squadron of Marine Corps F/A-18 Hornets, participated in an assault on a destroyer near the city of Los Angeles.

@mathdoodle
mathdoodle / README.css
Last active March 8, 2017 18:37
Vectors and Mathematics
table {
background: #FFFFFF;
border: solid 1px #DDDDDD;
margin-bottom: 1.25rem;
table-layout: auto; }
table caption {
background: transparent;
color: #222222;
font-size: 1rem;
font-weight: bold; }
@mathdoodle
mathdoodle / README.md
Created November 1, 2016 02:36
Motion Diagram 3D

Motion Diagram 3D

@mathdoodle
mathdoodle / Detector.ts
Last active October 31, 2016 02:03
Solar System
/**
* @author alteredq / http://alteredqualia.com/
* @author mr.doob / http://mrdoob.com/
*/
const Detector = {
canvas: !! window['CanvasRenderingContext2D'],
webgl: ( function () { try { return !! window['WebGLRenderingContext'] && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(),
workers: !! window['Worker'],
fileapi: window['File'] && window['FileReader'] && window['FileList'] && window['Blob'],
@mathdoodle
mathdoodle / Axis.ts
Last active November 1, 2016 12:59
three.js sphere projection
function makeGeometry(size = 1): THREE.BufferGeometry {
const vertices = new Float32Array( [
0, 0, 0, size, 0, 0,
0, 0, 0, 0, size, 0,
0, 0, 0, 0, 0, size
] );
const colors = new Float32Array( [
1, 0, 0, 1, 0, 0,
0, 1, 0, 0, 1, 0,
@mathdoodle
mathdoodle / Detector.ts
Last active October 30, 2016 18:56
three.js textures
/**
* @author alteredq / http://alteredqualia.com/
* @author mr.doob / http://mrdoob.com/
*/
const Detector = {
canvas: !! window['CanvasRenderingContext2D'],
webgl: ( function () { try { return !! window['WebGLRenderingContext'] && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(),
workers: !! window['Worker'],
fileapi: window['File'] && window['FileReader'] && window['FileList'] && window['Blob'],
@mathdoodle
mathdoodle / Detector.ts
Last active October 30, 2016 13:38
three.js template
/**
* @author alteredq / http://alteredqualia.com/
* @author mr.doob / http://mrdoob.com/
*/
const Detector = {
canvas: !! window['CanvasRenderingContext2D'],
webgl: ( function () { try { return !! window['WebGLRenderingContext'] && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(),
workers: !! window['Worker'],
fileapi: window['File'] && window['FileReader'] && window['FileList'] && window['Blob'],
@mathdoodle
mathdoodle / Example.spec.ts
Last active July 7, 2020 18:53
three.js ParametricGeometry
export default function() {
describe("...", function() {
it("should ...", function() {
expect(true).toBeTruthy()
})
})
}
@mathdoodle
mathdoodle / Example.spec.ts
Last active July 7, 2020 19:27
Bacon.js Snake Tutorial
export default function() {
describe("...", function() {
it("should ...", function() {
expect(true).toBeTruthy()
})
})
}