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
#!/bin/bash | |
ORANGE='\033[0;33m' | |
NC='\033[0m' | |
USER_SCORE=0 | |
COMPUTER_SCORE=0 | |
# PRINT SELECTION LIST | |
function print_selection() { | |
printf "\n1 Welcome to ROCK - PAPER - SCISSOR \n\n" |
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
// HANDLE THE EVENT HANDLER FUNCTION | |
const handleProductsTotalPriceUpdate = () => { | |
const getProductsTotal = () => { | |
const products = document.getElementsByClassName( | |
"woocommerce-grouped-product-list-item" | |
); | |
const totals = Object.values(products) | |
.map((p) => { | |
// GET QUANTITIES |
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
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: cluster-admin | |
rules: | |
- apiGroups: [""] | |
resources: ["pods", "pods/log"] | |
verbs: ["get", "list"] | |
- apiGroups: [""] | |
resources: ["pods/exec", "pods/cp"] |
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
const handlePricePourcentage = () => { | |
const isEmpty = value => | |
value === undefined || | |
value === null || | |
(typeof value === "object" && Object.keys(value).length === 0) || | |
(typeof value === "string" && value.trim().length === 0) | |
// GET REAL PRICE | |
const getRealPrice = () => { | |
const parent = document.getElementsByTagName("del") |
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 axios from "axios" | |
import { | |
GET_ERRORS, | |
ARTICLE_RESET_STATE, | |
ARTICLE_FETCH, | |
ARTICLES_FETCH, | |
ARTICLES_LIKE, | |
ARTICLE_LIKE | |
} from "../types" |
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
const { | |
rewireWorkboxInject, | |
defaultInjectConfig | |
} = require("react-app-rewire-workbox") | |
const path = require("path") | |
const webpack = require("webpack") | |
module.exports = function override(config, env) { | |
// IMPORTANT: CONFIG RELATIVE TO WEBPACK ONLY HTTP2 | |
config.optimization = { |
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 { connect } from "react-redux" | |
import { getTranslate } from "react-localize-redux" | |
import { Helmet } from "react-helmet-async" | |
const Head = ({ translate, component }) => { | |
return ( | |
<Helmet> | |
<title>{translate(`meta.${component}.title`)}</title> | |
<meta |