Skip to content

Instantly share code, notes, and snippets.

View hacfi's full-sized avatar

hacfi hacfi

  • Certified Symfony developer
  • Europe
View GitHub Profile
/* Downloaded from http://code.ten.com.au/video/bc.ten_video.common.1.1.js on 2013-06-03 */
/*********************************************************************************************
*
* NETWORK TEN BRIGHTCOVE INTERIM COMMON CODE BASE (FROM MOVIDEO)
*
* This file provides all jQuery plugins required for creating Network Ten video widgets.
* This plugin requires at least jQuery 1.7.2
*
* + Requirements: video-settings.js file which contains app config settings
* + Author: J. Brown (Network TEN Digital Media)
@amenk
amenk / xdebug.ini
Created July 1, 2013 13:39
Xdebug links for PHPStorm Remote Call Plugin
; Output links compatible with the PHPStorm Remote Call plugin running on the host.
; source: https://github.com/computerminds/parrot/pull/20/files
xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open(\"GET\", \"http://localhost:8091?message=%f:%l\", true); rq.send(null);"
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active July 17, 2026 16:57
Backend Architectures Keywords and References
@ozkatz
ozkatz / ec2_ssh_config.py
Created June 21, 2013 00:50
generate an ~/.ssh/config file from your EC2 instances, so that you'd never have to lookup those fugly ec2-xx-xx-xx-xxx.compute-1.amazonaws.com hostnames again. Use your instance name instead!
#!/usr/bin/env python
import os
import sys
import argparse
try:
from boto.ec2.connection import EC2Connection
except ImportError:
sys.stderr.write('Please install boto ( http://docs.pythonboto.org/en/latest/getting_started.html )\n')
sys.exit(1)
<?php
use Symfony\Bundle\FrameworkBundle\Routing\Router;
use JMS\Serializer\EventDispatcher\Event;
use Symfony\Component\Form\Util\PropertyPath;
class SerializerListener
{
private $router;
private $map;
@liamr
liamr / app.js
Created May 20, 2013 10:13
App starting point, using the garber/irish execution + require.js. Also, a bunch of data-behavior code
/*
PROJECT
LiamR
Usage:
<body data-controller="users" data-action="show">
<div data-behavior="init_something">
<?php
namespace Clearcode\TransparenBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\HttpFoundation\Request;
@nikic
nikic / php-5.5-features.md
Last active August 31, 2020 10:39
List of new features in PHP 5.5
<?php
namespace Walmen\AnnonymousBundle\Annotations\Driver;
use Doctrine\Common\Annotations\Reader;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Bundle\FrameworkBundle\Routing\Router;