Skip to content

Instantly share code, notes, and snippets.

Catch Phrases

Phrase Meaning
Your ego is not your amigo
There are some rights worth dying for, but the right of way isn't one of them
Temperature Challenge Suspect died
Polyester Pileup Multiple police officers tackling a suspect
@NonlinearFruit
NonlinearFruit / README.md
Last active March 1, 2023 13:55
Simple random word generator

Ipsum

Ipsum is a simple command line random word generator with some handy features for esoteric users.

  • Off-line: uses dictionary, so no internet needed
  • Linux: it is a bash script, so it is Linux compatible
    • Note: may need to modify the location of the dictionary
  • Open Source: the code is public domain
  • Languages: can generate random words from non-English languages
  • Note: requires internet and translate shell
@NonlinearFruit
NonlinearFruit / ZtypeBot.js
Last active October 19, 2022 17:44
JS Hack that plays a spaceship, typing game https://zty.pe/
// Record:
// - Score = 104102
// - Accuracy = 100
// - Streak = 34724
// - Wave = 111
function goGoGadgetBot() {
try {
var chars = Array.from(ig.game.entities[0].remainingWord);
var length = chars.length;
@NonlinearFruit
NonlinearFruit / peutils.py
Last active July 23, 2021 21:21
Python utility functions for Project Euler
# Most of this code came from
# an external source that has
# long since been forgotten.
# Feel free to use this
# however you like.
#
# -Nonfrt
import math
import itertools
{
"Metadata": {
"Title": "First Catechism",
"AlternativeTitles": [
],
"Year": "1996",
"Authors": [
"GCP", "OPC", "PCA"
],
"Location": null,
@NonlinearFruit
NonlinearFruit / ImpossibleCreaturesScientificNames.md
Last active April 25, 2020 16:05
Scientific (binomial) names for the various animals in Impossible Creatures

IC Scientific Names

Animal Scientific (Binomial) Name
Albatross Diomedea exulans
Anaconda Eunectes notaeus
Anglerfish Melanocetus johnsonii
Ant Iridomyrmex purpureus
Archerfish Toxotes chatareus
Armadillo Dasypus hybridus
@NonlinearFruit
NonlinearFruit / termsaver-quotes.py
Last active November 19, 2019 15:02
Plugin for termsaver to allow displaying quotes from local file
# git clone https://github.com/brunobraga/termsaver.git
# curl https://gist.githubusercontent.com/NonlinearFruit/07cca3536e321ec1b92045548ed192bd/raw -o termsaver/termsaverlib/screen/quotes.py
# curl https://gist.githubusercontent.com/NonlinearFruit/5ff69f8291b4d241a60ca445c06508bf/raw -o wcf.json
# curl https://gist.githubusercontent.com/NonlinearFruit/dda52038c29f26b83d337c82f25bdef8/raw -o wlc.json
# jq -r '.[] | . as $parent | .Sections[] | { title: $parent.Title, chapter: $parent.Chapter, section: .Section, content: .Content } | "\(.title) (WCF \(.chapter).\(.section))\n\(.content)\n\n"' wcf.json > wcf.saver
# jq -r '.[] | "\(.Question) (WLC \(.Number))\n\(.Answer)\n\n"' wlc.json >> wcf.saver
# python termsaver/termsaver quotes -p wcf.saver
import time
import sys
@NonlinearFruit
NonlinearFruit / TvSeries_Imbd.js
Last active July 21, 2019 02:34
Retrospector Tv Series Plugin
/**
This plugin is only meant to handle the 'TV Series' category.
It is not meant to for anything else. Assumptions:
- 'Year' factoid exists
- Seasons are of the form 'S1', 'S2'
- Episodes are of the form 'E9', 'E10', 'E11 The Fall'
- Everything after a ',' can be ignored
- 'Article' is the default category
- Always have a title, season and episode
**/
@NonlinearFruit
NonlinearFruit / Movie_Imdb.js
Last active July 21, 2019 02:33
Retrospector Movie Plugin
/**
This plugin is only meant to handle the 'Movie' category.
It is not meant to for anything else. Assumptions:
- 'Year' factoid exists
- Movie episodes are of the form 'M1 Age of Ultron', 'P6 Return of the Jedi' etc
- Movies with season+episode contain the movie title in the season field 'M3 Return of the King'
- If there is a comma in the title, it is only followed by 'a', 'an' or 'the'
**/
// 'Import' the necessary classes