Skip to content

Instantly share code, notes, and snippets.

View H4ppy-04's full-sized avatar
🎯
Focusing

Joshua H4ppy-04

🎯
Focusing
View GitHub Profile
@H4ppy-04
H4ppy-04 / main.py
Created June 7, 2022 02:38
pygame template file
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
File: main.py
Author: Joshua Rose
Version: 0.1.0
Description: ...
"""
import os
from __future__ import annotations
import sys
import os
import logging
from typing import Union
import pygame
from pygame.surface import Surface, SurfaceType
import util
@H4ppy-04
H4ppy-04 / main.js
Created January 3, 2023 06:09
Javascript canvas template
function randint(a=0, b) {
/* Return random whole number between a and b */
return Math.floor(Math.random() * (b - a + 1)) + a;
}
function choice(list) {
/* Return positive integer to index list */
index = Math.abs(Math.floor(Math.random() * (list.length - 0 + 1)) - 1);
return list[index];
}
@H4ppy-04
H4ppy-04 / mountains.txt
Created January 4, 2023 08:49
Ascii art of some mountains
/\
/**\
/****\ /\
/ \ /**\
/ /\ / \ /\ /\ /\ /\ /\/\/\ /\
/ / \ / \ / \/\/ \/ \ /\/ \/\ /\ /\/ / / \/ \
/ / \/ /\ \ / \ \ / \/ / / \/ \/ \ / \ \
/ / \/ \/\ \ / \ / / \
__/__/_______/___/__\___\__________________________________________________
___ ___ _ _
| \/ | | | (_)
| . . | ___ _ _ _ __ | |_ __ _ _ _ __ ___
| |\/| |/ _ \| | | | '_ \| __/ _` | | '_ \/ __|
| | | | (_) | |_| | | | | || (_| | | | | \__ \
\_| |_/\___/ \__,_|_| |_|\__\__,_|_|_| |_|___/
@H4ppy-04
H4ppy-04 / template.tex
Created March 28, 2023 03:18
Template
\documentclass[a4paper,14pt,oneside,openany]{memoir}
\usepackage[left=30mm, right=15mm, top=20mm, bottom=20mm]{geometry}
\pagestyle{plain}
\parindent=1.25cm
\usepackage{indentfirst}
\usepackage[english]{babel}
\setsecnumdepth{subsection}
@H4ppy-04
H4ppy-04 / stuff
Created April 4, 2023 05:35
stuff
During the class, we collaborated as a group to brainstorm the habits of successful individuals. We also got to know each other by sharing our names and hobbies. Afterwards, we reported our findings to the instructor within the given time frame. The course covered the fundamentals of engineering, its importance, and the specific area of expertise of our lecturer, Dr. Lalbakhsh, which is radio and telecommunications engineering. The session also included a tutorial on navigating the online portal and a ten-minute break. We were informed that a substitute teacher would be taking tomorrow's lesson. Additionally, we learned that there would be three group assignments worth 50% of our grade, and the significance of having strong communication skills as an engineer. The instructor emphasized that the first half-hour of the class was crucial, and it's acceptable to arrive up to five minutes late. We also discovered how to navigate to Woodsville Road using Google Maps when Edwards' phone guided us. Overall, it was an
@H4ppy-04
H4ppy-04 / install_guide.md
Created April 5, 2023 02:46
Arch Linux Installation for Beginners

Arch Rice

This file is meant to be a guide for me (and anyone else) that can just simply install something that looks decent with minimal effort. A lot of the stuff I see nowdays isn't that well layed out (apart from the actual arch docs) but even then, the documentation couldn't possibly format (into a simple, consise manner) the great amount of errors and edge cases one might encounter when trying to follow a step. Unfortunately this guide doesn't cover that either, as that would take me... years? Dedcades? Probably a really long time.

But nonetheless, this guide is for myself and suits my needs but contributions are welcome.

Installation

This part is 1/2 of the installation when it comes to this sort of setup. This installation component should cover essentially

@H4ppy-04
H4ppy-04 / do_linux.md
Created December 7, 2023 01:43
my linux workflow

Doing Linux


Table of Contents

  • Dots! (aka dotfiles)
@H4ppy-04
H4ppy-04 / .vimrc
Created February 6, 2024 04:12
My latest (as of February 6) vimrc configuration
if &compatible
finish
endif
if has('autocmd')
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif