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
// Module imports | |
import 'dotenv/config' | |
import { | |
Client, | |
Intents, | |
} from 'discord.js' | |
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
// Local imports | |
import { STELLAR_CLASSES } from 'helpers/stellarClasses.js' | |
// The density at a point must be greater than this value for a star to be | |
// formed. | |
const DENSITY_THRESHHOLD_FOR_NEW_STAR = 0.2 |
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
let hasShownLoggingDisabledNotification = true | |
let logging = true | |
// export functions: a-z | |
export function getLogging() { | |
return logging | |
} | |
export function log(message, channel, user) { | |
const logConfig = { |
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
// Generates a set of flexible CSS Custom Properties | |
@mixin generateHSLCustomProperties($propertyName, $hue, $saturation, $lightness) { | |
// $safeName is necessary because $name can be a color literal (like 'red'). | |
// Sass doesn't like that, so we convert it to a string. | |
$safeName: '' + $propertyName; | |
--#{$safeName}-hue: calc(#{$hue} + var(--hue-shift)); | |
--#{$safeName}-saturation: #{$saturation}; | |
--#{$safeName}-lightness: #{$lightness}; |
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
const strings = [ | |
'Fruit', // #0002ee | |
'Blorp', // #0000a2 | |
'Fig', // #0002ee | |
'Bridge', // #0000a2 | |
'Macintosh', // #0006f3 | |
'Apple', // #00000f | |
'Speakers', // #000a65 | |
'Stream', // #000a65 | |
] |
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
import { | |
cloneElement, | |
useCallback, | |
} from 'react' | |
function RadioGroup(props) { | |
const { | |
children, | |
onChange, | |
} = props |
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
// Module imports | |
import React from 'react' | |
// Local imports | |
import ExternalLink from 'components/ExternalLink' |
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
// Module imports | |
import { | |
createContext, | |
useCallback, | |
useContext, | |
useEffect, | |
useState, | |
} from 'react' | |
import PropTypes from 'prop-types' |
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
JavaScript ββββββββββββββββββββ Pretty Good | |
HTML ββββββββββββββββββββ Totally Solid | |
CSS ββββββββββββββββββββ π― | |
React.js ββββββββββββββββββββ Good | |
Muscle ββββββββββββββββββββ Meh | |
Drums ββββββββββββββββββββ Strong (probs rusty, tho) |