Skip to content

Instantly share code, notes, and snippets.


JMichaelTX JMichaelTX

View GitHub Profile
JMichaelTX / Main.css
Last active August 29, 2017 08:25 — forked from chrisphenry/Main.css
Safari 7 & 9 - Customise Web Inspector font
View Main.css
/*Customise Safari Web Inspector font*/
/*(tested on Safari 7.0.1 on OS X Mavericks)*/
/* Tested on Safari 9.1 (11601.5.17.1) on OSX 10.11.4 as of 2016-05-08 */
JMichaelTX NOTE:
- This process was written for Safari 7 (Mavericks)
- I found it worked fine with Safari 9.1 (11601.5.17.1) on OSX 10.11.4, with just a few simple changes (noted below)
JMichaelTX / 1 Mods to AppleScript formatICUDate by
Last active October 8, 2021 18:48 — forked from ccstone/Create date-string using ICU Date-Time Format Syntax.applescript
AppleScript (ASObjC) Format Date/Time Using ISO/ICU Format Codes
View 1 Mods to AppleScript formatICUDate by

MODS BY JMichaelTX on Sat, Feb 27, 2016

AppleScript Handler: on formatDate(pDate, pFormat)

  1. Changed record-style parameters to single-field parameters
  2. Added block to handle date parameter as a string, including International format (YYYY-MM-DD)
  3. Added handler/function: convertIntlDate(pDateStr)
JMichaelTX / JXA_PersistentProperties.js
Last active March 16, 2021 13:27 — forked from RobTrew/JXA_PersistentProperties.js
Persistent 'properties' for OS X JavaScript for Applications (JXA) Forked from Rob Trew
View JXA_PersistentProperties.js
(function () {
'use strict';
// OSX JavaScript for Applications lacks the persistent 'properties'
// of AppleScript (in which global variables and properties persist between script runs)
// but we can, of course, serialise to JSON or plist at the end of a script
// parsing it at the start of the next run.
// Here is one approach to persistence between script runs
// using JSON.stringify() and JSON.parse()