Skip to content

Instantly share code, notes, and snippets.

View acobster's full-sized avatar

Coby Tamayo acobster

View GitHub Profile
@acobster
acobster / 0_reuse_code.js
Created June 30, 2016 23:21
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
@acobster
acobster / functions.php
Last active February 18, 2016 17:11 — forked from swthate/functions.php
Timber functions
<?php
/** Custom Functions... **/
require_once( 'lib/custom-functions.php' );
/** And Now Our Regularly Scheduled Brogramming... **/
if ( ! class_exists( 'Timber' ) ) {
add_action( 'admin_notices', function() {
echo '<div class="error"><p>Timber not activated. Make sure you activate the plugin in <a href="' . esc_url( admin_url( 'plugins.php#timber' ) ) . '">' . esc_url( admin_url( 'plugins.php' ) ) . '</a></p></div>';