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
| function _isMobile() { | |
| const mobileBreapoint = window.getComputedStyle(document.body).getPropertyValue('--mobile-breakpoint'); | |
| const mobileMediaQuery = `only screen and (max-width: ${mobileBreapoint})`; | |
| console.log(mobileMediaQuery); | |
| return window.matchMedia(mobileMediaQuery).matches; | |
| } |
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
| Search regex | |
| \[[\s\n]+(\-*\d+.\d+),[\s\n]+(\-*\d+.\d+)[\s\n]+\] | |
| ( vscode \[[\s\n]+(-*\d+.\d+),[\s\n]+(-*\d+.\d+)[\s\n]+\] ) | |
| Replace | |
| [$2,$1] |
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
| ffmpeg -i input.mov -filter_complex "fps=5, scale=-1:180" output.gif |
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
| table { | |
| transform: scaleY(-1); | |
| } | |
| tr { | |
| transform: scaleY(-1); | |
| } |
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
| for f in *.wav; do ffmpeg -i "$f" -c:a libmp3lame -q:a 2 "${f/%wav/mp3}" -c:a libvorbis -q:a 4 "${f/%wav/ogg}"; done | |
| HQ | |
| for f in *.wav; do ffmpeg -i "$f" -c:a libmp3lame -q:a 0 "${f/%wav/mp3}"; done |
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 link = document.createElement('link'); | |
| link.href = "https://fonts.googleapis.com/css2?family=Redacted+Script:wght@700&display=swap"; | |
| link.rel="stylesheet"; | |
| document.body.appendChild(link); | |
| document.querySelectorAll('*[data-eventchip]').forEach( (e) => { | |
| e.style.fontFamily = "Redacted Script"; | |
| e.style.fontWeight = "700"; |
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
| document.querySelectorAll('*[data-eventchip]').forEach( (e) => { | |
| e.style.filter="blur(4px)"; | |
| }) |
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
| @media only screen and (max-width: 900px) { | |
| * { | |
| display: none; | |
| } | |
| } |
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
| precalculateColorTransition = function(fromHex, toHex, steps=30) { | |
| const fromRGB = [ parseInt(fromHex.substr(0, 2), 16), | |
| parseInt(fromHex.substr(2, 2), 16), | |
| parseInt(fromHex.substr(4, 2), 16) | |
| ]; | |
| const toRGB = [ parseInt(toHex.substr(0, 2), 16), | |
| parseInt(toHex.substr(2, 2), 16), | |
| parseInt(toHex.substr(4, 2), 16) |
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
| .ajax-progress { | |
| position: fixed; | |
| text-align: center; | |
| color: $teal; | |
| padding: 20px 20px 0 20px; | |
| width: auto; | |
| height: auto; | |
| font-weight: 700; | |
| font-size: 5rem; | |
| z-index: 90210; |
NewerOlder