Example project directory, the root folders are pretty consistent, the sub directories (on lib
, etc) are just examples of what might be in there.
.
├── lib
│ ├── db
│ ├── handlers
│ └── routes
'rewrite' => true | |
'public' => true 'publicly_queryable' => true /cpt-slug/cpt-post-slug Loads fine | |
'public' => false 'publicly_queryable' => true /cpt-slug/cpt-post-slug Loads fine | |
'public' => true 'publicly_queryable' => false /cpt-slug/cpt-post-slug 404 Error | |
'public' => false 'publicly_queryable' => true /cpt-slug-cpt-post-slug 404 Error | |
'rewrite' => false | |
'public' => true 'publicly_queryable' => true /?cpt-slug=cpt-post-slug Loads fine | |
'public' => true 'publicly_queryable' => true /?p=ID&post_type=cpt-slug Loads fine | |
'public' => false 'publicly_queryable' => true /?cpt-slug=cpt-post-slug Loads fine |
<script> | |
var YUI_config = { | |
skin : { | |
overrides : { | |
"widget" : [] | |
} | |
} | |
}; | |
</script> |
function oenology_add_menu_parent_class( $items ) { | |
$parents = array(); | |
foreach ( $items as $item ) { | |
if ( $item->menu_item_parent && $item->menu_item_parent > 0 ) { | |
$parents[] = $item->menu_item_parent; | |
} | |
} | |
foreach ( $items as $item ) { |
# change this...unless you're in to jsbin issues :) | |
repo = "remy/jsbin" | |
require 'cgi' | |
v = ARGV[0] || "{query}" | |
url = ""; | |
text = ""; | |
if v.to_s =~ /\A[-+]?\d*\.?\d+\z/ || v == "new" | |
url = "https://github.com/#{repo}/issues/#{v}" | |
text = "Open #{v}" |
<?php | |
// Please see https://github.com/Lewiscowles1986/WordPressSVGPlugin from now on |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
<?php | |
/* | |
* Plugin Name: Remove crazy counts slowing down my dashboard | |
* Plugin URI: https://pmgarman.me | |
* Description: Those comment counts are such a pain when you have a lot of comments | |
* Author: Patrick Garman | |
* Author URI: https://pmgarman.me | |
* Version: 1.0.0 | |
* License: GPLv2 | |
*/ |
{ | |
"BTTWidgetName" : "Things To Do Today", | |
"BTTTriggerType" : 639, | |
"BTTTriggerTypeDescription" : "Apple Script Widget", | |
"BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
"BTTPredefinedActionType" : 195, | |
"BTTPredefinedActionName" : "Run Apple Script (async in background)", | |
"BTTInlineAppleScript" : "tell application \"Things3\"\r\tset firstItem to item 1 of every to do of list \"Today\"\r\tset firstName to name of firstItem\r\tdisplay notification \"COMPLETED: \" & firstName\r\tset status of firstItem to completed\rend tell", | |
"BTTScriptType" : "AppleScript", | |
"BTTEnabled2" : 1, |
{ | |
"breadcrumbs.enabled": false, | |
"editor.minimap.enabled": false, // removes minimap | |
"editor.renderWhitespace": "none", // removes whitespace chars | |
"editor.renderIndentGuides": false, // removes indent guides | |
"editor.overviewRulerBorder": false, // removes border from overview ruler (located on the right, same position as the scrollbar) | |
"editor.hideCursorInOverviewRuler": true, // hides cursor mark in the overview ruler | |
"editor.lineNumbers": "off", // hide line numbers | |
"editor.renderLineHighlight": "none", // removes line highlight |