Skip to content

Instantly share code, notes, and snippets.

View lluchs's full-sized avatar

Lukas Werling lluchs

  • Karlsruhe, Germany
View GitHub Profile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>~/src/wren/example/syntax.wren.html</title>
<meta name="Generator" content="Vim/7.4">
<meta name="plugin-version" content="vim7.4_v1">
<meta name="syntax" content="wren">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="gruvbox">
#!/bin/zsh
set -e
utf8() {
iconv -f ISO-8859-1 -t UTF-8 $1 > $1.tmp
mv $1.tmp $1
}
files=($(find -name '*.txt' | xargs file | grep ISO-8859 | sed 's/:.*//'))
@lluchs
lluchs / rvn.c
Created November 24, 2015 19:10
#include <stdio.h>
#include <string.h>
/* Calculates the cross sum of a non-negative integer a. */
int qsum(int a)
{
if (a < 10) return a;
return (a % 10) + qsum(a / 10);
}
@lluchs
lluchs / .SRCINFO
Last active January 19, 2016 16:45
openclonk PKGBUILD
# Generated by mksrcinfo v8
# Tue Jan 19 15:49:56 UTC 2016
pkgbase = openclonk
pkgdesc = Multiplayer-action-tactic-skill game
pkgver = 7.0
pkgrel = 3
url = http://openclonk.org
install = openclonk.install
arch = i686
arch = x86_64
@lluchs
lluchs / PKGBUILD
Last active January 25, 2016 16:11
curlftpfs Arch package
# $Id: PKGBUILD 97936 2013-10-01 16:49:40Z bpiotrowski $
# Maintainer: Chris Brannon <[email protected]>
# Contributor: Allan McRae <[email protected]>
# Contributor: Philip Nilsson <[email protected]>
pkgname=curlftpfs
pkgver=0.9.2
pkgrel=6
pkgdesc="A filesystem for acessing FTP hosts based on FUSE and libcurl."
url="http://curlftpfs.sourceforge.net/"
@lluchs
lluchs / builder.rs
Last active November 14, 2020 10:57 — forked from anonymous/playground.rs
Rust builder pattern with lifetime on struct
struct Foo;
struct FooBuilder<'a> {
foo: &'a Foo,
}
impl Foo {
fn build(&self) -> FooBuilder {
FooBuilder { foo: &self }
}
}
@lluchs
lluchs / test_runtimejoin.py
Created November 5, 2017 21:28
Script for automatically testing OpenClonk runtime join
#!/usr/bin/env python3
import pexpect
import os
import sys
import time
openclonk = './openclonk-server'
#scenario = 'planet/Tests.ocf/Minimal.ocs'