Skip to content

Instantly share code, notes, and snippets.

View jerome-toole's full-sized avatar

Jerome Toole jerome-toole

  • Freelancer
  • London
View GitHub Profile
@jerome-toole
jerome-toole / 0_reuse_code.js
Created March 16, 2017 14:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@charset "UTF-8";@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v15/zN7GBFwfMP4uA6AR0HCoLQ.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v15/RxZJdnzeo3R5zSexge8UUaCWcynf_cDxXwCLxiixG1c.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v15/d-6IYplOFocCacKzxwXSOKCWcynf_cDxXwCLxiixG1c.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:italic;font-weight:400;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v15/W4wDsBUluyw0tK3tykhXEfesZW2xOQ-xsNqO47m55DA.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:italic;font-weight:500;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https:/
@jerome-toole
jerome-toole / bits.md
Created April 28, 2017 14:53
Useful Bits
@jerome-toole
jerome-toole / wp_FrontPageMenuItem.php
Created December 8, 2017 17:06
Add 'Front Page' Item to Wordpress Admin Menu
function front_page_menu_item(){
$frontid = get_option('page_on_front');
add_menu_page('Front Page', 'Front Page', 'manage_options', '/post.php?post='.$frontid.'&action=edit', '', 'dashicons-welcome-write-blog', 4);
}
add_action('admin_menu', __NAMESPACE__ . '\\front_page_menu_item');