Skip to content

Instantly share code, notes, and snippets.

View thoughtsunificator's full-sized avatar
🤠

Romain Lebesle thoughtsunificator

🤠
View GitHub Profile
@thoughtsunificator
thoughtsunificator / email-tokenizer.js
Created September 29, 2021 16:32
Email tokenizer
export const STATE_LOCAL_PART = "STATE_LOCAL_PART"
export const STATE_DOMAIN = "STATE_DOMAIN"
export const ALPHANUMERICS = "abcdefghijklmnopqrstuvwxyz1234567890"
export const LOCAL_PARTS_CHARACTERS = [...ALPHANUMERICS, ..."!#$%&'*+-/=?^_`{|}~."]
export const LOCAL_DOMAIN_CHARACTERS = [...ALPHANUMERICS, ..."-."]
export const tokenize = function(input) {
const characters = [...input]
@thoughtsunificator
thoughtsunificator / BrowserExtensionReload.py
Last active September 29, 2021 16:16
Sublime Text User package for thoughtsunificator/browser-extension-reload-firefox
import websocket
try:
import thread
except ImportError:
import _thread as thread
import time
import json
import ssl
import sublime, sublime_plugin, os