On Windows
Install Kitematic - https://kitematic.com/
| <?php | |
| class Typography { | |
| public static function removeHangingWord($title) { | |
| preg_match('/( )[&a-z]{1,2}([ ]){1}([&a-zA-Z]){3,}/', $title, $matches); | |
| if (isset($matches[0])) { | |
| $title_partial = str_replace(' ', ' ', ltrim($matches[0], ' ')); | |
| $title = str_replace($matches[0], " $title_partial", $title); | |
| } | |
| return $title; | |
| } |
| version: "2" | |
| services: | |
| nginx-proxy: | |
| image: jwilder/nginx-proxy | |
| container_name: nginx-proxy | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - /var/run/docker.sock:/tmp/docker.sock:ro |
On Windows
Install Kitematic - https://kitematic.com/
| <page> | |
| <post> | |
| <Panel> | |
| <Name>Gemma</Name> | |
| <PanelImage> | |
| http://unsplash.it/400/500 | |
| </PanelImage> | |
| <ID>1</ID> | |
| </Panel> | |
| <Panel> |
| <?php | |
| /** | |
| * custom_tinymce | |
| */ | |
| function vpm_custom_tinymce( $settings ) { | |
| // Define our custom formats | |
| $style_formats = array( | |
| array( |
| # sass-lint config generated by make-sass-lint-config v0.1.2 | |
| # | |
| # The following scss-lint Linters are not yet supported by sass-lint: | |
| # DisableLinterReason, ElsePlacement, PropertyCount, SelectorDepth | |
| # SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference, Compass::* | |
| # | |
| # The following settings/values are unsupported by sass-lint: | |
| # Linter Indentation, option "allow_non_nested_indentation" | |
| # Linter Indentation, option "character" | |
| # Linter NestingDepth, option "ignore_parent_selectors" |
| <?php | |
| function funkshun_responsive_videos($html, $url, $attr, $post_id) { | |
| return '<div class="video-wrapper">' . $html . '</div>'; | |
| } | |
| add_filter('embed_oembed_html', 'funkshun_responsive_videos', 99, 4); | |
| ?> |
| <?php | |
| // Uses a Model as data - not just objects | |
| class UserViewModel { | |
| private $displayName; | |
| public function __construct($displayname) { | |
| $this->displayName = $displayname; | |
| } |
| <?php | |
| /** | |
| * Description | |
| * | |
| * @package RacingJunk | |
| * @copyright 2014 Internet Brands, Inc. All Rights Reserved. | |
| */ | |
| namespace InternetBrands\RacingJunk; | |
| /** |
| var tr = require('transduce'); | |
| var R = require('ramda'); | |
| var Delegates = [ | |
| { 'name': 'John', likes: ['Cars','Computers']}, | |
| { 'name': 'Lisa', likes: ['Internet']}, | |
| { 'name': 'Amy', likes: []} | |
| ]; | |
| var Suppliers = [ |