about summary refs log tree commit diff
path: root/users/tazjin/presentations
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-09-02T14·22+0300
committerclbot <clbot@tvl.fyi>2023-09-02T18·49+0000
commiteda67bfdbe42b0d3d714ac290dabe0dfbfeaa917 (patch)
treeb027c97699dd1aac2b0ce7a28e83baaeb7fbc42e /users/tazjin/presentations
parent685b2eec18f33130ccaf48f2db83a4facd184eb5 (diff)
feat(tazjin/tvix-eval-2023): add link collection blog post & QR code r/6544
Makes it possible for people in the audience to get to the link
collection reasonably quickly.

Later on that post can also have the talk itself added. For now it is
unlisted.

Change-Id: If9ae1d88d3c6f22bbd70b2b3cbea0b0d42895a93
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9208
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: Mark Shevchenko <markshevchenko@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/presentations')
-rw-r--r--users/tazjin/presentations/tvix-eval-2023/default.nix12
-rw-r--r--users/tazjin/presentations/tvix-eval-2023/presentation.tex13
2 files changed, 14 insertions, 11 deletions
diff --git a/users/tazjin/presentations/tvix-eval-2023/default.nix b/users/tazjin/presentations/tvix-eval-2023/default.nix
index 6b30768950..ce831556de 100644
--- a/users/tazjin/presentations/tvix-eval-2023/default.nix
+++ b/users/tazjin/presentations/tvix-eval-2023/default.nix
@@ -1,7 +1,7 @@
 { depot, pkgs, ... }:
 
 let
-  inherit (pkgs) fontconfig texlive stdenv imagemagick;
+  inherit (pkgs) fontconfig texlive stdenv imagemagick runCommand qrencode;
 
   tex = texlive.combine {
     inherit (texlive)
@@ -22,6 +22,15 @@ let
       translator;
   };
 
+  linksQrCode = runCommand "qrcode.png" { } ''
+    ${qrencode}/bin/qrencode -o code.png -s 8 \
+      --background=fafafa \
+      --foreground=000000 \
+      'https://tazj.in/blog/tvix-eval-talk-2023'
+
+    # latex has trouble with the PDF produced by qrencode
+    ${imagemagick}/bin/convert code.png $out
+  '';
 in
 stdenv.mkDerivation {
   name = "progmsk-tvix-eval";
@@ -40,6 +49,7 @@ stdenv.mkDerivation {
 
     # webp images can't be included directly, need to convert to PNG
     convert ${depot.tvix.website}/tvix-logo.webp tvix-logo.png
+    cp ${linksQrCode} qrcode.png
 
     # As usual, TeX needs to be run twice ...
     ${tex}/bin/xelatex presentation.tex
diff --git a/users/tazjin/presentations/tvix-eval-2023/presentation.tex b/users/tazjin/presentations/tvix-eval-2023/presentation.tex
index 3eb1658036..5cb8cd5065 100644
--- a/users/tazjin/presentations/tvix-eval-2023/presentation.tex
+++ b/users/tazjin/presentations/tvix-eval-2023/presentation.tex
@@ -138,17 +138,10 @@
   \end{frame}
 
   \begin{frame}{Спасибо!}
-    Ссылки:
-    \begin{itemize}
-    \item tvix.dev
-    \item tvl.fyi
-    \item tvixbolt.tvl.su
-    \end{itemize}
-
-    % TODO: QR code or something for these links
-
-    \vspace{3cm}
     \begin{center}
+      \includegraphics[width=6cm,keepaspectratio=true]{qrcode.png}
+
+      https://tazj.in/blog/tvix-eval-talk-2023 \\
       t.me/tazjin | tazjin@tvl.su
     \end{center}
   \end{frame}