Skip to content

Instantly share code, notes, and snippets.

Avatar

Radek Dvořák RadekDvorak

  • Czech Republic
View GitHub Profile
@RadekDvorak
RadekDvorak / bisect.php
Created Jul 1, 2013
Git bisect script for guzzle #366
View bisect.php
<?php
require __DIR__ . "/vendor/autoload.php";
class ImageDownloaderExample
{
private function downloadImage()
{
$client = new \Guzzle\Service\Client();
$request = $client->get("http://www.google.com/images/srpr/logo4w.png");
@RadekDvorak
RadekDvorak / gist:1865268
Created Feb 19, 2012
Invalid value definition
View gist:1865268
[exec] #0 /usr/share/php5/PEAR/TokenReflection/ReflectionConstant.php(288): TokenReflection\ReflectionConstant->parseValue(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionClass))
[exec] #1 /usr/share/php5/PEAR/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionConstant->parse(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionClass))
[exec] #2 /usr/share/php5/PEAR/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionClass))
[exec] #3 /usr/share/php5/PEAR/TokenReflection/ReflectionElement.php(105): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionClass))
[exec] #4 /usr/share/php5/PEAR/TokenReflection/ReflectionClass.php(1827): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\St
@RadekDvorak
RadekDvorak / Lock.php
Created Jul 19, 2011
Hack na FileJournal v Nette
View Lock.php
<?php
/**
* Exclusive lock in memcache
*
* @author Radek Dvořák <radek.dvorak@profimedia.cz>
*/
class Lock
{
/**
You can’t perform that action at this time.