Skip to content

Instantly share code, notes, and snippets.

View spences10's full-sized avatar
💭
SvelteKit is bae!

Scott Spence spences10

💭
SvelteKit is bae!
View GitHub Profile
@spences10
spences10 / default-windows-terminal-config.json
Created October 11, 2021 19:44
This is the default config that comes with the Windows Terminal Preview as of 2021-10-11
// This file was initially generated by Windows Terminal Preview 1.11.2731.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@spences10
spences10 / marvel-names.json
Created April 26, 2017 07:53
List of Marvel characters names source: https://marvel.com/comics/characters
[
"3-D Man",
"A.I.M.",
"Aaron Stack",
"A-Bomb (HAS)",
"Abomination (Emil Blonsky)",
"Abomination (Ultimate)",
"Absorbing Man",
"Abyss",
"Abyss (Age of Apocalypse)",
@spences10
spences10 / fontFace.js
Created June 23, 2018 16:44
Font Face helper function by mschipperheyn
/**
* Awesome helper function from Marc Schipperheyn
* https://github.com/mschipperheyn 👌
*
*/
export function fontFace(
name,
src,
fontWeight = 'normal',
@spences10
spences10 / recruiter-reply.md
Last active May 1, 2018 09:34
recruiter reply

Hey {recruiter-name},

Thanks for getting in touch about the {role} at {company} you're interested in talking to me about.

Before we have a chat I'd like to know a bit about the role and the company first, take this as an initial discussion, please could you tell me.

  • What's the work-life balance?
@spences10
spences10 / .prettierrc
Last active April 30, 2018 13:05
Prettier formatting for files
{
"bracketSpacing": true,
"jsxBracketSameLine": true,
"parser": "babylon",
"printWidth": 70,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
@spences10
spences10 / script.md
Last active April 26, 2018 11:28
Install fish shell on CentOS via Vagrant

Install fish and oh my fish on CentOS

If you haven't updated to the latest version of git take a look at this SO post on [installing Git on CentOS] also take a look at the [full post here] for installing fish on other OS'

# switch back with 'su - vagrant' or preferred user when needed
sudo -i
cd /etc/yum.repos.d/
# install wget
yum -y install wget
@spences10
spences10 / script.md
Created April 26, 2018 09:18
Set up CentOS on Vagrant for CrafterCMS

Install dependencies on CentOS

For Crafter > Java, Git

use root:

sudo -i
# switch back with 'su - vagrant' when needed
@spences10
spences10 / script.md
Created April 26, 2018 09:12
Install fish shell on CentOS via Vagrant

Install fish and oh my fish on CentOS

If you haven't updated to the latest version of git take a look at this SO post on [installing Git on CentOS]

# switch back with 'su - vagrant' or preferred user when needed
sudo -i
cd /etc/yum.repos.d/
# for CentOS 7
wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo
@spences10
spences10 / slugIt.js
Last active March 30, 2018 12:44
Slug helper!
export const slugIt = text => {
if (!text) return
return text
.toString()
.toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, '') // Trim - from end of text
export const Button = styled.button`
font-size: 1rem;
border-radius: 5px;
padding: 0.25rem 1rem;
margin: 0 1rem;
background: transparent;
color: ${props => props.theme.primary};
border: 2px solid ${props => props.theme.primary};
${props =>