To properly debug with Visual Studio, it's recommended that you use a debug build.
Follow the instructions for building Inkscape on Windows
and substitute the first cmake
command with:
To properly debug with Visual Studio, it's recommended that you use a debug build.
Follow the instructions for building Inkscape on Windows
and substitute the first cmake
command with:
import re | |
import idaapi | |
import sark | |
import abc | |
class IDATracker(idaapi.UI_Hooks): | |
__metaclass__ = abc.ABCMeta | |
def __init__(self): |
""" | |
Create a PDF with multiple layers to demonstrate issues with MS Edge printing. | |
See https://github.com/pymupdf/PyMuPDF-Utilities/blob/master/jupyter-notebooks/optional-content.ipynb for reference. | |
""" | |
import fitz # PyMuPDF | |
def main(): |
This is an implementation for my C++ Scoped Enums blogpost.
The names are a bit different than in the post, but the ideas are the same and should map across.
To remove the GB language pack:
Get-AppxPackage -AllUsers Microsoft.LanguageExperiencePacken-GB | Remove-AppxPackage
Then in the registry, remove the GB entry from Computer\HKEY_CURRENT_USER\Keyboard Layout\Preload
.
According to MSDN docs
the value should be 0x809
.
If it is not the last value, make sure to rename the others!
// This is actually a JShell script, because I am lazy | |
int c = 0; | |
int nxt() { | |
c += 1; | |
return c; | |
} | |
int l[] = {1, 2, 3, 4}; |
Edit the example.reg
file to suit your needs by changing the following:
Example
is the name of the registry key. It can be whatever you want, but must match the path in line 6.&
before the letter to use as a hotkey (underscored in the menu)%1
will be replaced with the path to the folder you right-clicked.Lastly, if you want it to be per-user and not global,
""" | |
Relevant PEPs: | |
- https://peps.python.org/pep-0572/ | |
- https://peps.python.org/pep-0614/ | |
""" | |
from functools import wraps | |
@lambda f: ( |
""" | |
This is a proof-of-concept for function overloading in Python | |
based on metaclasses and `__prepare__()`. | |
This code is intended as a fun experiment and an educational resource. | |
I highly recommend avoiding the overload patterns presented here in | |
real projects, as they will be very confusing to readers. | |
Additionally, this code does not handle edge cases and is very likely | |
to fail or behave unexpectedly. | |
""" |
"""Attribute Abbreviation. | |
This file contains a metaclass that can be used to abbreviate attribute names for a class. | |
This is a POC made for fun. | |
Do yourself a favor and NEVER do this in actual code. | |
You've been warned. | |
""" | |
class AbbreviationError(Exception): |