Skip to content

Instantly share code, notes, and snippets.

View thacuber2a03's full-sized avatar
🧊
cube

ThaCuber thacuber2a03

🧊
cube
View GitHub Profile
@thacuber2a03
thacuber2a03 / kak-windows.md
Last active November 14, 2024 18:05
notes on running kakoune on windows

cygwin

  • get make, and gcc-c++ or clang
  • clone repo with core.autocrlf set to false:
    • git: git clone -c core.autocrlf=false https://github.com/mawww/kakoune
    • gh: gh repo clone mawww/kakoune -- -c core.autocrlf=false
  • if you forget to set core.autocrlf then get dos2unix and run it on all files in share/kak:
    find /path/to/share/kak/ -type f -exec dos2unix {} \;
@thacuber2a03
thacuber2a03 / canvas.lua
Last active November 10, 2024 18:14
a Love2D 11.x simple wrapper library for rendering games with a fixed update rate and chunky pixels
local floor = math.floor
local canvas = {}
canvas._version = "0.1.0"
canvas.frame, canvas.time = 0, 0
canvas.width = 240
canvas.height = floor(canvas.width / (16 / 9))
canvas.pixelPerfect = true
canvas.backgroundColor = { 0, 0, 0, 1 }
canvas.xOffset, canvas.yOffset = 0, 0
@thacuber2a03
thacuber2a03 / easel.h
Last active October 30, 2024 23:23
a header-only tweening library for C compatible with C89
#ifndef EASEL_H
#define EASEL_H
/*
** easel.h -- a tweening library compatible with ANSI/C89
** by @thacuber2a03, public domain, or CC0 where unapplicable
** release 30-10-2024 (dd-mm-yyyy)
*/
#include <string.h>
@thacuber2a03
thacuber2a03 / nothing-ls.lua
Last active July 17, 2024 03:12
the nothing language server
-- NOTE: to TC of the future
-- if you attempt to make an actual language server, *please* read the specification
-- https://microsoft.github.io/language-server-protocol/specifications/specification-current
-- here's a sample server so you can read along too, in case you ever forget how it's done
--
-- NOTE: for everyone else
-- the nothing language server: a (really buggy) language server that does nothing
-- this thing is public domain (we're talking https://unlicense.org/)
--
-- NOTE: for both
picotron cartridge // www.picotron.net
version 2
:: gfx/0.gfx
b64$LS1bW3BvZCxjcmVhdGVkPSIyMDI0LTA0LTA3IDE0OjU5OjUxIixtb2RpZmllZD0iMjAyNC0w
NC0xMSAwMTo0NDoxMyIscmV2aXNpb249MzUxN11dbHo0AG0AAAAFMQAA8xR7WzBdPXtibXA9cHh1
AEMgEBAE8PAsZmxhZ3M9MCxwYW5feAgAz3k9MCx6b29tPTh9LDEA------------------------
----------------------------------------51BtPTh9fQ==
:: gfx/.info.pod
b64$LS1bW3BvZCxjcmVhdGVkPSIyMDI0LTA0LTA3IDE0OjU5OjQwIixzdG9yZWQ9IjIwMjQtMDQt
--- striped animated interactive wallpaper
--- @thacuber2a03
local bg, fg -- set in _update
local spacing = 9 -- should hardcode?
local width, height = 480, 270
local position = 0
local velocity = 3
local maxVelocity = 0.2
@thacuber2a03
thacuber2a03 / pdgamestate.lua
Last active February 19, 2024 23:15
a modified version of hump.gamestate that works with the Playdate
--[[
Copyright (c) 2010-2013 Matthias Richter
2024 @thacuber2a03
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 22:02
Untitled PuzzleScript Script
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 16:01
wallcat (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@thacuber2a03
thacuber2a03 / readme.txt
Created August 14, 2023 15:53
wallcat (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html