Skip to content

Instantly share code, notes, and snippets.


Aaditya Taparia aadityataparia

Block or report user

Report or block aadityataparia

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
aadityataparia / localeimporter.js
Last active Apr 5, 2019
Momentjs to Dayjs locale importer
View localeimporter.js
const fs = require('fs')
const path = require('path')
const momentLocaleFolder = path.join(__dirname, 'locale')
const dayjsLocaleFolder = path.join(__dirname, 'src/locale')
const saveFolder = path.join(__dirname, 'src/locale')
const Moment = require(path.join(__dirname, './moment'))
function objectToString(obj, prefix = ' ') {
let string = '{'
aadityataparia / default.conf
Last active Feb 6, 2019
Wildcard subdomains config in nginx
View default.conf
server {
listen 80;
listen [::]:80 default;
listen 443 ssl;
index index.php index.html;
server_name ~^(?<subdomain>[^.]+);
root /var/www/$subdomain;
View index.html
<!DOCTYPE html>
<meta charset="utf-8"/>
<title>walker vs tree walker</title>
<script src=""></script>
<script src="./suite.js"></script>
<h1>Open the console to view the results</h1>
You can’t perform that action at this time.