R

R0

My ungainly friend obtained a PhD in palindromes so now he’s Dr. Awkward.

perl -lne 'print if length($_) >= 5 && $_ eq reverse($_)' words-small


R1


R2


R3

Print ten columns of random numbers with BSD tools:

jot -r 100 | rs 10


R4


R5

Perl one-liner to highlight consecutive duplicated words:

perl -pe 's/\b(\w+)\s+\1\b/\e[31m$&\e[0m/gi' gettysburg.txt


R6


R7


R8


R9


RA


RB


RC


RD


RE

Chloroform in print:

A seon of gold was twice the value of a senine, and a shum of gold was four times the value of a senine. A limnah of gold was equal to a senine plus a seon plus a shum. An amnor of silver was as great as two senums of silver. An ezrom of silver was as great as four senums. An onti was as great as a senum plus an amnor plus an ezrom. A shiblon of silver is half of a senum. A shiblum is a half of a shiblon. And a leah is the half of a shiblum. An antion of gold is equal to three shiblons of silver.

We now return you to the Book of Alma already in progress.


RF


RG


RH


RI


RJ


RK


RL

Print a range of binary numbers and align right

#!/usr/bin/python3
import sys
a = int(sys.argv[1])
b = int(sys.argv[2])
width = len(format(b, 'b')) 
for i in range(a, b + 1):
    print(format(i, f'>{width}b'))  


RM

Constellation name from stellar coordinates:

#!/usr/bin/python3
import sys
from astropy import units as u
from astropy.coordinates import SkyCoord, get_constellation
coord=sys.argv[1:]
co=" ".join(coord)
c=SkyCoord(co, unit=(u.hourangle,u.deg))
print(get_constellation(c,short_name=False))


RN

“…Deb­bie as the hunter and guys as the game — hell, look at the album cover alone, where they all look like identical dorks and she looks ready to bitchslap you in a moment…” https://only-solitaire.blogspot.com/search/label/Blondie


RO

Classic film for loners:

Star War
The Grape of Wrath
Single Indemnity
Jaw
Snow White and the Dwarf
The Lord of the Ring
Raider of the Lost Ark
Close Encounter of the First Kind
The Silence of the Lamb
Wuthering Height
Dance with Wolf
One Angry Man
Goodfella


RP

#!/bin/sh
awk '
BEGIN {
    for (i=0; i<16; i++) {
        for (j=32+i; j<128; j+=16) {
            if (j == 32)      { x = "SPC" }
            else if (j == 127) { x = "DEL" }
            else               { x = sprintf("%c", j) }
		    printf("%3d (0x%02X): %-5s", j, j, x)
        }
        print ""
    }
}
' "$0"
exit 0


RQ


RR

Python one-liner to obtain Euler’s number from an infinite series:

e = ∑ₖ₌₀^∞ 1/k!

e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + 1/5! + ⋯

python3 -c "import math; s=0; [print(s:=s+1/math.factorial(k)) for k in range(20)]"


RS


RT


RU

The indecision’s bugging me
If you don’t want me set me free
Exactly whom I’m supposed to be
Don’t you know which clothes even fits me?


RV


RW


RX


RY


RZ