<?php | |
if (!function_exists('interface_exists')) { | |
die('PHP version too old'); | |
} | |
$throwables = listThrowableClasses(); | |
$throwablesPerParent = splitInParents($throwables); | |
printTree($throwablesPerParent); | |
if (count($throwablesPerParent) !== 0) { | |
die('ERROR!!!'); |
#!/usr/bin/env php | |
<?php | |
define('VERSION', '1.0.24'); | |
define('DEFAULT_PIXEL', "\xE2\x96\x84"); | |
define('RC', "\e[0m"); | |
define('RCNL', RC . PHP_EOL); | |
define('CURRENT_FILE', array_shift($argv)); | |
error_reporting(0); |
[Desktop Entry] | |
Categories=Development; | |
Comment=Supercharge your API workflow | |
Exec="/home/hauthorn/Programs/Postman/Postman" | |
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png | |
Name=Postman | |
Terminal=false | |
Type=Application | |
Version=1.0 |
A basic set of systemd
units for starting Nginx and PHP-FPM daemons on system startup.
- Ensures Nginx web server has started before the PHP-FPM process.
- Nginx pid file placed at
/run/nginx.pid
. - PHP-FPM pid file placed at
/run/php7/php-fpm.pid
, PHP7 PHP-FPM config at/etc/php7
. - Based on usage with Ubuntu 16.04LTS / 18.04LTS.
Unit files are placed in /etc/systemd/system
and enabled with:
警告:请务必读完本文!全篇读完!
无论新老用户,都有可能掉进陷阱。 下面我们列出了常见的问题,并解释如何解决他们。 在 Freenode IRC 的 #nginx 频道,我们经常看到这些问题。
[TOC]
I fell in love with CoffeeScript a couple of years ago. Javascript has always seemed something of an interesting curiosity to me and I was happy to see the meteoric rise of Node.js, but coming from a background of Python I really preferred a cleaner syntax.
In any fast moving community it is inevitable that things will change, and so today we see a big shift toward ES6, the new version of Javascript. It incorporates a handful of the nicer features from CoffeeScript and is usable today through tools like Babel. Here are some of my thoughts and issues on moving away from CoffeeScript in favor of ES6.
While reading I suggest keeping open a tab to Babel's learning ES6 page. The examples there are great.
Holy punctuation, Batman! Say goodbye to your whitespace and hello to parenthesis, curly braces, and semicolons again. Even with the advanced ES6 syntax you'll find yourself writing a lot more punctuatio
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@link-color": "#333", | |
"@link-hover-color": "#E3411E", | |
"@font-family-sans-serif": "\"Microsoft YaHei\", Tahoma, Arial, Sans-Serif", | |
"@font-size-base": "13px", | |
"@line-height-base": "1.5384615", | |
"@screen-lg-min": "1440px", | |
"@container-sm": "100%", |