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: Lord Matt embeds Mastodon | |
Plugin URI: https://lordmatt.co.uk/projects/lord-matt-embeds-all-of-mastodon-project/ | |
Description: An attempt to embed Mastodon on WordPress. | |
Version: 1.0.0 |
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 | |
/* | |
* This is just the code as exported from my site where it exists just for me. An example of a more complex pattern for | |
* something a bit more funthan the usual boring patterns. As far as licenses go, GNU GPL3. | |
*/ | |
function matrixdreams_register_my_patterns() { | |
register_block_pattern( | |
'matrixdreams/Dnd-Monster-stat-block', |
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
# This is the class that I wrote to control a MAX7219 8 Digit Seven Segment Display Module which | |
# you can find on Amazon here: https://amzn.to/3g0ls8P | |
# | |
# This class makes use of a feature that I do not think was documented. To do this, I devided | |
# the list of serial instructions into columns one for each display module in use which I use | |
# to replace no-op codes and addrress other chips where the no-op padding should be. | |
# | |
# The datasheet I worked from is here: https://cdn-shop.adafruit.com/datasheets/MAX7219.pdf | |
# The blog post telling how I made it is here: https://lordmatt.co.uk/max7219-story | |
# |
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 | |
/* | |
This script is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
any later version. | |
This script is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 | |
/* | |
* This is an example of adding activity to a BuddyPress group. | |
* | |
* I cribbed it pretty much wholesale from EGB | |
* @link https://github.com/lordmatt/external-group-blogs/ | |
* | |
* You will almost certainly need to do some work and testing | |
* to get something useful from this code. | |
* |
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 comment_walker extends Walker_Comment { | |
var $tree_type = 'comment'; | |
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' ); | |
// constructor – wrapper for the comments list | |
function __construct() { ?> | |
<section class="comments-list"> |
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: Guest Meta | |
Plugin URI: <https://gist.github.com/lordmatt/3bd8f7787fbbe0950f9228dec92f2f8a> | |
Description: Enable storing meta data for guests. Keeps cookies small and simple. | |
Author: Matthew Brown | |
Author URI: http://matthewdbrown.authorbuzz.co.uk/ | |
Version: 1.1.0 | |
License: GPLv3 or later | |
Text Domain: guest_meta |
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 | |
namespace storyteller; | |
/** | |
* This is a class designed to be used in WordPress Plugins and Themes where for | |
* whatever reason, the designer wishes to track a huge ammount of per-user data | |
* and keep it well ordered and accessable. | |
* | |
* I am posting this in an incomplete state; in the hope that further developers | |
* might have ideas that will finish the project for the good of the community. |
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 | |
/** | |
* This is an example of doing silly things with headers in WordPress | |
* | |
* @author Lord Matt <http://lordmatt.co.uk> | |
*/ | |
function fun_with_headers(){ |
NewerOlder