I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| import Foundation | |
| import PlaygroundSupport | |
| /// A thread-safe array. | |
| public class SynchronizedArray<Element> { | |
| private let queue = DispatchQueue(label: "io.zamzam.ZamzamKit.SynchronizedArray", attributes: .concurrent) | |
| private var array = [Element]() | |
| public init() { } | |
| extension String { | |
| static func stringFromCStringDetectingEncoding(CString: UnsafePointer<CChar>, suggestedEncodings: Set<NSStringEncoding> = [], disallowedEncodings: Set<NSStringEncoding> = []) -> (string: String, encoding: NSStringEncoding, lossy: Bool)? { | |
| let data = NSData(bytesNoCopy: UnsafeMutablePointer<Void>(CString), length: Int(strlen(CString)), freeWhenDone: false) | |
| var outString: NSString? = nil | |
| var lossyConversion: ObjCBool = false | |
| var encodingOptions = [String: AnyObject]() | |
| if !suggestedEncodings.isEmpty { |
| #!/bin/bash | |
| # Homebrew requires Xcode CLI tools to be installed. OS X provides stubs for CLI tools | |
| # that trigger the CLI tools installer when called. So we call `git` to start the installation. | |
| git | |
| echo "Press any key when Xcode CLI tools installation is complete..." | |
| read | |
| # Install Homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
| #!/usr/bin/python | |
| """ | |
| Referencing current branch in github readme.md[1] | |
| This pre-commit hook[2] updates the README.md file's | |
| Travis badge with the current branch | |
| [1] http://stackoverflow.com/questions/18673694/referencing-current-branch-in-github-readme-md | |
| [2] http://www.git-scm.com/book/en/v2/Customizing-Git-Git-Hooks | |
| [3] https://docs.travis-ci.com/user/status-images/ |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
In this article, I'm going to explore a way that we can create views that implement custom Core Animation property animations in a natural way.
As we know, layers in iOS come in two flavours: Backing layers and hosted layers. The only difference between them is that the view acts as the layer delegate for its backing layer, but not for any hosted sublayers.
In order to implement the UIView transactional animation blocks, UIView disables all animations by default and then re-enables them individually as required. It does this using the actionForLayer:forKey: method.
Somewhat strangely, UIView doesn't enable animations for every property that CALayer does by default. A notable example is the layer.contents property, which is animatable by default for a hosted layer, but cannot be animated using a UIView animation block.
| #!/bin/bash | |
| : << '#__REM__' | |
| ffmpegをiOS用にビルドします。ダウンロード、toolchainsの作成、複数のアーキテクチャのビルドまでを自動で行います。デフォルトでは2.2.3をi386 x86_64 armv7 armv7sのアーキテクチャを作成します。arm64にするとエラーする | |
| Build for iOS and ffmpeg. Build a full auto of architecture and multiple creation of toolchains and downloads Create the following architecture, version 2.2.3 by default | |
| i386 x86_64 armv7 armv7s | |
| #__REM__ |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
uninstall JetBrains settings:curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
backup JetBrains settings:curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-backup.sh | bash -s