Skip to content

Instantly share code, notes, and snippets.

View devinschumacher's full-sized avatar
🦩
stayin' funky

Devin Schumacher devinschumacher

🦩
stayin' funky
View GitHub Profile
@devinschumacher
devinschumacher / enqueue.php
Created October 8, 2022 15:27
an example of how plugins globally enqueue styles & scripts onto your sites
<?php
function plugin-namespace_enqueue_style() {
wp_enqueue_style( 'my-css-handle', 'style.css', false );
}
function plugin-namespace_enqueue_script() {
wp_enqueue_script( 'my-js-handle', 'filename.js', false );
}
@devinschumacher
devinschumacher / muhammad-ali.md
Last active April 25, 2023 22:28
Muhammad Ali

Muhammad Ali, born Cassius Marcellus Clay Jr. on January 17, 1942, was an American professional boxer and an activist.

Regarded as one of the most significant sports figures of the 20th century and is frequently ranked as the greatest heavy
@devinschumacher
devinschumacher / test.xml
Created September 17, 2023 11:45
test.xml
This file has been truncated, but you can view the full file.
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="to">
<siteinfo>
<sitename>Wikipedia</sitename>
<dbname>towiki</dbname>
<base>https://to.wikipedia.org/wiki/Peesi_tali_fiefia</base>
<generator>MediaWiki 1.41.0-wmf.24</generator>
<case>first-letter</case>
<namespaces>
<namespace key="-2" case="first-letter">Media</namespace>
<namespace key="-1" case="first-letter">Special</namespace>
@devinschumacher
devinschumacher / test.html
Last active September 17, 2023 11:50
test.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html;">
<meta name="description" content="pro boxer">
<title>
BoxRec: Gervonta Davis
@devinschumacher
devinschumacher / mediumclapper.js
Last active October 27, 2023 00:24
MediumClapper, by SERP
let clapButton = document.querySelector('button[data-testid="headerClapButton"]');
if (clapButton) {
const events = ['mousedown', 'mouseup', 'click'];
async function performClap() {
for (let i = 0; i < 50; i++) {
events.forEach(eventType => {
let event = new MouseEvent(eventType, {
'view': window,
'bubbles': true,
@devinschumacher
devinschumacher / create-ai-generated-images-in-bulk-via-csv-dale-3-api.ipynb
Last active December 10, 2023 22:15
create-ai-generated-images-in-bulk-via-csv-dale-3-api.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devinschumacher
devinschumacher / write-tests-for-defects-regressions.md
Last active December 14, 2023 07:55
Write Tests for Defects & Regressions - Continuous Integration: Improving Software Quality and Reducing Risk - Martin Fowler
@devinschumacher
devinschumacher / script.js
Created December 31, 2023 04:37
JavaScript to click all input elements with the value "viewed" on Github code reviews (aka click all check boxes in code review with javascript in dev tools console
// JavaScript to click all input elements with the value "viewed" on Github code reviews
// AKA - click all check boxes in code review with javascript in dev tools console
// Paste into dev tools console
document.querySelectorAll('input').forEach(input => {
if (input.value.toLowerCase() === 'viewed') {
input.click();
}
});
@devinschumacher
devinschumacher / stepOne.js
Created January 14, 2024 21:59
Bulk transfer Discussions on Github workaround (at least somewhat bulk)
// open each Discussion in a new tab
document.querySelectorAll('a[data-hovercard-type="discussion"]').forEach(link => {
link.setAttribute('target', '_blank');
link.click();
})