Skip to content

Instantly share code, notes, and snippets.

@nigjo
nigjo / Server.java
Last active May 26, 2024 11:38
A simple, insecure One-File-Java-Server to serve static pages. Main purpose is to have a simple server to locally test some github pages.
/*
* Copyright 2020 Jens "Nigjo" Hofschröer.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@nigjo
nigjo / button.lua
Last active January 31, 2021 14:44
A simple attempt to create UI Buttons in Löve.
-- The MIT License (MIT)
--
-- Copyright © 2021 Jens Hofschröer
--
-- 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:
@nigjo
nigjo / json2svg.js
Created November 4, 2023 16:13
A single function to convert JSON Data to a SVG Element
/**
* Convert a JSON data structure to a svg element with content.
*
* Some special keys are treated as tag name ("<"), text content ("_"),
* style-attribute ("~") or child elements (">"). All other
* keys are used as attribute names to the svg element.
*
* Text content or attribute values may be a single string or an array of
* strings (joined together for output).
*
@nigjo
nigjo / updateGithubMirrors.cmd
Last active May 15, 2024 17:44
backup your Github Repos and gists
@echo off
setlocal
REM -- Skript-Action fuer die "Aufgabenplanung"
cd /D "%~dp0."
REM In der 'updateGithubMirrors.lst' stehen pro Zeile
REM <reposlistfile> <baseuri>
REM Beispiel:
REM repos.list https://github.com/mygithubname
REM gists.list https://gist.github.com