Skip to content

Instantly share code, notes, and snippets.

View PavelGonzales's full-sized avatar
💜
Beauty Coder

Pavel Gonzales PavelGonzales

💜
Beauty Coder
View GitHub Profile
@jasonmarziani
jasonmarziani / axios.js
Created March 17, 2021 19:20 — forked from matthewsuan/axios.js
Axios request queue-like that limits number of requests at any given time
import axios from 'axios'
const MAX_REQUESTS_COUNT = 5
const INTERVAL_MS = 10
let PENDING_REQUESTS = 0
// create new axios instance
const api = axios.create({})
/**
@christlc
christlc / README.md
Last active September 23, 2021 12:34
To use Front Matter and markdown in Nuxt JS
@cobyism
cobyism / gh-pages-deploy.md
Last active July 18, 2024 05:22
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).