Skip to content

Instantly share code, notes, and snippets.

View zauguin's full-sized avatar

Marcel Krüger zauguin

View GitHub Profile
@zauguin
zauguin / PKGBUILD
Created February 16, 2015 05:38
Updated PKGBUILD for capnproto
# Maintainer: mabl <matthias@blaicher.com>
# Patched By: Marcel Krüger <zauguin@gmail.com>
pkgname=capnproto
pkgver=0.5.1
pkgrel=1
pkgdesc="Cap'n Proto serialization/RPC system"
arch=('i686' 'x86_64')
url="http://kentonv.github.io/capnproto/"
license=('MIT')
makedepends=('git')

Keybase proof

I hereby claim:

  • I am zauguin on github.
  • I am zauguin (https://keybase.io/zauguin) on keybase.
  • I have a public key whose fingerprint is E8F7 D45C 2021 FCAA 8441 EF22 87E0 FE88 7AED 192C To claim this, I am signing this object:
{
    "body": {
 "client": {
jkvhlhglkfhlsflsfd
if(auto err = sqlite3_exec(db.connection().get(), "query1;query2;query3;", nullptr, nullptr, nullptr))
sqlite::exceptions::throw_sqlite_error(err);
@zauguin
zauguin / font.each.lua
Created September 25, 2018 22:14
font.each working with luaotfload
local function fonteach_next(max, f)
repeat
f = f + 1
if f > max then return end
until font.frozen(f) ~= nil
return f, font.getfont(f) or font.fonts[f]
end
font.each = function() return fonteach_next, font.max(), 0 end
local func_tbl = lua.get_functions_table()
local set_lua = token.set_lua
local new_luafunction = luatexbase.new_luafunction
return function(name, func, ...)
local idx = new_luafunction(name)
set_lua(name, idx, ...)
func_tbl[idx] = func
end
@zauguin
zauguin / sqltable.cpp
Last active October 6, 2019 12:53
A draft for a virtual table module in sqlite_modern_cpp
#include <optional>
#include <iostream>
#include <string>
#include <sqlite_modern_cpp.h>
enum class VtabType {
regular,
eponymous,
eponymous_only,
};
@zauguin
zauguin / embolden-math.log
Created January 10, 2020 17:01
embolden-math log with unhelpful fontidentifier
This is LuaHBTeX, Version 1.11.2 (TeX Live 2020/dev) (format=lualatex-dev 2020.1.10) 20 MAY 2016 11:00
restricted system commands enabled.
**\input embolden-math.lvt
Lua module: luaotfload-main 2019-12-23 3.1202-dev luaotfload entry point
Lua module: luaotfload-init 2019-12-23 3.1202-dev luaotfload submodule / initialization
Lua module: lualibs 2019-11-06 2.69 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2019-11-06 2.69 ConTeXt Lua libraries -- extended collection.
Lua module: luaotfload-log 2019-12-23 3.1202-dev luaotfload submodule / logging
Lua module: luaotfload-parsers 2019-12-23 3.1202-dev luaotfload submodule / filelist
Lua module: luaotfload-configuration 2019-12-23 3.1202-dev luaotfload submodule / config file reader
@zauguin
zauguin / luadvi.lua
Last active April 7, 2020 16:13
luaotfload output enhancment for DVI mode
local getfont = font.getfont
local setfont = node.direct.setfont
local getdisc = node.direct.getdisc
local traverse_glyph = node.direct.traverse_glyph
local traverse_id = node.direct.traverse_id
local define_font = font.define
local disc_t = node.id'disc'
local mapped_fonts = setmetatable({}, {__index = function(t, fid)
local font = getfont(fid)
local mapped = font.backend_font or false