Skip to content

Instantly share code, notes, and snippets.

View kaibakker's full-sized avatar

Kai Bakker kaibakker

View GitHub Profile
@kaibakker
kaibakker / Unique namespaces in custom XML.EXCEL.yaml
Created December 18, 2022 15:57
Tests to see if there is only one XML part for a specified namespace.
name: Unique namespaces in custom XML
description: Tests to see if there is only one XML part for a specified namespace.
host: EXCEL
api_set: {}
script:
content: >
$("#create-custom-xml-part").click(() => tryCatch(createCustomXmlPart));
$("#test-for-unique-namespace").click(() =>
tryCatch(testForUniqueNamespace));
@kaibakker
kaibakker / Basic custom function.EXCEL.yaml
Last active April 11, 2021 11:53
Calculates the volume of a sphere.
name: Basic custom function
description: Calculates the volume of a sphere.
host: EXCEL
api_set: {}
script:
content: |
/**
* Searches and creates snips for the results
@kaibakker
kaibakker / peepeth.sol
Created May 18, 2018 12:23
Append only contract
pragma solidity ^0.4.8;
contract AppendOnly {
bytes32 tip;
function AppendOnly(bytes32 tail) {
tip = tail
}
function join(newHash) {
@kaibakker
kaibakker / backup.js
Last active October 22, 2015 16:03
Node script that accepts wallet invitations and generates a Mnemonic backup for multisig Copay wallets
var Client = require('bitcore-wallet-client');
var BWS_INSTANCE_URL = 'https://bws.bitpay.com/bws/api'
var secret = process.argv[2];
var client = new Client({
baseUrl: BWS_INSTANCE_URL,
verbose: false,
});