This really clicked with me: https://stackoverflow.com/a/14095049
View settings.json
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
{ | |
"breadcrumbs.enabled": true, | |
"explorer.openEditors.visible": 0, | |
"window.title": "${dirty} ${activeEditorMedium}${separator}${rootName}", | |
"editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 13, | |
"editor.fontLigatures": true, | |
"editor.renderWhitespace": "all", | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.minimap.renderCharacters": false, |
View composer.json
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
{ | |
"name": "foo-project/wordpress-wp-content", | |
"description": "Plugins and Theme to power the Foo Project website built atop WordPress.", | |
"type": "project", | |
"require": { | |
"webdevstudios/sso": "^2.0", | |
"webdevstudios/advanced-custom-fields-pro": "^5.8", | |
"yoast/wordpress-seo-premium": "^11.6", | |
"wpackagist-plugin/stream": "^3.3", | |
"webdevstudios/wp-migrate-db-pro": "^1.9", |
View disable-beaver-builder-global-padding-margin.php
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 | |
/** | |
* Set Beaver Builder defaults | |
* | |
* @param {object} $defaults The default settings. | |
* @param {object} $form)_type The module settings. | |
* @return $defaults | |
*/ | |
function grd_set_bb_defaults( $defaults, $form_type ) { |
View git-cheatsheet.md
vs
Questions
- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/5798930 (
git reset
vsgit rm --cached
)
View wp-query-ref.php
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
View php-array-isset-vs-empty.md
https://www.virendrachandak.com/techtalk/php-isset-vs-empty-vs-is_null/
http://www.zomeoff.com/php-fast-way-to-determine-a-key-elements-existance-in-an-array/
Checking a value directly
$people = array(
'one' => 'Eric', // true
'two' => '', // false
'three' => null, // false
View gist:5d3bc24e60d272bb74255cfdb7828f41
Moving from jQuery
Events
// jQuery
$(document).ready(function() {
// code
})
NewerOlder