Skip to content

Instantly share code, notes, and snippets.

@mathdoodle
mathdoodle / README.md
Last active January 13, 2021 03:52
Hello, Geometry!

Geometry 101

@mathdoodle
mathdoodle / 2d-fragment-shader.glsl
Created July 14, 2020 17:46
WebGL Fundamentals from HTML 5 Rocks
void main() {
gl_FragColor = vec4(0, 1, 0, 1);
}
@mathdoodle
mathdoodle / OrbitControls.ts
Created July 7, 2020 18:11
Getting Started with three.js
import { Object3D } from 'three'
import { Vector2, Vector3 } from 'three'
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author David Geo Holmes (TypeScript migration)
*/
@mathdoodle
mathdoodle / OrbitControls.ts
Last active July 7, 2020 18:10
Getting Started with three.js
import { Object3D } from 'three'
import { Vector2, Vector3 } from 'three'
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author David Geo Holmes (TypeScript migration)
*/
@mathdoodle
mathdoodle / README.md
Last active February 18, 2018 03:38
Conway's Game of Life

Conway's Game of Life

Overview

Copyright (c) 2015-2017 David Geo Holmes.

@mathdoodle
mathdoodle / README.css
Last active July 7, 2020 18:29
Frankenstein
table {
background: #FFFFFF;
border: solid 1px #DDDDDD;
margin-bottom: 1.25rem;
table-layout: auto;
}
table caption {
background: transparent;
color: #222222;
@mathdoodle
mathdoodle / Arrow.ts
Last active November 9, 2016 02:50
Scalars, Vectors, and Units of Measure
const heightCone = 0.2
const radiusCone = 0.08
const radiusStem = 0.01
const heightStem = 0.8
const radiusSegments = 16
export default class Arrow extends THREE.Group {
private material: THREE.MeshLambertMaterial;
constructor() {
super()
@mathdoodle
mathdoodle / README.md
Last active April 9, 2021 19:56
socket.io

Using socket.io to communicate with a Node.JS

Overview

To run this sample you will need a Node server running on port 3000.

You will also need to run STEMCstudio from an unsecure URL.

@mathdoodle
mathdoodle / README.css
Created November 2, 2016 18:31
Motion and Kinematics
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.css
Created November 2, 2016 18:13
Cartesian Components
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; }