This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- mode: python; coding: utf-8 -*- | |
| __doc__ = """\ | |
| Uses GlyphWiki data to determine which SVSes and IVSes for a codepoint refer to the same glyph. | |
| Usage: glyphwiki_aliased_ivses.py < dump_newest_only.txt > duplicate_ivses.txt | |
| GlyphWiki data download instructions: | |
| https://en.glyphwiki.org/wiki/GlyphWiki:AdvancedApplication#i0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- mode: python; coding: utf-8 -*- | |
| # By HarJIT in 2025. | |
| # 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/. | |
| """Adjusts the levels histogram of an input image to match that of a reference image.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Namespaces assumed: | |
| // xmlns="http://www.w3.org/1999/xhtml" | |
| // xmlns:xhtml2="http://www.w3.org/2002/06/xhtml2/" | |
| // xmlns:ev="http://www.w3.org/2001/xml-events" | |
| // By Thomas Hori, copyright 2017. Zlib licence. | |
| jQuery(function () { // Good practice to not assume $ at top level is jQuery (due to e.g. PrototypeJS). | |
| var $ = jQuery; | |
| //////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) Secret Labs AB 1997-2003. | |
| # Copyright (c) Fredrik Lundh 1995-2003. | |
| # | |
| # By obtaining, using, and/or copying this software and/or its | |
| # associated documentation, you agree that you have read, understood, | |
| # and will comply with the following terms and conditions: | |
| # | |
| # Permission to use, copy, modify, and distribute this software and its | |
| # associated documentation for any purpose and without fee is hereby | |
| # granted, provided that the above copyright notice appears in all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import subprocess, os, sys | |
| DEVNULL = open(os.devnull,"r+") | |
| ctlexes = ["initctl","systemctl"] | |
| provides = ["start","stop","restart","status"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: python; coding: utf-8 -*- | |
| """Unicode Names preprocessor for Python 2.""" | |
| # Modified from tokenize module as support for parsing Unicode names | |
| # had to be added. | |
| old_doc = """Tokenization help for Python programs. | |
| generate_tokens(readline) is a generator that breaks a stream of | |
| text into Python tokens. It accepts a readline-like method which is called |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image as pil_image | |
| from pygame import image as pygame_image | |
| def pil2pygame(im): | |
| return pygame_image.frombuffer(im.convert("RGBA").tostring(),im.size,"RGBA") | |
| def open_(name): | |
| try: | |
| im=pil_image.open(name) | |
| except IOError,e: #Compatibility with Pygame | |
| from pygame import base |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r"""Older, simpler interface for simple RegEx operations. | |
| Simple regular expression interface compatible with historic regexp | |
| module (based on the regexp.py from Python 1.1, which was included | |
| without modification in subseqent versions before eventual | |
| deletion). | |
| Ported by Thomas Hori to use the "re" API rather than the previous | |
| "regex" module from Python 1.x as its backend. |
NewerOlder