Skip to content

Instantly share code, notes, and snippets.

@kristyanne
kristyanne / php-local-dev.md
Last active January 27, 2017 12:33
PHP Local Dev Notes

MySQL

  • This is installed now (via Homebrew).
  • To run, mysql.server start
  • To test connection: mysql -uroot -p

PHP

  • php is installed via Homebrew.
  • Added as an alias for the PHP CLI in .zshrc
@kristyanne
kristyanne / static-cms-fe.md
Last active January 25, 2017 14:56
Requirements for a static front-end with decoupled CMS

CMS Requirements

  1. Has an API
  2. Easily customisable/extendable.
  3. Ability to manage menu/navigation structure.
  4. Pages content type (as standard).
  5. News/blog content type (as standard).
  6. User role management (e.g. admin, author etc) (as standard).
  7. Secure.
  8. Image library and cropping functionality (as standard).
@kristyanne
kristyanne / mab-fe.md
Last active October 18, 2017 10:37
Dev

Header

  1. TODO: (ICONS) Add chevron into the links for sign in and register.
  2. BUG: The logo is too big in IE10.
  3. TODO: Nav animation is crap.
  4. TODO: Height of the header on mobile/tablet - Is it smaller?
  5. TODO: The advisor widget thing almost definitely won't fit but try and make it fit.
  6. QUESTION: Header search - Are we doing this? If so, find out how it's meant to work.
  7. QUESTION: At what point should the nav slide up (fixed header)? It's currently a random px value.
@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...
{
"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",
{
"@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"}
@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>
@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 / 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 / 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>