Skip to content

Instantly share code, notes, and snippets.

View Yolwoocle's full-sized avatar
💭
(。•̀ᴗ-)✧

Léo Bernard Yolwoocle

💭
(。•̀ᴗ-)✧
View GitHub Profile
@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
@TasfiqulTapu
TasfiqulTapu / get_itch_index.js
Last active August 25, 2024 11:10
Find rank in itch.io game jam "/entries" tab
// Please, make sure it is sorted by Popularity, Most rated, least rated or Karma
// Paste in your game id inside the string
const ID = "YOUR_ITCH_GAME_ID"
function find_rank(id){
let index = 0;
let quit = false;
// load all the games in list and find the game with matching id
document.querySelectorAll(".index_game_cell_widget").forEach((child, )=>{
@jasemagee
jasemagee / fortune-rnd-cowsay-lolcat.sh
Created May 30, 2015 09:42
Fortune with random cowsay character and lolcat
fortune | cowsay -f "$(ls /usr/share/cowsay/cows | sort -R | head -1)" | lolcat