Skip to content

Instantly share code, notes, and snippets.

View timchambers's full-sized avatar

Tim Chambers timchambers

View GitHub Profile
@virolea
virolea / upload.js
Last active August 28, 2024 02:16
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])
@TimCoates
TimCoates / serverless.yml
Created September 19, 2017 19:04
Building an S3 Origin for Cloudfront in serverless.yml
service: name
custom:
staticBucket: static-name.justtim.net
provider:
name: aws
stage: prod
environment:
bucketName: ${self:custom.staticBucket}
@ELLIOTTCABLE
ELLIOTTCABLE / .gitignore
Last active July 14, 2023 15:34 — forked from rosston/.gitignore
BASH Script to keep Route53 updated with your current external IP address
*.ip
*.log
@giordanocardillo
giordanocardillo / README.MD
Last active September 19, 2024 07:10
Remove Office 2016 Product Key
  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (32-bit) on a 64-bit version of Windows

    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (64-bit) on a 64-bit version of Windows

{
"name": "browserify_babelify",
"version": "1.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "watchify src/app.js -d -o bundle.js -v [ babelify --presets [es2015] ]",
"build": "browserify src/app.js -t [ babelify --presets es2015 ] | uglifyjs -mco bundle.js"
},