Skip to content

Instantly share code, notes, and snippets.

Paul Bottin fresc81

Block or report user

Report or block fresc81

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fresc81
fresc81 / Makefile
Created Nov 21, 2017
Generic C++ Makefile with support for multiple executables
View Makefile
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 Mar 7, 2016
templating using regexes and embedded VBScripts
View Template.bas
'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 Aug 7, 2016
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
View index.js
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
View markdown test
Following methods are provided by instances of Winreg:
<table>
<tr>
<th>Method</th>
<th>Parameters</th>
<th>Description</th>
</tr>
<tr>
<td>
View connect-jsonrpc.js
/*!
* Ext JS Connect
* Copyright(c) 2010 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
You can’t perform that action at this time.