Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
💻

Scott Humphries sscotth

🏠
💻
View GitHub Profile
@shivangp
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 https://gist.github.com/ryanizzo/058829a5fafe733bd876410db7a1e699
// @version 1.9
// @author Nicholas Buroojy (http://userscripts.org/users/83813)
// @contributor Ryan Izzo (http://www.ryanizzo.com)
// @contributor JR Hehnly (http://www.okstorms.com @stormchasing)
// @contributor Trevor McClellan (github.com/trevormcclellan)
// @description Automatically check in to Southwest Airline flights at the appropriate time.
// @include https://www.southwest.com/air/check-in/index.html*
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
* https://github.com/koistya/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
krisselden / README.md
Last active Feb 22, 2018
Trace Chrome Deopts
View README.md

trace-deopt.sh

How to use

./trace-deopt.sh http://localhost:4200

Wait until your page renders.

@bmhatfield
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
export GPG_AGENT_INFO
else
@gaearon
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
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@staltz
staltz / introrx.md
Last active Jan 19, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@scottjehl
scottjehl / noncritcss.md
Last active Jul 15, 2020
Comparing two ways to load non-critical CSS
View noncritcss.md

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: https://github.com/filamentgroup/loadCSS/


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: https://gist.github.com/igrigorik/2935269#file-notes-md ).

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

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

WeeChat Screenshot

You need at least WeeChat 3.1-dev

Enable mouse

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