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
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
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>[^.]+).example.com;
root /var/www/$subdomain;
}
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>walker vs tree walker</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
You can’t perform that action at this time.