This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<scheme name="Monokai copy" version="142" parent_scheme="Default"> | |
<option name="FONT_SCALE" value="1.5" /> | |
<option name="LINE_SPACING" value="1.1" /> | |
<option name="EDITOR_FONT_SIZE" value="18" /> | |
<option name="CONSOLE_FONT_NAME" value="Monospaced" /> | |
<option name="CONSOLE_LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_NAME" value="Source Code Pro" /> | |
<colors> | |
<option name="CARET_COLOR" value="f8f8f0" /> | |
<option name="CARET_ROW_COLOR" value="3e3d32" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code_scheme name="menadwork"> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="2" /> | |
<option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
<option name="TAB_SIZE" value="2" /> | |
<option name="USE_TAB_CHARACTER" value="false" /> | |
<option name="SMART_TABS" value="false" /> | |
<option name="LABEL_INDENT_SIZE" value="0" /> | |
<option name="LABEL_INDENT_ABSOLUTE" value="false" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<inspections profile_name="menadwork" version="1.0"> | |
<option name="myName" value="menadwork" /> | |
<option name="myLocal" value="true" /> | |
<inspection_tool class="AccessModifierPresentedInspection" enabled="true" level="WARNING" enabled_by_default="true" /> | |
<inspection_tool class="AdditionOperationOnArraysInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="AliasFunctionsUsageInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="AlterInForeachInspection" enabled="true" level="INFO" enabled_by_default="true" /> | |
<inspection_tool class="AmbiguousMemberInitializationInspection" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="AmbiguousMethodsCallsInArrayMappingInspection" enabled="true" level="INFO" enabled_by_default="true" /> | |
<inspection_tool class="ArrayCastingEquivalentInspection" enabled="true" level="INFO" enabled_by_default="true" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Dot notation for access multidimensional arrays. | |
* | |
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
* | |
* $value = $dn->get('bar.baz.foo'); // $value == true | |
* | |
* $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* reload on history-back with "history.pushState" usage | |
* | |
* Necessary hack because WebKit fires a popstate event on document load | |
* https://code.google.com/p/chromium/issues/detail?id=63040 | |
* https://bugs.webkit.org/process_bug.cgi | |
*/ | |
$(window).bind('load', function() { | |
if (Modernizr.history) { | |
setTimeout(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cp1252_map = array( | |
"\x80" => "\xE2\x82\xAC", // EURO SIGN | |
"\x82" => "\xE2\x80\x9A", // SINGLE LOW-9 QUOTATION MARK | |
"\x83" => "\xC6\x92", // LATIN SMALL LETTER F WITH HOOK | |
"\x84" => "\xE2\x80\x9E", // DOUBLE LOW-9 QUOTATION MARK | |
"\x85" => "\xE2\x80\xA6", // HORIZONTAL ELLIPSIS | |
"\x86" => "\xE2\x80\xA0", // DAGGER | |
"\x87" => "\xE2\x80\xA1", // DOUBLE DAGGER | |
"\x88" => "\xCB\x86", // MODIFIER LETTER CIRCUMFLEX ACCENT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dalek: { | |
options: { | |
// invoke phantomjs, chrome & chrome canary ... | |
browser: ['phantomjs'], | |
// generate an html & an jUnit report | |
reporter: ['html', 'junit'] | |
}, | |
/* | |
options: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>(function(e,t,n,r,i,s,o){e["GoogleAnalyticsObject"]=i;e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},e[i].l=1*new Date;s=t.createElement(n),o=t.getElementsByTagName(n)[0];s.async=1;s.src=r;o.parentNode.insertBefore(s,o)})(window,document,"script","//www.google-analytics.com/analytics.js","ga");ga("create","UA-XXXXXXX-X","auto");ga("set","anonymizeIp",true);ga('require', 'displayfeatures');ga("send","pageview")</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// require | |
// | |
// "Portable UTF-8" -> https://packagist.org/packages/voku/portable-utf8 | |
// "HTMLPurifier" -> https://packagist.org/packages/ezyang/htmlpurifier | |
use voku\helper\UTF8; | |
// init HTMLPurifier (TODO: move this e.g. to a WrapperClass) |