Skip to content

Instantly share code, notes, and snippets.

View JAICHANGPARK's full-sized avatar
Coffee Lover

Dreamwalker JAICHANGPARK

Coffee Lover
View GitHub Profile
@JAICHANGPARK
JAICHANGPARK / main.dart
Last active March 31, 2024 00:50
simple stream gemini
import 'package:flutter/material.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
@JAICHANGPARK
JAICHANGPARK / main.dart
Created March 30, 2024 13:59
build-with-ai-seoul-2024
// Copyright 2024 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
import 'package:url_launcher/link.dart';
void main() {
@JAICHANGPARK
JAICHANGPARK / esp32_gpio.ino
Created December 9, 2021 04:01
esp32_pro_serial.ino
void setup() {
// put your setup code here, to run once:
pinMode(14, INPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(14)) {
@JAICHANGPARK
JAICHANGPARK / main.dart
Created May 31, 2020 23:43
flutter device size
import 'package:flutter/material.dart';
import 'dart:ui';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
//Gridview
return Container(
child: Column(
children: <Widget>[
Expanded(
flex: 8,
child:
InkWell(
onTap(){
@JAICHANGPARK
JAICHANGPARK / main.dart
Created January 6, 2020 04:23
flutter create pdf
import 'package:flutter/material.dart';
import 'package:flutter_full_pdf_viewer/flutter_full_pdf_viewer.dart';
import 'package:flutter_pdf_report/report.dart';
import 'package:pdf/pdf.dart';
import 'package:pdf/widgets.dart' as p;
void main() => runApp(MyApp());
class PdfViewerPage extends StatelessWidget {
@JAICHANGPARK
JAICHANGPARK / main.dart
Created May 28, 2019 13:45
20190528 flutter livecoding
import 'package:flutter/material.dart';
class ImageShareCommunity extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: MainPage(),
);
}
@JAICHANGPARK
JAICHANGPARK / main.dart
Created March 26, 2019 04:00
kenburnsview
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: KenBurns(),
@JAICHANGPARK
JAICHANGPARK / main.dart
Created December 21, 2018 15:44
[Flutter] 飛行機検索アプリ、その1 ref: https://qiita.com/Dreamwalker/items/3af2b70c0acfcee2e8f8
import 'package:flutter/material.dart';
import 'package:flutter_flight/CustomShapeClipper.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
/**
* Definition for singly-linked list.
* class ListNode(var `val`: Int = 0) {
* var next: ListNode? = null
* }
*/
class Solution {
fun addTwoNumbers(l1: ListNode?, l2: ListNode?): ListNode? {
var p1 = l1
var p2 = l2