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' );
View iet-reports-widget.html
<!doctype html> <title> *Innovating Pedagogy test </title>
<style>
body { font: 1rem Ubuntu,"Helvetica neue",Arial,sans-serif; }
.iet-reports-js {
font-size: 1.05rem;
}
.iet-reports-js li {
line-height: 1.6;
View fsockopen-http-proxy-test.php
<?php
/**
* fsockopen HTTP proxy test.
*
* @author Nick Freear, 12-December-2017.
* @link https://gist.github.com/nfreear
* @link https://stackoverflow.com/questions/10886778/use-fsockopen-with-proxy
*/
define( 'PROXY_HOST', getenv( 'http_proxy' ) ? getenv( 'http_proxy' ) : 'wwwcache.open.ac.uk:80' );
View iet.open.ac.uk-file-index.json
{
"timestamp": "2017-12-07T15:25 (manual)",
"home_url": "https://iet.open.ac.uk/innovating-pedagogy",
"base_url": "https://iet.open.ac.uk/file/",
"order_by": "year DESC",
"files": [ {
"year": 2017,
"lang": "en-GB",
"file_name": "innovating-pedagogy-2017.pdf",
"alt_names": [ ],
View burner-email-test-js.html
<!doctype html> <title> * Burner email test </title>
<style>
body, input, button { color: #222; font: 1.1rem sans-serif; margin: 1em auto; max-width: 40em; }
h1 { font-weight: normal; }
form { background: #fdfdfd; border: 1px solid #ccc; border-radius: 5px; padding: 2px 1em; }
input { x-border-radius: 3px; min-width: 16em; padding: 2px 6px; }
:invalid { border: 1px solid red; }
input:invalid { background: #fee; }
</style>
View ReversibleForLoop.php
<?php
/**
* Enclose code in a "for loop" that can easily be switched between ascending and descending.
*
* @copyright © Nick Freear, 26-November-2017.
* @link https://gist.github.com/nfreear/3bc3550d904a3edc0916386c63db143f#
*/
/* USAGE:
View git-hook--pre-commit.sh
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit". Copy to "../.git/hooks"
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
# http://githooks.com
View wp-static-pages-plugin.php
<?php namespace Nfreear\WP_Plugins;
/**
* Plugin Name: WP Static Pages
* Plugin URI: https://gist.github.com/nfreear
* Description: For some URI paths, display a static text or HTML file.
* Author: Nick Freear
* Author URI: https://github.com/nfreear
* Version: 1.0-alpha
*