Skip to content

Instantly share code, notes, and snippets.

View legendik's full-sized avatar
🐧
Working

Marek Šneberger legendik

🐧
Working
View GitHub Profile

Keybase proof

I hereby claim:

  • I am legendik on github.
  • I am legendik (https://keybase.io/legendik) on keybase.
  • I have a public key whose fingerprint is 2F75 A5FD 8C19 3D71 0A0E 38AB 0D8E 75D6 DCBE D12A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@legendik
legendik / Regulars.php
Created April 12, 2015 14:41
MissingTranslationFixer regulars
// Regulár pro stringy v Latte
const TRANSLATION_STRINGS_LATTE_STRINGS_REGEXP = '/(?:\>\s*+([\w\,\.\-\:\!\?\(\)\ ]+)\s*\<|[^-]\>\s*+([^\{\}\<\>\t\=]+)\s*\<|[^-]\>\s*+(?1)\s*\<)/iu';
// Regulár pro meta description a keywords v Latte
const TRANSLATION_STRINGS_LATTE_META_REGEXP = '/(?:name\=(?:\"|\')(?:description|keywords)(?:\"|\')).*?(?:content\=(?:\"|\'))([^{"\']*)(?:\"|\')/iu';
// Regulár pro placeholdery formulářů
@legendik
legendik / Dark magic regexp
Created March 4, 2015 18:43
Uhádneš, k čemu slouží tenhle regulár?
/(?:\>\s*+([\w\,\.\-\:\!\?\(\) ]+)\s*\<|\>\s*+([^\{\}\<\>\t]+)\s*\<|\>\s*+(?1)\s*\<)/iug