Skip to content

Instantly share code, notes, and snippets.

@kristyanne
kristyanne / ds.json
Last active September 7, 2021 16:20
SD.json
// 1843 Article (Digital)
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"url": "https://www.economist.com/1843/2021/08/31/i-cant-stand-my-childrens-whingeing-but-secretly-i-admire-it",
"dateline": "",
"headline": "I can’t stand my children’s whingeing. But secretly I admire it",
"description": "When we moan, we lament the injustice of the universe",
"mainEntityOfPage": "https://www.economist.com/1843/2021/08/31/i-cant-stand-my-childrens-whingeing-but-secretly-i-admire-it",
{
"rootValue": {
"requestId": "cp-gateway:80:1.15.8:9ebcff8cd6b2be1dc43a5a87e50839a7",
"isFromCloudflare": false,
"xFresh": false,
"requestCount": 1,
"requests": [
"HTTP GET http://cp-gateway.p.aws.economist.com/xref/www.economist.com/graphic-detail/2021/06/26/zombie-research-haunts-academic-literature-long-after-its-supposed-demise?workflow=pub&body=html&payload=canonical-full"
],
"tegIDs": [
https://www.economist.com/special-report/2021-06-26: 400 × 526 (The Chinese Communist Party)
https://www.economist.com/special-report/2021-06-05: 400 x 526 (Brazil)
https://www.economist.com/special-report/2021-05-22: 1280 × 1684 (Race in America)
https://www.economist.com/special-report/2021-05-08: 1280 × 1684 (The future of banking)
https://www.economist.com/special-report/2021-04-10: 1280 × 1684 (The future of work)
https://www.economist.com/special-report/2021-03-13: 400 × 526 (The future of shopping)
https://www.economist.com/special-report/2021-02-13: 1280 × 1684 (The future of travel)
https://www.economist.com/special-report/2021-01-23: 1280 × 1684 (Generation Xi)
@kristyanne
kristyanne / article-prod.html
Created February 22, 2021 16:35
Article Prod
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="amphtml" href="https://amp.economist.com/china/2021/02/20/chinas-roll-out-of-covid-19-vaccines-is-slower-than-planned"/>
<link rel="canonical" href="https://www.economist.com/china/2021/02/20/chinas-roll-out-of-covid-19-vaccines-is-slower-than-planned"/>
<script>
window.env = {"ENV":"production"};
</script>
@kristyanne
kristyanne / article-new.html
Created February 22, 2021 16:29
Article Local
<!DOCTYPE html>
<html lang="en">
<head>
<style data-next-hide-fouc="true">body{display:none}</style>
<noscript data-next-hide-fouc="true"><style>body{display:block}</style></noscript>
<script>
window.env = {"ENV":"local"};
</script>
<meta name="viewport" content="width=device-width"/>
@kristyanne
kristyanne / home-new.html
Last active February 22, 2021 16:23
Home Local
<!DOCTYPE html>
<html lang="en">
<head>
<style data-next-hide-fouc="true">body{display:none}</style> // Local only, this is fine
<noscript data-next-hide-fouc="true">
<style>body{display:block}</style>
</noscript>
<script>
window.env = {"ENV":"local"};
</script>
@kristyanne
kristyanne / home-prod.html
Created February 22, 2021 16:21
Home Prod
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="canonical" href="https://www.economist.com"/>
<script>
window.env = {"ENV":"production"};
</script>
<script src="https://cdn.optimizely.com/js/19440972562.js" id="optimizely-script"></script>
{
"@context":"http://schema.org",
"@type":"Article",
"url":"https://www.economist.com/the-americas/2021/02/02/colombias-peace-tribunal-issues-a-crushing-judgment-against-the-farc",
"publisher":{
"@type":"NewsMediaOrganization",
"name":"The Economist",
"logo":{
"@type":"ImageObject",
"url":"https://amp.economist.com//engassets/google-search-logo.f1ea908894.png"}
{
"type": "article",
"publication": "1843",
"template": "full-width",
"paywalled": true,
"slug": "/some-article-slug",
"author": "some author here",
"tags": ["some", "array", "of", "topics", "or", "tags", "or", "subjects", "or", "whatever"],
"subtitle": "Behind the news",
"title": "They stormed the Capitol, then posed for selfies",
@kristyanne
kristyanne / gitflow.md
Last active April 26, 2018 13:24
Git Flow

Working on a feature.

  1. Checkout develop
  2. Pull from develop
  3. Create new branch from develop (feature/feature-name-here)
  4. Work on that....
  5. When code complete, merge into develop (git checkout develop, git merge feature/feature-name-here, git push origin develop)
  6. Create release branch from develop (release/major.minor.hotfix)
  7. Fix bugs on that release branch
  8. When QA complete...