Skip to content

Instantly share code, notes, and snippets.

View robertmassaioli's full-sized avatar

Robert Massaioli robertmassaioli

View GitHub Profile
@robertmassaioli
robertmassaioli / autobreifer.js
Last active March 1, 2024 09:47
Stenography autobreifer
const fs = require('fs');
function extractMultiChordOutlines(dictionary) {
const multiChordOutlines = [];
for (const outline in dictionary) {
if (outline.includes('/') && !dictionary[outline].includes(' ')) {
multiChordOutlines.push(outline);
}
}
return multiChordOutlines;
@robertmassaioli
robertmassaioli / lapwing-10k.md
Created January 23, 2024 10:08
Lapwing Steno words by popularity

Lapwing

the

  • -T

of

  • -F
@robertmassaioli
robertmassaioli / word-popularity.js
Created September 10, 2023 10:48
Word Popularity Tool
const readline = require('readline');
const https = require('https');
const wordListURL = 'https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english-no-swears.txt';
// Function to download the word list
async function downloadWordList() {
return new Promise((resolve, reject) => {
https.get(wordListURL, (response) => {
let data = '';
@robertmassaioli
robertmassaioli / patch.diff
Created January 27, 2022 22:09
Invoice For WooCommerce: PO as Required Field
diff --git a/Models/Gateways/IGFW_Invoice_Gateway.php b/Models/Gateways/IGFW_Invoice_Gateway.php
index 1253db2..c047ab7 100644
--- a/Models/Gateways/IGFW_Invoice_Gateway.php
+++ b/Models/Gateways/IGFW_Invoice_Gateway.php
@@ -136,7 +136,7 @@ class IGFW_Invoice_Gateway extends \WC_Payment_Gateway {
if (get_option('igfw_enable_purchase_order_number') == 'yes') {
- echo '<p><b>' . __('Purchase Order (optional)', 'invoice-gateway-for-woocommerce') . '</b></p>';
+ echo '<p><b>' . __('Purchase Order', 'invoice-gateway-for-woocommerce') . '</b></p>';
@robertmassaioli
robertmassaioli / openapi.schema
Last active February 4, 2021 20:33
JSON Schema Test
{
"id": "https://spec.openapis.org/oas/3.0/schema/2019-04-02",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Edited schema for OpenAPI Specification 3.0.X.",
"type": "object",
"required": [
"openapi",
"info",
"paths"
],
The link to the gist that you provided could not be found. This gist is being shown instead.
@robertmassaioli
robertmassaioli / keybase.md
Created December 30, 2018 07:42
keybase.md

Keybase proof

I hereby claim:

  • I am robertmassaioli on github.
  • I am robertmassaioli (https://keybase.io/robertmassaioli) on keybase.
  • I have a public key whose fingerprint is 9E3A 3460 705C 9892 6890 A69A 4002 2D62 EA0F A331

To claim this, I am signing this object:

@robertmassaioli
robertmassaioli / keybase.md
Created February 27, 2017 22:17
keybase.md

Keybase proof

I hereby claim:

  • I am robertmassaioli on github.
  • I am robertmassaioli (https://keybase.io/robertmassaioli) on keybase.
  • I have a public key ASDkmUxJumo_AiiSXiMSU8bxBjBg3o-9aR0GofRlAeM1Hwo

To claim this, I am signing this object:

@robertmassaioli
robertmassaioli / ImmutableMultimapCollector.java
Last active November 3, 2016 23:49
An ImmutableMultimapCollector in Java
import com.google.common.collect.ImmutableMultimap;
import com.google.common.collect.ImmutableSet;
import java.util.Map;
import java.util.Set;
import java.util.function.BiConsumer;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collector;
@robertmassaioli
robertmassaioli / hello.hs
Created March 12, 2016 22:02
A test github gist
-- Hello world
main = putStrLn "Hello World!"