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
### Keybase proof | |
I hereby claim: | |
* I am paulferrett on github. | |
* I am paulferrett (https://keybase.io/paulferrett) on keybase. | |
* I have a public key ASA9bcvJeVB79sOnbOOYnPuU0DzhQEyDCCtNkbEvON27Dgo | |
To claim this, I am signing this object: |
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
Africa/Abidjan | 5.359952 | -4.008256 | +0:00 | |
---|---|---|---|---|
Africa/Accra | 5.603717 | -0.186964 | +0:00 | |
Africa/Addis_Ababa | 8.980603 | 38.757761 | +03:00 | |
Africa/Algiers | 36.75377 | 3.058793 | +01:00 | |
Africa/Asmera | 15.322877 | 38.925052 | +03:00 | |
Africa/Bamako | 12.639232 | -8.002889 | +0:00 | |
Africa/Bangui | 4.394674 | 18.55819 | +01:00 | |
Africa/Banjul | 13.454876 | -16.579032 | +0:00 | |
Africa/Bissau | 11.881655 | -15.617794 | +0:00 | |
Africa/Blantyre | -15.766671 | 35.016787 | +02:00 |
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
{ | |
"directory": "src/Acme/Bundle/DemoBundle/Resources/public/vendor" | |
} |
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 | |
namespace Acme\YourBundle\Serializer; | |
use JMS\Serializer\Context; | |
use JMS\Serializer\JsonSerializationVisitor; | |
use JMS\Serializer\Metadata\ClassMetadata; | |
/* | |
* Copyright 2014 Paul Ferrett <[email protected]> |
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 | |
/** | |
* ABN and ACN Validator Class | |
* @author Paul Ferrett, 2009 (http://www.paulferrett.com) | |
*/ | |
class AbnValidator { | |
/** | |
* Return true if $number is a valid ABN |
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
/** | |
* Create a new wrapper to the Prototype Template class to | |
* allow default values for the template | |
* | |
* @param template | |
* @param defaults | |
*/ | |
var TemplateWithDefaults = Class.create(Template, { | |
initialize: function($super, template, defaults, pattern) { | |
this.defaults = defaults || {}; |
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
delimiter // | |
DROP PROCEDURE IF EXISTS INNODB_TRUNCATE// | |
CREATE PROCEDURE INNODB_TRUNCATE(IN tbl CHAR(128)) | |
BEGIN | |
SET @tbl_tmp = CONCAT(tbl, '_idbtrunc_tmp'); | |
SET @tbl = tbl; | |
SET @v = CONCAT("DROP TABLE IF EXISTS ", @tbl_tmp); | |
PREPARE drop_tmp FROM @v; |
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 | |
/* | |
Script to bulk import users into a Joomla installation (v 1.5.7). | |
This script is free to use, modify and distribute, | |
however is comes with absolutely no guarantees! | |
Be careful and check everything in here before running | |
it on your installation - has little to no error checking and is |
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 | |
/** | |
* Get the ordinal suffix of an int (e.g. th, rd, st, etc.) | |
* | |
* @param int $n | |
* @param bool $return_n Include $n in the string returned | |
* @return string $n including its ordinal suffix | |
*/ | |
function ordinal_suffix($n, $return_n = true) { |
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 | |
class XML { | |
/** | |
* Encode an object as XML string | |
* | |
* @param Object $obj | |
* @param string $root_node | |
* @return string $xml | |
*/ |
NewerOlder