Skip to content

Instantly share code, notes, and snippets.

View FabianSchmick's full-sized avatar
💭
¯\_(ツ)_/¯

Fabian FabianSchmick

💭
¯\_(ツ)_/¯
View GitHub Profile
@FabianSchmick
FabianSchmick / MyParsedown
Created November 20, 2018 08:43 — forked from ShNURoK42/MyParsedown
Mention for Parsedown
<?php
class MyParsedown extends \Parsedown
{
function __construct()
{
$this->InlineTypes['@'][]= 'UserMention';
$this->inlineMarkerList .= '@';
}
@FabianSchmick
FabianSchmick / DecimalType.php
Last active July 30, 2018 07:20 — forked from chrif/NumberToStringTransformer.php
Symfony DataTransformer for decimals (number) with comma and decimal points
<?php
namespace AppBundle\Form;
use AppBundle\Form\DataTransformer\NumberToStringTransformer;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
/**