This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| $constructor = function(string $name) { | |
| $properties = ['name' => $name]; | |
| return function(string $method) use (&$properties) { | |
| return match($method) { | |
| 'say' => fn() => print('hello '.$properties['name']."\n"), | |
| 'rename' => function(string $name) use (&$properties): void { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <key>CFBundleURLTypes</key> | |
| <array> | |
| <dict> | |
| <key>CFBundleURLName</key> | |
| <string>SysPref Handler</string> | |
| <key>CFBundleURLSchemes</key> | |
| <array> | |
| <string>sublime</string> | |
| </array> | |
| </dict> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # install php 7.2 | |
| apt-get install apt-transport-https lsb-release ca-certificates -y | |
| wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
| echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list | |
| apt-get update | |
| apt-get install git php7.2 php7.2-fpm php7.2-cli php7.2-json php7.2-xml php7.2-intl php7.2-mbstring php7.2-curl php7.2-zip php7.2-gd php7.2-bcmath -y | |
| # install composer |