View docker-status-cli.php
#!/usr/bin/env php
<?php
/**
* CLI. Run 'docker ps' and 'docker exec ... git describe'. Output the result as JSON.
*
* USAGE:
* sudo su
* ./docker-status.php
*
View dashboard.markdown.template.html
<!doctype html><html lang="en"> <title> *Nick's dashboard </title>
<base target="new" title="Opens in a new window" />
<div id="html-destination"></div>
<pre id="markdown-source" data-type="text/markdown">
# Nick's Dashboard #
View .pa11yci.conf.js
/*!
Pa11y-ci Configuration.
Dynamically generate a '.pa11yci' JSON config object, using an environment variable.
© Nick Freear, 07-March-2018.
https://gist.github.com/nfreear/cece86bf6d5d4d531bf0646417a868fb
https://github.com/pa11y/pa11y-ci/issues/48
USAGE:
View .pa11yci.json
{
"#": "Automated accessibility testing ~ https://github.com/pa11y/pa11y-ci",
"defaults": {
"standard": "WCAG2AA",
"reporter": "cli",
"level": "error",
"threshold": 0,
"ignore": [ ],
"includeNotices": true,
View pa11y-ci.otu.js
// eslint-disable-next-line
const _PKG_ = `
dependencies:
shelljs: ^0.7.8
pa11y-ci: ^1.3.1
# otu: ^1.1.0-beta
pa11y-ci:
defaults:
standard: WCAG2AAA
timeout: 8000
View Twig-translate-function.xgettext.php
<?php
/**
* Twig-translate-function.php
*
* @link https://twig.symfony.com/doc/1.x/advanced.html#filters
*/
$twig = new Twig_Environment($loader);
$twig->addFunction(new \Twig_SimpleFunction('translate', function ($str) {
return gettext( $str );
View countable-js.html
<!doctype html> <title> * Countable </title>
<style>
body { background: #fdfdfd; color: #333; font: 1em sans-serif; margin: 1em auto; width: 45em; }
h1 { font-weight: normal; }
textarea, [ type = submit ] { font-size: 1em; }
textarea { border-color: #ccc; border-radius: 5px; color: #222; height: 16em; padding: 1em; width: 99%; }
[ name = counts ] { width: 100%; letter-spacing: .06em; }
[ type = submit ] { height: 3em; width: 8em; }
:invalid { border-color: red; }
View recaptcha-test.php
<?php
/**
* reCAPTCHA test.
*
* @copyright Nick Freear / 09-January-2018.
* @link https://gist.github.com/nfreear/8f74ab520daf8e42b289b04af9aa4f87
*
* USAGE: php -S localhost:8000 recaptcha-test.php
*/
View open-university-mk7-ev-charging-map.geo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View composer-to-readme.cli.php
#!/usr/bin/env php
<?php
/**
* Composer-to-README commandline script (CLI).
*
* @copyright © Nick Freear, 18-Dec-2017.
*/
define( 'PATH', $argv[ $argc - 1 ]);
define( 'COMPOSER_JSON', PATH . '/composer.json' );