Skip to content

Instantly share code, notes, and snippets.

@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
@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
@NonlinearFruit
NonlinearFruit / README.md
Last active May 7, 2025 21:53
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 / kruptos.sh
Last active July 22, 2016 22:28
Kruptos is an minimalist password manager
function kruptos
{
if [[ $# -eq 1 ]]; then
DOWHAT="$1"
else
DOWHAT="d"
fi
FOLDER="~/.kruptos"
FROYO="/.phrazein"
if [[ $DOWHAT == "d" ]]; then