Skip to content

Instantly share code, notes, and snippets.

View justin's full-sized avatar

Justin Williams justin

View GitHub Profile
\b[A-Z0-9._%+-]+@((apple|filemaker|braeburncapital|euro\.apple|asia\.apple)+\.)+com
diff --git a/External/jrfeedbackprovider/lib/JRFeedbackController.m b/External/jrfeedbackprovider/lib/JRFeedbackController.m
--- a/External/jrfeedbackprovider/lib/JRFeedbackController.m
+++ b/External/jrfeedbackprovider/lib/JRFeedbackController.m
@@ -9,6 +9,7 @@
#import <AddressBook/AddressBook.h>
#import "NSURLRequest+postForm.h"
#import <SystemConfiguration/SCNetwork.h>
+#import <SystemConfiguration/SystemConfiguration.h>
#if USE_GROWL
NS_IMETHODIMP
nsChildView::BeginSecureKeyboardInput()
{
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
nsresult rv = nsBaseWidget::BeginSecureKeyboardInput();
if (NS_SUCCEEDED(rv))
::EnableSecureEventInput();
return rv;
on nextMonday from theDate
theDate - (theDate - (date "Monday, January 8, 1000 12:00:00 AM")) mod weeks + weeks
end nextMonday
nextMonday from current date
set dateX to result
set A to ((month of dateX as number) + 100) as string
set the ClipURL to (the clipboard as string)
ignoring case
if ((characters 1 through 4 of ClipURL as string) is not "http") then
return "Malformed URL."
else
set curlCMD to ¬
"curl --stderr /dev/null \"http://tinyurl.com/api-create.php?url=" & ClipURL & "\""
-- Run the script and get the result:
NSString *alertMessage = NSLocalizedString(@"Are you sure you want to sign out?", nil);
SGAlertView *alertView = [[SGAlertView alloc] initWithTitle:nil message:alertMessage];
[alertView addButtonWithTitle:NSLocalizedString(@"Cancel", nil) block:^{}];
[alertView addButtonWithTitle:NSLocalizedString(@"Sign out", nil) block:^{
// Handle the sign out stuff
}];
[alertView show];
[alertView release];
tell application "PDFpenPro"
tell document 1
set theImprint to make new text field with properties {rich text:"Fez"} at end of imprints of page 1
set font of attribute run 1 of rich text of theImprint to "LucidaGrande-Bold"
set size of attribute run 1 of rich text of theImprint to 30
set color of theImprint to {1, 1, 1}
end tell
end tell
-- This script places a page number in the bottom left corner of each page.
tell application "PDFpenPro"
if (count documents) > 0 then
set pageCount to count (pages of document 1)
repeat with pageNumber from 1 to pageCount
set thePage to page pageNumber of document 1
set theImprint to make new text imprint at end of imprints of thePage with properties {rich text:pageNumber as rich text, x position:36, y position:36, height:16, width:30}
set font of attribute run 1 of rich text of theImprint to "LucidaGrande-Bold"
https://phobos.apple.com/WebObjects/MZFinance.woa/wa/freeProductCodeWizard?code=%fill:code%