Skip to content

Instantly share code, notes, and snippets.

<html>
<header>
<title>
Display Name
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
margin:0;padding:0;
<?php
/*
* Google oAuth 2.0 PHP Curl boilerplate
* Google Tasks API example
*
*
* Settings
*
* scope Space-delimited set of permissions that the application requests.
* state Provides any state that might be useful to your application upon receipt of the response.
@humbletiger
humbletiger / xpath.php
Created April 20, 2022 17:52 — forked from generalredneck/xpath.php
XPath - A Fun Walk With A Powerful Query Language
<?php
require_once 'Console/Table.php';
$groupsDoc = new DOMDocument();
$groupsDoc->load("groups.xml");
$groupsDoc->formatOutput = TRUE;
file_put_contents("readable-groups.xml",$groupsDoc->saveXML());
$xpath = new DOMXpath($groupsDoc);
/*******************************************************************************