Skip to content

Instantly share code, notes, and snippets.

View macserv's full-sized avatar
💭
Dev dev dev.

Matthew Judy macserv

💭
Dev dev dev.
View GitHub Profile
@macserv
macserv / ConfigurationOperator.swift
Last active April 23, 2024 14:26
Swift "Configuration" Operator
//
// ConfigurationOperator.swift
//
// Created by Matthew L. Judy on 2024/3/21.
//
/// Configuration Operator:
/// Provides an expressive way to instantiate, configure, and assign an object
/// in a single perceived step, reducing the boilerplate necessary to achieve
@macserv
macserv / Date+FirstAndLastDayOfMonth.swift
Last active October 31, 2019 22:22
Date Extensions for First and Last Day of Month
extension Date
{
var startOfMonth : Date?
{
let calendar = Calendar.current
let components = calendar.dateComponents([.year, .month], from: self)
let firstDayDate = calendar.date(from: components)
return firstDayDate
}
@macserv
macserv / FruitCorners.txt
Created May 8, 2019 16:16
A brief history of the Fruit Corners brand (1980–1987) from General Mills
Thank you for contacting General Mills with your inquiry. We have enclosed all information we have available regarding the Fruit Corners line of products.
We hope you find this information helpful. Please let us know if we can help you again
Sincerely,
Katie Gafler
Consumer Services
@macserv
macserv / mktsusbstick.zsh
Last active July 21, 2021 06:16
Script to format a USB drive and make it a bootable ThinStation disk.
#!/usr/bin/zsh
#
# mktsusbstick
# Configure a specific disk as a ThinStation USB Stick
#
###
# CONFIGURATION
#
@macserv
macserv / gist:5446955
Last active December 16, 2015 14:09
WIP Uncrustify settings for Objective-C files
tok_split_gte=false
utf8_byte=false
utf8_force=false
indent_cmt_with_tabs=false
indent_align_string=false
indent_braces=false
indent_braces_no_func=false
indent_braces_no_class=false
indent_braces_no_struct=false
indent_brace_parent=false
@macserv
macserv / gist:4949067
Last active April 15, 2016 18:58
My current Xcode build warning configuration
OTHER_CFLAGS = -Weverything -Wno-gnu -Wno-objc-missing-property-synthesis -Wno-undef -Wno-sign-compare -Wno-switch-enum -Wno-receiver-is-weak -Wno-direct-ivar-access -Wno-arc-repeated-use-of-weak -Wno-assign-enum -Wno-vla -Wno-documentation -Wno-documentation-unknown-command -Wno-padded -Wno-cstring-format-directive
// Software Versions
// Xcode: 7.2.1
// Apple LLVM version 7.0.2 (clang-700.1.81)
// Target: x86_64-apple-darwin14.5.0