This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.
This file contains hidden or 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
pub const WHITE: usize = 0; // X | |
pub const BLACK: usize = 1; // O | |
pub const FIELD: u32 = 0x1FF << 16; | |
pub const SQUARE: u32 = 0xFFFF; | |
pub const ALL_FIELDS_LEGAL: u32 = 0x1 << 25; | |
pub const DIAGS: [u32; 2] = [0o421, 0o124]; | |
pub const ROWS: [u32; 3] = [0o700, 0o070, 0o007]; | |
pub const COLS: [u32; 3] = [0o111, 0o222, 0o444]; |
This file contains hidden or 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
#!/bin/sh | |
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$") | |
if [[ "$STAGED_GO_FILES" = "" ]]; then | |
exit 0 | |
fi | |
GOLINT=$GOPATH/bin/golint | |
GOIMPORTS=$GOPATH/bin/goimports |
Created from the plain text reference card on orgmode.org Download this file, and open it in Emacs org-mode!
This file contains hidden or 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 ( | |
"myapp/webserver/app/common" | |
"github.com/golang/glog" | |
"github.com/gorilla/mux" | |
"encoding/json" | |
"strconv" | |
"flag" | |
"fmt" |