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
license: mit |
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
license: mit |
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
license: mit |
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
--- Actions --- | |
$Copy <M-C> | |
$Cut <M-X> <S-Del> | |
$Delete <Del> <BS> <M-BS> | |
$LRU | |
$Paste <M-V> | |
$Redo <M-S-Z> <A-S-BS> | |
$SearchWeb <A-S-G> | |
$SelectAll <M-A> | |
$Undo <M-Z> |
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
/** | |
* @param {string[][]} maze | |
* @param {number[]} px | |
* @param {number} k | |
*/ | |
const shortestPath = (maze, px, k) => { | |
const dx = [-1, 1, 0, 0]; | |
const dy = [0, 0, -1, 1]; | |
const m = maze.length; |
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
Pod::Spec.new do |spec| | |
spec.name = "SwiftyLib" | |
spec.version = "0.0.1" | |
spec.summary = "A CocoaPods library written in Swift" | |
spec.description = <<-DESC | |
This CocoaPods library helps you perform calculation. | |
DESC |
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
language: objective-c | |
osx_image: xcode10.1 | |
env: | |
matrix: | |
- TEST_SDK=iphonesimulator12.1 OS=12.1 NAME='iPhone XR' | |
- TEST_SDK=iphonesimulator12.1 OS=12.1 NAME='iPhone 7' | |
script: | |
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -project SwiftyLib.xcodeproj -scheme SwiftyLib -sdk $TEST_SDK -destination "platform=iOS Simulator,OS=$OS,name=$NAME" ONLY_ACTIVE_ARCH=YES |
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
coverage_service: cobertura_xml | |
xcodeproj: SwiftyLib.xcodeproj | |
scheme: SwiftyLib | |
output_directory: reports | |
ignore: | |
- SwiftyLibTests/* |
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
language: objective-c | |
osx_image: xcode10.1 | |
env: | |
matrix: | |
- TEST_SDK=iphonesimulator12.1 OS=12.1 NAME='iPhone XR' | |
- TEST_SDK=iphonesimulator12.1 OS=12.1 NAME='iPhone 7' | |
script: | |
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -project SwiftyLib.xcodeproj -scheme SwiftyLib -sdk $TEST_SDK -destination "platform=iOS Simulator,OS=$OS,name=$NAME" ONLY_ACTIVE_ARCH=YES |
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
// | |
// SwiftyLibTests.swift | |
// | |
import XCTest | |
@testable import SwiftyLib | |
class SwiftyLibTests: XCTestCase { | |
var swiftyLib: SwiftyLib! |