Skip to content

Instantly share code, notes, and snippets.

Javier Bermúdez javilobo8

Block or report user

Report or block javilobo8

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile-react-static
FROM node:6
COPY . .
# RUN npm install -g execSync
RUN mkdir -p /opt/care/app \
&& npm install --production
View github-get-stars.js
// npm i -S request request-promise cheerio lodash
const request = require('request-promise');
const cheerio = require('cheerio');
const fs = require('fs');
const _ = require('lodash');
const projectName = 'enaqx/awesome-react';
// const projectName = 'vuejs/awesome-vue';
const url = `${projectName}/master/`;
javilobo8 / download-file.js
Last active Mar 31, 2020
Download files with AJAX (axios)
View download-file.js
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
View bootstrap.html
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="" />
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
h2 {
text-align: center;
You can’t perform that action at this time.