Skip to content

Instantly share code, notes, and snippets.

/*----------------------------------------------------*/
#pragma mark - XCTAsserts
/*----------------------------------------------------*/
XCTAssert(expression, format...);
XCTAssertTrue(expression, format...);
XCTAssertFalse(expression, format...);
XCTAssertEqual(expression1, expression2, format...);
XCTAssertNotEqual(expression1, expression2, format...);
XCTAssertNil(expression, format...);
FOR IMMEDIATE RELEASE

## AppName vX.X does something interesting

AppName vX.X is on the App Store now, and features the following very interesting feature. This is a summary, so I'm focusing on the lead. Just something to make me want to read the rest. Done.

City, State/Country - [Company/Developer] has released AppName vX.X, available in the Mac App Store. AppName is/does [broad, general strokes]. [A few more specific points about who it's for and why it's of benefit to them].

New features!
@nomatteus
nomatteus / prettyTweetDateForTumblr.js
Created July 25, 2011 15:51 — forked from chrismendis/prettyTweetDateForTumblr.js
Change the dates returned by Tumblr's tweet.js callback to something like 12:00 PM Oct. 27th
var prettyTweetDate = function(tweetDateFromJSON) {
var tweetDate = new Date(Date.parse(tweetDateFromJSON)),
tweetHours = tweetDate.getHours();
tweetHours = (tweetHours < 13) ? tweetHours : tweetHours - 12;
var tweetDateSuffix = function(day) {
switch (day) {
case 1: case 21: case 31:
return "st"; break;