Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View Auios's full-sized avatar
🧹
Cleaning up after you since 1972

Connor O'Connor Auios

🧹
Cleaning up after you since 1972
View GitHub Profile
@Auios
Auios / settings.json
Last active September 18, 2025 18:43
vscode settings
{
"explorer.sortOrder": "default",
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"workbench.iconTheme": "vscode-icons",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.largeFileOptimizations": true,
"editor.rulers": [
@Auios
Auios / Program.cs
Created February 2, 2025 16:45
Student Grade Calculator Test
// You have been hired as a programmer by the University of O'Connor to create a program that will calculate the final grades of the students.
// Professors are spending too much time calculating grades manually, so we need to automate the process.
// Requirements:
// 1. Convert the average score to a letter grade using the following scale: A: 90-100, B: 80-89, C: 70-79, D: 60-69, F: 0-59
// 2. Display the results in the format: "Student Name: Letter Grade (Average Score)"
// 3. Organize the students name in alphabetical order from A to Z in the output.
// You are allowed to change anything in the code except:
// 1. The LoadStudentDataFromSystem method and its contents
@Auios
Auios / README.md
Last active November 12, 2024 15:32
Making iTerm2 More Familiar

1. Configure Basic Key Bindings for Familiarity

  1. From the iTerm2 menu, go to Settings.

  2. Select the Profiles tab.

  3. Head to the Keys section.

  4. This will make common editing shortcuts work as expected.

    Natural Text Editing in iTerm2


REM Random Characters
10 FOR I = 15360 TO 16383
20 POKE I, INT(255 * RND(0))
30 NEXT I
40 END
REM Random Sounds
10 FOR I = 1 TO 10
20 SOUND INT(255 * RND(0)), 5
30 IF INKEY$ <> "" THEN END
import { Interaction, InteractionType } from "@/DiscordTypes";
import EventContext from "@/EventContext";
import nacl from "tweetnacl";
function strToUint8Array(value: string, format?: string): Uint8Array {
if (!value) {
return new Uint8Array();
}
if (typeof value === "string") {
new AudioProfile(nameChatSound)
{
fileName = "./nameSound.wav";
description = AudioGui;
preload = true;
};
/// Returns whether or not a tab-delimited %list contains a given %item.
/// %list: The list of items to check against.
/// %item: The item to check for.
@Auios
Auios / Program.cs
Last active October 30, 2023 02:57
Loran Visual
using Raylib_cs;
using System.Numerics;
namespace LoranVisual;
public class Program {
static float C = 299792.458f;
static float MicrosecondsToSeconds(float microseconds) {
return microseconds / 1_000_000f;
public class SimplexNoise {
private static readonly int[] perm = new int[512];
private static readonly int[][] grad2 = new int[][] {
new int[] {1, 1}, new int[] {-1, 1}, new int[] { 1, -1 }, new int[] { -1, -1 },
new int[] { 1, 0 }, new int[] { -1, 0 }, new int[] { 1, 0 }, new int[] { -1, 0 },
};
private static readonly float F2 = 0.5f * (float)Math.Sqrt(3.0) - 0.5f;
private static readonly float G2 = (3.0f - (float)Math.Sqrt(3.0)) / 6.0f;
using Raylib_CsLo;
using System.Numerics;
public static class Gfx {
public static void Line(Vector2 start, Vector2 end, Color color, float lineSize = 1) {
RlGl.rlSetTexture(RlGl.rlGetTextureIdDefault());
RlGl.rlSetLineWidth(lineSize);
RlGl.rlColor4ub(color.r, color.g, color.b, color.a);
RlGl.rlBegin(RlGl.RL_LINES);
@Auios
Auios / Dot.cs
Last active January 20, 2023 05:25
using Raylib_CsLo;
using System.Numerics;
public class Dot {
static Random rnd = new Random();
Vector2 position;
public Dot(Vector2 position) {
this.position = position;