Skip to content

Instantly share code, notes, and snippets.

@martin-eden
martin-eden / install.lua.md
Last active March 3, 2024 01:21
Lua 5.3 installation/removal

Download, build and install [Lua 5.4][lua].

Requirements: Linux, bash.

Last checked: 2024-02-07

Download, build and install

#!/bin/bash
@martin-eden
martin-eden / tekui-installation.md
Last active February 26, 2024 18:00
TekUI installation (and removal)

TekUI installation

This text is about how to download, compile and install [TekUI][tekui] window manager.

Requirements: Linux system, Lua 5.4.

I'm using following script to download and install TekUI.

#!/bin/bash
@martin-eden
martin-eden / long_div.lua
Last active July 13, 2020 04:31
Division of two positive long numbers. Sample implementation in Lua.
--[[
Long number represented as Lua table. Lowest digits at lowest indexes.
1-base. "len" field for length. No sign. Zero has "len" = 0.
271828 =
{[1] = 2, [2] = 7, [3] = 1, [4] = 8, [5] = 2, [6] = 8; len = 6}
]]
local BASE = 10
@martin-eden
martin-eden / lua_dictionary.graphml
Last active April 28, 2017 21:26
Graph representation of Dirk's Laurie Lua dictionary
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<!--Created by yEd 3.15.0.2-->
<key attr.name="Description" attr.type="string" for="graph" id="d0"/>
<key for="port" id="d1" yfiles.type="portgraphics"/>
<key for="port" id="d2" yfiles.type="portgeometry"/>
<key for="port" id="d3" yfiles.type="portuserdata"/>
<key attr.name="url" attr.type="string" for="node" id="d4"/>
<key attr.name="description" attr.type="string" for="node" id="d5"/>
<key for="node" id="d6" yfiles.type="nodegraphics"/