SSHの公開鍵を作成しGithubに登録する手順 - mon_sat at Co-Edo(半年前の自分への教科書 / 別院)
【メモ】githubの複数アカウントにSSH接続するための設定手順 | Developers.IO
まとめ# BitbucketへのSSH公開鍵の手順メモ.自分用
SSH認証キーをBitbucket/GitHubに設定しよう! [Mac簡単手順] - 酒と泪とRubyとRailsと
git | |
ghq | |
fzf | |
git-now | |
tig | |
tmux | |
gh | |
jq | |
fish |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jsの勉強03 tips</title> | |
</head> | |
<body onload="initCards();"> | |
<h1>神経衰弱</h1> | |
<p>Your score: <span id="score"></span></p> |
// MARK: Date + SwiftCheck | |
extension Date: RandomType { | |
public static func randomInRange<G : RandomGeneneratorType>(_ range : (Date, Date), gen : G) -> (Date, G) { | |
let (min, max) = range | |
let (t, gen2) = Double.randomInRange((min.timeIntervalSince1970, max.timeIntervalSince1970), gen: gen) | |
return (Date(timeIntervalSince1970: t), gen2) | |
} | |
} |
class Singleton { | |
private static _instance:Singleton = null; | |
constructor() { | |
if(Singleton._instance){ | |
throw new Error("must use the getInstance."); | |
} | |
Singleton._instance = this; | |
} | |
public static getInstance():Singleton { | |
if(Singleton._instance === null) { |
/// See also: | |
/// - https://github.com/RxSwiftCommunity/Action | |
/// - https://github.com/ukitaka/RealmIO | |
/// - https://medium.com/@JorgeCastilloPr/kotlin-dependency-injection-with-the-reader-monad-7d52f94a482e | |
public class Reader<Input, Element> { | |
public typealias WorkFactory = (Input) -> Element | |
private let workFactory: WorkFactory | |
public init(_ workFactory: @escaping WorkFactory) { |
import Foundation | |
// https://qiita.com/risuke/items/cdd6a75f236faae3ce6b | |
// https://gist.github.com/budidino/8585eecd55fd4284afaaef762450f98e | |
extension String { | |
enum TruncationPosition { | |
case head | |
case middle | |
case tail | |
} |
import Foundation | |
// See also: https://qiita.com/pab_tech/items/1c0bdbc8a61949891f1f | |
protocol Clock { | |
var now: Date { get } | |
} | |
struct SystemClock: Clock { | |
let now: Date = Date() |
import Foundation | |
typealias Parameters = [AnyHashable: Any] | |
protocol Converter { | |
func convert(_ input: Any) -> Any | |
} | |
struct BoolConverter: Converter { | |
func convert(_ input: Any) -> Any { |
/// See also | |
/// - http://www.ne.jp/asahi/hishidama/home/tech/scala/sample/using.html | |
/// - https://qiita.com/piyo7/items/c9be1f39bcfea43a778a | |
protocol Closer { | |
func close() | |
} | |
struct Loan { | |
@discardableResult |