Skip to content

Instantly share code, notes, and snippets.

@lilgreenland
lilgreenland / index.html
Created March 9, 2018 02:50
orbits (three.js) (in progress)
<!--
https://threejs.org/docs/index.html#manual/introduction/Creating-a-scene
-->
<div id = 'three'>
</div>
@lilgreenland
lilgreenland / index.html
Created November 30, 2017 14:19
Pong accelerometer controls
gamma(x):<a id='gamma'> </a><sup>o</sup>
<br>
beta(y):<a id='beta'> </a><sup>o</sup>
<br>
alpha(y):<a id='alpha'> </a><sup>o</sup>
<br>
<!-- https://codepen.io/collection/XkEeQP/ -->
@lilgreenland
lilgreenland / index.html
Last active December 21, 2017 20:27
Mandelbrot (click to zoom)
<!--
https://en.wikipedia.org/wiki/Mandelbrot_set
http://warp.povusers.org/Mandelbrot/
http://tilde.club/~david/m/#zoom=6.450592885375493,3.4&lookAt=-0.6,0&iterations=85&superSamples=1&escapeRadius=10.0&colorScheme=pickColorGrayscale
https://codepen.io/handsomeone/pen/grByoL?q=Mandelbrot&order=popularity&depth=everything&show_forks=false
@lilgreenland
lilgreenland / how-to-code-pong-in-canvas.markdown
Last active December 1, 2017 13:30
How to Code Pong with JavaScript
@lilgreenland
lilgreenland / computer-science-fall-2017-2018.markdown
Last active September 18, 2017 18:05
Computer Science fall 2017-2018
@lilgreenland
lilgreenland / how-to-use-public-json-apis.markdown
Created September 11, 2017 03:01
How to use public JSON APIs
@lilgreenland
lilgreenland / index.html
Created September 11, 2017 03:00
special relativity: calculator
<article>
<div>Lorentz Factor
<br>γ = <input id='gamma' type="number" value='2.2942' min="1" step="0.1">
</div>
<br>
<div>Relative Velocity
<br>v = <input id='velocity' type="number" value='0.9' min="0" max="1" step="0.01"> c
<br>v = <input id='velocity2' type="number" value='2.7' min="0" max="3" step="0.1"> x 10<sup>8</sup> m/s
</div>
<br>
@lilgreenland
lilgreenland / canvas-template-full-screen.markdown
Created September 11, 2017 03:00
canvas template (full screen)
@lilgreenland
lilgreenland / index.html
Created September 11, 2017 03:00
Random Name Generator Assignment
<div id='nametag'>
<h1><b>Hello</b></h1>
<h2>my name is</h2>
<div id='bodybox'>
<br><b> Goal: Build a function that returns a random name.</b>
<br>
<br> Use the return command to have a function output a random name string. Return will make it easier to reuse your code in different projects.
<br>
<br> Here's how you could start:
<pre><code>function randomName(){