Skip to content

Instantly share code, notes, and snippets.

View ottowayi's full-sized avatar

Ian Ottoway ottowayi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ottowayi on github.
  • I am iottoway (https://keybase.io/iottoway) on keybase.
  • I have a public key ASB-akC0Qg6BFdITj1yOdx0T0_3UXs8Z9eYfYxLBQmTi3wo

To claim this, I am signing this object:

@ottowayi
ottowayi / make_installer.py
Created November 22, 2020 15:39
Custom pynsist script - Windows Start Menu Tile Support
"""
This script subclasses the pynsist InstallerBuilder class to add support for tiles in the Windows Start Menu.
It also inlcudes generating and storing documention in the installer as well as publishing the docs to Confluence.
This project is also a 'toolkit' of sorts with multiple individual apps inside of it.
Each 'app' has it's own start menu shortcut.
"""
import nsist
@ottowayi
ottowayi / natural_sort_proxy_model.py
Last active January 2, 2022 17:54
Qt Natural Sort Model
re_human_key = re.compile(r'(\d*\.\d+|\d+)')
class NaturalSortProxyModel(QSortFilterProxyModel):
_key_cache = {}
def _human_key(self, key):
if key is None:
key = ''