Snippets Collections
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
import pandas as pd
import time

web = 'https://twitter.com/'
path = r"C:\Drivers\chromedriver-win64\chromedriver.exe"
options = webdriver.ChromeOptions()
service = Service(executable_path=path)
options.add_experimental_option("detach", True)
options.add_argument('window-size=1920x1080')

driver = webdriver.Chrome(service=service, options=options)
driver.get(web)  # Open the webpage

# Wait for the login button to be clickable
login_button = WebDriverWait(driver, 10).until(
    EC.element_to_be_clickable((By.XPATH, '//a[contains(@href, "/login")]'))
)
login_button.click()
time.sleep(2)

# Wait for the username input field to be visible and then enter username
user_name = WebDriverWait(driver, 10).until(
    EC.visibility_of_element_located((By.XPATH, '//input[contains(@autocomplete, "username")]'))
)
user_name.send_keys("mnis00014@gmail.com")

# Wait for the next button to be clickable and then click
next_button = WebDriverWait(driver, 10).until(
    EC.element_to_be_clickable((By.XPATH, '//div[contains(@role, "button")]//span[text()="Next"]'))
)
next_button.click()

time.sleep(2)

# Wait for the password input field to be visible and then enter password
password = WebDriverWait(driver, 10).until(
    EC.visibility_of_element_located((By.XPATH, '//input[contains(@autocomplete, "current-password")]'))
)
password.send_keys("Tw@mnis@2024")

# Wait for the login button to be clickable and then click
login_button = WebDriverWait(driver, 10).until(
    EC.element_to_be_clickable((By.XPATH, '//div[contains(@role, "button")]//span[text()="Log in"]'))
)
login_button.click()

# closing driver
# driver.quit()
#include <stdio.h>

int main()
{
    int q[5], average, total;
    
    printf("Enter 5 quiz scores:");
    for (int i=0; i<=4; i++)
    {
      scanf("%d", &q[i]);  
      total= total+q[i];
    }
    
    
    
    average=total/5;
    
    
    printf("The average is %d", average);
    return 0;
}
from netCDF4 import Dataset
import netCDF4 as nc
import numpy as np
import xarray as xr
from wrf import getvar, vinterp, ALL_TIMES
import os
from datetime import datetime
import dask
from dask.distributed import Client

client = Client(n_workers=16)
@dask.delayed
def WriteSurfVariables(inputDir,outDir,file):
    inputnc=Dataset(inputDir+"/"+file)
    varlist=['slp','T2','td2','uvmet10','Q2','PSFC','RAINC','RAINNC','SWDOWN','GLW','HFX',
        'LH','OLR','SNOW','SST','QFX']
    for var in varlist:
        outvar=getvar(inputnc,var,timeidx=ALL_TIMES)
        del outvar.attrs['projection']
        outvar.to_netcdf(outDir+var+"_"+file) 
#n_worker=16
now = datetime.now() 
print(now) 
#results2d = []
results3d = []
inputDir="/blue/dhingmire/Prod_Outputs/ERA5/1981/d2"
outDir="/blue/dhingmire/Processed_data/ERA5/testDir/"
for file in os.listdir(inputDir):
    
    results3d.append(WriteSurfVariables(inputDir,outDir,file))
    #results3d.append(Write3DVariables(inputDir,outDir,file))

#dask.compute(results2d)
dask.compute(results3d)

    
now = datetime.now()
print("now =", now)
import xarray as xr
import numpy as np
from typing import *
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
#import proplot as pplt
import datetime as dt
import warnings
warnings.filterwarnings('ignore')
import os
import sys
import geocat.comp.interpolation
import dask


from dask.diagnostics import ProgressBar
from datetime import datetime

from dask.distributed import Client, LocalCluster
cluster = LocalCluster()
client = Client(cluster)

import warnings
warnings.filterwarnings("ignore")

client

def func(obj, ps,hyam,hybm,orog):
    p0Con=100000.0
    newLevs=np.array([100000., 97500., 95000., 92500., 90000., 87500., 85000., 82500., 80000.,
               77500., 75000., 70000., 65000., 60000., 55000., 50000., 45000., 40000.,
               35000., 30000., 25000., 22500., 20000., 17500., 15000., 12500., 10000.,
               7000., 5000., 3000., 2000., 1000., 700., 500., 300., 200., 100.], dtype=float)
    ta_new=geocat.comp.interpolation.interp_hybrid_to_pressure(obj[:,:,:,:], ps[:,:,:], hyam,
                    hybm, p0=p0Con, new_levels=newLevs,
                    lev_dim='lev', method='linear', extrapolate=True, variable='temperature',
                                                           t_bot=obj[:,0,:,:], phi_sfc=orog)
    return ta_new
OroDir='/blue/dhingmire/scripts/regridCMIP6ToERA5/vertical_interp/'
### constants
p0Con=100000.0
newLevs=np.array([100000., 97500., 95000., 92500., 90000., 87500., 85000., 82500., 80000.,
               77500., 75000., 70000., 65000., 60000., 55000., 50000., 45000., 40000.,
               35000., 30000., 25000., 22500., 20000., 17500., 15000., 12500., 10000.,
               7000., 5000., 3000., 2000., 1000., 700., 500., 300., 200., 100.], dtype=float)
#newLevs
inOroF=xr.open_dataset(OroDir+'orog_fx_CESM2_historical_r11i1p1f1_gn.nc')
orog=inOroF.orog*9.80616
#orog.plot()
InDir='/blue/dhingmire/CMIP6_WRFIn/CESM2/historical/ta/'
OutDir='/blue/dhingmire/CMIP6_WRFIn/CESM2/historical/remapped/ta/'

p0Con=100000.0
newLevs=np.array([100000., 97500., 95000., 92500., 90000., 87500., 85000., 82500., 80000.,
               77500., 75000., 70000., 65000., 60000., 55000., 50000., 45000., 40000.,
               35000., 30000., 25000., 22500., 20000., 17500., 15000., 12500., 10000.,
               7000., 5000., 3000., 2000., 1000., 700., 500., 300., 200., 100.], dtype=float)


outfiles=os.listdir(OutDir)
for file in os.listdir(InDir):
    print(file)

    inTemp=xr.open_dataset(InDir+file)

    ps=inTemp.ps
    hyam=inTemp.a
    hybm=inTemp.b
    ta=inTemp.ta

    ta_ref=geocat.comp.interpolation.interp_hybrid_to_pressure(ta[0,:,:,:], ps[0,:,:], hyam,
                    hybm, p0=p0Con, new_levels=newLevs,
                    lev_dim='lev', method='linear', extrapolate=True, variable='temperature',
                                                           t_bot=ta[0,0,:,:], phi_sfc=orog)
    chunk=10
    for t in np.unique(inTemp.time.dt.year.values):
        year=str(t)
        print(year)
        startDate=year+'-01-01'
        endDate=year+'-12-31'
        outF=OutDir+'ta_6hrPlev_'+year+'.nc'
        outFname='ta_6hrPlev_'+year+'.nc'
        
        if(not outFname in (outfiles)): 
        
            taIn=ta.sel(time=slice(startDate,endDate)).chunk({'lat': -1, 'lon': -1, 'time': chunk, 'lev':-1})
            psIn=ps.sel(time=slice(startDate,endDate)).chunk({'lat': -1, 'lon':-1, 'time': chunk})
            ta_Sample=ta_ref.expand_dims(dim={"time": ta.sel(time=slice(startDate,endDate)).time}).chunk({'lat': -1, 'lon': -1, 'time': chunk, 'plev':-1})


            mapped = taIn.map_blocks(func, args=[ psIn, hyam, hybm, orog],template=ta_Sample)
            ta_=mapped.persist()
            fb=ta_.chunk(time=100)
            fb.to_netcdf(outF)
            del(mapped)
            del(ta_)
            del(fb)
class TLoadComplete{
    constructor( callbackFunc, frequency ){
        this.callback = callbackFunc || (()=>{ console.log("completed")});
        this.frequency = frequency || 500;
    }
 
    start(){
        if (this.started) return;
        this.started = true;
        let me = this;
        this.images = [...document.images];
        this.interval = setInterval(()=>{
            let result = me.images.filter(el => !el.complete).length == 0 && document.fonts.ready;
            if (result) {
                me.callback();
                console.log("completed");
                me.stop();
            }
        }, me.frequency)
    }
 
    stop(){
        clearTimeout(this.interval);
        this.started = false;
    }
}
<link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link rel='preload' as='style' href='https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap'>
.et_header_style_left #et-top-navigation nav > ul > li > a,
.et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a {
 padding-bottom: 15px;
}
#top-menu li {
 padding-right: 5px;
}
#et-top-navigation {
 padding: 20px 0 !important;
}
#top-menu li a {
 background: #C1B2AB; /*** CHANGES THE BACKGROUND COLOR ***/
 padding: 15px 20px;
 border-radius: 3px;
}
#top-menu li a:hover,
#top-menu li li a:hover {
 color: #fff !important;
}
#top-menu li a:hover {
 background: #559CAD !important; /*** CHANGES THE BACKGROUND COLOR ON HOVER ***/
}
#top-menu li.current-menu-item > a {
 background: #edc77b; /*** CHANGES THE BACKGROUND COLOR OF THE CURRENT PAGE LINK ***/
}
#top-menu .menu-item-has-children > a:first-child:after {
 content: none;
}
#top-menu li > a:hover {
 box-shadow: 0 10px 0 0 #F15A29 !important; /*** COLOR AND THICKNESS OF THE LINE ON HOVER ***/
 padding-bottom: 34px;
 opacity: 1 !important;
}
#top-menu li li a {
 padding-bottom: 6px !important;
}
#top-menu li.current-menu-item > a,
.et-fixed-header #top-menu li.current-menu-item > a {
 border: 10px solid #F15A29; /*** COLOR AND THICKNESS OF THE BOX ***/
 padding: 10px;
 margin-bottom: -10px;
}
#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
 content: "";
 position: absolute;
 z-index: 2;
 left: 0;
 right: 0;
}
#top-menu li a:before {
 content: "";
 position: absolute;
 z-index: -2;
 left: 0;
 right: 100%;
 bottom: 50%;
 background: #15bf86; /*** COLOR OF THE LINE ***/
 height: 3px; /*** THICKNESS OF THE LINE ***/
 -webkit-transition-property: right;
 transition-property: right;
 -webkit-transition-duration: 0.3s;
 transition-duration: 0.3s;
 -webkit-transition-timing-function: ease-out;
 transition-timing-function: ease-out;
}
#top-menu li a:hover {
 opacity: 1 !important;
}
#top-menu li a:hover:before {
 right: 0;
}
#top-menu li li a:before {
 bottom: 10%;
}
/**
 * Allow SVG
 *
 * @param $mimes
 *
 * @return mixed
 */
if (!function_exists('pac_da_mime_types')):
    function pac_da_mime_types($mimes)
    {
        $mimes['svg'] = 'image/svg+xml';
        $mimes['svgz'] = 'image/svg+xml';

        return $mimes;
    }
endif;
/**
 * Fixes the issue in WordPress 4.7.1 being unable to correctly identify SVGs
 *
 * @param $data
 * @param $file
 * @param $filename
 * @param $mimes
 *
 * @return array|mixed|null
 */
if (!function_exists('pac_da_fix_mime_type_svg')):
    function pac_da_fix_mime_type_svg($data = null, $file = null, $filename = null, $mimes = null)
    {
        $ext = isset($data['ext']) ? $data['ext'] : '';
        if (strlen($ext) < 1) {
            $exploded = explode('.', $filename);
            $ext = strtolower(end($exploded));
        }
        if ('svg' === $ext) {
            $data['type'] = 'image/svg+xml';
            $data['ext'] = 'svg';
        } elseif ('svgz' === $ext) {
            $data['type'] = 'image/svg+xml';
            $data['ext'] = 'svgz';
        }

        return $data;
    }
endif;
/**
 * Allow SVG To Upload From Admin Side Only To Specific Roles
 *
 * @return void
 */
if (!function_exists('pac_da_allow_svg')):
    function pac_da_allow_svg()
    {
        if (current_user_can('administrator')) {
            add_filter('upload_mimes', 'pac_da_mime_types');
            add_filter('wp_check_filetype_and_ext', 'pac_da_fix_mime_type_svg', 75, 4);
        }
    }

    add_action('admin_init', 'pac_da_allow_svg');
endif;
$.ajax({
    url: 'ruta/al/controlador',
    method: 'GET',
    dataType: 'json',
    success: function(response) {
        // Manipula los datos recibidos en la respuesta
        for (var i = 0; i < response.length; i++) {
            var nombre = response[i].nombre;
            var apellido = response[i].apellido;
            var cedula = response[i].cedula;
            console.log(nombre + ' ' + apellido + ' - ' + cedula);
        }
    },
    error: function(xhr, status, error) {
        // Maneja los errores de la solicitud
        console.error(error);
    }
});
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType text/javascript "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/svg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/xhtml+xml "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 4 days"
</IfModule>
add_action( 'rest_api_init', 'custom_cart_endpoint' );
  
function custom_cart_endpoint() {

    register_rest_route(
        'wc-api/my-custom-cart/v1', 
        '/cart',
        [
            'methods' => 'GET',
            'callback' => 'get_cart_data',
        ]   
    );

}
  
function get_cart_data() {



}
/*style the back to top button on hover*/
body .et_pb_scroll_top:hover {
	background-color: rgb(224, 43, 32) !important;
	color: rgb(237, 240, 0) !important;
}
/*style and position the back to top button*/
body .et_pb_scroll_top {
	background-color: rgb(12, 113, 195) !important;
	color: rgb(237, 240, 0) !important;
	padding: 10px 20px 10px 10px !important;
	right: 20px !important;
	bottom: 125px !important;
	border-radius: 5px !important;
}
/*add text to the back to top button*/
body .et_pb_scroll_top:after {
	content: "Back To Top" !important;
	font-family: Open Sans, sans-serif !important;
	line-height: 30px !important;
	font-size: 22px !important;
	position: relative;
	top: -2px;
	margin-left: 10px !important;
}
/*replace the back to top button icon*/
body .et_pb_scroll_top:before {
	content: "\21" !important;
	color: red;
	position: relative;
	top: 3px;
}
react-native link @amplitude/react-native
/*make the parts of the blog post flexible*/

.et_pb_post {
	display: flex;
	flex-direction: column;
}


/*blog post featured image*/

.et_pb_post .et_pb_image_container, .et_pb_post .entry-featured-image-url {
	order: 2;
}


/*blog post title*/

.et_pb_post .entry-title {
	order: 1;
}


/*blog post meta*/

.et_pb_post .post-meta {
	order: 3;
}


/*blog post excerpt and button*/

.et_pb_post .post-content {
	order: 4;
}
import { identify, Identify } from '@amplitude/analytics-react-native';

const identifyObj = new Identify();

//Set user properties
identify0bj.set('age', 25);
identify0bj.set('gender', 'female')

// Add user properties
identifyObj.add('level', 1);
identifyObj.add('points', 100);

//Send user properties to Amplitude
identify(identifyObj);
import { track } from '@amplitude/analytics-react-native';

// Track a basic event
track('Button Clicked');

// Track events with optional properties
const eventProperties = {
  buttonColor: 'primary',
};
track('Button Clicked', eventProperties);
import { init } from '@amplitude/analytics-react-native';
init(API_KEY, 'user@amplitude.com', {
  disableCookies: true, // Disables the use of browser cookies
});
import { init } from '@amplitude/analytics-react-native';

init(API_KEY, 'user@amplitude.com');
import { init } from '@amplitude/analytics-react-native';

init(API_KEY);
expo install @amplitude/analytics-react-native
expo install @react-native-async-storage/async-storage
yarn add @amplitude/analytics-react-native
yarn add @react-native-async-storage/async-storage
npm install @react-native-async-storage/async-storage
npm install @amplitude/analytics-react-native
react-native link @amplitude/analytics-react-native
npx react-native init ProjectName
import connectDb from "@/middleware/mongoose";
import User from "@/models/User";
import bycrypt from 'bcryptjs'
import jwt from 'jsonwebtoken'

const handler = async (req, res) => {
    try {
        if (req.method == 'POST') {
            const {email, password} = req.body;

            let myUser = await User.findOne({email})

            if (myUser) {
                let passwordCompare = await bycrypt.compare(password, myUser.password)
                if (passwordCompare) {
                    let myToken = jwt.sign({name:myUser.name, email:myUser.email}, 'h1r2i3t4u5j6e7e7t8')
                    res.status(200).json({ success: true, msg: "success", myToken})
                } else {
                    res.status(404).json({ success: false, msg: "Invalid Credentials" })
                }
            } else {
                res.status(404).json({ success: false, msg: "Invalid Credentials" })
            }
        }
        else {
            res.status(400).json({ success: false, error: "Bad Request" })
        }
    } catch (error) {
        console.log('error')
        res.status(500).json({ success: false, error })
    }
};
export default connectDb(handler);
const waitLoad = ( statusFunc )=>{
    var imagesLoaded=false;
    var fontsLoaded=false;

    let interval = setInterval(()=>{
        fontsLoaded = fontsLoaded || document.fonts.ready;
        imagesLoaded = imagesLoaded || ([...document.images].filter(el => !el.complete).length == 0);
        statusFunc( fontsLoaded && imagesLoaded );
        if (fontsLoaded && imagesLoaded) clearInterval(interval);
    }, 500);
}

// use waitLoad( ( state ) => console.log(state) )
// disable rest api
add_filter( 'rest_authentication_errors', function( $result ) {
    if ( true === $result || is_wp_error( $result ) ) {
        return $result;
    }

    if ( ! is_user_logged_in() ) {
        return new WP_Error(
            'rest_not_logged_in',
            __( 'You are not currently logged in.' ),
            array( 'status' => 401 )
        );
    }

    return $result;
});

//admin page UI Change

function my_loginlogo() {
	echo '<style type="text/css">
	  h1 a {
		background-image: url(' . get_template_directory_uri() . '/assets/images/logo.svg) !important;
	  }
	</style>';
  }
  add_action('login_head', 'my_loginlogo');
  function the_dramatist_custom_login_css() {
    echo '<style type="text/css"> 
	.login h1 a{    background-size: contain;    width: 100%!important;height: 85px;}
	#login{border: 1px solid #000;padding: 30px;margin-top: 5%;border-radius: 10px;    background: #fff!important;}
	body.wp-core-ui{background: url(https://i.pinimg.com/originals/f6/4c/59/f64c59febd4dca0c078b8f7b3e0a4553.jpg);background-repeat: no-repeat;background-size: cover;background-position: center right;}
	.login form {border: 0px;padding: 2px;}
	.login #nav{padding-left: 0px;}
	.login #backtoblog{padding-left: 0px;}
	</style>';
}
add_action('login_head', 'the_dramatist_custom_login_css');
<div id='product-component-1707304907208'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'industrialelectricalwarehouse.myshopify.com',
      storefrontAccessToken: '4648324a14d13d808152b7baf9931c93',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('product', {
        id: '7209238331576',
        node: document.getElementById('product-component-1707304907208'),
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px"
        }
      },
      "title": {
        "font-family": "Droid Sans, sans-serif"
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "price": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "compareAt": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "unitPrice": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      }
    },
    "text": {
      "button": "Add to Toolbox"
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "title": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "bold",
        "font-size": "26px",
        "color": "#4c4c4c"
      },
      "price": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "18px",
        "color": "#4c4c4c"
      },
      "compareAt": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      },
      "unitPrice": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ],
    "text": {
      "button": "Add to cart"
    }
  },
  "option": {},
  "cart": {
    "styles": {
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "header": {
        "color": "#0f0f0f"
      },
      "lineItems": {
        "color": "#0f0f0f"
      },
      "subtotalText": {
        "color": "#0f0f0f"
      },
      "subtotal": {
        "color": "#0f0f0f"
      },
      "notice": {
        "color": "#0f0f0f"
      },
      "currency": {
        "color": "#0f0f0f"
      },
      "close": {
        "color": "#0f0f0f",
        ":hover": {
          "color": "#0f0f0f"
        }
      },
      "empty": {
        "color": "#0f0f0f"
      },
      "noteDescription": {
        "color": "#0f0f0f"
      },
      "discountText": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "discountAmount": {
        "color": "#0f0f0f"
      }
    },
    "text": {
      "total": "Subtotal",
      "button": "Checkout"
    },
    "contents": {
      "note": true
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "toggle": {
    "styles": {
      "toggle": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "background-color": "#ee6c4d",
        ":hover": {
          "background-color": "#d66145"
        },
        ":focus": {
          "background-color": "#d66145"
        }
      },
      "count": {
        "font-size": "16px"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "lineItem": {
    "styles": {
      "variantTitle": {
        "color": "#0f0f0f"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "price": {
        "color": "#0f0f0f"
      },
      "fullPrice": {
        "color": "#0f0f0f"
      },
      "discount": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "quantity": {
        "color": "#0f0f0f"
      },
      "quantityIncrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityDecrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityInput": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      }
    }
  }
},
      });
    });
  }
})();
/*]]>*/
</script>
<div id='product-component-1707304788633'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'industrialelectricalwarehouse.myshopify.com',
      storefrontAccessToken: '4648324a14d13d808152b7baf9931c93',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('product', {
        id: '8905729311033',
        node: document.getElementById('product-component-1707304788633'),
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px"
        }
      },
      "title": {
        "font-family": "Droid Sans, sans-serif"
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "price": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "compareAt": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "unitPrice": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      }
    },
    "text": {
      "button": "Add to Toolbox"
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "title": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "bold",
        "font-size": "26px",
        "color": "#4c4c4c"
      },
      "price": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "18px",
        "color": "#4c4c4c"
      },
      "compareAt": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      },
      "unitPrice": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ],
    "text": {
      "button": "Add to cart"
    }
  },
  "option": {},
  "cart": {
    "styles": {
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "header": {
        "color": "#0f0f0f"
      },
      "lineItems": {
        "color": "#0f0f0f"
      },
      "subtotalText": {
        "color": "#0f0f0f"
      },
      "subtotal": {
        "color": "#0f0f0f"
      },
      "notice": {
        "color": "#0f0f0f"
      },
      "currency": {
        "color": "#0f0f0f"
      },
      "close": {
        "color": "#0f0f0f",
        ":hover": {
          "color": "#0f0f0f"
        }
      },
      "empty": {
        "color": "#0f0f0f"
      },
      "noteDescription": {
        "color": "#0f0f0f"
      },
      "discountText": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "discountAmount": {
        "color": "#0f0f0f"
      }
    },
    "text": {
      "total": "Subtotal",
      "button": "Checkout"
    },
    "contents": {
      "note": true
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "toggle": {
    "styles": {
      "toggle": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "background-color": "#ee6c4d",
        ":hover": {
          "background-color": "#d66145"
        },
        ":focus": {
          "background-color": "#d66145"
        }
      },
      "count": {
        "font-size": "16px"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "lineItem": {
    "styles": {
      "variantTitle": {
        "color": "#0f0f0f"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "price": {
        "color": "#0f0f0f"
      },
      "fullPrice": {
        "color": "#0f0f0f"
      },
      "discount": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "quantity": {
        "color": "#0f0f0f"
      },
      "quantityIncrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityDecrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityInput": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      }
    }
  }
},
      });
    });
  }
})();
/*]]>*/
</script>
<div id='product-component-1707304724588'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'industrialelectricalwarehouse.myshopify.com',
      storefrontAccessToken: '4648324a14d13d808152b7baf9931c93',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('product', {
        id: '7209235873976',
        node: document.getElementById('product-component-1707304724588'),
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px"
        }
      },
      "title": {
        "font-family": "Droid Sans, sans-serif"
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "price": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "compareAt": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "unitPrice": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      }
    },
    "text": {
      "button": "Add to Toolbox"
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "title": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "bold",
        "font-size": "26px",
        "color": "#4c4c4c"
      },
      "price": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "18px",
        "color": "#4c4c4c"
      },
      "compareAt": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      },
      "unitPrice": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ],
    "text": {
      "button": "Add to cart"
    }
  },
  "option": {},
  "cart": {
    "styles": {
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "header": {
        "color": "#0f0f0f"
      },
      "lineItems": {
        "color": "#0f0f0f"
      },
      "subtotalText": {
        "color": "#0f0f0f"
      },
      "subtotal": {
        "color": "#0f0f0f"
      },
      "notice": {
        "color": "#0f0f0f"
      },
      "currency": {
        "color": "#0f0f0f"
      },
      "close": {
        "color": "#0f0f0f",
        ":hover": {
          "color": "#0f0f0f"
        }
      },
      "empty": {
        "color": "#0f0f0f"
      },
      "noteDescription": {
        "color": "#0f0f0f"
      },
      "discountText": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "discountAmount": {
        "color": "#0f0f0f"
      }
    },
    "text": {
      "total": "Subtotal",
      "button": "Checkout"
    },
    "contents": {
      "note": true
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "toggle": {
    "styles": {
      "toggle": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "background-color": "#ee6c4d",
        ":hover": {
          "background-color": "#d66145"
        },
        ":focus": {
          "background-color": "#d66145"
        }
      },
      "count": {
        "font-size": "16px"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "lineItem": {
    "styles": {
      "variantTitle": {
        "color": "#0f0f0f"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "price": {
        "color": "#0f0f0f"
      },
      "fullPrice": {
        "color": "#0f0f0f"
      },
      "discount": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "quantity": {
        "color": "#0f0f0f"
      },
      "quantityIncrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityDecrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityInput": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      }
    }
  }
},
      });
    });
  }
})();
/*]]>*/
</script>
<div id='product-component-1707303966728'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'industrialelectricalwarehouse.myshopify.com',
      storefrontAccessToken: '4648324a14d13d808152b7baf9931c93',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('product', {
        id: '7209235873976',
        node: document.getElementById('product-component-1707303966728'),
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px"
        }
      },
      "title": {
        "font-family": "Droid Sans, sans-serif"
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "price": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "compareAt": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "unitPrice": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      }
    },
    "text": {
      "button": "Add to Toolbox"
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "title": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "bold",
        "font-size": "26px",
        "color": "#4c4c4c"
      },
      "price": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "18px",
        "color": "#4c4c4c"
      },
      "compareAt": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      },
      "unitPrice": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ],
    "text": {
      "button": "Add to cart"
    }
  },
  "option": {},
  "cart": {
    "styles": {
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "header": {
        "color": "#0f0f0f"
      },
      "lineItems": {
        "color": "#0f0f0f"
      },
      "subtotalText": {
        "color": "#0f0f0f"
      },
      "subtotal": {
        "color": "#0f0f0f"
      },
      "notice": {
        "color": "#0f0f0f"
      },
      "currency": {
        "color": "#0f0f0f"
      },
      "close": {
        "color": "#0f0f0f",
        ":hover": {
          "color": "#0f0f0f"
        }
      },
      "empty": {
        "color": "#0f0f0f"
      },
      "noteDescription": {
        "color": "#0f0f0f"
      },
      "discountText": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "discountAmount": {
        "color": "#0f0f0f"
      }
    },
    "text": {
      "total": "Subtotal",
      "button": "Checkout"
    },
    "contents": {
      "note": true
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "toggle": {
    "styles": {
      "toggle": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "background-color": "#ee6c4d",
        ":hover": {
          "background-color": "#d66145"
        },
        ":focus": {
          "background-color": "#d66145"
        }
      },
      "count": {
        "font-size": "16px"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "lineItem": {
    "styles": {
      "variantTitle": {
        "color": "#0f0f0f"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "price": {
        "color": "#0f0f0f"
      },
      "fullPrice": {
        "color": "#0f0f0f"
      },
      "discount": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "quantity": {
        "color": "#0f0f0f"
      },
      "quantityIncrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityDecrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityInput": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      }
    }
  }
},
      });
    });
  }
})();
/*]]>*/
</script>
<div id='product-component-1707304052650'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
  var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  if (window.ShopifyBuy) {
    if (window.ShopifyBuy.UI) {
      ShopifyBuyInit();
    } else {
      loadScript();
    }
  } else {
    loadScript();
  }
  function loadScript() {
    var script = document.createElement('script');
    script.async = true;
    script.src = scriptURL;
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
    script.onload = ShopifyBuyInit;
  }
  function ShopifyBuyInit() {
    var client = ShopifyBuy.buildClient({
      domain: 'industrialelectricalwarehouse.myshopify.com',
      storefrontAccessToken: '4648324a14d13d808152b7baf9931c93',
    });
    ShopifyBuy.UI.onReady(client).then(function (ui) {
      ui.createComponent('product', {
        id: '8626275615033',
        node: document.getElementById('product-component-1707304052650'),
        moneyFormat: '%24%7B%7Bamount%7D%7D',
        options: {
  "product": {
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "calc(25% - 20px)",
          "margin-left": "20px",
          "margin-bottom": "50px"
        }
      },
      "title": {
        "font-family": "Droid Sans, sans-serif"
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "price": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "compareAt": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      },
      "unitPrice": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "color": "#ee6c4d"
      }
    },
    "text": {
      "button": "Add to Toolbox"
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "productSet": {
    "styles": {
      "products": {
        "@media (min-width: 601px)": {
          "margin-left": "-20px"
        }
      }
    }
  },
  "modalProduct": {
    "contents": {
      "img": false,
      "imgWithCarousel": true,
      "button": false,
      "buttonWithQuantity": true
    },
    "styles": {
      "product": {
        "@media (min-width: 601px)": {
          "max-width": "100%",
          "margin-left": "0px",
          "margin-bottom": "0px"
        }
      },
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px",
        "padding-left": "26px",
        "padding-right": "26px"
      },
      "quantityInput": {
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px"
      },
      "title": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "bold",
        "font-size": "26px",
        "color": "#4c4c4c"
      },
      "price": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "18px",
        "color": "#4c4c4c"
      },
      "compareAt": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      },
      "unitPrice": {
        "font-family": "Helvetica Neue, sans-serif",
        "font-weight": "normal",
        "font-size": "15.299999999999999px",
        "color": "#4c4c4c"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ],
    "text": {
      "button": "Add to cart"
    }
  },
  "option": {},
  "cart": {
    "styles": {
      "button": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "font-size": "16px",
        "padding-top": "16px",
        "padding-bottom": "16px",
        ":hover": {
          "background-color": "#d66145"
        },
        "background-color": "#ee6c4d",
        ":focus": {
          "background-color": "#d66145"
        },
        "border-radius": "0px"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "header": {
        "color": "#0f0f0f"
      },
      "lineItems": {
        "color": "#0f0f0f"
      },
      "subtotalText": {
        "color": "#0f0f0f"
      },
      "subtotal": {
        "color": "#0f0f0f"
      },
      "notice": {
        "color": "#0f0f0f"
      },
      "currency": {
        "color": "#0f0f0f"
      },
      "close": {
        "color": "#0f0f0f",
        ":hover": {
          "color": "#0f0f0f"
        }
      },
      "empty": {
        "color": "#0f0f0f"
      },
      "noteDescription": {
        "color": "#0f0f0f"
      },
      "discountText": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "discountAmount": {
        "color": "#0f0f0f"
      }
    },
    "text": {
      "total": "Subtotal",
      "button": "Checkout"
    },
    "contents": {
      "note": true
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "toggle": {
    "styles": {
      "toggle": {
        "font-family": "Droid Sans, sans-serif",
        "font-weight": "bold",
        "background-color": "#ee6c4d",
        ":hover": {
          "background-color": "#d66145"
        },
        ":focus": {
          "background-color": "#d66145"
        }
      },
      "count": {
        "font-size": "16px"
      }
    },
    "googleFonts": [
      "Droid Sans"
    ]
  },
  "lineItem": {
    "styles": {
      "variantTitle": {
        "color": "#0f0f0f"
      },
      "title": {
        "color": "#0f0f0f"
      },
      "price": {
        "color": "#0f0f0f"
      },
      "fullPrice": {
        "color": "#0f0f0f"
      },
      "discount": {
        "color": "#0f0f0f"
      },
      "discountIcon": {
        "fill": "#0f0f0f"
      },
      "quantity": {
        "color": "#0f0f0f"
      },
      "quantityIncrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityDecrement": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      },
      "quantityInput": {
        "color": "#0f0f0f",
        "border-color": "#0f0f0f"
      }
    }
  }
},
      });
    });
  }
})();
/*]]>*/
</script>
function exclude_pages_from_search($query) {

    if ( $query->is_main_query() && $query->is_search ) {

        // Define the page IDs to exclude

        $exclude_ids = array(214, 222, get_option('page_on_front'));

​
6
        // Set the 'post__not_in' parameter

        $query->set('post__not_in', $exclude_ids);

    }
9
}

​

add_action('pre_get_posts', 'exclude_pages_from_search');

​
function exclude_pages_from_search($query) {

    if ( $query->is_main_query() && $query->is_search ) {

        // Define the page IDs to exclude

        $exclude_ids = array(214, 222, get_option('page_on_front'));

​
6
        // Set the 'post__not_in' parameter

        $query->set('post__not_in', $exclude_ids);

    }
9
}

​

add_action('pre_get_posts', 'exclude_pages_from_search');

​
header{
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
}
nav li{
    margin: 0 20px;
}
nav a{
    text-decoration: none;
    color: #fff;
}
const chatInput = document.querySelector(".chat-input textarea");
const sendChatBtn = document.querySelector(".chat-input span");
const chatbox = document.querySelector(".chatbox");

let userMessage;
const API_KEY = "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";

let createChatLi = (message, className) => {
    // Create a chat <li> element with the passed message and className
    const chatLi = document.createElement("li");
    chatLi.classList.add("chat", className);
    let chatContent = className === "outgoing" ? `<p>${message}</p>` : ` <span class="material-symbols-outlined">
    smart_toy
  </span><p>${message}</p>`;
  chatLi.innerHTML = chatContent;
  return chatLi;
}
const generateResponse = (incomingChatLi) => {
    const API_URL = "https://api.openai.com/v1/chat/completions";
    const messageElement = incomingChatLi.querySelector("p");
    const requestOption = {
        method: "POST",
        headers: {
            "Content-Type" : "application/json",
            "Authorization": `Bearer ${API_KEY}`
        },
        body: JSON.stringify({
            model: "gpt-3.5-turbo",
            messages: [{role: "user", content: userMessage}]
        })
            
        
    }
    // Send POST request to API, get response
    fetch(API_URL, requestOption).then(res => res.json()).then(data => {
        messageElement.textContent = data.choices[0].message.content;
    }).catch((error) => {
        messageElement.textContent = "Oops! Something went horribly wrong. Please try again.";
    })
}

const handleChat = () => {
    userMessage = chatInput.value.trim();
    if(!userMessage) return;

    // Append the user's message to the chatbox
    chatbox.appendChild(createChatLi(userMessage, "outgoing"));

    setTimeout(() => {
        const incomingChatLi = createChatLi("...", "incoming")
        chatbox.appendChild(incomingChatLi);
        generateResponse(incomingChatLi);
    },600);

}
sendChatBtn.addEventListener("click", handleChat)
marker.genes = lapply( marker.genes, FUN = function(x) {x[x %in% geneNames]})
marker.genes.2 <- list(
  Gene1 = c(1, 2, 3),
  Gene2 = c(4, 5, 6, 7),
  Gene3 = c(8, 9, 10)
)

# Find the maximum length among all vectors
max_length <- max(sapply(marker.genes.2, length))

# Pad shorter vectors with NA to make them consistent
marker.genes.2 <- lapply(marker.genes.2, function(x) {
  if (length(x) < max_length) {
    c(x, rep(NA, max_length - length(x)))
  } else {
    x
  }
})

# Create a data frame from the corrected list
my_data_frame <- data.frame(marker.genes.2)

# Display the resulting data frame
print(my_data_frame)
gg_dot <- plot_grid(gg_dot_1, gg_dot_2, labels = LETTERS[1:2], ncol = 1 )
saveRDS(marker.genes.2, file = "Tabula_Lung_Total8.rds")
star

Thu Feb 08 2024 05:34:10 GMT+0000 (Coordinated Universal Time)

@mnis00014 #python #selenium #scraping

star

Thu Feb 08 2024 01:12:53 GMT+0000 (Coordinated Universal Time)

@diptish #dask #xarray #parallel

star

Thu Feb 08 2024 01:11:37 GMT+0000 (Coordinated Universal Time)

@diptish #dask #xarray #parallel

star

Thu Feb 08 2024 00:08:49 GMT+0000 (Coordinated Universal Time)

@marcopinero #javascript

star

Wed Feb 07 2024 23:26:35 GMT+0000 (Coordinated Universal Time)

@davidmchale #css #google #font #preload

star

Wed Feb 07 2024 20:29:39 GMT+0000 (Coordinated Universal Time) https://www.elegantthemes.com/blog/divi-resources/beautiful-css-hover-effects-you-can-add-to-your-divi-menus

@mraimondi3

star

Wed Feb 07 2024 20:29:29 GMT+0000 (Coordinated Universal Time) https://www.elegantthemes.com/blog/divi-resources/beautiful-css-hover-effects-you-can-add-to-your-divi-menus

@mraimondi3

star

Wed Feb 07 2024 20:17:47 GMT+0000 (Coordinated Universal Time) https://www.elegantthemes.com/blog/divi-resources/beautiful-css-hover-effects-you-can-add-to-your-divi-menus

@mraimondi3

star

Wed Feb 07 2024 19:58:22 GMT+0000 (Coordinated Universal Time) https://www.peeayecreative.com/how-to-temporarily-allow-svg-file-uploads-in-divi-for-admin-users-only/

@mraimondi3

star

Wed Feb 07 2024 19:52:30 GMT+0000 (Coordinated Universal Time)

@jrg_300i #undefined

star

Wed Feb 07 2024 19:35:03 GMT+0000 (Coordinated Universal Time) https://rankmath.com/blog/add-expires-headers-wordpress/

@mraimondi3

star

Wed Feb 07 2024 19:26:40 GMT+0000 (Coordinated Universal Time)

@mebean #ور #د #بريس

star

Wed Feb 07 2024 19:26:28 GMT+0000 (Coordinated Universal Time) https://www.peeayecreative.com/how-to-style-and-customize-the-divi-back-to-top-button/

@mraimondi3

star

Wed Feb 07 2024 19:26:09 GMT+0000 (Coordinated Universal Time) https://www.peeayecreative.com/how-to-style-and-customize-the-divi-back-to-top-button/

@mraimondi3

star

Wed Feb 07 2024 19:25:54 GMT+0000 (Coordinated Universal Time) https://www.peeayecreative.com/how-to-style-and-customize-the-divi-back-to-top-button/

@mraimondi3

star

Wed Feb 07 2024 19:25:32 GMT+0000 (Coordinated Universal Time) https://www.peeayecreative.com/how-to-style-and-customize-the-divi-back-to-top-button/

@mraimondi3

star

Wed Feb 07 2024 18:51:30 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 18:26:58 GMT+0000 (Coordinated Universal Time)

@hedviga

star

Wed Feb 07 2024 18:24:40 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 18:00:16 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:53:37 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:52:19 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:51:04 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:35:18 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:34:16 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:33:03 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:30:50 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:28:28 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:27:49 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 17:09:33 GMT+0000 (Coordinated Universal Time)

@Gavslee

star

Wed Feb 07 2024 14:57:09 GMT+0000 (Coordinated Universal Time) https://www.thiscodeworks.com/user/dashboard

@baim@code #html #css

star

Wed Feb 07 2024 14:40:15 GMT+0000 (Coordinated Universal Time)

@Hritujeet

star

Wed Feb 07 2024 13:51:35 GMT+0000 (Coordinated Universal Time)

@2late

star

Wed Feb 07 2024 13:46:00 GMT+0000 (Coordinated Universal Time)

@marcopinero #javascript

star

Wed Feb 07 2024 11:22:10 GMT+0000 (Coordinated Universal Time) https://admin.shopify.com/store/industrialelectricalwarehouse/apps/buy_button/code

@IEW_Blog_Code

star

Wed Feb 07 2024 11:20:21 GMT+0000 (Coordinated Universal Time) https://admin.shopify.com/store/industrialelectricalwarehouse/apps/buy_button/code

@IEW_Blog_Code

star

Wed Feb 07 2024 11:19:09 GMT+0000 (Coordinated Universal Time)

@IEW_Blog_Code

star

Wed Feb 07 2024 11:06:32 GMT+0000 (Coordinated Universal Time) https://admin.shopify.com/store/industrialelectricalwarehouse/apps/buy_button/code

@IEW_Blog_Code

star

Wed Feb 07 2024 11:02:44 GMT+0000 (Coordinated Universal Time) https://admin.shopify.com/store/industrialelectricalwarehouse/apps/buy_button/code

@IEW_Blog_Code

star

Wed Feb 07 2024 10:12:45 GMT+0000 (Coordinated Universal Time) https://www.chen-recipes.co.il/wp-admin/admin.php?page

@chen #undefined

star

Wed Feb 07 2024 10:12:01 GMT+0000 (Coordinated Universal Time) https://www.chen-recipes.co.il/wp-admin/admin.php?page

@chen #undefined

star

Wed Feb 07 2024 09:56:55 GMT+0000 (Coordinated Universal Time) https://www.engpaper.com/ieee-projects-on-cse-2022.htm

@dsce

star

Wed Feb 07 2024 06:13:02 GMT+0000 (Coordinated Universal Time)

@liban #javascript

star

Wed Feb 07 2024 03:46:48 GMT+0000 (Coordinated Universal Time)

@liban #javascript

star

Wed Feb 07 2024 01:23:20 GMT+0000 (Coordinated Universal Time)

@Mostafa_malmir #bash

star

Wed Feb 07 2024 01:21:38 GMT+0000 (Coordinated Universal Time)

@Mostafa_malmir #bash

star

Wed Feb 07 2024 01:20:50 GMT+0000 (Coordinated Universal Time)

@Mostafa_malmir #bash

star

Wed Feb 07 2024 01:14:23 GMT+0000 (Coordinated Universal Time)

@Mostafa_malmir #bash

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension