Skip to content

Instantly share code, notes, and snippets.

View louwers's full-sized avatar
🚲

Bart Louwers louwers

🚲
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDMIAqmH1G9tJxw/AV4MsAeNKRMDpXS6g6nTU7EpCR2WfpXfXnHti2SiLaEqLHo81fYx6/MIwCI6ewxzO9BStbjOoyPqMFeQYB+wFW9ZquuFsrdtOXB3ia+K5d8nf7nHmbOLUEbDDG7jZ7UPNtTUWUX24Oki50vz3t30Okcq8RzK+9e/6yVJglz2LPEU+vVxq9CpHp2JABtuFubj3JfHc0AW+iPEDIdaOuJveMJDa02XMT9fDNTm9Ya4BVp/CKUVjS1vNSwUx5DF1GUKEFTjLr3lkHce6jhTpROos9fS+VlXOu2eVVUhC5w5dNeM4mMKXrP8fKcF6k3o3FTx1ApsdC9v7A787o17DyWjlo54M++pLklbIHcgsn0vxJLM7AtV9/Lnlplm5X80Mk9V0T8CiaKx2TMOTU9/0ALwHQbWDA+AyCDD40QG781KydAxvNEnY2Jef7d+kzuQo7qX9rO0bEA5O7cwcOps6LVZND9Bsyg6bgfm+CzOgLyuQDGF/AmS5k= bart@Barts-MacBook-Air.local
This file has been truncated, but you can view the full file.
2023-07-25T21:20:35.1527524Z Requested labels: ubuntu-22.04
2023-07-25T21:20:35.1527900Z Job defined at: mwilsnd/maplibre-gl-native/.github/workflows/linux-ci.yml@refs/heads/linux-ci-debug
2023-07-25T21:20:35.1528068Z Waiting for a runner to pick up this job...
2023-07-25T21:20:35.3154137Z Job is waiting for a hosted runner to come online.
2023-07-25T21:20:38.2625531Z Job is about to start running on the hosted runner: GitHub Actions 1 (hosted)
2023-07-25T21:20:40.5028339Z Current runner version: '2.306.0'
2023-07-25T21:20:40.5054342Z ##[group]Operating System
2023-07-25T21:20:40.5054858Z Ubuntu
2023-07-25T21:20:40.5055212Z 22.04.2
2023-07-25T21:20:40.5055431Z LTS
@louwers
louwers / style.json
Created June 6, 2023 12:22
Example Style for using MapLibre Native guide on Linux
{
"version": 8,
"name": "Test style",
"center": [
8.54806714892635,
47.37180823552663
],
"sources": {
"test": {
"type": "vector",
@louwers
louwers / Main.java
Last active March 30, 2023 18:47
JNI Hello World on macOS
public class Main {
public static void main(String[] args) {
NativeMethodsClass cl = new NativeMethodsClass();
cl.nonNative();
cl.nativeMethod();
}
}
@louwers
louwers / main.cc
Last active March 27, 2023 23:42
Shader registry using static template variable
$ g++ --std=c++17 -c maplibre.cc
$ ar rvs maplibre.a maplibre.o
$ g++ --std=c++17 main.cc maplibre.a
$ ./a.out
hello world
I am derived

Keybase proof

I hereby claim:

  • I am louwers on github.
  • I am louwers (https://keybase.io/louwers) on keybase.
  • I have a public key whose fingerprint is E4F2 E7A5 6C0B BAE7 4C80 7EB3 18FD EEDE 3792 14B6

To claim this, I am signing this object:

#!/usr/bin/node
var path = require('path');
const { exit } = require("process");
const util = require('node:util');
const exec = util.promisify(require('node:child_process').exec);
var filename = path.basename(__filename);
// As can be seen when you run
type SimplyGeometry = Point | MultiPoint | LineString | MultiLineString | Polygon | MultiPolygon;
type Geometry = SimplyGeometry | GeometryCollection
type Position = number[];
export interface Point {
type: "Point";
coordinates: Position;
}
var readline = require("readline");
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false,
});
async function* getLineGen() {
for await (const line of rl) {
yield line;
@louwers
louwers / cpp-core-guidelines-to-pdf.sh
Created January 9, 2022 23:22
CppCoreGuideLines PDF
#!/bin/bash
# Here is how you can get a pretty good PDF of the C++ Core Guidelines
wget wget -nd -r -l 2 -A png http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines
pandoc CppCoreGuidelines.html -o cpp-core-guidelines.pdf