https://roots.io/trellis/docs/installing-trellis/
Follow this guide: https://code.visualstudio.com/Docs/languages/php
https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug
No need to install xdebug on your local machine.
<?php namespace GM; | |
class PointersManager implements PointersManagerInterface { | |
private $pfile; | |
private $version; | |
private $prefix; | |
private $pointers = array(); | |
public function __construct( $file, $version, $prefix ) { |
/*! | |
* jquery.addrule.js 0.0.1 - https://gist.github.com/yckart/5563717/ | |
* Add css-rules to an existing stylesheet. | |
* | |
* @see http://stackoverflow.com/a/16507264/1250044 | |
* | |
* Copyright (c) 2013 Yannick Albert (http://yckart.com) | |
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). | |
* 2013/05/12 | |
**/ |
<?php | |
namespace Roots\Sage\Nav; | |
use Roots\Sage\Utils; | |
/** | |
* Cleaner walker for wp_nav_menu() | |
* | |
* Walker_Nav_Menu (WordPress default) example output: |
#!/bin/bash | |
# This bash script works JUST with WP-CLI | |
# You can get it from here: | |
# http://wp-cli.org/ | |
# | |
# If you don't know what to do with this file: | |
# | |
# 1) Install wp-cli on your workspace | |
# 2) Create a file call wpinstall.sh |
body { | |
background-color: #002b36; | |
color: #839496; | |
font-size: 14px; | |
white-space: pre !important; | |
font-family: "Source Code Pro", monospace; | |
} | |
.property { | |
font-weight: bold; |
body { | |
white-space: pre; | |
font-family: monospace; | |
font-size: 1.2em; /* I like big fonts, if you don't remove this line */ | |
background: #272822; | |
color: #f8f8f2; | |
} | |
.property { | |
font-weight: auto; |
/** | |
* Copy of Excel's PMT function. | |
* Credit: http://stackoverflow.com/questions/2094967/excel-pmt-function-in-js | |
* | |
* @param rate_per_period The interest rate for the loan. | |
* @param number_of_payments The total number of payments for the loan in months. | |
* @param present_value The present value, or the total amount that a series of future payments is worth now; | |
* Also known as the principal. | |
* @param future_value The future value, or a cash balance you want to attain after the last payment is made. | |
* If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. |
https://roots.io/trellis/docs/installing-trellis/
Follow this guide: https://code.visualstudio.com/Docs/languages/php
https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug
No need to install xdebug on your local machine.
Try these rules:
(in www.domain.com's server block)
rewrite ^/$ http://domain.com permanent break;
rewrite ^/main(.*)$ http://domain.com$1 permanent break;