Skip to content

Instantly share code, notes, and snippets.

View rbest's full-sized avatar
🎯
Focusing

Rita Best rbest

🎯
Focusing
View GitHub Profile
@jonathanbossenger
jonathanbossenger / wp-test.php
Last active August 31, 2023 14:54
A simple PHP "test bed" script to learn about WordPress functionality
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Learn WordPress</title>
</head>
<body style="margin: 2em;">
<h1>Learn WordPress</h1>
<div>
<?php
@ndiego
ndiego / block-variation-examples
Last active February 28, 2023 19:36
Block Variation Examples
/**
* Add the following to a theme's functions.php file.
*/
function example_enqueue_block_variations() {
wp_enqueue_script(
'frost-enqueue-block-variations',
get_template_directory_uri() . '/assets/js/variations.js',
array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' )
);
@azaol-aegnor
azaol-aegnor / GTD-workflow_diagram
Last active January 9, 2024 15:22
A handcrafted SVG version of the Workflow Diagram from David Allen's book named Getting Things Done, typped for personnal use so you might want to remove the variables at lines 17, 22, 25 and 32.
<svg class="gtd-wd" width="800" height="620" xmlns="http://www.w3.org/2000/svg"><style>
.gtd-wd {
background-color: var(--background-primary, #202020)
}
.gtd-wd :is(line, rect, path) {
stroke: var(--text-normal, #dcddde);
}
.gtd-wd :is(text, .fill) {
fill: var(--text-normal, #dcddde);
}
@nathaningram
nathaningram / wp-config.php
Created November 11, 2020 16:53
PBDC 2020 - Sample wp-config File
<?php
/* Debug Options */
define( 'WP_DEBUG_LOG', false );
define( 'WP_DEBUG', false );
/* MySQL Settings */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
@gaearon
gaearon / modern_js.md
Last active April 18, 2024 15:01
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@natelandau
natelandau / .bash_profile
Last active April 30, 2024 18:07
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management