State | Slack Status Emoji | Slack Presense | Busy Light |
---|---|---|---|
Active | 🟢 | 🟢 | |
In a Meeting | red-dot | 🟢 | 🔴 |
On Call | red-dot | 🟢 | 🔴 |
Red | 🟢 | 🔴 | |
Busy | red-dot | ⚪️ | 🔴 |
BRB | yellow-dot | ⚪️ | 🟡 |
Lunch | yellow-dot | ⚪️ | 🟡 |
Family | yellow-dot | ⚪️ | 🟡 |
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
<style type="text/css"> | |
:root { | |
--padding: 2px; | |
--size: 5px; | |
--total: 7px; | |
} | |
body { | |
background: black; | |
padding:2px; | |
margin:0; |
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 | |
/** | |
* Example of Cache Varients on VIP Go | |
* | |
* @see https://github.com/Automattic/vip-go-mu-plugins/blob/master/cache/examples/segmentation-maintenance-mode-bypass/vip-config.php | |
*/ | |
function x_cache_seg() { | |
// Set the response header to let CDN know of possible varient. | |
header( 'Vary: X-VIP-Go-Segmentation' ); |
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
<a href='#' data-darkmode-btn>Toggle Darkmode</a> | |
<script type="text/javascript"> | |
/* eslint-disable */ | |
var darkModeBtn = document.querySelector('a[data-darkmode-btn]'); | |
var bodyEle = document.querySelector('body'); | |
if (localStorage.getItem('darkmode') === 'yes') { | |
bodyEle.classList.add("darkmode"); | |
} | |
function darkmodetoggle(e) { |
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 | |
const FORCE_UPLOAD_DIR_SUBDIR_TO = '/1990/08'; // MUST be "/YYYY/MM" format. | |
/** | |
* Force uploads to land in a specific /YYYY/MM folder. | |
* | |
* @param array $uploads information about the upload directory | |
* @see https://github.com/WordPress/WordPress/blob/2b92bcab85cecd819596b79b0b52f44aa4dfaffa/wp-includes/functions.php#L2223-L2239 | |
* @return array |
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 | |
/** | |
* Implements `media-count` command. | |
*/ | |
class WPCLI_Media_Library_Count { | |
/** | |
* Get total count of all media and break down counts for each media type. | |
* | |
* ## EXAMPLES | |
* |
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 | |
/** | |
* List off all plugins used via `[list_plugins]` shortcode. | |
* | |
* Note that this includes inactive plugins, so keep the plugins tidy. | |
* | |
* @return string of html, list of plufins and links to their site. | |
*/ | |
add_shortcode('list_plugins', function(){ |
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
{ | |
// App | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.settings.editor": "json", | |
"files.defaultLanguage": "php", | |
"editor.minimap.enabled": false, | |
"breadcrumbs.enabled": true, | |
// Explorer | |
"workbench.quickOpen.closeOnFocusLost": false, |
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 | |
/** | |
* The new null coalescing operator! 🎉 | |
* @see http://php.net/manual/en/migration70.new-features.php#migration70.new-features.null-coalesce-op | |
*/ | |
$username = $_GET['user'] ?? 'nobody'; | |
// The old way. 🙅 | |
$username = isset( $_GET['user'] ) ? $_GET['user'] : 'nobody'; |
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
code --install-extension aaron-bond.better-comments | |
code --install-extension agauniyal.vscode-caniuse | |
code --install-extension ahmadawais.shades-of-purple | |
code --install-extension alefragnani.Bookmarks | |
code --install-extension alefragnani.project-manager | |
code --install-extension Asuka.insertnumbers | |
code --install-extension bmewburn.vscode-intelephense-client | |
code --install-extension BriteSnow.vscode-toggle-quotes | |
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension claudiosanches.wpcs-whitelist-flags |