Skip to content

Instantly share code, notes, and snippets.

@wilx
wilx / msvc-cmake-build.diff
Last active November 16, 2022 08:46
CMake proof of concept build for Bibutils 6.2 with fixes for Visual Studio
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e69de29..9700af3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -0,0 +1,13 @@
+cmake_minimum_required(VERSION 3.1)
+project(bibutils C)
+include(GNUInstallDirs)
+
+add_definitions(-DCURR_VERSION="6.2")
@wilx
wilx / SaneTwitchChat.user.js
Last active May 17, 2020 16:16
Tampermonkey script that cleans up Twitch.tv chat a little bit.
// ==UserScript==
// @name Sane chat cleanup
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author wilx
// @match https://www.twitch.tv/*
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.js
// @require https://raw.githubusercontent.com/uzairfarooq/arrive/v2.4.1/minified/arrive.min.js
@wilx
wilx / Czech_typography_fixer.user.js
Last active April 26, 2020 22:59
This script fixes crimes against Czech typography on some web pages.
// ==UserScript==
// @name Czech typography fixer
// @namespace vhaisman@gmail.com
// @description This script fixes crimes against Czech typography on some web pages.
// @include /^https?://www\.ceska-justice\.cz/.*$/
// @include /^https?://www\.zdravotnickydenik\.cz/.*$/
// @include /^https?://(.+\.)?ihned\.(cz|news)/.*$/
// @include /^https?://.+\.aktualne\.cz/.*$/
// @include /^https?://www\.ceskenoviny\.cz/.*$/
// @include /^https?://.+\.idnes\.cz/.*$/
// ==UserScript==
// @name Hyphenator for Czech language on selected sites
// @namespace vhaisman@gmail.com
// @description This script is a copy of Hyphenator by Mathias Nater with hyphenation data for Czech language.
// @include /^https?://www\.ceska-justice\.cz/.*$/
// @include /^https?://www\.zdravotnickydenik\.cz/.*$/
// @include /^https?://(.+\.)?ihned\.(cz|news)/.*$/
// @include /^https?://.+\.aktualne\.cz/.*$/
// @include /^https?://www\.ceskenoviny\.cz/.*$/
// @include /^https?://.+\.idnes\.cz/.*$/
@wilx
wilx / .tex
Created November 18, 2019 06:11
\documentclass{article}
\usepackage{fontspec}
\usepackage{luatexja-fontspec}
\usepackage{microtype}
\begin{document}
\LaTeX
\end{document}
@wilx
wilx / mwe.log
Last active October 20, 2019 09:17
This is LuaTeX, Version 1.10.0 (TeX Live 2019) (format=lualatex 2019.10.20) 20 OCT 2019 11:14
restricted system commands enabled.
**mwe.tex
(./mwe.tex
LaTeX2e <2019-10-01> patch level 1
Lua module: luaotfload-main 2019-09-13 3.00 luaotfload entry point
Lua module: luaotfload-init 2019-09-13 3.00 luaotfload submodule / initializatio
n
Lua module: lualibs 2019-08-11 2.67 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2019-08-11 2.67 ConTeXt Lua libraries -- extended c
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
american,
]{article}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
This is LuaTeX, Version 1.10.0 (TeX Live 2019) (format=lualatex 2019.6.15) 28 JUN 2019 23:35
restricted system commands enabled.
**./test.tex
(./test.tex
LaTeX2e <2018-12-01>
Lua module: luaotfload-main 2019-05-18 2.97 luaotfload entry point
Lua module: luaotfload-init 2019-05-18 2.97 luaotfload submodule / initializatio
n
Lua module: lualibs 2019-05-18 2.65 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2019-05-18 2.65 ConTeXt Lua libraries -- extended c
\documentclass{article}
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\newfontfamily\tamilfont{Lohit Tamil}[]
\title{log4cplus README}
\date{}
\begin{document}
Test
\end{document}
/* The Computer Language Benchmarks Game
https://salsa.debian.org/benchmarksgame-team/benchmarksgame/
contributed by Mark C. Lewis
modified slightly by Chad Whipkey
converted from java to c++,added sse support, by Branimir Maksimovic
modified by Vaclav Zeman
modified by Vaclav Haisman to use explicit SSE2 intrinsics and constexpr
*/