Skip to content

Instantly share code, notes, and snippets.

package main
import (
"encoding/json"
"fmt"
"time"
)
//<start id="refactoredticket">
type TicketDisposition int
.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
package main
import (
"archive/zip"
"fmt"
"io"
"log"
"os"
)
// 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"
package main
import (
"net/http"
"github.com/russross/blackfriday"
)
func main() {
http.HandleFunc("/markdown", GenerateMarkdown)
# 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'
# ~/.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
@rocknrollMarc
rocknrollMarc / .guard.rb
Last active August 29, 2015 14:13 — forked from doitian/.guard.rb
require 'guard/notifier'
notifiers_options = {
:emacs => {
:fontcolor => "#acbc90",
:default => "#1e2320",
:success => "#013009",
:failed => "#310602",
:pending => "#534626"
},
@rocknrollMarc
rocknrollMarc / gist:e1e16cf2186de420e759
Last active August 29, 2015 14:08
undefined method `relation_delegate_class'
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
@rocknrollMarc
rocknrollMarc / GistList!.md
Created November 5, 2014 19:08
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text