Convert the following ES5 code to ES6.
// Template literals
var li = '<li>' +
'<div class="row">' +
"use strict"; | |
/** | |
* Hypertext Transfer Protocol (HTTP) response status codes. | |
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
*/ | |
enum HttpStatusCode { | |
/** | |
* The server has received the request headers and the client should proceed to send the request body |
var json = { | |
email : "santiago@konacloud.io", | |
name : "Santiago Cotto" | |
}; | |
var qr = require('qr-image'); | |
var mongoose = require('mongoose'); | |
var image = qr.imageSync(JSON.stringify(json), { type: 'png', size : 10 }); | |
var Grid = require('gridfs'); |
Picking the right architecture = Picking the right battles + Managing trade-offs
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
#------------------------------------------------------------------------------- | |
# lexer.py | |
# | |
# A generic regex-based Lexer/tokenizer tool. | |
# See the if __main__ section in the bottom for an example. | |
# | |
# Eli Bendersky (eliben@gmail.com) | |
# This code is in the public domain | |
# Last modified: August 2010 | |
#------------------------------------------------------------------------------- |