Skip to content

Instantly share code, notes, and snippets.

View FrancisVarga's full-sized avatar
🌴
On vacation

Francis Varga FrancisVarga

🌴
On vacation
  • Phili-Tech
  • Berlin, Germany
View GitHub Profile
@FrancisVarga
FrancisVarga / SelfDisposedEventDispatcher.as
Created April 19, 2012 10:51
Self disposer EventDispatcher
package com.crowdpark.core
{
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
import flash.events.Event;
/**
* @author francis
*/
public class SelfDisposedEventDispatcher implements IEventDispatcher
@FrancisVarga
FrancisVarga / setup_macosx.sh
Created March 27, 2012 06:18 — forked from finger-berlin/setup_macosx.sh
setup a virgin mac osx
#!/bin/bash
function test_setup () {
PASS=1
for b in \
/usr/bin/ruby \
/usr/bin/make \
/usr/bin/gcc
do

First Start with Couchbase

@FrancisVarga
FrancisVarga / setup_ubuntu.sh
Created January 25, 2012 20:11
setup development environment, taken from https://gist.github.com/987713
#!/bin/bash
# Purpose: Just run this script to install the required
# ubuntu/pear packages for php development.
#
# Tested on Ubuntu 11.xx
# ----------------------------------------------------------
#### DEFINITIONS ###
IPADDR=$(ip addr | grep inet | grep brd | cut -c10-22 | cut -d\/ -f1)
package beatguide.core.jsonrpc
{
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.HTTPStatusEvent;
import flash.events.IEventDispatcher;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
@FrancisVarga
FrancisVarga / setup_macosx.sh
Created January 12, 2012 15:59
setup a virgin mac osx
echo "Installing basic packages for development."
echo "Notes:"
echo "- if asked for a password, provide your system user password"
echo "- if asked for a mysql server password, enter 'root'"
echo -n "Press ENTER to continue, CTRL-c to cancel:"
read DUMMY
sudo echo
echo "Installing Pear."
@FrancisVarga
FrancisVarga / newrelic.sh
Created January 2, 2012 14:56
install new relic via apt
/etc/apt/sources.list.d/newrelic.list
deb http://apt.newrelic.com/debian/ newrelic non-free
wget -O - http://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
sudo apt-get install newrelic-daemon
Francis-Vargas-MacBook-Pro:etc francis$ php -f blowJob.php
=== CLEAN ENVIROMENT ===
<?
namespace Processus
{
require_once 'helpers.php';
/**
<?php
/**
* Created by JetBrains PhpStorm.
* User: francis
* Date: 12/9/11
* Time: 9:43 AM
* To change this template use File | Settings | File Templates.
*/
namespace Application\Manager\Feed
{
<?php
/**
* @param $request
*
* @return object
*/
public function disputePaidChallenge($request)
{
$betRequest = new \Application\JsonRpc\V1\App\Request\ChallengeRequest();
$paidDisputeData = $betRequest->getDisputePaidChallengeData($request);