This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UI Scale | |
@base-font-size: 16; | |
@user-font-size: $USER_FONT_SIZE; | |
@ui-scale: @user-font-size / @base-font-size; | |
// UI Colors | |
@tint-color: darkblue; | |
@handle-color: white; | |
@collapsed-color: red; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UI Scale | |
@base-font-size: 16; | |
@user-font-size: $USER_FONT_SIZE; | |
@ui-scale: @user-font-size / @base-font-size; | |
// UI Colors | |
@tint-color: rgb(173,216,230); | |
@handle-color: black; | |
@collapsed-color: red; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BibDesk" | |
activate | |
-- without document, there is no selection, so nothing to do | |
if (count of documents) = 0 then | |
beep | |
display dialog "No documents found." buttons {"•"} default button 1 giving up after 3 | |
end if | |
set thePublications to the selection of document 1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See online documentation for examples | |
// http://getdrafts.com/scripting | |
var p = Prompt.create(); | |
p.title = ""; | |
p.message = ""; | |
p.addButton("Add to draft"); | |
p.addTextField("Enter text", "t",""); | |
var con = p.show(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// scraper for http://www.national.archsrch.gov.za/sm300cv/smws/sm300dl | |
// | |
// usage: select results in search results, enter multiple documents view, then copy contents of the results frame to a text file called archives.txt | |
const fieldnames = ["Document","DEPOT","SOURCE","TYPE","VOLUME_NO","SYSTEM","REFERENCE","PART","DESCRIPTION","STARTING","ENDING","REMARKS.*"] | |
const replacements = ["",",",",",",",",",",",",",",",",",",",",",""] | |
var fs = require('fs'); | |
var path = process.cwd(); | |
let d = fs.readFileSync(path + "/archives.txt").toString().replace(/\,/g," "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"BTTTouchBarButtonName" : "Global", | |
"BTTTriggerType" : 629, | |
"BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
"BTTPredefinedActionType" : 190, | |
"BTTPredefinedActionName" : "Force Show\/Hide Global BTT Touch Bar Actions", | |
"BTTEnabled2" : 1, | |
"BTTUUID" : "937923F9-24F3-4AD7-883F-7DE9E2D3FA30", | |
"BTTEnabled" : 1, | |
"BTTOrder" : 5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"BTTTouchBarButtonName" : "P", | |
"BTTTriggerType" : 629, | |
"BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
"BTTPredefinedActionType" : 172, | |
"BTTPredefinedActionName" : "Run Apple Script (blocking)", | |
"BTTInlineAppleScript" : "tell application \"BetterTouchTool\"\r\t(* light purple *)\r\tupdate_trigger \"625CCE43-9BF7-403E-8AEF-331CA96BBD0E\" json \"{\\\"BTTTriggerConfig\\\":{\\\"BTTTouchBarButtonColor\\\" : \\\"204,102,255,100\\\"}}\"\r\t(* dim yellow *)\r\tupdate_trigger \"701399EC-B8BF-472D-8A2E-4F9FB5F01F75\" json \"{\\\"BTTTriggerConfig\\\":{\\\"BTTTouchBarButtonColor\\\" : \\\"0,0,0,20\\\"}}\"\r\t(* dim green *)\r\tupdate_trigger \"E395E5B6-E655-47EA-BDD1-F6BE0086BE3B\" json \"{\\\"BTTTriggerConfig\\\":{\\\"BTTTouchBarButtonColor\\\" : \\\"0,0,0,20\\\"}}\"\r\t(* dim text selection *)\r\tupdate_trigger \"E5BDF354-1D20-414A-A7B8-A2861F299A3B\" json \"{\\\"BTTTriggerConfig\\\":{\\\"BTTTouchBarButtonColor\\\" : \\\"0,0,0,20\\\"}}\"\r\t(* dim underline *)\r\tupdate_trigger \"EC62F039-63 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* EXPORT ALL SKIM NOTES TO THE CLIPBOARD | |
(no longer) requires hackademic URL handler from github user smargh | |
entirely rewritten to take advantage of Skim's built-in templating | |
2016-06-26 by derickfay | |
2019-02-09 updated to group notes by color | |
*) | |
property LF : (ASCII character 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// there are two parts to this text formatter. Both draw heavily from | |
// the date calculation snippets created by Brett Terpstra - see | |
// https://brettterpstra.com/2015/06/01/textexpander-5-javascript-snippets/ | |
// part 1 - the date library | |
// strftime for JS <http://hacks.bluesmoon.info/strftime/> | |
Date.prototype.locale = 'en-GB'; | |
Date.ext = {}; | |
Date.ext.util = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* EXPORT SELECTED NOTES TO THE CLIPBOARD | |
(no longer) requires hackademic URL handler from github user smargh | |
entirely rewritten to take advantage of Skim's built-in templating | |
2019-03-10 by derickfay | |
*) | |
property LF : (ASCII character 10) |