Skip to content

Instantly share code, notes, and snippets.

View kenshinman's full-sized avatar
👐
Open to collaborate

Kehinde Orilogbon kenshinman

👐
Open to collaborate
View GitHub Profile
@kenshinman
kenshinman / getdates.js
Created March 20, 2019 14:55 — forked from miguelmota/getDates.js
Get dates in between two dates with JavaScript.
// Returns an array of dates between the two dates
var getDates = function(startDate, endDate) {
var dates = [],
currentDate = startDate,
addDays = function(days) {
var date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
return date;
};
while (currentDate <= endDate) {
@kenshinman
kenshinman / nginx.conf
Created August 4, 2016 10:22 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;