Skip to content

Instantly share code, notes, and snippets.

View psealock's full-sized avatar

Paul Sealock psealock

  • Raglan, NZ
View GitHub Profile
/**
* Usage: node ./transfer.js <destination repo>
* Run from the root of source repo.
* Requires `hub`
*/
const { exec } = require( 'child_process' );
const destinationRepo = process.argv[ 2 ];
exec( 'hub issue', ( error, stdout ) => {
[
{
"key": "basics",
"locales": [
{
"locale": "en_US",
"title": "Get the BBBBBBasics"
}
],
"plugins": [
[
{
"slug": "test-method",
"locales": [
{
"locale": "en_US",
"title": "Test Poll Sources",
"content": "I'm a remote payment method"
}
],
<?php
/**
* Plugin Name: WooCommerce Calypso Bridge Helper
* Plugin URI: https://woocommerce.com
* Description: Utility to assist testing wc-calypso-bridge locally
* Author: WooCommerce
* Version: 0.1
*/
class Atomic_Plan_Manager {
@psealock
psealock / app.js
Last active June 24, 2019 01:45
wc-admin hook docs
console.log('helelo');
@psealock
psealock / index.html
Created April 4, 2018 01:56
Sankey Funnel
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<script src="https://unpkg.com/d3-array@1"></script>
<script src="https://unpkg.com/d3-collection@1"></script>
<script src="https://unpkg.com/d3-path@1"></script>
<script src="https://unpkg.com/d3-shape@1"></script>
<script src="https://unpkg.com/d3-sankey@0"></script>
</head>
<body>
/** @format */
var fs = require( 'fs' );
function replaceLine( file ) {
fs.readFile( file, 'utf8', function( err, data ) {
if ( err ) {
return console.log( err );
}
var result = data.replace(
/import PropTypes from 'prop-types';\n\n(?=import)/g,
@psealock
psealock / data.csv
Last active April 9, 2021 12:08
D3js and Polymer Web Components
id type amount
01 Restaurant 100
02 Entertainment 100
03 Rent 200
04 Groceries 250