Skip to content

Instantly share code, notes, and snippets.


Scott Humphries sscotth

View GitHub Profile
shivangp / southwest_auto_checkin.user.js
Last active Dec 23, 2020 — forked from ryanizzo/southwest_auto_checkin.user.js
Auto Check-In to Southwest Flights
View southwest_auto_checkin.user.js
// ==UserScript==
// @name Auto Check-In to Southwest Flights
// @namespace
// @version 1.9
// @author Nicholas Buroojy (
// @contributor Ryan Izzo (
// @contributor JR Hehnly ( @stormchasing)
// @contributor Trevor McClellan (
// @description Automatically check in to Southwest Airline flights at the appropriate time.
// @include*
View keystroke the clipboard extended.workflow
# Why?
# To paste text into windows that normally don't allow it or have access to the clipboard.
# Examples: Virtual machines that do not yet have tools installed, websites that hijack paste
# Extended vs Simple?
# Extended includes an adjustable delay between keypresses and better handling of numbers
# Setup
# Create a service: open Automator, create new service, receive no input,
# use any application, run applescript code below, save.
View run.js
* React Static Boilerplate
* Copyright © 2015-2016 Konstantin Tarkus (@koistya)
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
krisselden /
Last active Feb 22, 2018
Trace Chrome Deopts

How to use

./ http://localhost:4200

Wait until your page renders.

bmhatfield / .profile
Last active Jan 18, 2021
Automatic Git commit signing with GPG on OSX
View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
gaearon / slim-redux.js
Last active Jan 9, 2021
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
staltz /
Last active Jan 19, 2021
The introduction to Reactive Programming you've been missing
scottjehl /
Last active Jul 15, 2020
Comparing two ways to load non-critical CSS

I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.

TL;DR: Here's the solution I ended up with:

For async JavaScript file requests, we have the async attribute to make this easy, but CSS file requests have no similar standard mechanism (at least, none that will still apply the CSS after loading - here are some async CSS loading conditions that do apply when CSS is inapplicable to media: ).

Seems there are a couple ways to load and apply a CSS file in a non-blocking manner:

pascalpoitras /
Last active Jan 18, 2021
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 3.1-dev

Enable mouse

/mouse enable
You can’t perform that action at this time.