- Write slides in markdown in a gist
- Get a development link to your gist from rawgit
- Use remarkise to view it
- ???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Assumes all elements have had outline style removed | |
*/ | |
;(() => { | |
let accessibilityMode = false; | |
let oldOutlineStyle; | |
let lastModifiedElement; | |
let mouseTimeoutHandle; |
I hereby claim:
- I am pentaphobe on github.
- I am pentaphobe (https://keybase.io/pentaphobe) on keybase.
- I have a public key ASAs58BXpQtHBLzJS2i_HCeFqEcvZUk_q2Gx8ahVyDwSgQo
To claim this, I am signing this object:
Picked up an old experiment which is so far somewhat promising
I love the sugar of using map/filter/reduce type functions on arrays, but the old-school owner of a 286 machine is bothered by the implied nested loops they incur
The experiment was simply:
at least
filter
andmap
should be able to be compiled into a single loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi := 3.14159 | |
// --- starting position and size of the tree | |
// trunk length | |
startSize := 30 | |
// pointing upwards! | |
startAngle := radians 90 | |
// --- specifies the tree colours | |
rootColor := {hue:25 sat:64 light:20} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cell_size := 2 | |
cells_width := 100 / cell_size | |
cells_height := 100 / cell_size | |
cells := [[0]*cells_width] * cells_height | |
// Defines the gradient used for our flame cells | |
palette_stops := [ | |
// black | |
{pos:0 col:{hue:12 sat:2 light:0}} | |
// smoke! |
OlderNewer