Skip to content

Instantly share code, notes, and snippets.

View TiSiE's full-sized avatar

Mathias Gelhausen TiSiE

View GitHub Profile
@TiSiE
TiSiE / VSCodeVue.md
Last active December 3, 2019 16:18
Setup vscode to lint and autofix vue/quasar
@TiSiE
TiSiE / Classifier.php
Last active November 14, 2018 14:22
cross-solution/classification-api-sample
<?php
/**
* ML
*
* @filesource
* @author Carsten Bleek <bleek@cross-solution.de>
* @copyright 2013-2018 Cross Solution (http://cross-solution.de)
* @version GIT: $Id$
* @license https://yawik.org/LICENSE.txt MIT
*/
@TiSiE
TiSiE / AttachedEntitiesCollection.php
Last active November 3, 2016 09:39
Attached entities skeletons
<?php
class AttachedEntitiesCollection extends \Doctrine\ArrayCollection
{
private $repositories;
private $referencePrototype;
public function __construct(RepositoryService $repositories, AttachedEntityReference $reference = null)
{
$this->repositories = $repositories;
@TiSiE
TiSiE / wp-plugins-mod.php
Created November 20, 2014 14:23
Change wordpress shortcode pattern to allow single and enclosed version of a tag in one post/page.
<?php
// For WP 4.0
// In file wp-includes/shortcodes.php line 228 and following,
// replace the whole return (or comment out the original code) with this line:
//
// (I know it's ugly, but it works.
// Basically we just replaced this part:
// --> '\\[(?!\\/\\2\\])' // An opening bracket not followed by the closing shortcode tag
// with:
// --> '\\[(?:(?!\\/\\2\\]|\\2))'