Add following section to the vscode settings.json
"rust-analyzer.runnables.extraTestBinaryArgs": [
"--nocapture",
]This one will add --nocapture to the and of test command allowing println! works immediately
Add following section to the vscode settings.json
"rust-analyzer.runnables.extraTestBinaryArgs": [
"--nocapture",
]This one will add --nocapture to the and of test command allowing println! works immediately
| version: '3.8' | |
| networks: | |
| my_network: | |
| driver: bridge | |
| volumes: | |
| kafka-data: | |
| kafka-ui-data: | |
| services: |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| bind-key s set-option status | |
| bind r source-file ~/.tmux.conf | |
| bind h split-window -v | |
| bind v split-window -h |
| val kafkaProps = new Properties() | |
| kafkaProps.put("bootstrap.servers", endpoint) | |
| kafkaProps.put("key.serializer", classOf[ByteArraySerializer]) | |
| kafkaProps.put("key.deserializer", classOf[ByteArrayDeserializer]) | |
| kafkaProps.put("value.serializer", classOf[ByteArraySerializer]) | |
| kafkaProps.put("value.deserializer", classOf[ByteArrayDeserializer]) | |
| kafkaProps.put("group.id", "CrawlerTasksStorage") | |
| kafkaProps.put("max.poll.records", "1000") | |
| kafkaProps.put("enable.auto.commit","false") |
| cat social/scripts/social-site.service | |
| cat social/scripts/social-crawler.service |
| import sys | |
| reload(sys) # Reload does the trick! | |
| sys.setdefaultencoding('UTF8') | |
| import tarfile | |
| # extract dictionary package | |
| tar = tarfile.open("polyglot_data/sentiment2/ru/ru.sent.pkl.tar.bz2") | |
| tar.extractall() | |
| tar.close() |