Skip to content

Instantly share code, notes, and snippets.

View fixe's full-sized avatar

Tiago Ribeiro fixe

View GitHub Profile
Verifying that +fixe is my openname (Bitcoin username). https://onename.com/fixe
@fixe
fixe / keybase.md
Last active May 2, 2016 10:18
keybase.md

Keybase proof

I hereby claim:

  • I am fixe on github.
  • I am tiagoribeiro (https://keybase.io/tiagoribeiro) on keybase.
  • I have a public key whose fingerprint is 6312 7A7E C2E1 5ACE 4F19 043E F604 CEEA 2077 8ED8

To claim this, I am signing this object:

@fixe
fixe / gist:6462993
Created September 6, 2013 12:13
Find functions that have missing dependencies when using the array notation. File: angular.js Method: annotate
// ...
} else if (isArray(fn)) {
// ...
if (fn.slice(0, last).length !== fn[last].length) {
console.log(fn);
}
// ...
<?php
/*
* This file is part of the ToolkitBundle package, a Seegno project.
*
* (c) Seegno <projects@seegno.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@fixe
fixe / DefaultNamingStrategy.php
Created July 4, 2012 12:05
A naming strategy to get lowercase tables and underscorified fields
<?php
namespace Seegno\Bundle\ToolkitBundle\Doctrine\ORM\Mapping;
use Doctrine\ORM\Mapping\DefaultNamingStrategy as BaseDefaultNamingStrategy;
use Doctrine\Common\Util\Inflector;
class DefaultNamingStrategy extends BaseDefaultNamingStrategy
{
/**