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
{"0": {"o": {"l": [0, 1], "n": 0}}, "1": {"o": {"l": [0, 1], "n": 1}}, "2": {"o": {"l": [0, 1], "n": 2}}, "3": {"o": {"l": [0, 1], "n": 3}}, "4": {"o": {"l": [0, 1], "n": 4}}, "5": {"o": {"l": [0, 1], "n": 5}}, "6": {"o": {"l": [0, 1], "n": 6}}, "7": {"o": {"l": [0, 1], "n": 7}}, "8": {"o": {"l": [0, 1], "n": 8}}, "9": {"o": {"l": [0, 1], "n": 9}}, "10": {"o": {"l": [0, 1], "n": 10}}, "11": {"o": {"l": [0, 1], "n": 11}}, "12": {"o": {"l": [0, 1], "n": 12}}, "13": {"o": {"l": [0, 1], "n": 13}}, "14": {"o": {"l": [0, 1], "n": 14}}, "15": {"o": {"l": [0, 1], "n": 15}}, "16": {"o": {"l": [0, 1], "n": 16}}, "17": {"o": {"l": [0, 1], "n": 17}}, "18": {"o": {"l": [0, 1], "n": 18}}, "19": {"o": {"l": [0, 1], "n": 19}}, "20": {"o": {"l": [0, 1], "n": 20}}, "21": {"o": {"l": [0, 1], "n": 21}}, "22": {"o": {"l": [0, 1], "n": 22}}, "23": {"o": {"l": [0, 1], "n": 23}}, "24": {"o": {"l": [0, 1], "n": 24}}, "25": {"o": {"l": [0, 1], "n": 25}}, "26": {"o": {"l": [0, 1], "n": 26}}, "27": {"o": {"l": [0, 1], "n": 27}}, "28": { |
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
# Calico Version v3.1.1 | |
# https://docs.projectcalico.org/v3.1/releases#v3.1.1 | |
# This manifest includes the following component versions: | |
# calico/node:v3.1.1 | |
# calico/cni:v3.1.1 | |
# calico/kube-controllers:v3.1.1 | |
# This ConfigMap is used to configure a self-hosted Calico installation. | |
kind: ConfigMap | |
apiVersion: v1 |
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
global | |
log 127.0.0.1 local0 debug | |
maxconn 65000 | |
daemon | |
pidfile /var/run/haproxy.pid | |
nbproc 1 | |
defaults | |
option dontlognull |
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
func Profile(params martini.Params, r render.Render, req *http.Request, data base.TmplData, session sessions.Session) { | |
data["Title"] = "Profile" | |
// TODO: Need to check view self or others. | |
user, err := models.GetUserByName(params["username"]) | |
if err != nil { | |
log.Handle(200, "user.Profile", data, r, err) | |
return | |
} |
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
var ips = [[0, false],[16777216, true],[16777472, false],[16778240, true],[16779264, false],[16781312, true],[16785408, false],[16793600, true],[16842752, false],[16843008, true],[16843264, false],[16859136, true],[16908288, false],[16909056, true],[16909312, false],[16941056, true],[16973824, false],[17039360, true],[17039616, false],[17072128, true],[17301504, false],[17367040, true],[17432576, false],[17435136, true],[17435392, false],[17465344, true],[17563648, false],[17825792, true],[18350080, false],[18874368, true],[19726336, false],[19791872, true],[19922944, false],[20185088, true],[20447232, false],[20971520, true],[21233664, false],[21495808, true],[22020096, false],[23068672, true],[24379392, false],[24641536, true],[28573696, false],[28966912, true],[29097984, false],[29884416, true],[30015488, false],[30408704, true],[92618752, false],[92635136, true],[167772160, false],[184549376, true],[234881024, false],[234883072, true],[234884096, false],[234885120, true],[234946560, false],[234947584, tru |
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 qbs | |
import ( | |
"database/sql" | |
"errors" | |
"fmt" | |
"log" | |
"os" | |
"reflect" | |
"strings" |
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
diff --git a/qbs.go b/qbs.go | |
index f3a6774..558657b 100644 | |
--- a/qbs.go | |
+++ b/qbs.go | |
@@ -273,6 +273,7 @@ func (q *Qbs) doQueryRow(out interface{}, query string, args ...interface{}) err | |
if err != nil { | |
return q.updateTxError(err) | |
} | |
+ defer stmt.Close() | |
rows, err := stmt.Query(args...) |
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 ( | |
"fmt" | |
"github.com/astaxie/beego/orm" | |
_ "github.com/lib/pq" | |
) | |
// Model Struct |
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 ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"os/signal" | |
"path/filepath" | |
"runtime" |