230 lines
8.3 KiB
HTML
230 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="generator" content="pandoc" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||
<title>Home</title>
|
||
<link rel="icon" type="image/x-icon" href="images/favicon.png">
|
||
<style>
|
||
code{white-space: pre-wrap;}
|
||
span.smallcaps{font-variant: small-caps;}
|
||
div.columns{display: flex; gap: min(4vw, 1.5em);}
|
||
div.column{flex: auto; overflow-x: auto;}
|
||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
||
/* The extra [class] is a hack that increases specificity enough to
|
||
override a similar rule in reveal.js */
|
||
ul.task-list[class]{list-style: none;}
|
||
ul.task-list li input[type="checkbox"] {
|
||
font-size: inherit;
|
||
width: 0.8em;
|
||
margin: 0 0.8em 0.2em -1.6em;
|
||
vertical-align: middle;
|
||
}
|
||
/* CSS for syntax highlighting */
|
||
html { -webkit-text-size-adjust: 100%; }
|
||
pre > code.sourceCode { white-space: pre; position: relative; }
|
||
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
|
||
pre > code.sourceCode > span:empty { height: 1.2em; }
|
||
.sourceCode { overflow: visible; }
|
||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||
div.sourceCode { margin: 1em 0; }
|
||
pre.sourceCode { margin: 0; }
|
||
@media screen {
|
||
div.sourceCode { overflow: auto; }
|
||
}
|
||
@media print {
|
||
pre > code.sourceCode { white-space: pre-wrap; }
|
||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
||
}
|
||
pre.numberSource code
|
||
{ counter-reset: source-line 0; }
|
||
pre.numberSource code > span
|
||
{ position: relative; left: -4em; counter-increment: source-line; }
|
||
pre.numberSource code > span > a:first-child::before
|
||
{ content: counter(source-line);
|
||
position: relative; left: -1em; text-align: right; vertical-align: baseline;
|
||
border: none; display: inline-block;
|
||
-webkit-touch-callout: none; -webkit-user-select: none;
|
||
-khtml-user-select: none; -moz-user-select: none;
|
||
-ms-user-select: none; user-select: none;
|
||
padding: 0 4px; width: 4em;
|
||
}
|
||
pre.numberSource { margin-left: 3em; padding-left: 4px; }
|
||
div.sourceCode
|
||
{ color: #cccccc; background-color: #303030; }
|
||
@media screen {
|
||
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
|
||
}
|
||
code span.al { color: #ffcfaf; } /* Alert */
|
||
code span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */
|
||
code span.at { } /* Attribute */
|
||
code span.bn { color: #dca3a3; } /* BaseN */
|
||
code span.bu { } /* BuiltIn */
|
||
code span.cf { color: #f0dfaf; } /* ControlFlow */
|
||
code span.ch { color: #dca3a3; } /* Char */
|
||
code span.cn { color: #dca3a3; font-weight: bold; } /* Constant */
|
||
code span.co { color: #7f9f7f; } /* Comment */
|
||
code span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */
|
||
code span.do { color: #7f9f7f; } /* Documentation */
|
||
code span.dt { color: #dfdfbf; } /* DataType */
|
||
code span.dv { color: #dcdccc; } /* DecVal */
|
||
code span.er { color: #c3bf9f; } /* Error */
|
||
code span.ex { } /* Extension */
|
||
code span.fl { color: #c0bed1; } /* Float */
|
||
code span.fu { color: #efef8f; } /* Function */
|
||
code span.im { } /* Import */
|
||
code span.in { color: #7f9f7f; font-weight: bold; } /* Information */
|
||
code span.kw { color: #f0dfaf; } /* Keyword */
|
||
code span.op { color: #f0efd0; } /* Operator */
|
||
code span.ot { color: #efef8f; } /* Other */
|
||
code span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */
|
||
code span.sc { color: #dca3a3; } /* SpecialChar */
|
||
code span.ss { color: #cc9393; } /* SpecialString */
|
||
code span.st { color: #cc9393; } /* String */
|
||
code span.va { } /* Variable */
|
||
code span.vs { color: #cc9393; } /* VerbatimString */
|
||
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
|
||
</style>
|
||
<link rel="stylesheet" href="styles/style.css">
|
||
</head>
|
||
<body>
|
||
<canvas id="tv-screen"></canvas>
|
||
<header id="page-header">
|
||
<a class="page-header-button" href="index.html">Home</a>
|
||
<a class="rss-button" href="rss.xml">RSS Feed</a>
|
||
</header>
|
||
<main id="page">
|
||
<header id="title-block-header">
|
||
<h1 class="title">Home</h1>
|
||
</header>
|
||
<article>
|
||
<p>Hello! I am Never and this is my little place on the internet where I
|
||
post the stuff that I am currently nerding out about.</p>
|
||
<p>This Website itself is one of those projects, that I like to tweak
|
||
and tinker with. Maybe I’ll write an article about its build system. It
|
||
is also viewable via <code>curl</code>. Just run</p>
|
||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">curl</span> nevereverever.de</span></code></pre></div>
|
||
<p>There also is an RSS Feed to stay updated about my doings.</p>
|
||
</article>
|
||
<nav id="articles">
|
||
<h1>Articles</h1>
|
||
<ul>
|
||
<li>
|
||
<header class="articles-header">
|
||
<a href="rsync-android.html" class="articles-title">Using rsync on
|
||
Android to syncronise my Music library</a>
|
||
</header>
|
||
<p class="articles-summary">As Spotify is getting enshittified by
|
||
capitalism, keeping a music library is kind of essential. Here I use
|
||
rsync to syncronise my library with my Android smartphone.</p>
|
||
<footer class="articles-footer">
|
||
<div class="articles-author">Never</div>
|
||
<div class="articles-date">2026-01-12</div>
|
||
</footer>
|
||
</li>
|
||
<li>
|
||
<header class="articles-header">
|
||
<a href="latex-endeavors.html" class="articles-title">Latex
|
||
Endeavors</a>
|
||
</header>
|
||
<p class="articles-summary">Latex undoubtedly has some quirks. Some of
|
||
them have a rather unintuitive solution. In this article I cover some
|
||
quirks and solutions I have encountered.</p>
|
||
<footer class="articles-footer">
|
||
<div class="articles-author">Never</div>
|
||
<div class="articles-date">2026-01-09</div>
|
||
</footer>
|
||
</li>
|
||
<li>
|
||
<header class="articles-header">
|
||
<a href="random-linux-utils.html" class="articles-title">Random linux
|
||
utilities</a>
|
||
</header>
|
||
<p class="articles-summary">Tricks and tools I learned about, while
|
||
tweaking my Linux sytem or trying to do productive things.</p>
|
||
<footer class="articles-footer">
|
||
<div class="articles-author">Never</div>
|
||
<div class="articles-date">2025-07-25</div>
|
||
</footer>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</main>
|
||
<footer id="page-footer">
|
||
<nav id="webring">
|
||
<a href="https://cups.teabucket.eu/prev?from=never" target="_parent"><img alt="Previous" src="images/cups_left.svg" width="30" height="30"></a>
|
||
<a href="https://cups.teabucket.eu/" target="_parent"><img alt="CUPS" src="images/cups_logo.svg" width="120" height="60"></a>
|
||
<a href="https://cups.teabucket.eu/next?from=never" target="_parent"><img alt="Next" src="images/cups_right.svg" width="30" height="30"></a>
|
||
</nav>
|
||
</footer>
|
||
<script>
|
||
let speed = 10;
|
||
let scale = 0.33; // Image scale (I work on 1080p monitor)
|
||
let canvas;
|
||
let ctx;
|
||
let logoColor;
|
||
|
||
let dvd = {
|
||
x: 256,
|
||
y: 354,
|
||
xspeed: 2,
|
||
yspeed: 2,
|
||
img: new Image()
|
||
};
|
||
|
||
(function main(){
|
||
canvas = document.getElementById("tv-screen");
|
||
ctx = canvas.getContext("2d");
|
||
dvd.img.src = 'images/shark.png';
|
||
|
||
//Draw the "tv screen"
|
||
canvas.width = window.innerWidth;
|
||
canvas.height = window.innerHeight;
|
||
|
||
pickColor();
|
||
update();
|
||
})();
|
||
|
||
function update() {
|
||
setTimeout(() => {
|
||
//Draw the canvas background
|
||
ctx.fillStyle = '#00000000';
|
||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||
//Draw DVD Logo and his background
|
||
//ctx.fillStyle = logoColor;
|
||
//ctx.fillRect(dvd.x, dvd.y, dvd.img.width*scale, dvd.img.height*scale);
|
||
ctx.drawImage(dvd.img, dvd.x, dvd.y, dvd.img.width*scale, dvd.img.height*scale);
|
||
//Move the logo
|
||
dvd.x+=dvd.xspeed;
|
||
dvd.y+=dvd.yspeed;
|
||
//Check for collision
|
||
checkHitBox();
|
||
update();
|
||
}, speed)
|
||
}
|
||
|
||
//Check for border collision
|
||
function checkHitBox(){
|
||
if(dvd.x+dvd.img.width*scale >= canvas.width || dvd.x <= 0){
|
||
dvd.xspeed *= -1;
|
||
pickColor();
|
||
}
|
||
|
||
if(dvd.y+dvd.img.height*scale >= canvas.height || dvd.y <= 0){
|
||
dvd.yspeed *= -1;
|
||
pickColor();
|
||
}
|
||
}
|
||
|
||
//Pick a random color in RGB format
|
||
function pickColor(){
|
||
r = Math.random() * (254 - 0) + 0;
|
||
g = Math.random() * (254 - 0) + 0;
|
||
b = Math.random() * (254 - 0) + 0;
|
||
|
||
logoColor = 'rgb('+r+','+g+', '+b+')';
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|