Skip to content

Instantly share code, notes, and snippets.

View pilot's full-sized avatar
💭
Wobbly.me, time tracker & resource planning for teams, open source

Alex Demchenko pilot

💭
Wobbly.me, time tracker & resource planning for teams, open source
View GitHub Profile
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb
sudo dpkg -i elasticsearch-0.90.0.deb
<?php
// ...
class FeatureContext extends MinkContext
{
/**
* Looks for a table, then looks for a row that contains the given text.
* Once it finds the right row, it clicks a link in that row.
*
<?php
/**
* Recognizes mData sent from DataTables where dotted notations represent a related
* entity. For example, defining the following in DataTables...
*
* "aoColumns": [
* { "mData": "id" },
* { "mData": "description" },
* { "mData": "customer.first_name" },
* { "mData": "customer.last_name" }
UserBundle_users_list:
   pattern:  /users/{page}.{_format}
   defaults: { _controller: UserBundle:Users:list, page: 1, _format: html }
   requirements:
      _format:  html
@pilot
pilot / FeatureContext.php
Created June 20, 2012 08:02 — forked from weaverryan/FeatureContext.php
Behat Definition to help click generic links on different rows of a table
<?php
// ...
class FeatureContext extends MinkContext
{
/**
* Looks for a table, then looks for a row that contains the given text.
* Once it finds the right row, it clicks a link in that row.
*
@pilot
pilot / gist:2251778
Created March 30, 2012 14:10
Generate composer.json
{
"name": "bundle/mybundle",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.2",
"symfony/symfony": "2.1.*",
"doctrine/orm": "2.2.*",
"doctrine/doctrine-bundle": "*",