Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding

Daniel Tompkins dwtompkins

💭
Coding
View GitHub Profile
@gnanderson
gnanderson / fif.sh
Last active Dec 1, 2022
Find in file using ripgrep, then fuzzy find matched filenames with fzf, preview match using bat
View fif.sh
fif() {
rg \
--column \
--line-number \
--no-column \
--no-heading \
--fixed-strings \
--ignore-case \
--hidden \
--follow \
@douglasanro
douglasanro / functions.php
Created Apr 16, 2017
Create WordPress settings page For custom options
View functions.php
<?php
// Let’s instantiate this class in our functions.php file:
if( is_admin() ) {
require 'simple_settings_page.php';
new simple_settings_page();
}