This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* All custom functions should be defined in this class | |
* and tied to WP hooks/filters w/in the constructor method | |
*/ | |
class Custom_Functions { | |
// Custom metaboxes and fields configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title><%= title_helper %></title> | |
<meta charset="utf-8"> | |
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="<%= description_helper %>"> | |
<link rel="canonical" href="<%= permalink_helper %>"> | |
<link rel="author" href="<%= data.site.gplus %>"> | |
<link rel="alternate" type="application/rss+xml" title="http://feeds.feedburner.com/derekconjar"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page_dirs = ["pages", "landing", "reports"] | |
page_dirs.each do |page_dir| | |
pages = Dir.glob("./source/#{page_dir}/*.html*") | |
pages.each do |page_path| | |
pattern = /.\/source\/#{page_dir}\/([^\.]*)\..*/ | |
page = page_path.match(pattern).captures[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () { | |
var RockPaperScissors = function (opts) { | |
this.opts = opts ? opts : {}; | |
this.scoreboard = []; | |
this.choices = []; | |
this.truthtable = this.opts.truthtable || { | |
rock: ['scissors'], | |
paper: ['rock'], |