Skip to content

Instantly share code, notes, and snippets.

@sflanker
sflanker / fade-to-black.md
Created March 3, 2022 02:09
Why doesn't a colored area fade to black when a black shape is repeatedly drawn on top with very low opacity.
@sflanker
sflanker / vim-mode-editor.p5js.org.js
Created December 28, 2021 23:52
Vim Mode for editor.p5js.org
// ==UserScript==
// @name Vim Mode for editor.p5js.org
// @namespace https://gist.github.com/sflanker/85899dd893f60ff47f52efd56765d5ec#file-vim-mode-editor-p5js-org-js
// @version 0.2
// @description Vim mode in code mirror (p5js.org)
// @author dragulceo, sflanker
// @license unlicense
// @match https://editor.p5js.org/*
// @grant none
// ==/UserScript==
@sflanker
sflanker / openprocessing_codemirror_vim.user.js
Last active December 28, 2021 23:21 — forked from dragulceo/codemirror_vim.user.js
Vim Mode for OpenProcessing
// ==UserScript==
// @name Vim Mode for OpenProcessing
// @namespace https://gist.github.com/sflanker/cab8e86bf29b221017f58ac2df42cdf7#file-openprocessing_codemirror_vim-user-js
// @version 0.2
// @description Vim mode in code mirror (openprocessing)
// @author dragulceo, sflanker
// @license unlicense
// @match https://openprocessing.org/sketch/*
// @grant none
// ==/UserScript==
@sflanker
sflanker / SR2Conway.clj
Last active September 30, 2020 00:33
Conway's Game of Life in Lizpy for SR2
(program "conway"
(comment "This is an implementation of conway's game of life for a 32x32 toroidal grid.")
(comment "For more information about Lizpy see: https://github.com/sflanker/lizpy/")
(declarel part_ids)
(declarel game_state_a)
(declarel game_state_b)
(declarel last_frame)