Multiuser chat built with React and Firebase. Note that this is on the Firebase free plan, so if more than 50 users are on it things may go south.
A Pen by Brad Daily on CodePen.
Multiuser chat built with React and Firebase. Note that this is on the Firebase free plan, so if more than 50 users are on it things may go south.
A Pen by Brad Daily on CodePen.
Using only this, hiting ^/bpa/whatever/ serves blog archive instead of static front page. | |
<?php | |
/** | |
* Create url endpoint for BPA | |
* | |
* @since 1.0.0 | |
*/ | |
function cfpurl_rewrite_rules() { |
<?php | |
/** | |
* Plugin Name: Comments Page | |
* Plugin URI: https://WPSessions.com | |
* Description: Makes comments for a post accessible at <post_url>/comments/. | |
* Author: Brian Richards | |
* Author URI: https://rzen.net | |
* Text Domain: comments-page | |
* Domain Path: /languages | |
* Version: 0.1.0 |
h3:before { | |
display: inline-block; | |
margin-left: -45px; | |
padding-right: 45px; | |
width: 30px; | |
height: 30px; | |
background: url('https://cldup.com/_NaTHCOsGQ.svg') no-repeat; | |
content: ''; | |
} |
// Data courtesy http://country.io/data/ | |
$countries = [ | |
'AD' => [ 'name' => 'Andorra', 'alpha2' => 'AD', 'alpha3' => 'AND', 'currency' => 'EUR', ], | |
'AE' => [ 'name' => 'United Arab Emirates', 'alpha2' => 'AE', 'alpha3' => 'ARE', 'currency' => 'AED', ], | |
'AF' => [ 'name' => 'Afghanistan', 'alpha2' => 'AF', 'alpha3' => 'AFG', 'currency' => 'AFN', ], | |
'AG' => [ 'name' => 'Antigua and Barbuda', 'alpha2' => 'AG', 'alpha3' => 'ATG', 'currency' => 'XCD', ], | |
'AI' => [ 'name' => 'Anguilla', 'alpha2' => 'AI', 'alpha3' => 'AIA', 'currency' => 'XCD', ], | |
'AL' => [ 'name' => 'Albania', 'alpha2' => 'AL', 'alpha3' => 'ALB', 'currency' => 'ALL', ], | |
'AM' => [ 'name' => 'Armenia', 'alpha2' => 'AM', 'alpha3' => 'ARM', 'currency' => 'AMD', ], | |
'AO' => [ 'name' => 'Angola', 'alpha2' => 'AO', 'alpha3' => 'AGO', 'currency' => 'AOA', ], |
# Install a new WP site. | |
# Usage: wpinstall <sitename> | |
function wpinstall() { | |
# Make the directory in your local web root | |
mkdir ~/Sites/www/$@; | |
cd ~/Sites/www/$@; | |
# Download, config, and install WordPress using <sitename> for the database, URL, and site title | |
# Note: You'll need to configure your wp-cli defaults for core config and core install in a wp-cli.yml file | |
wp core download; |