Skip to content

Instantly share code, notes, and snippets.

View RadekDvorak's full-sized avatar

Radek Dvořák RadekDvorak

View GitHub Profile
@RadekDvorak
RadekDvorak / TS0601.js
Last active February 6, 2023 15:56
_TZE200_vs0skpuc
// BROKEN, NOT WORKING AT ALL
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');
@RadekDvorak
RadekDvorak / bisect.php
Created July 1, 2013 09:38
Git bisect script for guzzle #366
<?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 February 19, 2012 19:19
Invalid value definition
[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 July 19, 2011 13:19
Hack na FileJournal v Nette
<?php
/**
* Exclusive lock in memcache
*
* @author Radek Dvořák <radek.dvorak@profimedia.cz>
*/
class Lock
{
/**