Skip to content

Instantly share code, notes, and snippets.

View aik099's full-sized avatar

Alex aik099

View GitHub Profile
@aik099
aik099 / laravel_42_aliases_dump.php
Last active August 29, 2015 14:07
Comparing Laravel 4.2 and 4.3 config/app.php
Array
(
[Illuminate\Foundation\Application] => app
[Illuminate\Console\Application] => artisan
[Illuminate\Auth\AuthManager] => auth
[Illuminate\Auth\Reminders\ReminderRepositoryInterface] => auth.reminder.repository
[Illuminate\View\Compilers\BladeCompiler] => blade.compiler
[Illuminate\Cache\CacheManager] => cache
[Illuminate\Cache\Repository] => cache.store
[Illuminate\Config\Repository] => config
@aik099
aik099 / TestPrivateInheritance.php
Created August 24, 2014 12:21
Testing private property/method inheritance in PHP
<?php
class PrivateBase
{
private $privateProperty = 5;
private function privateMethod()
{
echo 'PrivateBase:'.$this->privateProperty;
@aik099
aik099 / gist:431186f3a8fe51a7cdb3
Created May 5, 2014 08:31
Snippet for PHP_CodeSniffer Sniff Test Line Number Fixing
<?php
/**
* Example input code:
*
* 45 => 2,
* 11 => 1,
*
* // Some comment to ignore.
* 100 => 12,
*/
@aik099
aik099 / Clover_PHPUnit_Direct.xml
Last active August 29, 2015 14:00
The "clover.xml" comparison from the Brianum/Paratest v0.6.1 and Brianum/Paratest v0.7.0 runs
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1398370260">
<project timestamp="1398370260">
<package name="aik099\QATools\BEM\Annotation">
<file name=".../library/aik099/QATools/BEM/Annotation/BEMAnnotation.php">
<class name="BEMAnnotation" namespace="aik099\QATools\BEM\Annotation">
<metrics methods="2" coveredmethods="2" conditionals="0" coveredconditionals="0" statements="9" coveredstatements="9" elements="11" coveredelements="11"/>
</class>
<line num="53" type="method" name="getSelector" crap="2" count="4"/>
<line num="55" type="stmt" count="4"/>
@aik099
aik099 / excuted_via_plain_proc_open.txt
Created August 28, 2015 11:10
Comparing output of /usr/bin/mcedit when executed via Symfony Process and via plain proc_open
[?1049h(B(B

[?1049l[?1001s[?1002h[?1049h[?1h=(B [----] 0 L:[ 1+ 0 1/ 1] *(0 / 0b) <EOF>