Skip to content

Instantly share code, notes, and snippets.

View erikfrerejean's full-sized avatar
:octocat:

Erik Frèrejean erikfrerejean

:octocat:
View GitHub Profile
<?php
if (!class_exists('CreateDocx')) {
require __DIR__ . '/phpdocx_free/classes/CreateDocx.inc';
}
$file = new splFileInfo(tempnam('/tmp/', 'atlas_toets_') . '.docx');
$docx = new CreateDocx($file->getExtension());
//-- Create the header and footer
<?php
/* BLGG - Example */
function blgg_preprocess_node(&$vars)
{
// ff controleren wat het juiste element is !!!!
$block = &$vars['content']['links']['print_html']['#links']['print_html'];
if (!empty($block))
{
<?php
$max = isset($_GET['iterations']) ? (int) $_GET['iterations'] : 100;
$mod3 = 0;
$mod5 = 0;
$out = array();
for ($i = 0; $i <= $max; $i++)
class MichaelC(object):
def __init__(self):
super(MichaelC, self).__init__()
def _get(self):
return [
1,
2,
3
]
<?php
namespace erikfrerejean\musicunique;
// Setup quick 'n dirty autoloader
spl_autoload_register(function($class) {
$namespace = 'erikfrerejean\\musicunique\\';
if (strpos($class, $namespace) !== 0)
{
MODNAME = Some MOD
VERSION = 1.0.0
PACKAGENAME = QuotePostBackLink.zip
PACKAGEFILES = install.xml license.txt modx.prosilver.en.xsl root
CURL = /usr/bin/curl
GIT = /usr/bin/git
.title:
@echo "$(MODNAME) - $(VERSION)\n"
// Code line
$var = 'foo';
print ($var);
// MOD 1 changes foo to foobar and prints in upper case
$var = 'foobar';
print (strtoupper($var));
// MOD 2 changes foo to bar
$var = 'bar';
object(phpbb_event_data)[20]
private 'data' =>
array
'postrow' =>
array
'POST_AUTHOR_FULL' => string '<a href="./memberlist.php?mode=viewprofile&amp;u=2" style="color: #AA0000;" class="username-coloured">Erik</a>' (length=110)
'POST_AUTHOR_COLOUR' => string '#AA0000' (length=7)
'POST_AUTHOR' => string 'Erik' (length=4)
'U_POST_AUTHOR' => string './memberlist.php?mode=viewprofile&amp;u=2' (length=41)
'RANK_TITLE' => string 'Site Admin' (length=10)
<?php
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class phpbb_ext_test_event_test_assign_block_vars_listener implements EventSubscriberInterface
{
static public function getSubscribedEvents()
{
return array(
'core.assign_block_vars' => 'cabv',
<fieldset>
<legend>Naam</legend>
<input id="voornaam"...... />
<input id="doopnaam"...... />
<input id="achternaam"...... />
</fieldset>
<fieldset>
<legend>Adresgegevens</legend>
<input id="straat"...... />
<input id="nr"...... />