1 (use-modules (haunt asset)
9 (haunt reader commonmark)
15 (define my-scheme 'https)
16 (define my-domain "bandali.eu.org")
18 (string-append (symbol->string my-scheme) "://" my-domain))
20 (define my-date-format "~B ~e, ~Y")
22 (define (stylesheet name)
23 `(link (@ (rel "stylesheet")
24 (href ,(string-append "/" name ".css")))))
26 (define* (aa content #:optional (uri content) . title)
27 `(a (@ (href ,uri) (title ,(apply string-append title))) ,content))
29 (define* (base-layout site body #:key title copy license-page?)
33 (meta (@ (charset "utf-8")))
34 (title ,(if title (string-append title " — " (site-title site))
35 "Amin Bandali’s Personal Site"))
37 ,(stylesheet "style"))
42 ,(if copy copy "2016–2019")
44 ,(if license-page? "the above"
45 (aa "license.html" "/license.html"))
46 " for license conditions. Please copy and share."))))))
49 (register-metadata-parser! 'updated string->date*)
51 (define (my-post-template post)
53 (h1 ,(post-ref post 'title))
54 (address "By " ,(aa (post-ref post 'author) "/")
55 " <" ,(post-ref post 'email) ">")
58 ,(date->string (post-date post) my-date-format))
59 ,(if (post-ref post 'updated)
60 `(p (@ (class "updated"))
62 ,(date->string (post-ref post 'updated)
65 (p (@ (class "muted inbox"))
66 "Have a question or comment? Start a discussion in my "
67 ,(aa "public inbox" "https://lists.sr.ht/~bandali/public-inbox")
68 " by sending an email to "
69 ,(aa "~bandali/public-inbox@lists.sr.ht"
70 "mailto:~bandali/public-inbox@lists.sr.ht")
72 " [" ,(aa "mailing list etiquette"
73 "https://man.sr.ht/lists.sr.ht/etiquette.md") "]")
76 (define (my-collection-template site title posts prefix)
77 (define (post-uri post)
78 (string-append (or prefix "") "/"
79 (site-post-slug site post) ".html"))
83 (@ (class "post-list"))
87 (td ,(aa (post-ref post 'title) (post-uri post)))
88 (td (@ (style "font-size: 0.875em;"))
89 ,(date->string (post-date post)
94 (theme #:name "bandali"
96 (lambda (site title body)
97 (base-layout site body
99 #:post-template my-post-template
100 #:collection-template my-collection-template))
102 (define* (static-page title file-name body copy #:key license?)
105 (base-layout site body #:title title #:copy copy
106 #:license-page? license?)
109 (define (index-material site posts)
110 `((h1 (@ (style "font-size: 0;"))
112 (p (@ (style "margin-top: 0;"))
114 ,(aa "Amin Bandali" "images/bandali-with-rms.jpg"
115 "photo of bandali with rms wearing a "
116 "“pay cash don’t be tracked” pin")
117 ". I’m a graduate student at "
118 ,(aa "WatForm" "https://watform.uwaterloo.ca")
119 " at University of Waterloo, supervised by "
120 ,(aa "Dr. Nancy Day" "https://cs.uwaterloo.ca/~nday/")
121 ". The main goal of my research is improving "
122 (strong "software and systems reliability")
123 " through application of " (em "formal methods") ".")
124 (p "My research at WatForm focuses on formal logic, model "
125 "checking, and verification. I’m also interested in "
126 "programming languages, theorem provers, and their "
127 "type systems. You may wish to view my academic "
128 ,(aa "curriculum vitae" "bandali-cv.html") ".")
129 (p (@ (class "notice"))
130 (strong "SE 212 students: ")
131 "see " ,(aa "here" "se212-f19/") " for slides and other "
132 "material from the tutorials.")
133 (p "On the side, I dabble in "
134 ,(aa "Lean" "https://leanprover.github.io") " and enjoy "
135 ,(aa "hacking" "https://stallman.org/articles/on-hacking.html")
138 "https://www.gnu.org/software/emacs/manual/elisp.html")
139 ". I’m a " ,(aa "Free Software"
140 "https://www.gnu.org/philosophy/free-sw.html")
142 ,(aa "maintainer" "https://www.gnu.org/people/#bandali")
145 "https://www.gnu.org/people/webmeisters.html#bandali")
146 ", and an " ,(aa "associate member"
147 "https://www.fsf.org/associate/")
148 " of the " ,(aa "FSF" "https:///www.fsf.org"
149 "Free Software Foundation")
150 ". I co-host the " ,(aa "Emacs.el" "https://emacsel.com")
151 " podcast with " ,(aa "Daniel Gopar" "https://www.pygopar.com")
152 ", and organize " ,(aa "EmacsConf" "https://emacsconf.org")
153 " with help from many wonderful people. I am also a member of"
154 " the Systems Committee for the "
155 ,(aa "CSC" "https://csclub.uwaterloo.ca"
156 "Computer Science Club of the University of Waterloo")
158 (p "See my " ,(aa "contact" "contact.html") " page for how to "
160 (h2 (@ (id "papers")) "Papers")
162 (dt "A Comparison of the Declarative Modelling Languages B, DASH,
165 " [ " ,(aa "pdf" "papers/modre2018-declarative.pdf") " | "
166 ,(aa "bib" "papers/modre2018-declarative.bib") " ]"))
168 ,(aa "Amin Bandali" my-url) ", "
169 ,(aa "Nancy A. Day" "https://cs.uwaterloo.ca/~nday/") ", "
172 (em "2018 IEEE 8th International Model-Driven Requirements"
173 " Engineering Workshop (MoDRE)")
175 "Copyright © 2018 IEEE. All Rights Reserved. Sadly."))
176 (h2 (@ (id "talks")) "Talks")
179 "The Magic of Specifications and Type Systems"
182 ,(aa "slides" "talks/cucsc-2017-slides.pdf"
183 "presented at the Canadian Undergraduate Computer Science"
184 " Conference 2017,\n"
185 "University of Toronto, Canada, June 15–17, 2017")
187 ,(aa "poster" "talks/eecs4080-poster.pdf"
188 "presented at the Lassonde Undergraduate Summer Student"
189 " Research Conference,\n"
190 "York University, Toronto, Canada, August 15, 2017")
192 (dd ,(aa "Amin Bandali" my-url) ", "
193 ,(aa "Simon Hudon" "https://github.com/cipher1024") ", "
194 ,(aa "Jonathan S. Ostroff"
195 "http://www.cse.yorku.ca/~jonathan/")))
196 (h2 (@ (id "projects")) "Projects")
197 (p "Below are a number of free software projects I have worked "
200 (dt ,(aa "george-mode" "https://git.sr.ht/~bandali/george-mode"))
201 (dd "Emacs major mode for editing George files")
202 (dt ,(aa "alloy-catalyst"
203 "https://git.uwaterloo.ca/bandali/alloy-catalyst"))
204 (dd "Framework for performance analysis of Alloy models")
205 (dt ,(aa "unitb-web" "https://github.com/unitb/unitb-web"))
206 (dd "Web interface for Unit-B")
207 (dt ,(aa "tex2png-hs" "https://github.com/unitb/tex2png-hs"))
208 (dd "Library and CLI for converting TeX and LaTeX to PNG "
210 (h2 (@ (id "notes")) "Notes")
211 (p "Here are notes about a variety of topics and issues I care "
212 "about. They’re also available via " ,(aa "Atom" "feed.atom")
213 " and " ,(aa "RSS" "feed.rss") " feeds.")
215 (@ (class "post-list"))
219 (define (post-uri post)
221 (site-post-slug site post) ".html"))
223 (td ,(aa (post-ref post 'title) (post-uri post)))
225 ,(date->string (post-date post) my-date-format)))))
226 (take-up-to 10 (posts/reverse-chronological posts)))))))
228 (define (index-page site posts)
231 (base-layout site (index-material site posts))
236 "Licensing Information"
238 `((h1 "License information for "
239 ,(aa my-domain my-url))
240 (p "I strongly believe in "
242 "https://questioncopyright.org/what_is_free_culture")
243 " and that all creative works everywhere should be "
244 ,(aa "free" "https://freedomdefined.org/Definition") ".")
245 (p "Unless otherwise noted material on this site is licensed "
246 "under the GNU General Public License as published by the "
247 "Free Software Foundation, either version 3 of the License, "
248 "or (at your option) any later version. A copy of the "
249 "license is included at " ,(aa "gpl-3.0.html") ".")
250 (p "Some resources on free software and licenses:")
252 (li ,(aa "What is free software?"
253 "https://www.gnu.org/philosophy/free-sw.html"))
254 (li ,(aa "Various Licenses and Comments about Them"
255 "https://www.gnu.org/licenses/license-list.html"))
256 (li ,(aa "Proprietary Software Is Often Malware"
257 "https://www.gnu.org/proprietary/proprietary.html"))))
263 "Contact Information"
265 `((h1 "Contact information")
266 (p "Email is by far my preferred method of communication. I may"
267 " be contacted at any of the following addresses (choose the"
268 " most closely related):")
270 (li "bandali@gnu.org")
271 (li "bandali@uwaterloo.ca")
272 (li "bandali@csclub.uwaterloo.ca"))
273 (p "If you want to send me GPG-encrypted mail, you can use my "
274 ,(aa "public key" "bandali-pubkey.txt") " with the"
276 (code "BE62 7373 8E61 6D6D 1B3A 08E8 A21A 0202 4881 6103")
282 (td "bandali on " ,(aa "freenode" "https://freenode.net") ", "
283 ,(aa "moznet" "https://wiki.mozilla.org/IRC") ", and "
284 ,(aa "oftc" "https://www.oftc.net")))
287 (td ,(aa "bandali@member.fsf.org"
288 "xmpp:bandali@member.fsf.org")))
291 (td ,(aa "@bandali:matrix.org"
292 "https://matrix.to/#/@bandali:matrix.org")))
295 (td ,(aa "@bandali@pleroma.site"
296 "https://pleroma.site/bandali")))))
298 (p "You may also find me at a few other places online. Stricken"
299 " through accounts are those I don’t use anymore, unless"
300 " absolutely necessary.")
302 (li ,(aa "bandali" "https://libreplanet.org/wiki/User:Bandali")
304 (li ,(aa "bandali" "https://emacsconf.org/bandali")
306 (li ,(aa "bandali" "https://savannah.gnu.org/users/bandali")
308 (li ,(aa "bandali" "https://git.sr.ht/~bandali")
310 (li ,(aa "bandali" "https://lobste.rs/u/bandali")
312 (li ,(aa "bandali" "https://hackage.haskell.org/user/bandali")
314 (li ,(aa "bandali" "https://gitlab.com/bandali")
317 "https://news.ycombinator.com/user?id=bandali")
319 (li ,(aa "bandali" "https://www.reddit.com/u/bandali")
321 (li (del ,(aa "bandali0" "https://github.com/bandali0")
323 (li (del ,(aa "bandali0" "https://twitter.com/bandali0")
331 `((h1 "Curriculum vitae (" ,(aa "PDF" "bandali-cv.pdf") ")")
336 (td ,(aa my-domain my-url)))
339 (td "bandali@uwaterloo.ca"))
342 (td "available upon request via email"))))
344 (h3 "Master of Mathematics (Computer Science) | 2018–present")
345 (p "University of Waterloo, Canada")
346 (p "Supervised by Dr. Nancy Day | GPA: 3.7/4.0 | "
347 "Expected completion: April 2020")
348 (p "Research focusing on formal logic, model checking, and "
350 (h3 "B.Sc. Honours Computer Science | 2013–2017")
351 (p "York University, Toronto, Canada")
353 (p "Relevant courses: System Specification & Refinement, "
354 "Software Requirements Eng., Software Design, "
355 "Operating Systems, Computational Complexity, "
356 "Design & Analysis of Algorithms.")
357 (p "Finished first year (2013-14) at " (em "Carleton University")
358 " with a GPA of 11.0/12.0, then transferred to "
359 (em "York University") " in Fall 2014.")
361 (p "Listed on my " ,(aa "homepage" "/#papers"))
362 (h2 "Work & Research Experience")
363 (h3 "Cheriton School of Computer Science, University of Waterloo"
365 (p "Instructional Apprentice, Teaching Assistant, "
366 "Research Assistant")
368 (li (abbr (@ (title "Logic and Computation")) "SE 212") ": "
369 (abbr (@ (title "Instructional Apprentice")) "IA") " in "
371 (abbr (@ (title "Teaching Assistant")) "TA") " in "
373 (li (abbr (@ (title ,(string-append
374 "Software Requirements Specification and "
375 "Analysis"))) "SE 463")
376 ": TA in Summer 2019 and 2018")
377 (li (abbr (@ (title ,(string-append
378 "Elementary Algorithm Design and "
379 "Data Abstraction"))) "CS 136")
380 ": TA in Winter 2018"))
383 "Electrical Engineering & Computer Science")))
385 " Department, York University | Fall 2017")
386 (p "Teaching Assistant")
387 (p (abbr (@ (title "Net-Centric Introduction to Computing"))
389 ": TA in Fall 2017"))
392 (define se212-f19-page
395 "se212-f19/index.html"
396 `((h1 "Material from SE 212 tutorials")
397 (p "This page contains slides and other material from "
398 ,(aa "SE 212 tutorials"
399 "https://www.student.cs.uwaterloo.ca/~se212/times.html")
400 " held by me in Fall 2019. "
401 (del "If you have any questions, concerns, or suggestions "
402 "about the presented material, please email me at "
403 "bandali@uwaterloo.ca or come see me during my "
404 ,(aa "Friday office hours"
405 "https://www.student.cs.uwaterloo.ca/~se212/personnel.html")
410 (li ,(aa "TUT 101 slides" "se212-t01-101.pdf"))
411 (li ,(aa "TUT 102 slides" "se212-t01-102.pdf"))
412 (li ,(aa "Org beamer sources" "se212-t01.org"))))
415 (li ,(aa "Homework 2 q04d solution"
416 "se212-h02q04d-soln.grg"))))
421 (li ,(aa "Slides" "se212-t05.pdf"))
422 (li ,(aa "Org beamer sources" "se212-t05.org"))))
424 (li "Tutorial 7: worked through questions 1–5 of Homework 7")
427 (li "Tutorial 10: worked through questions 1–10 of "
432 (resolve-module '(haunt builder blog))
434 (lambda (theme site post)
435 (let ((title (post-ref post 'title))
436 (body ((theme-post-template theme) post))
437 (copy (post-ref post 'copyright)))
438 (base-layout site body #:title title #:copy copy))))
440 (site #:title "Amin Bandali"
441 ;; TODO: uncomment after new haunt release
442 ;; #:scheme my-scheme
445 '((author . "Amin Bandali")
446 (email . "bandali@gnu.org")
447 (domain . my-domain))
448 #:readers (list commonmark-reader)
449 #:builders (list (blog #:theme bandali-theme
451 `(("Notes" "notes.html"
452 ,posts/reverse-chronological)))
455 #:file-name "feed.atom")
459 #:file-name "feed.rss")
464 (static-directory "static" "")))