Skip to content

Instantly share code, notes, and snippets.

View InDieTasten's full-sized avatar
🔮
estimating efforts

InDieTasten

🔮
estimating efforts
View GitHub Profile
@InDieTasten
InDieTasten / Program.cs
Created June 24, 2020 18:32
Interface Design for Textadventure Engine
var game = new TextAdventureGame();
game.AddScene("Start", new Scene
{
TextScenario = "Du stehst am Bahnhof. Was möchtest du tun?",
Options = new SceneOptions[]
{
new SceneOptions
{
Text = "Gehe nach Norden",
-- Author: InDieTasten on tekkit.lycodon.com
-- Date created: 2018-02-24
-- Lua script for use in ComputerCraft
local args = {...}
local function printUsage()
local pathToMe = shell.getRunningProgram()
local fileName = fs.getName(pathToMe)
print("Usage:")
-- Author: InDieTasten on server.lycodon.com
-- Date created: 2018-02-24
-- Lua script for use in ComputerCraft
-- settings
local printerSide = "left"
local catalogFilename = "./catalog"
-- program-wide variables
local selectionScreenPage = 1
@InDieTasten
InDieTasten / main.cpp
Last active December 22, 2016 20:57
PrimeSudoku
#include <iostream>
#include <algorithm>
#include <vector>
bool isPatternValid(std::vector<short> board, std::vector<size_t> pattern)
{
std::vector<short> counts(10);
for (auto position : pattern)
@InDieTasten
InDieTasten / keybase.md
Created August 1, 2016 18:55
keybase.md

Keybase proof

I hereby claim:

  • I am indietasten on github.
  • I am indietasten (https://keybase.io/indietasten) on keybase.
  • I have a public key ASDwOD_ZqES-Cg1tsCrvwfs_ZoASBRsFJyr2P70IcQVlIwo

To claim this, I am signing this object:

table.duplicate = function(t)
if(type(t) ~= "table") then return t end
local t2 = {}
for k,v in pairs(t) do
if(type(v) == "table") then
t2[k] = table.duplicate(v)
else
t2[k] = v
end
end