=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
type FilterOperator = 'AND' | 'OR'; | |
type FiltersBy<T> = { | |
[K in keyof T]?: (value: T[K]) => boolean; | |
}; | |
/** | |
* Factory function that creates a specialized function to filter | |
* arrays, by validating all filters (AND operator), | |
* or validating just one of the filters (OR operator). | |
* @param operator Method to validate all filters: AND, OR |
xcode-select --install | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew cask install iterm2 | |
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts | |
brew install bash # latest version of bash | |
# set brew bash as default shell | |
brew install fortune | |
brew install cowsay | |
brew install git |
/* | |
Made by Elly Loel - https://ellyloel.com/ | |
With inspiration from: | |
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
Notes: | |
- `:where()` is used to lower specificity for easy overriding. | |
*/ |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1 id="cnt">0</h1> | |
<script type="text/javascript"> | |
const state = { | |
count: 0 | |
} |
/** | |
* Returns the amount of seconds between two given dates. | |
* @param {Date} dtStart The start time. | |
* @param {Date} dtEnd The end time. | |
* @returns The number of seconds between the two dates. | |
*/ | |
function secondsBetween(dtStart, dtEnd) { | |
var diff = (dtStart.getTime() - dtEnd.getTime()) / 1000; | |
return Math.abs(diff); | |
} |
tell application "Shortcuts" to run shortcut "MorningAutomationDNDToggler" | |
tell application "Calendar" to activate | |
tell application "zoom.us" to launch | |
tell application "Spotify" to launch | |
if application "Spotify" is running then | |
tell application "Spotify" | |
play track "spotify:track:7eTxWRSvauWm5L3FblGk2h" | |
end tell | |
end if | |
tell application "Google Chrome" to activate (open location "https://hashnode.com/") |