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
@siddharthkp
siddharthkp / reactivconf-2017-proposal.md
Last active February 25, 2024 10:06
Building applications for the next billion users
@export-mike
export-mike / dropDataGraphCool.js
Created July 19, 2017 13:07
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 / module.md
Created April 27, 2017 08:43
Excel Recordset from Sheet
Public Function RecordSetFromSheet(sheetName As String)

Dim rst As New ADODB.Recordset
Dim cnx As New ADODB.Connection
Dim cmd As New ADODB.Command

    'setup the connection
    '[HDR=Yes] means the Field names are in the first row
    With cnx
@NFodrea
NFodrea / slug formatter.js
Created April 25, 2017 22:39
slug formatter
function slugify(text) {
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
}
@spences10
spences10 / colours.styl
Last active December 28, 2017 15:00
colours I have taken a liking to
pink = #ff0198 // hollywood cerise
yellow = #ffb617 // my sin
purple = #6e27c5 // purple heart
orange = #ff6600 // blaze orange
blue = #01c1d6 // robin's egg blue
java = #1cbcd2 // java
sun = #fab319 // sun
affair = #69479e // affair
flamingo = #f16623 // flamingo
minsk = #2e2e86 // minsk
@cusspvz
cusspvz / clean-node-modules.sh
Last active April 10, 2023 11:45
Delete all node_modules folders RECURSIVELY
#!/bin/bash
# this command finds all the `node_modules` folders under your current path and will prune them
find . | grep /node_modules$ | grep -v /node_modules/ | xargs rm -fR
@spences10
spences10 / cloud9-cheat-sheet.md
Last active April 11, 2017 11:48
Cloud9 cheat sheet

Cloud9 config stuff I always forget how to do

Set up middleman server

middleman server $IP -p $PORT

How to install a Node.js version - c9 and node in general

@spences10
spences10 / firebase-cheat-sheet.md
Created February 15, 2017 16:17
Firebase cheat sheet

Firebase Cheat Sheet

Hosting

Cloud 9 IDE

Logging into firebase you sould use firebase login --no-localhost

CLI Commands

@spences10
spences10 / npm-cheat-sheet.md
Last active May 10, 2017 20:21
npm cheat sheet

NPM plz!

A list of terminal commands and flags to help me use npm

enable npm cache

Super charge npm

npm config set cache-min 9999999