Skip to content

Instantly share code, notes, and snippets.

View rande's full-sized avatar
🖖
hello!

Thomas rande

🖖
hello!
View GitHub Profile
@rande
rande / gist:9929712
Created April 2, 2014 07:51
Services as Methods - python mode
# vim: set fileencoding=utf-8 :
import unittest
from element.plugins.node.mapper import Manager, Meta, MetaCollection, MetaListener
from element.node import Node
from ioc.event import Event
import datetime
class NodeImage(Node):
pass
@rande
rande / gist:9474596
Last active August 29, 2015 13:57
December 2013 to March 2014 of commits history on the Sonata Project

admin-bundle

  • 6f37801 - (HEAD, origin/master, origin/HEAD, composer/master, master) Remove symfony2.2 support in travis ~ Fri Feb 28 16:05:32 2014 +0100 ~ Thomas Rabaix
  • be81021 - [documentation] fix configuration and fix formatting ~ Fri Feb 28 15:58:27 2014 +0100 ~ Thomas Rabaix
  • 57b61ab - add missing extensions ~ Fri Feb 28 15:32:54 2014 +0100 ~ Thomas Rabaix
  • de04766 - [travis] Add missing dependency ~ Fri Feb 28 15:24:22 2014 +0100 ~ Thomas Rabaix
  • 15a19bb - Allow user to alter query, idx before executre a batch actions ~ Fri Feb 28 11:09:29 2014 +0100 ~ Benoît Lévêque
  • 77ac4e4 - Fixed doc warnings and completed action_list ~ Thu Feb 27 15:22:09 2014 +0100 ~ Hugo Briand
  • 1063230 - Fix Sphinx installation ~ Tue Feb 25 19:20:13 2014 +0100 ~ Thomas Rabaix
  • e0c77c4 - add documentation support (travis and configuration) ~ Tue Feb 25 14:41:33 2014 +0100 ~ Thomas Rabaix
<?php
namespace Sonata\Bundle\DemoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Acl\Model\DomainObjectInterface;
/**
* @ORM\Entity
* @ORM\Table(name="test_color")
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
require 'capifony_symfony2'
default_run_options[:pty] = true
set :application, "set your application name here"
set :domain, "#{application}.com"
set :app_path, "app"
set :repository, "[email protected]:php-sandbox.git"
#!/bin/sh -ex
# reset local junit data
rm -rf junit; mkdir junit
# update puppet submodules
git submodule update --init
# add the ssh agent, so capistrano can use it
eval `ssh-agent`; ssh-add /var/lib/jenkins/.ssh/id_rsa
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.forward_agent = true
config.vm.define "default", primary: true do |web|
web.vm.box = "ubuntu13_04"
web.vm.box_url = "https://dl.dropboxusercontent.com/s/eo85etnrthnrrfn/ubuntu_13_04.box"
@rande
rande / gist:6615971
Last active December 23, 2015 09:39
<?php
namespace Stats\Test;
use Stats\Entry;
interface ComputerInterface
{
/**
* @return string
import ioc.loader
import os
class Extension(object):
def load(self, config, container_builder):
path = os.path.dirname(os.path.abspath(__file__))
loader = ioc.loader.YamlLoader()
loader.load("%s/resources/config/services.yml" % path, container_builder)
Problem 1
- Installation request for sonata-project/user-bundle 2.1.*@dev -> satisfiable by sonata-project/user-bundle 2.1.x-dev.
- sonata-project/user-bundle 2.1.x-dev requires sonata-project/admin-bundle 2.1.x-dev -> no matching package found.
Problem 2
- Installation request for sonata-project/page-bundle 2.1.*@dev -> satisfiable by sonata-project/page-bundle 2.1.x-dev.
- sonata-project/page-bundle 2.1.x-dev requires symfony-cmf/routing-extra-bundle 1.0.* -> no matching package found.
Problem 3
- Installation request for sonata-project/media-bundle 2.1.*@dev -> satisfiable by sonata-project/media-bundle 2.1.x-dev.
- sonata-project/media-bundle 2.1.x-dev requires sonata-project/admin-bundle 2.1.x-dev -> no matching package found.
class consumer(twistedhttpstream.MessageReceiver):
def connectionMade(self):
print "connected..."
def connectionFailed(self, why):
print "cannot connect:", why
reactor.stop()
def messageReceived(self, tweet):
print "new message:", repr(tweet)