mongo >= 6
: init-mongo.js
+ MONGO_INITDB_DATABASE
in .env-mongo
mongo < 6
: init-mongo.sh
+ no MONGO_INITDB_DATABASE
in .env-mongo
.env
:
MONGO_USER=user
MONGO_PASSWORD=userpasswd
SWAGGER_SETTINGS = { | |
'SECURITY_DEFINITIONS': { | |
'api_key': { | |
'type': 'apiKey', | |
'in': 'header', | |
'name': 'Authorization' | |
} | |
}, | |
'CUSTOM_HEADERS': { | |
'HTTP_AUTHORIZATION': 'Token a476957f3c20a3a262a760fc2194569315ea5670' |
function raml2html(options) { | |
var gutil = require('gulp-util'); | |
var through = require('through2'); | |
var raml2html = require('raml2html'); | |
var simplifyMark = function(mark) { | |
if (mark) mark.buffer = mark.buffer.split('\n', mark.line + 1)[mark.line].trim(); | |
} | |
options = options || {}; |
nome | cidade | sobrenome | |
---|---|---|---|
yasmine | joao monlevade | costa | |
bernardo | manhuaçu | gomes |
const echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.