- 9:00〜17:45で働きたい
- 夜や休日に働くのが苦手
- 緊急/重要なら夜や休日も働く
- 変に気を遣われるよりは声を掛けてほしい、無理なときは無理と言う
- リモートワークのときは仕事部屋で作業している
| import SwiftUI | |
| /// 上部と下部で背景色が異なるスクロールビュー | |
| /// | |
| /// - seeAlso: https://x.com/ynoseda/status/1737120393960558947 | |
| public struct DualBackgroundColorScrollView<Content: View>: View { | |
| private let topBackgroundColor: Color | |
| private let bottomBackgroundColor: Color | |
| private let content: () -> Content | |
| syntax enable | |
| filetype plugin indent on | |
| set rtp+=~/temp/gin.vim | |
| set rtp+=~/temp/denops.vim | |
| set rtp+=~/temp/lightline.vim | |
| let g:lightline = { | |
| \ 'active': { | |
| \ 'left': [ |
YYYY/MM/DD現在
| extension Optional { | |
| mutating func `let`(handler: (inout Wrapped) -> Void) { | |
| self = map { | |
| var wrapped = $0 | |
| handler(&wrapped) | |
| return wrapped | |
| } | |
| } | |
| } |
| // ref: https://developer.apple.com/documentation/foundation/nslinguistictagger | |
| // ref: https://developer.apple.com/documentation/foundation/nslinguistictagger/1410036-enumeratetags | |
| // ref: https://dev.classmethod.jp/articles/ios10-morphological-analysis-from-speechrecognizer/ | |
| import Foundation | |
| private func analyzeText(_ text: String, scheme: NSLinguisticTagScheme) { | |
| let tagger = NSLinguisticTagger(tagSchemes: NSLinguisticTagger.availableTagSchemes(forLanguage: "ja"), options: 0) | |
| tagger.string = text | |
| tagger.enumerateTags( |
iOSDC 2020のパンフレットに寄稿した「GitHub ActionsでiOSアプリをCIする個人的ベストプラクティス」の補足資料です。
| # デフォルト有効で無効にするルール | |
| disabled_rules: | |
| #- block_based_kvo | |
| #- class_delegate_protocol | |
| #- closing_brace | |
| #- closure_parameter_position | |
| #- colon | |
| #- comma | |
| #- compiler_protocol_init | |
| #- control_statement |
| package packagename | |
| class ExamLogic { | |
| fun scoreExam(point: Int): String = | |
| when (point) { | |
| in 0..29 -> "赤点です!" | |
| in 30..79 -> "まあまあです!" | |
| in 80..99 -> "やるじゃん!" | |
| 100 -> "天才です!" | |
| else -> "変な値を送るな!" |
| package packagename | |
| import org.junit.After | |
| import org.junit.Assert.assertEquals | |
| import org.junit.Before | |
| import org.junit.Test | |
| class ExamLogicTest { | |
| // region Stored Instance Properties |