Skip to content

Instantly share code, notes, and snippets.

View grEvenX's full-sized avatar

Even André Fiskvik grEvenX

View GitHub Profile
@grEvenX
grEvenX / a.php.txt
Created May 22, 2012 07:51 — forked from anonymous/a.php.txt
a.php
if (false === $pos = strrpos(get_class($this->controller[0]), '\\__CG__\\')) {
$class = $this->controller[0];
} else {
$class = substr(get_class($this->controller[0]), $pos + 8);
}
$this->params = $this->queryParamReader->read(new \ReflectionClass($class), $this->controller[1]);
@grEvenX
grEvenX / jqm-patch.md
Created February 28, 2012 16:37 — forked from eddiemonge/jqm-patch.md
jQuery Mobile Bug Patching

Tips for jQuery Mobile Bug Patching

Requirements:

PHP Web Server

Some common ones:

@grEvenX
grEvenX / localization_syntax
Created February 24, 2012 14:35 — forked from anonymous/localization_syntax
localization discussion
var completeString = _('I am {role} and {nationality}', 'domain', {
role: 'monkey',
nationality: 'norwegian'
});
var featureList = '<ul>' + _('#info', 'domain').join('</li><li>') + '</li>';
function _(string, domain, values) {
var processedValues = {};
for (var key in values) {
@grEvenX
grEvenX / jenkins_with_rvm.md
Created February 17, 2012 10:47
Setup Jenkins with RVM on Centos 5.6

Make sure server is updated

yum update

Install prerequisites

yum install gcc automake autoconf libtool make patch java httpd ruby ruby-devel readline-devel zlib-devel

Add jenkins repo and install

@grEvenX
grEvenX / styleguide.php
Created February 13, 2012 13:31 — forked from binarypie/styleguide.php
Oyatel PHP Code Style Guideline
<?php
/**
* Use PHPDoc notation when creating documentation for classes and functions
* Code indentation is TAB, do not use spaces!
*
* @param ObjectClassName $object This object does something
* @param int $options This integer can count by one
* @return echos json This function returns something
*/