Skip to content

Instantly share code, notes, and snippets.

View tylerstillwater's full-sized avatar

Tyler Stillwater tylerstillwater

View GitHub Profile
@tylerstillwater
tylerstillwater / gist:e4a3312239496de72007
Created December 20, 2014 18:21
Sublime Text Settings for Golang
{
"snippets": [
{
"match": {"global": true, "pkgname": ".", "fn": ".*_test.go"},
"snippets": [
{"text": "func Test", "title": "", "value": "func Test${1:ObjectName}${2:TestName}(t *testing.T) {\n\t$0\n}"},
{"text": "func Benchmark", "title": "", "value": "func Benchmark${1:ObjectName}${2:BenchmarkName}(b *testing.B) {\n\n\tb.StopTimer()\n\n\t$0\n\n\tb.StartTimer()\n\n\tfor i := 0; i < b.N; i++ {\n\t\t\n\t}\n\n}"},
{"text": "func Example", "title": "", "value": "func Example${1:ObjectName}${2:ExampleName}() {\n\n\t$0\n\n\t// Output:\n\t// \n\n}"}
]
},
{
"snippets": [
{
"match": {"global": true, "pkgname": ".", "fn": ".*_test.go"},
"snippets": [
{"text": "func Test", "title": "", "value": "func Test${1:ObjectName}${2:TestName}(t *testing.T) {\n\t$0\n}"},
{"text": "func Benchmark", "title": "", "value": "func Benchmark${1:ObjectName}${2:BenchmarkName}(b *testing.B) {\n\n\tb.StopTimer()\n\n\t$0\n\n\tb.StartTimer()\n\n\tfor i := 0; i < b.N; i++ {\n\t\t\n\t}\n\n}"},
{"text": "func Example", "title": "", "value": "func Example${1:ObjectName}${2:ExampleName}() {\n\n\t$0\n\n\t// Output:\n\t// \n\n}"}
]
}
//
// TBSplitViewController.h
//
// Created by Tyler Bunnell on 8/4/12
// Released under the have fun with this and make cool stuff license.
//
#import <UIKit/UIKit.h>
@interface TBSplitViewController : UISplitViewController
@tylerstillwater
tylerstillwater / gist:1241324
Created September 25, 2011 23:37
Xcode 4 Available Formatting Options
DVTTextAlignConsecutiveSlashSlashComments
DVTTextAutoHighlightTokens
DVTTextAutoHighlightTokensDelay
DVTTextAutoIndentCharacters
DVTTextAutoInsertCloseBrace
DVTTextAutoInsertOpenBracket
DVTTextAutoSuggestCompletions
DVTTextAutoSuggestCompletionsDelay
DVTTextAutoSuggestCompletionsStyle
DVTTextCompletionsIncludeParameters