Skip to content

Instantly share code, notes, and snippets.

View Wouter0100's full-sized avatar
👨‍💼
Hobbying

Wouter van Os Wouter0100

👨‍💼
Hobbying
View GitHub Profile

Keybase proof

I hereby claim:

  • I am wouter0100 on github.
  • I am wouter0100 (https://keybase.io/wouter0100) on keybase.
  • I have a public key ASCTmU8KbWPnq_9ej_SB2yPO7C83cAbZP87SHYl2694qFwo

To claim this, I am signing this object:

<?php
namespace MauticPlugin\NetcareRulesBundle\EventListener;
use Mautic\CampaignBundle\Event\CampaignExecutionEvent;
use Mautic\CoreBundle\EventListener\CommonSubscriber;
use Mautic\CampaignBundle\CampaignEvents;
class EnforceSubscriber extends CommonSubscriber {
@Wouter0100
Wouter0100 / usage.js
Last active June 29, 2016 12:16
Small and simple javascript library to create fast wizard using fragments
wizard.init(pageContainer, true);
// Only add step to wizard when a screnario is met
if (something == true) {
wizard.addFragment('type', function() {
// Load the new fragment (e.g. async data)
wizard.finishLoad();
}, function () {
// Process the fragment
wizard.finishNext();
@Wouter0100
Wouter0100 / read.php
Created October 17, 2015 11:22
JSON to printed key/value
<?php
$file = file_get_contents('settings.json');
$file = json_decode($file, true);
loop('', $file);
function loop($globalKey, $item) {
foreach ($item as $key => $items) {