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 constants for Google Maps JS API key--used for ACF's backend map--and Google Maps | |
* Embed API Key, used for generating maps on the site front end. | |
* | |
* @link https://developers.google.com/maps/documentation/javascript/get-api-key | |
* @link https://developers.google.com/maps/documentation/embed/get-api-key | |
*/ | |
const GOOGLE_MAPS_JS_API_KEY = 'MAPS-JS-API-KEY'; |
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 | |
class MyTheme | |
{ | |
private function actionAfterSetup($function) | |
{ | |
add_action('after_setup_theme', function() use ($function) { | |
$function(); | |
}); | |
} |
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 | |
/* | |
Plugin Name: Example Custom Post Types | |
Plugin URI: https://deadhandmedia.com/ | |
Description: Adds custom post types and taxonomies. | |
Version: 1.0.0 | |
Author: Tyler Smith | |
Author URI: https://deadhandmedia.com/ | |
License: GPL2 |
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
scrollToBottomOfPage = { | |
// Configurable properties | |
interval: 1000, | |
allowedIntervalsInSamePosition: 10, | |
// Non-configurable properties | |
intervalContainer: null, | |
currentPosition: 0, | |
intervalsInSamePosition: 0, | |
callbackWhenFinished: function(){ | |
console.log('No callback set on finish') |
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
DECLARE SUB noopen () | |
DECLARE SUB showfiles () | |
DECLARE SUB printmatrix () | |
DECLARE SUB exporttotext () | |
DECLARE SUB openfromfile () | |
DECLARE SUB savetofile () | |
DECLARE SUB background () | |
DECLARE SUB CLEARBOTTOM () | |
DECLARE SUB menu () | |
DECLARE SUB centertext (inputtext$) |
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
JENKINS_UID=1000 | |
JENKINS_GID=1000 |
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
type SharedProps = { | |
multiple: boolean; | |
name: string; | |
} | |
type Multiple = SharedProps & { | |
multiple: true; | |
callback: (items: string[]) => void; | |
} |