Skip to content

Instantly share code, notes, and snippets.

View lieuwex's full-sized avatar
🆒

Lieuwe Rooijakkers lieuwex

🆒
View GitHub Profile
@lieuwex
lieuwex / codegooi.sh
Last active December 22, 2021 17:07
codegooi: gooi syntax highlighted code files
#!/usr/bin/env bash
n_files=$#
file_names="$(echo "$@" | sed -e 's/ /, /g')"
title=$file_names
if [[ $n_files -gt 1 ]]; then
title="$n_files-files"
fi
@lieuwex
lieuwex / # ikos - 2018-12-13_00-44-37.txt
Created December 12, 2018 23:46
ikos (nasa-sw-vnv/core/ikos) on macOS 10.14 - Homebrew build logs
Homebrew build logs for nasa-sw-vnv/core/ikos on macOS 10.14
Build date: 2018-12-13 00:44:37
@lieuwex
lieuwex / pagetitle.py
Last active February 25, 2018 19:29
Weechat plugin to fetch the page title when an URL is printed in a buffer
import weechat
import htmllib
import re
bufcounts = {}
regex_url = re.compile("""https?://[^ ]+""")
def unescape(s):
"""Unescape HTML entities"""

Keybase proof

I hereby claim:

  • I am Lieuwex on github.
  • I am lieuwer (https://keybase.io/lieuwer) on keybase.
  • I have a public key whose fingerprint is B44C B5FB A7E6 D3F1 A234 E70E F563 7DCC 5DFB A653

To claim this, I am signing this object:

import weechat
import re
name = "xander"
author = "Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> (http://www.lieuwe.xyz/)"
version = "0.1"
license = "MIT"
description = "XANDER XANDER XANDER XANDER"
shutdown_function = ""
charset = ""
@lieuwex
lieuwex / sneeuw.go
Last active January 25, 2017 16:05
package main
import (
"bytes"
"fmt"
"math"
"math/rand"
"os"
"os/exec"
"os/signal"
const { gooiFile } = require('gooi');
try {
gooiFile(id);
} catch (file) {
console.log(file.name);
}
@lieuwex
lieuwex / index.ls
Last active November 2, 2016 14:45
Grade calculator connected to Magister
{ Magister } = require 'magister.js'
require! 'kbd'
{ group-by, obj-to-pairs, each, map, reject, is-it-NaN } = require 'prelude-ls'
WANTED = 5.5
ask = (str) ->
process.stdout.write "#str: "
kbd.get-line-sync!
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"math"
"net/http"
"os"
"strings"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
html, body {
height: 100%;
margin: 0;
}