I hereby claim:
- I am seldaek on github.
- I am seldaek (https://keybase.io/seldaek) on keybase.
- I have a public key whose fingerprint is 245D B3BE FBFE F1E7 8689 8686 D7F1 1ADC 1848 487E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Run this in web console | |
var rows = $('table tr').get(); | |
rows.sort(function(a, b) { | |
var keyA = $(a).find('img[src="/lib/images/success.png"]').attr('title') || '0'; | |
var keyB = $(b).find('img[src="/lib/images/success.png"]').attr('title') || '0'; | |
if (keyA < keyB) return -1; if (keyA > keyB) return 1; return 0; | |
}); | |
$.each(rows, function(index, row) {$('table tbody').append(row);}); |
aerospike | |
amqp | |
aop | |
apc | |
apcu | |
bcmath | |
bitset | |
blast | |
blitz | |
bz2 |
// format: html, POST /register, dev calls setRedirectRoute('welcome') | |
302 => /welcome, browser redirects, gets a new page | |
// format: json, POST /register, dev calls setRedirectRoute('welcome') | |
302 => /welcome, browser redirects, /welcome returns a 200 with {"some json shit"}, ajax callback gets json | |
// format: html, GET|POST /anypage, dev calls setRedirectUri('http://google.com/FUUUUU') |
class FooController | |
{ | |
public function viewArticleAction($articleId) | |
{ | |
$article = $this->articleRepository->getById($articleId); | |
$parameters = array( | |
'article' => $article, | |
); | |
// beginner |
imports: | |
- file:config.yml | |
- file:somestuff.yml | |
services: | |
foo.controller: | |
class: Application\FooBundle\Controller\FooController | |
arguments: | |
- @router | |
- @request |
<?php | |
class Field { | |
protected static $options = array('a', 'b'); | |
public static function getOptions() { | |
return static::$options; | |
} | |
public static $options2 = array('a', 'b'); | |
} |
float 3.8314838409424 | |
float 2.6161198616028 |
# /usr/bin/grep -rh '<service id=' --include='*.xml' src/Symfony/ | sed -re 's/ *<service id="([^"]+)".+/\1/g' | |
assetic.filter_manager | |
assetic.asset_manager | |
assetic.asset_factory | |
assetic.filter.cssrewrite | |
assetic.filter.less | |
assetic.filter.sass | |
assetic.filter.scss | |
assetic.filter.google_closure_compiler |
<?php | |
namespace Nelmio\HomeBundle\Tests\Controller; | |
use Nelmio\HomeBundle\Controller\ContactController; | |
use Liip\FunctionalTestBundle\Test\WebTestCase; | |
class ContactControllerTest extends WebTestCase | |
{ | |
public function testEmail() |