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
// Package riak is an opinionated driver for the Riak datastore | |
// Developed against Riak 1.2 | |
// | |
// Design decisions were made to prioritize safety over absolute ease of use. | |
// This is a work in progress, but could be good starting point for your own custom driver | |
// Eventually, there will be a real repo. | |
// Also on the roadmap is protocol buffer support, multi-node clusters, better sibling | |
// resolution and even client-side CRDTs | |
// | |
// If you have any feedback, please let me know. |
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
#!/bin/sh | |
# Current as working as of 2012/4/17 | |
# Xcode 4.3.2 | |
PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX" | |
WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace" | |
CONFIG="AdHoc" | |
SCHEME="XXXXXXXX" |
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
#define SHOULD_NEVER_GET_HERE NSAssert4(FALSE, @"\n\n **** Should Never Get Here **** \nAssertion in file:%s at line %i in Method %@ with object:\n %@", __FILE__, __LINE__, NSStringFromSelector(_cmd), self) |
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
type Entry struct { | |
Title string | |
Content string | |
} | |
entry := make(Entry) | |
entry.Title = "New Go Templates (mid-2011)" | |
entry.Content = "A trivial example of how to use them. see documentation and Go source code/tests for more examples" |
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
#define ASSERT_IS_CLASS(x, class) NSAssert5([x isKindOfClass:class], @"\n\n **** Unexpected Assertion **** \nReason: Expected class:%@ but got:%@\nAssertion in file:%s at line %i in Method %@", NSStringFromClass(class), x, __FILE__, __LINE__, NSStringFromSelector(_cmd)) |
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
#define ASSERT_NIL(x) NSAssert4((x == nil), @"\n\n **** Unexpected Nil Assertion ****\n **** Expected nil, but " #x @" is not nil.\nin file:%s at line %i in Method %@ with object:\n %@", __FILE__, __LINE__, NSStringFromSelector(_cmd), self) |
NewerOlder