Skip to content

Instantly share code, notes, and snippets.

View hongsw's full-sized avatar
🕹️
Focusing

Seungwoo hong hongsw

🕹️
Focusing
View GitHub Profile
@hongsw
hongsw / history.korea.txt
Last active December 8, 2024 03:40
# 광해군일기[중초본]18권, 광해 1년 7월
# 광해군일기[중초본]18권, 광해 1년 7월
비변사가 진휼사를 차출하여 서로 지방의 한재책을 규획할 것을 아뢰다
이조가 대제학 유근의 차자에 대한 대신들의 의논을 아뢰다
사헌부가 역관 표헌 등을 파직시킬 것을 아뢰다
사간원이 문관·무관·음관을 물론하고 재능을 헤아려 수령을 임명할 것을 아뢰다
신흠·서성·강홍중 등에게 관직을 제수하다
박진원·유공량·경섬·이이첨 등에게 관직을 제수하다
영의정 이원익이 사직소를 올리다
사헌부가 연계하여 임춘발 등의 파직을 청하다
사헌부가 파직을 계청하다
@hongsw
hongsw / main.dart
Created November 13, 2024 03:49
추상화 클래스 예시 Recipe 클래스를 일반화하고, FreeRecipe와 PaidRecipe 클래스
class Recipe {
String title;
List<String> ingredients;
Recipe(this.title, this.ingredients);
// 공통으로 사용할 재료 목록 메서드
void getIngredientList() {
print("Ingredients for $title: ${ingredients.join(', ')}");
}
// 필수 Material Design 위젯을 포함하는 패키지 임포트
import 'package:flutter/material.dart';
// 앱의 시작점
void main() {
runApp(const MyApp());
}
/// 앱의 루트 위젯
/// MaterialApp을 반환하여 머티리얼 디자인 테마 적용
@hongsw
hongsw / main.dart
Created October 2, 2024 03:25
my_flutter1
import 'package:flutter/material.dart';
void main() async {
runApp(MaterialApp(
initialRoute: '/',
routes: {
// When navigating to the "/" route, build the FirstScreen widget.
'/': (context) => FirstScreen(),
// When navigating to the "/second" route, build the SecondScreen widget.
'/second': (context) => QuizPage(),
@hongsw
hongsw / main.dart
Last active September 25, 2024 02:41
Class를 활용한 도서관리 프로그램 (문제)
class Book {
String title;
String? author; // 저자 정보를 선택적으로 추가
Book(this.title, [this.author]);
@override
String toString() {
return '$title';
}
void main() {
String str1 = 'h1';
String str2 = 'h1';
print(str1);
}
void main() {
for (int i = 0; i < 10; i++) {
print('hello Hong ${i + 1}');
}
}
@hongsw
hongsw / main.dart
Created November 15, 2023 02:26
riverpod example counter with subpage
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'main.g.dart';
// A Counter example implemented with riverpod
void main() {
runApp(
@hongsw
hongsw / main.dart
Created November 15, 2023 02:25
riverpod example counter
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'main.g.dart';
// A Counter example implemented with riverpod
void main() {
runApp(