Skip to content

Instantly share code, notes, and snippets.

View tvdijen's full-sized avatar

Tim van Dijen tvdijen

View GitHub Profile
@tvdijen
tvdijen / CompiledTwigTemplate.php
Created July 10, 2022 09:56
An example of a compiled Twig Template
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
@tvdijen
tvdijen / Madrid_2020.txt
Last active February 24, 2020 08:50
Workshop To-do list
To-do list:
1. Any open issue / PR on SimpleSAMLphp, or any module or helper-repo within the simplesamlphp-namespace
2. Refactor some classes to comply with PSR-2 (some don't follow camelCaps right now; we ignore them in Psalm)
3. Remove remainders of deprecated code wherever possible:
3.1 Ldap old configuration names (authproc-filters)
3.2 Rename negotiate-module configuration to 1:1 match those of the ldap-module
3.3 Merge #514 > close #236
3.4 Replace crappy LDAP-related classes (#397)
4. Move www-scripts to Controller-classes (also for the externalized modules; see admin-module for an example)
@tvdijen
tvdijen / shapes.moo
Last active July 1, 2018 15:28 — forked from toddsundsted/shapes.moo
LambdaCore Compatible Dump of Shapes
@create $root_class named Shapes, Serialization/Deserialization Library:
@verb __OBJECT__:"_log" this none this xd __WIZARD__
@program __OBJECT__:_log
(caller != this) && raise(E_PERM);
notify(player, tostr(@args));
.
@verb __OBJECT__:"_suspend_if_necessary" this none this xd __PROGRAMMER__
@program __OBJECT__:_suspend_if_necessary
@tvdijen
tvdijen / composed.moo
Last active July 1, 2018 15:29 — forked from toddsundsted/composed.moo
LambdaCore Compatible Dump of Composed
@create $root_class named Composed, Component Library:
@prop __OBJECT__."packages" {} "" __PROGRAMMER__
;;__OBJECT__.("packages") = {}
@prop __OBJECT__."provides_cache" [] "" __PROGRAMMER__
@prop __OBJECT__."requires_cache" [] "" __PROGRAMMER__
@prop __OBJECT__."last_fetch_index" 1529767110 "" __PROGRAMMER__
@prop __OBJECT__."archived" [] "" __PROGRAMMER__
@prop __OBJECT__."cached" [] "" __PROGRAMMER__
@prop __OBJECT__."archive_sources" {} "" __PROGRAMMER__
;;__OBJECT__.("archive_sources") = {"http://stunt.io/v2/packages.json"}