Skip to content

Instantly share code, notes, and snippets.

@harjitmoe
harjitmoe / system_b_cyrillic.txt
Last active May 29, 2018 12:03
IBUS table for Cyrillic using adapted GOST 7.79 System B mappings.
SCIM_Generic_Table_Phrase_Library_TEXT
VERSION_1_0
BEGIN_DEFINITION
NAME = System B
AUTHOR = HarJIT <harjit@harjit.moe>
LANGUAGES = ru
SERIAL_NUMBER = 20180528
UUID = db34eefb-cc62-46a8-85c2-d5b5a26444df
@harjitmoe
harjitmoe / nbtpickle.py
Last active November 1, 2019 16:04
Use the pickle/json/marshal basic API with NBT data.
#!/usr/bin/env python3
# -*- mode: python; coding: utf-8 -*-
""" Use the pickle/json/marshal basic API with NBT data. """
# Authored by HarJIT in 2019. This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at
# https://mozilla.org/MPL/2.0/.
from ctypes import c_byte, c_int16, c_int32, c_int64, c_float, c_double