This file contains hidden or 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
<: | |
readline_completion_function(function(){return array_merge(get_defined_functions()['internal'],array_keys(get_defined_constants()));}); | |
:> |
This file contains hidden or 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
diff --git a/library/Zend/Code/Scanner/PropertyScanner.php b/library/Zend/Code/Scanner/PropertyScanner.php | |
index 0ba37f6..0d7a49f 100644 | |
--- a/library/Zend/Code/Scanner/PropertyScanner.php | |
+++ b/library/Zend/Code/Scanner/PropertyScanner.php | |
@@ -226,6 +226,7 @@ class PropertyScanner implements ScannerInterface | |
SCANNER_TOP: | |
$token = current($tokens); | |
+ $index = key($tokens); | |
This file contains hidden or 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 miffie.phar -x '//div[@id="talks"]//a[contains(text(), "Zend")]' -v @href http://joind.in/event/view/1493 | php miffie.phar -x '//p[@class="quicklink"]//parent::*[contains(normalize-space(text()), "Slides")]//a' -v @href -s -w 1 - | |
php miffie.phar -x '//div[@id="talks"]//a[contains(text(), "ZF2")]' -v @href http://joind.in/event/view/1493 | php miffie.phar -x '//p[@class="quicklink"]//parent::*[contains(normalize-space(text()), "Slides")]//a/parent::*' -v html -s -w 1 - |
This file contains hidden or 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 Module | |
{ | |
public function onBootstrap($event) | |
{ | |
$events = $event->getTarget()->getEventManager(); | |
$events->attach(MvcEvent::EVENT_FINISH, function($e) { | |
if ($match = $e->getRouteMatch()) { | |
$params = $match->getParams(); |
This file contains hidden or 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 FilePerRouteIterator extends IteratorIterator | |
{ | |
public function key() | |
{ | |
return pathinfo(parent::key(), PATHINFO_FILENAME); | |
} | |
public function current() |
This file contains hidden or 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 | |
use Zend\Console\Console; | |
use Zend\Console\Adapter\AdapterInterface as ConsoleAdapter; | |
use Zend\Console\ColorInterface as Color; | |
use Zend\Console\Request; | |
use Zend\Console\Response; | |
use Zend\Mvc\Router\Console\SimpleRouteStack; | |
use Zend\View\Variables; | |
use Zend\View\Model\ConsoleModel; | |
use Zend\View\Model\ViewModel; |
This file contains hidden or 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/bash /home/sasezaki/eduosi_buession/libtool --mode=compile cc -I. -I/home/sasezaki/eduosi_buession -DPHP_ATOM_INC -I/home/sasezaki/eduosi_buession/include -I/home/sasezaki/eduosi_buession/main -I/home/sasezaki/eduosi_buession -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /home/sasezaki/eduosi_buession/buession.c -o buession.lo | |
libtool: compile: cc -I. -I/home/sasezaki/eduosi_buession -DPHP_ATOM_INC -I/home/sasezaki/eduosi_buession/include -I/home/sasezaki/eduosi_buession/main -I/home/sasezaki/eduosi_buession -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /home/sasezaki/eduosi_buession/buession.c -fPIC -DPIC - |
This file contains hidden or 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
var system = require("system") | |
var webserver = require("webserver") | |
var webpage = require("webpage") | |
var page = webpage.create() | |
var server = webserver.create() | |
var currentUrl; | |
var queries = {}; | |
server.listen(8888, function(request, response){ | |
var urlsplit = request.url.split("?"); |
This file contains hidden or 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 Scraper{} // just a util or alias | |
$scraper = new Scraper(); | |
$scraper->getDocumentResolver()->setHtmlFormatter(); | |
class Scraper | |
{ | |
use EventManagerAware; |
This file contains hidden or 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 | |
/** | |
* Zend Framework (http://framework.zend.com/) | |
* | |
* @link http://github.com/zendframework/zf2 for the canonical source repository | |
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) | |
* @license http://framework.zend.com/license/new-bsd New BSD License | |
*/ | |
return array( |