Skip to content

Instantly share code, notes, and snippets.

View bkbeachlabs's full-sized avatar

Andrew King bkbeachlabs

View GitHub Profile
@bkbeachlabs
bkbeachlabs / OntarioTaxCalculator.js
Created December 22, 2017 20:56
Calculates your Ontario income tax from a semi-monthly paycheque.
function taxFromSemiMonthlyPaycheque(paychequeAmt) {
var annualized = paychequeAmt * 24;
var annualTax = ontarioTax(annualized) + federalTax(annualized);
return annualTax / 24;
};
/*
@bkbeachlabs
bkbeachlabs / rainbowLogs.txt
Last active August 29, 2015 14:20
Rainbow Logs - Searches and Highlights paragraphs of a TextEdit document that contain a string query
-- Action 1 - Get Contents of TextEdit Document
-- |
-- V
-- Action 2 - Custom Apple Script (Below)
on run {input, parameters}
log "--------------------"
set MyColor to choose color
set FindText to the text returned of (display dialog "What string should we search for to highlight?" default answer "")