Skip to content

Instantly share code, notes, and snippets.


Phil Taylor PhilETaylor

View GitHub Profile
View content
if (!is_string(@$json->version)) {
$json->version = '';
View removebtn
PhilETaylor / match.regex
Last active Aug 29, 2015
Regexes For Perfect Removal
View match.regex
PhilETaylor / time.php
Created Feb 28, 2015
Check Server Time
View time.php
* @package Blue Flame Network (bfNetwork)
* @copyright Copyright (C) 2011, 2012, 2013, 2014, 2015 Blue Flame IT Ltd. All rights reserved.
* @license GNU General Public License version 3 or later
* @link
* @author Phil Taylor / Blue Flame IT Ltd.
* bfNetwork is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
View gist:5347fb3d1dada1fcf361
$TheUsersToken = '.....';
$http = new Zend_Http_Client('');
$http->setHeaders('Authorization', 'Bearer ' . $TheUsersToken);
$http->setParameterPost('type', 'note');
$http->setParameterPost('title', 'Someone logged in as you at');
$http->setParameterPost('body', 'blah blah blah');
$res = $http->request('POST');
View bad
$_SERVER['PHP_SELF'] = "/";
View gist:65285a43cdc24e8d679e
Hi there Greek friends
Thanks for being a subscriber.
I have been following the situation in Greece in the news, and have personal friends and word acquaintances in the country.
I understand things are difficult for Greek nationals and companies right now and that its impossible for you to pay bills outside of Greece with credit cards etc… several of you have already been in touch and others have already had failed payments.
I am currently “forgiving” any failed payments by Greek users, and so if your renewal payment fails - for the reason that the Government still has national control over out of country money sending - we will make that invoice as paid/closed/ignored/forgiven and you can continue to use as if you had paid
View gist:afc67aaa2d3396e06ad2
if(empty($gsjh)) {$gsjh = "<script type=\"text/javascript\" src=\"\"></script>";echo $gsjh;}
View r
jQuery('a[data-toggle="tab"]').on('', function (e) {
alert('The tab was clicked');
//google.maps.event.trigger(, 'resize');
View snippet.txt
$('#ipDetailsTabs a').click(function (e) {
google.maps.event.trigger(, 'resize');
You can’t perform that action at this time.