Skip to content

Instantly share code, notes, and snippets.

View CH3COOH's full-sized avatar
🍣
is my favorite sushi

Kenji Wada CH3COOH

🍣
is my favorite sushi
View GitHub Profile
import SafariServices
import SwiftUI
struct SafariView: UIViewControllerRepresentable {
let url: URL
func makeUIViewController(context: Context) -> SFSafariViewController {
return SFSafariViewController(url: url)
}
@CH3COOH
CH3COOH / class_labels.txt
Created April 5, 2023 00:59
760_class_labels.txt
golf
round of golf
insect
fish
abaya
abrader
abrading stone
acrylic
adhesive bandage
after-shave
@CH3COOH
CH3COOH / 1003_class_labels.txt
Last active March 27, 2023 23:19
CustomMobileNetV2_class_labels.txt
tench, Tinca tinca
goldfish, Carassius auratus
great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias
tiger shark, Galeocerdo cuvieri
hammerhead, hammerhead shark
electric ray, crampfish, numbfish, torpedo
stingray
cock
hen
ostrich, Struthio camelus
@CH3COOH
CH3COOH / MobileNetV2_class_labels.txt
Created March 23, 2023 04:37
MobileNetV2 Class Labels
background
tench, Tinca tinca
goldfish, Carassius auratus
great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias
tiger shark, Galeocerdo cuvieri
hammerhead, hammerhead shark
electric ray, crampfish, numbfish, torpedo
stingray
cock
hen
@CH3COOH
CH3COOH / gist:8e71bd7c4eb8fea4de3cc2b606ca5148
Created November 13, 2020 12:55
Carthage経由での FirebaseAdMobBinary の v7.1.0 のインストールに失敗する
Invalid archive - Found multiple frameworks with the same unarchiving destination:
* file:///var/folders/_2/9d5qvdq90tx6x15mpsw0bxmr0000gn/T/TemporaryItems/(A%20Document%20Being%20Saved%20By%20carthage%204)/carthage-archive.vDHqmx/Google-Mobile-Ads-SDK/GoogleMobileAds.xcframework/ios-i386_x86_64-simulator/GoogleMobileAds.framework/
file:///var/folders/_2/9d5qvdq90tx6x15mpsw0bxmr0000gn/T/TemporaryItems/(A%20Document%20Being%20Saved%20By%20carthage%204)/carthage-archive.vDHqmx/Google-Mobile-Ads-SDK/GoogleMobileAds.xcframework/ios-armv7_arm64/GoogleMobileAds.framework/
to:
file:///Users/ch3cooh/Documents/works/ptcgnote_app/ptcgnote/Carthage/Build/iOS/GoogleMobileAds.framework/
* file:///var/folders/_2/9d5qvdq90tx6x15mpsw0bxmr0000gn/T/TemporaryItems/(A%20Document%20Being%20Saved%20By%20carthage%204)/carthage-archive.vDHqmx/Google-Mobile-Ads-SDK/UserMessagingPlatform.xcframework/ios-i386_x86_64-simulator/UserMessagingPlatform.framework/
file:///var/folders/_2/9d5qvdq90tx6x15mpsw0bxmr0000gn
@CH3COOH
CH3COOH / gh-pages.yml
Created March 26, 2020 13:44
作業用リポジトリのmasterにpushするたびに、 GitHub Actionで 静的ファイルを生成して、 公開用リポジトリのmasterブランチへデプロイする
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-18.04
@CH3COOH
CH3COOH / README.md
Last active October 30, 2019 08:18 — forked from shunirr/README.md
Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定

必要なもの

うっかり jenkins.pkg を入れてしまった人はアンインストールする

@CH3COOH
CH3COOH / LicensePlistHolder.swift
Last active September 30, 2019 16:10
LicensePlist がiOS 13.1.1でクラッシュする問題
import Foundation
import LoggerAPI
struct LicensePlistHolder {
let root: Data
let items: [(LicenseInfo, Data)]
static func load(licenses: [LicenseInfo], options: Options) -> LicensePlistHolder {
var rootItems: [[String: String]] = licenses.map { license in
return ["Type": "PSChildPaneSpecifier",
"Title": license.name(withVersion: options.config.addVersionNumbers),
@CH3COOH
CH3COOH / raichu.json
Created October 6, 2018 08:22
ライチュウGX (Pokémon TCG APIフォーマット適用時)
[
{
"name": "ライチュウGX",
"id": "smh-33",
"nationalPokedexNumber": 26,
"hp": "210",
"imageUrl": "",
"imageUrlHiRes": "",
"types": [
"Lightning"
fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 883." UserInfo={NSDebugDescription=Invalid value around character 883.}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-802.0.48/src/swift/stdlib/public/core/ErrorType.swift, line 182
Current stack trace:
0 clg 0x0000000102a001a1 <unavailable> + 3355041
1 clg 0x0000000102a1ca94 <unavailable> + 3472020
2 clg 0x000000010277badc <unavailable> + 715484
3 clg 0x00000001029c199d <unavailable> + 3099037
4 clg 0x000000010277a926 <unavailable> + 710950
5 clg 0x00000001029c3ef0 <unavailable> + 3108592
6 clg 0x000000010277b24f <unavailable> + 713295
7 clg 0x00000001029856a9 <unavailable> + 2852521