Skip to content

Instantly share code, notes, and snippets.

View Ari24-cb24's full-sized avatar
🔵
enjoying css

Ari van Houten Ari24-cb24

🔵
enjoying css
View GitHub Profile
@Ari24-cb24
Ari24-cb24 / why.md
Created March 18, 2024 15:00
Css is weird but makes sense
a:not(.no_default) {
    text-decoration: none;
    color: inherit;
}

a:not(.no_default):hover {
    text-decoration: none;
}
@Ari24-cb24
Ari24-cb24 / reset.css
Last active June 10, 2024 17:10
Personal CSS Reset
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
text-wrap: pretty;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, ins, kbd, q, s, samp,
@Ari24-cb24
Ari24-cb24 / eventhandler.ts
Last active March 31, 2024 16:40
Simple, small eventhandler for any ts project
// Event types have a namespace to aid in finding bugs
export enum EventType {
EXAMPLE = 'namespace:example',
}
const EventHandler = {
callbacks: {} as { [key in EventType]: { [id: string]: Function }},
on: (callerSig: string, type: EventType, callback: Function) => {
if (!EventHandler.callbacks[type]) {
EventHandler.callbacks[type] = {};
@Ari24-cb24
Ari24-cb24 / AppConfig.vb
Created May 17, 2024 13:47
Config Handler for vbnet 2.4+. System.Configuration must be linked
Imports System.Configuration
Imports System.Reflection
Public Class AppConfig
Private _config As Configuration
Private _settings As AppSettingsSection
Public Function GetProperty(propertyName As String) As String
If Not HasProperty(propertyName) Then
Return Nothing
@Ari24-cb24
Ari24-cb24 / cam.py
Created October 7, 2024 10:57
Cam for school
import cv2
import time
import keyboard
import random
import threading
import pygame
BLOCKSIZE = 4
STOP_VID = False