I hereby claim:
- I am laradevitt on github.
- I am laradevitt (https://keybase.io/laradevitt) on keybase.
- I have a public key ASDKJvteLEdz_lFzXDKqrVX8-HmK4l2624uDjuYqBQnQuAo
To claim this, I am signing this object:
(function(CookieControl) { | |
/** | |
* Creating custom events to dispatch the various states of Cookie Control UI. | |
*/ | |
CookieControl.loadedEvent = new Event('cc.loaded'); | |
CookieControl.openedEvent = new Event('cc.open'); | |
CookieControl.closedEvent = new Event('cc.closed'); | |
/** |
<?php | |
/** | |
* Implements hook_preprocess_node__HOOK(). | |
* | |
* (a11y) Pass the media target_id to the template so we can use it to form | |
* a unique id to target from aria-describedby attribute. | |
*/ | |
function MYTHEME_preprocess_node__slide(array &$variables) { | |
$node = $variables['node']; |
<?php | |
/** | |
* Implements hook_preprocess_image(). | |
* | |
* Adding src here fixes validation error 'Element img is missing required | |
* attribute src' when using the lazysizes library. | |
* https://github.com/aFarkas/lazysizes/issues/500#issuecomment-616115829 | |
*/ | |
function MYTHEME_preprocess_image(array &$variables) { |
#!/bin/sh | |
SITEMAP=$1 | |
COUNT=$2 | |
if [ "$SITEMAP" = "" ] || [ "$COUNT" = "" ]; then | |
echo "Usage: $0 https://example.com/sitemap.xml 1" | |
exit 1 | |
fi |
<?php | |
use Drupal\media\Entity\Media; | |
/** | |
* @file | |
*/ | |
/** | |
* Convert transient file entities that weren't processed during migration. |
var SHEET_MAIN = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Form Responses 1'); | |
var SHEET_RSVP = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('RSVPs'); | |
var SHEET_EMAIL = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Invitees'); | |
function onFormSubmit(e) { | |
var range = e.range; | |
var values = range.getValues(); | |
var row = values[0]; | |
var email = row[1]; |
I hereby claim:
To claim this, I am signing this object:
Example generic type when using React Structured Data
<JSONLD dangerouslyExposeHtml={true}>
<Generic
type="Event"
jsonldtype="Event"
schema={{
name: `Somebody at ${content.venue}`,
startDate: content.date,
To access data from a Google Sheet with your app, you will need to create a service account and download a credentials file from the Google API Console.
<?php | |
// I was getting a lot of "Indexed, though blocked by robots.txt" coverage | |
// errors on search/ pages from Google. Since robots.txt only prevents | |
// crawling, not indexing, I will allow crawling and prohibit indexing via | |
// the "robots" meta tag instead. | |
function MYTHEME_preprocess_html(&$variables) { | |
MYTHEME_add_meta_robots_noindex(); | |
} |