top to bottom: fancyscale, linear, nearest neighbor:
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
# GraphemeBreakTest-16.0.0.txt | |
# Date: 2024-05-02, 15:02:48 GMT | |
# © 2024 Unicode®, Inc. | |
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. | |
# For terms of use and license, see https://www.unicode.org/terms_of_use.html | |
# | |
# Unicode Character Database | |
# For documentation, see https://www.unicode.org/reports/tr44/ | |
# | |
# Default Grapheme_Cluster_Break Test |
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
import { Accessor, createEffect, createRoot, JSX, onCleanup, untrack } from "solid-js"; | |
import { vec2, Vec2 } from "../util/vec2"; | |
// polyfill roundRect, does not support radius arrays | |
CanvasRenderingContext2D.prototype.roundRect ??= function (this: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, radius: number) { | |
if (width < 2 * radius) radius = width / 2; | |
if (height < 2 * radius) radius = height / 2; | |
this.beginPath(); | |
this.moveTo(x + radius, y); | |
this.arcTo(x + width, y, x + width, y + height, radius); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Reader</title> | |
<meta name="application-name" content="Reader" /> | |
<meta name="apple-mobile-web-app-title" content="Reader" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
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
import { | |
createRoot, | |
createSignal, | |
createMemo, | |
onCleanup, | |
untrack, | |
JSX, | |
Accessor | |
} from "solid-js"; |
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
{ | |
// /\ / \ \/\ /\/\ /\/ \/ \/\/ | |
// | |
// / i, /\ a, /\/ n, /\/\ m | |
// \ i, \/ v, \/\ h, \/\/ w | |
const swslash = { | |
a: "/\\", i: "/", m: "/\\/\\", n: "/\\/", | |
}; | |
const swback = { | |
i: "\\", h: "\\/\\", v: "\\/", w: "\\/\\/", |
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
{ | |
if(window.__vvviewer) window.__vvviewer.remove(); | |
window.__vvviewer = document.createElement("div"); | |
__vvviewer.setAttribute("style", "position:fixed;left:0;right:0;width:100%;background-color:red;height:4px;z-index:1000000"); | |
document.body.appendChild(__vvviewer); | |
function update() { | |
__vvviewer.style.top = visualViewport.offsetTop + "px"; |
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
#!/usr/bin/env fish | |
function start_of_line | |
echo -ne "\r"(tput el) | |
end | |
function fail_error | |
echo | |
echo (set_color red)$argv | |
exit |
NewerOlder