Skip to content

Instantly share code, notes, and snippets.

@Fordi
Fordi / mmx-gen.html
Created Jul 30, 2020
MegaMan X Password generator
View mmx-gen.html
<!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 Apr 3, 2020
Waffle iron experiments
View Mixed grain waffles.md

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

View a-terawatt-a-year.md

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.

View Republican Senators 2020.md
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
@Fordi
Fordi / Impeachment.md
Last active Dec 19, 2019
The Impeachment of Donald Trump
View Impeachment.md

The Accusation:

  • President trump held Congressionally approved military aid and used the power of his office to ask a foreign leader to announce an investigation into 2020 Democrat Presidential candidate, Joe Biden.

The Evidence:

  1. The call memorandum - Link to Memorandum
  2. trump's on-camera confession on the White House lawn that he wanted Ukraine to investigate the Biden's - Link to Video
View Deck Dungeons.md

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 Oct 14, 2019
Politifact "Truthfulness" score
View Politifact Truthfulness.user.js
// ==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 }) => {
View Always Nova.user.js
// ==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 Mar 3, 2019
Transcoding script for re-encoding video down to about 400-500 MB / hr
View transcode.sh
#/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 Dec 8, 2018
Convert a picture to dice
View pic-to-dice.html
<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');
You can’t perform that action at this time.