- Only use a URL to reference a resource. A resource should never be referenced by some other bit of JSON by a simple identifier (id, oid, etc.)
- Use HAL to express relationships between resources. (http://stateless.co/hal_specification.html)
- If a resource appears in the _embedded section of a resource must also appear in the _links section of the resource.
- Items that appear in the _links section of a resource may also appear in the _embedded section of the resource.
- Use curies to simplifiy link relationship naming in resources.
- Use URI Templates to express optional parameters (generally query string parameters) for a resource.
- Define and publish a URI Template parameter table so clients know what the possible "fill-in-the-blank" fields are for URI templates.
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/bash | |
DOXYGEN=${DOXYGEN-/Applications/Doxygen.app/Contents/Resources/doxygen} | |
echo ${DOXYGEN} | |
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
#import <UIKit/UIKit.h> | |
@interface UIImage (ParadigmPics) | |
+ (void)saveImage:(UIImage*)image withFilename:(NSString *)filename; | |
+ (UIImage*)loadImageFromFile:(NSString *)filename; | |
+ (UIImage *)fixOrientationForImage:(UIImage *)aImage; | |
@end |
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
From d099ec11fc8c2eb97df2bf2fbb6996066eefca46 Mon Sep 17 00:00:00 2001 | |
From: Stanislav Ochotnicky <[email protected]> | |
Date: Thu, 2 May 2013 10:43:47 +0200 | |
Subject: [PATCH] Add generic GCC support for atomic operations | |
This is useful for architectures where no specialized code has been | |
written. | |
--- | |
src/google/protobuf/stubs/atomicops.h | 2 +- | |
.../stubs/atomicops_internals_generic_gcc.h | 139 +++++++++++++++++++++ |
The script in this gist will help you buid the Google Protobuf library for use with Mac OS X and iOS. Other methods (such as homebrew or direct compilation) have issues that prevent their use. The libraries built by this script are universal and support all iOS device architectures including the simluator.
The easiest way to use this script is to simply clone the gist onto your
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
diff -rupN protobuf-2.5.0/src/google/protobuf/stubs/common.h protobuf-2.5.0-modified/src/google/protobuf/stubs/common.h | |
--- protobuf-2.5.0/src/google/protobuf/stubs/common.h 2013-02-26 09:56:38.000000000 -0800 | |
+++ protobuf-2.5.0-modified/src/google/protobuf/stubs/common.h 2013-12-13 22:03:16.000000000 -0800 | |
@@ -82,6 +82,13 @@ inline BOOL GetMessage( | |
namespace std {} | |
+// This is to get around a namespace collision between the privately built | |
+// copy of Google Protobuf and the copy linked into Apple's OpenGL ES | |
+// support. |
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
protobuf | |
protobuf-2.6.0 | |
protobuf-2.6.1 | |
protobuf-master |
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
gtest |
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/bash | |
# | |
# Takes in an e-mail address and answers back with the expected hash used | |
# for the AWS Cognito username field. | |
# | |
args=`getopt e: $*` | |
if [ $? != 0 ]; then | |
echo "Usage: ..." | |
exit 2 |
OlderNewer