env GOOS=target-OS GOARCH=target-architecture go build package-import-path
# Example
env GOOS=darwin GOARCH=amd64 go build
env GOOS=darwin GOARCH=amd64 go build main.go
env GOOS=darwin GOARCH=amd64 go build github.com/zoo/york/foo/bar| [PHP] | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
| import React, { FC } from 'react'; | |
| import { useSocket } from '@myapp/hooks'; | |
| import {Order} from '@myapp/models'; | |
| export const OrdersComponent: FC = () => { | |
| const [orders,setOrders] = useState<Order[]>(); | |
| function addNewOrder(neworder:Order) { |
Install homebrew → https://brew.sh
Install beforehand NginX, MariaDB, DnsMasq and PHP7.2 with Composer
$ brew install php nginx mariadb dnsmasq composer
| // Add this to your 'plugins' array in your tailwind config file. | |
| // This creates classes suffixed with an opacity level for each bg colour | |
| // For example, .bg-red would have .bg-red-10 through .bg-red-100 for 0.10% opacity background and 100% opacity respectively. | |
| ({addUtilities, config}) => { | |
| let colors = config('colors', []); | |
| const newColors = {}; | |
| let hexToRgb = (hex) => { | |
| var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
| return result ? { | |
| r: parseInt(result[1], 16), |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
**/node_modulesprettier --write "**/*.js" *Don't forget the quotes.This procedure is tested on Mac OS X 10.12.6 with Developpers tools installed (xCode).
PHP 5.6 installed with https://php-osx.liip.ch/.
Download the following files from Oracle website (yes, you need to create an account and accept terms):