Daily Shaarli

All links of one day in a single page.

February 28, 2021

Parsing in Python: all the tools and libraries you can use

Let’s look at the following example and imagine that we are trying to parse a mathematical operation.

neerajsinghsonu/simple-error-templates: htaccess error templates, HTML error templates, Server error templates, PHP Error templates, Website error templates, This is the most beautiful and simplest error template ever :)

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Ouch! - 403</title>
<style type="text/css">
h1.error {
left: 0;
line-height: 200px;
margin-top: -100px;
position: absolute;
text-align: center;
top: 50%;
width: 100%;
font-size: 15em;
color: #dadada;
-webkit-text-fill-color: #dadada;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: black;
}
</style>
</head>

<body>
<h1 class="error">403</h1> </body>

</html>

Bitcoin: The Postmodern Ponzi
Code Splitting | webpack
Absolute vs Relative Imports in Python – Real Python
horizonator: terrain renderer based on SRTM DEMs

I just resurrected and cleaned up an old tool I had lying around. It's now nice and usable by others. This tool loads terrain data, and renders it from the ground, simulating what a human or a camera would see. This is useful for armchair exploring or for identifying peaks. This was relatively novel when I wrote it >10 years ago, but there are a number of similar tools in existence now. This implementation is still useful in that it's freely licensed and contains APIs, so fancier processing can be performed on its output.