Skip to content

Instantly share code, notes, and snippets.

View haijianyang's full-sized avatar
🍋
Thinking

YangMieMie haijianyang

🍋
Thinking
View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active May 27, 2021 10:14
Send mails from Gmail using Nodemailer

Send mails from Gmail using Nodemailer

This is a sample script for sending e-mails from gmail using Nodemailer. In order to use this, please retrieve the folloing parameters before run this script.

  1. gmail address
  2. client ID
  3. client Secret
  4. Refresh token
    • Please include https://mail.google.com/ in the scope.
  5. Enable gmail API at API console.
  6. Install Nodemailer
echo-server-epoll
echo-server-poll
talk
talk.dSYM
@jesstelford
jesstelford / event-loop.md
Last active June 7, 2024 17:12
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code