Skip to content

Instantly share code, notes, and snippets.

View seunghwanly's full-sized avatar

Seunghwan Lee seunghwanly

View GitHub Profile
// Copyright 2019 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';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@seunghwanly
seunghwanly / app_versioning_test.bats
Created March 3, 2023 08:51
Use date based versioning with format of "yymmdd$tried", and restrict the build number in 8 characters
#!/usr/bin/env bats
date_based_version=$(date +%y%m%d)
# $args1 equals to LATEST_BUILD_NUMBER
# $args2 equals to DATE_BASED_BUILD_NUMBER
get_build_number() {
latest_build_number=$1
build_number_len="${#latest_build_number}"
if [[ $build_number_len -gt 8 ]]; then
@seunghwanly
seunghwanly / main.dart
Last active January 10, 2023 14:46
flying-flash-9887
import 'dart:math';
void main() {
/// init 1d array
List<int> dice1D = List.filled(6, 0);
/// set dice position
/// (0,0) [(0,1)] (0,2) (0,3)
/// [(1,0)] [(1,1)] [(1,2)] [(1,3)]
/// (2,0) [(2,1)] (2,2) (2,3)
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@seunghwanly
seunghwanly / binary_search_tree.dart
Created January 8, 2022 07:48
[Dart] Binary Search Tree Demo
class Node {
Node? leftChild;
Node? rightChild;
late int value;
Node(int data) {
value = data;
}
}
⭐ Total Stars: 8
➕ Total Commits: 2,763
🔀 Total PRs: 275
🚩 Total Issues: 9
📦 Contributed to: 14
Dart 37 mins █████████████▉░░░░░░░ 66.6%
Other 14 mins █████▏░░░░░░░░░░░░░░░ 25.0%
JSON 2 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.6%
YAML 2 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.8%