Skip to content

Instantly share code, notes, and snippets.

@takkumattsu
takkumattsu / CustomCombinedChartRenderer.swift
Created May 25, 2022 03:53
CombinedChartRendererが公開しているsubRenderersだとdataを設定した際に初期化されてしまうので_renderersを利用しているところを外から設定できるようにした
/// CombinedChartRendererが公開しているsubRenderersだとdataを設定した際に初期化されてしまうので_renderersを利用しているところを外から設定できるようにした
final class CustomCombinedChartRenderer: CombinedChartRenderer {
var customRenderers: [DataRenderer] = []
override func initBuffers() {
customRenderers.forEach { $0.initBuffers() }
}
override func drawData(context: CGContext) {
// If we redraw the data, remove and repopulate accessible elements to update label values and frames
accessibleChartElements.removeAll()
@takkumattsu
takkumattsu / BarChartRenderer.swift
Last active May 23, 2022 03:43
https://gist.github.com/ShadeApps/9285904fc716dbe6c13c6fbff23ab27e を iOSでカスタムクラスとして使えるように修正
import Charts
import CoreGraphics
import Foundation
import UIKit
/// 棒グラフで角丸を再現するために https://gist.github.com/ShadeApps/9285904fc716dbe6c13c6fbff23ab27e を参考に作成
class BarChartRenderer: BarLineScatterCandleBubbleRenderer {
/// A nested array of elements ordered logically (i.e not in visual/drawing order) for use with VoiceOver
///
/// Its use is apparent when there are multiple data sets, since we want to read bars in left to right order,

誕生日プレゼンに友達からカレーをいっぱいもらったので感想を書いていく

牛長秘伝 和牛入れすぎカレー 230g

  • 辛さ: ★★★
    • 結構辛い、自分は飲み物なしじゃ食べれない

ホロホロに煮込んだ牛肉が入ってた、めちゃくちゃ大量って感じじゃないけど一般的な角煮カレーとかよりはかなり多い

@takkumattsu
takkumattsu / extensions.json
Created September 26, 2020 08:35
flutter用のvscodeのExtension
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dart-code.flutter"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
@takkumattsu
takkumattsu / gist:aaaf8ce68c7b93766b9c819df89d0f63
Last active January 4, 2020 07:23
ばんえい競馬予想テンプレート
通算成績
https://docs.google.com/spreadsheets/d/1RUydjqQX7r_mnuPpN9nlLA9q7nq4dOwYNXs4BHQbzg0/edit?usp=sharing
🎯:的中
😭:はずれ
👀:観戦のみ
先行:<span style="font-weight : bold">そのレースで</span>前半前に行けそうな馬
終い:<span style="font-weight : bold">そのレースで</span>早い上がり脚をもっている馬

アプリエンジニアはどのように事業に貢献すべきか

https://iosdc.jp/2017/node/1483

アプリエンジニアとしての悩み

  • どうすればユーザが喜んでくれるか?
  • どうすればビジネスをうまくまわすか?

→この両立の話。

@takkumattsu
takkumattsu / androidCap.sh
Created March 7, 2017 08:12
Andrid端末のスクリーンキャプチャスクリプト
#!/bin/bash
ADB=/c/Users/YourName/AppData/Local/Android/sdk/platform-tools/adb.exe
FILENAME=$(date +'%Y%m%d_%I%M%S').png
CAP_FILE=mnt/sdcard/$FILENAME
# キャプチャ
${ADB} shell screencap -p $CAP_FILE
cd ~/Desktop
# 取得