Skip to content

Instantly share code, notes, and snippets.

View lynxtaa's full-sized avatar

Alex Kondratiuk lynxtaa

  • Semrush
  • Berlin, DE
View GitHub Profile
@bellbind
bellbind / main.js
Last active August 21, 2022 09:32
[nodejs][worker_threads][es2018] req/res to Worker with for-await loop of ES2018
// node.js worker_threads module example with for-await loop: main thread side
//$ node --exprimental-worker main.js
const path = require("path");
const {Worker, MessageChannel} = require("worker_threads");
// async queue as "asyncIterator" in ES2018
class Queue {
constructor() {
this.polls = [];
this.gets = [];
@cjaoude
cjaoude / gist:fd9910626629b53c4d25
Last active July 22, 2024 11:08
Test list of Valid and Invalid Email addresses
Use: for testing against email regex
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
List of Valid Email Addresses
email@example.com
firstname.lastname@example.com
email@subdomain.example.com
firstname+lastname@example.com