Skip to content

Instantly share code, notes, and snippets.

Oh, hello

Sean Doran spjpgrd

Oh, hello
View GitHub Profile
spjpgrd / useAsync.ts
Last active Jan 14, 2020
Slightly modified React Hook recipe of useAsync — Also TypeScript-ized:
View useAsync.ts
import { useState, useCallback, useEffect } from "react";
* Takes an async function as an input and returns the pending, value,
* and error values we need to properly update our UI.
* Allows both immediate execution and delayed execution using the
* returned execute function.
* @param asyncFunction
spjpgrd / gist:18844e646a279f51497fc3d1a09d645b
Created Nov 7, 2019
Fixing node-gyp Errors: A Compendium of Front-end Folly
View gist:18844e646a279f51497fc3d1a09d645b
# The Shapeshifting Error
Like the infamous [Squonk](, `node-gyp` errors are as elusive as they are worthy of a hard cry alone. Here's to documenting every solution that's actually solved the problem.
## 1. Node Version
spjpgrd /
Created Jun 11, 2019
VSCode Plugin Recommendations

VSCode Plugin Recommendations

  • Beautify css/sass/less
  • Sass
  • Peacock
  • Path Intellisense
  • Partial Diff
  • Import Cost
  • Bracket Pair Colorizer
  • C#
spjpgrd / tran.csv
Last active May 15, 2019
Sample .csv for tran
View tran.csv
id first_name last_name email gender ip_address
1 Chrisy Keir Male
2 Linn Wilgar Male
3 Jacinta Windress Female
4 Elenore Mc Dermid Female
5 Latisha Bielfelt Female
6 Tracy Ethington Male
7 Beatrisa Sidnell Female
8 Neale Dyson Male
9 Fawnia Charter Female
View Show Hidden Files on

In macOS Sierra Apple added a Finder keyboard shortcut that makes it possible to quickly show all the hidden files and folders. You just need to do the following:

  1. Open the Finder
  2. Go to your Macintosh HD folder (access this from Devices in the left column)
  3. Hold down Cmd + Shift + . (dot)
  4. All the hidden files will become visible
  5. Hold down Cmd + Shift + . (dot) a second time to hide the files again

spjpgrd /
Created Aug 13, 2018
Dat Face for Slack

Nothing Beats This Face

Copy and paste this 👇

:cricket: :cricket:
:eye: :eye:
    :nose:      :ear:
spjpgrd /
Last active Feb 5, 2018
Keybase proof

Keybase proof

I hereby claim:

  • I am spjpgrd on github.
  • I am spjpgrd ( on keybase.
  • I have a public key ASCn1cUGkzXxzUtfl2FLHdp2C4zTe_hIxY2JEqz1x7Haego

To claim this, I am signing this object:

View Keys to


Ask these 6 questions to get a powerful testimonial

  1. What was the obstacle that would have prevented you from buying this product?
  2. What did you find as a result of buying this product?
  3. What specific feature did you like most about this product?
  4. What are three other benefits of this product?
  5. Would you recommend this product? If so, why?
  6. Is there anything you’d like to add?

View Six Essentials of

Six Essentials of Letters from The Robert Collier Letter Book

  1. The opening, which gets the reader's attention by fitting in with his train of thought and establishes a point of contact with his interests, thus exciting his curiosity and prompting him to read further.
  2. The description or explanation, which pictures your proposition to the reader by first outlining its important features, then filling in the necessary details.
  3. The motive or reason why, which creates a longing in the reader's for what you are selling, or impels him to do as you want him to, by describing, not your proposition - but what it do for him - the comfort, the pleasure, the profit he will derive from it.
  4. The proof or guarantee, which offers to the reader of the truth of your statements, or establishes confidence by money-back-if-not-satisfied guarantee.
  5. The snapper or penalty, which gets immediate action by over your reader's head the loss in money or prestige opportunity that will be his if he does not act at once.
  6. Th
View The Definitive Guide to

The Definitive Guide to Copywriting (Link)

Every product has a unique personality and it is your job to find it.

Chapter One: Laying a Solid Foundation

Understanding the Product

  • How would you describe the product? For this question, provide a simple, two to three sentence description of the product. It doesn’t need to be super long or detailed and don’t worry about providing a fancy answer. Simply write down a short description as if you were describing the product to a customer.

  • What’s unique/special about this product? The goal here is to identify something unique or special about the product. What does this product offer that others don’t? Is it made in the USA? Is it easy to install? Does it provide analytics that other sites don’t offer?

You can’t perform that action at this time.