Skip to content

Instantly share code, notes, and snippets.


Win Lwin Oo winhc

View GitHub Profile
winhc / main.dart
Created December 17, 2022 06:23
View main.dart
import 'package:flutter/material.dart';
const List<String> firstList = <String>["a", "b"];
const Map<String,List<String>> secondDataMap =
"a": ["1", "2", "3"],"b": ["4", "5", "6"]
void main() => runApp(const DropdownButtonApp());
winhc /
Created July 24, 2022 02:37 — forked from jevakallio/
React Native For Beginners


React Native makes it possible to make native iOS and Android mobile apps without needing to know any iOS or Android programming - just JavaScript!

In this course, we'll write a simple mobile app that you can run on your own phone and share with your friends!


In order to take advantage this course, you should have the following experience.

winhc / main.dart
Created March 3, 2022 15:06
Split data form String and turn to Map
View main.dart
void main() {
String url =
int urlIndex = url.indexOf('?');
print('? index => $urlIndex');
String newUrl = url.substring(urlIndex + 1, url.length);
print('newUrl => $newUrl');
winhc /
Created January 18, 2022 04:06 — forked from Jonalogy/
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

View Reset MySQL Root Password in Mac

Reset mysql root password in Mac OS:

First Stop MySQL:

  1. Go to: 'System Preferences' >> 'MySQL' and stop MySQL


  1. sudo /usr/local/mysql/support-files/mysql.server start
  2. sudo /usr/local/mysql/support-files/mysql.server stop
winhc / gist:02878abba9e2ae6b0f99880106cd1112
Created July 16, 2021 10:58 — forked from kapkaev/gist:4619127
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. Resque
View gist:02878abba9e2ae6b0f99880106cd1112
$ redis-cli
> config set stop-writes-on-bgsave-error no
View app-without-setup.vue
<!-- template code -->
export default {
name: "App",
props: {
components: {
winhc / Activate Office 2019 for macOS
Created June 11, 2020 03:35 — forked from zthxxx/Activate Office 2019 for macOS
crack activate office on mac with license file
View Activate Office 2019 for macOS

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above


Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.