Skip to content

Instantly share code, notes, and snippets.

View finnmglas's full-sized avatar
🚀
Working on my company

Finn Glas finnmglas

🚀
Working on my company
View GitHub Profile
@finnmglas
finnmglas / Shadcn-Components.md
Created April 25, 2025 09:39
all shadcn components - list of the best shadcn components
@finnmglas
finnmglas / boot_sector_games_dataset.json
Last active February 20, 2025 07:54
A cool json list dataset of 512 byte / boot sector games / binaries (games in strings base64 encoded). Keys contained: link, binary base64 encoded, assembly code; Total: 33 games à 512 Bytes
{
"tetros": {
"link": "https://github.com/daniel-e/tetros",
"data": "McCO2DHAzRC0AbkHJs0QtgO5EgBR/sayDbkOALt4AOi2AID+FXQJQrkMADHb6KgAWeLhxgYAf2S0As0aoAJ/MdCzH/fjQKICfzHSuwcA9/PA4gOSuhIE6OUAdf7o0gAxyYoOAH9RYDHJurgLtIbNFWFQtAHNFonBWHRF6K8AgP1LdBGA/Uh0HoD9TXQQxgYAfwrrI0ropwB0HULrGkLongB0FErrEYjDQECoB3UCLAjojAB0AojY6HcAUDDkzRZYWeKi6GcA/sbodAB0iv7O6F8A6BYA6Vv/tALNELggCc0Qw7QCzRC0CM0Qw2C2Ff7OdDkx27kMALIO6Ob/wOwEdAJDQuL0gPsMdeRgsg65DABR/s7ozP/+xojjsQHouf9CWeLtYf7OdeLowP9hwzHb6wmIw8DrA0PA4wRDid/rA78AAGAx24jDi4eGfTHbuQQAUbEE9sSAdB1QCf90DmCJ+zDAuQEA6HD/YesJ6HT/wOwEdAFDWNHgQuLZgOoE/sZZ4s4I22HDREQA8EREAPBgIgDiQGQAjmBEAC4gYgDoAGYAZgBmAGYAxkAmAMZAJgBOQEwA5ICMAGxAjABsQIyAAAEAFwACAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVao=",
"description": "Tetris Clone. Full color, no score. This was one of the older boot sector games out there. ",
"asm": "; Tetris\n\torg 7c00h\n\n; ==============================================================================\n; DEBUGGING MACROS\n; ===
@finnmglas
finnmglas / julia.jl
Created February 1, 2025 21:19
For Julia ❤
using Printf, Dates, TerminalMenus
function get_terminal_size()
rows, cols = displaysize(stdout)
return rows, cols
end
function heart_ascii(scale, term_rows, term_cols)
heart = []
heart_width = round(Int, 40 * scale) # Use `round(Int, value)`
@finnmglas
finnmglas / Ducky2Digispark.py
Created January 29, 2021 07:55
Create arduino C++ code from duckyscripts
#This script will be used to translate duckyscript
#(see https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript)
#To C / C++ source code which can be compiled for the Digistump AVR Boards
#(also called Digispark)
#Makes use of https://github.com/adnan-alhomssi/DigistumpArduinoDe/blob/master/digistump-avr/libraries/DigisparkKeyboard/DigiKeyboardDe.h
#Last Edit: 18.09.2019
import getopt, sys
inputfile = "" #duckyscript file
@finnmglas
finnmglas / bootstrap-shields-badges.html
Last active September 4, 2024 23:13
Bootstrap badges like on shields.io
<!-- Create badges / shields like on shields.io
-- but with bootstrap.
--
-- Fully adjustable, use this for whatever you want ^^
--
-- Finn M Glas, 2020-07-06
-->
<!-- Regular badges (value-only) -->