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 / .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 / removeLiRecruiters.js
Created October 1, 2017 13:38
Remove existing LinkedIn relationships
;[ ...document.querySelectorAll('.mn-person-card') ].forEach((card) => {
// first pull out name and occupation
const name = card.querySelector('.mn-person-info__name').textContent
// console.log(name)
const headline = card.querySelector('.mn-person-info__occupation').textContent
// console.log(headline)
// find the button to remove connection
const dropdown = card.querySelector('.dropdown')
const showDelete = dropdown.querySelector('.show-delete-dialog-btn')
// const button = dropdown.querySelector('.remove')
@spences10
spences10 / .hyper.js
Created September 23, 2017 15:51
My hyper config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'canary',
enum _ModelMutationType {
CREATED
UPDATED
DELETED
}
# Meta information about the query.
type _QueryMeta {
count: Int!
}
@spences10
spences10 / dropDataGraphCool.js
Created July 19, 2017 13:45 — forked from export-mike/dropDataGraphCool.js
A utility Script for cleaning out tables in graphcool
require('dotenv').config();
const { GraphQLClient } = require('graphql-request');
const client = new GraphQLClient(process.env.ENDPOINT, { headers: {
'Authorization': `Bearer ${process.env.ACCESS_TOKEN}`
}});
const query = T => `
query Get${T}s {
all${T}s {
id
@spences10
spences10 / avoid-profile-keywords.json
Last active June 24, 2017 06:24
Twitter follow back components
[
"followback",
"followers",
"grumpy cat",
"gamergate",
"quotes",
"facts",
"harry potter",
"follow for",
"facebook fans",

Alias your site to your domain

now alias my-api-xyz.now.sh my-new-domain.com

Alias your site to custom name

now alias my-api-xyz.now.sh my-new-custom-name
@spences10
spences10 / box-drawing.md
Created May 11, 2017 10:33
App structure in text! Using box drawing characters
@spences10
spences10 / hyper-cheat-sheet.md
Last active May 9, 2017 20:32
Hyper cheat sheet

@spences10 you need shell: 'C:\\Windows\\System32\\cmd.exe', in your config

how can I shorten the command prompt in hyper?

PS1=‘$’

use Git bash

vercel/hyper#1252

@spences10
spences10 / markdown-links.md
Created May 5, 2017 05:13
Better way to do inline links in markdown