This document helps get your macOS development environment up and running with the latest versions of Homebrew, Apache, PHP, and MariaDB.
| <?php | |
| /** | |
| * Insert an attachment from an URL address. | |
| * | |
| * @param String $url | |
| * @param Int $parent_post_id | |
| * @return Int Attachment ID | |
| */ | |
| function crb_insert_attachment_from_url($url, $parent_post_id = null) { |
| Location | Name | Frequency | Duplex | Offset | Tone | rToneFreq | cToneFreq | DtcsCode | DtcsPolarity | Mode | TStep | Skip | Comment | URCALL | RPT1CALL | RPT2CALL | DVCODE | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 462.125000 | 0.000000 | TSQL | 88.5 | 69.3 | 023 | NN | FM | 5.00 | S | ||||||||
| 2 | 462.225000 | 0.000000 | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S | |||||||||
| 3 | 462.325000 | 0.000000 | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S | |||||||||
| 4 | 462.425000 | 0.000000 | TSQL | 88.5 | 103.5 | 023 | NN | FM | 5.00 | S | ||||||||
| 5 | 462.525000 | 0.000000 | TSQL | 88.5 | 114.8 | 023 | NN | FM | 5.00 | S | ||||||||
| 6 | 462.625000 | 0.000000 | TSQL | 88.5 | 127.3 | 023 | NN | FM | 5.00 | S | ||||||||
| 7 | 462.725000 | 0.000000 | TSQL | 88.5 | 136.5 | 023 | NN | FM | 5.00 | S | ||||||||
| 8 | 462.825000 | 0.000000 | TSQL | 88.5 | 162.2 | 023 | NN | FM | 5.00 | S | ||||||||
| 9 | 462.925000 | 0.000000 | DTCS | 88.5 | 88.5 | 023 | NN | FM | 5.00 | S |
| <?php | |
| //class docs: http://www.orderingdisorder.com/aws/ses/ | |
| require_once('ses.php'); | |
| //get credentials at http://aws.amazon.com My Account / Console > Security Credentials | |
| $ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY', 'eu-west-1', 'email.eu-west-1.amazonaws.com'); | |
| //print_r($ses->listVerifiedEmailAddresses()); |
| # BASIC TKINTER CHEATSHEET | |
| # Build basic GUIs with Python | |
| from tkinter import * | |
| from tkinter import scrolledtext | |
| from tkinter import messagebox | |
| from tkinter.ttk import Progressbar | |
| from tkinter import filedialog | |
| from tkinter import Menu |
| <?php | |
| $query = <<<'GRAPHQL' | |
| query GetUser($user: String!) { | |
| user (login: $user) { | |
| name | |
| repositoriesContributedTo { | |
| totalCount | |
| } |
| // Unity C# Cheat Sheet | |
| // I made these examples for students with prior exerience working with C# and Unity. | |
| // Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting |
| /* | |
| * Example adds certain named Product Attribute fields to the product Edit screen ready for completion. | |
| * (Pre-requisite ) | |
| * This saves the Shop Admin having to add them manually. | |
| * | |
| * Why might you want to do this instead of adding Custom fields? There's plenty of nice documentation on adding custom fields | |
| * for example: http://www.remicorson.com/mastering-woocommerce-products-custom-fields/ | |
| * | |
| * Well a Product Attributes are a built in WooCommerce feature, using Terms which are a built in Wordpress feature. | |
| * - no add-ons required |
| #!/bin/bash | |
| curl -ks https://gist.githubusercontent.com/nicerobot/1622504/raw/gist-backup.py | USER=${USER} python3 |
| pipeline { | |
| agent any | |
| stages { | |
| stage('Prepare') { | |
| steps { | |
| sh 'composer install' | |
| sh 'rm -rf build/api' | |
| sh 'rm -rf build/coverage' | |
| sh 'rm -rf build/logs' |