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 func save() { | |
// let appDirs = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) | |
// guard let libraryDirectory = appDirs.first else { | |
// return | |
// } | |
// let files = (try? obtainDBFolderURL())?.path ?? "" | |
// let swiftArray = try? FileManager.default.contentsOfDirectory(atPath: files) | |
// swiftArray?.forEach({ path in | |
// if let urlComponents = URL(fileURLWithPath: path).pathComponents.last { | |
// let p = libraryDirectory + "/" + urlComponents |
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
[ | |
{ | |
"keys": ["alt+shift+j"], "command": "set_syntax", | |
"args": {"syntax": "Packages/Javascript/JSON.tmLanguage"} | |
} | |
] |
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
// | |
// LongestConsecutiveSequence.swift | |
// Test | |
// | |
// Created by KONSTANTIN KUSAINOV on 19/01/2019. | |
// Copyright © 2019 KONSTANTIN KUSAINOV. All rights reserved. | |
// | |
//Given an unsorted array of integers, find the length of the longest consecutive elements sequence. | |
// |
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
// | |
// PutZerosToTheEnd.swift | |
// Test | |
// | |
// Created by KONSTANTIN KUSAINOV on 16/12/2018. | |
// Copyright © 2018 KONSTANTIN KUSAINOV. All rights reserved. | |
// | |
import Foundation |
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
UIVisualEffect *blurEffect; | |
blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; | |
UIVisualEffectView *visualEffectView; | |
visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; | |
// visualEffectView - UIImageView | |
visualEffectView.frame = self.imageView.bounds; | |
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
# Mac OS X | |
*.DS_Store | |
# Xcode | |
build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
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
# Merge Script | |
# http://code.hootsuite.com/an-introduction-to-creating-and-distributing-embedded-frameworks-in-ios/ | |
# 1 | |
# Set bash script to exit immediately if any commands fail. | |
set -e | |
# 2 |
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
[alias] | |
kksubmupdate = submodule update | |
kkcommitlastmsg = commit -a -c ORIG_HEAD | |
kkstatus = "!sh -c 'git fetch && git status' " | |
kkpull = "!sh -c 'git pull --rebase && git kksubmupdate' " | |
kkcommitall = commit -a | |
kkrebaseinteractive = rebase -i | |
kklogahead = "!sh -c 'var_branch_name=$(git name-rev --name-only HEAD) && git log origin/$var_branch_name..HEAD' " | |
kklogbehind = "!sh -c 'var_branch_name=$(git name-rev --name-only HEAD) && git log HEAD..origin/$var_branch_name' " | |
kkmovetodev = checkout "develop1" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Cancellation</key> | |
<dict> | |
<key>Cancel</key> | |
<string>cancelOperation:</string> | |
</dict> | |
<key>Case Changes</key> |
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
These values are returned as the error code property of an NSError object with the domain “NSURLErrorDomain”. | |
Declaration | |
SWIFT | |
var NSURLErrorUnknown: Int { get } | |
var NSURLErrorCancelled: Int { get } | |
var NSURLErrorBadURL: Int { get } | |
var NSURLErrorTimedOut: Int { get } | |
var NSURLErrorUnsupportedURL: Int { get } | |
var NSURLErrorCannotFindHost: Int { get } |
NewerOlder