Skip to content

Instantly share code, notes, and snippets.


Hardi Kõvamees luminarious

View GitHub Profile
luminarious / SketchSystems.spec
Last active Apr 1, 2019
# Parcel machine flow
View SketchSystems.spec
# Parcel machine flow
# According to v2 Marvel prototype
Parcel machine&
Pick up -> Pickup flow
Send -> Registration flow
Return -> Return flow
Pickup flow
luminarious / static.php
Last active Jul 26, 2018
Getting a static site out of Cockpit CMS
View static.php
use Pug; //
use Cockpit;
require_once __DIR__.'/vendor/autoload.php'; // Composer
require_once __DIR__.'/cockpit/bootstrap.php'; //
chdir(dirname(__FILE__)); // Keep this directory if called directly or from Cockpit
//setlocale(LC_TIME, 'et_EE', 'et', 'EE', 'ET', 'Estonia');
//define('DATE_FORMAT', "%e. %B %G");
View lasi.cgi.lua
#! /home/stuserbot/bin/lua
local rt = {}
local getenv = os.getenv
local strupper = string.upper
local strlower = string.lower
local format = string.format
local gsub = string.gsub
local setmetatable = setmetatable
local write = io.write