This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Mass Conversions ### | |
convertMass = | |
nanogram: {} | |
microgram: {} | |
milligram: {} | |
centigram: {} | |
decigram: {} | |
gram: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These are the supported funding platforms: | |
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | |
patreon: # Replace with a single Patreon username | |
open_collective: # Replace with a single Open Collective username | |
ko_fi: # Replace with a single Ko-fi username | |
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | |
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | |
liberapay: # Replace with a single Liberapay username | |
issuehunt: # Replace with a single IssueHunt username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abbreviations = | |
angle: | |
degree: "°" | |
gradian: "ᵍ" | |
milliradian: "mrad" | |
radian: "rad" | |
arcSecond: "″" | |
arcMinute: "′" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit: https://stackoverflow.com/a/55252008/1544937 | |
lightSchemeIcon = document.querySelector "link#light-scheme-icon" | |
darkSchemeIcon = document.querySelector "link#dark-scheme-icon" | |
schemeMatcher = window.matchMedia "(prefers-color-scheme: light)" | |
schemeUpdate = -> | |
if schemeMatcher.matches |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Illumination Conversions ### | |
convertIllumination = | |
phot: {} | |
lux: {} | |
nox: {} | |
flame: {} | |
### Phot Conversions ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Density Conversions ### | |
convertDensity = | |
gramCentimeterCu: {} | |
gramMeterCu: {} | |
kilogramCentimeterCu: {} | |
kilogramMeterCu: {} | |
ounceInchCu: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Magnetomotive Conversions ### | |
convertMagnetomotive = | |
milliampere: {} | |
ampere: {} | |
abampere: {} | |
kiloampere: {} | |
gilbert: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Radiation Conversions ### | |
convertRadiation = | |
nanogray: {} | |
microgray: {} | |
milligray: {} | |
centigray: {} | |
decigray: {} | |
gray: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit: http://gist.github.com/399624 | |
# The click event will be fired with a small delay but will not fire upon a double click. | |
$.fn.clickSingleDouble = (singleClickCallback, doubleClickCallback, delay = 250) -> | |
return this.each => | |
clicks = 0 | |
$(this).click (event) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.isVoid = (variable) -> | |
return _.isUndefined(variable) or _.isNull(variable) | |
_.isTruthy = (variable) -> | |
return Boolean(variable) is true | |
_.isFalsey = (variable) -> |