Skip to content

Instantly share code, notes, and snippets.

View hosseinmh's full-sized avatar
☺️
Focusing

mohammad hossein akhoundi hosseinmh

☺️
Focusing
View GitHub Profile
@hosseinmh
hosseinmh / download-file.js
Created November 3, 2020 15:13 — 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);
@hosseinmh
hosseinmh / cloudSettings
Last active April 30, 2020 08:04 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04
{"lastUpload":"2020-04-30T08:04:35.215Z","extensionVersion":"v3.4.3"}
@hosseinmh
hosseinmh / frontendDevlopmentBookmarks.md
Created April 23, 2017 17:22 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.