Skip to content

Instantly share code, notes, and snippets.

View Preciousomonze's full-sized avatar
🤡
Coding on the bicycle 😎🚴🏽‍♂️

Precious Omonzejele Preciousomonze

🤡
Coding on the bicycle 😎🚴🏽‍♂️
View GitHub Profile
@mofesolapaul
mofesolapaul / nigeria-states-and-local-govts.json
Last active March 24, 2025 23:35
Json array containing objects of each Nigerian state, and their local governments
[
{
"state": "Abia",
"lgas": [
"Aba North",
"Aba South",
"Arochukwu",
"Bende",
"Ikawuno",
"Ikwuano",
@joshuawoodward
joshuawoodward / signature.php
Created August 2, 2017 19:04
How to generate a signature for zoom in PHP
/**
* Generate signature for ZoomMtg JSSDK.
*
* @param string $api_key You REST API Key
* @param string $api_secret You REST API Secret
* @param int $meeting_number The meeting number you are creating the signature for
* @param int $role Role that this signature is for; 0 for participant, 1 for host
*
* @return string Returns the signature string
*
@premitheme
premitheme / README.md
Last active February 11, 2025 18:15
Generate POT file for WP themes and plugins on Mac

Generate POT file

1. Install gettext GNU tools with Homebrew using Terminal

  1. Install Homebrew: Install Homebrew : /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. Install GNU gettext: brew install gettext
  3. Then you must add that package to your path: echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
  4. Restart your computer! (Otherwise you will get "sh: msguniq: command not found" error).
@helgatheviking
helgatheviking / wc-fgc-sync.php
Created March 25, 2019 13:38
Sync the quantity of the Free Gift product to the quantity of a required purchased product
<?php
/**
* Plugin Name: WooCommerce Free Gift Coupons: Sync to Required Products
* Plugin URI: http://www.woocommerce.com/products/free-gift-coupons/
* Description: Sync the quantity of the Free Gift product to the quantity of a required purchased product
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 4.4
* Tested up to: 5.1.0
@helgatheviking
helgatheviking / wc-minimalize-checkout.php
Created December 12, 2019 15:12
Reduce WooCommerce checkout to the bare minimum
<?php
/**
* Plugin Name: WC Minimalize Checkout Settings
* Plugin URI: https://woocommerce.com/
* Description: Reduce checkout to the bare minimum.
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com/*
* Requires at least: 5.3.0
* Tested up to: 5.3.0
diff --git a/node_modules/react-native-google-places/ios/NSMutableDictionary+GMSPlace.h b/node_modules/react-native-google-places/ios/NSMutableDictionary+GMSPlace.h
index 8991707..4e517b7 100644
--- a/node_modules/react-native-google-places/ios/NSMutableDictionary+GMSPlace.h
+++ b/node_modules/react-native-google-places/ios/NSMutableDictionary+GMSPlace.h
@@ -1,5 +1,6 @@
#import <Foundation/Foundation.h>
#import <GooglePlaces/GooglePlaces.h>
+#import <GoogleMapsBase/GoogleMapsBase.h>
@interface NSMutableDictionary (GMSPlace)
@BrianHenryIE
BrianHenryIE / unhook_wordpress_closure.php
Last active November 24, 2021 23:07
Unhook a closure from a WordPress action by using the class the closure binds to to compare.
<?php
/**
* Unhook a closure from a WordPress action by using the class the closure binds to to compare.
*/
$action_name = 'admin_notices';
$priority = 10;
$expected_class = MyClass::class;
@bagerathan
bagerathan / woo-events.js
Last active April 11, 2025 17:46
[Woocommerce Javascript events] #woo
//Woocommerce Checkout JS events
$( document.body ).trigger( 'init_checkout' );
$( document.body ).trigger( 'payment_method_selected' );
$( document.body ).trigger( 'update_checkout' );
$( document.body ).trigger( 'updated_checkout' );
$( document.body ).trigger( 'checkout_error' );
//Woocommerce cart page JS events
$( document.body ).trigger( 'wc_cart_emptied' );
$( document.body ).trigger( 'update_checkout' );
@Preciousomonze
Preciousomonze / wc_pv_custom_filters.php
Last active October 25, 2023 11:15
Phone Validator Custom Filters and How to Use 📝
<?php
/**
* List of Phone Validator for WooCommerce custom Filters and how to use.
*
* Please feel free to add more to this, and don't forget to add your name to contributors, if you want to.
*
* @author Precious Omonzejele (CodeXplorer 🤾🏽‍♂️🥞🦜🤡)
* @contributors ...add name(s) here
*/
@helgatheviking
helgatheviking / kia-local-dev.php
Created September 9, 2020 22:34
Snippet for local WordPress development
<?php
/**
* Plugin Name: Local Dev modifications
* Plugin URI: https://kathyisawesome.com/
* Description: Custom snippets for local development
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: https://kathyisawesome.com
*/