Skip to content

Instantly share code, notes, and snippets.

@tazdij
tazdij / tiles.lua
Created April 1, 2025 22:04 — forked from KaffeDiem/tiles.lua
Isometric Tiles in Lua
-- Drawing the map as isometric tiles
self.tilesHovered = {} -- Reset the tilesHovered table every frame
for i = 1, #self.map do -- Loop trough rows
for j = 1, #self.map[i] do -- Loop through cols in the rows
if self.map[i][j] ~= 0 then -- If there is a tile to draw
local x =
self.x + -- Starting point
(j * ((self.tileWidth / 2) * self.scale)) - -- The width on rows
(i * ((self.tileWidth / 2) * self.scale)) -- The width on cols
@tazdij
tazdij / proxmox_resize_pve-root
Created February 11, 2022 21:01
Proxmox - Resize pve-root
# Check disk space before
df -h
# Delete local-lvm storage in gui
lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
resize2fs /dev/mapper/pve-root
@tazdij
tazdij / variant.cc
Created December 29, 2015 05:53 — forked from tibordp/variant.cc
A simple variant type implementation in C++
#include <iostream>
#include <utility>
#include <typeinfo>
#include <type_traits>
#include <string>
template <size_t arg1, size_t ... others>
struct static_max;
template <size_t arg>
@tazdij
tazdij / dupscout.py
Created February 9, 2015 03:27
A simple python script to detect and remove duplicate files a one or more locations, seperated by a semicolon.
# Written by Don Duvall
# Licensed under MIT
# Date 2015-02-08
# Website: http://deduvall.com/ & http://donaldduvall.com
# Email: [email protected]
#
import os
import hashlib
class DupScout: