Skip to content

Instantly share code, notes, and snippets.

@ian-holden
ian-holden / balance-sheet-ex-unreal.scm
Last active September 27, 2018 15:48
Version of gnucash Balance Sheet report that doesn't include unrealized gains/losses
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; balance-sheet.scm: balance sheet
;;
;; By Robert Merkel <rgmerk@mira.net>
;;
;; Adapted by Ian Holden to remove unrealized gains/losses information which can be unhelpful
;; when using multiple currencies. Ian Holden 2018-09-23
;;
;; Heavily modified and Frankensteined by David Montenegro
;; 2004.06.12-2004.06.23 <sunrise2000@comcast.net>
@ian-holden
ian-holden / trello-card-to-md.py
Created November 8, 2017 17:03
Create a Markdown doc from an exported Trello card
# read an exported trello card and create a markdown doc for the main information in the card
# including the name, url, description, checklists and all comments and attachments
#
# usage:
#
# export the card to a JSON file (Share & more... > Export JSON)
#
# python trello-card-to-md.py trello-card.json
#
import json, sys
@ian-holden
ian-holden / update_sitemap_ecwid.py
Last active September 23, 2017 11:25
Update an existing site sitemap.xml with entries for all Ecwid products and categories in a store
# create a sitemap for an Ecwid shop site.
#
# This script will create product and category page URLs in one of three forms to suit your Ecwid setup:
# default - the original, default URLs e.g. http://shop.com/store#!/product_name/p/12345
# clean - clean Ecwid URLs e.g. http://shop.com/store/product_name-p12345
# querystring - querystring URLs e.g. http://shop.com/store?store-page=product_name-p12345
#
# Steps:
# 1. read the current sitemap.xml which has possibly been generated by the site, or manually
# 2. read the Ecwid shop product and category details using the Ecwid v1 API and create sitemap url entries
@ian-holden
ian-holden / 0_reuse_code.js
Last active September 20, 2015 23:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console