Skip to content

Instantly share code, notes, and snippets.

peg oar ear eel (841.72) -> ego are are (1079.42) : 960.57
leg oar ear eel (1046.46) -> ego are are (1079.42) : 1062.94
peg oar tar eel (845.50) -> ego art are (1672.69) : 1259.10
leg oar tar eel (928.58) -> ego art are (1672.69) : 1300.64
rye son ear eel (1828.57) -> yes one are (1207.95) : 1518.26
oar can dry eel (1318.81) -> arc and rye (1775.73) : 1547.27
ear can dry eel (1327.88) -> arc and rye (1775.73) : 1551.80
bar can dry eel (1342.98) -> arc and rye (1775.73) : 1559.36
far can dry eel (1354.87) -> arc and rye (1775.73) : 1565.30
peg oar ear end (2133.97) -> ego are are (1079.42) : 1606.70
This file has been truncated, but you can view the full file.
pal.lap.era.tie -> all.ape.rat
are.dry.era.web -> red.rye.raw
pit.see.lit.sad -> its.eel.its
par.ear.mop.tug -> are.arm.opt
mop.tar.ewe.tub -> opt.are.wet
ear.ton.eye.sun -> art.one.yes
fit.sin.nod.dig -> its.inn.odd
far.cry.era.try -> arc.rye.rat
pop.tap.tar.cub -> opt.apt.arc
war.tap.eve.tip -> art.ape.vet
@nevercast
nevercast / gist:92f9db4162b7e106bbb860377a1e6659
Created October 16, 2024 01:12
three letter permutation examples
pad.oar.top.tar.cap -> ado.art.opt.arc
pry.ewe.bad.ova.tub -> rye.web.ado.vat
wit.sea.ton.eye.saw -> its.eat.one.yes
fax.ewe.bar.map.era -> axe.web.arm.ape
sit.she.row.new.ego -> its.her.own.ewe
pan.try.ewe.bar.mop -> ant.rye.web.arm
law.eve.tax.ewe.bow -> awe.vet.axe.web
ash.eel.man.two.now -> she.elm.ant.won
eye.sow.new.ewe.bow -> yes.own.ewe.web
now.new.era.was.how -> own.ewe.raw.ash
@nevercast
nevercast / rollback.sh
Created August 21, 2024 04:45
Find the last npm package that worked / find npm package that breaks build
#!/usr/bin/env bash
set -euo pipefail
usage() {
echo "Usage: $0 <package@version..package@minimum_version> <build_command> [search_mode]"
echo "Example: $0 '@hey-api/openapi-ts@0.52.9..@hey-api/openapi-ts@0.48.0' 'npm run build' [binary|scan]"
echo "Search mode is optional. Default is 'binary'."
exit 1
}
@nevercast
nevercast / push.js
Created January 23, 2024 20:39
Push code to Screeps
const fs = require('fs');
const path = require('path');
const http = require('http');
const https = require('https');
const util = require('util');
const process = require('process');
const os = require('os');
const TEXT_EXTENSIONS = ['.js', '.json'];
@nevercast
nevercast / necto-viz.py
Created December 28, 2021 05:26
Neural Network visualisations
# https://stackoverflow.com/questions/52468956/how-do-i-visualize-a-net-in-pytorch
import os
import numpy as np
import torch
from torch.distributions import Categorical
import torch.nn.functional as F
from rlgym.utils.gamestates import GameState, PlayerData, PhysicsObject
from training.obs import NectoObsBuilder
@nevercast
nevercast / main.py
Created October 11, 2020 23:46
Simple DHT11 read and publish to AIO
import machine, network, time, dht, mqtt
# mqtt: https://github.com/micropython/micropython-lib/blob/master/umqtt.simple/umqtt/simple.py
## SECRETS
WIFI_NAME='<WIFI SSID>'
WIFI_PASS='<WIFI PASSWORD>'
MQTT_HOST='io.adafruit.com'
MQTT_PORT=1883
MQTT_USER='<ADAFRUIT USERNAME>'
MQTT_PASS='<ADAFRUIT IO KEY>'
@nevercast
nevercast / main.cpp
Created September 10, 2020 00:28
Several tests to run on an ESP32 for crystal, PSRAM and deepsleep stuff.
// If you're building this code from Arduino IDE, you wont need to import Arduino.h
#include "Arduino.h"
#include "soc/rtc.h"
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */
#define TIME_TO_SLEEP ((60 * 60) * 1) /* Time ESP32 will go to sleep (in seconds) */
// Multiple ways to run this code to produce different reports
#define MODE_SLEEP 1
#define MODE_DIAG 2
@nevercast
nevercast / dump-css.js
Created August 13, 2020 23:37
Dumps the Computed CSS stylesheet of an element and it's children for diff use.
/* Simmer.js https://github.com/gmmorris/simmerjs/ */
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,n,r){if(e){for(n=$jscomp.global,t=t.split("."),r=0;r<t.length-1;r++){var o=t[r];o in n||(n[o]={}),n=n[o]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Object.assign",function(t){return t||function(t,e){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var o in r)$jscomp.owns(r,o)&&(t[o]=r[o])
@nevercast
nevercast / sideeffect.py
Created August 10, 2020 00:27
Check Python file for side effects on import
#!/usr/bin/env python
#### MIT Licence
# Copyright 2020 Josh "nevercast" Lloyd
# This notice must remain intact for all copies or substantial portions of the Software
####
# First release: 2020-08-10
from __future__ import print_function
import ast
import sys