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 / move-files.sh
Created March 9, 2023 13:17
A bash script to move files from a nested folder structure like `posts/2023/02/25/passing-sveltekit-page-server-js-data-to-page-js/index.md` and rename the `.md` file with the name of the parent folder and move it to a new folder.
#!/bin/bash
# create new folder called new
mkdir new
# find all index.md files in the folder structure
# and loop through them
find . -name 'index.md' | while read file; do
# get the parent folder of the index.md file
parent=$(dirname "$file")
<script>
import { onMount } from 'svelte';
export let src;
let showPlayer = false;
let player;
onMount(async () => {
const { defineCustomElements } = await import('@vime/core');
defineCustomElements();
@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 / packages.json
Last active November 25, 2021 08:25
My winget install script, this is all the additional programs I needs for my webdevs and content creation
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2021-11-25T08:23:12.657-00:00",
"Sources" :
[
{
"Packages" :
[
{
"PackageIdentifier" : "ModernFlyouts.ModernFlyouts"
@spences10
spences10 / README.md
Created January 14, 2021 09:24
What a good README.md should have:

README.md

  • Description of the problem and solution.
  • Whether the solution focuses on back-end, front-end or if it's full stack.
  • Reasoning behind your technical choices, including architectural.
  • Trade-offs you might have made, anything you left out, or what you might do differently if you were to spend additional time on the project.
  • Link to other code you're particularly proud of.
@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 / interviewQuestions.md
Last active December 29, 2022 05:18
List of questions to ask employers at interviews

Interview Questions You Should Ask

Why me as a candidate?

I like to ask this one so you can gauge if you're just there to make up the numbers or if they're really interested in you and have read your CV/profile.

How can I best prepare for this role before starting?

This question lets them know you're excited not only about the role, but also about starting and self-learning! You're a go getter and that's great! Plus, having this answered will give you a jump start on being prepared for your first day.

@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 / 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