Skip to content

Instantly share code, notes, and snippets.

View amitaibu's full-sized avatar

Amitai Burstein amitaibu

View GitHub Profile
php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console assets:install
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css(.) styles/vendor.css -->
<!-- bower:css -->
<?php
// Create a default vocabulary named "Tags", enabled for the 'article' content type.
$description = st('Use tags to group articles on similar topics into categories.');
$vocabulary = (object) array(
'name' => st('Meter Category'),
'description' => $description,
'machine_name' => 'meter_category',
);
taxonomy_vocabulary_save($vocabulary);
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Headers: Authorization, access_token');

Gizra is Hiring PHP/JS developers

Gizra specializes at Open Source. Code we’ve released under an open license is being used at the White House website, The Economist, MSNBC and others. We work exclusively with Open Source technologies (including PHP, Node.js, Jekyll, Drupal, AngularJS) and some of our client work is released as Open Source as well.

Amongst our clients are the European Commission, Harvard University, The National Library and others. It’s important to us to take on challenging work, that requires us to learn new things, and clients that see us as partners.

All of our code is on GitHub, test covered and code reviewed. Everyone in the company can code, regardless of job requirements. Every employee gets a daily hour to work on her personal OSS projects. We make it a point to have a life outside work and work sane hours.

We look for curious people with a spark and a desire to learn & grow. We don’t care if you have a degree, we do care that you have a GitHub account an

<?php
/**
* @AfterStep
*
* Take a screenshot after failed steps.
*/
public function takeScreenshotAfterFailedStep($event) {
if ($event->getResult() != 4) {
// Step didn't fail.
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
casper.start('http://localhost:9050/#/pages/signin', function() {
this.fill('form#login', {
'username': 'admin',
'password': 'admin'
}, true);
// Original
.ICE-Tracking .ice-ins.ice-cts-1
// Change
#cke_stakeholder_analysis .ICE-Tracking .ice-ins.ice-cts-1
<?php
/**
* @BeforeScenario
*/
public function captureConsoleLog() {
if (!($this->getSession()->getDriver() instanceof \Behat\Mink\Driver\Selenium2Driver)) {
// Not a Selenium driver (e.g. PhantomJs).
return;
}

Install

  1. Fork reposiroty from https://github.com/Gizra/garmentbox
  2. cp default.config.sh config.sh
  3. ./install -dly

Content type

  1. Add content type vendor
  2. Material should reference vendor