Skip to content

Instantly share code, notes, and snippets.

View DraconicDragon's full-sized avatar
💭
meow?

Drac DraconicDragon

💭
meow?
View GitHub Profile
Emotional Labor
Intellectual Property
Social Capital
Cognitive Bias
Hermeneutic Circle
Systemic Racism
Creative Destruction
Informed Consent
Narrative Identity
Hedonic Treadmill
@sidewinder94
sidewinder94 / HonkaiLauncher.ps1
Created February 18, 2020 20:51
Honkai Impact 3rd Locale Auto-Change
#Requires -RunAsAdministrator
#Create shortcut with target : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -File "K:\miHoYo\Honkai Impact 3rd\HonkaiLauncher.ps1"
$currentDir = (Split-Path $script:MyInvocation.MyCommand.Path)
$originalCulture = Get-Culture
Set-Culture 'en-GB'
@AlexanderBaggett
AlexanderBaggett / gist:d1504da93727a1778e8b5b3453946fc1
Last active October 15, 2024 08:56
Full win32 window from C# with Pinvoke
In this post, .net platform has this pinvoke mechanism where it is allowed that you call into the Native windows .
this is extremely useful when you have some 3rd party libraries or if you try to program against with the low-level windows APIS.
One of the typic application htat utilize the Lowe-level windows apis are those Native win32 applications. Where you creat a message pump with the necessary WNDCLASSEX to represent/register the window message pump and message handler process. What you will deal with the win32 applications include the following.
RegisterClassEx, CreateWindowEx, GetMessage(), TranslateMesage(), and DispatchMessage(...).
to be able to use the Window API, you have to declare tons of Structure and PInvoke Method, while you can find help from the Pinvoke.Net.
First, we will introduce some of the win32/user32 functions and their relative structure definitions.
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 30, 2025 16:27
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux