Skip to content

Instantly share code, notes, and snippets.

Avatar

Win Lwin Oo winhc

View GitHub Profile
@winhc
winhc / main.dart
Created December 17, 2022 06:23
SampleDropdownButtonApp
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
winhc / COURSE.md
Created July 24, 2022 02:37 — forked from jevakallio/COURSE.md
React Native For Beginners
View COURSE.md

Introduction

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!

Prerequisites

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

@winhc
winhc / main.dart
Created March 3, 2022 15:06
Split data form String and turn to Map
View main.dart
void main() {
String url =
"https://www.rbdmyanmar.com/product/kiwi-colour-shine-protect-liquid/?attribute_pa_color=brown&attribute_pa_net-content=75ml&attribute_pa_pack-size=24-pcs";
int urlIndex = url.indexOf('?');
print('? index => $urlIndex');
String newUrl = url.substring(urlIndex + 1, url.length);
print('newUrl => $newUrl');
@winhc
winhc / handling_multiple_github_accounts.md
Created January 18, 2022 04:06 — forked from Jonalogy/handling_multiple_github_accounts.md
Handling Multiple Github Accounts on MacOS
View handling_multiple_github_accounts.md

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 OS.md

Reset mysql root password in Mac OS:

First Stop MySQL:

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

OR,

  1. sudo /usr/local/mysql/support-files/mysql.server start
  2. sudo /usr/local/mysql/support-files/mysql.server stop
@winhc
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>
<!-- template code -->
</template>
<script>
export default {
name: "App",
props: {
/*...*/
}
components: {
@winhc
winhc / Activate Office 2019 for macOS VoL.md
Created June 11, 2020 03:35 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file
View Activate Office 2019 for macOS VoL.md

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

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.

Ref