This file contains 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
// Port of code from: http://geomalgorithms.com/a07-_distance.html | |
// | |
// Ported by Michael Taylor, Dec 8 2014 | |
// | |
// Copyright 2001 softSurfer, 2012 Dan Sunday | |
// This code may be freely used and modified for any purpose | |
// providing that this copyright notice is included with it. | |
// SoftSurfer makes no warranty for this code, and cannot be held | |
// liable for any real or imagined damage resulting from its use. | |
// Users of this code must verify correctness for their application. |
This file contains 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
set _description to "All unflagged, read messages in each IMAP account inbox will be moved to the “Archive” mailbox corresponding to that account. All POP inboxes will be moved to a mailbox on this Mac called 'Archive (<Account Name>)'. This action is not undoable." | |
tell application "Mail" | |
display alert "Archive read messages from IMAP inboxes?" buttons ¬ | |
{"Cancel", "Archive"} cancel button 1 message _description | |
repeat with _acct in pop accounts | |
if (enabled of _acct) then | |
set _acct_name to name of _acct |
This file contains 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
#import <Foundation/Foundation.h> | |
@interface NSString (UUID) | |
+ (NSString*)stringWithUUID; | |
@end |
This file contains 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
// | |
// NSDecimalNumber+SquareRoot.h | |
// CubeRoot | |
// | |
// Created by Michael Taylor on 10-06-21. | |
// | |
#import <Cocoa/Cocoa.h> | |
@interface NSDecimalNumber (SquareRoot) |