View PhpStorm - Java Setting for better Performance
-ea
-server
-Xss2m
-Xms2G
-Xmx5G
-XX:MaxMetaspaceSize=2G
-XX:MetaspaceSize=512m
-XX:ReservedCodeCacheSize=1G
-XX:+UseConcMarkSweepGC
-XX:+UseParNewGC
View StringLib.php
<?php
/**
* Class StringLib
*
* @see https://github.com/voku/portable-utf8
*/
class StringLib {
/**
View keybase.md

Keybase proof

I hereby claim:

  • I am voku on github.
  • I am voku (https://keybase.io/voku) on keybase.
  • I have a public key whose fingerprint is 9587 34D4 0F19 EFF9 46F2 CE84 8B53 C742 E24F 6703

To claim this, I am signing this object:

View .htaccess
# Apache Server Configs v2.14 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html.
# ----------------------------------------------------------------------
View color-menadwork.icls
<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" />
View codestyle-menadwork.xml
<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" />
View inspection-menadwork.xml
<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" />
View DotNotation.php
<?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]
*
View popstate_reload.js
/**
* 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() {
View cp1252toUTF8.php
<?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