This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################################### | |
## ## | |
## 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. ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; | |
} | |
NewerOlder