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
//WebPack File | |
const HtmlWebPackPlugin = require('html-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); | |
const webpack = require('webpack'); | |
// const outputPath = path.join(__dirname, "dist"); | |
const extractSass = new ExtractTextPlugin({ | |
filename: '[name].[hash].css', | |
disable: process.env.NODE_ENV === '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
from appium import webdriver | |
from self import self | |
app = r"C:\Users\13054\Downloads\New folder\\Shopper4.181.2-p_418102.apk" | |
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 Button from '@material-ui/core/Button'; | |
import TextField from '@material-ui/core/TextField'; | |
import React, { useContext, useEffect, useState } from 'react'; | |
import { withRouter } from 'react-router-dom'; | |
import styled from 'styled-components'; | |
import { ProductContext } from '../context'; | |
const LoginModal = props => { | |
const [transactionID, settransactionID] = useState(1); | |
const [orderNum, setorderNum] = useState(1); |
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 Button from '@material-ui/core/Button'; | |
import Checkbox from '@material-ui/core/Checkbox'; | |
import ExpansionPanel from '@material-ui/core/ExpansionPanel'; | |
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails'; | |
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary'; | |
import Paper from '@material-ui/core/Paper'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import Table from '@material-ui/core/Table'; | |
import TableBody from '@material-ui/core/TableBody'; | |
import TableCell from '@material-ui/core/TableCell'; |
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 {productionEnv} from './context' | |
console.log(productionEnv) | |
const production = true; | |
test('Production Test', () => { | |
expect(production).toBeTruthy(); | |
}); |
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
function sortAndCount( n, arr ) { | |
let sorted = arr.sort( (a,b) => a - b); | |
let pairs = 0; | |
for (let i = 0; i < n -1 ; i++) { | |
if ( sorted[i] === sorted[i + 1]) { | |
pairs++; | |
i += 1; | |
} | |
} |
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
// console.log( | |
// tempProducts.sort((a, b) => parseFloat(a.price) - parseFloat(b.price)), | |
// 'Price Lowest to Highest' | |
// ); | |
// console.log( | |
// tempProducts.sort((a, b) => parseFloat(b.price) - parseFloat(a.price)), | |
// 'Price Highest to Lowest' |
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 setScrollDistance = product => { | |
const productRowLength = Math.ceil(product.length / 4); | |
switch (productRowLength) { | |
case 4: | |
if (counter === 0) { | |
setItems(productRowLength * 350 + mobile); | |
} else { | |
setItems(productRowLength * 530 + mobile); |
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 params = props.location.pathname.toLowerCase(); | |
if (params.includes('womens')) { | |
setNav('#ed0070c9'); | |
} else if (params.includes('mens')) { | |
setNav('#e12626c9'); | |
} else if (params.includes('device')) { | |
setNav('rgba(28, 228, 248, 0.79)'); | |
} else if (params.includes('pipe')) { | |
setNav('#c7d1d9b0'); | |
} else if (params.includes('smoke')) { |
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
if ( | |
typeof localStorage !== 'undefined' && | |
localStorage.getItem('FreeShippingSiteWide') === null | |
) { | |
// Your code here | |
this.notify(); | |
localStorage.setItem('FreeShippingSiteWide', true); | |
} |