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
| const MaxUint = ^uint(0) | |
| const MinUint = 0 | |
| const MaxInt = int(MaxUint >> 1) | |
| const MinInt = -MaxInt - 1 |
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: | |
| rethink: | |
| image: rethinkdb # load latest rethinkDB image | |
| volumes: | |
| - ./rethinkdb_data:/data/rethinkdb_data # volume for load backup or save new data files on mapping | |
| ports: | |
| - 8080:8080 # Listening for administrative HTTP connections on port 8080 | |
| - 28015:28015 # Listening for client driver connections on port 28015 | |
| - 29015:29015 # Listening for intracluster connections on port 29015 |
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
| module.exports = (filePath) => { | |
| const dirPathArr = filePath.split('/'); | |
| const targerFile = dirPathArr[dirPathArr.length - 1]; | |
| const dotIndex = targerFile.indexOf('.'); | |
| return targerFile.slice(0, dotIndex > -1 ? dotIndex : targerFile.length); | |
| } |
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
| #!/usr/bin/python3 | |
| import os | |
| if name == 'main': | |
| print('Start append') | |
| currentDir = os.getcwd() | |
| addSymbol = '*' | |
| fileNames = os.listdir(currentDir) | |
| docs = list(filter(lambda x: not x.endswith('.py'), fileNames)) |
NewerOlder