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 UIKit | |
extension UIView { | |
@IBInspectable var shadowColor: UIColor? { | |
set { | |
layer.shadowColor = newValue?.cgColor | |
} | |
get { | |
if let color = layer.shadowColor { | |
return UIColor(cgColor: color) |
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
extension UITableView { | |
func autoSizeHeaderAndFooter() { | |
let width = self.bounds.width | |
let autoSize = { (view: UIView) in | |
view.translatesAutoresizingMaskIntoConstraints = false | |
let widthConstraint = NSLayoutConstraint(item: view, | |
attribute: NSLayoutAttribute.width, | |
relatedBy: NSLayoutRelation.equal, | |
toItem: nil, |
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 | |
source /usr/syno/etc.defaults/iptables_modules_list | |
DOCKER=/volume1/.docker/bin/docker | |
DOCKER_ROOT=/volume1/.docker/root | |
DOCKER_CERTS=/volume1/.docker/etc/certs | |
DOCKER_PID=/var/run/docker.pid | |
DOCKER_LOG=/var/log/docker.log | |
DOCKER_OPTS_TLS="--tlsverify --tlscacert=$DOCKER_CERTS/ca.pem --tlscert=$DOCKER_CERTS/server.pem --tlskey=$DOCKER_CERTS/server-key.pem" | |
DOCKER_OPTS="--log-level=error --storage-driver=aufs -g $DOCKER_ROOT -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -p $DOCKER_PID $DOCKER_OPTS_TLS" |
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 -u a/SConstruct b/SConstruct | |
--- a/SConstruct 2015-10-04 14:03:55.000000000 +0100 | |
+++ b/SConstruct 2015-10-04 14:04:47.000000000 +0100 | |
@@ -307,7 +307,7 @@ | |
0, False) | |
if darwin: | |
- osx_version_choices = ['10.6', '10.7', '10.8', '10.9'] | |
+ osx_version_choices = ['10.6', '10.7', '10.8', '10.9', '10.10', '10.11'] | |
add_option("osx-version-min", "minimum OS X version to support", 1, True, |