Skip to content

Instantly share code, notes, and snippets.

View makasim's full-sized avatar

Max Kotliar makasim

View GitHub Profile
@makasim
makasim / .travis.yml
Created November 24, 2017 09:16 — forked from mkorkmaz/.travis.yml
Testing your code with Elasticseach 2 on TravisCI
language: php
sudo: false
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
php:
- 7.0
class MoneyType extends AbstractType implements DataMapperInterface
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('amount', 'integer')
->add('currency', 'string')
->setDataMapper($this)
;
}

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

@makasim
makasim / skype-notify.py
Created October 25, 2012 10:21 — forked from nzjrs/skype-notify.py
Python script to make Skype co-operate with GNOME3 notifications
#!/usr/bin/env python
# Python script to make Skype co-operate with GNOME3 notifications.
#
#
# Copyright (c) 2011, John Stowers
#
# Adapted from skype-notify.py
# Copyright (c) 2009, Lightbreeze
#
#
@makasim
makasim / deploy.sh
Created March 20, 2012 10:21 — forked from Seldaek/deploy.sh
Deployment script
#!/bin/sh
targetUser="seld"
targetHost="seld.be"
parentDir="/home/seld"
childDir="packagist.org"
port="22"
configFile="~/etc/conf/$childDir"
@makasim
makasim / gist:1172832
Created August 26, 2011 06:31 — forked from vatson/gist:1171992
chain prototype
<?php
$exceptionFilter = new ExceptionFilterHandler();
$exceptionFilter->allow('MyBundle\AbstractException')
->ignore('MyBundle\ConcreteException');
$errorFilter = new ErrorFilterHandler();
$errorFilter->allow(UniversalErrorCatcher_ErrorCode::E_CORE_ERROR)
->ignore(UniversalErrorCatcher_ErrorCode::E_ERROR);