This file contains 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
echo "**************Setting the Setup for Tarun Nagpal***********" | |
echo " *** Setting Up Git **** " | |
git config --global user.name "tarun-nagpal" | |
git config --global user.password "11/mar/86" | |
echo " *** Reset Npm **** " | |
npm logout |
This file contains 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
before_deploy: "echo 'I am ready to deploy to S3 Bucket'" | |
deploy: | |
access_key_id: $access_key_id | |
bucket: build.realmelon.com | |
local_dir: out/build/source | |
provider: s3 | |
region: eu-central-1 | |
secret_access_key: $secret_access_key | |
skip_cleanup: true |
This file contains 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
git: | |
submodules: false |
This file contains 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
before_script: | |
- "echo 'Before Script - Started'" | |
- "echo -e \"machine github.com\\n login $CI_USER\\n password $CI_USER_PASSWORD\" > ~/.netrc" | |
- "sudo apt update" | |
- "sudo apt install npm" | |
- "sudo npm install --g lerna" | |
- "sudo npm install" | |
- "sudo ln -s /home/travis/.nvm/versions/node/v14.4.0/bin/node /usr/bin/node" | |
- "node --version" |
This file contains 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
language: node_js | |
node_js: | |
- 14.4.0 |
This file contains 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
before_install: | |
- "echo \"Set password from Env Variables\"" | |
- "echo -e \"machine github.com\\n login $CI_USER\\n password $CI_USER_PASSWORD\" > ~/.netrc" | |
- "git submodule update --init --recursive" | |
- "npm i -g lerna" | |
- "echo \"before install ended !!!!\"" |
This file contains 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 React from 'react'; | |
import './App.css'; | |
import { useSelector } from "react-redux"; | |
import { useDispatch } from "react-redux"; | |
function App() { | |
const globalState = useSelector(state => state); | |
const dispatch = useDispatch(); | |
const getUserData = () => { | |
// Get the Data for the User |
This file contains 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
{ | |
"code":"0", | |
"message":"Success", | |
"payload":{ | |
"itemDTOs":[ | |
{ | |
"id":1, | |
"price":600089, | |
"unitSize":"4", | |
"name":"MamyPoko X-tra Kering - NB-S 44 - Popok Perekat updated", |
This file contains 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
{ | |
"code":"0", | |
"message":"Success", | |
"payload":[ | |
{ | |
"id":1, | |
"price":600089, | |
"unitSize":"4", | |
"name":"MamyPoko X-tra Kering - NB-S 44 - Popok Perekat updated", | |
"sellerName":"Ibu and Bayi", |
This file contains 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
// What is the output and Why | |
const myData = [1,2,3,4]; | |
console.log(myData[4]); | |
// Answer - undefined | |
// What is the code below doing and how we can optimize it | |
const items = document.querySelctorAll('#container > div'); | |
items.forEach(el => { |
NewerOlder