Skip to content

Instantly share code, notes, and snippets.

View MrEnder0's full-sized avatar

Mr.Ender MrEnder0

  • The stars and beyond
View GitHub Profile
@MrEnder0
MrEnder0 / interrobang.ahk
Created March 21, 2024 03:01
allows for quick typing of interrobang ‽
#Requires AutoHotkey v2.0
::?!::‽
::!?::‽
@MrEnder0
MrEnder0 / main.rs
Created March 21, 2024 02:58
Square Triangle (I was bored in school)
use std::num::NonZeroU64;
fn main() {
triangle(40);
cube(40);
}
fn cube(size: u64) {
match NonZeroU64::new(size) {
Some(_) => {},
@MrEnder0
MrEnder0 / switches.txt
Last active May 5, 2024 06:14
Wooting Switches List
Wooting Lekker 60
Wooting Lekker 45
Geon Rapter HE
Gateron Magnetic Jade
Gateron KS-20 Magnetic (White or Orange)
Gateron KS37B
Milktooth Everglide's Sticky Rice
Milktooth Wuque Studio's WS Dash
@MrEnder0
MrEnder0 / main.rs
Last active January 8, 2024 08:11
Bash Terminal Gateway in Rust
// Code written by Mr.Ender for educational purposes only, version 2
use std::{process::Command, io};
fn main() {
let host_name = Command::new("sh")
.arg("-c")
.arg("hostname")
.output()
.expect("failed to get host name");
@MrEnder0
MrEnder0 / main.py
Created June 16, 2023 20:31
Agari.io Clone
import pygame
import random
pygame.init()
width, height = 800, 600
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("Agar.io Clone")
clock = pygame.time.Clock()
class Player:
@MrEnder0
MrEnder0 / game.lua
Last active June 16, 2023 20:32
A simple game made in retro gadgets
---@diagnostic disable: undefined-global
-- Retro Gadgets
local spriteFont = gdt.ROM.System.SpriteSheets["StandardFont"]
local sine : AudioSample = gdt.ROM.User.AudioSamples["sine.wav"]
local death : AudioSample = gdt.ROM.User.AudioSamples["death.wav"]
local win : AudioSample = gdt.ROM.User.AudioSamples["win.wav"]
local ticksPerSpawn = 45
local ticks = 0
@MrEnder0
MrEnder0 / sidebar.html
Last active February 13, 2023 01:26
HTML sidebar template
<!-- Sidebar -->
<div id="sidebar" class="sidebar_nav">
<h3 class="sidebar_nav_title">Menu</h3>
<nav>
<ul>
<a href="#home" class="sidebar_nav_link">Home</a>
<br><br>
<a href="#0" class="sidebar_nav_link">Folder oneꜜ</a>
<ul id="list">
<a href="#f1o1" class="f1o1">Option1</a>
@MrEnder0
MrEnder0 / docopt_template.nim
Created October 22, 2022 04:13
A docopt template for the nim language.
import docopt
const doc = """
Usage:
Program (about | a)
Program (reply | r) <prase> [options]
Options:
--forever Loops forever
"""