Skip to content

Instantly share code, notes, and snippets.

View murrayinman's full-sized avatar

Murray Inman murrayinman

View GitHub Profile
@murrayinman
murrayinman / fixQMImages.js
Created July 21, 2023 01:31
This will search the page for `https\://` and strip the `\` character from image src attributes.
(function() {
var imgElements = document.getElementsByTagName('img');
for (var i = 0; i < imgElements.length; i++) {
var src = imgElements[i].getAttribute('src');
var modifiedSrc = src.replace(/https\\:/g, 'https:');
imgElements[i].setAttribute('src', modifiedSrc);
}
console.log('Image URLs fixed!');
})();
@murrayinman
murrayinman / JPN-AudioAssignments.html
Created January 5, 2023 01:05
This code can be pasted into a content block to provide an audio recorder and a list of audio prompts to respond to.
<!-- BEGIN COPY BELOW THIS LINE -->
<div id="audioRecorder-list" class="ebox-borders">
<h4>Lesson 14 Final Exam Oral (40 points)</h4>
<p>For your Midterm Oral Exam, follow the directions on this page to record your work. Then click the Lesson 8 Midterm Exam Oral link below to upload your recording for grading. Don't forget to hit <strong>Submit</strong> at the bottom after uploading your recording.</p>
<p>Record yourself responding to the following prompts in complete sentences in Japanese. Your answers should be true for you.</p>
<p>You will be graded on the appropriateness of your response, as well as your pronunciation in Japanese. Be sure to listen to your instructor's feedback on your pronunciation.</p>
<p>Press <strong>Pause Recording</strong> after you've recorded each response and <strong>Save File</strong> once you are finished recording. Review your recording before submitting it. Be sure to listen to your instructor's feedback on this assessment.</p>
<p>If you see sound waves in the box below, you
Clip Path tooltip pointer
M0,0c10.6919355,1.0289959,18.997036,8.6949739,18.9980297,18h0.0039406c0-9.3050261,8.3060932-16.9710045,18.9980297-18H0z
https://codepen.io/Mamboleoo/pen/dyvdqRR?editors=0100
M 2,2 L 5,2 7,4 5,6 2,6 C 0,6 0,2 2,2z
https://svg-path-visualizer.netlify.app/?ref=tiny-helpers#M%202%2C2%20L%205%2C2%207%2C4%205%2C6%202%2C6%20C%200%2C6%200%2C2%202%2C2z
@murrayinman
murrayinman / copyFileURLinCA.user.js
Last active October 13, 2022 16:17
Adds a copy button to copy the file URL
// ==UserScript==
// @name Copy file URL in CA File Manager
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Adds a copy button to copy the file URL
// @author Murray Inman
// @updateURL https://gist.github.com/murrayinman/e841ddf6c8b8bcf5ca1978ada9683352/raw/copyFileURLinCA.user.js
// @match https://riosalado.coursearc.com/file-manager*
// @match https://riosalado.coursearc.com/index.php/tools/required/files/properties*
// @grant GM_setClipboard

Regex Recipes

US Phone Number Check

/^(\d{3}-|\(\d{3}\)\s?)\d{3}-\d{4}|[0-9]{10}$

Tool for Auto-Locking and Unlocking CourseArc Pages

First, install the Tampermonkey extension if you don't have it. Then click on the links below and Tampermonkey should automatically recognize the user script and ask if you want to install it.

Unlock Them All 🔓

While enabled, this will auto unlock any CourseArc page you load that is locked. https://gist.github.com/murrayinman/5702945f3f41f8bdcbda5f0ed1e59552/raw/UnlockThemAll.user.js

Lock Them All 🔒

While enabled, this will auto lock any CourseArc page you load that is unlocked.

@murrayinman
murrayinman / release.yml
Created March 24, 2022 16:27 — forked from braem/release.yml
GitHub action for release and deploy of a VS Code extension
on:
workflow_dispatch
name: Manual Release and Deploy
jobs:
manual_release:
runs-on: ubuntu-latest
env:
PACKAGE_NAME: my-package # package name in package.json
steps:
@murrayinman
murrayinman / workflow.yaml
Created March 24, 2022 16:23 — forked from lnash94/workflow.yaml
GitHub action flow for publishing the Vs-code plugin
on:
release:
types: [published]
name: Publish Extension with json
jobs:
publish:
runs-on: ubuntu-latest
steps:
@murrayinman
murrayinman / PauseThePage.js
Created October 5, 2021 21:02
Script to fire in the browser console to pause the page. Helpful for catching and inspecting hover events.
setTimeout(() => { debugger; }, 5000);
@murrayinman
murrayinman / MLAcontainers.md
Last active August 19, 2021 20:48
Example code for creating accessible MLA container diagrams. - Rio Salado College

MLA Container Diagram Example Code

Formatting the Container Styles

Variables to Change the Styles

Copy and paste the following code and adjust the colors and measurements by changing the style variables under the BEGIN STYLE VARIABLES section below.

    <style>
      :root {
      /* ---------- BEGIN STYLE VARIABLES ---------- */