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
// easing functions http://goo.gl/5HLl8 | |
Math.easeInOutQuad = function (t, b, c, d) { | |
t /= d/2; | |
if (t < 1) { | |
return c/2*t*t + b | |
} | |
t--; | |
return -c/2 * (t*(t-2) - 1) + b; | |
}; |
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
! 2022-03-24 https://twitter.com | |
twitter.*##div[aria-label="Timeline: Trending now"] | |
twitter.*##div[aria-label="Home timeline"] > div > div article:has(div > div > div > span:has-text(Ad)) | |
! 2022-03-29 https://google.com | |
google.*##.g:has(a[href*="thetopsites.com"]) | |
google.*##.g:has(*:has-text(/bye topic of noninterest/i)) |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"module": "es2015", | |
"moduleResolution": "node", | |
"allowSyntheticDefaultImports": true, | |
"esModuleInterop": true, | |
"sourceMap": true, | |
"allowJs": 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
{ | |
"folders": [ | |
{ | |
"file_exclude_patterns": [".gitkeep", "*.min.*", "*.snap", "*lock*"], | |
"folder_exclude_patterns": [ | |
".sanity", | |
".astro", | |
".netlify", | |
".next", | |
".vercel", |
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
{ | |
"folders": [ | |
{ | |
"file_exclude_patterns": [ | |
".gitkeep", | |
"*.min.*", | |
"*.ts.snap", | |
"*lock*" | |
], | |
"folder_exclude_patterns": [ |
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
{ | |
"folders": [ | |
{ | |
"file_exclude_patterns": [ | |
".gitkeep", | |
"*.min.*", | |
"*.ts.snap", | |
"*lock*" | |
], | |
"folder_exclude_patterns": [ |
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
server { | |
# ... | |
# handle OPTIONS requests from window.fetch | |
if ($request_method = OPTIONS ) { | |
add_header Access-Control-Allow-Origin "*"; | |
add_header Access-Control-Allow-Methods "GET, OPTIONS"; | |
add_header Access-Control-Allow-Headers "Authorization,content-type"; | |
add_header Access-Control-Allow-Credentials "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
# usage: if read_confirm ... | |
function read_confirm | |
while true | |
read -l -p "Do you want to continue? [y/N] " confirm | |
switch $confirm | |
case Y y | |
return 0 | |
case '' N n | |
return 1 | |
end |
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 Vue from 'vue'; | |
/** | |
* EventHub to listen or broadcast to all components | |
* | |
* @see https://shopify.dev/tutorials/develop-theme-sections-integration-with-theme-editor | |
* | |
* Usage: eventHub.$on('shopify:section:select:{my-section-name}', (event) => handleSelect()); | |
* | |
*/ |
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
curl --connect-timeout 15 -v --insecure "smtp://smtp.example.com:25" -u "username:password" | |
\ --mail-from "sender@example.com" --mail-rcpt "destination@example.com" | |
\ -T email-contents.txt --ssl |