This file contains 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
"""A QPlainTextEdit subclass with completion and some extras | |
Adapted from | |
https://doc.qt.io/qt-5/qtwidgets-tools-customcompleter-example.html | |
with the intent to be a minimally complicated way to get as-you-type | |
autocomplete in a QTextEdit. | |
As such, a lot of needless complexity has been removed, and odd design choices | |
which make the code needlessly difficult to maintain have been corrected. |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
"""A quick helper for splitting manga pages in a CBZ containing two-page | |
spreads and then bundling them into base64 URLs in an HTML file so the mobile | |
Safari preview inside the iOS Files app can act as a quick-and-dirty manga | |
reader. | |
Takes .cbz files and produces large .html files. | |
Currently assumes first image will be a cover and doesn't split it. |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
"""A quick helper for splitting manga pages so Calibre doesn't split them for | |
you and present them in the wrong order. | |
Takes and produces .cbz files. | |
Currently assumes first image will be a cover and doesn't split it. | |
""" |
This file contains 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/python | |
"""Quit and dirty port of the old PyGTK dragtargets.py to PyGObject""" | |
import gi | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('Gdk', '3.0') | |
from gi.repository import Gdk, Gtk | |
This file contains 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
<?php | |
// NOTE: If your goal is to check for maximum compatibility | |
// rather than ZIP64 specifically, hedge against Zip | |
// implementations which use signed integer variables by | |
// changing 0xFFFF and 0xFFFFFFFF to 0x7FFF and 0x7FFFFFFF | |
// and then add a check for which compression algorithm | |
// each statIndex call says is in use. | |
function isZipSafe($path) { |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
"""A helper to reset play statistics in gamelist.xml files. | |
Originally developed for preparing a Batocera Linux device to be installed as a | |
gift to the family after it had been recording play statistics in response to | |
QA and integration testing, but should work on any EmulationStation-based | |
distro. | |
--snip-- |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
"""A simple tool for taking consistent screenshots of PySolFC | |
Requires wmctrl, xprop, and ImageMagic's import command to be installed. | |
""" | |
__author__ = "Stephan Sokolow (deitarion/SSokolow)" | |
__appname__ = "PySolFC Screenshot Helper" | |
__version__ = "0.0pre0" |
This file contains 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
#!/bin/zsh | |
# Modified gentoo prompt theme | |
# customized by Stephan Sokolow for git branch and virtualenv display based on: | |
# http://www.jukie.net/~bart/blog/20071219221358 | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/#comment-4166 | |
# https://virtualenvwrapper.readthedocs.io/en/latest/tips.html | |
# | |
# See also: | |
# https://www.topbug.net/blog/2016/10/11/speed-test-check-the-existence-of-a-command-in-bash-and-zsh/ |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
"""Single-Line QPlainTextEdit With Inline Spell Check mimicking QLineEdit | |
Original PyQt4 Version: | |
https://nachtimwald.com/2009/08/22/qplaintextedit-with-in-line-spell-check/ | |
Multi-Line Version: | |
https://gist.github.com/ssokolow/0e69b9bd9ca442163164c8a9756aa15f | |
TODO: |
This file contains 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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Dodge The Creeps | |
Categories=Game;ArcadeGame; | |
Icon=com.ssokolow.DodgeTheCreeps | |
Exec=godot-runner | |
Terminal=false |
NewerOlder