=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
/** | |
* Filters an array of objects using custom predicates. | |
* | |
* @param {Array} array: the array to filter | |
* @param {Object} filters: an object with the filter criteria | |
* @return {Array} | |
*/ | |
function filterArray(array, filters) { | |
const filterKeys = Object.keys(filters); | |
return array.filter(item => { |
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/") |