Skip to content

Instantly share code, notes, and snippets.

View fielding's full-sized avatar
🙊

Fielding Johnston fielding

🙊
View GitHub Profile
@fielding
fielding / ascii.cheatsheet
Last active May 3, 2016 20:59 — forked from xero/ascii.cheatsheet
box drawing cheat sheet for ascii art
╓─────[ box drawing cheat sheet ]
╙────────────────────────────────────── ─ ─
─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏
┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟
┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯
@fielding
fielding / hosts
Last active June 15, 2018 19:39 — forked from i8degrees/hosts.latest
Ye'old pirates host config - hopefully early of a few revisions
# hosts
#
# Ye' Old Pirates Host config
# by fielding and i8degrees
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
// Streams
/*
const ticker$ = Rx.Observable
.interval(tickerInterval, Rx.Scheduler.requestAnimationFrame)
.map(() => ({ time: Date.now(), delta: null }))
.scan((previous, current) => ({
time: current.time,
delta: (current.time - previous.time) / 1000,
}));
{
"metadata": {
"version": 4.5,
"type": "Object",
"generator": "Object3D.toJSON"
},
"geometries": [
{
"uuid": "B29B4384-D845-41C8-8C34-7DABDD7061F1",
"type": "Geometry",

ffmpeg fun

ffmpeg movie create based on images in directory

  ffmpeg -r 10 -i %d.jpg -b 15000k timelapse.mov

ffmpeg trim avi file down to the ms

//
// Disclamer:
// ----------
//
// This code will work only if you selected window, graphics and audio.
//
// Note that the "Run Script" build phase will copy the required frameworks
// or dylibs to your application bundle so you can execute it on any OS X
// computer.
const range = Array.from(Array(101).keys());
var buzzler = n => console.log(
`${n}: ${ n % 3 === 0 ? 'Fizz' : '' }${ n % 5 === 0 ? 'Buzz' : '' }`
);
range.map(buzzler);
@fielding
fielding / amps.rb
Created December 6, 2017 02:22 — forked from i8degrees/amps.rb
the effects of sleep deprivation on the logical mind
#!/usr/bin/env ruby
class NomNom
def initialize(io)
# ...I'm not writing this class over again, hoe!
end
end
class SuperYumNom < NomNom

Keybase proof

I hereby claim:

  • I am fielding on github.
  • I am fielding (https://keybase.io/fielding) on keybase.
  • I have a public key ASAvhP2HvOy0WA1vv5vxQdE4NJ0DdbsSXcP0-NEMDPby3wo

To claim this, I am signing this object:

{"type":"PushEvent","public":"true","payload":"{\"push_id\":1959742051,\"size\":7,\"distinct_size\":7,\"ref\":\"refs/heads/master\",\"head\":\"9c6867bc63b01cffb27caef0c87e43e17be608d8\",\"before\":\"9bf78d9a757b18d81538d149632ee021da267e02\",\"commits\":[{\"sha\":\"865aed2ac2ef9dfb183bef31ae4512a1b0a875eb\",\"author\":{\"name\":\"Fielding Johnston\",\"email\":\"ce098a871ccf9752ec7315e1698f88873b276b03@justfielding.com\"},\"message\":\"Adjust spacing in .vimrc\",\"distinct\":true,\"url\":\"https://api.github.com/repos/justfielding/dotfiles/commits/865aed2ac2ef9dfb183bef31ae4512a1b0a875eb\"},{\"sha\":\"b3d1026b4cecf055b976a59f25abceaedf8e7c13\",\"author\":{\"name\":\"Fielding Johnston\",\"email\":\"ce098a871ccf9752ec7315e1698f88873b276b03@justfielding.com\"},\"message\":\"Set wildignore in .vimrc\",\"distinct\":true,\"url\":\"https://api.github.com/repos/justfielding/dotfiles/commits/b3d1026b4cecf055b976a59f25abceaedf8e7c13\"},{\"sha\":\"ab2116dfd2c7eec14cd5f404ab076ded2058a422\",\"author\":{\"name\":\"Fielding