Skip to content

Instantly share code, notes, and snippets.

@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
@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 / PhotoSorter.py
Last active December 26, 2016 14:50
Sorts photos into a directory hierarchy according to their timestamp.
# The script is for taking a ton
# of photos and placing them into
# a structure like:
#
# - 2016
# - 01 January '16
# - 02 February '16
# - 03 March '16
# - ...
# - 2015
@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 / 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