Skip to content

Instantly share code, notes, and snippets.

View jonasgeiler's full-sized avatar
:shipit:
hello there

Jonas Geiler jonasgeiler

:shipit:
hello there
View GitHub Profile
@jonasgeiler
jonasgeiler / index.html
Last active June 28, 2017 09:31
Live-Updating HTML-File using Node.js
<html>
<head>
<style>
body {
color: #000;
font-family: Sans-serif, Helvetica;
}
</style>
</head>
<body>
@jonasgeiler
jonasgeiler / add_vhost.php
Last active September 15, 2021 13:49
WAMP - add_vhost.php - Metro Theme
<?php
// Update 3.0.6
// Check / at first position of $vh_folder
// Possibility to suppress VirtualHost
// Possibility for VirtualHost by IP
$server_dir = "../";
require $server_dir.'scripts/config.inc.php';
require $server_dir.'scripts/wampserver.lib.php';
@jonasgeiler
jonasgeiler / babylon.lua
Last active March 18, 2018 15:23
Babylon.js Math - Lua Port
require "lib.class"
BABYLON = {}
--[[ Color4 ]]--
BABYLON.Color4 = class()
function BABYLON.Color4:init(initialR, initialG, initialB, initialA)
self.r = initialR
self.g = initialG
@jonasgeiler
jonasgeiler / conf.lua
Created August 29, 2018 13:56
Gameshell Calculator App
--Configuration File
function love.conf(t)
t.title = "Calculator"
t.window.width = 320
t.window.height = 240
--t.console = true
t.modules.physics = false
t.modules.sound = false
@jonasgeiler
jonasgeiler / keys.lua
Last active October 5, 2018 21:04
Gameshell Löve2D Keymap
-- GAMESHELL KEYMAP --
-- See here: https://github.com/clockworkpi/Keypad/blob/master/keymaps.png
keys = {}
-- A, B, X, Y
keys.Y = 'i'
keys.X = 'u'
keys.A = 'j'
keys.B = 'k'
@jonasgeiler
jonasgeiler / user_settings.json
Created October 24, 2018 15:33
Markdown Edit - Material-like Theme
{
"Theme": {
"Name": "Material",
"EditorBackground": "#263238",
"EditorForeground": "#EEFFFF",
"Header1Height": 1.2,
"Header2Height": 1.1,
"HighlightHeading": {
"Name": "Heading",
"Background": null,
@jonasgeiler
jonasgeiler / devRant.php
Last active June 10, 2020 13:38
A PHP wrapper for the devRant API
<?php
class CurlException extends Exception {
}
class ApiException extends Exception {
}
@jonasgeiler
jonasgeiler / keybase.md
Created September 16, 2020 20:39
Proof for keybase.io

Keybase proof

I hereby claim:

  • I am skayo on github.
  • I am skayo (https://keybase.io/skayo) on keybase.
  • I have a public key ASBe_mREoF8saWiVhdo4fMW9LDosXmo8FXJELip-zlj1xQo

To claim this, I am signing this object:

@jonasgeiler
jonasgeiler / Dockerfile
Last active May 10, 2021 15:46
Running local JS Bin using Docker + docker-compose
FROM node:12-alpine
RUN apk --no-cache add git
RUN git clone https://github.com/jsbin/jsbin.git /jsbin
WORKDIR /jsbin
RUN npm install -g grunt-cli
RUN npm install
RUN grunt build
@jonasgeiler
jonasgeiler / cache.js
Last active December 21, 2020 17:28
Simple in-memory cache implementation for JavaScript
/**
* @typedef CacheOptions
* @type {object}
* @property {number | undefined} maxSize
* @property {number | undefined} maxAge Max Age in Minutes
* @property {any[] | undefined} entries
*/
class Cache extends Map {