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
sudo mdutil -E / |
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
version: '3.1' | |
services: | |
zoo1: | |
image: zookeeper | |
restart: always | |
hostname: zoo1 | |
volumes: | |
- ./data/zh1/data:/data | |
- ./data/zh1/datalog:/datalog |
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
activeDeadlineSeconds <integer> | |
affinity <Object> | |
nodeAffinity <Object> | |
preferredDuringSchedulingIgnoredDuringExecution <[]Object> | |
preference <Object> | |
matchExpressions <[]Object> | |
key <string> | |
operator <string> | |
values <[]string> | |
weight <integer> |
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
#line 3 "lex.yy.c" | |
#define YY_INT_ALIGNED short int | |
/* A lexical scanner generated by flex */ | |
#define FLEX_SCANNER | |
#define YY_FLEX_MAJOR_VERSION 2 | |
#define YY_FLEX_MINOR_VERSION 5 |
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 ( | |
"context" | |
"errors" | |
"fmt" | |
"math/rand" | |
"time" | |
) |
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
errors.New("invalid parameter a") | |
errors.New("invalid parameter b") | |
errors.New("Record Not Found") |
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
+-------------------------+ | |
| | | |
| | | |
+---------------------+ +----->| jekyll | | |
| | | | | | |
| | | +-------------------------+ | |
| Service +------+ | |
| | | |
| +------+ +-------------------------+ | |
+---------------------+ | | | |
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 service | |
import ( | |
pwi "pkg-without-interface" | |
) | |
type service struct {} | |
func (s *service) ListPosts() []Post { | |
posts := pwi.ListPosts() // ListPosts is a pkg function. |
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 ( | |
"database/sql" | |
_ "github.com/go-sql-driver/mysql" | |
) | |
func recordStats(db *sql.DB, userID, productID int64) (err error) { | |
tx, err := db.Begin() |
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 selectgo(cas0 *scase, order0 *uint16, ncases int) (int, bool) { | |
// ... | |
loop: | |
// ... | |
for i := 0; i < ncases; i++ { | |
casi = int(pollorder[i]) | |
cas = &scases[casi] | |
c = cas.c | |
switch cas.kind { |