Skip to content

Instantly share code, notes, and snippets.

@yamoridon
yamoridon / lint.sh
Last active February 20, 2021 10:06
#!/usr/bin/env bash -eu
CLANG_TIDY=/usr/local/opt/llvm/bin/clang-tidy
CLANG_TIDY_OPTIONS='-checks=cppcoreguidelines-*,modernize-*,clang-analyzer-*,portability-*,readability-*'
if [ $# != 1 ]; then
echo "Usage: lint <Xcode project file>"
echo "Dependencies: clang-tidy, jq, xcpretty"
exit 1
fi
@yamoridon
yamoridon / DataTaskPublisher.swift
Created June 10, 2019 15:16
DataTaskPublisherを作ってみた
import Foundation
import Combine
struct DataTaskSubscription: Subscription {
let task: URLSessionTask
let combineIdentifier: CombineIdentifier
func request(_ demand: Subscribers.Demand) {
}