Skip to content

Instantly share code, notes, and snippets.

View JohnnyD1776's full-sized avatar
πŸ‘¨β€πŸ’»
Coding

Johnny D JohnnyD1776

πŸ‘¨β€πŸ’»
Coding
View GitHub Profile
@JohnnyD1776
JohnnyD1776 / TransitionDemos.swift
Last active September 26, 2025 14:06
Demonstration of SwiftUI Transitions
/*
Filename: TransitionDemos.swift
Project: Demo Project
Created by John Durcan on 02/09/2025.
Copyright Β© 2025 Itch Studio Ltd.. All rights reserved.
@JohnnyD1776
JohnnyD1776 / GeometryDemo.swift
Last active September 26, 2025 14:09
SwiftUI .matchedGeometryEffect Demo
/*
Filename: GeometryDemo.swift
Project: Demo Project
Created by John Durcan on 25/09/2025.
Copyright Β© 2025 Itch Studio Ltd.. All rights reserved.
@JohnnyD1776
JohnnyD1776 / MorphingStarView.swift
Last active September 26, 2025 14:07
Demo of the Morphing Star
/*
Filename: MorphingStarView.swift
Project: Demo Project
Created by John Durcan on 24/09/2025.
Copyright Β© 2025 Itch Studio Ltd.. All rights reserved.
@JohnnyD1776
JohnnyD1776 / .gitignore
Created July 12, 2024 21:28
Xcode Common .gitignore
# Xcode .gitignore template by github.com/JohnnyD
## User settings
xcuserdata/
## Build products
build/
DerivedData/
## Various settings
@JohnnyD1776
JohnnyD1776 / update_eml_dates.sh
Created July 5, 2024 12:24
Update extracted emails Creation Date to match email sent date
#!/bin/bash
# Instructions: Copy to your directory, chmod +x update_eml_dates.sh, then ./update_eml_dates.sh /path/to/your/eml/files
# Directory containing .eml files
DIR=$1
# Function to extract the sent date from the email header
extract_date() {
awk '/^Date: / {print substr($0, 7); exit}' "$1"
}
@JohnnyD1776
JohnnyD1776 / extract_attachments.sh
Last active July 5, 2024 12:38
Extract Attachments from Emails and set creation date to match email sent date.
#!/bin/bash
# Note, requires `ripmime` package.
# save file and run chmod +x extract_attachments.sh
# Instructions: with a folder of .eml files, run as ./extract_attachments.sh "/path/to/your/eml/files" "/path/to/output/directory"
# Directory containing .eml files
DIR=$1
# Output directory for attachments
OUTPUT_DIR=$2
@JohnnyD1776
JohnnyD1776 / GitCommitTemplate.md
Created January 31, 2024 12:28
Git Commit Template

Title

[feature | fix | fault | refactor | doc | test | build] - Subject line (try to keep under 50 characters)

Changes Summary

Short summary of changes and related issues. Include motivation and context.

Dev Notes

  • none
@JohnnyD1776
JohnnyD1776 / IDETemplateMacros.plist
Created January 31, 2024 12:26
Xcode File Header template - store file in projectname.xcodeproj/xcshareddata
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string>
// ___FILENAME___
// ___PROJECTNAME___
//
@JohnnyD1776
JohnnyD1776 / PullRequestTemplate.md
Created January 31, 2024 11:08
Git Pull Request Template

Title

[feature | fix | fault | refactor | doc | test | build] - Subject line (try to keep under 50 characters)

Changes Summary

Short summary of changes and related issues. Include motivation and context.

Dev Notes

  • none
@JohnnyD1776
JohnnyD1776 / .gitignore
Created January 31, 2024 11:05 — forked from Johnny1776/.gitignore
gitignore
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
*~
*.sw[mnpcod]
*.log
*.tmp
*.tmp.*
log.txt
*.sublime-project