First, install Xcode 6 beta.
And run it.
sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer
##### Uncrustify config | |
# Objective-C | |
# ===== Preprocessor ===== | |
# via: http://qiita.com/items/dd7c5ffdff27451dae16 | |
# #if、#ifdef、#ifndef〜#else〜#endifブロック内のプロプロセッサをインデントするかどうか。{ ignore, add, remove, force } | |
pp_indent = add | |
# ソースコードのインデントレベルに合わせてインデントするかどうか。{ true, false } | |
pp_indent_at_level = true |
// FILED: rdar://17240493 | |
// Type constraint ignored on function type parameter | |
// | |
protocol BoolT {} | |
class TrueT : BoolT {} | |
class FalseT : BoolT {} | |
protocol Nat { | |
typealias IsZero |
#include <clang-c/Index.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
void printCodeCompletionSuggestions(CXTranslationUnit tu, char* source, unsigned line, unsigned column) { | |
struct CXUnsavedFile *unsavedFiles = NULL; | |
unsigned numUnsavedFiles = 0; | |
unsigned options = clang_defaultCodeCompleteOptions(); | |
CXCodeCompleteResults *results = clang_codeCompleteAt(tu, source, line, column, unsavedFiles, numUnsavedFiles, options); |
#version 150 | |
uniform sampler2D uTexture; | |
in VertexData { | |
vec3 baricentric; | |
vec4 color; | |
vec2 texcoord; | |
} vVertexIn; |
/** | |
Provides the ability to verify key paths at compile time. | |
If "keyPath" does not exist, a compile-time error will be generated. | |
Example: | |
// Verifies "isFinished" exists on "operation". | |
NSString *key = SQKeyPath(operation, isFinished); | |
// Verifies "isFinished" exists on self. |
CLASS_NAME = MyObject | |
OBJS = main.o $(CLASS_NAME).o $(CLASS_NAME)Tests.o | |
PROGRAM = a.out | |
CFLAGS = -Wall -F$(FWPATH) | |
LIBS = -F$(FWPATH) -framework XCTest -framework Foundation | |
FWPATH = /Applications/Xcode.app/Contents/Developer/Library/Frameworks | |
XCTEST = /Applications/Xcode.app/Contents/Developer/usr/bin/xctest |
#pragma mark - NSFetchedResultsControllerDelegate methods | |
- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller { | |
[self.tableView beginUpdates]; | |
} | |
- (void)controller:(NSFetchedResultsController *)controller | |
didChangeObject:(id)anObject | |
atIndexPath:(NSIndexPath *)indexPath | |
forChangeType:(NSFetchedResultsChangeType)type |
#!/bin/sh | |
set -e | |
currentdir=$(dirname $0) | |
cd ${currentdir} | |
source ./firstofall_functions.sh | |
## Dotfiles |
@@ -2,4 +2,4 @@ | |
# Translate Latin-1 smart quotes and en-dash into UTF-8. There is probably a | |
# better way to do this. | |
-LANG=C sed -e s/$'\x92'/$'\xe2\x80\x99'/g -e s/$'\x93'/$'\xe2\x80\x9c'/g -e s/$'\x94'/$'\xe2\x80\x9d'/g -e s/$'\x96'/-/g -e s/$'\xa0'/' '/g -e s/$'\xff'/' '/g | |
+LANG=C LC_ALL=C sed -e s/$'\x92'/$'\xe2\x80\x99'/g -e s/$'\x93'/$'\xe2\x80\x9c'/g -e s/$'\x94'/$'\xe2\x80\x9d'/g -e s/$'\x96'/-/g -e s/$'\xa0'/' '/g -e s/$'\xff'/' '/g |