View gist:8486205
diff --git a/doc/builder.go b/doc/builder.go
index f772f54..c3b2203 100644
--- a/doc/builder.go
+++ b/doc/builder.go
@@ -560,6 +560,7 @@ func newPackage(dir *gosrc.Directory) (*Package, error) {
if pkg.ImportPath == "builtin" {
mode |= doc.AllDecls
}
+ mode = doc.AllDecls | doc.AllMethods
View story_of_my_life.go
for {
var hmmWhyNotDoItLikeThis Idea = myself.GetNextIdea()
software := hmmWhyNotDoItLikeThis.UnderlyingSoftware()
if software.IsOpenSource() || software.OwnerCompany().DoesEmploy(myself) {
ideaStatus, understanding = hmmWhyNotDoItLikeThis.Evaluate(software.GetSourceCode())
if ideaStatus == GoodIdea ||
(ideaStatus == BadIdea && understanding != nil) {
View gist:7634341
package main
import "github.com/sergi/go-diff/diffmatchpatch"
import "bytes"
import "os"
import "os/exec"
import "io/ioutil"
func diff_native(s1, s2 string) string {
View gist:7346402
View gist:6927554
$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
View gist:30a39a79e7db8c343911
package main
import "fmt"
import "testing"
import "math/rand"
import "time"
var result bool
func StrCmp(n string) bool {
View gist:5274949
x := 0
y := func2(func1(x, 5))
y = func3(y)
0 =: x
((x, 5)func1)func2 =: y
(y)func3 = y
0 x
x,5 func1 func2 y
View self-rep.cpp
#include <iostream>
#include <sstream>
void print(std::stringstream & s, std::string line)
{
std::cout << line << std::endl;
std::string::size_type n = 0;
while (std::string::npos != (n = line.find("\\", n)))
{
View MutuallyConnectable.h
#pragma once
#ifndef __MutuallyConnectable_H__
#define __MutuallyConnectable_H__
// Usage: Suppose you want to have two classes A and B that are mutually connected to each other.
//
// Derive the class A from MutuallyConnectable<A, B> where A is the class you're deriving
// and B is the other class you want to make mutual connections with.
// Derive the class B from MutuallyConnectable<B, A>.
//