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
| #!/usr/bin/env python3 | |
| import csv | |
| from collections import defaultdict | |
| from decimal import Decimal, InvalidOperation, ROUND_HALF_UP | |
| from pathlib import Path | |
| import argparse | |
| def parse_args(): | |
| p = argparse.ArgumentParser( | |
| description="Aggregate total received per recipient from each donor." |
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
| Definition sig_fst {A B} {p q : {x : A | B x}} (H : p = q) | |
| : proj1_sig p = proj1_sig q := | |
| eq_rect _ (fun z => proj1_sig p = proj1_sig z) eq_refl _ H. | |
| Definition sig_snd {A B} {p q : {x : A | B x}} (H : p = q) | |
| : eq_rect _ B (proj2_sig p) _ (sig_fst H) = proj2_sig q := | |
| match H with | |
| | eq_refl => eq_refl | |
| end. |
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
| // Chi-like syntactic sugar layer on top of stdlib http.ServeMux. | |
| package main | |
| import ( | |
| "net/http" | |
| "slices" | |
| ) | |
| type ( | |
| middleware func(http.Handler) http.Handler |
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
| # GitHub Gists | |
| */ | |
| # Environment | |
| *env* |
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
| #!/usr/bin/env bash | |
| export LC_ALL=C | |
| set -eu | |
| if test "$(id -u)" -ne 0; then | |
| echo "install: must be root" | |
| exit 1 | |
| fi |
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
| # GitHub Gists | |
| */ | |
| # Environment | |
| *env* |
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
| @echo off | |
| :Initialisation | |
| REM YOUR INITIALISATION CODE HERE | |
| :Administrator_Permission | |
| REM Complying with Administrator Permissions | |
| :Check | |
| REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically |
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
| @echo off | |
| :Initialisation | |
| title Lenovo Fn and Function Keys Indicators | |
| :Administrator_Permission | |
| REM Complying with Administrator Permissions | |
| :Check | |
| REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically |
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
| setlocal | |
| for /f "delims=" %%I in ('powershell -noprofile "iex (${%~f0} | out-string)"') do ( | |
| echo You chose %%~I | |
| ) | |
| goto :EOF | |
| : end Batch portion / begin PowerShell hybrid chimera #> | |
| Add-Type -AssemblyName System.Windows.Forms |
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
| setlocal | |
| set "psCommand="(new-object -COM 'Shell.Application')^.BrowseForFolder(0,'Please choose a folder.',0,0).self.path"" | |
| for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I" | |
| endlocal |
NewerOlder