What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-29 14:28:05
python replace list of ips from yaml file with new list
import yaml fname = "some.yaml" stream = open(fname, 'r') data = yaml.load(stream) data['instances'][0]['host'] = '1.2.3.4' data['instances'][0]['username'] = 'Username' data['instances'][0]['password'] = 'Password' with open(fname, 'w') as ... Add solution -
Javascript 2021-09-29 13:01:03
expressjs swagger yaml
// To load your swagger specification yaml file you need to use a module able to convert // yaml to json; for instance yamljs. >> npm install --save yamljs const express = require('express'); const app = express(); const swaggerUi = require('swag... Add solution -
Javascript 2021-09-16 19:50:01
swagger ui express
// To load your swagger specification yaml file you need to use a module able to convert // yaml to json; for instance yamljs. >> npm install --save yamljs const express = require('express'); const app = express(); const swaggerUi = require('swag... Add solution
Best helpers
Ranking is empty