Skip to content

Instantly share code, notes, and snippets.

@pentaphobe
pentaphobe / remark.md
Last active March 23, 2018 05:51
Remark slideshow test

Intro

  1. Write slides in markdown in a gist
  2. Get a development link to your gist from rawgit
  3. Use remarkise to view it
  4. ???

Showing source

@pentaphobe
pentaphobe / first.js
Created April 27, 2018 01:55
accessibility outline solution thoughts
/**
* Assumes all elements have had outline style removed
*/
;(() => {
let accessibilityMode = false;
let oldOutlineStyle;
let lastModifiedElement;
let mouseTimeoutHandle;

Keybase proof

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:

@pentaphobe
pentaphobe / README.md
Last active December 1, 2019 11:02
Testing compiled array functions in JS

Picked up an old experiment which is so far somewhat promising

Background

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 and map should be able to be compiled into a single loop

@pentaphobe
pentaphobe / l-system.evy
Created November 15, 2023 12:20
L-System example in evylang
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}
@pentaphobe
pentaphobe / flames.evy
Created July 11, 2024 05:04
Fire effect in evy
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!