Skip to content

Instantly share code, notes, and snippets.

View ZacharyPatten's full-sized avatar
👊
It's Morphin' Time

ZacharyPatten

👊
It's Morphin' Time
  • Kansas, United States
  • 11:37 (UTC -05:00)
View GitHub Profile
@ZacharyPatten
ZacharyPatten / 1-readme.md
Created February 29, 2024 01:01 — forked from SavageCore/1-readme.md
Install or update xone driver for Steam Deck (desktop shortcut and bash script)

Enjoying this script? Consider buying me a beer/coffee!

ko-fi

First time setting up your Deck? You may enjoy my setup guide. It'll get you started on Emulation.

Improvements

Main changes at initial release versus cdleveille's original script:

  • Added zenity for a basic "GUI"
using System.Drawing;
Console.WriteLine("Sliding Puzzle Image Crop");
if (!OperatingSystem.IsWindows())
{
Console.WriteLine("This app is only supported on Windows OS.");
return;
}
#pragma warning disable CA1416
int width;
@ZacharyPatten
ZacharyPatten / Program.cs
Last active May 31, 2023 20:04
Console FPS (fork)
// This code is a fork of the following:
// https://github.com/OneLoneCoder/CommandLineFPS/blob/master/CommandLineFPS.cpp
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
bool closeRequested = false;
@ZacharyPatten
ZacharyPatten / dotnet-console-games-script.md
Last active November 19, 2022 16:24
Script for my Solution 1 "dotnet-console-games" presentation.

Howdy, My name is Zachary Patten, but I often go by "ZP". I am from Kansas in the United States. I have been coding C# since 2010, and have been working proffesionally as a software developer since 2014. I have been a member of the C# discord since March 2019, and I am usually fairly active on the help channels. The topic of this presentation will be the dotnet-console-games repository on GitHub and last aproximately 30 minutes.

(mention script above webcam so if I'm awkwardly staring above the camera that is why) :P

  • ** show GitHub page ** (zoom in!)

Well, here is the repo. As the name sugguests, it is a collection of games implemented in C# console applications. There are currently 43 games. They are organized by "weight" so if you are a new developer and you want to try to code one of these games yourself, I would recommend you start with a lower "weight" game. Each game has it's own readme with more information if you click on the name. Each game also has a build status badge that indicates if t

using System;
using System.Text;
using System.Linq;
Console.Clear();
Console.WriteLine();
Console.WriteLine(" Frog Jump");
Console.WriteLine();
Console.WriteLine(" In this game two frogs are placed in the middle");
Console.WriteLine(" of a line of poles of randomly generated lengths");
Dictionary<string, Event> events = new();
while (true)
{
Console.Clear();
Console.WriteLine("Menu...");
Console.WriteLine(" 1. Add an event");
Console.WriteLine(" 2. List all events");
Console.WriteLine(" 3. Exit");
Console.WriteLine();
public readonly static string[,] House3x4 = Split(
//------1------2------3------4
@" __ ╥╥ ______________ ", //
@" ╱ │║║│ ╲ ", //
@" ╱ ‾‾ ╲ ", //
@" ╱ ╲ ", //
@"/__________________________╲", //1
@"│ │", //
@"│ ╔══╦══╗ ╔══╦══╗ │", //
@"│ ║██║██║ ║██║██║ │", //
using System;
using System.Threading;
int frame = 0;
string[] frames = new[]
{
@" O " + '\n' +
@" |_ " + '\n' +
@" |> " + '\n' +
@" /| ",
int numberOfTeams = 9;
Console.WriteLine("Matches:");
(int, int)[] matches = Statics.ScheduleRoundRobinMatches(numberOfTeams);
for (int i = 0; i < matches.Length; i++)
{
Console.WriteLine($"{i + 1}. #{matches[i].Item1} vs #{matches[i].Item2}");
}
public static class Statics
{
@ZacharyPatten
ZacharyPatten / gist:6172f642337e4adc9f404bca973d7182
Last active February 3, 2023 16:02
This is a prototype README for the dotnet GitHub organization

dotnet GitHub Dashboard

dotnet is a free, cross-platform, open-source developer platform for building many different types of applications