Skip to content

Instantly share code, notes, and snippets.

View marcs-feh's full-sized avatar
🍺
There's only one beer left

marcs feh marcs-feh

🍺
There's only one beer left
View GitHub Profile
@marcs-feh
marcs-feh / keybindings.json
Created January 15, 2025 21:01
user settings for vscode
[
{
"key": "ctrl+shift+r",
"command": "workbench.action.webview.reloadWebviewAction"
},
{
"key": "ctrl+s",
"command": "workbench.action.files.saveWithoutFormatting"
},
{
@marcs-feh
marcs-feh / Array.lua
Created January 23, 2025 01:50
lua array
local Array = {
__tostring = function(self)
if #self == 0 then
return '[]'
end
local s = '['
for _, v in ipairs(self) do
s = s .. tostring(v) .. ', '
end
return s:sub(1, #s - 2) .. ']'
@marcs-feh
marcs-feh / jss.odin
Last active February 11, 2025 02:10
JSS
package jss
import "core:fmt"
import "core:time"
import "core:mem"
import "core:math"
import "core:math/rand"
Task :: distinct int
package fnt
import "core:mem"
import "core:fmt"
import "core:math"
import "core:time"
import rl "vendor:raylib"
import ttf "vendor:stb/truetype"
@marcs-feh
marcs-feh / fossil_style.css
Created April 14, 2025 00:49
fossil_style.css
:root {
--background-0: hsl(0, 0%, 12%);
--background-1: hsl(0, 0%, 18%);
--background-2: hsl(0, 0%, 23%);
--foreground-2: hsl(0, 0%, 50%);
--foreground-1: hsl(0, 0%, 75%);
--foreground-0: hsl(0, 0%, 95%);
--background-code: hsl(0, 0%, 10%);