Skip to content

ronniesong0809/leetcode2notion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode to Notion.so Integration

Take LeetCode problems notes in Notion: easily organize topics and quickly find note when needed

more screenshots

Getting Started

  1. Duplicate this notion database template

  2. Create an integration

  1. Share a database with your integration

  1. Sign up Twilio, and get TWILIO_AUTH_TOKEN

  2. Install dependencies

npm install
  1. Create an .env file with your notion key and twilio auth token
NOTION_KEY=
NOTION_DATABASE_ID=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_FROM_PHONE_NUMBER=
TWILIO_TO_PHONE_NUMBER=

Usages

Option 1: command-line interface

$ node cli.js -h
Usage: cli [options]

Options:
  -V, --version              output the version number
  -q, --question <leetcode>  LeetCode question
  -t, --time <type>          Add Optional due date
  -d, --debug                output extra debugging
  -h, --help                 display help for command
$ node cli.js -q 21
{
  id: 21,
  title: 'Merge Two Sorted Lists',
  url: 'https://leetcode.com/problems/merge-two-sorted-lists/',
  lvl: 'Easy 🍀',
  frequency: 2.901843584652108,
  date: '2021-12-17T17:10:44-08:00',
  topics: [ { name: 'Linked List' }, { name: 'Recursion' } ]
}

Option 2: module

$ node demo.js

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published