This file contains hidden or 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
| ;Equivalent for setting Hotkeys in AHK: | |
| ;^g::GoThroughYesFlow | |
| HotKeySet('^g', 'GoThroughYesFlow') | |
| HotKeySet('^h', 'GoThroughNoFlow') | |
| Func GoThroughYesFlow() | |
| ; Don't wait forever for the program's box to appear, just wait one second | |
| ; Will be '0' if it times out | |
| $windowHandle = WinWait('Yes or No box', '', 1) | |
| If ($windowHandle = 0) Then |
This file contains hidden or 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
| using Dapper; | |
| using Microsoft.Data.Sqlite; | |
| using Newtonsoft.Json; | |
| namespace Dappering | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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
| Add-Type -assembly 'System.IO.Compression.FileSystem' | |
| function Zip-Directory([string]$Directory, $Destination) { | |
| if (!(Test-Path $Directory -PathType Container)) { | |
| throw "Directory does not exist: $Directory" | |
| } | |
| $Directory = (Resolve-Path $Directory).Path.TrimEnd('\') | |
| if ($null -ne $Destination) { |
NewerOlder