- ./docker-compose.yml
- ./php/Dockerfile
- ./php/php.ini
- ./nginx/Dockerfile
- ./nginx/default.conf
- ./nginx/certs (Directory for generated certificates)
This file contains 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
/** | |
* Sanitize SVG markup for front-end display. | |
* | |
* @link https://developer.wordpress.org/reference/functions/wp_kses/#comment-6185 | |
* | |
* @param string $svg SVG markup to sanitize. | |
* @return string Sanitized markup. | |
*/ | |
function sanitize_svg( $svg = '' ) { | |
$allowed_html = array( |
This file contains 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
VITE_BASE="/directory/" |
This file contains 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
<!doctype html> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<!-- Supports modern JS? --> |
This file contains 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
function post(Request $request) | |
{ | |
$rules = [ | |
'items' => 'nullable|array' | |
]; | |
// set default value for optional array fields | |
$request->merge(['items' => $request->input('items', [])]); | |
// validate as usual |
This file contains 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 | |
directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
/usr/local/bin/php "$directory/artisan" schedule:run >> /dev/null 2>&1 |
This file contains 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
// superscript ® | |
$(function() { | |
$('body :not(script,sup)').contents().filter(function() { | |
return this.nodeType === 3 | |
}).replaceWith(function() { | |
return this.nodeValue | |
.replace(/®/gi, '<sup>®</sup>') | |
.replace(/®/gi, '<sup>®</sup>'); | |
}); | |
}); |
Create new workbook Data > From Text > Select your CSV file In the popup, choose "Delimited" radio button, then click "Next >" Delimiters checkboxes: tick only "Comma" and uncheck the other options, then click "Next >" In the "Data preview", scroll to the far right, then hold shift and click on the last column (this will select all columns). Now in the "Column data format" select the radio button "Text", then click "Finish".
NewerOlder