Skip to content

Instantly share code, notes, and snippets.

View blakemerryman's full-sized avatar

Blake Merryman blakemerryman

View GitHub Profile
@blakemerryman
blakemerryman / Glob.swift
Last active January 31, 2019 22:20 — forked from listrophy/Glob.swift
Wrap glob(3) in Swift
//
// Glob.swift
//
// Created by Brad Grzesiak on 6/25/15.
// Copyright © 2015 Bendyworks Inc.
// Released under the Apache v2 License.
//
import Darwin
@blakemerryman
blakemerryman / SwiftInST3.md
Last active June 18, 2018 20:41 — forked from Star-Lord-XIII/SwiftInST3.md
Running Swift scripts from Sublime Text 3 in MacOSX10.11

Adding Swift Build System

  • Open Sublime Text 3
  • Go To Preferences > Browse Packages...
  • Add a file named Swift.sublime-build inside Packages directory.
  • Copy the following script in Swift.sublime-build file.
{
 "shell_cmd": "xcrun swift \"$file\"",
git config --global alias.trim '!f() { git branch | grep -v "\*" | xargs -n 1 git branch -D; }; f'