I hereby claim:
- I am artsabintsev on github.
- I am artsabintsev (https://keybase.io/artsabintsev) on keybase.
- I have a public key ASB0hPuTXmwimUDXQ6GL551uQb_azvka7u7h_RxlBQ9oKwo
To claim this, I am signing this object:
// Source: https://developer.apple.com/forums/thread/650158?answerId=614513022#614513022 | |
import Foundation | |
extension Bundle { | |
static let module = Bundle(path: "\(Bundle.main.bundlePath)/path/to/this/targets/resource/bundle") | |
} |
private extension Bundle { | |
/// The path to Siren's localization `Bundle`. | |
/// | |
/// - Returns: The bundle's path or `nil`. | |
final class func sirenBundlePath() -> String? { | |
#if SWIFT_PACKAGE | |
return Bundle.module.path(forResource: "\(Siren.self)", ofType: "bundle") | |
#else | |
return Bundle(for: Siren.self).path(forResource: "\(Siren.self)", ofType: "bundle") | |
#endif |
defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES |
#!/usr/bin/env bash | |
BR=$( git describe --contains --all HEAD ) | |
echo Branch: $BR | |
if [ $BR = master ] | |
then | |
git add Path/To/Supporting\ Files/Info.plist | |
git commit --allow-empty -m "[skip ci] finished build: $BUDDYBUILD_BUILD_NUMBER" | |
git push |
alias ga='git add . && git status' | |
alias gb='git branch' | |
alias gbd='git branch -D' | |
alias gch='git checkout' | |
alias gcam='git commit -am' | |
alias gp='git push' | |
alias gpo='git push origin' | |
alias gs='git status' | |
alias gu='git pull --all && git fetch -p && git branch --merged | grep -v '^*' | grep -v master | grep -v develop | xargs -n 1 git branch -d && git branch -a' | |
alias gclean='git clean -fd && git reset && git checkout -f && git status' |
alias up='rvm get stable && rvm rubygems latest && gem update && brew update && brew upgrade && brew doctor && brew cleanup' |
import Foundation | |
enum EnumKey: String { | |
case aKey = "Key A from Enum" | |
case bKey = "Key B from Enum" | |
case cKey = "Key C from Enum" | |
} | |
struct StructKey { | |
static let aKey = "Key A from Struct" |
I hereby claim:
To claim this, I am signing this object:
import Foundation | |
typealias T = Int | |
struct S { | |
public static func f<T>(a: T, b: Int) { | |
print(a, b) | |
f(a: a, b: b) // Infinitely calls the f<t>{} method (e.g., creates infinite loop) | |
} |