Skip to content

Instantly share code, notes, and snippets.

View lord-zeus's full-sized avatar
Working from home

Nsagha Kingsly lord-zeus

Working from home
View GitHub Profile
@lord-zeus
lord-zeus / default.conf
Created February 14, 2020 03:09
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@lord-zeus
lord-zeus / simple-pagination.js
Created September 16, 2018 19:13 — forked from kottenator/simple-pagination.js
Simple pagination algorithm
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;