Skip to content

Instantly share code, notes, and snippets.

View mackenly's full-sized avatar
👨‍💻
Focusing

Mackenly Jones mackenly

👨‍💻
Focusing
View GitHub Profile
@mackenly
mackenly / wordpress-plugin-action.yml
Last active March 1, 2024 23:31
Action for incrementing a WordPress plugin's version and zipping it into a release. Helps keep things tidy and automated.
name: Plugin Release Workflow
on:
push:
branches:
- main
jobs:
build-and-release:
timeout-minutes: 10
@mackenly
mackenly / market_research_mermaid.md
Created February 17, 2024 20:27
Example mermaid charts

Market Research Project Network

---
title: Market Research Project Network
---
classDiagram
    direction RL
    B <|-- A
 C &lt;|-- A
@mackenly
mackenly / design-system.css
Created October 19, 2023 17:47
Code Samples from King University Web Programming
/* import fonts */
@font-face {
font-family: "legacy-book";
src: url("./assets/fonts/LegacySansStd-Book.otf") format("opentype");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
@mackenly
mackenly / install-fonts.ps1
Created September 16, 2023 03:47
Install Fonts in a Particular Folder Using a PowerShell Script
function Install-Font {
param(
[string]$fontPath
)
$shell = New-Object -ComObject Shell.Application
$folder = $shell.Namespace(0x14)
$folder.CopyHere($fontPath)
}
@mackenly
mackenly / JavaArrayTest.java
Last active June 29, 2023 23:07
Test Java primitive int vs wrapper Integer speed and memory usage
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
/**
* Class Name: Test
* Purpose: Test primitive int vs wrapper Integer speed and memory usage
*/
public class JavaArrayTest {
/**
* Method Name: main
@mackenly
mackenly / keynote-to-images.scpt
Created June 17, 2023 22:30
Apple Script for converting a Keynote file to a folder of images. To use, create an Automator application and use an Apple Script block. Save the application to your desktop and you're good to go.
on run {input, parameters}
-- Validate input
if input is {} then
display alert "No file selected!" message "Drop a file on the action to process the keynote." as warning
return
end if
-- Declare variables
set fileName to POSIX path of (input as string)
@mackenly
mackenly / sftp.yml
Last active April 15, 2023 20:36
SFTP Upload Action Template
on: push
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
@mackenly
mackenly / state_centers.json
Created March 6, 2023 22:05
Center coordinate of each U.S. state
[
{
"state": "Alabama",
"latitude": 32.7794,
"longitude": -86.8287
},
{
"state": "Alaska",
"latitude": 64.0685,
"longitude": -152.2782
@mackenly
mackenly / Cypher.java
Created January 29, 2023 01:35
Java Ceaser Cipher
/**
* -------------------------------------------
* File name: Cypher.java
* Project Name: Ceaser Cipher
* Created By: Mackenly Jones
* Date: 4/12/22
* -------------------------------------------
*/
package CeaserCipher;
@mackenly
mackenly / Sorting.java
Created September 1, 2022 21:21
Sorting Algorithm Comparisons in Java
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
/**
* -------------------------------------------
* File name: Main.java
* Project Name: Sorting Algorithms
* Created By: Mackenly Jones
* -------------------------------------------