This file contains hidden or 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 | |
function eg_title_bodyclass( $classes ) { | |
$classes[] = sanitize_html_class( get_the_title() ); | |
return $classes; | |
} | |
add_filter( 'body_class', 'eg_title_bodyclass' ); |
This file contains hidden or 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
// Non jQuery | |
function closeSomething( event ) { | |
var id = 'ID-of-container'; | |
function traverseDOM( el ) { | |
if ( null === el.parentNode ) { | |
return true; | |
} else if ( id === el.id ) { | |
return false; | |
} else { | |
return traverseDOM( el.parentNode ); |
This file contains hidden or 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
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
env RMT_PORT_9000_TCP_ADDR; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>comment</key> | |
<string>Created by Luke Woodward.</string> | |
<key>author</key> | |
<string>Luke Woodward</string> | |
<key>name</key> | |
<string>ultraLight</string> |
This file contains hidden or 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 // Templates for ajax comments ?> | |
<?php /* Wrap for comments in general should none be present */ ?> | |
<script type="text/html" id="tmpl-comment-wrap"> | |
<div class="comments"> | |
<h2 class="comments-title">Comments</h2> | |
<ol class="commentlist"></ol> | |
</div> | |
</script> |
This file contains hidden or 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
monkeys.dev |
This file contains hidden or 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
Luke$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install... | |
default: Box Provider: virtualbox | |
default: Box Version: >= 0 | |
==> default: Loading metadata for box 'ubuntu/trusty64' | |
default: URL: https://vagrantcloud.com/ubuntu/trusty64 | |
==> default: Adding box 'ubuntu/trusty64' (v14.04) for provider: virtualbox | |
default: Downloading: https://vagrantcloud.com/ubuntu/trusty64/version/1/provider/virtualbox.box | |
==> default: Successfully added box 'ubuntu/trusty64' (v14.04) for 'virtualbox'! |
This file contains hidden or 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
# Use a compatible base box | |
config.vm.provider :hyperv do |v, override| | |
override.vm.box = "ericmann/trusty64" | |
v.memory = 1024 | |
v.cpus = 1 | |
end | |
# Change all the folder to use SMB instead of Virtual Box shares | |
config.vm.synced_folders.each do |id, options| | |
# Make sure we use SMB for file mounts on Windows |
This file contains hidden or 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
# Hyper-V only overrides | |
config.vm.provider :hyperv do |v, override| | |
# Update memory and CPUs to match VVV config. | |
v.memory = 1024 | |
v.cpus = 1 | |
# Use a Hyper-V compatible base box | |
override.vm.box = "ericmann/trusty64 | |
# Change all the folder to use SMB instead of Virtual Box shares |
This file contains hidden or 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 | |
namespace WP_Parser\Reflection; | |
use WP_Parser\Reflection\Doc_Block; | |
use phpDocumentor\Reflection\Location; | |
use phpDocumentor\Reflection\DocBlockFactory; | |
use phpDocumentor\Reflection\DocBlockFactoryInterface; | |
use phpDocumentor\Reflection\Types\Context; | |
final class Doc_Block_Factory implements DocBlockFactoryInterface { |
OlderNewer