Skip to content

Instantly share code, notes, and snippets.

Avatar
🍣
is my favorite sushi

Kenji Wada CH3COOH

🍣
is my favorite sushi
View GitHub Profile
@CH3COOH
CH3COOH / gist:8e71bd7c4eb8fea4de3cc2b606ca5148
Created Nov 13, 2020
Carthage経由での FirebaseAdMobBinary の v7.1.0 のインストールに失敗する
View gist:8e71bd7c4eb8fea4de3cc2b606ca5148
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 Mar 26, 2020
作業用リポジトリのmasterにpushするたびに、 GitHub Actionで 静的ファイルを生成して、 公開用リポジトリのmasterブランチへデプロイする
View gh-pages.yml
name: github pages
on:
push:
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-18.04
@CH3COOH
CH3COOH / README.md
Last active Oct 30, 2019 — forked from shunirr/README.md
Jenkins をOS X のログインユーザー権限のデーモンで自動起動しておく設定
View README.md

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

必要なもの

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

@CH3COOH
CH3COOH / LicensePlistHolder.swift
Last active Sep 30, 2019
LicensePlist がiOS 13.1.1でクラッシュする問題
View LicensePlistHolder.swift
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 Oct 6, 2018
ライチュウGX (Pokémon TCG APIフォーマット適用時)
View raichu.json
[
{
"name": "ライチュウGX",
"id": "smh-33",
"nationalPokedexNumber": 26,
"hp": "210",
"imageUrl": "",
"imageUrlHiRes": "",
"types": [
"Lightning"
View gist:17d023501878251ddbaf0a2cc8eb03fd
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
@CH3COOH
CH3COOH / gist:24c534940df43fb5cf0cf011d7da9e9f
Created Dec 5, 2017
ポケモンの性格の列挙型
View gist:24c534940df43fb5cf0cf011d7da9e9f
class Stat {
let attack補正: Float
let deffence補正: Float
init(attack: Float, deffence: Float) {
self.attack補正 = attack
self.deffence補正 = deffence
}
}
enum 性格 {
@CH3COOH
CH3COOH / gist:19bc9e8f9f1ee5becf2537e45df77dc6
Last active Nov 25, 2017
ポケモンダメ計 2017/11/25
View gist:19bc9e8f9f1ee5becf2537e45df77dc6
func testExample() {
//攻撃者: ガブリアス
//実数値: A 182
let 攻撃者レベル: Double = 50.0
let 攻撃者の攻撃力: Double = 182
//技: じしん(物理 威力100)
let 技の威力: Double = 100
let タイプ一致: Double = 1.5
View mb.markdown
Anker PowerCore 10000 Anker PowerCore 13000 Anker PowerCore+ 10050 QC3.0 Anker PowerCore+ 13400 QC3.0 Anker PowerCore Speed 10000 QC Poweradd Pilot X7 Kinps モバイルバッテリー 10000mAh TSUNEO 10000mAh
重さ 180g 259g 236g 308g 204g 440g 213g 177g
定格入力 5V, 2.4A 5V, 2.0A 5V, 2.0A 5V, 2.0A 5V, 2.0A 5V, 2.0A 5V, 2.0A 5V, 1.5A
定格出力 5V, 2.4A 5V, 3.0A 5-6V, 3A 5-6V, 3A 5-8V, 3A 5V, 3.4A*2 5V, 3.5A 5V, 2.1A/1,0A
容量 10000mAh 13000mAh 10050mAh 13000mAh 10000mAh 20000mAh 10000mAh 10000mAh
重量比 55 50 42 42 49 45 47 56.49
View gist:bbfdc81f0f6718bb067b3ba919f3618f
func upload(user: User?, asset: PHAsset?) -> Future<Attachment, TendonError> {
let promise = Promise<Attachment, TendonError>()
guard let user = user else {
promise.failure(TendonError.invalidUser)
return promise.future
}
guard let asset = asset else {
promise.failure(TendonError.argument)
return promise.future
}
You can’t perform that action at this time.