Skip to content

kinigitbyday/rk

Repository files navigation

rk

Command line tools

Commands

rk adventofcode:2022:adventofcode-2022-command

USAGE
  $ rk adventofcode:2022:adventofcode-2022-command

See code: dist/commands/adventofcode/2022/adventofcode-2022-command.ts

rk adventofcode:2022:day1:max-sum

Given a list of groups of numbers, calculates the top groups with the highest total and returns their sum. https://adventofcode.com/2022/day/2

USAGE
  $ rk adventofcode:2022:day1:max-sum --file <value> [--top <value>]

FLAGS
  --file=<value>  (required) A file containing groups of numbers. Numbers are one per line and groups are separated by
                  empty lines.
  --top=<value>   [default: 1] The number of maximum values to take and sum together.

DESCRIPTION
  Given a list of groups of numbers, calculates the top groups with the highest total and returns their sum.
  https://adventofcode.com/2022/day/2

See code: dist/commands/adventofcode/2022/day1/max-sum.ts

rk adventofcode:2022:day2:day2

USAGE
  $ rk adventofcode:2022:day2:day2

See code: dist/commands/adventofcode/2022/day2/day2.ts

rk adventofcode:2022:day2:rock-paper-scissors

Given a list of pairs of head to head rock paper scissors, calculate the score for both players. https://adventofcode.com/2022/day/2

USAGE
  $ rk adventofcode:2022:day2:rock-paper-scissors --file <value>

FLAGS
  --file=<value>  (required) A file containing pairs of encoded rock, paper, scissors games. Each game is a line. Two
                  encoded letters representing player selections per line

DESCRIPTION
  Given a list of pairs of head to head rock paper scissors, calculate the score for both players.
  https://adventofcode.com/2022/day/2

See code: dist/commands/adventofcode/2022/day2/rock-paper-scissors.ts

rk adventofcode:2022:day2:rock-paper-scissors-2

Given a list of pairs of one player's rock, paper, scissors choices and the desired result, calculate the scores for each players. https://adventofcode.com/2022/day/2#part2

USAGE
  $ rk adventofcode:2022:day2:rock-paper-scissors-2 --file <value>

FLAGS
  --file=<value>  (required) A file containing pairs of encoded rock, paper, scissors games. Each game is a line. One
                  encoded letter representing player selection and one encoded letter representing the desired result
                  per line

DESCRIPTION
  Given a list of pairs of one player's rock, paper, scissors choices and the desired result, calculate the scores for
  each players. https://adventofcode.com/2022/day/2#part2

See code: dist/commands/adventofcode/2022/day2/rock-paper-scissors-2.ts

rk adventofcode:2022:day3:rucksack-duplicates

Given a list of items per rucksack, find the items that exist in both compartments and score them on priority: https://adventofcode.com/2022/day/3

USAGE
  $ rk adventofcode:2022:day3:rucksack-duplicates --file <value> [-c <value>]

FLAGS
  -c, --compartmentsPerRucksack=<value>  [default: 2] The number of compartments per rucksack. Defaults to 2.
  --file=<value>                         (required) A file containing the items in each rucksack. Each line is a
                                         rucksack, each letter is an item. Each rucksack has a variable number of
                                         compartments (but all have the same number).

DESCRIPTION
  Given a list of items per rucksack, find the items that exist in both compartments and score them on priority:
  https://adventofcode.com/2022/day/3

  Also finds the badge to label the rucksacks with. Rucksacks are grouped into sets of three and the badge can be
  identified as the only item contained in all three: https://adventofcode.com/2022/day/3#part2

See code: dist/commands/adventofcode/2022/day3/rucksack-duplicates.ts

rk adventofcode:2022:day4:camp-cleanup-overlap

Given pairs of ranges of cleaning zones, find the number with overlapped sections: https://adventofcode.com/2022/day/4

USAGE
  $ rk adventofcode:2022:day4:camp-cleanup-overlap --file <value>

FLAGS
  --file=<value>  (required) A file containing pairs of numerical ranges. One pair per line.

DESCRIPTION
  Given pairs of ranges of cleaning zones, find the number with overlapped sections: https://adventofcode.com/2022/day/4

See code: dist/commands/adventofcode/2022/day4/camp-cleanup-overlap.ts

rk adventofcode:2022:day5:box-stacking

Runs a set of crane restacking instructions on an initial stacked box state: https://adventofcode.com/2022/day/5

USAGE
  $ rk adventofcode:2022:day5:box-stacking --file <value> [--boxesMoveOneAtATime]

FLAGS
  --[no-]boxesMoveOneAtATime
  --file=<value>              (required) A file containing the initial stacks and the crane instructions

DESCRIPTION
  Runs a set of crane restacking instructions on an initial stacked box state: https://adventofcode.com/2022/day/5

See code: dist/commands/adventofcode/2022/day5/box-stacking.ts

rk adventofcode:2022:day6:unique-n-gram

Finds the first n-gram where all the characters are unique: https://adventofcode.com/2022/day/6

USAGE
  $ rk adventofcode:2022:day6:unique-n-gram --file <value> [--n <value>]

FLAGS
  --file=<value>  (required) A file containing sequences of characters, each sequence on its own line
  --n=<value>     [default: 4] The size of the n-gram to detect

DESCRIPTION
  Finds the first n-gram where all the characters are unique: https://adventofcode.com/2022/day/6

See code: dist/commands/adventofcode/2022/day6/unique-n-gram.ts

rk dev:git:switch-shortcut-branch

Switches to a branch by a shortcut name

USAGE
  $ rk dev:git:switch-shortcut-branch --token <value>

FLAGS
  --token=<value>  (required)

DESCRIPTION
  Switches to a branch by a shortcut name

See code: dist/commands/dev/git/switch-shortcut-branch.ts

rk help [COMMAND]

Display help for rk.

USAGE
  $ rk help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for rk.

See code: @oclif/plugin-help

rk random:rainbowify

Creates a rainbowified/party-fied gif from an image for slack

USAGE
  $ rk random:rainbowify [--gif <value> | --colors <value>] [--useGifIntermediateFrames | --image <value>] [--outDir
    <value>] [--delay <value>] [--saturation <value>] [--lighten <value>] [--size <value>]

FLAGS
  --colors=<value>                 [default: 10] Number of colors to use
  --delay=<value>                  [default: 3] Frame delay for the gif
  --gif=<value>                    Gif to use
  --image=<value>                  Image to use
  --lighten=<value>                [default: 10] Lightening level to apply to each frame
  --outDir=<value>                 [default: .] Output file dir
  --saturation=<value>             [default: 50] Saturation level to apply to each frame
  --size=<value>                   [default: 128] Squared size of the output image (scaled to fit)
  --[no-]useGifIntermediateFrames  Whether or not to add intermediate frames to gifs to keep the fast rainbow effect.
                                   Can increase the size of the gif.

DESCRIPTION
  Creates a rainbowified/party-fied gif from an image for slack

See code: dist/commands/random/rainbowify.ts

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published