Skip to content

Instantly share code, notes, and snippets.

View lieuwex's full-sized avatar
🆒

Lieuwe Rooijakkers lieuwex

🆒
View GitHub Profile
private const int DIALOG_LOGIN = 1;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
this.SetContentView(R.Layouts.activity_android_dialog);
var launchButton = FindViewById<Button>(R.Ids.btn_launch);
launchButton.Click += delegate { ShowDialog(DIALOG_LOGIN); };
}
# coding: utf-8
#
# Copyright (c) 2015 by Lieuwe Rooijakkers <lieuwerooijakkers@gmail.com> (http://www.lieuwex.me/)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
html, body {
height: 100%;
margin: 0;
}
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"math"
"net/http"
"os"
"strings"
@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!
const { gooiFile } = require('gooi');
try {
gooiFile(id);
} catch (file) {
console.log(file.name);
}
@lieuwex
lieuwex / sneeuw.go
Last active January 25, 2017 16:05
package main
import (
"bytes"
"fmt"
"math"
"math/rand"
"os"
"os/exec"
"os/signal"
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 = ""

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:

@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"""