Skip to content

Instantly share code, notes, and snippets.

View dioncodes's full-sized avatar

Dion dioncodes

View GitHub Profile
@dioncodes
dioncodes / Semantic-Commit-Messages.md
Created February 18, 2022 14:56
Extended Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@virolea
virolea / upload.js
Last active December 12, 2024 16:14
Tracking file upload progress using axios
upload(files) {
const config = {
onUploadProgress: function(progressEvent) {
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
console.log(percentCompleted)
}
}
let data = new FormData()
data.append('file', files[0])