Skip to content

Instantly share code, notes, and snippets.

@igorw
igorw / client.php
Created December 28, 2012 03:22 — forked from xeoncross/client.php
<?php
require __DIR__.'/vendor/autoload.php';
$loop = new React\EventLoop\StreamSelectLoop();
$client = stream_socket_client('tcp://127.0.0.1:4000');
$conn = new React\Socket\Connection($client, $loop);
<?php
namespace React\Stomp;
class AckResolver
{
private $result;
private $client;
private $subscriptionId;
{
"name": "any title",
"description": "any description",
"homepage": "http://www.developerhub.cz",
"authors": [
{
"name": "Radim Daniel Panek",
"homepage": "http://www.developerhub.cz"
}
],
@igorw
igorw / index.php
Created March 28, 2012 06:40 — forked from davedevelopment/index.php
Example of overriding service, without unnecessary loading
<?php
require_once __DIR__.'/vendor/.composer/autoload.php';
use Silex\Application;
$app = new Application;
$app['debug'] = true;
$app->register(new Silex\Provider\TwigServiceProvider(), array(
@igorw
igorw / composer.json
Created February 15, 2012 12:34 — forked from michaelcullum/extension.json
Sample phpBB composer.json
{
"name": "acme/blog",
"type": "phpbb3-extension",
"description": "This will add an AI with mind reading capabilities to your board who will post your thoughts to a blog",
"homepage": "http://yourdomain.com/",
"version": "1.0.0",
"time": "2012-02-15",
"license": "GPLv2",
"authors": [
{
@igorw
igorw / composer.json
Created December 12, 2011 10:42 — forked from beberlei/composer.json
A minimal Symfony Components Framework
{
"require": {
"php": ">=5.3.2",
"symfony/http-kernel": "2.1-dev",
"symfony/routing": "2.1-dev"
}
}
{
"repositories": {
"forms-2.3.4": {
"package": {
"name": "webfactory/forms",
"version": "2.3.4",
"source": {
"url": "https://webfactory.kilnhg.com/Repo/wflib/Group/forms2",
"type": "hg",
"reference": "67900fb87017"
@igorw
igorw / silex-php+twig+TwigBrige+translation.php
Created November 5, 2011 11:53 — forked from mTorres/silex-php+twig+TwigBrige+translation.php
Gist Sample to enable Twig + TwigTranslation bridge to Silex
<?php
require_once __DIR__ . '/../lib/vendor/Silex/silex.phar';
$app = new Silex\Application();
$app['debug'] = true;
// Registering Symfony\Yaml and Symfony\Config
$app['autoloader']->registerNamespace('Symfony', __DIR__.'/../lib/vendor/symfony/src');
@igorw
igorw / gist:1211383
Created September 12, 2011 14:26 — forked from anonymous/gist:1211382
compass setup
sudo apt-get install ruby rubygems
sudo gem install compass
cd Desktop/techup-mobile/lib/touch/resources/sass
/var/lib/gems/1.8/bin/compass watch
<?php
require_once __DIR__ . '/silex.phar';
/**
* @desc Add local pear setup.
*/
set_include_path(__DIR__ . '/vendor/pear:' . get_include_path());
$app = new Silex\Application();