$ strings /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/Current/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService|grep source.lang.swift
source.lang.swift.keyword
source.lang.swift.pattern
source.lang.swift.syntaxtype.argument
source.lang.swift.syntaxtype.parameter
source.lang.swift.attribute.availability
source.lang.swift.decl.extension
source.lang.swift.decl.var.parameter
source.lang.swift.stmt.brace
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
// | |
// TupleAssignment.swift | |
// Hello Swift | |
// | |
// Created by Erica Sadun on 12/19/14. | |
// Copyright (c) 2014 Erica Sadun. All rights reserved. | |
// | |
import Foundation |
#CoreFoundation入門 基本クラス その2
一回目の続き
bytebufferを扱う(ラッパー)クラス。NSDataとToll-free bridgingが可能
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 | |
FrameworkName="MyKitName" | |
rm -rf ./Debug | |
mkdir ./Debug | |
cp -r ./Debug-iphoneos/${FrameworkName}.framework ./Debug/${FrameworkName}.framework | |
lipo -create ./Debug-iphoneos/${FrameworkName}.framework/${FrameworkName} ./Debug-iphonesimulator/${FrameworkName}.framework/${FrameworkName} -output ./Debug/${FrameworkName}.framework/${FrameworkName} |
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 --git a/KeySetting_Ainu.plist b/KeySetting_Ainu.plist | |
index 197b151..809b6b8 100644 | |
--- a/KeySetting_Ainu.plist | |
+++ b/KeySetting_Ainu.plist | |
@@ -13,14 +13,14 @@ | |
<key>command</key> | |
<string>direct_input</string> | |
<key>character</key> | |
- <string> </string> | |
+ <string> </string> |
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
class Regex { | |
let pattern: String | |
let options: NSRegularExpressionOptions! | |
private var matcher: NSRegularExpression { | |
return NSRegularExpression(pattern: self.pattern, options: nil, error: nil) | |
} | |
required init(pattern: String, options: NSRegularExpressionOptions = nil) { | |
self.pattern = pattern |
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
var dict = Dictionary<String,Bool>() | |
dict["a"] = true | |
dict["c"] = false | |
func matchOneOrTheOtherWithOptionals(a: Bool?, b: Bool?) -> String { | |
switch (a, b) { | |
case (.Some(true), let b) where b == .None || !b!: | |
return "a was true, but b was None or false" | |
case (let a, .Some(true)) where a == .None || a == .Some(false): |
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
##### 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 |
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
// FILED: rdar://17240493 | |
// Type constraint ignored on function type parameter | |
// | |
protocol BoolT {} | |
class TrueT : BoolT {} | |
class FalseT : BoolT {} | |
protocol Nat { | |
typealias IsZero |