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
javascript:(function() { | |
window.open('https://archive.is/?run=1&url=' + encodeURIComponent(window.location.href)); | |
})(); |
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(){var a=window.location.href.match(/watch\?v=([a-zA-Z0-9_-]+)/);if(a){var o="https://www.youtube.com/embed/"+a[1];window.location.href=o}else alert("Not a valid YouTube watch URL.")}(); |
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
export PATH=/opt/homebrew/bin | |
query=$1 | |
for FILE in "$@"; do | |
convert "$FILE" "${FILE%%.*}.jpg" | |
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
vi.mock('vue-i18n', () => ({ | |
useI18n: () => ({ | |
t: (tKey: string) => tKey, | |
}), | |
})); |
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
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'; | |
function paramsToObject(searchParams: URLSearchParams): { [key: string]: string } { | |
const params: { [key: string]: string } = {}; | |
searchParams.forEach((value: string, key: string) => { | |
params[key] = value; | |
}); | |
return params; |
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
# generate icon.svg | |
cp input.svg icon.svg | |
# generate icon-512.png | |
inkscape ./icon.svg --export-width=512 --export-filename="./icon-512.png" | |
# generate icon-192.png | |
inkscape ./icon.svg --export-width=192 --export-filename="./icon-192.png" | |
# genrate favicon.ico |
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
auto-install-peers=true |
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
auto-install-peers=true |