Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
| <?php | |
| /** | |
| * Plugin Name: Multisite: Passwort Reset on Local Blog | |
| * Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb | |
| * Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process. | |
| * Version: 1.0.0 | |
| * Author: Eric Teubert | |
| * Author URI: http://ericteubert.de | |
| * License: MIT | |
| */ |
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| services: | |
| buggregator: | |
| image: ghcr.io/buggregator/server:latest | |
| depends_on: | |
| buggregator-database: | |
| condition: service_healthy | |
| ports: | |
| - 127.0.0.1:8000:8000 # Sentry, Ray | |
| - 127.0.0.1:1025:1025 # SMTP | |
| environment: |
| #!/bin/sh | |
| ######################### | |
| # # | |
| # Initializing # | |
| # # | |
| ######################### | |
| ## | |
| # You should add all tools as composer dependencies or change this path |
| <?php | |
| /* | |
| * Virtual Themed Page class | |
| * | |
| * This class implements virtual pages for a plugin. | |
| * | |
| * It is designed to be included then called for each part of the plugin | |
| * that wants virtual pages. | |
| * | |
| * It supports multiple virtual pages and content generation functions. |
| <?php | |
| /** | |
| * Plugin Name: My Plugin | |
| * Plugin Description: Settings API Demo | |
| */ | |
| add_action( 'admin_menu', 'my_admin_menu' ); | |
| function my_admin_menu() { | |
| add_options_page( 'My Plugin', 'My Plugin', 'manage_options', 'my-plugin', 'my_options_page' ); | |
| } |
| <?php | |
| function my_msls_blog_collection_get( $objects ) { | |
| $objects = array(); | |
| $blogs = array( 1 => 'Override English', 2 => 'Override Deutsch', ); | |
| foreach ( $blogs as $id => $description ) { | |
| $details = get_blog_details( $id ); | |
| if ( is_object( $details ) ) { | |
| $objects[$id] = new MslsBlog( $details, $description ); | |
| } |