Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php56
| { | |
| "exportFormatVersion": 2, | |
| "exportTime": "2024-12-18 14:44:29", | |
| "containerVersion": { | |
| "path": "accounts/6260567265/containers/202414991/versions/0", | |
| "accountId": "6260567265", | |
| "containerId": "202414991", | |
| "containerVersionId": "0", | |
| "container": { | |
| "path": "accounts/6260567265/containers/202414991", |
| const fetchMachine = Machine({ | |
| id: 'fetch', | |
| initial: 'c9e177d3-43cb-45b4-93ab-34371b0d317f', | |
| context: { | |
| retries: 0 | |
| }, | |
| states: { | |
| "c9e177d3-43cb-45b4-93ab-34371b0d317f": { | |
| "__typename": "XState", |
| add_action('wp_ajax_testAction', 'testActionFunction'); | |
| add_action('wp_ajax_nopriv_testAction', 'testActionFunction'); // only include if non-logged in users should be able to do this | |
| function testActionFunction(){ | |
| //You can catch variables like this | |
| $name = !empty($_POST['name'])?$_POST['name']:''; | |
| // You return data by echo it or by wp_send_json | |
| echo $name; |
| const path = require('path'); | |
| const fs = require('fs'); | |
| const glob = require('glob-all'); | |
| const appDirectory = fs.realpathSync(process.cwd()); | |
| const resolveApp = relativePath => path.resolve(appDirectory, relativePath); | |
| const PurgecssPlugin = require('purgecss-webpack-plugin'); | |
| module.exports = { |
| .PHONY: all tags clean test build install generate image release | |
| REGISTRY_REPO = <..redacted..> | |
| OK_COLOR=\033[32;01m | |
| NO_COLOR=\033[0m | |
| ERROR_COLOR=\033[31;01m | |
| WARN_COLOR=\033[33;01m | |
| # Build Flags |
| .select-picker { | |
| background-color: #f5f7fa; | |
| -webkit-appearance: none; | |
| -moz-appearance: none; | |
| min-height: 46px; | |
| padding-left: 1.5em !important; | |
| width: 100%; | |
| font-weight: 700; | |
| border: 1px solid #dae1e9; |
| let re; | |
| //this looks for the string between the slashes. it'll match hello but not HeLlo. | |
| re = /hello/; | |
| //the lower case i means be case insensitive. this will match HellO. | |
| re = /hello/i; | |
| // explaination for common search characters |
| found here: https://www.youtube.com/watch?v=m-NYyst_tiY | |
| var people = { | |
| people: ['Will', 'Steve'], | |
| init: function() { | |
| this.cacheDom(); | |
| this.bindEvents(); | |
| this.render(); | |
| }, | |
| cacheDom: function() { | |
| this.$el = $('#peopleModule'); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <body> |
Firstly install Brew on your MAC
Then install PHP