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
set nosmoothscroll | |
set noautofocus | |
let searchlimit = 30 | |
let scrollduration = 10 | |
let scrollstep = 70 | |
let locale = "jp" | |
let searchalias g = "google" | |
let blacklists = ["chrome://*","https://mail.google.com/*","http://feedly.com/*","https://www.google.com/calendar/*","https://my.omniture.com/*"] | |
let barposition = "bottom" |
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/bash | |
PLIST=platforms/ios/*/*-Info.plist | |
cat << EOF | | |
Add :NSAppTransportSecurity dict | |
Add :NSAppTransportSecurity:NSExceptionDomains dict | |
Add :NSAppTransportSecurity:NSExceptionDomains:dev.example.com dict | |
Add :NSAppTransportSecurity:NSExceptionDomains:dev.example.com:NSExceptionAllowsInsecureHTTPLoads bool YES | |
Add :NSAppTransportSecurity:NSExceptionDomains:dev.example.com:NSExceptionRequiresForwardSecrecy bool NO |
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 | |
import SnapKit | |
import RxSwift | |
import RxCocoa | |
final class ManageView: UIView { | |
let descriptionLabel = UILabel() | |
let greetingTitleLabel = UILabel() | |
let greetingLabel = UILabel() | |
let segmented = UISegmentedControl(items: ["挨拶の始まり選択", "自由入力"]) |
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 UIWindow { | |
func changeRootViewController(new viewController: UIViewController) { | |
UIView.transition( | |
with: UIApplication.shared.keyWindow!, | |
duration: 0.5, | |
options: .transitionCrossDissolve, | |
animations: { | |
UIApplication.shared.keyWindow?.rootViewController = viewController |
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 UIWebView { | |
func setCustomUserAgent() { | |
let classiSuffix = Constants.userAgent | |
let originalUserAgent = stringByEvaluatingJavaScript(from: "navigator.userAgent")! | |
let customUserAgent = originalUserAgent + "+CustomUA" | |
UserDefaults.standard.register(defaults: ["UserAgent": customUserAgent]) | |
print("new userAgent: \(pbUserAgent)") | |
} |
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
public extension URL { | |
public func removeLastSlash() -> URL { | |
let separator = "/" | |
let schemeSeparator = "://" | |
var paths = path.components(separatedBy: separator) | |
if let lastPaths = paths.last, lastPaths == "", let host = self.host, let scheme = self.scheme { | |
paths.removeLast() | |
let urlString = scheme + schemeSeparator + host + paths.joined(separator: separator) | |
return URL(string: urlString) ?? self |
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 | |
import ObjectMapper | |
public class User: NSObject, Mappable, NSCoding { | |
public var id: Int! | |
public var name: String! | |
public required init?(map: Map) { | |
} |
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 | |
class StatsInputView: UIView { | |
private let verticalStackView: UIStackView = { | |
let stackView = UIStackView() | |
stackView.distribution = .fillEqually | |
stackView.axis = .vertical | |
stackView.alignment = .fill | |
return stackView | |
}() |
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
Show hidden characters
{ | |
"extends": "tslint:latest", | |
"rules": { | |
"array-type": [ | |
true, | |
"array" | |
], | |
"boolean-trivia": true, | |
"class-name": true, | |
"comment-format": [ |
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
// | |
// Nature.swift | |
// DamageZ-VIPER | |
// | |
// Created by Kensuke Hoshikawa on 2017/10/11. | |
// Copyright © 2017年 star__hoshi. All rights reserved. | |
// | |
import Foundation |
OlderNewer