Skip to content

Instantly share code, notes, and snippets.

View johnny13's full-sized avatar

Derek johnny13

View GitHub Profile
.img-circle{behavior:url(/js/PIE.htc)}
.img-rounded{behavior:url(/js/PIE.htc)}
.img-thumbnail{behavior:url(/js/PIE.htc)}
.table-bordered{behavior:url(/js/PIE.htc)}
select,textarea,input,code,pre,kbd,pre{behavior:url(/js/PIE.htc)}
.input-group-addon{behavior:url(/js/PIE.htc)}
.btn{behavior:url(/js/PIE.htc)}
.dropdown-menu{behavior:url(/js/PIE.htc)}
.form-control{behavior:url(/js/PIE.htc)}
.panel{behavior:url(/js/PIE.htc)}
!!! 5
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
@johnny13
johnny13 / sh_env_var_opts.sh
Last active December 7, 2016 23:04 — forked from KylePDavis/sh_env_var_opts.sh
Simple bash shell script templates. There are two versions: 1) simple env var based options, and 2) with added command line argument parsing and error handling.
#!/bin/bash -e
##################################################################################
# BASH SCRIPT TEMPLATE [GENERIC MESSAGE]
# USAGE:
# DESCRIPTION OF ENV VARS HERE
##################################################################################
set -e # exit on command errors (so you MUST handle exit codes properly!)
set -o pipefail # capture fail exit codes in piped commands
@johnny13
johnny13 / install nano.sh
Last active December 18, 2016 21:30 — forked from BlakeGardner/install nano.sh
Syntax highlighting in nano on Mac OS X
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install `wget` with IRI support.
brew install wget --with-iri
# install nano from homebrew
brew install nano
# update your nanorc file with the contents of the nanorc file below
@johnny13
johnny13 / install.sh
Created January 7, 2017 09:09 — forked from mshick/install.sh
Installing Node.js with Homebrew and nvm
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install nvm
brew install nvm
# Export nvm environment
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
@johnny13
johnny13 / keybase.md
Created October 25, 2017 08:45 — forked from anonymous/keybase.md
keybase.md

Keybase proof

I hereby claim:

  • I am johnny13 on github.
  • I am thirt13n (https://keybase.io/thirt13n) on keybase.
  • I have a public key ASAbuv-9281qzftOHOFT9qzbT9_EC7c1idYI5hNuMNThvAo

To claim this, I am signing this object:

@johnny13
johnny13 / add_dashboard_menu.php
Created November 29, 2017 11:29 — forked from sabbir1991/add_dashboard_menu.php
Adding a Main Dashboard Menu in Dokan Dashboard
<?php
add_filter( 'dokan_query_var_filter', 'dokan_load_sabbir_menu' );
function dokan_load_sabbir_menu( $query_vars ) {
$query_vars['sabbir'] = 'sabbir';
return $query_vars;
}
add_filter( 'dokan_get_dashboard_nav', 'dokan_add_sabbir_menu' );
@johnny13
johnny13 / load_settings_menu.php
Created November 29, 2017 11:29 — forked from sabbir1991/load_settings_menu.php
Add extra menu in Settings menu in Dokan Dashboard
<?php
/** Adding Settings extra menu in Settings tabs Dahsboard */
add_filter( 'dokan_get_dashboard_settings_nav', 'dokan_add_settings_menu' );
function dokan_add_settings_menu( $settings_tab ) {
$settings_tab['nayem'] = array(
'title' => __( 'Nayem', 'dokan'),
'icon' => '<i class="fa fa-user"></i>',
<?php
$email = (new WP_Mail)
->to('john.doe@gmail.com')
->subject('WP_Mail is great!')
->template(get_template_directory() .'/emails/demo.html', [
'name' => 'John Doe',
'location' => 'London',
'link' => 'http://github.com/anthonybudd/WP_Mail'
])
@johnny13
johnny13 / wp-config.php
Created January 9, 2018 02:00 — forked from ifamily/wp-config.php
A universal WordPress wp-config.php which works on local development to staging and production server environments.
<?php
/*
One wp-config for local development to staging to production.
*/
// Define Environments
$environments = array(