Skip to content

Instantly share code, notes, and snippets.


Jeffery Bennett Meandmybadself

View GitHub Profile
Meandmybadself / fpo.js
Created Aug 14, 2018
Create FPO imagery from strings.
View fpo.js
const http = require('http')
const fs = require('fs')
let imgs = [
"Image 1 Name",
"Image 2 Name",
"Image 3 Name",
const slugify = text =>
Meandmybadself / join.js
Created Sep 1, 2017
Joins movies in a directory using ffmpeg.
View join.js
const fs = require('fs')
const dir = process.argv[2]
const txtFilename = 'files.txt'
const outputFilename = 'output.mp4'
const { exec } = require('child_process')
let output = ''
const files = fs.readdirSync(dir).filter(f => (
f !== '.DS_Store' &&
f !== outputFilename &&
Meandmybadself / index.html
Created Jan 8, 2017
Basic HTML template.
View index.html
<!DOCTYPE html>
<html lang="en">
<link rel="shortcut icon" href="/assets/images/favicon.ico" type="image/x-icon" >
<link rel="stylesheet" href="">
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
View exportjson.js
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
Meandmybadself / utilitybelt.js
Last active Nov 12, 2015
JavaScript utility belt
View utilitybelt.js
//A continual schmorgasboard of code that probably exists in a better documented & executed function elsewhere.
//Produces a # between min and max.
function between(min,max) {
var d = Math.abs(min - max);
return min + Math.random() * d;
//Integer between min & max.
function intBetween(min,max) {
# install homebrew
ruby -e "$(curl -fsSL"
# install homebrew's official php tap
brew tap josegonzalez/homebrew-php
View gist:9f546e4bc13741ede58e
### Keybase proof
I hereby claim:
* I am meandmybadself on github.
* I am meandmybadself ( on keybase.
* I have a public key whose fingerprint is 0A33 C8A8 9D60 A9CF FAFF 103B C1BB 1B59 DE76 ABC0
To claim this, I am signing this object:
View boilerplate.html
<!DOCTYPE html>
<html lang='en'>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0">
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- fb -->