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 ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "os/exec" |
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
| version: "3" | |
| services: | |
| aerospike: | |
| image: aerospike | |
| ports: | |
| - "3000:3000" | |
| volumes: | |
| - ./data:/opt/aerpsike/data | |
| - ./conf:/etc/aerpsike | |
| command: [ "--config-file","/etc/aerospike/aerospike.conf"] |
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
| var ( | |
| re = regexp.MustCompile(`^(\S.+)\.(\S.+)$`) | |
| ) | |
| type CallerInfo struct { | |
| PackageName string | |
| FunctionName string | |
| FileName string | |
| FileLine int | |
| } |
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 ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "time" | |
| ) | |
| // Server is struct |
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
| javascript:(function(){ | |
| var copyFrom = document.createElement("textarea"); | |
| copyFrom.textContent = 'copy!'; | |
| var bodyElm = document.getElementsByTagName("body")[0]; | |
| bodyElm.appendChild(copyFrom); | |
| copyFrom.select(); | |
| var retVal = document.execCommand('copy'); | |
| bodyElm.removeChild(copyFrom); | |
| return retVal; | |
| })(); |
NewerOlder