Skip to content

Instantly share code, notes, and snippets.

View justin's full-sized avatar

Justin Williams justin

View GitHub Profile
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:
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
NS_IMETHODIMP
nsChildView::BeginSecureKeyboardInput()
{
NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
nsresult rv = nsBaseWidget::BeginSecureKeyboardInput();
if (NS_SUCCEEDED(rv))
::EnableSecureEventInput();
return rv;
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
\b[A-Z0-9._%+-]+@((apple|filemaker|braeburncapital|euro\.apple|asia\.apple)+\.)+com