Skip to content

Instantly share code, notes, and snippets.

View mkarneim's full-sized avatar

Michael Karneim mkarneim

  • Munich, Germany
View GitHub Profile
@mkarneim
mkarneim / CustomUberPost.shader
Created August 4, 2023 12:26
UberPost.shader that also works together with Oculus Quest Passthrough mode
Shader "CustomUberPost" // "Hidden/Universal Render Pipeline/UberPost"
{
HLSLINCLUDE
#pragma exclude_renderers gles
#pragma multi_compile_local_fragment _ _DISTORTION
#pragma multi_compile_local_fragment _ _CHROMATIC_ABERRATION
#pragma multi_compile_local_fragment _ _BLOOM_LQ _BLOOM_HQ _BLOOM_LQ_DIRT _BLOOM_HQ_DIRT
#pragma multi_compile_local_fragment _ _HDR_GRADING _TONEMAP_ACES _TONEMAP_NEUTRAL
#pragma multi_compile_local_fragment _ _FILM_GRAIN
#pragma multi_compile_local_fragment _ _DITHERING
-- lobby.lua
-- /lua require('lobby').start({gameName="last-man-standing", arenaName='gold', width=4, height=2, minPlayers=2, maxPlayers=4})
local pkg = {}
local module = ...
local startGame
local terminate
local playSound
local playNote
local singleton
-- last-man-standing.lua
-- /lua require('last-man-standing').start("gold",{"mickkay","piggy"})
local pkg = {}
local module = ...
local log
local singleton
local contains
local remove
@mkarneim
mkarneim / DokumentRowPM.java
Created May 3, 2018 08:51
Beanfabrics Example ....
package de.sanacorp.zado.client.dokument.browse;
import org.beanfabrics.model.IntegerPM;
import org.beanfabrics.model.PMManager;
import org.beanfabrics.model.PresentationModel;
import org.beanfabrics.model.TextPM;
import de.sanacorp.appframeworkfx.pm.quickfilter.QuickFilterablePM;
import de.sanacorp.zado.common.dokument.browse.DokumentRowDto;
@mkarneim
mkarneim / gol.lua
Last active March 9, 2018 13:10
Conway's Game of Life for Minecraft
--[[ mickkay/gol.lua
Conway's Game of Life for Minecraft
Created with Wizards of Lua Magic
by MickKay
## How To Run this Spell Inside Minecraft?
1) Install the Wizards of Lua modification into your Minecraft game.
Instructions available at http://www.wizards-of-lua.net/installation
@mkarneim
mkarneim / first.lua
Created February 23, 2018 09:38
Sample with multiple files
-- first.lua
function first()
print("first")
end
@mkarneim
mkarneim / tetris.lua
Last active June 10, 2018 14:03
Tetris Clone for Wizards of Lua, originally created by Adrodoc55
--[[
This is a simple Tetris clone for Minecraft
created with Wizards of Lua magic
by Adrodoc55
with some minor patches by mickkay.
To load this Gist into your server, just execute the following command:
/wol shared-file gist get https://gist.github.com/mkarneim/a86a1e7a6c02fbd850d2ef4d4b618fb3
Then, to create the game, orient yourself facing north,
@mkarneim
mkarneim / heads.lua
Created January 11, 2018 21:36
Wol Spell
local pkg = {}
local base = Vec3(0,0,0)
local options = {
numHeads = 5
}
local data = {}
local function log(text)
@mkarneim
mkarneim / claim.lua
Created January 11, 2018 21:31
WoL Claim spell
local pkg = {}
local base = Vec3(0,0,0)
local homes = {}
local owners = {}
local width = 16*1
local function saveData()
local text = ""
@mkarneim
mkarneim / zones.lua
Last active January 11, 2018 20:47
Wizards of Lua - Zones
require "mickkay.wol.Vec3"
local pkg = {}
local diamond = {
"diamond_sword", "diamond_axe", "diamond_pickaxe", "diamond_shovel"
}
local iron = {
"iron_sword", "iron_axe", "iron_pickaxe", "iron_shovel"
}