Skip to content

Instantly share code, notes, and snippets.

View HardeepAsrani's full-sized avatar

Hardeep Asrani HardeepAsrani

View GitHub Profile
@HardeepAsrani
HardeepAsrani / useSettings.js
Last active December 15, 2023 22:00
useSettings.js
/**
* WordPress dependencies.
*/
import api from '@wordpress/api';
import { __ } from '@wordpress/i18n';
import { dispatch } from '@wordpress/data';
import {
@HardeepAsrani
HardeepAsrani / useMeta.js
Last active December 15, 2023 22:00
useMeta.js
/**
* WordPress dependencies.
*/
import { useDispatch, useSelect } from '@wordpress/data';
/**
* useMeta Hook.
*
* useMeta hook to get/update WordPress' meta fields.
*
@HardeepAsrani
HardeepAsrani / .vimrc
Last active March 5, 2024 08:24
Vim Configuration
" The Ultimate vimrc: https://github.com/amix/vimrc
" - Requires vim with python3 support. For Mac, you can install vim with Homebrew for python3 support
" - Make sure you use a Hack font on your terminal for icons to work properly.
" Install vim-plug if not found
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif