Skip to content

Instantly share code, notes, and snippets.

View yamatatsu10969's full-sized avatar
:octocat:
Working at home

Yamamoto Tatsuya yamatatsu10969

:octocat:
Working at home
View GitHub Profile
targets:
$default:
builders:
# 他の指定は省略
source_gen|combining_builder:
options:
ignore_for_file:
- type=lint
- implicit_dynamic_parameter
- implicit_dynamic_type
@susatthi
susatthi / .commit_template
Last active May 12, 2022 23:20
コミットテンプレート
# ==================== Emojis & Prefix ====================
# ✨ feat: 新しい機能
# 🐛 fix: バグの修正
# 📚 docs: ドキュメントのみの変更
# 🖋 style: 空白、フォーマット、セミコロン追加など
# ♻️ refactor: 仕様に影響がないコード改善(リファクタ)
# 🐎 perf: パフォーマンス向上関連
# 🚨 test: テスト関連
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NavigationBar with nested Navigator destinations.
import 'package:flutter/material.dart';
class Destination {
const Destination(this.index, this.title, this.icon, this.color);
@mh-mobile
mh-mobile / discord-enter-modification.json
Last active December 8, 2023 11:48
DiscordのEnterキーの挙動変更(Karabiner-Elements)- Enterで改行 / Command + Enterで送信
{
"title": "Discord-Enter-Modification",
"rules": [
{
"description": "Discord-Enter-Modification",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "return_or_enter"
@kwaiks
kwaiks / dio_helper.dart
Created January 27, 2021 10:53
Flutter Dio Interceptor for refresh token
class DioHelper {
final Dio dio;
DioHelper({@required this.dio});
final CustomSharedPreferences _customSharedPreferences =
new CustomSharedPreferences();
static String _baseUrl = BASE_URL;
String token = "";
void initializeToken(String savedToken) {
@1amageek
1amageek / AppDelegate.swift
Created November 4, 2020 08:19
Adding Firebase to AppDelegate in SwiftUI
import SwiftUI
import Firebase
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
return true
}
}
@rrousselGit
rrousselGit / main.dart
Created July 2, 2020 04:26
reading a family without the key
final todosFamily = ProviderFamily<Todo, int>((ref, id) {
return Todo(
id: '$id',
description: 'Todo $id',
);
});
final currentTodo = Provider<Todo>((ref) => null);
class List extends StatelessWidget {
@flutter-clutter
flutter-clutter / overlay_with_hole.dart
Created June 27, 2020 12:08
Flutter overlay with a hole
import 'package:flutter/material.dart';
class OverlayWithHole extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Flutterclutter: Holes")),
body: _getExperimentOne()
);
}
mixin CancelableNotify on ChangeNotifier {
bool _mounted = true;
@override
void notifyListeners() {
if (_mounted) super.notifyListeners();
}
@override
void dispose() {
@mpppk
mpppk / clean_architecture.md
Last active April 30, 2024 14:19
クリーンアーキテクチャ完全に理解した

2020/5/31追記: 自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。

このドキュメントを完成させるために、今後以下のような更新を予定しています。

  • TODO部分を埋める
  • 書籍を基にした理論・原則パートと、実装例パートを分割
    • 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。

2021/1/22追記: