Skip to content

Instantly share code, notes, and snippets.

View Mcrich23's full-sized avatar
⚒️
Building

Morris Richman Mcrich23

⚒️
Building
View GitHub Profile
@Mcrich23
Mcrich23 / Stem and Leaf Plot Generator.swift
Last active March 26, 2024 22:11
Stem and Leaf Plot Generator
import Foundation
import Cocoa
var outlierRecalculationOccured = false
var calculatedOutliers: [Float] = []
// Enter data to be used
let ogData: [Float] = [22, 19, 25, 27, 30, 22, 19, 16, 23, 25, 21, 27, 28, 24, 25, 30, 35, 23, 22, 27].sorted()
extension Float {
/// Rounds the Float to decimal places value
@Mcrich23
Mcrich23 / PortfolioKit-Example.json
Last active November 3, 2023 23:07
PortfolioKit Example
[
{
"name": "Safari",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple126/v4/f8/76/09/f876095c-4f99-f138-d380-0420e21c3c89/AppIcon-0-0-1x_U007emarketing-0-0-0-10-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/540x540bb.jpg",
"url": "https://apps.apple.com/us/app/safari/id1146562112",
"url_button_name": "Get",
"bundle_id": "com.apple.mobilesafari"
}
]
@Mcrich23
Mcrich23 / swiftlint-sample1.yml
Created July 11, 2023 15:44
A sample swiftlint config that I use along with https://github.com/SFSafeSymbols/SFSafeSymbols
# By default, SwiftLint uses a set of sensible default rules you can adjust:
disabled_rules: # rule identifiers turned on by default to exclude from running
- colon
- comma
- control_statement
- type_name
- trailing_whitespace
- identifier_name
- statement_position
- force_try
[
{
"image_url": "https://via.placeholder.com/150",
"name": "John Smith",
"bridge_location": "Coding Key Bridge",
"status": "Active"
},
{
"image_url": "https://via.placeholder.com/150",
"name": "Jane Doe",