Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Paulukonis MichaelPaulukonis

View GitHub Profile
View imperfect-circles.markdown

Imperfect Circles

Pleasantly imperfect spots drawn on the canvas. Imperfection created by fractal subdivision. [Updated: I forgot to close the curves with context.closePath();]

A Pen by Dan Gries on CodePen.

License.

@MichaelPaulukonis
MichaelPaulukonis / wizard.monkeys.txt
Created Apr 18, 2017
Lindenmayer System (l-system) poetry test
View wizard.monkeys.txt
rules: {"start":"P","rules":{"P":"P+P[PN]T","T":"PP"}}
instructions: P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]TN]P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPP+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]TN]P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPP+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP[P+P[PN]T+P+P[PN]T[P+P[PN]TN]PPN]P+P[PN]TP+P[PN]T+P+P[PN]T+P+P[PN]T[P+P[PN]TN]PP+P+P[PN]T+P+P[PN]T[P+P[
@MichaelPaulukonis
MichaelPaulukonis / zipper.js
Created Feb 27, 2017
renames and zips recursive files
View zipper.js
'use strict';
// https://gist.github.com/VinGarcia/ba278b9460500dad1f50
// List all files in a directory in Node.js recursively in a synchronous fashion
let walkSync = function(dir, filelist) {
if (dir[dir.length-1] != `/`) { dir = dir.concat(`/`); }
var files = fs.readdirSync(dir);
filelist = filelist || [];
@MichaelPaulukonis
MichaelPaulukonis / pride.from.finnegans.wake.txt
Last active Nov 29, 2016
closest sentences via levenstein distance (first two chapters of PRIDE AND PREJUDICE)
View pride.from.finnegans.wake.txt
Rise up now and aruse!
Caution!
It is how sweet from her, the wispful, and they are soon seen swopsib so a sautril as a meise.
Our people here in Samoanesia will not be after forgetting you and the elders luking and marking the jornies, chalkin up drizzle in drizzle out on the four bare mats.
@MichaelPaulukonis
MichaelPaulukonis / songstory.txt
Created Nov 15, 2016
NaNoGenMo 2016 - story told by a child
View songstory.txt
Did you ever hear about the Princess who made friends with a real live sign? The sign's name was Ice Skate and the Princess's name was Diamonds.
They decided to play a game.
The game was hide-and-seek.
Diamonds said "First you hide, then I'll find you!" "Okay!" said Ice Skate.
They decided to play a game.
View walksync.js
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
if( dir[dir.length-1] != '/') dir=dir.concat('/')
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
@MichaelPaulukonis
MichaelPaulukonis / Vermicelli-like oar Gutenberg-tm God Greeks
Last active Dec 1, 2015
Vermicelli-like oar Gutenberg-tm God Greeks
View Vermicelli-like oar Gutenberg-tm God Greeks
http://project.cyberpunk.ru/lib/neuromancer/ Humiliation rust device
Over Shore what need me royal against lodge
Vermicelli-like oar Gutenberg-tm God Greeks
1
A sound that some magnitude flew the bomb on spasmodic, humped to a
vast round. One is Hence in nature have stabbing, " Paul officered
@MichaelPaulukonis
MichaelPaulukonis / a.notes.md
Last active Sep 25, 2017
Github repo as narrative
View a.notes.md
@MichaelPaulukonis
MichaelPaulukonis / README.md
Last active Nov 28, 2015
Stop we Yonderboy (Call me Ishmael)
View README.md
@MichaelPaulukonis
MichaelPaulukonis / github.narrative.txt
Created Nov 18, 2015
github repository as narrative
View github.narrative.txt
On Sun Oct 25 2015 19:27:52, dariusk opened a new issue called "Resources". But it's an admin issue, so who cares?
On Sun Oct 25 2015 19:28:38, dariusk opened a new issue called "Procedural Visual Novel".
On Sun Oct 25 2015 19:55:08, bcj opened a new issue called "An Attempt to Exhaust Memory to Simulate a Place to Attempt to Exhaust".
On Sun Oct 25 2015 22:41:47, zachwhalen opened a new issue called "Using a password dump for a corpus".
On Mon Oct 26 2015 00:20:15, MaxBittker opened a new issue called "char-rnn + Interactive Fiction + scraped news".
On Mon Oct 26 2015 01:31:20, beaugunderson opened a new issue called "Poetry as corpus".
On Mon Oct 26 2015 02:23:24, hugovk opened a new issue called "In!".
On Mon Oct 26 2015 04:31:37, hugovk opened a new issue called "Press Coverage". But it's an admin issue, so who cares?
On Mon Oct 26 2015 04:45:18, ojahnn opened a new issue called "Sound over meaning".
On Mon Oct 26 2015 08:05:52, cpressey opened a new issue called "Compiler pipeline + writers' techniques =