Skip to content

Instantly share code, notes, and snippets.

View Retrockit's full-sized avatar

SolutionMonk Retrockit

  • ShinyEnterprises
View GitHub Profile
@Retrockit
Retrockit / tsconfig.json
Created March 12, 2025 00:03
Modern TSConfig.Json
{
"compilerOptions": {
/* Type Checking */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
@Retrockit
Retrockit / normalize.css
Created February 16, 2025 20:10
Modern CSS Normalize
/* Document
* ========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
:where(html) {
line-height: 1.15; /* 1 */
@Retrockit
Retrockit / reset.css
Created February 16, 2025 20:08
Andy Bell - A (more) Modern CSS Reset
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Prevent font size inflation */
html {
@Retrockit
Retrockit / button-alignment-test.markdown
Created January 11, 2025 19:54
Button Alignment Test
@Retrockit
Retrockit / TurnOnLocationServices.sh
Created August 5, 2024 16:37
Shell Script to turn on Location Services on macos
#!/bin/bash
# Enable location services and restart the location daemon.
set -o errexit
set -o nounset
set -o pipefail
# Enable location services.
enable_location_services() {
/usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd LocationServicesEnabled -bool true
@Retrockit
Retrockit / array.cs
Created May 22, 2024 22:48
Array Homework
// Hello and welcome to the Array Homework program. This program is designed to demonstrate the use of arrays in C#.
// The program will create an array of 3 names, store them in an array variable
// prompt the user for a number to select a name from the array
// display the name selected by the user
// and check for invalid numbers entered by the user.
// The program will also demonstrate the use of a do while loop to display the names in the array.
string[] names = new string[3] { "John", "Jane", "Joe" };
int nameIndex;
@Retrockit
Retrockit / Car.cs
Created May 4, 2024 12:03
Car Class Example
public class Car
{
// Properties
public string Color { get; set; }
public string Model { get; set; }
public int Year { get; set; }
// Constructor
public Car(string color, string model, int year)
{
@Retrockit
Retrockit / homeworkAssignment.cs
Created April 13, 2024 20:55
FirstHomeworkofCSharpCourse
/*
Requirements: Create a Console Application that has variables
to hold a person's name, age, if they are alive, and their phone number.
You do not need to capture these values from the user.
*/
Console.WriteLine("Hello, and welcome to my first homework assignment");
// true or false
bool isColorBlue = true;
bool isNotColorBlue = false;
string[] colors = new string[] { "blue", "red"};
if (colors[1] != "red")
{
@Retrockit
Retrockit / stringinterpolation.cs
Created April 9, 2024 00:19
String interpolation Assignment
Console.WriteLine("Welcome to our first C# Application!");
Thread.Sleep(3000);
Console.WriteLine("What is your first name?");
var firstName = Console.ReadLine();
Thread.Sleep(3000);
Console.WriteLine($"Oh your name is {firstName}? Wonderful first name!");
Thread.Sleep(3000);
Console.WriteLine("Now, Please tell me your last name?");
var lastName = Console.ReadLine();
Thread.Sleep(3000);