Skip to content

Instantly share code, notes, and snippets.

View charlesroper's full-sized avatar
🌱

Charles Roper charlesroper

🌱
View GitHub Profile

Keybase proof

I hereby claim:

  • I am charlesroper on github.
  • I am charlesroper (https://keybase.io/charlesroper) on keybase.
  • I have a public key ASAx0GqnbXcxHEViHChTFGcyC3VZQvY_I5PCB2NPL6PQogo

To claim this, I am signing this object:

@charlesroper
charlesroper / inclusive-fonts.md
Last active April 4, 2026 00:27
Inclusive fonts

Inclusive fonts

Accessible, inclusive fonts have been playing on my mind lately. So I've spent some time researching options for a workhorse body font.

I've considered a few things:

  1. Font must be highly legible and practical in a wide variety of formats. This includes print, digital, signs, TV, smartboard, soggy paper, laminated sheets, etc. Digital alone has a whole array of sub-categories to consider, including good quality screen, poor quality, low resolution, small screen, large screen, e-ink, etc.
  2. Should come in many weights and styles and be feature rich (at least of regular + bold + italic)
  3. Should be free or inexpensive.
@charlesroper
charlesroper / codeswing.json
Last active April 12, 2021 01:36
Vanilla JS Accordion
{
"scripts": [],
"styles": []
}
@charlesroper
charlesroper / ruleset.xml
Last active March 13, 2021 21:12
CodeIgniter 4 coding standard for ShropBotSoc project #CodeIgniter #PHPCS
<?xml version="1.0" encoding="UTF-8" ?>
<ruleset name="CodeIgniter4">
<description>CodeIgniter 4 coding standard for PHP_CodeSniffer</description>
<!--
* CodeIgniter 4 coding standard for PHP_CodeSniffer
*
* @author Louis Linehan <[email protected]>
* @copyright 2017 British Columbia Institute of Technology
* @license https://github.com/bcit-ci/CodeIgniter4-Standard/blob/master/LICENSE MIT License
-->
function countup (n) {
console.log(`we are in ${arguments.callee.name}(${n})`);
console.log(`is ${n} < 1?`, n < 1);
if (n < 1) {
console.log(`so we're going to return [] back to the caller\n↓`);
return [];
}
console.log(`so we call countup(${n-1})\n↓`);
@charlesroper
charlesroper / wslton.omp.json
Last active February 26, 2021 23:11
Oh my Posh 3 custom theme - wslton. Based on negligible.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "plain",
const express = require("express");
const fetch = require("node-fetch");
const cors = require("cors");
const app = express();
const NYT = {
endpoint: "https://api.nytimes.com/svc/topstories/v2/",
apiKey: process.env.NYT_API_KEY
};
# Know the id of the username in the original distro that was exported
wsl -d Ubuntu-20.04 -u charlesr -e id -u
# Outputs 1000
# Knowing the id of the username in the distro that was created by importing the tar image
wsl -d UbuntuShropBot -u charlesr -e id -u
# Outputs 1000
# I would want to use this distroname and id, to set this user as the default login profile of WSL.
# I set this up in Windows Registry with the line snippet below:
@charlesroper
charlesroper / bigr2.html
Last active December 6, 2020 03:22
brc-atlas-bigr test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>brc-atlas-bigr test</title>
<script src="https://unpkg.com/brc-atlas-bigr/dist/bigr.min.umd.js"></script>
<script src="https://unpkg.com/[email protected]/dist/FileSaver.js"></script>
</head>
@charlesroper
charlesroper / All non-FSC users not enrolled on any courses.sql
Created October 13, 2020 19:00
All non-FSC users not enrolled on any courses
SELECT DISTINCT
u.id,
u.username,
u.firstname,
u.lastname,
u.email
FROM
mdl_user u
LEFT JOIN mdl_user_enrolments e ON u.id = e.userid
LEFT JOIN mdl_role_assignments a ON u.id = a.userid