Skip to content

Instantly share code, notes, and snippets.

View sahil-jindal's full-sized avatar
😁

Sahil Jindal sahil-jindal

😁
View GitHub Profile
@sahil-jindal
sahil-jindal / base64-utf8.module.js
Created August 18, 2022 14:50 — forked from nijikokun/base64-utf8.module.js
Javascript Base64 UTF8 for the Browser / Server. Base64 UTF-8 Encoding and Decoding Libraries / Modules for AMD, CommonJS, Nodejs and Browsers. Cross-browser compatible.
// UTF8 Module
//
// Cleaner and modularized utf-8 encoding and decoding library for javascript.
//
// copyright: MIT
// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com
(function (name, definition, context, dependencies) {
if (typeof context['module'] !== 'undefined' && context['module']['exports']) { if (dependencies && context['require']) { for (var i = 0; i < dependencies.length; i++) context[dependencies[i]] = context['require'](dependencies[i]); } context['module']['exports'] = definition.apply(context); }
else if (typeof context['define'] !== 'undefined' && context['define'] === 'function' && context['define']['amd']) { define(name, (dependencies || []), definition); }
else { context[name] = definition.apply(context); }
@sahil-jindal
sahil-jindal / RE_to_Grammar_Algorithm.md
Created March 2, 2021 11:21 — forked from santanuchakrabarti/RE_to_Grammar_Algorithm.md
An algorithm to generate a Regular Grammar from a Regular Expression