Skip to content

Instantly share code, notes, and snippets.

View zerrvox's full-sized avatar

Jesper Pedersen zerrvox

View GitHub Profile
@EvanDotPro
EvanDotPro / gittyup.sh
Created December 21, 2011 17:15
Easily keep master in sync with upstream.
####################################################################################
## ##
## gittyup() - Easily keep master in sync with upstream. ##
## ##
## Author: Evan Coury, http://blog.evan.pro/ ##
## URL: https://gist.github.com/1506822 ##
## ##
## This bash function is a simple shortcut for keeping your local (and public ##
## fork / origin remote) master branch up to date and in sync with the upstream ##
## master. To use gittyup(), simply drop this in your ~/.bashrc. ##
@cakper
cakper / gist:1386347
Created November 22, 2011 17:47
Build.xml for Symfony2
<?xml version="1.0" encoding="UTF-8"?>
<project name="SS" default="build">
<target name="build"
depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpunit,phpcb"/>
<target name="build-parallel"
depends="prepare,lint,tools-parallel,phpunit,phpcb"/>
<target name="tools-parallel"
@fasmide
fasmide / DanskeBank.php
Created November 14, 2011 22:27
Danske Bank console app and php class
<?
class DanskeBank {
private $_magicKey;
private $_curlHandle;
public function __construct()
{
$this->_curlHandle = curl_init();
$data = array(
'os' => 'Android', //hmmf tried with php_uname('s') but then the service rejects logins
'model' => php_uname('m'),
@dshafik
dshafik / fuzzydate.php
Created September 20, 2011 15:04
Fuzzy Date Function
<?php
function fuzzyDate($date, $inputFormat = DateTime::ATOM, $outputDateFormat = "l, F dS, Y", $outputTimeFormat = "H:ia") {
if (!$inputFormat) {
$inputFormat = DateTime::ATOM;
}
if (!$outputDateFormat) {
$outputDateFormat = "l, F dS, Y";
}