Skip to content

Instantly share code, notes, and snippets.

View antonpegov's full-sized avatar
🏠
Working from home

Anton Pegov antonpegov

🏠
Working from home
View GitHub Profile
@antonpegov
antonpegov / setting-up-babel-nodemon.md
Created October 4, 2018 14:48 — forked from sam-artuso/setting-up-babel-nodemon.md
Setting up Babel and nodemon

Setting up Babel and nodemon

Inital set-up

Set up project:

mkdir project
cd project
npm init -y
@antonpegov
antonpegov / npm-list-globally.md
Created May 18, 2018 19:28 — forked from brenopolanski/npm-list-globally.md
Listing globally installed NPM packages and version
npm list -g --depth=0
@antonpegov
antonpegov / gh-pages-deploy.md
Created May 26, 2017 08:35 — forked from cobyism/gh-pages-deploy.md
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).

@antonpegov
antonpegov / angularjs-providers-explained.md
Created March 14, 2017 13:10 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant