Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
// 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 () {}
const fs = require('fs'); | |
const path = require('path'); | |
const { execSync } = require('child_process'); | |
function deleteRuns(workflowName, repoNameWithOwner) { | |
try { | |
// Get the list of run IDs | |
execSync(`gh run list --json databaseId -w ${workflowName} -L 9999 -q '.[].databaseId' > temp.txt`); | |
// Read and process each run ID |
{ | |
"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", |
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!
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.
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; | |
@RunWith(AndroidJUnit4.class) | |
public class CardFeedActivityTest { | |
@Rule |
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/tools | |
# install all sdk packages |
# put paths to files you don't want to lint here | |
path/to/files/to/ignore |