Quick and easy class created to modify the WP_Query on specific calls and pull in all posts within a radius from a given latitude and longitude.
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
<?php | |
function get_tls_version($sslversion = null) | |
{ | |
$c = curl_init(); | |
curl_setopt($c, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, true); | |
if ($sslversion !== null) { | |
curl_setopt($c, CURLOPT_SSLVERSION, $sslversion); | |
} |
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
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
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
"overrides": { | |
"bootstrap": { | |
"main": [ | |
"./scss/_variables.scss", | |
"./scss/_mixins.scss", | |
"./scss/_custom.scss", | |
"./scss/_normalize.scss", | |
"./scss/_print.scss", | |
"./scss/_reboot.scss", | |
"./scss/_type.scss", |
Most basic example to center and scale your map with d3.geoBounds(), d3.geoCentroid() and d3.geoDistance().
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
{ | |
"name": "wordpress-search-react", | |
"version": "1.0.0", | |
"description": "Powering WordPress Search with React and REST API", | |
"main": "assets/js/public.js", | |
"scripts": { | |
"build": "webpack", | |
"watch": "webpack --watch", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, |
OlderNewer