Hello
``` World ```[Google][google]
[This is also Google][google]
| #import "ModuleName-Swift.h" |
| [ | |
| { | |
| "keys": ["ctrl+i"], | |
| "command": "reindent", | |
| "args": { | |
| "single_line": true | |
| } | |
| }, | |
| { |
| let view = Bundle.main.loadNibNamed("PreviewHeaderView", owner: self, options: nil)![0] |
| let string: NSString = place as NSString | |
| let attributes: [String: AnyObject] = [NSFontAttributeName: UIFont(name: "HiraKakuProN-W6", size: 10.0)!] | |
| let labelHeight: CGFloat = 14.0 | |
| let size: CGSize = string.boundingRect( | |
| with: CGSize(width: CGFloat.greatestFiniteMagnitude, height: labelHeight), | |
| options: .usesLineFragmentOrigin, | |
| attributes: attributes, | |
| context: nil).size |
| ⌥V -> ⇧^V | |
| ⇧⌥, -> ⇧^, | |
| ⇧⌥. -> ⇧^. |
| let editOptions = PHContentEditingInputRequestOptions() | |
| editOptions.isNetworkAccessAllowed = true | |
| asset.requestContentEditingInput(with: editOptions) { (contentEditingInput: PHContentEditingInput?, info: [AnyHashable : Any]) in | |
| if let fileURL = contentEditingInput?.fullSizeImageURL { | |
| let image = CIImage(contentsOf: fileURL) | |
| log.debug("properties=\(image?.properties)") | |
| if let gps = image?.properties["{GPS}"] as? [AnyHashable : Any] { |
[Google][google]
[This is also Google][google]
| #!/bin/sh | |
| remote="$1" | |
| url="$2" | |
| z40=0000000000000000000000000000000000000000 | |
| while read local_ref local_sha remote_ref remote_sha | |
| do | |
| if [ "$local_sha" = $z40 ] |
| // To debug, sign out from this app. | |
| if let session = Twitter.sharedInstance().sessionStore.session() { | |
| Twitter.sharedInstance().sessionStore.logOutUserID(session.userID) | |
| } | |
| if let session = Twitter.sharedInstance().sessionStore.session() { | |
| debugPrint("Session: \(String(describing: session))") | |
| debugPrint("Existing: \(Twitter.sharedInstance().sessionStore.existingUserSessions())") | |
| tweet() | |
| } else { |
| # An example for calculation of the crash free rate with Sentry. | |
| # This example calculates the crash free rate yesterday. | |
| require 'json' | |
| require 'net/http' | |
| require 'uri' | |
| # Set your API Token | |
| # https://sentry.io/api/ | |
| SENTRY_API_TOKEN = 'xxx' |