Skip to content

Instantly share code, notes, and snippets.

View julianwachholz's full-sized avatar
🤓

Julian Wachholz julianwachholz

🤓
View GitHub Profile
coffee:
@echo "make it yourself, lazy bum"
<?php
$extList = array(
'css_styled_content',
'extbase',
'filelist',
// usw.
);
$TYPO3_CONF_VARS['EXT']['extList'] = implode(',', $extList);
# Don�t link the last breadcrup-link
<?php
namespace Feature\Testing\Annotations;
/* *
* This script does not yet belong to the FLOW3 framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@julianwachholz
julianwachholz / autoloader.php
Created October 7, 2011 19:53
A namespace based autoloader
<?php
spl_autoload_register(function($class)
{
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
// Convert the PascalCased names to snake_case
$path = preg_replace('/([a-z])([A-Z](?![A-Z]))/', '$1_$2', $path);
$path = strtolower($path);
$path = LIB_PATH . '/' . $path . '.php';
#!/usr/bin/env node
/*
* Bullshit Bingo Bot.
* 1) Fix the configuration to your liking and run
* 2) Use "!bullshit" and the word you want on the pile
* 3) ????
* 4) BINGO!
*
* Send complaints, cheques or anthrax to [email protected].