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
| const someObject = { | |
| title: null, | |
| subTitle: "Subtitle", | |
| buttonColor: null, | |
| disabled: true | |
| }; | |
| function creteOption(someObject) { | |
| const newObject = Object.assign({ | |
| title: "Default Title", | |
| subTitle: "Default Subtitle", |
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
| const someObject = { | |
| title: null, | |
| subTitle: "Subtitle", | |
| buttonColor: null, | |
| disabled: true | |
| }; | |
| function createOption(someObject) { | |
| someObject.title = someObject.title || "Default Title"; | |
| someObject.subTitle = someObject.subTitle || "Default Subtitle"; | |
| someObject.buttonColor = someObject.buttonColor || "blue"; |
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
| const UserRole = { | |
| ADMIN: "Admin", | |
| GENERAL_USER: "GeneralUser", | |
| SUPER_ADMIN: "SuperAdmin", | |
| }; | |
| function getRoute(userRole = "default role"){ | |
| switch(userRole){ | |
| case UserRole.ADMIN: |
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
| someFunction(str){ | |
| const conditions = ["someValue1","someValue2"]; | |
| return conditions.some(condition=>str.includes(condition)); | |
| } |
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 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| void main() { | |
| runApp(MaterialApp( | |
| home: Home(), | |
| )); | |
| } |
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
| REACT_APP_STAGE = Test |
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
| REACT_APP_STAGE = Production |
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
| REACT_APP_STAGE = development |
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
| "scripts": { | |
| .... | |
| "start:stage:dev": "env-cmd -f .env.development react-scripts start", | |
| "start:stage:prod": "env-cmd -f .env.production react-scripts start", | |
| "start:stage:test": "env-cmd -f .env.test react-scripts start", | |
| "build:stage:dev": "env-cmd -f .env.development react-scripts build", | |
| "build:stage:prod": "env-cmd -f .env.production react-scripts build", | |
| "build:stage:test": "env-cmd -f .env.test react-scripts build", | |
| .... | |
| }, |
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
| /*** | |
| * .::::. | |
| * .::::::::. | |
| * ::::::::::: FUCK YOU | |
| * ..:::::::::::' | |
| * '::::::::::::' | |
| * .:::::::::: | |
| * '::::::::::::::.. | |
| * ..::::::::::::. | |
| * ``:::::::::::::::: |
NewerOlder