Skip to content

Instantly share code, notes, and snippets.

View musteresel's full-sized avatar

Daniel Jour musteresel

View GitHub Profile
@musteresel
musteresel / PySimpleGui-asyncio-tasks.py
Created March 15, 2021 23:44 — forked from ultrafunkamsterdam/PySimpleGui-asyncio-tasks.py
PySimpleGui Window loops as tasks in asyncio
import asyncio
import PySimpleGUI as sg
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
form = sg.FlexForm(
"Everything bagel", auto_size_text=True, default_element_size=(40, 1)
)
@musteresel
musteresel / decompress_lzf_file.py
Created March 15, 2021 17:02 — forked from dpanda/decompress_lzf_file.py
Using python-lzf module, decompress a whole LZF file
import argparse
import lzf
import os
import struct
def decompress(lzf_file, out_file):
chunk_number=1
while True:
@musteresel
musteresel / enum-class-indent.el
Last active October 24, 2016 07:31 — forked from nschum/gist:2626303
better "enum class" indent in Emacs
;;; enum-class-indent.el --- Fixing enum class indentation -*- lexical-binding: t; -*-
;; Keywords: c++
;; Version: 0.0.1
;;; Commentary:
;; This hack fixes indentation for C++11's "enum class" in Emacs.
;; http://stackoverflow.com/questions/6497374/emacs-cc-mode-indentation-problem-with-c0x-enum-class/6550361#6550361