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
-- Linkify! Select text in HTML mode in MarsEdit that follows the convention: | |
-- | |
-- [Link Title] | |
-- [Link URL] | |
-- [Link Description] | |
-- | |
-- Separated by blank lines between clumps, and run this script to put | |
-- suitable HTML on the pasteboard for linking to each item. | |
on linkClustersFromText(inputText) |
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
on SkipSeconds(secondsToSkip) | |
tell application "iTunes" | |
set newPosition to player position + secondsToSkip | |
set player position to newPosition | |
end tell | |
end SkipSeconds | |
SkipSeconds(30.0) |
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
// These function pointers are intialized to point to objc_msgSend but with specific | |
// signatures to help clarify what the selector's expected signature and behavior are. | |
extern NSString* (*PerformSelectorReturningAutoreleasedString)(id, SEL); | |
extern NSString* (*PerformSelectorWithObjectReturningAutoreleasedString)(id, SEL, id); | |
extern id (*PerformSelectorReturningAutoreleasedObject)(id, SEL); | |
extern void (*PerformSelectorWithObjectReturningVoid)(id, SEL, id); | |
// To safely dynamic message an object where we expect a BOOL response, we | |
// need to clue the compiler into the situation sufficiently (this is especially | |
// broken on Intel if we don't do this). |
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
<record-type name="custom field" code="Cfld"> | |
<property name="label" code="cfNm" type="text" description="the name of a custom field as displayed in MarsEdit's user interface"> | |
<cocoa key="userVisibleName" /> | |
</property> | |
<property name="server field name" code="cfKy" type="text" description="the value of a custom field as it will be sent to the blog server"> | |
<cocoa key="key" /> | |
</property> | |
<property name="value" code="cfVl" type="text" description="the value of a custom field as it will be sent to the blog server"> | |
<cocoa key="value" /> | |
</property> |
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
Adding or removing constraints in window only affects visible tab view item | |
Bundled "cc" tool symlinks to non-existent clang | |
Clang attempts to reuse ObjC module with non-ObjC source file | |
Cmd-K should clear the Organizer's Device Console | |
Commit dialog unforgiving of trigger-finger text erasers | |
Confusing runtime error after switching class from ObjC to Swift | |
Constraints relating an NSBox's subviews to itself should transfer to the contentView | |
Copied system rule should retain change that prompted it | |
Deployment target for new XIB should match target it's added to | |
Disabling Xcode source control feature should hide the menu |
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
#compdef hg | |
# Zsh completion script for mercurial. Rename this file to _hg and copy | |
# it into your zsh function path (/usr/share/zsh/site-functions for | |
# instance) | |
# | |
# If you do not want to install it globally, you can copy it somewhere | |
# else and add that directory to $fpath. This must be done before | |
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc | |
# file could look like this: |
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
#compdef hg | |
# Zsh completion script for mercurial. Rename this file to _hg and copy | |
# it into your zsh function path (/usr/share/zsh/site-functions for | |
# instance) | |
# | |
# If you do not want to install it globally, you can copy it somewhere | |
# else and add that directory to $fpath. This must be done before | |
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc | |
# file could look like this: |
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
#!/usr/bin/python | |
import sys | |
import xmlrpclib | |
postLimit = 1000 | |
if (len(sys.argv) < 4): | |
print "Usage: %s <blogAPIURL> <username> <password>" % sys.argv[0] | |
print "E.g.: %s http://example.com/xmlrpc.php daniel 1234" % sys.argv[0] |
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
#!/usr/bin/python | |
# Hard-code the build settings that we feel strongly should | |
# only be defined in a centralized location (.xcconfig files). | |
# These can also serve then to (at some point) confirm that the | |
# values are indeed being defined by the .xcconfig files | |
def forbiddenBuildSettingKeys(): | |
return ["CLANG_CXX_LANGUAGE_STANDARD", | |
"CLANG_CXX_LIBRARY", | |
"CLANG_ENABLE_MODULES", |
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
#!/usr/bin/python | |
from Foundation import * | |
form = NSDateFormatter.alloc().init() | |
form.setFormatterBehavior_(1040) | |
form.setDateFormat_("yyyyMMdd'T'HH:mm:ss'Z") | |
form.setTimeZone_(NSTimeZone.timeZoneForSecondsFromGMT_(0)) | |
print "Implied locale is " + NSLocale.currentLocale().localeIdentifier() | |
print form.stringFromDate_(NSDate.date()) |
OlderNewer