This file contains hidden or 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
// | |
// main.swift | |
// BST_Sequences | |
// | |
// Created by Bill, Yiu Por Chan on 12/20/23. | |
// | |
import Foundation | |
class Node { |
This file contains hidden or 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 Cocoa | |
import Foundation | |
// Set up your authentication token | |
let authToken = "authToken" | |
// Specify the project ID | |
let projectId = "projectId" |
This file contains hidden or 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
// | |
// main.swift | |
// LocalizeCatalogCodable | |
// | |
// Created by Bill, Yiu Por Chan on 18.07.23. | |
// | |
import Foundation | |
struct Localizable: Codable { |
This file contains hidden or 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
struct TrackData: Codable { | |
var strings: [String: Track] | |
} | |
struct Track: Codable { | |
let extractionState: String | |
let localizations: [String: Localization] | |
} | |
struct Localization: Codable { |
This file contains hidden or 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
##clean up all remote branches with name "chore/bump_*" | |
cleanGitBranch.sh | |
git branch -r --sort=-committerdate --list 'origin/chore/bump_*' | sed "s/origin\///" | xargs -I {} git push origin --delete {} |
This file contains hidden or 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
.DS_Store | |
.tags* | |
/.idea/ | |
/build/ | |
/dist/ | |
/external_binaries/ | |
/out/ | |
/vendor/download/ | |
/vendor/debian_jessie_amd64-sysroot/ | |
/vendor/debian_jessie_arm-sysroot/ |
This file contains hidden or 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
git checkout develop | |
git pull | |
echo "Time: $(date)." > a.txt | |
cleanGitBranch.sh | |
git branch chore/bump | |
git checkout chore/bump | |
git add . | |
git commit -m"dummy" |
This file contains hidden or 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 | |
func diceChance() { | |
var sums = [Int: Int]() | |
for i in 1...6 { | |
for j in 1...6 { | |
for k in 1...6 { | |
sums[i+j+k, default: 0] += 1 | |
} | |
} |
This file contains hidden or 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
// | |
// main.swift | |
// carthageGraph | |
// | |
// Created by Bill, Yiu Por Chan on 17.09.21. | |
// | |
import Foundation | |
var path: String! = "/Users/bill/ios_dev/wire/xcode13/wire-ios/Cartfile.resolved" |
This file contains hidden or 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
// | |
// main.swift | |
// CreateChangeAzureBranchPR | |
// | |
// Created by bill on 30.11.20. | |
// | |
import Foundation | |
let branch = "chore/azure_xcode12" |
NewerOlder