Skip to content

Instantly share code, notes, and snippets.

💭
Working remotely from home on St Albans

Phil Hawksworth philhawksworth

💭
Working remotely from home on St Albans
Block or report user

Report or block philhawksworth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@philhawksworth
philhawksworth / conference-mc-tips.md
Last active Aug 13, 2019
Conference MC-ing tips
View conference-mc-tips.md

👀📎 It looks like you're preparing to MC a conference...

🚨 GIANT DISCLAIMER: This stuff is far from authoritative. But it's what I think works for me, and what I enjoy in an MC when I'm attending a conference.


Biggest tip - enjoy yourself.

@philhawksworth
philhawksworth / jamstack-q-and-a-frontend-united.md
Last active May 23, 2019
Q&A from the JAMstack talk at Frontend United
View jamstack-q-and-a-frontend-united.md

Thanks for all of your questions during my talk at Frontend United: JAMstack: Silly name. Serious business.

1. Jeremy asks:

@philhawksworth
philhawksworth / netlify.toml
Created Jan 4, 2018
Example netlify configuration file
View netlify.toml
# Our global, build settings
[build]
base = "site" # run the buold from this directory
publish = "public" # the output diretory to push to the CDN after the build
command = "gulp build" # the command to build our site
# Specific branch context: Deploys from this branch
# will take these settings and override their
# current ones.
@philhawksworth
philhawksworth / _redirects
Last active Aug 11, 2019
Simple example of Netlify _redirects file
View _redirects
# Redirect with a 301
/home / 301
# Redirect with a 302
/my-redirect / 302
# Rewrite a path
/pass-through /index.html 200
@philhawksworth
philhawksworth / _headers
Last active Jan 4, 2018
Simple example of a Netlify _headers file (no file extension in the real world)
View _headers
# A path:
/assets/*
# Headers for that path:
Cache-Control: public, max-age=360000
/templates/index.html
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
View gist:acaa15d7af0aaba1fda7
{
me: "lager",
finchy: "lager",
gareth: "lager, sometimes cider",
conclusion: "different people, different drinks"
}
View config.yml
# Site settings
title: Your awesome title
email: your-email@domain.com
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
baseurl: ""
url: "http://yourdomain.com"
# Build settings
markdown: kramdown
@philhawksworth
philhawksworth / sublime-text-packages.md
Last active Mar 25, 2018
Useful SublimeText packages
View sublime-text-packages.md
View gist:3666283
control = {
32 : go_up,
46 : go_down
};
$(document).bind("keydown", function(e) {
console.log("keydown: ", e.keyCode);
if(!control[e.keyCode]) {
return;
}
View gist:2635863
public static function getConfiguratorProductCategoryMediatorName(productCategory : String) : String {
return productCategory;
}
You can’t perform that action at this time.