Skip to content

Instantly share code, notes, and snippets.

@wuftymerguftyguff
wuftymerguftyguff / Common Swift String Extensions
Created October 13, 2017 21:24 — forked from sketchytech/Common Swift String Extensions
Added and amended to use pure Swift where possible
import Foundation
extension String
{
// Works in Xcode but not Playgrounds because of a bug with .insert()
mutating func insertString(string:String,ind:Int) {
var insertIndex = advance(self.startIndex, ind, self.endIndex)
for c in string {
@wuftymerguftyguff
wuftymerguftyguff / git-oneline-date-and-message.sh
Created July 12, 2017 15:08 — forked from seeflanigan/git-oneline-date-and-message.sh
git oneline for short date and commit message within a range
git log --oneline --after="2016-03-28" --before="2016-04-03" --pretty=format:"%ad, %s" --date=short