Skip to content

Instantly share code, notes, and snippets.

View fielding's full-sized avatar
🙊

Fielding Johnston fielding

🙊
View GitHub Profile

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:

@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
const range = Array.from(Array(101).keys());
var buzzler = n => console.log(
`${n}: ${ n % 3 === 0 ? 'Fizz' : '' }${ n % 5 === 0 ? 'Buzz' : '' }`
);
range.map(buzzler);
//
// 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.

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

{
"metadata": {
"version": 4.5,
"type": "Object",
"generator": "Object3D.toJSON"
},
"geometries": [
{
"uuid": "B29B4384-D845-41C8-8C34-7DABDD7061F1",
"type": "Geometry",
// 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,
}));
@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
@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 / hash.js
Created June 14, 2015 16:09
node script to generate john the ripper wordlist to crack insanity+ rar instead of following Hopsin's crazy engrish instructions
// this was a lazy hack, so use:
//
// sudo launchctl limit maxfiles 1000000 1000000
//
//
// to get past the kqueue error on writing to the wordlist file
var ascii = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ<>{}()[]":;-+=*&?^%$#@!~`_/|,.';
var hkeys = "0123456789";