See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| -- requires an SMTP server to send emails | |
| local smtp = require("socket.smtp") | |
| local ltn12 = require("ltn12") | |
| local mime = require("mime") | |
| from = "<me@my.email.com>" | |
| rcpt = { | |
| "<somebob@testemail.com>" |
| # 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 | |
| import React, {Component} from 'react'; | |
| import differenceInSeconds from 'date-fns/difference_in_seconds'; | |
| import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'; | |
| class TimeAgo extends Component { | |
| componentDidMount() { | |
| if (this.props.isLive) { | |
| this.updateTime(); | |
| } |