This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from itertools import count | |
import anthropic | |
from tool_text_revert import ( | |
TOOL_TEXT_REVERT_NAME, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.viewModelScope | |
import com.google.firebase.auth.FirebaseAuth | |
import com.google.firebase.auth.FirebaseUser | |
import dagger.hilt.android.lifecycle.HiltViewModel | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.flow.MutableStateFlow | |
import kotlinx.coroutines.flow.asStateFlow | |
import kotlinx.coroutines.launch | |
import javax.inject.Inject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// implementation(libs.androidx.lifecycle.viewmodel.ktx) | |
// implementation(libs.androidx.lifecycle.runtime.compose.android) | |
// implementation(libs.androidx.lifecycle.viewmodel.compose) | |
private suspend fun someAsyncFunction(): String { | |
delay(3000L) | |
// return "Hello" | |
throw Exception("error") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app | |
plugins { | |
... | |
alias(libs.plugins.google.services) | |
alias(libs.plugins.ksp) | |
alias(libs.plugins.hilt.android) | |
alias(libs.plugins.serialization) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setUpAll(() => HttpOverrides.global = null); | |
test('http get', () async { | |
var url = Uri.https('official-joke-api.appspot.com', 'jokes/random'); | |
var response = await http.get(url); | |
expect(response.statusCode, 200); | |
debugPrint(response.body); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sentenceList = { | |
'Your code transforms ideas into reality.', | |
'Each bug you fix makes you a stronger developer.', | |
'Your dedication to learning is inspiring.', | |
'You turn complex problems into elegant solutions.', | |
'Your creativity in app design is remarkable.', | |
'Every line of code you write is a step towards mastery.', | |
'You have a unique talent for making the complex understandable.', | |
'Your commitment to quality is evident in your work.', | |
'You\'re not just coding; you\'re crafting future technologies.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SRC="../../src" | |
DEST="." | |
# 現在のディレクトリからシンボリックリンクを検索し、削除 | |
find . -type l -exec rm {} + | |
# 現在のディレクトリからディレクトリを検索し、削除 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
jenkins: | |
image: jenkins/jenkins:lts | |
container_name: jenkins | |
ports: | |
- "8080:8080" | |
- "50000:50000" | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.myapplication | |
import androidx.lifecycle.SavedStateHandle | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.viewModelScope | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.flow.MutableStateFlow | |
import kotlinx.coroutines.flow.asStateFlow | |
import kotlinx.coroutines.launch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.myapplication | |
import android.os.Bundle | |
import android.util.Log | |
import androidx.fragment.app.Fragment | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.Button | |
import android.widget.TextView |
NewerOlder