Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
<?php defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); | |
/* | |
* Plugin Name: Optimator | |
* Plugin URI: https://aris.web.id/ | |
* Description: Some basic WordPress configuration optimization to make it better than default. This plugin contains other simplified plugins and snippets. | |
* Author: Aris Ripandi | |
* Author URI: https://aris.web.id/ | |
* Version: 1.0 | |
* License: GPLv3 | |
* Text Domain: optimator |
I couldn't find any examples of gists queries using GraphQL--most GraphQL examples seem to focus on traditional repositories--so here is one. As a preface, I cannot recommend strongly enough, at least when getting started, developing queries using the GitHub GraphQL Explorer. I initially started by issuing queries via curl
, constructing them using the docs available on the site and a downloaded copy of the schema. Unfortunately, I ended up with errors that I couldn't quite parse. I knew, for example, from the schema, the possible field values for ordering gists. However, whenever I tried to use one of those values, the API returned that it was invalid, like so:
{"data":null,"errors":[{"message":"Argument 'orderBy' on Field 'gists' has an invalid value. Expected type 'GistOrder'.","locations":[{"line":1,"column":48}]}]}"
When I finally turned to the Explorer, I discovered that not only was the value I was using correct (field: CREATED_AT
), thanks to its auto
<?php | |
class FigureExtParsedown extends Parsedown { | |
// Matches Markdown image definition | |
private $MarkdownImageRegex = "~^!\[.*?\]\(.*?\)$~"; | |
public function __construct () { | |
// Add blockFigure to non-exclusive handlers for text starting with ! | |
$this->BlockTypes['!'][] = 'Figure'; |
The first time you have to set it up with a cable. The Oculus Quest has a USB-C port (the one used for charging). Use this to connect to your computer.
Your Quest needs to be in Developer mode. This is super easy, just open your companion app on your phone and go to Settings and enable Developer