Skip to content

Instantly share code, notes, and snippets.

View fresc81's full-sized avatar

Paul Bottin fresc81

  • VDI
  • Germany
View GitHub Profile
@fresc81
fresc81 / Airlock_Statechart.png
Last active July 5, 2023 07:56
Space Engineers Airlock Script
Airlock_Statechart.png
@fresc81
fresc81 / Makefile
Created November 21, 2017 20:19
Generic C++ Makefile with support for multiple executables
APPS := nmdbg bla
nmdbg_OBJS := blubb.o
nmdbg_LIBS := -lboost_regex
bla_OBJS := blubb.o
CXX := g++-6
CXXFLAGS := -I3rdparty/json/src -Iinclude -Isrc
@fresc81
fresc81 / Template.bas
Last active March 7, 2016 19:00
templating using regexes and embedded VBScripts
'example:
'''''''''
'Set scope = New Dictionary
'scope.Add "anrede", "Herr"
'scope.Add "vorname", "Herbert"
'scope.Add "name", "Müller"
'Debug.Print ApplyTemplate("Sehr geehrte{{Wenn(anrede=""Herr"",""r"","""")}} {{anrede}} {{vorname}} {{name}},", scope)
' -> prints "Sehr geehrter Herr Herbert Müller,"
Const SCRIPT_PATTERN As String = "{{([^}]*)}}"
@fresc81
fresc81 / index.js
Last active August 7, 2016 18:29
simple Todo example of how to use hook.io and orchetrate.io together; use ajax if javascript is available otherwise use html forms; https://hook.io/paul-bottinhook-gmail-com/todo
module.exports = function (hook) {
// setup:
// Route /(:action)(/:id)
// Gist URL https://gist.github.com/fresc81/fc6a58b3a43f1c5120f8
// View https://gist.github.com/fresc81/fc6a58b3a43f1c5120f8/raw/theme.html
// Presenter https://gist.github.com/fresc81/fc6a58b3a43f1c5120f8/raw/presenter.js
// create a collection on orchestrate.io:
// create two env variables:
// orchestrate_auth_token
Following methods are provided by instances of Winreg:
<table>
<tr>
<th>Method</th>
<th>Parameters</th>
<th>Description</th>
</tr>
<tr>
<td>
/*!
* Ext JS Connect
* Copyright(c) 2010 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/