Compare commits
9 commits
8755b3bcef
...
2d6467d099
Author | SHA1 | Date | |
---|---|---|---|
2d6467d099 | |||
abe5508236 | |||
d764d3373d | |||
2c9f6cb85f | |||
5770fbe7f9 | |||
b469fe245c | |||
02572c1bf2 | |||
995b00fafa | |||
108f7e2968 |
13 changed files with 65 additions and 16 deletions
|
@ -3,6 +3,8 @@ from pathlib import Path
|
|||
from urllib import request
|
||||
import re
|
||||
|
||||
urlroot = 'https://www.w3.org/Protocols/rfc2616'
|
||||
|
||||
src = Path('src')
|
||||
root = src.joinpath('error')
|
||||
with root.joinpath('root.html').open('r') as root_file:
|
||||
|
@ -17,13 +19,13 @@ for x in error.rglob('*'):
|
|||
if x.is_file() or x.is_symlink(): x.unlink()
|
||||
|
||||
req = request.Request(
|
||||
'https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html',
|
||||
f'{urlroot}/rfc2616-sec10.html',
|
||||
method='GET')
|
||||
|
||||
with request.urlopen(req) as res:
|
||||
raw = res.read().decode('utf-8')
|
||||
|
||||
codes = (re.finditer(r"(?s)<h3><a id='sec10\.[0-9]\.[0-9]+'>"
|
||||
codes = (re.finditer(r"(?s)<h3><a id='(sec10\.[0-9]\.[0-9]+)'>"
|
||||
r'10\.[0-9]\.[0-9]+</a>'
|
||||
r'\s*([0-9]+)\s([a-zA-Z\s]+)</h3>\s*<p>(.*?)</p>', raw))
|
||||
|
||||
|
@ -31,11 +33,15 @@ nginx_head = ''
|
|||
nginx_body = ''
|
||||
|
||||
for item in codes:
|
||||
code, title, desc = item.groups()
|
||||
sec, code, title, desc = item.groups()
|
||||
if int(code) < 400 or int(code) >= 600: continue
|
||||
|
||||
desc = re.sub(r"(<a.*?href=')(.*)('>)",
|
||||
lambda x:f'{x[1]}{urlroot}/{x[2]}{x[3]}', desc)
|
||||
|
||||
with error.joinpath(f'{code}.html').open('w') as html:
|
||||
content = root_html.format(
|
||||
code=code, title=title, desc=desc, style=root_css)
|
||||
code=code, title=title, desc=desc, style=root_css, sec=sec)
|
||||
content = re.sub(r'\s+', ' ', content)
|
||||
content = re.sub(r'>\s<', '><', content)
|
||||
html.write(content)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
--gray-30: #cac5c4;
|
||||
--gray-10: #f7f3f2;
|
||||
--red-40: #ff8389;
|
||||
--blue-40: #78a9ff;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -53,3 +54,19 @@ cite {
|
|||
line-height: 1.125rem;
|
||||
letter-spacing: .16px;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--blue-40);
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
filter: brightness(1.2);
|
||||
}
|
||||
a:active {
|
||||
filter: brightness(1.4);
|
||||
}
|
||||
a:focus {
|
||||
color: var(--gray-100);
|
||||
background: white;
|
||||
}
|
||||
|
|
|
@ -25,7 +25,16 @@
|
|||
<blockquote cite="https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">
|
||||
{desc}
|
||||
</blockquote>
|
||||
<figcaption><cite>HTTP/1.1 Status Code Definitions</cite></figcaption>
|
||||
<figcaption><cite>
|
||||
<a
|
||||
href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#{sec}"
|
||||
>HTTP/1.1 Status Code Definitions</a>
|
||||
</cite></figcaption>
|
||||
</figure>
|
||||
<footer>
|
||||
Design by edpibu,
|
||||
inspired by <a href="https://www.carbondesignsystem.com/">
|
||||
IBM Carbon Design System</a>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
}
|
||||
|
||||
.biglinks > a,
|
||||
.biglinks > img {
|
||||
.biglinks > picture {
|
||||
max-width: calc(100% - 24px);
|
||||
}
|
||||
|
||||
|
@ -22,8 +22,13 @@
|
|||
display: block;
|
||||
}
|
||||
|
||||
.biglinks > img {
|
||||
.biglinks > picture {
|
||||
display: inline-block;
|
||||
height: 156px;
|
||||
margin: 12px;
|
||||
}
|
||||
.biglinks > picture > img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
|
BIN
src/static/pic/pic.jxl
Normal file
BIN
src/static/pic/pic.jxl
Normal file
Binary file not shown.
BIN
src/static/pic/pic.webp
Normal file
BIN
src/static/pic/pic.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB |
BIN
src/static/pic/picx2.jxl
Normal file
BIN
src/static/pic/picx2.jxl
Normal file
Binary file not shown.
BIN
src/static/pic/picx2.webp
Normal file
BIN
src/static/pic/picx2.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
src/static/pic/picx4.jxl
Normal file
BIN
src/static/pic/picx4.jxl
Normal file
Binary file not shown.
BIN
src/static/pic/picx4.webp
Normal file
BIN
src/static/pic/picx4.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 172 KiB |
|
@ -2,7 +2,10 @@
|
|||
<html lang="fr">
|
||||
<head>
|
||||
<title>CV - Edgar P. Burkhart</title>
|
||||
<meta name="description" content="Edgar P. Burkhart, étudiant en génie côtier à l'UPPA. Normalien-élève de l'ENS Paris-Saclay." />
|
||||
<meta name="description"
|
||||
content="Edgar P. Burkhart, étudiant en génie côtier à l'UPPA.
|
||||
Normalien-élève de l'ENS Paris-Saclay.
|
||||
Agrégé de Sciences Industrielles de l'Ingénieur." />
|
||||
|
||||
{meta}
|
||||
</head>
|
||||
|
@ -29,14 +32,14 @@
|
|||
</nav>
|
||||
|
||||
<div class="content">
|
||||
<h2>Stages</h2>
|
||||
<h2 id="stages">Stages</h2>
|
||||
<ul>
|
||||
<li>Optimization of simplified calculation methods for early age
|
||||
cracking assessement
|
||||
- Norwegian University of Science and Technology, ENS Paris-Saclay
|
||||
- 2020</li>
|
||||
</ul>
|
||||
<h2>Formation</h2>
|
||||
<h2 id="formation">Formation</h2>
|
||||
<ul>
|
||||
<li>Université de Pau et des Pays de l'Adour
|
||||
- Génie Côtier
|
||||
|
@ -67,9 +70,9 @@
|
|||
- Spécialité Informatique et Sciences du Numérique
|
||||
- 2016</li>
|
||||
</ul>
|
||||
<h2>Compétences</h2>
|
||||
<h2 id="competences">Compétences</h2>
|
||||
<dl>
|
||||
<dt><h3>Langues</h3></dt>
|
||||
<dt><h3 id="langues">Langues</h3></dt>
|
||||
<dd><ul>
|
||||
<li>Français (Natif)</li>
|
||||
<li>Anglais
|
||||
|
@ -77,7 +80,7 @@
|
|||
<li>Allemand (Niveau B1, Deutsches Sprachdiplom 1)</li>
|
||||
<li>Espagnol (Lu)</li>
|
||||
</ul></dd>
|
||||
<dt><h3>Informatique</h3></dt>
|
||||
<dt><h3 id="competences-info">Informatique</h3></dt>
|
||||
<dd><ul>
|
||||
<li>Développement web (HTML, CSS, JS, Django, Symfony, node.js,
|
||||
React)</li>
|
||||
|
@ -86,13 +89,13 @@
|
|||
<li>Réseau (routage)</li>
|
||||
<li>Mise en page (LaTeX, Microsoft Office, LibreOffice)</li>
|
||||
</dd></ul>
|
||||
<dt><h3>Autres</h3></dt>
|
||||
<dt><h3 id="competences-autres">Autres</h3></dt>
|
||||
<dd><ul>
|
||||
<li>Travail d'équipe</li>
|
||||
<li>Électronique (Raspberry Pi, Arduino, brasure, conception de PCB)
|
||||
</ul>
|
||||
</dl>
|
||||
<h2>Loisirs</h2>
|
||||
<h2 id="loisirs">Loisirs</h2>
|
||||
<ul>
|
||||
<li>VTT, Randonnée</li>
|
||||
<li>Ancien membre du CR@NS (association fournissant internet au campus
|
||||
|
|
|
@ -27,7 +27,16 @@
|
|||
<img class="svg" src="/static/picto/summit.svg" alt="" />
|
||||
Komoot
|
||||
</a>
|
||||
<img src="/static/pic/pic1.webp" alt="Paysage" />
|
||||
<picture>
|
||||
<source type="image/jxl"
|
||||
srcset="/static/pic/pic.jxl,
|
||||
/static/pic/picx2.jxl 2x,
|
||||
/static/pic/picx4.jxl 4x" />
|
||||
<img alt=""
|
||||
src="/static/pic/pic.webp"
|
||||
srcset="/static/pic/picx2.webp 2x,
|
||||
/static/pic/picx4.webp 4x" />
|
||||
</picture>
|
||||
<a class="btn" href="/jaime/">
|
||||
<img class="svg" src="/static/picto/love.svg" alt="" />
|
||||
Ce que j'aime
|
||||
|
|
Reference in a new issue