Skip to content

Instantly share code, notes, and snippets.

View APrettyCoolProgram's full-sized avatar
💭
Doing stuff

Chris Banwarth APrettyCoolProgram

💭
Doing stuff
View GitHub Profile
@APrettyCoolProgram
APrettyCoolProgram / DuDirectory.cs
Last active June 25, 2025 13:20
Does stuff with directories
/* DuDirectory.cs
* Does stuff with directories.
* b250625
* A Pretty Cool Program
* https://gist.github.com/APrettyCoolProgram/6f8cb8e700fdccc39bf5314aefec8703
*/
using System.IO;
namespace Du
@APrettyCoolProgram
APrettyCoolProgram / DuJson.cs
Last active June 21, 2025 12:30
Does stuff with JSON data.
/* DuJson.cs
* Does stuff with JSON data.
* b250621
* A Pretty Cool Program
* https://gist.github.com/APrettyCoolProgram/389006b4328b2f01b5c6da61e74d680d
*/
using System.Text.Json;
namespace Du
public class DuInternet
{
public static void DownloadFileFromURL(string downloadUrl, string filePath)
{
var client = new WebClient();
client.DownloadFile(downloadUrl, filePath);
}
}
@APrettyCoolProgram
APrettyCoolProgram / .gitignore
Last active March 26, 2024 13:53
.gitignore
<!-- u240326 -->
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## About this file
## -----------------------------------------------------------------------------
##
## - This file is a generic .gitignore file for GitHub repositories. You can
## find the current version here:
## https://gist.github.com/APrettyCoolProgram/1b0639062c6c0994b5767567e22ac738
##
@APrettyCoolProgram
APrettyCoolProgram / execute-a-system-command-dotnet-csharp.md
Last active March 11, 2024 14:12
Exectute a system command (.NET CSharp)

Exectute a system command (.NET CSharp)


This code was tested using .NET 7 and CSharp 12