First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| <?php | |
| /** | |
| * @package {ORGANIZATION}.Plugin | |
| * @subpackage system.plg_flower | |
| * @copyright Copyright (C) 2012 {ORGANIZATION}.com, Inc. All rights reserved. | |
| * @license GNU General Public License version 2 or later. | |
| */ | |
| use Joomla\CMS\Application\CMSApplication; | |
| use Joomla\CMS\Factory; |
| <?php | |
| $filename = 'pdf-download'; | |
| $options = new \Dompdf\Options; | |
| $options->set('isRemoteEnabled', true); | |
| $dompdf = new \Dompdf\Dompdf($options); | |
| $dompdf->set_option('defaultFont', 'droidsansfallback'); | |
| $dompdf->set_option('isFontSubsettingEnabled', true); |
| use Windwalker\Uri\Uri; | |
| /** | |
| * The AsyncRequest class. | |
| * | |
| * @since {DEPLOY_VERSION} | |
| */ | |
| class AsyncRequest | |
| { | |
| /** |
| function AjaxHelper() { | |
| this.ajax = function(url, type, dataType, data, callback) { | |
| $.ajax({ | |
| url: url, | |
| type: type, | |
| dataType: dataType, | |
| data: data, | |
| success: callback, | |
| error: function(xhr, errorType, error) { | |
| alert('Ajax request error, errorType: ' + errorType + ', error: ' + error) |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.
The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| @dot_cycle = ['⣾','⣽','⣻','⢿','⡿','⣟','⣯','⣷'] | |
| #braille random: 0x2800 - 0x28ff | |
| @z_arrow = ['←','↖','↑','↗','→','↘','↓','↙'] | |
| @z_b = ['b','ᓂ','q','ᓄ'] | |
| @z_d = ['d','ᓇ','p','ᓀ'] |
| <?php | |
| /** | |
| * Part of ihealth project. | |
| * | |
| * @copyright Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved. | |
| * @license GNU General Public License version 2 or later; see LICENSE | |
| */ | |
| use Windwalker\Data\Data; |