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
if [ $# == 1 ]; then | |
echo "$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1)" | |
else | |
for a in $(docker ps | awk '{print $1}'); | |
do | |
if [ $a != 'CONTAINER' ]; then | |
echo $a "$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' $a)" | |
fi | |
done; | |
fi |
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
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted | |
# deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted | |
# deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted |
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
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse |
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
deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse | |
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse | |
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse | |
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
deb http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse | |
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse | |
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse | |
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse | |
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse |
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 Foundation | |
class V2EXSubjectContent { | |
var subJect : String? = "酷工作" | |
} | |
class Job : V2EXSubjectContent { | |
let jobTitle = "iOS开发工程师" | |
let validDuration = "直到找到合适的小伙伴" | |
let companyAddress = "杭州余杭区良睦路梦想小镇1288号" |
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
/* | |
运行环境: | |
Xcode 7.3.1 Swift 2.2 | |
*/ | |
import Foundation | |
import Cocoa | |
import ImageIO | |
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 Foundation | |
extension String { | |
func urlEncodedString() -> String? { | |
let urlCharacterSet = NSMutableCharacterSet() | |
urlCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLFragmentAllowedCharacterSet()) | |
urlCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLHostAllowedCharacterSet()) | |
urlCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLPasswordAllowedCharacterSet()) | |
urlCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLPathAllowedCharacterSet()) | |
urlCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLQueryAllowedCharacterSet()) |
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
{ | |
"110000": [ | |
"北京", | |
"1" | |
], | |
"110100": [ | |
"北京市", | |
"110000" | |
], | |
"110101": [ |
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
[ | |
{ | |
"parent": "1", | |
"value": "宁夏回族自治区", | |
"key": "640000", | |
"children": [ | |
{ | |
"parent": "640000", | |
"value": "石嘴山市", | |
"key": "640200", |
NewerOlder