This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button> | |
<span class="visually-hidden">Some text to announce</span> | |
<!-- your icon or whatever --> | |
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
permalink: '/feed.html' | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ site.name }}</title> | |
<subtitle></subtitle> | |
<link href="{{ site.url }}{{ permalink }}" rel="self"/> | |
<link href="{{ site.url }}/"/> | |
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
random() { | |
const segment = () => { | |
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); | |
}; | |
return `${segment()}-${segment()}-${segment()}`; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const html = input => input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pass in an element and its CSS Custom Property that you want the value of. | |
* Optionally, you can determine what datatype you get back. | |
* | |
* @param {String} propKey | |
* @param {HTMLELement} element=document.documentElement | |
* @param {String} castAs='string' | |
* @returns {*} | |
*/ | |
const getCSSCustomProp = (propKey, element = document.documentElement, castAs = 'string') => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Box sizing rules */ | |
* { | |
box-sizing: border-box; | |
} | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dear Andrea Leadsom MP, | |
I won’t be able to travel to London today, but I would like to make it known that I support the People’s Vote March. | |
The “will of the people” has changed since 2016 and I hope this event will make this clear to you and your Government colleagues. | |
Sincerely, | |
Andrew Bell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$name = 'Andy'; | |
$age = 31; | |
$favouriteTakeaways = ['Indian', 'Italian', 'Thai']; | |
$favouriteCodeLanguages = ['HTML', 'CSS', 'JavaScript', 'PHP']; | |
?> | |
<!doctype HTML> | |
<html> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Take a base date, modify it with passed options and return back the number of seconds since Epoch time | |
* | |
* @param {Object} [options={}] Options for what you want to modify, follows the following format: { hours: 0, minutes: 0, seconds: 0 } | |
* @returns {Number} | |
*/ | |
const modifyUnixTime = (options = {}) => { | |
// Create our modifications object by merging a static base with the passed options | |
const modifications = Object.assign( | |
{ hours: 0, minutes: 0, seconds: 0 }, |