Skip to content

Instantly share code, notes, and snippets.

View sciento's full-sized avatar
🎯
Focusing

sciento

🎯
Focusing
View GitHub Profile
@sciento
sciento / 0_reuse_code.js
Created May 29, 2016 21:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sciento
sciento / download-file.js
Created November 4, 2018 01:39 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@sciento
sciento / README.md
Created February 8, 2019 13:04 — forked from dariocravero/README.md
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.

@sciento
sciento / README.md
Created February 8, 2019 13:05 — forked from dariocravero/README.md
Save files in Meteor

Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.