Instantly share code, notes, and snippets.

Nick Freear nfreear

View GitHub Profile
@nfreear
nfreear / eprints-oro-feed-js.html
Last active Jan 17, 2019
A test of an Atom/ JSON feed widget for ePrints / ORO — https://oro.open.ac.uk | https://eprints.soton.ac.uk
View eprints-oro-feed-js.html
<!doctype html> <title> ePrints (ORO) Atom/JSON feed test </title>
<link rel="stylesheet" data-href="https://oro.open.ac.uk/feed2js/style/oro.css" media="all" />
<style>
.my-eprints-feed li { line-height: 1.5rem; margin-top: .6rem; }
.my-eprints-html { display: block; padding-left: 40px; }
.my-eprints-html p.citation { display: list-item; }
.oro-rss li { list-style-type: decimal; }
View ou-50.js.html
<!doctype html> <title> OU at 50 &mdash; The Open University </title>
<style>
#ou-header a.ou-logo {
float: left;
display: block;
margin: 20px 0 0;
height: 90px; /* height: 56px; */
width: 150px;
/* background-image: url(/ouheaders/gui/England-50.svg?1.1.1.47); */
@nfreear
nfreear / IET-OU--GDPR.md
Last active Dec 6, 2018
A summary of the GDPR and data privacy related actions taken by the Learning and Teaching Technologies (LTT) team in LTI-Academic / IET at The Open University.
View IET-OU--GDPR.md

IET-OU / GDPR

Nick Freear / 30-Nov-2018.

A summary of the GDPR and data privacy related actions taken by the Learning and Teaching Technologies (LTT) team in LTI-Academic / IET at The Open University.

@nfreear
nfreear / new.accessify-wiki.js
Created Nov 19, 2018
'New' Accessify Wiki Javascript!
View new.accessify-wiki.js
/*!
'New' Accessify Wiki Javascript!
© Nick Freear, 19-November-2018.
*/
const TEST_URL = 'https://www.google.co.uk/search?q=Allison+Stokke';
const INDEX_JSON = 'https://accessifywiki.github.io/fix/index.json';
const FIX_REGEX = /<script.+json['"]>(.+?)<\/script>/ms;
@nfreear
nfreear / fortheweb-widget.html
Created Nov 6, 2018
We need a better web. #ForTheWeb is a global campaign of people like you, uniting as one voice .. NOT official! .. https://fortheweb.webfoundation.org
View fortheweb-widget.html
<!doctype html>
<style>
.fortheweb-wrapper {
background: #000 url(https://webfoundation.org/docs/2018/11/Untitled-design-8.png) right -20px no-repeat;
color: #fff;
font: 1.2rem "Open Sans", Helvetica, Arial, sans-serif;
x-font-size: 16px;
line-height: 1.42857143;
min-height: 350px;
@nfreear
nfreear / teamdesk-delete.bookmarklet.js
Last active Oct 31, 2018
Teamwork Desk bookmarklet ~ batch delete customers based on 'lastTicketDate' and/o 'numTickets' criteria.
View teamdesk-delete.bookmarklet.js
/*!
Teamwork Desk bookmarklet ~ batch delete customers based on 'lastTicketDate' and/o 'numTickets' criteria.
© Nick Freear, 30-October-2018 | License: GPL-3.0+
Gist :- https://gist.github.com/nfreear/e295be4edf0c656b3c28018ea997f637
npx live-server --port=9001
Bookmarklet :-
View caniuse-multi.js.html
<!doctype html> <title> Compatibility - Can I Use — multi </title>
<style>
iframe[ src *= caniuse ] { border: none; height: 347px; width: 100%; }
</style>
<h1> Can I Use — multi </h1>
<div id="caniuse-multi"> <p> Javascript required. </div>
View pinboard-feed-js.html
<!doctype html> <title> Pinboard JSON feed test </title>
<style>
body { font: 1rem/1.7rem sans-serif; margin: 1rem auto; max-width: 40rem; }
.pinboard-js li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
</style>
<h1> Pinboard JSON feed test </h1>
View self-replicator.js.html
<!doctype html><html lang="en"> <title> Self-replicator HTML + JS </title>
<h1> Self-replicator HTML + JS </h1>
<div id="my-container">
<p><form class="saveForm">
<label>File <input class="filename" value="journey-test.html" required pattern="[a-z][\w\-]+\.html" /></label>
<button type="submit">Save HTML journey</button>
View our-journey-logo.html
<!doctype html> <title> *our-journey logo-text </title>
<style>
.oj-logo-text {
background: #246384; /* Was: #2b6ab7 */
border-radius: 1rem;
color: #fff;
font: 1rem arial,sans-serif;
line-height: normal;
padding: .6rem;