Skip to content

Instantly share code, notes, and snippets.

View patrickcoombe's full-sized avatar

Patrick Coombe patrickcoombe

View GitHub Profile
@patrickcoombe
patrickcoombe / concert-simple.js
Last active April 26, 2019 18:19
Concert Simple
<script type="application/ld+json">
[{
"@context" : "https://schema.org",
"@type" : "MusicEvent",
"name" : "B.B. King",
"startDate" : "2014-04-12T19:30",
"location" : {
"@type" : "Place",
"name" : "Lupo's Heartbreak Hotel",
"address" : "79 Washington St., Providence, RI"
@patrickcoombe
patrickcoombe / concert-multiple-performers.js
Last active October 17, 2023 08:24
Concert: Multiple Performers
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "MusicEvent",
"name": "Shostakovich Leningrad",
"startDate": "2014-05-23T20:00",
"location": {
"@type": "MusicVenue",
"name": "Chicago Symphony Center",
"address": "220 S. Michigan Ave, Chicago, Illinois, USA"
@patrickcoombe
patrickcoombe / event-venue.js
Last active April 26, 2019 18:19
Event: Venue
<script type="application/ld+json">
[{
"@context" : "https://schema.org",
"@type" : "MusicEvent",
"name" : "B.B. King",
"startDate" : "2014-04-12T19:30",
"location" : {
"@type" : "Place",
"name" : "Lupo's Heartbreak Hotel",
"address" : "79 Washington St., Providence, RI"
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Executive Anvil",
"image": "http://www.example.com/anvil_executive.jpg",
"description": "Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
"mpn": "925872",
"brand": {
"@type": "Thing",
@patrickcoombe
patrickcoombe / video.js
Last active April 26, 2019 18:19
Video
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Funny Cat Poses 2.0",
"description": "A short description of your video, we'd keep it at 140 characters just to be safe.",
"thumbnailUrl": "http://www.example.com/thumbnail.jpg",
"uploadDate": "2015-04-05T08:00:00+02:00",
"duration": "PT1M33S",
"contentUrl": "http://www.example.com/movie.mov",
@patrickcoombe
patrickcoombe / techparticle
Last active August 12, 2021 14:59
Tech Article
<script type="application/ld+json">
{ "@context": "https://schema.org",
"@type": "TechArticle",
"headline": "Extra! Extra! Read alla bout it",
"dependencies": "You must be at least a level 2 PRO to make this happen",
"proficiencyLevel": "Expert",
"alternativeHeadline": "This article is also about robots and stuff",
"image": "http://example.com/image.jpg",
"author": "Patrick Coombe",
"award": "Best article ever written",
<script type="application/ld+json">
//Code borrowed from Google's AMP project Github
// The document referenced in mainEntityOfPage should be the same as the
// canonical link above.
//
// Also, please be aware that some platforms that use AMP HTML have
// further restrictions with regards to some schema components.
//
// For example:
//
@patrickcoombe
patrickcoombe / review.js
Last active April 26, 2019 18:20
structured data for review
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"image": "http://www.example.com/iphone-case.jpg",
"name": "The Catcher in the Rye",
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",

Keybase proof

I hereby claim:

  • I am PatrickCoombe on github.
  • I am patrickcoombe (https://keybase.io/patrickcoombe) on keybase.
  • I have a public key whose fingerprint is 69C0 B6E7 7626 6AC0 CE7F 1F2B 9DBC C15C B0F1 CE57

To claim this, I am signing this object:

@patrickcoombe
patrickcoombe / breadcrumbs
Last active April 26, 2019 18:20
json-ld markup for breadcrumbs (Google's example)
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "https://example.com/books",
"name": "Books",