PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings>Code Style>PHP. - Select
Set From...(top right of window) >Predefined Style>WordPress.
No longer need to muck with this import! :)
| from suds.client import Client | |
| client = Client('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl') | |
| # Returns a dict-like object with the fields 'countryCode', 'vatNumber', | |
| # 'requestDate', 'valid' (boolean), 'name', and 'address'. | |
| result = client.service.checkVat('IE', '6390845P') |
| <?php | |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <sean@iamseanmurphy.com> | |
| * @copyright Copyright 2012 Sean Murphy. All rights reserved. |
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
| <?php | |
| /** | |
| * == About this Gist == | |
| * | |
| * Code to add to wp-config.php to enhance information available for debugging. | |
| * | |
| * You would typically add this code below the database, language and salt settings | |
| * | |
| * Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
| * |
| (function (l, h) { | |
| if ( typeof h.replaceState === 'undefined' ) { | |
| return; | |
| } | |
| if (!/[?&]utm_/ig.test(l.href)) { | |
| return; | |
| } |
| <?php | |
| /** | |
| * Class Container | |
| */ | |
| class Container | |
| { | |
| /** | |
| * @var array | |
| */ |
| <?php | |
| $radiusOfEarth = 3959; //miles | |
| // Address 1 | |
| $latitudeOne = deg2rad(33.4151843); | |
| $longitudeOne = deg2rad(-111.8314724); | |
| // Address 2 | |
| $latitudeTwo = deg2rad(33.0581063); | |
| $longitudeTwo = deg2rad(-112.0476423); |