This file contains 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
function getYoutubeVideoStatus( $video_id ){ | |
/** | |
* Get the status of a youtube video | |
* @param string $video_id | |
* @return string | false | |
*/ | |
$url = "https://www.googleapis.com/youtube/v3/videos?part=status&id=$video_id&key=YOUR_API_KEY_HERE"; | |
$results = json_decode(file_get_contents($url)); | |
return( isset( $results->items[0]->status->privacyStatus ) ) ? $results->items[0]->status->privacyStatus : false; |
This file contains 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
for FILE in *; do squoosh-cli --mozjpeg 50 --resize '{width: 1000, height: 1000}' "$FILE"; done; |
This file contains 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 handleHeaderLogic = (() => { | |
const header = document.querySelector('header'); | |
const sections = document.querySelectorAll('.section'); | |
const whereSectionsStartAndEnd = {} | |
const headerHeight = 132; | |
let lastPosition = Math.ceil(window.scrollY); | |
let ticking = false; | |
// scrolls to section when menu item is clicked | |
const handleClickOnMenuItems = (() => { |
OlderNewer