I hereby claim:
- I am aladine on github.
- I am danlepetit (https://keybase.io/danlepetit) on keybase.
- I have a public key ASDg2p2Phi0lwcxyNhck4usJ11npKCErmZFwSURBeC-ERwo
To claim this, I am signing this object:
| class Solution { | |
| fun swapColor(nums: IntArray, k: Int, l: Int) { | |
| val tmp = nums[k] | |
| nums[k] = nums[l] | |
| nums[l] = tmp | |
| } | |
| fun sortColors(nums: IntArray) { | |
| var l = 0 | |
| var m = 0 |
| CXX = g++ | |
| CPPFLAGS = -Wall -std=c++11 -O2 | |
| LD_FLAGS = | |
| FILE = mock/contest | |
| SOURCES = $(FILE).cpp | |
| OBJECTS = $(SOURCES:.cpp=.o) | |
| EXE = $(FILE).out | |
| all: $(SOURCES) $(EXE) |
| { | |
| "basics": { | |
| "name": "Trong Dan Tran", | |
| "picture": "https://avatars1.githubusercontent.com/u/287410?v=4", | |
| "label": "Senior Software Developer Engineer", | |
| "headline": "Experienced Software Developer Engineer | Mobile & Backend Systems Specialist | Cloud-Driven Solutions", | |
| "summary": "", | |
| "website": null, | |
| "blog": "https://aladine.gitlab.io/blog/", | |
| "yearsOfExperience": 13, |
I hereby claim:
To claim this, I am signing this object:
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.
| 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]; |
| #!/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!
| // ErrMaxConcurrency occurs when too many of the same named command are executed at the same time. | |
| ErrMaxConcurrency = CircuitError{Message: "max concurrency"} | |
| // ErrCircuitOpen returns when an execution attempt "short circuits". This happens due to the circuit being measured as unhealthy. | |
| ErrCircuitOpen = CircuitError{Message: "circuit open"} | |
| // ErrTimeout occurs when the provided function takes too long to execute. | |
| ErrTimeout = CircuitError{Message: "timeout"} |
| // CommandConfig is used to tune circuit settings at runtime | |
| type CommandConfig struct { | |
| Timeout int `json:"timeout"` | |
| MaxConcurrentRequests int `json:"max_concurrent_requests"` | |
| RequestVolumeThreshold int `json:"request_volume_threshold"` | |
| SleepWindow int `json:"sleep_window"` | |
| ErrorPercentThreshold int `json:"error_percent_threshold"` | |
| } |