シングルトンの代替え (Dagger通さなくてもいいやつ)
staticの代替え
例えばHogeActivity.createIntent()など
あと定数とかね
2017/05/16 v3.8.2 READMEの翻訳。
Pumaは、シンプルで、速くて、マルチスレッド、そして高い並列性を持ったRuby/RackアプリケーションのHTTP1.1サーバです。 Pumaは、開発とプロダクション環境どちらにも使えます。 ベストなスループットを得るために、スレッド実装のあるRubiniusもしくはJRubyの使用を強く勧めます。
| # PR is a work in progress and shouldn't be merged yet | |
| warn "PR is classed as Work in Progress" if github.pr_title.include? "[WIP]" | |
| # Warn when there is a big PR | |
| warn "Big PR, consider splitting into smaller" if git.lines_of_code > 500 | |
| # Ensure a clean commits history | |
| if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ } | |
| fail "Please rebase to get rid of the merge commits in this PR" | |
| end |
| // | |
| // UIAlertController+Rx.swift | |
| // | |
| import Foundation | |
| import RxSwift | |
| protocol RxAlertActionType { | |
| associatedtype Result |
| extension Int { | |
| func formatUsingAbbrevation () -> String { | |
| let numFormatter = NSNumberFormatter() | |
| typealias Abbrevation = (threshold:Double, divisor:Double, suffix:String) | |
| let abbreviations:[Abbrevation] = [(0, 1, ""), | |
| (1000.0, 1000.0, "K"), | |
| (100_000.0, 1_000_000.0, "M"), | |
| (100_000_000.0, 1_000_000_000.0, "B")] |
| /** | |
| _____ _____ _ | |
| | __ \ / ____| | | | |
| | | | | ___| | _ __ _ _ _ __ | |_ ___ _ __ | |
| | | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__| | |
| | |__| | __/ |____| | | |_| | |_) | || (_) | | | |
| |_____/ \___|\_____|_| \__, | .__/ \__\___/|_| | |
| __/ | | | |
| |___/|_| | |
| */ |
ライブラリ検索するときに便利 -> https://golanglibs.com
| #!/bin/bash | |
| # | |
| # hook script for swiftlint. It will triggered when you make a commit. | |
| # | |
| # If you want to use, type commands in your console. | |
| # $ ln -s ../../pre-commit-swiftlint.sh .git/hooks/pre-commit | |
| # $ chmod +x .git/hooks/pre-commit | |
| LINT=$(which swiftlint) |
| # Script Name : fabfile.py | |
| # Author : shikajiro | |
| # Created : 2016-11-03 | |
| # Last Modified : 2016-11-03 | |
| # Version : 1.0.0 | |
| # Modifications : | |
| # Description : | |
| # Script to perform the build of Android on another machine | |
| # By performing such a build of severely time on another machine, | |
| # it is possible to ensure the CPU resources of the development machine, |