This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace A; | |
use Zend; | |
class Data | |
{ | |
protected $limit; | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait a { | |
public function getConfig() | |
{ | |
return $this->world . '/config.php'; | |
} | |
} | |
class B { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Factory | |
{ | |
public function create() | |
{ | |
$this->context->create(); | |
} | |
public function setContext($context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from hyde.plugin import CLTransformer | |
from hyde.fs import File | |
from operator import attrgetter | |
#Fork of lepture/suffix.py | |
class SuffixPlugin(CLTransformer): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
class GameOfLife | |
{ | |
const DEAD = 0; | |
const ALIVE = 1; | |
const X = 25; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Carp; | |
use WWW::Mechanize; | |
use Mojo::DOM; | |
use String::ShellQuote; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# PRE-COMMIT HOOK | |
# | |
# The pre-commit hook is invoked before a Subversion txn is | |
# committed. Subversion runs this hook by invoking a program | |
# (script, executable, binary, etc.) named 'pre-commit' (for which | |
# this file is a template), with the following ordered arguments: | |
# | |
# [1] REPOS-PATH (the path to this repository) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sampler = new \Hoa\Compiler\Llk\Sampler\Coverage( | |
\Hoa\Compiler\Llk\Llk::load( | |
new \Hoa\File\Read($file->getPathName()) | |
), | |
new \Hoa\Regex\Visitor\Isotropic( | |
new \Hoa\Math\Sampler\Random() | |
) | |
); | |
$json = array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substr |||||||||||||||||||||||||||||||||||||||||||||||||||||||| 804ms, 100.0% | |
offset ||||||||||||||||||||||||| 359ms, 44.7% | |
Array | |
( | |
[substr] => 40696 | |
[offset] => 1704 | |
) | |
avonglasow@avonglasow(11:15:25):/tmp/bench$ php -v | |
PHP 5.4.4-14+deb7u2 (cli) (built: Jun 5 2013 07:56:44) | |
Copyright (c) 1997-2012 The PHP Group |
OlderNewer