This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension ImageConvertible where Self: RawRepresentable, Self.RawValue == String { | |
var image: UIImage? { | |
return UIImage(named: self.rawValue) | |
} | |
} | |
extension UIImage { | |
convenience init?<T: RawRepresentable>(image: T) where T.RawValue == String { | |
self.init(named: image.rawValue) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Remote.swift | |
// | |
// Created by BJ Miller on 3/7/20. | |
// Copyright © 2020 BJ Miller. All rights reserved. | |
// | |
import Foundation | |
import Combine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change `excludesfile` location | |
# change `standup` email address | |
# change `user`: `name` and `email` | |
# change `commit`: `template` location | |
[core] | |
editor = vim | |
excludesfile = /Users/user/.gitignore_global | |
[remote "origin"] | |
push = HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Case-insensitive searching. | |
set ignorecase | |
" But case-sensitive if expression contains a capital letter. | |
set smartcase | |
" Default to global substitutions on lines | |
set gdefault | |
" Use the system pasteboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/swift | |
import Foundation | |
@discardableResult | |
func shell(_ args: String...) -> Int32 { | |
let task = Process() | |
task.launchPath = "/usr/bin/env" | |
task.arguments = args | |
task.launch() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>IDECodeSnippetCompletionPrefix</key> | |
<string>vctest</string> | |
<key>IDECodeSnippetCompletionScopes</key> | |
<array> | |
<string>TopLevel</string> | |
</array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gem home for ruby gem installation to not need sudo to system path | |
export GEM_HOME="$HOME/.gems" | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/bjmiller/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
set exrc | |
set secure | |
au BufNewFile,BufRead Podfile set ft=ruby | |
au BufNewFile,BufRead Appfile set ft=ruby | |
au BufNewFile,BufRead Deliverfile set ft=ruby | |
au BufNewFile,BufRead Fastfile set ft=ruby |