talks: Add INRAE workshop 2022.

* talks/fcc-inrae-2022: New directory.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
zimoun 2022-06-20 05:54:28 +02:00 committed by Tobias Geerinckx-Rice
parent 298f1d5f53
commit 70d972ea83
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
22 changed files with 2283 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# -*- mode: org -*-
Reprodutibilité, une solution avec Guix
Git: https://gitlab.com/zimoun/fcc-inrae
SWH: https://archive.softwareheritage.org/swh:1:rev:984f0c79907ffffd5cd25afac968d4fb377e03cb
#+begin_src bash
guix time-machine -C channels.scm \
-- shell -m manifest.scm \
-- rubber --pdf pres.pdf
#+end_src

View File

@ -0,0 +1,6 @@
(list (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git")
(branch "master")
(commit
"791069737c8c51582cc021438dae32eb0fb7b8e0")))

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
guix time-machine -C channels.scm \
-- shell -m manifest.scm \
-- rubber --pdf pres.tex

View File

@ -0,0 +1,22 @@
(use-modules (gnu) (guix) (srfi srfi-1))
(use-service-modules desktop mcron networking xorg)
(use-package-modules certs fonts xorg)
(operating-system
(host-name "gnu")
(keyboard-layout (keyboard-layout "us" "altgr-intl"))
(users (cons (user-account
(name "guest")
(password "") ;no password
(group "users"))
%base-user-accounts))
(packages (append (list font-bitstream-vera nss-certs)
%base-packages))
(services
(append (list (service xfce-desktop-service-type)
(simple-service 'cron-jobs mcron-service-type
(list auto-update-resolution-crutch))
(service dhcp-client-service-type)))))

View File

@ -0,0 +1,13 @@
(use-modules (gnu) (guix) (srfi srfi-1))
(use-service-modules desktop mcron networking xorg)
(use-package-modules certs fonts xorg)
(operating-system
[...]
(packages (append (list font-bitstream-vera nss-certs)
%base-packages))
(services
(append (list (service xfce-desktop-service-type)
(simple-service 'cron-jobs mcron-service-type
(list auto-update-resolution-crutch))
(service dhcp-client-service-type)))))

View File

@ -0,0 +1,7 @@
(package ; definition du noeud python-pytorch
(name "python-pytorch")
(version "1.10.2")
(source ... ) ; les donnees pointees ICI
(build-system python-build-system)
(arguments ... )
(inputs (list ...)))

View File

@ -0,0 +1,7 @@
(package ; definition du noeud python
(name "python")
(version "3.9.9")
(source ... ) ; -> Gitlab, etc.
(build-system gnu-build-system) ; ./configure; make; install
(arguments ... ) ; options de production
(inputs (list ...))) ; liste d'autres noeuds -> graphe (DAG)

View File

@ -0,0 +1,9 @@
(define python
(package
(name "python")
(version "3.9.9")
(source ... )
(build-system gnu-build-system)
(arguments ... )
(inputs (list bzip2 expat gdbm libffi sqlite
openssl readline zlib tcl tk))))

View File

@ -0,0 +1,11 @@
(define python "python")
(specifications->manifest
(append
(list python)
(map (lambda (pkg)
(string-append python "-" pkg))
(list
"matplotlib"
"numpy"
"scipy"))))

View File

@ -0,0 +1,13 @@
(use-modules (guix transformations))
(define transform
(options->transformation
'((with-c-toolchain . "python=gcc-toolchain@7"))))
(packages->manifest
(map (compose transform specification->package)
(list
"python"
"python-matplotlib"
"python-numpy"
"python-scipy")))

View File

@ -0,0 +1,6 @@
(specifications->manifest
(list
"python"
"python-matplotlib"
"python-numpy"
"python-scipy"))

View File

@ -0,0 +1,97 @@
% This file contains some restricted keywords for highlighting the all the
% snippets in LaTeX. The main purpose is to easy reading the Scheme
% Domain-Specific code by coloring what is Guile-specific, user-specific and DSL-specific.
%
% The language shell is also trivially defined.
\usepackage{listings}
\usepackage{color}
\definecolor{someguile}{rgb}{0.0, 0.25, 0.8}
\definecolor{somestring}{rgb}{0.8, 0.25, 0.0}
\definecolor{somevariable}{rgb}{0.0, 0.5, 0.0}
\definecolor{somecomment}{rgb}{1.0, 0.0, 0}
\definecolor{bracket}{rgb}{0.6, 0.6, 0.6}
\lstdefinelanguage{Scheme}{
basicstyle=\normalsize\ttfamily\slshape\color{somevariable},
sensitive=true,
alsoletter={-,\#,:,>},
morestring = [b]",
stringstyle=\upshape\color{somestring},
morecomment=[l]{;},
commentstyle=\upshape\color{somecomment},
literate=
*{(}{{\textcolor{bracket}{(}}}{1}
{)}{{\textcolor{bracket}{)}}}{1},
classoffset=0,
% Guile
morekeywords={
define, define-public,
list, map, compose,
cons,
lambda,
let, let*, quote,
append, string-append,
use-modules, define-module, \#:use-module, \#:prefix
},
keywordstyle=\ttfamily\upshape\color{someguile},
classoffset=1,
% Fix
morekeywords={
guix, transformations,
gnu, srfi, srfi-1,
desktop, mcron, networking, xorg,
certs, fonts,
font-bitstream-vera, nss-certs,
xfce-desktop-service-type,
cron-jobs, mcron-service-type,
dhcp-client-service-type,
},
keywordstyle=\ttfamily\upshape\color{black},
classoffset=1,
% DSL
morekeywords={
package,
name, version,
build-system, gnu-build-system, arguments,
inputs,
synopsis, description, license,
source, origin,
method, url-fetch, git-fetch,
specifications->manifest, specification->package, packages->manifest,
options->transformation, with-c-toolchain,
},
% DSL VM
morekeywords={
use-service-modules, use-package-modules,
operating-system,
host-name, timezone, locale, keyboard-layout, label, firmware,
bootloader, bootloader-configuration, grub-bootloader, targets, terminal-outputs,
users, user-account, name, password, group, supplementary-groups,
file-systems, file-system, mount-point, device, type,
base-file-systems, % bug with %base-
base-user-accounts,
base-packages,
packages,
services, service, simple-service,
plain-file,
},
keywordstyle=\ttfamily\bfseries\upshape\color{black},
classoffset=0,
}
\lstdefinelanguage{shell}{
basicstyle=\normalsize\ttfamily,
sensitive=true,
morestring = [b]",
stringstyle=\upshape\color{red},
morecomment=[l]{\#},
commentstyle=\upshape\color{green},
}
% \lstdefinelanguage{text}{
% basicstyle=\normalsize\ttfamily,
% sensitive=true,
% commentstyle=\upshape\color{green},
% }

View File

@ -0,0 +1,26 @@
(specifications->manifest
(list
"rubber"
"texlive-base"
"texlive-fonts-ec"
"texlive-kpfonts"
"texlive-cm-super"
"texlive-amsfonts-fixed"
"texlive-beamer"
"texlive-translator"
"texlive-ulem"
"texlive-capt-of"
"texlive-hyperref"
"texlive-carlisle"
"texlive-latex-geometry"
"texlive-latex-wrapfig"
"texlive-latex-amsmath"
"texlive-babel-french"
"texlive-latex-listings"
"texlive-latex-fancyvrb"
"texlive-latex-pgf"
"texlive-latex-fancyhdr"
))

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.