I hereby claim:
- I am dwcdev on github.
- I am dwcdev (https://keybase.io/dwcdev) on keybase.
- I have a public key ASDKsQUjaTuhI_dZcVhyEuFQBcRY57WS3Tf7I2kb6GAxGAo
To claim this, I am signing this object:
// Trippy concentric circle spinner | |
// code from: frontend.horse | |
// https://frontend.horse/articles/concentric-circle-spinner | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} |
<?php | |
use Drupal\block\Entity\Block; | |
function yourtheme_preprocess_block(&$vars) { | |
// we expect a block ID | |
if (empty($vars['elements']['#id'])) { | |
return; | |
} | |
<?php | |
// array of food items | |
$foods = [ | |
'fruits' => ['banana', 'apple', 'lemon'], | |
'veggies' => ['celery', 'spinach', 'kale'] | |
]; | |
// return an array | |
function get_foods($food_type = '') { |
<?php | |
// return a full name | |
function fmt_name($first_name = '', $last_name = '') { | |
if (!strlen($first_name) && !strlen($last_name)) { | |
return ''; | |
} | |
return $first_name . ' ' . $last_name; | |
} |
# The primary network interface | |
allow-hotplug wlan0 | |
iface wlan0 inet dhcp | |
wpa-ssid MY-OFFICE-WIFI-SSID-HERE | |
wpa-psk MY-WIFI-PASSWORD-HERE |
var initMap = function() { | |
google.maps.visualRefresh = true; | |
var map_opts = { | |
zoom: 11, | |
// Centered to Indianapolis... | |
center: new google.maps.LatLng(39.768403, -86.158068), | |
// The style is pasted into a member of a gmap_styles literal. You can |
<?php | |
function _geocode($api = NULL, $key = NULL, $address = NULL) { | |
// make sure we have all the parameters | |
if (!$api || !$key || !$address) { | |
return NULL; | |
} | |
// fmt api call with key and url encoded address | |
$geocode_url = $api . '?address=' . urlencode($address) . '&key=' . $key; |
# Only allow from CloudFlare IPs | |
Order Deny,Allow | |
Deny from all | |
Allow from 103.21.244.0/22 | |
Allow from 103.22.200.0/22 | |
Allow from 103.31.4.0/22 | |
Allow from 104.16.0.0/13 | |
Allow from 104.24.0.0/14 | |
Allow from 108.162.192.0/18 | |
Allow from 131.0.72.0/22 |
I hereby claim:
To claim this, I am signing this object: