- Array 是 value type,使用 structs 实现
- 数据类型没有隐式转换
- 对于 String,count() 的复杂度是 O(n),每一个 Character 都是 unicode scalars 的序列
- raw values 和 associated values 的区别
- 如果必要,对于实现了 _ObjectiveCBridgeable 的 value types 会被自动桥接成 reference types
- 讲一下 unowned 和 weak 的区别
- 改 struct 的属性的方法名前要加 mutating,但如果这个 struct 用 let 声明的,改不了。修正:网友指出用 nonmutating set 也可以改属性。
- nil 和 .None 的区别
- capture list in closure
- 举一个 guard ... where 的例子
This file contains hidden or 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
| defaults write xcodebuild PBXNumberOfParallelBuildSubtasks 4 | |
| defaults write xcodebuild IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4 | |
| defaults write com.apple.xcode PBXNumberOfParallelBuildSubtasks 4 | |
| defaults write com.apple.xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4 |
This file contains hidden or 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
| # Captive portal setup | |
| ######################################################## | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq dnsmasq vim hostapd ufw dnsutils netstat-nat conntrack nginx php5 php5-common php5-fpm | |
| sudo mkdir /usr/share/nginx/html/portal | |
| sudo useradd nginx | |
| sudo chown nginx:www-data /usr/share/nginx/html/portal | |
| sudo chmod 755 /usr/share/nginx/html/portal | |
| ######################################################## |
This file contains hidden or 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
| 10.3 (Panther): | |
| https://swscan.apple.com/scanningpoints/scanningpointX.xml | |
| 10.4 (Tiger): | |
| https://swscan.apple.com/content/catalogs/index.sucatalog | |
| https://swscan.apple.com/content/catalogs/index-1.sucatalog | |
| 10.5 (Leopard): | |
| https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog |
This file contains hidden or 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
| eval "$(jenv init -)" | |
| export ALICLOUD_ACCESS_KEY="<api_key>" && export ALICLOUD_SECRET_KEY="<secret_key>" | |
| autoload -U +X bashcompinit && bashcompinit | |
| complete -o nospace -F /usr/local/bin/aliyun aliyun | |
| export PATH="/usr/local/sbin:$PATH" | |
| export PATH="$HOME/.gem/ruby/2.3.0/bin:$PATH" | |
| # added by travis gem | |
| [ -f /Users/veysi.ertekin/.travis/travis.sh ] && source /Users/veysi.ertekin/.travis/travis.sh |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| require 'xcodeproj' | |
| # ============================================ | |
| # !!! I've released a ruby gem that does the same thing, but better. | |
| # You can install it by running `gem install xcprovisioner` or | |
| # `sudo gem install xcprovisioner` if it asks for sudo rights. | |
| # | |
| # For more info: https://github.com/thelvis4/XCProvisioner |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <dict> | |
| <key>com.google.Chrome</key> |
We'll share session notes in QQ group 367375164 2 PM on weekdays.
- [Session 102] :Platforms State of the Union (@qiaoxueshi 06-16)
- [Session 302] : What's New in iTunes Connect (Zhou Guixin 06-19)
- [Session 404] : Debugging with Xcode 9 (Ke 06-20)
- [Session 301] : Introducing the New App Store (Ke 06-20)
- [Session 212] : What's New in Foundation(yinxuebin 06-21)
- [Session 501] : What's New in Audio ( @liumiao 06-22)
This file contains hidden or 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
| [General] | |
| loglevel = notify | |
| skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, localhost, *.local | |
| ipv6 = false | |
| exclude-simple-hostnames = true | |
| allow-wifi-access = false | |
| dns-server = 114.114.114.114, 223.5.5.5, system | |
| [Rule] | |
| # Apple |
This file contains hidden or 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 | |
| function print_usage() { | |
| echo "Usage: $0 [Options]" | |
| echo "Options:" | |
| echo " -h, --help Display usage" | |
| echo " -p, --project-directory Directory containing Carthage project" | |
| echo " -f, --force Omit confirmation" | |
| exit 1 | |
| } |