Skip to content

Instantly share code, notes, and snippets.

View aik099's full-sized avatar

Alex aik099

View GitHub Profile
@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 / clover.xsd
Created January 22, 2014 10:38
The Clover XSD schema extracted from `Clover-for-Ant` distribution (https://confluence.atlassian.com/display/CLOVER/Clover-for-Ant).
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="coverage">
<xs:complexType>
<xs:annotation>
<xs:documentation>
Top-most element describing the coverage report. Contains a
project and a test project.
</xs:documentation>
@aik099
aik099 / gist:4482856
Last active December 10, 2015 19:39 — forked from mrflip/gist:7983
Bash completion for "open -a" command on Mac. Changes from original script: * no need to enclose app names, that have spaces in them (e.g. "Sublime Text 2") in double quotes to get auto-complete * app names lowercased for auto-complete, which allows to use "open -a subl" instead of "open -a Subl"
# http://woss.name/2005/09/06/bash-completion-for-mac-os-x-open/
if [ "`uname`" = "Darwin" ]; then
_open() {
local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ "${prev}" = -a ]; then
local IFS=$'\n'
@aik099
aik099 / result of "brew doctor"
Created December 21, 2011 11:56
Failed to compile glib, when installing Midnight Commander via homebrew (VMWare Snow Leopard)
Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libasprintf.0.0.0.dylib
/usr/local/lib/libgettextlib-0.17.dylib
/usr/local/lib/libgettextpo.0.4.0.dylib
/usr/local/lib/libgettextsrc-0.17.dylib