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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
) | |
//<start id="refactoredticket"> | |
type TicketDisposition int |
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
.PHONY: build doc fmt lint run test vendor_clean vendor_get vendor_update vet | |
# Prepend our _vendor directory to the system GOPATH | |
# so that import path resolution will prioritize | |
# our third party snapshots. | |
GOPATH := ${PWD}/_vendor:${GOPATH} | |
export GOPATH | |
default: build |
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
package main | |
import ( | |
"archive/zip" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
) |
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
// Copyright 2015, rocknrollmarc. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// balancer.go [created: Thu, 19 Feb 2015] | |
package main | |
import ( | |
"flag" |
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
package main | |
import ( | |
"net/http" | |
"github.com/russross/blackfriday" | |
) | |
func main() { | |
http.HandleFunc("/markdown", GenerateMarkdown) |
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
# Aliases in this file are bash and zsh compatible # Don't change. The following determines where YADR is installed. | |
yadr=$HOME/.yadr | |
alias .='pwd' | |
# Get operating system | |
platform='unknown' | |
unamestr=$(uname) | |
if [[ $unamestr == 'Linux' ]]; then | |
platform='linux' | |
elif [[ $unamestr == 'Darwin' ]]; then | |
platform='darwin' |
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
# ~/.tmuxinator/rails.yml | |
name: rails | |
root: ~/workspace/ruby/rails/ember-cli/address-book | |
# Optional tmux socket | |
# socket_name: foo | |
# Runs before everything. Use it to start daemons etc. | |
pre: postgres, bundle install |
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
require 'guard/notifier' | |
notifiers_options = { | |
:emacs => { | |
:fontcolor => "#acbc90", | |
:default => "#1e2320", | |
:success => "#013009", | |
:failed => "#310602", | |
:pending => "#534626" | |
}, |
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
require 'set' | |
require 'active_support/concern' | |
require 'active_support/deprecation' | |
module ActiveRecord | |
module Delegation # :nodoc: | |
module DelegateCache | |
def relation_delegate_class(klass) # :nodoc: | |
@relation_delegate_cache[klass] | |
end |