This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(new MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"name":"\u0627\u0644\u062c\u062f \u0627\u0644\u0623\u0648\u0644","user_id":"QF00001","father_id":"QF00001","father_name":"\u0627\u0644\u062c\u062f \u0627\u0644\u0623\u0648\u0644","alive":"0","sex":"1","generation_number":0},{"name":"\u0643\u0645\u064a \u062a\u062c\u0631\u0628\u0629","user_id":"QF01003","father_id":"QF00001","father_name":"\u0627\u0644\u062c\u062f \u0627\u0644\u0623\u0648\u0644","alive":"1","sex":"1","generation_number":1},{"name":"\u0632\u0647\u0631\u0629","user_id":"QF02004","father_id":"QF01003","father_name":"\u0643\u0645\u064a \u062a\u062c\u0631\u0628\u0629","alive":"1","sex":"2","generation_number":2},{"name":"\u0623\u062d\u0645\u062f \u0627\u0644\u0639\u0644\u064a","user_id":"QF02005","father_id":"QF01003","father_name":"\u0643\u0645\u064a \u062a\u062c\u0631\u0628\u0629","alive":"0","sex":"1","generation_number":2},{"name":"\u062d\u0645\u062f\u0627\u0646","user_id":"QF01006","father_id":"QF00001","father_name":"\u0627\u0644\u062c\u062f \u0627\u0644\u0623\u0648\u0644","alive":"0","sex" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FamilyMember { | |
String name; | |
String userId; | |
String fatherId; | |
String fatherName; | |
String alive; | |
String sex; | |
int generationNumber; | |
FamilyMember( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:logger/logger.dart'; | |
Logger getLogger(String className) { | |
return Logger(printer: SimpleLogPrinter(className)); | |
} | |
class SimpleLogPrinter extends LogPrinter { | |
final String className; | |
SimpleLogPrinter(this.className); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"packages": [ | |
{ | |
"weight": 6.45, | |
"height": 20.32, | |
"width": 20.32, | |
"length": 110.49, | |
"quantity": 1, | |
"type": 2 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RequestRateModel { | |
List<Packages> packages; | |
double weight; | |
Addresses addresses; | |
RequestRateModel({this.packages, this.weight, this.addresses}); | |
RequestRateModel.fromJson(Map<String, dynamic> json) { | |
if (json['packages'] != null) { | |
packages = new List<Packages>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/.local/share/fonts | |
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done | |
fc-cache -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Download the JDK | |
# wget https://download.oracle.com/otn/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u311-linux-x64.tar.gz | |
# wget https://download.oracle.com/otn/java/jdk/11.0.15.1+2/d76aabb62f1c47aa8588b9ae5a8a5b46/jdk-11.0.15.1_linux-x64_bin.tar.gz | |
Step 2: Extract JDK and mpve to Java's default location | |
sudo tar -xvzf jdk-8u311-linux-x64.tar.gz | |
sudo mkdir /usr/lib/jvm | |
sudo mv jdk-11.0.15.1/ /usr/lib/jvm/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tree --dirsfirst | |
// install tree commalndline tool on ubuntu by following options | |
// sudo snap install tree | |
// or --- sudo apt-get install tree | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the following lines to your $HOME/.bash_profile or $HOME/.bashrc config file: | |
export ANDROID_HOME=$HOME/Android/Sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |