-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
335 lines (280 loc) · 7.9 KB
/
index.html
File metadata and controls
335 lines (280 loc) · 7.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nick Foti</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--accent: #5289AD;
--text: #243C4C;
--light-text: #698696;
--background: #FEFEFF;
--card-bg: #FFFFFF;
--border: #243C4C;
--max-width: 920px;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: var(--background);
color: var(--text);
line-height: 1.65;
}
.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 2.5rem 1.5rem 4rem;
}
header {
display: flex;
align-items: center;
gap: 2rem;
margin-bottom: 3rem;
}
.profile-img {
width: 150px;
height: 150px;
object-fit: cover;
border-radius: 50%;
<!-- border: 4px solid var(--accent); -->
}
h1 {
margin: 0;
font-size: 2.1rem;
}
.subtitle {
color: var(--light-text);
margin-top: 0.3rem;
}
.top-links {
margin-top: 1rem;
}
.button {
display: inline-block;
padding: 0.5rem 1rem;
border-radius: 6px;
border: 1px solid var(--accent);
color: var(--accent);
text-decoration: none;
font-weight: 500;
margin-right: 0.6rem;
transition: all 0.2s ease;
}
.button:hover {
background: var(--accent);
color: white;
}
nav {
margin-top: 1.2rem;
}
nav a {
text-decoration: none;
color: var(--accent);
font-weight: 600;
margin-right: 1.2rem;
}
section {
margin-bottom: 3rem;
}
section h2 {
font-size: 1.4rem;
margin-bottom: 1rem;
border-left: 4px solid var(--accent);
padding-left: 0.75rem;
}
.card {
background: var(--card-bg);
padding: 1.5rem;
border-radius: 10px;
border: 1px solid var(--border);
}
.publication {
margin-bottom: 1.8rem;
}
.pub-title { font-weight: 600; }
.pub-authors {
color: var(--light-text);
font-size: 0.95rem;
}
.pub-venue {
font-size: 0.95rem;
}
.abstract, .bibtex {
display: none;
margin-top: 0.6rem;
padding: 0.8rem;
background: #F5F3F1;
border-radius: 6px;
font-size: 0.9rem;
}
button.pub-button {
background: none;
border: none;
color: var(--accent);
cursor: pointer;
font-weight: 500;
margin-right: 0.8rem;
padding: 0;
}
pre {
white-space: pre-wrap;
font-size: 0.85rem;
}
footer {
text-align: center;
color: var(--light-text);
font-size: 0.9rem;
margin-top: 4rem;
}
@media (max-width: 750px) {
header {
flex-direction: column;
text-align: center;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<img src="foti_self_200x200.jpg" alt="Nicholas Foti" class="profile-img">
<div>
<h1>Nick Foti</h1>
<!-- <div class="subtitle">Principal Research Scientist | Apple</div> -->
<div class="top-links">
</div>
<nav>
<a href="#about">About</a>
<a href="#publications">Publications</a>
<!-- <a href="cv.pdf" target="_blank">CV</a> -->
<a href="https://scholar.google.com/citations?user=UXxpEOAAAAAJ" target="_blank">Google Scholar</a>
<!-- <a href="#software">Software</a> -->
</nav>
</div>
</header>
<section id="about">
<h2>About</h2>
<div >
<p>
I am a Principal Research Scientist at Apple.
</p>
<p>
Prior to Apple I was at the University of Washington from 2013 — 2018 where I
was first a postdoc and then a research scientist. I worked with
<a href="https://emilybfox.su.domains" target="blank">Emily Fox</a> and
<a href="http://faculty.washington.edu/akclee/" target="blank">Adrian KC Lee</a>
on developing machine learning
models of MEG data to understand dynamic brain connectivity underlying auditory
attention. During my time at UW I also worked with a number of great students
on projects related to Bayesian nonparametrics, variational inference and MCMC
methods, time series analysis, optimization algorithms, and deep latent variable models.
</p>
<p>
I received my PhD from the Computer Science Department at Dartmouth College
where I was advised by
<a href="http://www.cs.dartmouth.edu/~rockmore" target="blank">Dan Rockmore</a>.
I worked on Bayesian nonparametric models and inference algorithms for non-exchangeable data. I also worked on a number of applied projects on economics, law, and literature.
</p>
</div>
</section>
<section id="publications">
<h2>Publications</h2>
<div >
<div id="publications-list"></div>
</div>
</section>
<!--
<section id="software">
<h2>Software</h2>
<div >
<p><strong>LibraryName</strong> – Brief description.
<a href="#">GitHub</a></p>
</div>
</section>
-->
<footer>
© 2026 Nicholas Foti
</footer>
</div>
<script>
const YOUR_NAME = "Nicholas Foti"; // <-- CHANGE THIS
function toggle(id) {
const el = document.getElementById(id);
el.style.display = el.style.display === "block" ? "none" : "block";
}
function buildNamePatterns(fullName) {
const parts = fullName.trim().split(/\s+/);
const first = parts[0];
const last = parts[parts.length - 1];
// Escape regex characters safely
const escape = s => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
const firstEsc = escape(first);
const lastEsc = escape(last);
return [
new RegExp(`\\b${firstEsc}\\s+${lastEsc}\\b`, "gi"), // Firstname Lastname
new RegExp(`\\b${lastEsc}\\s*,\\s*${firstEsc}\\b`, "gi") // Lastname, Firstname
];
}
const NAME_PATTERNS = buildNamePatterns(YOUR_NAME);
function highlightName(authors) {
let result = authors;
NAME_PATTERNS.forEach(pattern => {
result = result.replace(pattern, match => {
return `<strong>${match}</strong>`;
});
});
return result;
}
function parseBibtex(text) {
const entries = text.split("@").slice(1);
return entries.map(entry => {
const type = entry.substring(0, entry.indexOf("{")).trim();
const body = entry.substring(entry.indexOf("{") + 1);
const fields = {};
body.split("\n").forEach(line => {
const match = line.match(/(\w+)\s*=\s*[{"](.+)[}"],?/);
if (match) fields[match[1].toLowerCase()] = match[2];
});
return { type, ...fields };
});
}
function renderPublications(entries) {
const container = document.getElementById("publications-list");
container.innerHTML = "";
entries.forEach((entry, i) => {
const key = "pub" + i;
const venue = entry.journal || entry.booktitle || "";
const authors = highlightName(entry.author || "");
container.innerHTML += `
<div class="publication">
<div class="pub-title">${entry.title || ""}</div>
<div class="pub-authors">${authors}</div>
<div class="pub-venue">${venue} (${entry.year || ""})</div>
<div>
${entry.abstract ? `<button class="pub-button" onclick="toggle('abs${key}')">Abstract</button>` : ""}
<button class="pub-button" onclick="toggle('bib${key}')">BibTeX</button>
</div>
${entry.abstract ? `<div id="abs${key}" class="abstract">${entry.abstract}</div>` : ""}
<div id="bib${key}" class="bibtex">
<pre>@${entry.type}{...
${Object.entries(entry).map(([k,v]) => ` ${k}={${v}},`).join("\n")}
}</pre>
</div>
</div>
`;
});
}
fetch("publications.bib")
.then(res => res.text())
.then(text => {
let entries = parseBibtex(text);
// Reverse chronological order
entries.sort((a,b) => (b.year || 0) - (a.year || 0));
renderPublications(entries);
});
</script>
</body>
</html>