From: acevest Date: Thu, 30 Apr 2015 14:48:20 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=47e1bf04521dd63ce2755ad74ea410ee9ffc83d9;p=acecode.git ... --- diff --git a/learn/swift/.DS_Store b/learn/swift/.DS_Store new file mode 100644 index 0000000..6ff8ada Binary files /dev/null and b/learn/swift/.DS_Store differ diff --git a/learn/swift/MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata b/learn/swift/MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/learn/swift/MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/learn/swift/MyPlayground.playground/playground.xcworkspace/xcshareddata/MyPlayground.xccheckout b/learn/swift/MyPlayground.playground/playground.xcworkspace/xcshareddata/MyPlayground.xccheckout new file mode 100644 index 0000000..51108a5 --- /dev/null +++ b/learn/swift/MyPlayground.playground/playground.xcworkspace/xcshareddata/MyPlayground.xccheckout @@ -0,0 +1,41 @@ + + + + + IDESourceControlProjectFavoriteDictionaryKey + + IDESourceControlProjectIdentifier + 1330DDA2-1B99-4E60-9F3A-B7DE1D7ECB22 + IDESourceControlProjectName + MyPlayground + IDESourceControlProjectOriginsDictionary + + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + https://github.com/acevest/acecode.git + + IDESourceControlProjectPath + learn/swift/MyPlayground.playground + IDESourceControlProjectRelativeInstallPathDictionary + + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + ../../.. + + IDESourceControlProjectURL + https://github.com/acevest/acecode.git + IDESourceControlProjectVersion + 111 + IDESourceControlProjectWCCIdentifier + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + IDESourceControlProjectWCConfigurations + + + IDESourceControlRepositoryExtensionIdentifierKey + public.vcs.git + IDESourceControlWCCIdentifierKey + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + IDESourceControlWCCName + acecode + + + + diff --git a/learn/swift/MyPlayground.playground/playground.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate b/learn/swift/MyPlayground.playground/playground.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..3b9dccf Binary files /dev/null and b/learn/swift/MyPlayground.playground/playground.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/learn/swift/MyPlayground.playground/section-1.swift b/learn/swift/MyPlayground.playground/section-1.swift index b9e7e1c..74b3f9b 100644 --- a/learn/swift/MyPlayground.playground/section-1.swift +++ b/learn/swift/MyPlayground.playground/section-1.swift @@ -65,3 +65,5 @@ let word = "red apple" //} + + diff --git a/tools/.DS_Store b/tools/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/tools/.DS_Store differ diff --git a/tools/AceBox/.DS_Store b/tools/AceBox/.DS_Store new file mode 100644 index 0000000..e25c09b Binary files /dev/null and b/tools/AceBox/.DS_Store differ diff --git a/tools/AceBox/AceBox.xcodeproj/project.pbxproj b/tools/AceBox/AceBox.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4d1edc2 --- /dev/null +++ b/tools/AceBox/AceBox.xcodeproj/project.pbxproj @@ -0,0 +1,432 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 50A4F27B1AF2154100DB7E36 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A4F27A1AF2154100DB7E36 /* AppDelegate.swift */; }; + 50A4F27D1AF2154100DB7E36 /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A4F27C1AF2154100DB7E36 /* FirstViewController.swift */; }; + 50A4F27F1AF2154100DB7E36 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A4F27E1AF2154100DB7E36 /* SecondViewController.swift */; }; + 50A4F2821AF2154100DB7E36 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50A4F2801AF2154100DB7E36 /* Main.storyboard */; }; + 50A4F2841AF2154100DB7E36 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 50A4F2831AF2154100DB7E36 /* Images.xcassets */; }; + 50A4F2871AF2154100DB7E36 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 50A4F2851AF2154100DB7E36 /* LaunchScreen.xib */; }; + 50A4F2931AF2154100DB7E36 /* AceBoxTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50A4F2921AF2154100DB7E36 /* AceBoxTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 50A4F28D1AF2154100DB7E36 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 50A4F26D1AF2154100DB7E36 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 50A4F2741AF2154100DB7E36; + remoteInfo = AceBox; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 50A4F2751AF2154100DB7E36 /* AceBox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AceBox.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 50A4F2791AF2154100DB7E36 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50A4F27A1AF2154100DB7E36 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 50A4F27C1AF2154100DB7E36 /* FirstViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstViewController.swift; sourceTree = ""; }; + 50A4F27E1AF2154100DB7E36 /* SecondViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = ""; }; + 50A4F2811AF2154100DB7E36 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 50A4F2831AF2154100DB7E36 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 50A4F2861AF2154100DB7E36 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 50A4F28C1AF2154100DB7E36 /* AceBoxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AceBoxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 50A4F2911AF2154100DB7E36 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50A4F2921AF2154100DB7E36 /* AceBoxTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AceBoxTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 50A4F2721AF2154100DB7E36 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50A4F2891AF2154100DB7E36 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 50A4F26C1AF2154100DB7E36 = { + isa = PBXGroup; + children = ( + 50A4F2771AF2154100DB7E36 /* AceBox */, + 50A4F28F1AF2154100DB7E36 /* AceBoxTests */, + 50A4F2761AF2154100DB7E36 /* Products */, + ); + sourceTree = ""; + }; + 50A4F2761AF2154100DB7E36 /* Products */ = { + isa = PBXGroup; + children = ( + 50A4F2751AF2154100DB7E36 /* AceBox.app */, + 50A4F28C1AF2154100DB7E36 /* AceBoxTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 50A4F2771AF2154100DB7E36 /* AceBox */ = { + isa = PBXGroup; + children = ( + 50A4F27A1AF2154100DB7E36 /* AppDelegate.swift */, + 50A4F27C1AF2154100DB7E36 /* FirstViewController.swift */, + 50A4F27E1AF2154100DB7E36 /* SecondViewController.swift */, + 50A4F2801AF2154100DB7E36 /* Main.storyboard */, + 50A4F2831AF2154100DB7E36 /* Images.xcassets */, + 50A4F2851AF2154100DB7E36 /* LaunchScreen.xib */, + 50A4F2781AF2154100DB7E36 /* Supporting Files */, + ); + path = AceBox; + sourceTree = ""; + }; + 50A4F2781AF2154100DB7E36 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 50A4F2791AF2154100DB7E36 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 50A4F28F1AF2154100DB7E36 /* AceBoxTests */ = { + isa = PBXGroup; + children = ( + 50A4F2921AF2154100DB7E36 /* AceBoxTests.swift */, + 50A4F2901AF2154100DB7E36 /* Supporting Files */, + ); + path = AceBoxTests; + sourceTree = ""; + }; + 50A4F2901AF2154100DB7E36 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 50A4F2911AF2154100DB7E36 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 50A4F2741AF2154100DB7E36 /* AceBox */ = { + isa = PBXNativeTarget; + buildConfigurationList = 50A4F2961AF2154100DB7E36 /* Build configuration list for PBXNativeTarget "AceBox" */; + buildPhases = ( + 50A4F2711AF2154100DB7E36 /* Sources */, + 50A4F2721AF2154100DB7E36 /* Frameworks */, + 50A4F2731AF2154100DB7E36 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AceBox; + productName = AceBox; + productReference = 50A4F2751AF2154100DB7E36 /* AceBox.app */; + productType = "com.apple.product-type.application"; + }; + 50A4F28B1AF2154100DB7E36 /* AceBoxTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 50A4F2991AF2154100DB7E36 /* Build configuration list for PBXNativeTarget "AceBoxTests" */; + buildPhases = ( + 50A4F2881AF2154100DB7E36 /* Sources */, + 50A4F2891AF2154100DB7E36 /* Frameworks */, + 50A4F28A1AF2154100DB7E36 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 50A4F28E1AF2154100DB7E36 /* PBXTargetDependency */, + ); + name = AceBoxTests; + productName = AceBoxTests; + productReference = 50A4F28C1AF2154100DB7E36 /* AceBoxTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 50A4F26D1AF2154100DB7E36 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0630; + ORGANIZATIONNAME = Ace; + TargetAttributes = { + 50A4F2741AF2154100DB7E36 = { + CreatedOnToolsVersion = 6.3.1; + }; + 50A4F28B1AF2154100DB7E36 = { + CreatedOnToolsVersion = 6.3.1; + TestTargetID = 50A4F2741AF2154100DB7E36; + }; + }; + }; + buildConfigurationList = 50A4F2701AF2154100DB7E36 /* Build configuration list for PBXProject "AceBox" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 50A4F26C1AF2154100DB7E36; + productRefGroup = 50A4F2761AF2154100DB7E36 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 50A4F2741AF2154100DB7E36 /* AceBox */, + 50A4F28B1AF2154100DB7E36 /* AceBoxTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 50A4F2731AF2154100DB7E36 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50A4F2821AF2154100DB7E36 /* Main.storyboard in Resources */, + 50A4F2871AF2154100DB7E36 /* LaunchScreen.xib in Resources */, + 50A4F2841AF2154100DB7E36 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50A4F28A1AF2154100DB7E36 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 50A4F2711AF2154100DB7E36 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50A4F27F1AF2154100DB7E36 /* SecondViewController.swift in Sources */, + 50A4F27B1AF2154100DB7E36 /* AppDelegate.swift in Sources */, + 50A4F27D1AF2154100DB7E36 /* FirstViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 50A4F2881AF2154100DB7E36 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 50A4F2931AF2154100DB7E36 /* AceBoxTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 50A4F28E1AF2154100DB7E36 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 50A4F2741AF2154100DB7E36 /* AceBox */; + targetProxy = 50A4F28D1AF2154100DB7E36 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 50A4F2801AF2154100DB7E36 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 50A4F2811AF2154100DB7E36 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 50A4F2851AF2154100DB7E36 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 50A4F2861AF2154100DB7E36 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 50A4F2941AF2154100DB7E36 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 50A4F2951AF2154100DB7E36 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 50A4F2971AF2154100DB7E36 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = AceBox/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 8.2; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 50A4F2981AF2154100DB7E36 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = AceBox/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 8.2; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; + 50A4F29A1AF2154100DB7E36 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = AceBoxTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AceBox.app/AceBox"; + }; + name = Debug; + }; + 50A4F29B1AF2154100DB7E36 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = AceBoxTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AceBox.app/AceBox"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 50A4F2701AF2154100DB7E36 /* Build configuration list for PBXProject "AceBox" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50A4F2941AF2154100DB7E36 /* Debug */, + 50A4F2951AF2154100DB7E36 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 50A4F2961AF2154100DB7E36 /* Build configuration list for PBXNativeTarget "AceBox" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50A4F2971AF2154100DB7E36 /* Debug */, + 50A4F2981AF2154100DB7E36 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 50A4F2991AF2154100DB7E36 /* Build configuration list for PBXNativeTarget "AceBoxTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 50A4F29A1AF2154100DB7E36 /* Debug */, + 50A4F29B1AF2154100DB7E36 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 50A4F26D1AF2154100DB7E36 /* Project object */; +} diff --git a/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..5765ce0 --- /dev/null +++ b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcshareddata/AceBox.xccheckout b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcshareddata/AceBox.xccheckout new file mode 100644 index 0000000..97be529 --- /dev/null +++ b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcshareddata/AceBox.xccheckout @@ -0,0 +1,41 @@ + + + + + IDESourceControlProjectFavoriteDictionaryKey + + IDESourceControlProjectIdentifier + A1372EDB-125D-4A73-9AE8-955FA3D42EAE + IDESourceControlProjectName + project + IDESourceControlProjectOriginsDictionary + + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + https://github.com/acevest/acecode.git + + IDESourceControlProjectPath + tools/AceBox/AceBox.xcodeproj/project.xcworkspace + IDESourceControlProjectRelativeInstallPathDictionary + + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + ../../../.. + + IDESourceControlProjectURL + https://github.com/acevest/acecode.git + IDESourceControlProjectVersion + 111 + IDESourceControlProjectWCCIdentifier + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + IDESourceControlProjectWCConfigurations + + + IDESourceControlRepositoryExtensionIdentifierKey + public.vcs.git + IDESourceControlWCCIdentifierKey + BA634633803B1A00DDD2BCDEF5C645E5844F56E6 + IDESourceControlWCCName + acecode + + + + diff --git a/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..fe87912 Binary files /dev/null and b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/tools/AceBox/AceBox.xcodeproj/xcuserdata/Ace.xcuserdatad/xcschemes/AceBox.xcscheme b/tools/AceBox/AceBox.xcodeproj/xcuserdata/Ace.xcuserdatad/xcschemes/AceBox.xcscheme new file mode 100644 index 0000000..a6a831d --- /dev/null +++ b/tools/AceBox/AceBox.xcodeproj/xcuserdata/Ace.xcuserdatad/xcschemes/AceBox.xcscheme @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/AceBox/AceBox.xcodeproj/xcuserdata/Ace.xcuserdatad/xcschemes/xcschememanagement.plist b/tools/AceBox/AceBox.xcodeproj/xcuserdata/Ace.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..23f7a2e --- /dev/null +++ b/tools/AceBox/AceBox.xcodeproj/xcuserdata/Ace.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,27 @@ + + + + + SchemeUserState + + AceBox.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 50A4F2741AF2154100DB7E36 + + primary + + + 50A4F28B1AF2154100DB7E36 + + primary + + + + + diff --git a/tools/AceBox/AceBox/AppDelegate.swift b/tools/AceBox/AceBox/AppDelegate.swift new file mode 100644 index 0000000..5cf83f7 --- /dev/null +++ b/tools/AceBox/AceBox/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// AceBox +// +// Created by Ace on 4/30/15. +// Copyright (c) 2015 Ace. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(application: UIApplication) { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/tools/AceBox/AceBox/Base.lproj/LaunchScreen.xib b/tools/AceBox/AceBox/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..8d8db7c --- /dev/null +++ b/tools/AceBox/AceBox/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/AceBox/AceBox/Base.lproj/Main.storyboard b/tools/AceBox/AceBox/Base.lproj/Main.storyboard new file mode 100644 index 0000000..64f32e1 --- /dev/null +++ b/tools/AceBox/AceBox/Base.lproj/Main.storyboard @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/AceBox/AceBox/FirstViewController.swift b/tools/AceBox/AceBox/FirstViewController.swift new file mode 100644 index 0000000..0b17823 --- /dev/null +++ b/tools/AceBox/AceBox/FirstViewController.swift @@ -0,0 +1,25 @@ +// +// FirstViewController.swift +// AceBox +// +// Created by Ace on 4/30/15. +// Copyright (c) 2015 Ace. All rights reserved. +// + +import UIKit + +class FirstViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} + diff --git a/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon-76@1x.png b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon-76@1x.png new file mode 100644 index 0000000..4b76971 Binary files /dev/null and b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon-76@1x.png differ diff --git a/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon-76@2x.png b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon-76@2x.png new file mode 100644 index 0000000..00859d9 Binary files /dev/null and b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon-76@2x.png differ diff --git a/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon@2x.png b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon@2x.png new file mode 100644 index 0000000..cab5fe9 Binary files /dev/null and b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon@2x.png differ diff --git a/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon@3x.png b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon@3x.png new file mode 100644 index 0000000..1c30559 Binary files /dev/null and b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/AceBoxIcon@3x.png differ diff --git a/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/Contents.json b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9d284b1 --- /dev/null +++ b/tools/AceBox/AceBox/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,72 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AceBoxIcon@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "AceBoxIcon@3x.png", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AceBoxIcon-76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "AceBoxIcon-76@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/tools/AceBox/AceBox/Images.xcassets/first.imageset/Contents.json b/tools/AceBox/AceBox/Images.xcassets/first.imageset/Contents.json new file mode 100644 index 0000000..33a7451 --- /dev/null +++ b/tools/AceBox/AceBox/Images.xcassets/first.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "first.pdf" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/tools/AceBox/AceBox/Images.xcassets/first.imageset/first.pdf b/tools/AceBox/AceBox/Images.xcassets/first.imageset/first.pdf new file mode 100644 index 0000000..47d911d Binary files /dev/null and b/tools/AceBox/AceBox/Images.xcassets/first.imageset/first.pdf differ diff --git a/tools/AceBox/AceBox/Images.xcassets/second.imageset/Contents.json b/tools/AceBox/AceBox/Images.xcassets/second.imageset/Contents.json new file mode 100644 index 0000000..03bd9c9 --- /dev/null +++ b/tools/AceBox/AceBox/Images.xcassets/second.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "second.pdf" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/tools/AceBox/AceBox/Images.xcassets/second.imageset/second.pdf b/tools/AceBox/AceBox/Images.xcassets/second.imageset/second.pdf new file mode 100644 index 0000000..401614e Binary files /dev/null and b/tools/AceBox/AceBox/Images.xcassets/second.imageset/second.pdf differ diff --git a/tools/AceBox/AceBox/Info.plist b/tools/AceBox/AceBox/Info.plist new file mode 100644 index 0000000..a8bf772 --- /dev/null +++ b/tools/AceBox/AceBox/Info.plist @@ -0,0 +1,57 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.tencent.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UIStatusBarTintParameters + + UINavigationBar + + Style + UIBarStyleDefault + Translucent + + + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/tools/AceBox/AceBox/SecondViewController.swift b/tools/AceBox/AceBox/SecondViewController.swift new file mode 100644 index 0000000..8b7dd8f --- /dev/null +++ b/tools/AceBox/AceBox/SecondViewController.swift @@ -0,0 +1,25 @@ +// +// SecondViewController.swift +// AceBox +// +// Created by Ace on 4/30/15. +// Copyright (c) 2015 Ace. All rights reserved. +// + +import UIKit + +class SecondViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} + diff --git a/tools/AceBox/AceBoxTests/AceBoxTests.swift b/tools/AceBox/AceBoxTests/AceBoxTests.swift new file mode 100644 index 0000000..058e114 --- /dev/null +++ b/tools/AceBox/AceBoxTests/AceBoxTests.swift @@ -0,0 +1,36 @@ +// +// AceBoxTests.swift +// AceBoxTests +// +// Created by Ace on 4/30/15. +// Copyright (c) 2015 Ace. All rights reserved. +// + +import UIKit +import XCTest + +class AceBoxTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + XCTAssert(true, "Pass") + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measureBlock() { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/tools/AceBox/AceBoxTests/Info.plist b/tools/AceBox/AceBoxTests/Info.plist new file mode 100644 index 0000000..82c8783 --- /dev/null +++ b/tools/AceBox/AceBoxTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.tencent.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/tools/comm/dec2hex.py b/tools/comm/dec2hex.py new file mode 100755 index 0000000..0ce56fc --- /dev/null +++ b/tools/comm/dec2hex.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# ------------------------------------------------------------------------ +# File Name: dec2hex.py +# Author: Zhao Yanbai +# Tue Apr 28 15:00:56 2015 +# Description: none +# ------------------------------------------------------------------------ + +while True : + n = raw_input("Input Decimal: ") + hexs = "{0:X}".format(int(n)) + print hexs