Skip to content

Instantly share code, notes, and snippets.

View Zurtar's full-sized avatar

Ethan Cook Zurtar

  • Student
  • Canada
  • 17:30 (UTC -04:00)
View GitHub Profile
@Zurtar
Zurtar / WinDirStat_RunUninstallers.ps1
Created May 5, 2025 17:11
Powershell script for a custom cleanup command in WinDirStat, it'll run the uninstaller associated with the program.
param(
[Parameter(Mandatory = $true)][String]$DirName,
[Switch]$WhatIf
)
$DisplayName = [System.IO.Path]::GetFileName($DirName)
$logFile = "$env:TEMP\UninstallScript.log"
function Log {
param ($Message)
@Zurtar
Zurtar / ShiftCipher
Last active October 1, 2018 18:35
Takes input from a Arduino serial monitor encrypts it with a random shift between 1 - 50 and then outputs the encrypted text
char incomingStr = 'a'; // for incoming serial data
String userInput;
String output;
int inputLength;
int x;
int numeric[120];
int shift;
int buttonPin = 13;
@Zurtar
Zurtar / alphabetDisplay
Created September 24, 2018 15:18
Displays the alphabet
//char types of variables can hold characters so we use this
char Alphabet[26] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}; //Here we declare a char array and then assign the letters of the alphabet to each place you use '' for a single character and "" for a string of characters
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
@Zurtar
Zurtar / ledGame.ino
Created September 24, 2018 15:14
A game using 5 leds and a button as well as a arduino the object of the game is to press the button when the middle LED is lit.
//Stopgame
//Ethan Cook
int LEDcontrolpin[5] = {2, 3, 4, 5, 6}; //Declares the array of LED pins that will be used
int buttonPin = 7; //Our button
int x; // have to declare globaly because its used in the loop and function
int i; // ^^^^
int levelTime; //Using int because the max value it will be in 1000
@Zurtar
Zurtar / OrcarinaDiscovery.ino
Created September 24, 2018 15:13
Plays the discovery noise to piezo speakers using the arduino.
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
#define NOTE_GS1 52
@Zurtar
Zurtar / stopwatch.ino
Last active September 24, 2018 15:11
A basic stopwatch and lap list display using arduino and two buttons
/* This version seems to work :D */
//Global Variables
int buttonPin = 2;
int lapbuttonPin = 3;
int x = 0;
int i = 0;