Skip to content

Instantly share code, notes, and snippets.

View jgphilpott's full-sized avatar
⚒️

Jacob Philpott jgphilpott

⚒️
View GitHub Profile
@jgphilpott
jgphilpott / mass.coffee
Last active May 19, 2023 12:47
A collection of functions for converting between different units of mass.
### Mass Conversions ###
convertMass =
nanogram: {}
microgram: {}
milligram: {}
centigram: {}
decigram: {}
gram: {}
@jgphilpott
jgphilpott / area.coffee
Last active May 19, 2023 14:25
A collection of functions for converting between different units of area.
### Area Conversions ###
convertArea =
nanometerSq: {}
micrometerSq: {}
millimeterSq: {}
centimeterSq: {}
decimeterSq: {}
meterSq: {}
@jgphilpott
jgphilpott / data.coffee
Last active May 19, 2023 15:25
A collection of functions for converting between different units of data.
### Data Conversions ###
convertData =
bit: {}
byte: {}
kilobyte: {}
megabyte: {}
gigabyte: {}
terrabyte: {}
@jgphilpott
jgphilpott / energy.coffee
Last active May 16, 2023 19:37
A collection of functions for converting between different units of energy.
### Energy Conversions ###
convertEnergy =
joule: {}
kilojoule: {}
watt: {}
kilowatt: {}
### Joule Conversions ###
@jgphilpott
jgphilpott / dimension.coffee
Last active May 16, 2023 19:26
A collection of functions for converting coordinates between different dimensions.
### Dimension Conversions ###
convertDimension =
d2: {}
d3: {}
### 2D Conversions ###
# Credit: https://stackoverflow.com/a/13091694/1544937
@jgphilpott
jgphilpott / pressure.coffee
Last active May 16, 2023 20:16
A collection of functions for converting between different units of pressure.
### Pressure Conversions ###
convertPressure =
bar: {}
pascal: {}
atmospheric: {}
psi: {}
torr: {}
@jgphilpott
jgphilpott / speed.coffee
Last active May 19, 2023 10:03
A collection of functions for converting between different units of speed.
### Speed Conversions ###
convertSpeed =
millimeterSecond: {}
millimeterMinute: {}
millimeterHour: {}
centimeterSecond: {}
centimeterMinute: {}
centimeterHour: {}
@jgphilpott
jgphilpott / time.coffee
Last active May 17, 2023 09:35
A collection of functions for converting between different units of time.
### Time Conversions ###
convertTime =
nanosecond: {}
microsecond: {}
millisecond: {}
second: {}
minute: {}
hour: {}
@jgphilpott
jgphilpott / volume.coffee
Last active May 19, 2023 14:32
A collection of functions for converting between different units of volume.
### Volume Conversions ###
convertVolume =
nanometerCu: {}
micrometerCu: {}
millimeterCu: {}
centimeterCu: {}
decimeterCu: {}
meterCu: {}
@jgphilpott
jgphilpott / frequency.coffee
Last active May 16, 2023 19:42
A collection of functions for converting between different units of frequency.
### Frequency Conversions ###
convertFrequency =
hertz: {}
kilohertz: {}
megahertz: {}
gigahertz: {}
### Hertz Conversions ###