-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
438 lines (314 loc) · 13.8 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Hugo 0.89.4" />
<link rel="icon" type="image/png" href="/favicon-light.png" media="(prefers-color-scheme: light)">
<link rel="icon" type="image/png" href="/favicon-dark.png" media="(prefers-color-scheme: dark)">
<title>Jim Zenn</title>
<meta property="og:title" content="Jim Zenn">
<meta property="og:type" content="website">
<meta property="description" content="">
<meta name="theme-color"
content="#01261b">
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8="
crossorigin="anonymous"></script>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-83942334-3', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<link rel="stylesheet" href="https://jimzenn.com/css/root.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/main.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/header.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/article.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/list.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/jumbotron.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/home.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/hello.css?v=3.0.1">
<link rel="stylesheet" href="https://jimzenn.com/css/responsive.css?v=3.0.1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
</head>
<body class="home" style="--backdrop-color: #01261b;">
<header class="header" id="header">
<img class="header__menu-icon" id="header__menu-icon" src="/images/UI/menu.svg">
<div class="header__title">
<a class="header__site-logo-link--home" href="/">
<img class="header__site-logo-image" src="/logo/wire-white.svg" alt="logo"/>
</a>
<a class="header__site-logo-link--toggle" id="header-menu__toggle">
<img class="header__site-logo-image" src="/logo/wire-white.svg" alt="logo"/>
</a>
</div>
<nav class="header-menu" id="header-menu">
<ul class="header-menu__list">
<li class="header-menu__item selected"><a class="header-menu__link" href="/">Home</a></li>
<li class="header-menu__item "><a class="header-menu__link" href="/blog/">Blog</a></li>
<li class="header-menu__item header-menu__item--dropdown ">
<a class="header-menu__link">Notes</a>
<ul class="header-menu__item-menu">
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/probability-theory/1.1/">Probability Theory</a></li>
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/linear-algebra/1.2/">Linear Algebra</a></li>
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/analysis/1.1/">Analysis</a></li>
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/optimization/2.1/">Optimization</a></li>
</ul>
</li>
<li class="header-menu__item "><a class="header-menu__link" href="/resume/">Resume</a></li>
</ul>
</nav>
</header>
<nav class="header-menu--collapsable" id="collapsable-menu">
<ul class="header-menu__list--collapsable">
<li class="header-menu__item selected"><a class="header-menu__link" href="/">Home</a></li>
<li class="header-menu__item "><a class="header-menu__link" href="/blog/">Blog</a></li>
<li class="header-menu__item header-menu__item--dropdown ">
<a class="header-menu__link">Notes</a>
<ul class="header-menu__item-menu">
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/probability-theory/1.1/">Probability Theory</a></li>
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/linear-algebra/1.2/">Linear Algebra</a></li>
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/analysis/1.1/">Analysis</a></li>
<li class="header-menu__item-menu-item"><a class="header-menu__item-menu-link" href="/optimization/2.1/">Optimization</a></li>
</ul>
</li>
<li class="header-menu__item "><a class="header-menu__link" href="/resume/">Resume</a></li>
</ul>
</nav>
<div class="container" id="container">
<div class="container-tag">
<span class="container-title">Home</span>
</div>
<div id="hello">
<div id="hello-kaleidoscope">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"
integrity="sha512-N4kV7GkNv7QR7RX9YF/olywyIgIwNvfEe2nZtfyj73HdjCUkAfOBDbcuJ/cTaN04JKRnw1YG1wnUyNKMsNgg3g=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
let parentDivName = "hello-kaleidoscope";
let boxWid = 10;
let tableArr = [];
let fps = 2;
let gridLn = 45;
let state = 0;
let colorFor1 = "#df1111";
let colorFor0 = "#d40c0b";
for (let r = 0; r < gridLn; r++) {
let rowArr = [];
for (let c = 0; c < gridLn; c++) {
rowArr.push(Math.round(Math.random()));
}
tableArr.push(rowArr);
}
function setup() {
frameRate(fps);
let parentDivWidth = document.getElementById(parentDivName).offsetWidth;
let parentDivHeight = document.getElementById(parentDivName).offsetHeight;
var myCanvas = createCanvas(450, 338);
myCanvas.parent(parentDivName);
startGame();
}
function mousePressed() {
let row = (mouseX - (mouseX % boxWid)) / boxWid;
let col = (mouseY - (mouseY % boxWid)) / boxWid;
if (row <= gridLn && col <= gridLn) {
tableArr[row][col] = -1 * tableArr[row][col] + 1;
draw();
}
}
function startGame() {
if (state == 0) {
frameRate(fps);
state = 1;
}
}
function checkNeighbors(row, col) {
let count = 0;
for (let i = -1; i < 2; i++) {
if (col + i >= 0 && col + i < gridLn - 1) {
if (row > 0 && tableArr[row - 1][col + i] == 1) {
count++;
}
if (row < gridLn - 1 && tableArr[row + 1][col + i] == 1) {
count++;
}
}
}
if (col - 1 >= 0 && tableArr[row][col - 1] == 1) {
count++;
}
if (col + 1 < gridLn - 1 && tableArr[row][col + 1] == 1) {
count++;
}
return count;
}
function draw() {
tableArr.forEach((rowArr, row) => {
rowArr.forEach((colVal, col) => {
fill(colVal == 1 ? colorFor1 : colorFor0);
strokeWeight(0);
rect(row * boxWid, col * boxWid, boxWid, boxWid);
});
});
if (state == 1) {
let newTable = [];
tableArr.forEach((rowArr, row) => {
let newRow = [];
rowArr.forEach((colVal, col) => {
let cellVal = colVal;
let nCount = checkNeighbors(row, col);
if (cellVal == 1 && nCount < 2) {
cellVal = 0;
} else if (cellVal == 1 && nCount > 3) {
cellVal = 0;
} else if (cellVal == 0 && nCount == 3) {
cellVal = 1;
}
newRow.push(cellVal);
});
newTable.push(newRow);
});
tableArr = newTable;
}
}
</script>
</div>
<div id="hello-text-block">
<span id="hello-line">
Hello, I'm Jim Zenn.
</span>
<span id="hello-subline">
Software engineer. I do graphic design for fun.
</span>
<p id="hello-p">
he / him. <br>
Lives in Menlo Park, California. <br>
<br>
Also known as 曾庆伟.
</p>
</div>
</div>
<main class="content" role="main">
<article class="article">
<div class="article__content">
<p><strong>1994</strong>, born in Shanghai, China.</p>
<p><strong>2013</strong>, pursued a B.S. degree in computer science at <a href="https://en.wikipedia.org/wiki/Harbin_Institute_of_Technology">Harbin Institute of Technology</a>; founded IO design group.</p>
<p><strong>2015</strong>, dropped out.</p>
<p><strong>2015</strong>, became a software engineer at <a href="https://www.teambition.com/">Teambition</a>. Loved it.</p>
<p><strong>2015</strong>, left Teambition; went to the United States.</p>
<p><strong>2015</strong>, applied to UC Berkeley while living at <a href="https://en.wikipedia.org/wiki/Berkeley_Student_Cooperative">Berkeley Student Cooperative</a>.</p>
<p><strong>2016</strong>, declined by UC Berkeley; tried again.</p>
<p><strong>2017</strong>, served as house president at Berkeley Student Cooperative.</p>
<p><strong>2017</strong>, worked as a lab assistant at UC Berkeley’s notorious data structure course, CS 61B.</p>
<p><strong>2017</strong>, declined by UC Berkeley again; went to UCLA instead pursuing a degree in math.</p>
<p><strong>2018</strong>, went to Los Angeles; haunted by how rich everybody was.</p>
<p><strong>2019</strong>, left Los Angeles.</p>
<p><strong>2019</strong>, interned at Google in Mountain View, CA.</p>
<p><strong>2019</strong>, finished my UCLA senior year while auditing at Stanford.</p>
<p><strong>2020</strong>, working full time at Google in Mountain View, CA.</p>
<p><strong>2020</strong>, started <a href="https://mavericks.fm">mavericks.fm</a>, a podcast where I talk with folks with unique experiences from tech, art and academia.</p>
<p><strong>2021</strong>, studying part-time at Stanford.</p>
<div class="now-sep">
<span>now</span>
<div></div>
</div>
<p><strong>2022</strong>, Found a startup to empower others.</p>
<p><strong>2024</strong>, Enrolled in Stanford GSB.</p>
</div>
</article>
</main>
<footer class="footer">
<div class="footer__wrapper">
<span class="copyright">Copyright 2021 Jim Zenn All rights reserved.</span>
<ul class="footer-links">
<li>
<a href="/resume">resume</a>
</li>
<li>
<a href="https://github.com/jimzenn">github</a>
</li>
<li>
<a href="mailto:[email protected]">email</a>
</li>
</ul>
</div>
</footer>
<div>
</body>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
TeX: { equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js"] },
},
"HTML-CSS": {
linebreaks: { automatic: true, width: "container" }
},
});
</script>
<script>
shifted = false;
container = document.querySelector("#container");
var toggle = document.querySelector("#header-menu__toggle");
toggle.addEventListener("click", function toggleHeader() {
var content = document.querySelector("#collapsable-menu");
var menuIcon = document.querySelector("#header__menu-icon");
var globalNav = document.querySelector("#header-menu");
var header = document.querySelector("#header");
this.classList.toggle("header-menu__toggle--active");
content.classList.toggle("header-menu--collapsable--active");
header.classList.toggle("header--active");
container.classList.toggle("container--shifted");
menuIcon.classList.toggle("header__menu-icon--shifted");
shifted = !shifted;
if (shifted) {
triggerOffset = window.pageYOffset;
};
});
window.addEventListener('scroll', function scrollCloseTrigger() {
if (shifted && Math.abs(window.pageYOffset - triggerOffset) > 10) {
toggle.click();
};
});
container.addEventListener("click", function containerClickTrigger() {
if (shifted) {
toggle.click();
}
});
var collapsableMenuLinks = document.querySelectorAll(".header-menu__list--collapsable a");
for (let i = 0; i < collapsableMenuLinks.length; i ++) {
collapsableMenuLinks[i].addEventListener("click", function(e) {
toggle.click();
return true;
});
}
</script>
<script charset="utf-8">
let proofExpandToggles = document.querySelectorAll(".proof__expand");
proofExpandToggles.forEach((node) => {
node.addEventListener('click', function(e) {
if (e.target.textContent == "[expand]") {
e.target.textContent = "[collapse]";
} else {
e.target.textContent = "[expand]";
}
proofContentNode = e.target.parentNode.parentNode.nextElementSibling;
proofContentNode.classList.toggle("hide");
});
});
</script>
</html>