Skip to content

Instantly share code, notes, and snippets.


Sam Seay samueljseay

View GitHub Profile
samueljseay / package.json
Last active Oct 5, 2021
Snowpack custom headers plugin
View package.json
"name": "snowpack-custom-headers",
"version": "0.0.1",
"description": "",
"main": "snowpack-custom-headers.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"author": "Samuel Seay",
"license": "MIT",

Use Setup Tasks to provide a first-class on-boarding experience for merchants

As a plugin author you'll often have one or more set up tasks you want to guide your user through to get the most out of your plugin. The challenge is making sure users see your tasks, and also making sure they complete them all.

The WooCommerce home screen is a consolidated landing space for users to get their store set up and effectively manage day-to-day operations for their business. Adding setup tasks to the task list alongside the usual setup steps will draw users to complete your tasks and also help them keep track of how far through the setup process they are.

We've built the user experience for you, so all that's left is just to plug your tasks in!

Getting started

samueljseay /
Created Feb 25, 2021
# Adding your own store management links

Adding your own store management links

In the new and improved WooCommerce home screen there are 2 points of extensibility for plugin developers that have recently had some attention. The first is the setup task list, allowing you to remind the user of tasks they need to complete and keeping track of their progress for them.

The second is the store management links section. Once the user has completed the setup tasks this will display for them. This section consolidates a list of useful quick navigation links that the user can use to find features of WooCommerce.

Discoverability can be hard for users so this can be a great place to bring attention to the features of your plugin and allow users to easily find their way to the key functionality your plugin provides.

Adding your own store management links is a simple process.

samueljseay /
Created Jan 17, 2019
LithoActivityTestRule error
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.facebook.litho.testing.espresso.LithoActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
public class CardFeedActivityTest {
samueljseay /
Last active Oct 25, 2018 — forked from didichanoch/
New Zealand MTG Code of Conduct

New Zealand MTG Code of Conduct


The New Zealand MTG Discord channel is a place for Magic players throughout NZ to gather, talk, trade and arrange games together. We hope you have fun!

The current admins are:

  • Sam Seay
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
samueljseay /
Created Jun 2, 2017
ES6 exports / imports cheat sheet
// default exports
export default 42;
export default {};
export default [];
export default (1 + 2);
export default foo;
export default function () {}
export default class {}
export default function foo () {}
samueljseay / .eslintignore
Created Dec 12, 2016
lint console logs with eslint before committing code
View .eslintignore
# put paths to files you don't want to lint here
samueljseay / SassMeister-input.scss
Created Feb 2, 2016
Generated by
View SassMeister-input.scss
// ----
// libsass (v3.3.2)
// ----
$ids: (
church-life-page: $brand-red,
whats-on-page: $brand-blue,
news-page: $brand-orange,
resources-page: $brand-purple,
contact-page: $brand-green,
samueljseay / gist:82cf59d73eb884c4f91c
Created Jan 25, 2016
Everything you can override in a refinerycms project with refinerycms-blog
View gist:82cf59d73eb884c4f91c
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*