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
| .next/ | |
| node_modules/ | |
| Dockerfile | |
| yarn-error.log | |
| .dockerignore | |
| .git | |
| .gitignore |
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
| "80001":{ | |
| "erc20Proxy": "0x0b47076aaa5246411458fcf85494f41bbfdb8470", | |
| "erc721Proxy": "0xff7ca10af37178bdd056628ef42fd7f799fac77c", | |
| "erc1155Proxy": "0x53d791f18155c211ff8b58671d0f7e9b50e596ad", | |
| "zrxToken": "0x5af2b282779c7d4ffc69ca4e6e16676747f5c56b", | |
| "etherToken": "0x5b5e11e4818cceba3e82ca9b97cd0ab80be75ad3", | |
| "exchange": "0x533dc89624dcc012c7323b41f286bd2df478800b", | |
| "erc20BridgeProxy": "0x5638a4b19f121adc4436de3f0e845173b33b594c", | |
| "forwarder": "0x6dcf02d3a963f22dbf85c4025b86a834fef16c15", | |
| "coordinatorRegistry": "0x6f5b9e0456c4849224c7b59dc15f05c48641c4e3", |
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 { captureException, flush } from '@sentry/nextjs'; | |
| import NextErrorComponent from 'next/error'; | |
| import type { ErrorProps } from 'next/error'; | |
| import type { NextPage } from 'next'; | |
| interface AppErrorProps extends ErrorProps { | |
| err?: Error; | |
| hasGetInitialPropsRun?: boolean; | |
| } |
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
| .pnp.* | |
| .yarn/* | |
| !.yarn/patches | |
| !.yarn/plugins | |
| !.yarn/releases | |
| !.yarn/sdks | |
| !.yarn/versions |
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
| Add the following filter in your active child theme's functions.php file | |
| add_filter( 'uael_posts_tax_filter', function( $terms ) { | |
| $child_terms = array(); | |
| $terms = wp_get_post_terms( get_the_ID(), 'category' ); | |
| foreach( $terms as $term ){ | |
| if( $term->parent !== 0 ){ | |
| array_push( $child_terms, $term ); |
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 useSWR, { ConfigInterface, responseInterface } from 'swr' | |
| import axios, { AxiosRequestConfig, AxiosResponse, AxiosError } from 'axios' | |
| export type GetRequest = AxiosRequestConfig | null | |
| interface Return<Data, Error> | |
| extends Pick< | |
| responseInterface<AxiosResponse<Data>, AxiosError<Error>>, | |
| 'isValidating' | 'revalidate' | 'error' | |
| > { |
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
| add_filter('is_enable_wallet_partial_payment', '__return_true'); | |
| add_filter('is_valid_payment_through_wallet', '__return_false'); | |
| add_filter('woo_wallet_partial_payment_amount', 'woo_wallet_partial_payment_amount_callback', 10); | |
| function woo_wallet_partial_payment_amount_callback($amount) { | |
| if (sizeof(wc()->cart->get_cart()) > 0) { | |
| $cart_total = get_woowallet_cart_total(); | |
| $partial_payment_amount = ($cart_total * 20) / 100; | |
| if ($amount >= $partial_payment_amount) { | |
| $amount = $partial_payment_amount; |
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
| <script> | |
| /* | |
| Code placement: see the "Javascript" section on https://facetwp.com/how-to-use-hooks/ | |
| This assumes that your reset button looks like this: | |
| <a class="my-reset-btn" onclick="FWP.reset()">RESET</a> | |
| */ | |
| (function($) { |
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
| <?php | |
| /** | |
| * WooCommerce: Customers can change the quantity & delete it on checkout page. | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; // Exit if accessed directly. | |
| } |
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
| # Luke's config for the Zoomer Shell | |
| # Enable colors and change prompt: | |
| autoload -U colors && colors | |
| PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
| # History in cache directory: | |
| HISTSIZE=10000 | |
| SAVEHIST=10000 | |
| HISTFILE=~/.cache/zsh/history |