I hereby claim:
- I am fordi on github.
- I am fordiman (https://keybase.io/fordiman) on keybase.
- I have a public key ASBlGL04vAv2m8ZfucjiLx4YD7hZmjqlgmY_2KJu_eY9BAo
To claim this, I am signing this object:
var Dependency = (function () { | |
"use strict"; | |
var Node = function () { | |
var i, pub = {}, inst = this; | |
for (i in inst) | |
if (inst[i] instanceof Function) | |
pub[i] = (function (i) { | |
return function () { | |
return inst[i].apply(inst, arguments); | |
}; |
import React from 'react'; | |
/** | |
* Convert a number into a 12-digit binary number string | |
*/ | |
const dots = num => { | |
const n = num.toString(2).padStart(12, 0).split('').slice(0, 12); | |
return `1${n.substr(0, 6)}11${n.substr(6)}1`; | |
}; | |
/** | |
* See generateShaperNumbers.js to see how this is generated. |
# For easily managing your SSH identity for github. | |
# | |
# 1. Source this script in your .profile or .bashrc | |
# 2. Run `git config user.identity=/path/to/keyfile` in each repository you want to be using a non-default SSH identity | |
# 3. Git around as usual. | |
function git() { | |
local git="$(which git)" | |
local cmd=("$git" "${@}") | |
local ident="$("$git" config user.identity)" |
/** | |
* Draw a line graph in Chrome/Chromium's dev console | |
* Examples: | |
* console.lineGraph([[5, 3], [10, 8], [-10, 1], [7, -3], [3, 0]], 320, 240); | |
* console.lineGraph(Math.sin, 420, 240, -Math.PI, Math.PI, 0.001); | |
* console.lineGraph(function (x) { | |
return [ | |
Math.sqrt(1 - x*x) + Math.abs(x) - 0.75, | |
(Math.abs(x)-Math.sqrt(1 - x*x)) / 2 - 0.25 | |
]; |
I hereby claim:
To claim this, I am signing this object:
#include <Stepper.h> | |
#include <math.h> | |
#include <Servo.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <stdint.h> | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels | |
#define SCREEN_HEIGHT 32 // OLED display height, in pixels |
#!/bin/bash | |
# Will maximize the current window to a new desktop, or, if the window is not | |
# Use your window manager's keybindings to attach this script to the key combination of your choice | |
# Requires the following packages in Ubuntu: | |
# xdotool x11-utils wmctrl | |
function goFull() { | |
echo $1 | |
DESKTOP=`wmctrl -d | cut -d \ -f 1 | tail -1` |
#!/usr/bin/env node | |
const getPixels = require('get-pixels'); | |
const { basename } = require('path'); | |
const { writeFile } = require('fs/promises'); | |
const pixels = async src => new Promise((resolve, reject) => { | |
getPixels(src, (err, pixels) => { | |
if (err) return reject(err); | |
return resolve(pixels); | |
}); |
Proposed minimum wage, designed to align political goals.
Mw = Mi * (GDP + Fm - Fb) / (HY * (GDP + Fm))
Mi = US average Income (as of 2021, $61372)
GDP = Gross Domestic Product (as of 2021, $21.43T)
Fb = US Budget total expenditures (as of 2021, $4.79T)
Fm = US Military expenditures (as of 2021, $778B)
HY = Working hours / year, or 1980, assuming 15 holidays
Mw = Minimum wage, in USD / hr (given equation and current values, $22.94, or $6.82 in 1980 dollars)