Skip to content

Instantly share code, notes, and snippets.

@lordnynex
lordnynex / template.html
Created August 8, 2016 03:26
A slightly better godoc2md template. Attempts to mimic godoc.org template by adding in anchor links, and index/files sections
{{with .PDoc}}
{{if $.IsMain}}
> {{ base .ImportPath }}
{{comment_md .Doc}}
{{else}}
# {{ .Name }}
` + "`" + `import "{{.ImportPath}}"` + "`" + `
* [Overview](#pkg-overview)
* [Index](#pkg-index){{if $.Examples}}
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
@lordnynex
lordnynex / Makefile
Created July 30, 2016 23:47 — forked from smagch/Makefile
Makefile for Golang project that has multiple packages
GO_LINT = ${GOPATH}/bin/golint
GO_VET = ${GOPATH}/bin/vet
# set your packages.
TARGETS = foo bar hoge
TARGETS_TEST = $(patsubst %,test-%, $(TARGETS))
TARGETS_LINT = $(patsubst %,lint-%, $(TARGETS))
TARGETS_VET = $(patsubst %,vet-%, $(TARGETS))
.PHONY: test lint vet $(TARGETS_TEST) $(TARGETS_LINT)
@lordnynex
lordnynex / Makefile
Created April 23, 2016 03:04 — forked from nl5887/Makefile
grapviz tcpdump
LAYOUT=circo
SOURCES = $(wildcard *.dot)
TARGETS = $(SOURCES:.dot=.svg)
%.svg:%.dot
dot -Tsvg -K${LAYOUT} "$^" -o "$@"
all: $(TARGETS)
clean:
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
error_log logs/error.log debug;
#pid logs/nginx.pid;
daemon off;

Keybase proof

I hereby claim:

  • I am lordnynex on github.
  • I am nynex (https://keybase.io/nynex) on keybase.
  • I have a public key ASCOaQTRUH1CBA2H-EnkNNgeFImEm-VNBkNZvRmIvYz9cAo

To claim this, I am signing this object: