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
// this is a comment | |
const func = (a, b, c, d, e, f, s, n) => { | |
if (a++ && b-- || c >= d || e <= f) { | |
} | |
if (s === 'string' && n !== 999) { | |
} | |
if (a == b && c != d) | |
a <- b <-- c <== d | |
a |> b |
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
.highlight pre, .blob-wrapper, .blob-expanded .blob-code, .blob-expanded .blob-num { background-color: #193549 !important; color: #e1efff !important; } | |
.blob-code-inner, .blob-num, .highlight pre, .blob-wrapper { font-family: "Operator Mono SSm Lig" !important; color: #ffee80 !important; font-size:16px; line-height: 135% !important;} | |
.blob-num, .blob-expanded .blob-num {color: #aaa !important; } | |
.blob-code-hunk, .blob-num-hunk, .blob-num-expandable, .blob-code-expandable { background-color: #1E88E5; } | |
.blob-code-addition, .blob-num-addition { background-color: #005500; } | |
.blob-code-deletion, .blob-num-deletion { background-color: #550000; } | |
.pl-c, .pl-e { font-style: italic; } | |
.pl-k { color: #ff9d00; } | |
.pl-pds { color: #e1efff; } | |
.pl-pse { color: #e1efff; } |
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
{ | |
"app": { | |
"devices": [ | |
{ | |
"absolute": { "x": 0, "y": 0 }, | |
"active": true, | |
"browserConfigId": "Empty", | |
"canBeRotated": true, | |
"customUserAgent": "", | |
"height": 800, |
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
lookup bar_bar_bar_greater { | |
ignore sub bar bar' bar bar greater; | |
ignore sub bar' bar bar greater greater; | |
sub bar.spacer bar.spacer bar.spacer greater' by bar_bar_bar_greater.liga; | |
sub bar.spacer bar.spacer bar' greater by bar.spacer; | |
sub bar.spacer bar' bar greater by bar.spacer; | |
sub bar' bar bar greater by bar.spacer; | |
} bar_bar_bar_greater; | |
lookup less_bar_bar_bar { |
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
export default function () { | |
return process.env.NODE_ENV === 'development' ? ( | |
<script src="http://localhost:35729/livereload.js?snipver=1"></script> | |
) : null | |
} |
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
// ==UserScript== | |
// @name Heroicons copy | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://heroicons.com | |
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net | |
// @grant none | |
// ==/UserScript== |
Remix uses <link rel="modulepreload"/>
on client-side JavaScript.
I thought it would be cool to setup HTTP/2 on express to enable pipelining the script files.
Add spdy
package, then update server.js to setup server.
Generate self-signed SSL certificate and copy to ./certs folder.
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
diff --git a/node_modules/@remix-run/node/server.js b/node_modules/@remix-run/node/server.js | |
index 2a96bd3..e0e2a34 100644 | |
--- a/node_modules/@remix-run/node/server.js | |
+++ b/node_modules/@remix-run/node/server.js | |
@@ -100,6 +100,7 @@ async function handleDocumentRequest(request, loadContext, build, routes, server | |
}; | |
let actionErrored = false; | |
+ let clone = request.clone(); | |
if (isActionRequest(request)) { |