Skip to content

Instantly share code, notes, and snippets.

View odutolaabisoye's full-sized avatar
🎯
Focusing

Odutola Abisoye odutolaabisoye

🎯
Focusing
  • Lagos, Nigeria
View GitHub Profile
#quick-view {
display: flex;
height: 100%;
justify-content: flex-end;
flex-wrap: wrap;
position: relative;
-ms-overflow-style: -ms-autohiding-scrollbar;
.qv-product-images {
width: 60%;
height: auto;
{{ 'option_selection.js' | shopify_asset_url | script_tag }}
<script>
// <![CDATA[
var selectCallback = function(variant, selector) {
if (variant) {
if (variant.available) {
// Selected a valid variant that is available.
$('#add-to-cart-button').removeClass('disabled').removeAttr('disabled').html('Add to Cart');
} else {
@odutolaabisoye
odutolaabisoye / PhoneBook class:
Last active May 14, 2023 23:36
Java Phonebook Example
import java.util.ArrayList;
public class PhoneBook {
private ArrayList<PhoneBookEntry> entries;
public PhoneBook() {
entries = new ArrayList<PhoneBookEntry>();
}
public void addEntry(PhoneBookEntry entry) {
@odutolaabisoye
odutolaabisoye / example.css
Last active May 12, 2023 20:36
Display 2nd product image on hover within Shopify collection loop
.product-grid a:hover img:last-child {
display: block !important;
}
.product-grid a:hover img:first-child {
display: none;
}
@odutolaabisoye
odutolaabisoye / wp-event-slider.php
Last active November 19, 2022 21:39
Slider Event Listing
<div class="wpem-prime-event-slider-wrapper wpem-main">
<?php while ( $events->have_posts() ) : $events->the_post();?>
<?php
global $post;
$deadline_date = get_post_meta($post->ID, '_event_registration_deadline', true);
$event_schedule = get_post_meta($post->ID, '_event_schedule', true);
$date_now = date("Y-m-d");
$isbook = get_field('book_embedded_form', $post->ID);
$isapply = get_field('apply_embedded_form', $post->ID);
@odutolaabisoye
odutolaabisoye / content-event_listing.php
Last active November 16, 2022 03:35
Event Card Listing
<?php
global $post;
$start_date = get_event_start_date();
$start_time = get_event_start_time();
$end_date = get_event_end_date();
$end_time = get_event_end_time();
$event_type = get_event_type();
$categories = get_the_terms($post->ID, "event");
$start_date = get_event_start_date();
$deadline_date = get_post_meta($post->ID, "_event_registration_deadline", true);
# Use an array to keep track of the discount campaigns desired.
CAMPAIGNS = [
# $5 off all items with the "sale" tag
ItemCampaign.new(
AndSelector.new(
TagSelector.new("sale"),
ExcludeGiftCardSelector.new,
),
MoneyDiscount.new(5_00, "5$ off all items on sale",),
),
name: Sync
on:
push:
branches:
- staging
jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
@odutolaabisoye
odutolaabisoye / .deps...github...OpenZeppelin...openzeppelin-contracts...contracts...token...ERC20...ERC20.sol
Last active February 10, 2022 06:23
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**