Skip to content

Instantly share code, notes, and snippets.

@KaliumPuceon
Created October 24, 2019 09:49
Show Gist options
  • Save KaliumPuceon/dd79db651e555183769ea5c389db1c1c to your computer and use it in GitHub Desktop.
Save KaliumPuceon/dd79db651e555183769ea5c389db1c1c to your computer and use it in GitHub Desktop.
Kalium's custom units file as of October 2019
###########################################################################
#
# Kalium's custom units file
#
# These are not guaranteed to be correct, useful or sensible, but they are
# things I use sometimes
#
###########################################################################
###########################################################################
#
# Convenient distance definitions
#
###########################################################################
serverrack 1.75 inches
rackunit serverrack
sevenfourseven_wingspan 64.4 meter
michaeljordan 1.98 meter
olympic_pool 50 meter
###########################################################################
#
# Movie and Song Lengths
#
###########################################################################
lordoftherings 11.4 hours
harrypotter 19 hours + 39 minutes
fourthirtythree 4 minutes + 33 seconds
pride&prejudice 327 minutes
prequelstarwars 415 minutes
originalstarwars 376 minutes
allstarwars prequelstarwars + originalstarwars
songtwo 122 seconds
fivehundredmiles 3 minutes + 37 seconds
allstar 3 minutes + 21 seconds
darudesandstorm 7 minutes + 26 seconds
rickroll 3 minutes + 25 seconds
###########################################################################
#
# Animal and Vehicle Speeds
#
###########################################################################
cheetah 65 km/hour
peregrine 320 km/hour
usainbolt 12.4 m/s
blackbird mach 3.5
concorde mach 2.02
sevenfourseven mach 0.9
fone 370 km/hour
veyron 120 m/s
###########################################################################
#
# Explosions and Energetic Events
#
###########################################################################
tsarbomba 58 megaton tnt
starfishprime 1.4 megaton tnt
dailyallowance 8700 kilojoule
###########################################################################
#
# Homestuck Units
#
###########################################################################
sweep 13|6 years
###########################################################################
#
# Bra Size Calculations courtesy of VictoriaB and Adrian Mariano August 2019
#
# > We have done some investigation of this matter, and ultimately have
# > concluded that bra size is not sufficiently standard, and the
# > conversion from bra size to volume---which appears to use a somewhat
# > dubious hemisphere assumption---is not really meaningful enough for us
# > to list this as a standard factor in units. Based on the writeup on
# > the Wikipedia page I had written the material below. You can convert
# > to volume by computing volume of a hemisphere from the diameter.
# >
# > But even the wikipedia page doesn't adequately cite the values. They
# > refer to a document that lists underwire lengths from different
# > sources which shows that they vary by a considerable amount, like a
# > couple inches. And that's before you get into the hemisphere
# > assumption.
# >
# > To use the code below,
# >
# > ukbracuptdiamC(40)
# >
# > gives the diameter of a C cup with band size 40.
# >
# > spherevol(ukbracuptdiamC(40)/2)/2
# >
# > gives the volume of the hemisphere with that diameter.
#
###########################################################################
underwire_diameter(wiresize) units=[1;in] domain=[28,64] ((wiresize - 30) / 6 + 3 + 5|6) in
ukbracupdiamAA(bandsize) underwire_diameter(bandsize-4)
ukbracupdiamA(bandsize) underwire_diameter(bandsize-2)
ukbracupdiamB(bandsize) underwire_diameter(bandsize)
ukbracupdiamC(bandsize) underwire_diameter(bandsize+2)
ukbracupdiamD(bandsize) underwire_diameter(bandsize+4)
ukbracupdiamDD(bandsize) underwire_diameter(bandsize+6)
ukbracupdiamE(bandsize) underwire_diameter(bandsize+8)
ukbracupdiamF(bandsize) underwire_diameter(bandsize+10)
ukbracupdiamFF(bandsize) underwire_diameter(bandsize+12)
ukbracupdiamG(bandsize) underwire_diameter(bandsize+14)
ukbracupdiamGG(bandsize) underwire_diameter(bandsize+16)
ukbracupdiamH(bandsize) underwire_diameter(bandsize+18)
ukbracupdiamHH(bandsize) underwire_diameter(bandsize+20)
ukbracupdiamJ(bandsize) underwire_diameter(bandsize+22)
ukbracupdiamJJ(bandsize) underwire_diameter(bandsize+24)
ukbracupdiamK(bandsize) underwire_diameter(bandsize+26)
ukbracupdiamKK(bandsize) underwire_diameter(bandsize+28)
usbracupdiamAA(bandsize) underwire_diameter(bandsize-4)
usbracupdiamA(bandsize) underwire_diameter(bandsize-2)
usbracupdiamB(bandsize) underwire_diameter(bandsize)
usbracupdiamC(bandsize) underwire_diameter(bandsize+2)
usbracupdiamD(bandsize) underwire_diameter(bandsize+4)
usbracupdiamE(bandsize) underwire_diameter(bandsize+6)
usbracupdiamF(bandsize) underwire_diameter(bandsize+8)
usbracupdiamG(bandsize) underwire_diameter(bandsize+10)
usbracupdiamH(bandsize) underwire_diameter(bandsize+12)
usbracupdiamI(bandsize) underwire_diameter(bandsize+14)
usbracupdiamJ(bandsize) underwire_diameter(bandsize+16)
usbracupdiamK(bandsize) underwire_diameter(bandsize+18)
usbracupdiamL(bandsize) underwire_diameter(bandsize+20)
usbracupdiamM(bandsize) underwire_diameter(bandsize+22)
usbracupdiamN(bandsize) underwire_diameter(bandsize+24)
usbracupdiamO(bandsize) underwire_diameter(bandsize+26)
usbracupdiamP(bandsize) underwire_diameter(bandsize+28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment