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
// | |
// PageIndicator.swift | |
// | |
// Created by Oleksandr Glagoliev on 6/24/20. | |
// Copyright © 2020 Oleksandr Glagoliev. All rights reserved. | |
// | |
import SwiftUI | |
// MARK: - Dot Indicator - |
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
#!/usr/bin/ruby | |
require 'set' | |
# Constants | |
OUTPUT_BULLET = "•" | |
OUTPUT_BULLET_COLORS = [9, 3, 2, 75, 99] | |
# Help information | |
HELP_COMMANDS = ["-h", "--help", "help"] |
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
// | |
// SnapshotDiffableDataSource.swift | |
// testDiffableDataSource | |
// | |
// Created by Miguel Alcântara on 22/01/2020. | |
// Copyright © 2020 Miguel Alcântara. All rights reserved. | |
// | |
import UIKit |
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 CommonCrypto | |
// MARK: AES128 暗号、復号化 | |
public extension String { | |
func aesEncrypt(key: String, iv: String) -> String? { | |
guard | |
let data = self.data(using: .utf8), | |
let key = key.data(using: .utf8), | |
let iv = iv.data(using: .utf8), |
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/sh | |
# ファイルの1年間のコミット数 | |
git ls-files | | |
while read file ; do | |
commits=`git log --since=1.year --no-merges --oneline -- $file | wc -l`; | |
echo "$commits - $file"; | |
done | sort -n |
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/sh | |
# https://gist.github.com/MarioIannotta/e27ac3ec067dc5b6f00c392d7527b10a | |
build_path="Builds/$(date '+%d-%m-%Y-%H-%M')" | |
target="YourFramework" | |
configuration="Your configuration eg: Release" | |
# clean up the build folder if already exists | |
rm -rf build_path |
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
############################### | |
# get latest release git branch | |
############################### | |
desc "get latest release git branch" | |
private_lane :git_latest_release_branch do | |
pattern = "release\/(.+)" | |
branches = git_find_branches(pattern: pattern) | |
reg = Regexp.new(pattern) | |
branches = branches.sort { |a, b| |
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
// | |
// main.swift | |
// MJPEGreader | |
// | |
// Created by michal on 17/11/2017. | |
// Copyright © 2018 michal. 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
<?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>Label</key> | |
<string>com.jenkins.ci</string> | |
<key>UserName</key> | |
<string>jenkins</string> | |
<key>SessionCreate</key> | |
<true/> |
NewerOlder