#MailHog example page
MailHog is an email testing tool for developers.
It gives the developer the option to intercept and inspect the emails sent by his application.
You can download the MailHog Windows client from one of the links below.
<?php | |
/** | |
* Convert a multi-dimensional array into a single-dimensional array. | |
* @author Sean Cannon, LitmusBox.com | seanc@litmusbox.com | |
* @param array $array The multi-dimensional array. | |
* @return array | |
*/ | |
function array_flatten($array) { | |
if (!is_array($array)) { |
#MailHog example page
MailHog is an email testing tool for developers.
It gives the developer the option to intercept and inspect the emails sent by his application.
You can download the MailHog Windows client from one of the links below.
The following code saves a canvas as png with ajax to php. | |
Javascript: | |
var canvasData = canvasElement.toDataURL("image/png"); | |
$.ajax({ | |
url:'save.php', | |
type:'POST', | |
data:{ | |
data:canvasData |
// Fuzzy matching algorithm | |
var fuzzyMatch = function(needle, haystack) { | |
if(needle === "" || haystack === "") return true; | |
needle = needle.toLowerCase().replace(/ /g, ""); | |
haystack = haystack.toLowerCase(); | |
// All characters in needle must be present in haystack | |
var j = 0; // haystack position | |
for(var i = 0; i < needle.length; i++) { |
So before I went down the JWT route, whilst it would work, I haven't finished it yet and doing so would require lots of testing. Even more so, I went down the JWT route because I couldn't get WP authentication to work before. :/
But now I have.
Currently the UX for the voting plugin is not ideal. There should be one dashboard where the awards
A list of sites using the WP REST API in production (aka add your own)
If you're like me and want to have your LAMP Stack setup simple and ready to go, you would love this piece of software. AMPPS is a product from the well-known Softaculous team, that packs an Apache Web Server, MySQL, PHP, Perl, Python and SOFTACULOUS.
$ sudo apt-get update
Install much needed dependencies
$ sudo apt-get install libfontconfig1 libxrender1
<?php | |
/** | |
* Plugin Name: Filter WooCommerce Orders by Payment Method | |
* Plugin URI: http://skyverge.com/ | |
* Description: Filters WooCommerce orders by the payment method used :) | |
* Author: SkyVerge | |
* Author URI: http://www.skyverge.com/ | |
* Version: 1.0.0 | |
* Text Domain: wc-filter-orders-by-payment | |
* |
sudo softwareupdate --ignore "macOS Catalina" | |
sudo softwareupdate --reset-ignored | |
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 | |
killall Dock |
<?php | |
/** | |
* Is RTL | |
* Check if there RTL characters (Arabic, Persian, Hebrew) | |
* | |
* @author Khaled Attia <sourcecode@khal3d.com> | |
* @param String $string | |
* @return bool | |
*/ |