Skip to content

Instantly share code, notes, and snippets.

Tyler Stillwater tylerb

Block or report user

Report or block tylerb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tylerb
tylerb / gist:1241324
Created Sep 25, 2011
Xcode 4 Available Formatting Options
View gist:1241324
DVTTextAlignConsecutiveSlashSlashComments
DVTTextAutoHighlightTokens
DVTTextAutoHighlightTokensDelay
DVTTextAutoIndentCharacters
DVTTextAutoInsertCloseBrace
DVTTextAutoInsertOpenBracket
DVTTextAutoSuggestCompletions
DVTTextAutoSuggestCompletionsDelay
DVTTextAutoSuggestCompletionsStyle
DVTTextCompletionsIncludeParameters
View TBSplitViewController.h
//
// 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
View GoSublime.sublime-settings
{
"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}"}
]
}
@tylerb
tylerb / gist:e4a3312239496de72007
Created Dec 20, 2014
Sublime Text Settings for Golang
View gist:e4a3312239496de72007
{
"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}"}
]
},
View elvis_test_results.txt
BenchmarkElvisBill-8 500000 6182 ns/op 3016 B/op 52 allocs/op
BenchmarkElvisTyler-8 1000000 2049 ns/op 1456 B/op 13 allocs/op
View elvis.go
// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
// Sample program that takes a stream of bytes and looks for the bytes
// “elvis” and when they are found, replace them with “Elvis”. The code
// cannot assume that there are any line feeds or other delimiters in the
// stream and the code must assume that the stream is of any arbitrary length.
// The solution cannot meaningfully buffer to the end of the stream and
// then process the replacement.
package main
@tylerb
tylerb / main.go
Last active Jul 18, 2019
Simulate io blocking
View main.go
// All material is licensed under the Apache License Version 2.0, January 2004
// http://www.apache.org/licenses/LICENSE-2.0
// This sample program demonstrates how the logger package works.
package main
import (
"fmt"
"log"
"os"
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

You can’t perform that action at this time.