-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
155 lines (147 loc) · 6.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="ggorlen.github.io">
<meta name="color-scheme" content="dark light">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ggorlen</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<canvas width="0" height="0" id="sketch"></canvas>
<h1>ggorlen</h1>
</header>
<main>
<article>
<h2>Doodles</h2>
<ul>
<li><a href="antlr-calc">ANTLR Calculator</a></li>
<li><a href="prettybt">Binary tree visualizer</a></li>
<li><a href="dom-turtle">DOM turtle graphics</a></li>
<li><a href="gist-list?username=ggorlen">Gist lister</a></li>
<li><a href="run-gist">Gist runner</a></li>
<li><a href="gloaming">Gloaming game sketch</a></li>
<li><a href="html-ttt">HTML Tic Tac Toe</a></li>
<li><a href="json-dive">JSON explorer</a></li>
<li><a href="mazes">Maze generator</a></li>
<li><a href="minesweeper">Minesweeper</a></li>
<li><a href="resources">Programming Resources</a></li>
<li><a href="sokoban">Sokoban</a></li>
<li><a href="spimjs">SPIM in the browser</a></li>
<li><a href="tetris">Tetris</a></li>
</ul>
</article>
<article>
<h2>Writing</h2>
<ul>
<li><a href="https://serpapi.com/blog/puppeteer-antipatterns">Puppeteer Antipatterns</a></li>
<li><a href="https://blog.appsignal.com/2023/06/14/puppeteer-in-nodejs-more-antipatterns-to-avoid.html">More Puppeteer Antipatterns</a></li>
<li><a href="https://blog.appsignal.com/2023/02/08/puppeteer-in-nodejs-common-mistakes-to-avoid.html">Puppeteer Mistakes</a></li>
<li><a href="https://serpapi.com/blog/dynamic-scraping-without-libraries/">Web Scraping Without Libraries</a></li>
<li><a href="https://browserless.webflow.io/blog/json-responses-with-puppeteer-and-playwright">Extracting Data from JSON Responses with Puppeteer and Playwright</a></li>
<li><a href="https://blog.appsignal.com/2024/11/20/avoiding-false-positives-in-nodejs-tests.html">Avoiding False Positives in Node.js Tests</a></li>
</ul>
</article>
<article>
<h2>Profiles</h2>
<ul>
<li><a href="https://bandcamp.com/ggorlen">Bandcamp</a></li>
<li><a href="https://bitbucket.org/ggorlen/">Bitbucket</a></li>
<li><a href="https://www.chess.com/members/recapitation">Chess.com</a></li>
<li><a href="https://www.codementor.io/@ggorlen">Codementor</a></li>
<li><a href="https://codepen.io/ggorlen/">Codepen</a></li>
<li><a href="https://software.codidact.com/users/56855">Codidact</a></li>
<li><a href="https://codewars.com/users/ggorlen">Codewars</a></li>
<li><a href="https://cses.fi/user/25733">CSES</a></li>
<li><a href="https://www.discogs.com/user/_morning">Discogs</a></li>
<li><a href="https://github.com/ggorlen">GitHub</a></li>
<li><a href="https://gitlab.com/ggorlen">GitLab</a></li>
<li><a href="https://glitch.com/@ggorlen">Glitch</a></li>
<li><a href="https://news.ycombinator.com/user?id=ggorlen">Hacker News</a></li>
<li><a href="https://www.hackerrank.com/ggorlen">HackerRank</a></li>
<li><a href="https://jsfiddle.net/user/ggorlen/">JSFiddle</a></li>
<li><a href="https://open.kattis.com/users/ggorlen">Kattis</a></li>
<li><a href="https://www.khanacademy.org/profile/ggorlen">Khan Academy</a></li>
<li><a href="https://leetcode.com/ggorlen/">Leetcode</a></li>
<li><a href="https://lichess.org/@/recapitation">Lichess</a></li>
<li><a href="https://ggorlen.neocities.org/">Neocities</a></li>
<li><a href="https://www.npmjs.com/~ggorlen">NPM</a></li>
<li><a href="https://repl.it/@ggorlen">Repl.it</a></li>
<li><a href="https://scratch.mit.edu/users/ggorlen/">Scratch</a></li>
<li><a href="https://stackexchange.com/users/8306545/ggorlen">Stack Exchange</a></li>
<li><a href="https://teamtreehouse.com/ggorlen">Treehouse</a></li>
</ul>
</article>
<article>
<h2>
<a href="https://copy.sh/brainfuck/?c=KysrKysrKysrK1s-KysrKysrKworKys-KysrKysrKysrKys-KysrCisrKz4rKysrKzw8PDwtXT4rKysKLj4rKysrKy48Lj4tLS0tLisrKwouPCsrKysrLi0tLS0tLS0uPi0tCi0tLj4rKysrLjw8KysuPi0uPC0KLS0tLS0uPi0tLS0uKysrLj4-LQotLS0uPDw8KysuPisrKy4tLXgu" target="_blank" rel="noopener noreferrer">
Contact
</a>
</h2>
<pre><code>++++++++++[>+++++++
+++>+++++++++++>+++
+++>+++++<<<<-]>+++
.>+++++.<.>----.+++
.<+++++.-------.>--
--.>++++.<<++.>-.<-
-----.>----.+++.>>-
---.<<<++.>+++.--x.</code></pre>
</article>
</main>
<!--
<footer>
<img src="https://projecteuler.net/profile/ggorlen.png">
<a href="https://stackexchange.com/users/8306545"><img src="https://stackexchange.com/users/flair/8306545.png" alt="profile for ggorlen on Stack Exchange, a network of free, community-driven Q&A sites" title="profile for ggorlen on Stack Exchange, a network of free, community-driven Q&A sites"></a>
<img src="https://www.codewars.com/users/ggorlen/badges/micro" alt="ggorlen's codewars badge">
<a href="http://vanilla-js.com/"><img src="http://vanilla-js.com/assets/button.png" title="made with vanilla JS" alt="vanilla JS badge"></a>
</footer>
-->
<script>
"use strict";
const makeTilePattern = (w, h, shrink=7, min=7) => {
const r = (x, y, w, h, d=0) => {
if (d > 2 && (w < min || h < min || Math.random() > 0.95 || d > 10)) {
return true;
}
if (Math.random() < 0.5) {
const xLine = Math.random() * (w - shrink * 2) + x + shrink;
if (r(x, y, xLine - x, h, d + 1) ||
r(xLine, y, w - (xLine - x), h, d + 1)) {
res.push({x, y, w, h, d});
}
}
else {
const yLine = Math.random() * (h - shrink * 2) + y + shrink;
if (r(x, y, w, yLine - y, d + 1) ||
r(x, yLine, w, h - (yLine - y), d + 1)) {
res.push({x, y, w, h, d});
}
}
}
const res = [];
r(0, 0, w, h);
return res;
};
const canvas = document.querySelector("#sketch");
canvas.width = 90;
canvas.height = 90;
const ctx = canvas.getContext("2d");
ctx.translate(1, 1);
ctx.lineWidth = 2;
const tiles = makeTilePattern(canvas.width - 2, canvas.height - 2)
.reverse();
for (const {x, y, w, h, d} of tiles) {
ctx.fillStyle = `hsl(
0,
0%,
${Math.random() * 70 + 20}%
)`;
ctx.fillRect(x, y, w, h);
ctx.strokeRect(x, y, w, h);
}
</script>
</body>
</html>