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 / 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 / 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 / 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 / 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 / tech2024.md
Last active January 3, 2024 21:43
Technologies I might learn if I'm not too lazy in 2024

Technologies I want to learn in 2024

  • UX/UI (Mainly Figma)*
  • Electron / Android Studio*
    • Trying out expo since I don't like React Native that much
  • Clang*
  • Serverless and runnin on the edge (Flame, Vercel, S3, SWS, SQS, ...)

* = Already know but want to get better at

@Ari24-cb24
Ari24-cb24 / webpconv.py
Created August 27, 2023 19:17
Quick webp converter for web
import argparse
from PIL import Image
import os
def dir_path(string):
if os.path.isdir(string):
return string
else:
raise NotADirectoryError(string)
@Ari24-cb24
Ari24-cb24 / pyramid.py
Created March 17, 2023 22:29
No one dares to make this shorter
p=lambda n:print(*[" ".join(*(str(k)*k))for k in range(1, n+1)],sep="\n")
@Ari24-cb24
Ari24-cb24 / tech2023.md
Last active December 28, 2023 22:16
Technologies I might learn if I'm not too lazy in 2023

Technologies I want to learn in 2023

  • vlang
  • Web UX/UI
  • Flutter
@Ari24-cb24
Ari24-cb24 / 1337.rock
Created June 6, 2022 09:42
Meaningless Life
My soul is a beautiful dangerous pineapple
My heart is a beautiful dangerous yielder
The meaning is nothing!
The money is 1000
Knock my soul down, down, down!
The enemy is hot but god!
Put my heart without the money into my heart
Put my soul without my heart into my soul
@Ari24-cb24
Ari24-cb24 / .env
Last active June 6, 2022 09:37
Discord Javascript & CSS Injector
PORT=31337
APPLICATION_ID=1337