Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan McCue rmccue

View GitHub Profile
@rmccue
rmccue / plugin-file.php
Created Jan 17, 2012 — forked from kovshenin/plugin-file.php
Improved class concept
View plugin-file.php
<?php
/*****
All new versions will be posted at
https://github.com/rmccue/Rotor_WPPlugin
Please use that repository instead of this Gist.
******/
@rmccue
rmccue / gist:1519244
Created Dec 25, 2011
A list of plugins from WP.org with broken readmes
View gist:1519244
1-button-plugin
1g1g-music-bar
2performant-product-importer
302-moved-temporarily
3d-twitter-wall
3rd-party-authentication
404-not-found-report
404-plugin
4q-survey
5gig-concerts
View keybase.md

Keybase proof

I hereby claim:

  • I am rmccue on github.
  • I am rmccue (https://keybase.io/rmccue) on keybase.
  • I have a public key ASB1nf87pm0h0dkgm8ejxGL8KyOkkwbcA-7udP-D7I8qHwo

To claim this, I am signing this object:

View api-strict-mode.php
<?php
/**
* Plugin Name: WP REST API Strict Mode
* Description: Triggers an error when unregistered parameters are used.
* Author: Ryan McCue
* Author URI: http://rmccue.io/
* Version: 0.1
*
* Requires https://core.trac.wordpress.org/ticket/35507
*/
View gist:1493883
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;C0MBRXg5cCp7ImA9WhRXEk8.&quot;"><id>tag:blogger.com,1999:blog-8515187792149845150</id><updated>2011-12-18T16:17:34.628+01:00</updated><category term="Chaussures" /><category term="Pays Basque" /><category term="beauté" /><category term="sport" /><category term="lingerie" /><category term="Perso" /><category term="Article non sponsorisé" /><category term="Invitation" /><category term="Evénements" /><category term="Article Sponsorisé" /><category term="Bons plans" /><categ
@rmccue
rmccue / aggregate-feed.php
Created Apr 22, 2010 — forked from smajda/aggregate-feed.php
An improved version of the RSS merger
View aggregate-feed.php
<?php
/* Merge multiple RSS feeds with SimplePie
*
* Just modify the path to SimplePie and
* modify the $feeds array with the feeds you want
*
* You should probably also change the channel title, link and description,
* plus I added a CC license you may not want
*
* Help from: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/
View gist:e03d99d04e1db8ab06a6
<?php
/**
* Plugin Name: HM Autoloader
* Description: Provides a standard autoloader utility for the site to use
* Author: Human Made Limited
* Author URI: http://hmn.md/
*/
namespace HM;
View keybase.md

Keybase proof

I hereby claim:

  • I am rmccue on github.
  • I am rmccue (https://keybase.io/rmccue) on keybase.
  • I have a public key ASCILnUMWLsVHRN6vU_QWIVD43Gdi69Du7-v8Rp0bKrFUgo

To claim this, I am signing this object:

View react-dom.js
// Resolve custom components by calling .render() recursively.
const resolveComponents = element => {
// If the "component" is a string, it's static text.
if ( typeof element === 'string' ) {
return element;
}
// If the type is a string, it's already in DOM node form.
if ( typeof element.type === 'string' ) {
return element;
View Blackbox.html
<a href="blackbox://🔒">lock</a>
<a href="blackbox://🔓">unlock</a>
<a href="blackbox://🔐">key</a>