Press the following keys on the remote:
- Info
- Settings
- Mute
- Power
/** | |
* Get data type | |
* @see {@link https://gomakethings.com/a-better-way-to-create-an-immutable-copy-of-an-array-or-object-with-vanilla-js/} | |
* | |
* @param {} item Thing we want the type of | |
* @returns {String} Thing's type | |
*/ | |
function getDataType (item) { | |
/** | |
* Unfortunately, `typeof` isn't that useful to detect types like `array` |
/** | |
* Parse ISO date string | |
* | |
* This convoluted mess is necessary because lovely Safari doesn't use the | |
* local time zone during `new Date(…)`! | |
* @param {'YYYY-MM-DD'} date Date string | |
* @param {'HH:MM:SS'} time Time string | |
* @returns {Date} Parsed date | |
*/ | |
export default function (date, time) { |
<div class="is-primary"> | |
<button class="button">I'm primary</button> | |
</div> | |
<div class="is-secondary"> | |
<button class="button">I'm secondary</button> | |
</div> |
import store from './store.js' | |
console.log(store.state.hello) // '🌍' | |
store.greet('🌌') | |
console.log(store.state.hello) // '🌌' | |
console.log(store.state.cool) // Set('🍍') | |
store.addCool('🍌') | |
console.log(store.state.cool) // Set('🍍', '🍌') |
/* https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */ | |
:focus:not(:focus-visible) { | |
outline: 0; | |
} |
#!/bin/sh | |
# Usage: | |
# -e: Exclude folders | |
# -p: Prioritize folders | |
# -c: Run this command | |
# execute.sh -e "folder1 folder2" -p "folder3 folder4" -c "command" | |
while getopts "e:p:c:" OPTION; do | |
case "$OPTION" in |
/** | |
* Fontsource makes open source fonts available on npm. | |
* https://github.com/fontsource/fontsource | |
*/ | |
@use "@fontsource/font-name/scss/mixins" as font-name; | |
@include font-name.fontFace( | |
$weight: 400, | |
$style: normal, |
/** | |
* Copy into dev tools console and hit enter. | |
* It may take a while and the page will be blocked while the script is running. | |
* | |
* Source: | |
* https://twitter.com/ChrisFerdinandi/status/1417947102731190277 | |
* https://twitter.com/ChrisFerdinandi/status/1417947104111104002 | |
*/ | |
let checked = document.querySelectorAll('input:checked') |