Skip to content

Instantly share code, notes, and snippets.

View Fordi's full-sized avatar

Bryan Elliott Fordi

View GitHub Profile
@Fordi
Fordi / mmx-gen.html
Created July 30, 2020 08:35
MegaMan X Password generator
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="ISO-8859-1">
<title>Mega Man X1 Password Generator</title>
<script type="module" defer>
import { render, html, css, useState } from 'https://unpkg.com/@fordi-org/buildless';
const heart = 'Heart Tank';
const subTank = 'Sub-tank';
const levels = {
@Fordi
Fordi / Mixed grain waffles.md
Last active April 3, 2020 04:50
Waffle iron experiments

1/4 c. cut oats
1 c. cooked farro
1/4 c yogurt
1/2 c milk
1/2 c. flour
1 tbsp. honey, plus more for serving
1 tsp. baking powder
1/4 tsp. baking soda
1/4 tsp. salt
1 large eggs

A Terawatt a year

An immodest proposal

A rough estimate of CO₂ forcing on atmospheric temperature is that about 300 billion metric tonnes of CO₂ warms the earth by about 0.5 °C. We presently emit around 38 billion metric tonnes of CO₂ a year.

Given the goal of avoiding another half-degree of warming, that gives us a clear target: if we linearly decrease our fossil fuel use to zero, we have 10 years to do it, starting now.

If you actually hope to avoid climate change, the only thing I want to hear from you from here on out is "A terawatt a year", or something pursuant to that. You can fight about what makes that 1 TW a year, but it's what we need.

State Name Phone Address City/State Zip
AK Murkowski, Lisa (202) 224-6665 522 Hart Senate Office Building Washington, D.C. 20510
AK Sullivan, Dan (202) 224-3004 302 Hart Senate Office Building Washington, D.C. 20510
AL Shelby, Richard C. (202) 224-5744 304 Russell Senate Office Building Washington, D.C. 20510
AR Boozman, John (202) 224-4843 141 Hart Senate Office Building Washington, D.C. 20510
AR Cotton, Tom (202) 224-2353 326 Russell Senate Office Building Washington, D.C. 20510
AZ McSally, Martha (202) 224-2235 404 Russell Senate Office Building Washington, D.C. 20510
CO Gardner, Cory (202) 224-5941 354 Russell Senate Office Building Washing

Setup:

Each player picks their character's race, class and name. These are only for prosaic purposes. Players must also name a missile attack, melee attack.

Each player draws five cards. These are action cards:

  • Club: Melee damage. You can attack anything near you. As armor, halves melee damage before action check.
@Fordi
Fordi / Politifact Truthfulness.user.js
Last active October 14, 2019 17:49
Politifact "Truthfulness" score
// ==UserScript==
// @name PolitiFact "Truthfulness"
// @match https://www.politifact.com/personalities/*
// @updateUrl https://gist.githubusercontent.com/Fordi/a46b9437859f5b613d863527abb8719f/raw/Politifact%2520Truthfulness.user.js
// ==/UserScript==
(function() {
'use strict';
const weights = [1, 0.75, 0.5, 0.25, 0, -0.5];
const template = ({ sum, total }) => {
// ==UserScript==
// @name Always Nova
// @match https://kissanime.ru/Anime/*
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
(async (window, document) => {
const qsa = (s, e = document) => [].slice.call(e.querySelectorAll(s));
@Fordi
Fordi / transcode.sh
Created March 3, 2019 03:55
Transcoding script for re-encoding video down to about 400-500 MB / hr
#/bin/bash
INF="$1"
if [[ -n "$2" ]]; then
OUT="$2";
else
OUT="${INF%.*}.out.mp4"
fi
HandBrakeCLI \
-i "$INF" \
-o "$OUT" \
@Fordi
Fordi / pic-to-dice.html
Last active December 8, 2018 07:24
Convert a picture to dice
<html>
<head>
<title>Picture-to-Dice</title>
<script>
const loadImg = (file) => {
const reader = new FileReader();
const src = new Image();
const count = parseInt(document.getElementById('count').value) || 64000;
const canvas = document.createElement('canvas');
@Fordi
Fordi / ESP32 BT Arcade
Created August 30, 2018 15:23
ESP32 Arcade stick plan
Physical design:
- 16 digital/analog headers
- 10 digital-only headers
- Configuration enable (CE) slide switch
- Configuration clear (CC) microswitch
Initial configuration flow
- Slide CE to "on"