| 1 | (use-modules (haunt asset) |
| 2 | (haunt builder blog) |
| 3 | (haunt builder atom) |
| 4 | (haunt builder assets) |
| 5 | (haunt builder rss) |
| 6 | (haunt html) |
| 7 | (haunt page) |
| 8 | (haunt post) |
| 9 | (haunt reader commonmark) |
| 10 | (haunt site) |
| 11 | (haunt utils) |
| 12 | (ice-9 match) |
| 13 | (srfi srfi-19)) |
| 14 | |
| 15 | (define my-scheme 'https) |
| 16 | (define my-domain "bandali.eu.org") |
| 17 | (define my-url |
| 18 | (string-append (symbol->string my-scheme) "://" my-domain)) |
| 19 | |
| 20 | (define (stylesheet name) |
| 21 | `(link (@ (rel "stylesheet") |
| 22 | (href ,(string-append "/" name ".css"))))) |
| 23 | |
| 24 | (define* (aa content #:optional (uri content) . title) |
| 25 | `(a (@ (href ,uri) (title ,(apply string-append title))) ,content)) |
| 26 | |
| 27 | (define* (base-layout site body #:key title) |
| 28 | `((doctype "html") |
| 29 | (html |
| 30 | (head |
| 31 | (meta (@ (charset "utf-8"))) |
| 32 | (title ,(if title (string-append title " — " (site-title site)) |
| 33 | "Amin Bandali’s Personal Site")) |
| 34 | ,(stylesheet "reset") |
| 35 | ,(stylesheet "style")) |
| 36 | (body |
| 37 | (main ,body) |
| 38 | (footer |
| 39 | (p |
| 40 | "Copyright 2016–2019 Amin Bandali. See " ,(aa "license.html") |
| 41 | " for license conditions. Please copy and share.")))))) |
| 42 | |
| 43 | (define my-date-format "~B ~d, ~Y") |
| 44 | |
| 45 | (define (my-post-template post) |
| 46 | `((header |
| 47 | (h1 ,(post-ref post 'title)) |
| 48 | (address "By " ,(aa (post-ref post 'author) "/") |
| 49 | " <" ,(post-ref post 'email) ">") |
| 50 | (p (@ (class "date")) |
| 51 | ,(date->string (post-date post) my-date-format))) |
| 52 | ,(post-sxml post) |
| 53 | (p (@ (class "muted inbox")) |
| 54 | "Have a question or comment? Start a discussion in my " |
| 55 | ,(aa "public inbox" "https://lists.sr.ht/~bandali/public-inbox") |
| 56 | " by sending an email to " |
| 57 | ,(aa "~bandali/public-inbox@lists.sr.ht" |
| 58 | "mailto:~bandali/public-inbox@lists.sr.ht") |
| 59 | (small |
| 60 | " [" ,(aa "mailing list etiquette" |
| 61 | "https://man.sr.ht/lists.sr.ht/etiquette.md") "]") |
| 62 | "."))) |
| 63 | |
| 64 | (define (my-collection-template site title posts prefix) |
| 65 | (define (post-uri post) |
| 66 | (string-append (or prefix "") "/" |
| 67 | (site-post-slug site post) ".html")) |
| 68 | |
| 69 | `((h2 ,title) |
| 70 | (table |
| 71 | (@ (class "post-list")) |
| 72 | (tbody |
| 73 | ,@(map (lambda (post) |
| 74 | `(tr |
| 75 | (td ,(aa (post-ref post 'title) (post-uri post))) |
| 76 | (td (@ (style "font-size: 0.875em;")) |
| 77 | ,(date->string (post-date post) my-date-format)))) |
| 78 | posts))))) |
| 79 | |
| 80 | (define bandali-theme |
| 81 | (theme #:name "bandali" |
| 82 | #:layout |
| 83 | (lambda (site title body) |
| 84 | (base-layout site body |
| 85 | #:title title)) |
| 86 | #:post-template my-post-template |
| 87 | #:collection-template my-collection-template)) |
| 88 | |
| 89 | (define (static-page title file-name body) |
| 90 | (lambda (site posts) |
| 91 | (make-page file-name |
| 92 | (with-layout bandali-theme site title body) |
| 93 | sxml->html))) |
| 94 | |
| 95 | (define (index-material site posts) |
| 96 | `(div |
| 97 | (h1 (@ (style "font-size: 0;")) |
| 98 | "Amin Bandali") |
| 99 | (p (@ (style "margin-top: 0;")) |
| 100 | "Hi, I’m " |
| 101 | ,(aa "Amin Bandali" "images/bandali-with-rms.jpg" |
| 102 | "photo of bandali with rms wearing a " |
| 103 | "“pay cash don’t be tracked” pin") |
| 104 | ". I’m a graduate student at " |
| 105 | ,(aa "WatForm" "https://watform.uwaterloo.ca") |
| 106 | " at University of Waterloo, supervised by " |
| 107 | ,(aa "Dr. Nancy Day" "https://cs.uwaterloo.ca/~nday/") |
| 108 | ". The main goal of my research is improving " |
| 109 | (strong "software and systems reliability") |
| 110 | " through application of " (em "formal methods") ".") |
| 111 | (p "My research at WatForm focuses on formal logic, model " |
| 112 | "checking, and verification. I’m also interested in " |
| 113 | "programming languages, theorem provers, and their " |
| 114 | "type systems. You may wish to view my academic " |
| 115 | ,(aa "curriculum vitae" "bandali-cv.html") ".") |
| 116 | (p (@ (class "notice")) |
| 117 | (strong "SE 212 students: ") |
| 118 | "see " ,(aa "here" "se212-f19/") " for slides and other " |
| 119 | "material from the tutorials.") |
| 120 | (p "On the side, I dabble in " |
| 121 | ,(aa "Lean" "https://leanprover.github.io") " and enjoy " |
| 122 | ,(aa "hacking" "https://stallman.org/articles/on-hacking.html") |
| 123 | " on " |
| 124 | ,(aa "Elisp" |
| 125 | "https://www.gnu.org/software/emacs/manual/elisp.html") |
| 126 | ". I’m a " ,(aa "Free Software" |
| 127 | "https://www.gnu.org/philosophy/free-sw.html") |
| 128 | " activist, a GNU " |
| 129 | ,(aa "maintainer" "https://www.gnu.org/people/#bandali") |
| 130 | " and " |
| 131 | ,(aa "webmaster" |
| 132 | "https://www.gnu.org/people/webmeisters.html#bandali") |
| 133 | ", and an " ,(aa "associate member" |
| 134 | "https://www.fsf.org/associate/") |
| 135 | " of the " ,(aa "FSF" "https:///www.fsf.org" |
| 136 | "Free Software Foundation") |
| 137 | ". I co-host the " ,(aa "Emacs.el" "https://emacsel.com") |
| 138 | " podcast with " ,(aa "Daniel Gopar" "https://www.pygopar.com") |
| 139 | ", and organize " ,(aa "EmacsConf" "https://emacsconf.org") |
| 140 | " with help from many wonderful people. I am also a member of" |
| 141 | " the Systems Committee for the " |
| 142 | ,(aa "CSC" "https://csclub.uwaterloo.ca" |
| 143 | "Computer Science Club of the University of Waterloo") |
| 144 | ".") |
| 145 | (p "See my " ,(aa "contact" "contact.html") " page for how to " |
| 146 | "best reach me.") |
| 147 | (h2 (@ (id "papers")) "Papers") |
| 148 | (dl |
| 149 | (dt "A Comparison of the Declarative Modelling Languages B, DASH, |
| 150 | and TLA" (sup "+") |
| 151 | (small |
| 152 | " [ " ,(aa "pdf" "papers/modre2018-declarative.pdf") " | " |
| 153 | ,(aa "bib" "papers/modre2018-declarative.bib") " ]")) |
| 154 | (dd "Ali Abbassi, " |
| 155 | ,(aa "Amin Bandali" my-url) ", " |
| 156 | ,(aa "Nancy A. Day" "https://cs.uwaterloo.ca/~nday/") ", " |
| 157 | "Jose Serna" |
| 158 | (br) |
| 159 | (em "2018 IEEE 8th International Model-Driven Requirements" |
| 160 | " Engineering Workshop (MoDRE)") |
| 161 | (br) |
| 162 | "Copyright © 2018 IEEE. All Rights Reserved. Sadly.")) |
| 163 | (h2 (@ (id "talks")) "Talks") |
| 164 | (dl |
| 165 | (dt |
| 166 | "The Magic of Specifications and Type Systems" |
| 167 | (small |
| 168 | " [ " |
| 169 | ,(aa "slides" "talks/cucsc-2017-slides.pdf" |
| 170 | "presented at the Canadian Undergraduate Computer Science" |
| 171 | " Conference 2017,\n" |
| 172 | "University of Toronto, Canada, June 15–17, 2017") |
| 173 | " | " |
| 174 | ,(aa "poster" "talks/eecs4080-poster.pdf" |
| 175 | "presented at the Lassonde Undergraduate Summer Student" |
| 176 | " Research Conference,\n" |
| 177 | "York University, Toronto, Canada, August 15, 2017") |
| 178 | " ]")) |
| 179 | (dd ,(aa "Amin Bandali" my-url) ", " |
| 180 | ,(aa "Simon Hudon" "https://github.com/cipher1024") ", " |
| 181 | ,(aa "Jonathan S. Ostroff" |
| 182 | "http://www.cse.yorku.ca/~jonathan/"))) |
| 183 | (h2 (@ (id "projects")) "Projects") |
| 184 | (p "Below are a number of free software projects I have worked " |
| 185 | "on:") |
| 186 | (dl |
| 187 | (dt ,(aa "george-mode" "https://git.sr.ht/~bandali/george-mode")) |
| 188 | (dd "Emacs major mode for editing George files") |
| 189 | (dt ,(aa "alloy-catalyst" |
| 190 | "https://git.uwaterloo.ca/bandali/alloy-catalyst")) |
| 191 | (dd "Framework for performance analysis of Alloy models") |
| 192 | (dt ,(aa "unitb-web" "https://github.com/unitb/unitb-web")) |
| 193 | (dd "Web interface for Unit-B") |
| 194 | (dt ,(aa "tex2png-hs" "https://github.com/unitb/tex2png-hs")) |
| 195 | (dd "Library and CLI for converting TeX and LaTeX to PNG " |
| 196 | "images")) |
| 197 | (h2 (@ (id "notes")) "Notes") |
| 198 | (p "Here are notes about a variety of topics and issues I care " |
| 199 | "about. They’re also available via " ,(aa "Atom" "feed.atom") |
| 200 | " and " ,(aa "RSS" "feed.rss") " feeds.") |
| 201 | (table |
| 202 | (@ (class "post-list")) |
| 203 | (tbody |
| 204 | ,@(map |
| 205 | (lambda (post) |
| 206 | (define (post-uri post) |
| 207 | (string-append "/" |
| 208 | (site-post-slug site post) ".html")) |
| 209 | `(tr |
| 210 | (td ,(aa (post-ref post 'title) (post-uri post))) |
| 211 | (td (small |
| 212 | ,(date->string (post-date post) my-date-format))))) |
| 213 | (take-up-to 10 (posts/reverse-chronological posts))))))) |
| 214 | |
| 215 | (define (index-page site posts) |
| 216 | (make-page |
| 217 | "index.html" |
| 218 | (base-layout site (index-material site posts)) |
| 219 | sxml->html)) |
| 220 | |
| 221 | (define license-page |
| 222 | (static-page |
| 223 | "Licensing Information" |
| 224 | "license.html" |
| 225 | `((h1 "License information for " ,my-domain) |
| 226 | (p "I strongly believe in " |
| 227 | ,(aa "free culture" |
| 228 | "https://questioncopyright.org/what_is_free_culture") |
| 229 | " and that all creative works everywhere should be " |
| 230 | ,(aa "free" "https://freedomdefined.org/Definition") ".") |
| 231 | (p "Unless otherwise noted material on this site is licensed " |
| 232 | "under the GNU General Public License as published by the " |
| 233 | "Free Software Foundation, either version 3 of the License, " |
| 234 | "or (at your option) any later version. A copy of the " |
| 235 | "license is included at " ,(aa "gpl-3.0.html") ".") |
| 236 | (p "Some resources on free software and licenses:") |
| 237 | (ul |
| 238 | (li ,(aa "What is free software?" |
| 239 | "https://www.gnu.org/philosophy/free-sw.html")) |
| 240 | (li ,(aa "Various Licenses and Comments about Them" |
| 241 | "https://www.gnu.org/licenses/license-list.html")) |
| 242 | (li ,(aa "Proprietary Software Is Often Malware" |
| 243 | "https://www.gnu.org/proprietary/proprietary.html")))))) |
| 244 | |
| 245 | (define contact-page |
| 246 | (static-page |
| 247 | "Contact Information" |
| 248 | "contact.html" |
| 249 | `((h1 "Contact information") |
| 250 | (p "Email is by far my preferred method of communication. I may" |
| 251 | " be contacted at any of the following addresses (choose the" |
| 252 | " most closely related):") |
| 253 | (ul |
| 254 | (li "bandali@gnu.org") |
| 255 | (li "bandali@uwaterloo.ca") |
| 256 | (li "bandali@csclub.uwaterloo.ca")) |
| 257 | (p "If you want to send me GPG-encrypted mail, you can use my " |
| 258 | ,(aa "public key" "bandali-pubkey.txt") " with the" |
| 259 | " fingerprint " |
| 260 | (code "BE62 7373 8E61 6D6D 1B3A 08E8 A21A 0202 4881 6103") |
| 261 | ".") |
| 262 | (table |
| 263 | (tbody |
| 264 | (tr |
| 265 | (td "IRC") |
| 266 | (td "bandali on " ,(aa "freenode" "https://freenode.net") ", " |
| 267 | ,(aa "moznet" "https://wiki.mozilla.org/IRC") ", and " |
| 268 | ,(aa "oftc" "https://www.oftc.net"))) |
| 269 | (tr |
| 270 | (td "XMPP") |
| 271 | (td ,(aa "bandali@member.fsf.org" |
| 272 | "xmpp:bandali@member.fsf.org"))) |
| 273 | (tr |
| 274 | (td "Matrix") |
| 275 | (td ,(aa "@bandali:matrix.org" |
| 276 | "https://matrix.to/#/@bandali:matrix.org"))) |
| 277 | (tr |
| 278 | (td "Fediverse") |
| 279 | (td ,(aa "@bandali@pleroma.site" |
| 280 | "https://pleroma.site/bandali"))))) |
| 281 | (h2 "Elsewhere") |
| 282 | (p "You may also find me at a few other places online. Stricken" |
| 283 | " through accounts are those I don’t use anymore, unless" |
| 284 | " absolutely necessary.") |
| 285 | (ul |
| 286 | (li ,(aa "bandali" "https://libreplanet.org/wiki/User:Bandali") |
| 287 | " on LibrePlanet") |
| 288 | (li ,(aa "bandali" "https://emacsconf.org/bandali") |
| 289 | " on EmacsConf") |
| 290 | (li ,(aa "bandali" "https://savannah.gnu.org/users/bandali") |
| 291 | " on Savannah") |
| 292 | (li ,(aa "bandali" "https://git.sr.ht/~bandali") |
| 293 | " on Sourcehut") |
| 294 | (li ,(aa "bandali" "https://lobste.rs/u/bandali") |
| 295 | " on Lobsters") |
| 296 | (li ,(aa "bandali" "https://hackage.haskell.org/user/bandali") |
| 297 | " on Hackage") |
| 298 | (li ,(aa "bandali" "https://gitlab.com/bandali") |
| 299 | " on GitLab") |
| 300 | (li ,(aa "bandali" |
| 301 | "https://news.ycombinator.com/user?id=bandali") |
| 302 | " on HN") |
| 303 | (li ,(aa "bandali" "https://www.reddit.com/u/bandali") |
| 304 | " on reddit") |
| 305 | (li (del ,(aa "bandali0" "https://github.com/bandali0") |
| 306 | " on GitHub")) |
| 307 | (li (del ,(aa "bandali0" "https://twitter.com/bandali0") |
| 308 | " on Twitter")))))) |
| 309 | |
| 310 | (define cv-page |
| 311 | (static-page |
| 312 | "Curriculum vitae" |
| 313 | "bandali-cv.html" |
| 314 | `((h1 "Curriculum vitae (" ,(aa "PDF" "bandali-cv.pdf") ")") |
| 315 | (table |
| 316 | (tbody |
| 317 | (tr |
| 318 | (td "Site") |
| 319 | (td ,(aa my-domain my-url))) |
| 320 | (tr |
| 321 | (td "Email") |
| 322 | (td "bandali@uwaterloo.ca")) |
| 323 | (tr |
| 324 | (td "Phone") |
| 325 | (td "available upon request via email")))) |
| 326 | (h2 "Education") |
| 327 | (h3 "Master of Mathematics (Computer Science) | 2018–present") |
| 328 | (p "University of Waterloo, Canada") |
| 329 | (p "Supervised by Dr. Nancy Day | GPA: 3.7/4.0 | " |
| 330 | "Expected completion: April 2020") |
| 331 | (p "Research focusing on formal logic, model checking, and " |
| 332 | "verification.") |
| 333 | (h3 "B.Sc. Honours Computer Science | 2013–2017") |
| 334 | (p "York University, Toronto, Canada") |
| 335 | (p "GPA: 7.84/9.0") |
| 336 | (p "Relevant courses: System Specification & Refinement, " |
| 337 | "Software Requirements Eng., Software Design, " |
| 338 | "Operating Systems, Computational Complexity, " |
| 339 | "Design & Analysis of Algorithms.") |
| 340 | (p "Finished first year (2013-14) at " (em "Carleton University") |
| 341 | " with a GPA of 11.0/12.0, then transferred to " |
| 342 | (em "York University") " in Fall 2014.") |
| 343 | (h2 "Publications") |
| 344 | (p "Listed on my " ,(aa "homepage" "/#papers")) |
| 345 | (h2 "Work & Research Experience") |
| 346 | (h3 "Cheriton School of Computer Science, University of Waterloo" |
| 347 | " | 2018–present") |
| 348 | (p "Instructional Apprentice, Teaching Assistant, " |
| 349 | "Research Assistant") |
| 350 | (ul |
| 351 | (li (abbr (@ (title "Logic and Computation")) "SE 212") ": " |
| 352 | (abbr (@ (title "Instructional Apprentice")) "IA") " in " |
| 353 | "Fall 2019, " |
| 354 | (abbr (@ (title "Teaching Assistant")) "TA") " in " |
| 355 | "Fall 2018") |
| 356 | (li (abbr (@ (title ,(string-append |
| 357 | "Software Requirements Specification and " |
| 358 | "Analysis"))) "SE 463") |
| 359 | ": TA in Summer 2019 and 2018") |
| 360 | (li (abbr (@ (title ,(string-append |
| 361 | "Elementary Algorithm Design and " |
| 362 | "Data Abstraction"))) "CS 136") |
| 363 | ": TA in Winter 2018")) |
| 364 | (h3 (abbr (@ (title |
| 365 | ,(string-append |
| 366 | "Electrical Engineering & Computer Science"))) |
| 367 | "EECS") |
| 368 | " Department, York University | Fall 2017") |
| 369 | (p "Teaching Assistant") |
| 370 | (p (abbr (@ (title "Net-Centric Introduction to Computing")) |
| 371 | "EECS 1012") |
| 372 | ": TA in Fall 2017")))) |
| 373 | |
| 374 | (define se212-f19-page |
| 375 | (static-page |
| 376 | "SE 212 Material" |
| 377 | "se212-f19/index.html" |
| 378 | `((h1 "Material from SE 212 tutorials") |
| 379 | (p "This page contains slides and other material from " |
| 380 | ,(aa "SE 212 tutorials" |
| 381 | "https://www.student.cs.uwaterloo.ca/~se212/times.html") |
| 382 | " held by me in Fall 2019. " |
| 383 | (del "If you have any questions, concerns, or suggestions " |
| 384 | "about the presented material, please email me at " |
| 385 | "bandali@uwaterloo.ca or come see me during my " |
| 386 | ,(aa "Friday office hours" |
| 387 | "https://www.student.cs.uwaterloo.ca/~se212/personnel.html") |
| 388 | ".")) |
| 389 | (ul |
| 390 | (li "Tutorial 1:" |
| 391 | (ul |
| 392 | (li ,(aa "TUT 101 slides" "se212-t01-101.pdf")) |
| 393 | (li ,(aa "TUT 102 slides" "se212-t01-102.pdf")) |
| 394 | (li ,(aa "Org beamer sources" "se212-t01.org")))) |
| 395 | (li "Tutorial 2:" |
| 396 | (ul |
| 397 | (li ,(aa "Homework 2 q04d solution" |
| 398 | "se212-h02q04d-soln.grg")))) |
| 399 | (li "Tutorial 3: —") |
| 400 | (li "Tutorial 4: —") |
| 401 | (li "Tutorial 5:" |
| 402 | (ul |
| 403 | (li ,(aa "Slides" "se212-t05.pdf")) |
| 404 | (li ,(aa "Org beamer sources" "se212-t05.org")))) |
| 405 | (li "Tutorial 6: —") |
| 406 | (li "Tutorial 7: worked through questions 1–5 of Homework 7") |
| 407 | (li "Tutorial 8: —") |
| 408 | (li "Tutorial 9: —") |
| 409 | (li "Tutorial 10: worked through questions 1–10 of " |
| 410 | "Homework 10"))))) |
| 411 | |
| 412 | (site #:title "Amin Bandali" |
| 413 | ;; TODO: uncomment after new haunt release |
| 414 | ;; #:scheme my-scheme |
| 415 | #:domain my-domain |
| 416 | #:default-metadata |
| 417 | '((author . "Amin Bandali") |
| 418 | (email . "bandali@gnu.org") |
| 419 | (domain . my-domain)) |
| 420 | #:readers (list commonmark-reader) |
| 421 | #:builders (list (blog #:theme bandali-theme |
| 422 | #:collections |
| 423 | `(("Notes" "notes.html" |
| 424 | ,posts/reverse-chronological))) |
| 425 | index-page |
| 426 | (atom-feed |
| 427 | #:file-name "feed.atom") |
| 428 | (atom-feeds-by-tag |
| 429 | #:prefix "tags") |
| 430 | (rss-feed |
| 431 | #:file-name "feed.rss") |
| 432 | contact-page |
| 433 | cv-page |
| 434 | license-page |
| 435 | se212-f19-page |
| 436 | (static-directory "static" ""))) |