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 | |
| #? Lint Git-tracked text files for final newline character | |
| set -eo pipefail | |
| declare -i errcnt=0 | |
| declare -i total=0 | |
| declare -i done=0 | |
| while IFS= read -r file; do |
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
| #:package docopt.net@0.8.0 | |
| #nullable enable | |
| using DocoptNet; | |
| static int Main(ProgramArguments args) | |
| { | |
| foreach (var (name, value) in args) | |
| Console.WriteLine($"{name} = {value}"); |
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 | |
| set -eo pipefail | |
| prompt=$(cat <<'EOF' | |
| Suggest 3 one-liner & brief Git commit messages, each formatted EXACTLY as: | |
| MESSAGE:Text of the commit message | |
| Examples: |
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
| # Copyright (c) 2025 Atif Aziz | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| # this software and associated documentation files (the “Software”), to deal in | |
| # the Software without restriction, including without limitation the rights to | |
| # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| # the Software, and to permit persons to whom the Software is furnished to do so, | |
| # subject to the following conditions: | |
| # The above copyright notice and this permission notice shall be included in all |
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
| .PHONY: excuse | |
| EXCUSES = \ | |
| "It works on my machine." \ | |
| "That's a hardware problem." \ | |
| "Must be a caching issue." \ | |
| "Have you tried turning it off and on again?" \ | |
| "It's not a bug, it’s a feature." \ | |
| "Works fine in production." \ | |
| "The tests are flaky, ignore the red." \ |
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
| ; Assembly listing for method CSnakes.Runtime.Python.PyObject:Call(System.ReadOnlySpan`1[CSnakes.Runtime.Python.PyObject],System.ReadOnlySpan`1[CSnakes.Runtime.Python.PyObject]):CSnakes.Runtime.Python.PyObject:this (FullOpts) | |
| ; Emitting BLENDED_CODE for X64 with AVX - Windows | |
| ; FullOpts code | |
| ; optimized code | |
| ; rsp based frame | |
| ; partially interruptible | |
| ; No PGO data | |
| ; 15 inlinees with PGO data; 15 single block inlinees; 4 inlinees without PGO data | |
| G_M000_IG01: |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFramework>net9.0</TargetFramework> | |
| <OutputType>Exe</OutputType> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <None Remove="*.py" /> | |
| </ItemGroup> |
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
| <Query Kind="Statements"> | |
| <NuGetReference Version="0.8.1">docopt.net</NuGetReference> | |
| <Namespace>DocoptNet</Namespace> | |
| </Query> | |
| const string docopt = """ | |
| Usage: | |
| test.exe (-h | --help) | |
| test.exe cmd [-abc] INPUT |
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
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [] | |
| # /// | |
| import asyncio | |
| from functools import partial | |
| import json | |
| import os | |
| import sys |
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 | |
| # MIT License | |
| # | |
| # Copyright (c) Microsoft Corporation. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
NewerOlder