Skip to content

Instantly share code, notes, and snippets.

View leebera33's full-sized avatar
๐Ÿ˜ƒ

SeonghoLee leebera33

๐Ÿ˜ƒ
View GitHub Profile
@leebera33
leebera33 / virtual_memory_test.c
Last active May 12, 2023 00:40
๊ฐ€์ƒ ๋ฉ”๋ชจ๋ฆฌ ํ…Œ์ŠคํŠธ
#include <unistd.h>
#include <stdio.h>
#include <sys/wait.h>
int main()
{
int num = 10;
int *pn = &num;
pid_t pid;
@leebera33
leebera33 / main.dart
Created April 16, 2023 16:11
nomad_flutter_last
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:http/http.dart' as http;
import 'package:url_launcher/url_launcher.dart';
enum MovieList {
popular,
nowPlaying,
@leebera33
leebera33 / main.dart
Created April 13, 2023 17:56
nomad_flutter_day11
import 'package:flutter/material.dart';
import 'dart:async';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@leebera33
leebera33 / main.dart
Created April 11, 2023 17:58
nomad_flutter_day9
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@leebera33
leebera33 / expandTextField.dart
Last active January 30, 2023 18:17
Textfield ์œ„์ ฏ์˜ ๋†’์ด๊ฐ€ ๋‚จ์€ ๊ณต๊ฐ„ ๋ชจ๋‘ ์ฐจ์ง€ํ•˜๋„๋ก ์„ค์ •
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
@leebera33
leebera33 / rounded_border.dart
Created November 29, 2022 14:46
rounded border
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.all(8),
margin: const EdgeInsets.all(8),
decoration: BoxDecoration(
border: Border.all(color: Colors.black),
borderRadius: BorderRadius.circular(5),
),
child: SizedBox(
width: double.maxFinite,
@leebera33
leebera33 / main.dart
Created August 9, 2022 10:35
dart mixin test
void main() {
MixinTest tester = MixinTest();
tester.printNumInOne();
tester.num = 20;
tester.printNumInTwo();
}
class MixinTest with one, two {
void printNumInOne() {
@leebera33
leebera33 / error_test.dart
Created August 1, 2022 15:12
reproduce 'setState() or markNeedsBuild() called during build' error code
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@leebera33
leebera33 / google_map.dart
Created July 14, 2022 10:27
flutter ์™ธ๋ถ€ ์ง€๋„ ์•ฑ ์—ด๊ธฐ (iOS ํ…Œ์ŠคํŠธ X)
import 'dart:io';
import 'package:android_intent_plus/android_intent.dart';
import 'package:flutter/services.dart';
import 'package:url_launcher/url_launcher.dart';
Future<void> launchGoogleMap(double latitude, double longitude) async {
if (Platform.isAndroid){
try {
AndroidIntent intent = AndroidIntent(
action: 'action_view',
@leebera33
leebera33 / test.dart
Last active July 3, 2022 14:35
google map in ScrollView
class HomeState extends State<Home> {
final Completer<GoogleMapController> _controller = Completer();
GoogleMapController? _mapController;
void _onMapCreated(GoogleMapController controller) {
_controller.complete(controller);
_mapController = controller;
}
@override