Skip to content

Instantly share code, notes, and snippets.

View jpdenford's full-sized avatar

JP Denford jpdenford

  • Wellington NZ
View GitHub Profile
@jpdenford
jpdenford / port-reachable.js
Last active June 18, 2021 04:05
NodeJS script to check if a machine & port is reachable (e.g. telnet debugging replacement on minimal alpine image)
// USAGE
// node port-reachable.js google.com 80
// NOTE: if you want to get the file onto a machine without a text editor then try
// `echo "<copy & paste code here>" > port-reachable.js`
const dns = require('dns')
const net = require('net')
/**
@jpdenford
jpdenford / cellular-automaton-2d.clj
Last active March 13, 2019 07:39
A basic 2d Cellular Automaton
;; https://brilliant.org/practice/cellular-automaton
(defn offset [x size]
(map (fn [idx] (if (and (>= idx 0) (< idx size)) ind nil))
[(- x 1) x (+ x 1)]))
(defn calc-cell [elems]
(case (map #(or % false) elems)
[true true true] true
[true true false] false
@jpdenford
jpdenford / README.md
Last active October 25, 2016 04:55 — forked from dribnet/gist:a0ef81cf281d53066ebb2416c1cae3b4
SVG Colour Experiment

PS5 SVG Colour Experiment

Process

I decided to take this project as an opportunity to explore some new territory.

Looking at my ps4 glyph8, I realised that some iterations weren't overly aesthetically pleasing, I decided I wanted to explore form and colour in a more graphic design type context. I am currently learning to skate and decided that drawing a skateboard was as good a glyph to draw as any. I started by sketching different skateboards from both internet images and freehand.

@jpdenford
jpdenford / .block
Last active October 13, 2016 05:02
Feature Drawing
license: mit
@jpdenford
jpdenford / .block
Last active October 13, 2016 04:59 — forked from dribnet/.block
Dimensional Glyph
license: mit
@jpdenford
jpdenford / .block
Last active October 13, 2016 04:50 — forked from dribnet/.block
Grid Warp Font
license: mit
@jpdenford
jpdenford / .block
Last active October 13, 2016 04:48 — forked from dribnet/.block
Sketchy Characters
license: mit
@jpdenford
jpdenford / .block
Last active October 13, 2016 04:39 — forked from dribnet/.block
Bogus Clickbait Science
license: mit