{
"name": "illvart",
"version": 2,
"builds": [{ "src": "./public/**", "use": "@now/static" }],
"routes": [
{ "src": "/(.*)", "dest": "public/$1" },
{ "handle": "filesystem" },
{ "src": "/.*", "status": 404, "dest": "public/404.html" }
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
# /etc/X11/xorg.conf.d/20-intel.conf | |
Section "Device" | |
Identifier "Intel Graphics" | |
Driver "intel" | |
Option "TearFree" "true" # Tearing | |
Option "DRI" "2" # DRI3 is now default | |
#Option "AccelMethod" "sna" # default | |
#Option "AccelMethod" "uxa" # fallback |
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
{"lastUpload":"2020-03-22T20:30:31.296Z","extensionVersion":"v3.4.3"} |
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
[build] | |
publish = "public" | |
command = "yarn build" # or gulp default | |
[[headers]] | |
for = "/*" | |
[headers.values] | |
X-Content-Type-Options = "nosniff" | |
Strict-Transport-Security = "max-age=31536000" | |
Referrer-Policy = "no-referrer-when-downgrade" |
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 regex; | |
/* matching a specific string */ | |
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
/* wildcards */ | |
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
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
console.log('Client-side code running'); | |
const button = document.getElementById('myButton'); | |
button.addEventListener('click', function(e) { | |
console.log('button was clicked'); | |
fetch('/clicked', {method: 'POST'}) | |
.then(function(response) { | |
if(response.ok) { | |
console.log('click was recorded'); |
The Scroll Behavior specification has been introduced as an extension of the Window
interface to allow for the developer to opt in to native smooth scrolling. To date this has only been implemented in Chrome, Firefox and Opera.
There's a complete polyfill here (3.3KB minified). But most of the times, the following is enough for me (641 bytes minified):
smooth-scrolling-poyfill.js
Use as: scrollToElem('#elem-selector');
https://help.github.com/en/articles/generating-a-new-gpg-key
$ gpg --full-generate-key
$ gpg --list-secret-keys --keyid-format LONG
$ gpg --armor --export 4B7437C056F503BA
$ gpg --delete-secret-keys EF810E34728E5278
Kelebihan PageList sangat banyak. Mendukung SEO, Structured Data, UI/UX, url lebih lanjut untuk variant dll. Perhatikan codenya.
cond='not data:link.id'
bisa untuk membuat attributerel='nofollow noopener'
hanya ada di link external bukan internal (seperti halaman labels, pages, dll).cond='data:link.isCurrentPage'
menghilangkan attributetarget='_blank'
jika halaman yang dikunjungi saat ini (untuk meningkatkan peformance Google Analytics).cond='data:view.isHomepage and data:link.id'
untuk menghilangkan attributeitemprop='url'
danitemprop='name'
jika itu link external (karena logikanya SiteNavigationElement di halaman Google akan tampil hanya link internal jika external yakali promosi, lihat aja contohnya seperti GitHub - ketikan GitHub di google maka ada navigasi menu seperti Sign up, Collections nah itu SiteNavigationElement).
Dan untuk SiteNavigationElement hanya ditampilkan di halaman depan! Karena log