Coder Social home page Coder Social logo

leetsync / leetsync Goto Github PK

View Code? Open in Web Editor NEW
111.0 1.0 14.0 3.74 MB

LeetSync is a Chrome extension that enables you to sync your LeetCode problem submissions with a selected GitHub repository. With this extension, you can easily track your coding progress and share your solutions with others on GitHub.

Home Page: https://chromewebstore.google.com/detail/leetsync-leetcode-to-gith/ppkbejeolfcbaomanmbpjdbkfcjfhjnd?hl=en&authuser=0

JavaScript 3.49% HTML 2.50% CSS 1.32% TypeScript 92.69%
chrome chrome-extension leetcode problem-solving solutions sync typescript

leetsync's Introduction

LeetSync Chrome Extension

LeetSync is a Chrome extension that enables you to sync your LeetCode problem submissions with a selected GitHub repository. With this extension, you can easily track your coding progress and share your solutions with others on GitHub.

Table of Contents

How it Works

LeetSync utilizes the LeetCode API to fetch your submission data and the GitHub API to create a new file or update an existing one in your selected repository.

Installation

To install LeetSync, follow these steps:

  1. Download the latest release of the extension from the Chrome Web Store.
  2. Install the extension by clicking the "Add to Chrome" button.
  3. Once the installation is complete, click on the extension icon in your Chrome toolbar to configure it.

Get Started

To configure LeetSync, follow these steps:

  1. Click on the extension icon in your Chrome toolbar.
  2. In the popup window, Give Access via Github.
  3. Login Via LeetCode (Optional and might be automatically skipped if already logged in)
  4. Select the repository you want to sync your submissions to.
  5. Start solving some problems

Usage

To use LeetSync, follow these steps:

  1. Solve a problem on LeetCode and submit your solution.
  2. LeetSync will create a new file or update an existing one in your selected repository automatically.
  3. Go and check the submission on your github repository

Support

If you encounter any issues or have any suggestions for improving LeetSync, please feel free to open an issue on the GitHub repository.

Contributing

Contributions are welcome! If you want to contribute to the project, please follow the contributing guidelines.

License

LeetSync is licensed under the MIT License.

leetsync's People

Contributors

3ba2ii avatar indiecodermm avatar sebbii17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

leetsync's Issues

Not syncing to leetcode

Even after submitting the code it doesn't appear in the provided directory in the Leetcode. Yesterday it worked but then I opted for the new feature of setting a subdirectory. May that new feature is not working. please look into it and also provide me the work around for syncing the the code with GitHub. For proof You can see my streak for September on the attached screenshot.
image

Add Notes.md to the Repo

It would be beneficial to also link the NOTES.md we write in problems to the GitHub repo. It would be fantastic for reviewing the problems: :)

LeetCode problem number is showing differently on repo than on GitHub

Describe the bug
When I finish a problem and gets push to the repo, the directory's name is displaying the incorrect number. I'm coming from LeetHub since it's flaky sometimes on pushing changes. Is there any way to fix this so that the problem is reflected correctly in the repo?

To Reproduce
Steps to reproduce the behavior:

  1. Use LeetHub extension
  2. Complete a problem or 2
  3. Switch to LeetSync
  4. Do another problem
  5. Check on the repo if the problem number is the correct one as LeetCode's

Screenshot from my repo
image
Screenshot problem number from LeetCode
image

Solutions Submitted during Contest not committed

Describe the bug
All the Accepted Solutions Submitted during the Contest are not committed to the GitHub repository. This is quite demotivating as most of the questions I attempt (and even others) are in Leetcode contests.

Expected behavior
It would be great that all the contest leet code accepted submissions are also pushed to github repo.

Can you add a Submitted popup, once the code is pushed to Repo.

Hey guys, new to this tool.
But can we have a popup or something, once the code is pushed to my repo.
Something like "Code pushed successfully". Just so i know that the code has been added to my folder.
Otherwise i have to open the extension every time to check if the code has been pushed or not.
Thanks, the tool is great btw

Show only daily question solved

This extension shows the total number of questions done after installing this extension but it should not be like that it should show how many questions user did each day like >> if user solved 1 easy 2 medium and 1 hard so it should show easy: 1, medium: 2 , hard:1
and next day it should again become easy: 0, medium: 0 and hard: 0 although the streak continuously increase if atleast one question is solved by the user per day!!

It is not push the Question accepted in the Contest !1

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
can you add to push the weekly contest code to be pushed when accepted
Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Streaks

The streaks will not update automatically.

Commit on successful resubmission

Hi, the extension is great but it would be nice if we could see the successful resubmission code also.

For Eg:

I did question 114. Flatten Binary Tree to Linked List[https://leetcode.com/problems/flatten-binary-tree-to-linked-list/] by three various methods, Brute, Better and Optimal but since I did the brute first, the repo only shows the brute solution and doesn't commit the other two solutions.

Streak Lost

The extension is not counting the streak properly
In the below screenshot, you can see, it's a 6 days streak but on leetsync it says one
Screenshot 2023-08-11 104904

Dart Submission Not Being Sync

Describe the bug
Any dart submission submitted will not be synced to the repository.

To Reproduce
Steps to reproduce the behavior:

  1. Use LeetCode new Interface
  2. Go to any LeetCode question (for me, I used https://leetcode.com/problems/invert-binary-tree/description/)
  3. Submit the correct code (for me, I submitted as follows:
class Solution {
   TreeNode? invertTree(TreeNode? root) {
    return root == null ? root : TreeNode(root.val, invertTree(root.right), invertTree(root.left));
  }
}

)
4. Click submit
5. Leetcode verifies the solution is correct, but the submission does not show up in the linked repository,

Screenshots
image

  • Submitted solution in dart
    image
  • Submitted solution not showing in the repository.

Additional Information
Submission written in typescript is recorded by LeetSync successfully, but submission written in Dart doesn't.

Syncing to Different Subdirectory / Repository

Hello there!

I was testing the latest feature "Set a subdirectory" and I encountered some bugs

  1. Sometimes when I change the subdirectory and try to submit new questions, It is stored in the previous subdirectory only.
  2. Submitted question's subdirectory doesn't change.
  3. Once I changed my GitHub repo and submitted questions and saw that solution to new questions was committing to the previous repository.

WhatsApp Image 2023-05-16 at 2 05 00 AM (1)
WhatsApp Image 2023-05-16 at 2 04 13 AM (1)

It does not work anymore.

Hi, It worked a few hours ago, but now, the extension is not working :(
I am not sure if it's because I updated Chrome or Leetcode changed the UI again.
Could you please update the extension?
Thank you very much for your hard work. I really appreciated it.

Warning messages on Chrome Web Store

Describe the bug
Too many warnings while onboarding.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://chrome.google.com/webstore/detail/leetsync-leetcode-to-gith/ppkbejeolfcbaomanmbpjdbkfcjfhjnd
  2. Click on Add to Chrome
  3. Multiple warnings are popped up.
  4. PFA

Expected behavior
The flow would be better without warnings.

Screenshots

Screen.Recording.2023-06-07.at.9.56.57.AM.mov

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: 114.0.5735.90

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Issue with premium problems

I recently observed that it does not sync when there is a premium problem solved. I recently got a premium account and it is not syncing those problems.
Is it a feature?

Commits stopped working as of today

Leetsync commits stopped committing today but was working fine yesterday. Tried linking and unlinking different repos and tried new questions on LC but nothing worked.

Streak Not Updating

It's not updating the day-wise streak it shows when we click on the extension, my streak is stuck please fix this issue. ALthough the most imp feature which is to push my submitted codes on GitHub is working fine.

Streak is not getting tracked.

Today(24th may) i have completed 2 leetcode questions. they got pushed to my git repo but the streak is not getting updated.
it's stuck on "9 day streak! Do one more, and keep up the streak!".

bro leetsync is not working properly

it is not updating the repository sometimes... when i submit the question i come back to repo i am looking at it... the questions that i am submitting is not showing over there... initially it was working but as soon as the number of questions are increasing its getting stopped now its not working

Submission duplicates

I'm not sure if this issue is unique to me, but I noticed that each solution is being committed and pushed multiple times even though I only submit it once.

image

Not Running in Brave

I have added the extension to brave browser but on submitting , the answer is not being pushed to my github repository

Leetcode new update ! ! plz fix this according to the new one !

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It is not working with the new update of leetcode !! can you tell me in how many day will this issue will be fixed
Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

add question number to folder name

Describe the solution you'd like
Hey, could you add question number to the folder number? like 1-two-sum. This would help a lot, so I can find questions easier.

Inaccurate Streak Count and Missing Submission Indication

Describe the bug
A clear and concise description of what the bug is.
-Inaccurate streak counting and/or failure to indicate successful submissions

To Reproduce
Steps to reproduce the behavior:

  1. Submit a solution on LeetCode.
  2. Notice that the browser extension indicates a successful submission by lighting up.
  3. Despite consistently using LeetCode for the past weeks, observe that the streak counter still displays a 1 Day streak.

or

  1. Submitted a solution on LeetCode for a new problem.
  2. Noticed that the browser extension did not indicate a successful submission by failing to light up and still shows 1-Day Streak.
  3. Opened my repository on GitHub.
  4. Verified that the code had been updated with the latest submission.

Expected behavior
A clear and concise description of what you expected to happen.
I anticipated that the streaks on the extension would be updated accurately based on my daily submissions.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]: macOS Ventura 13.3.1
  • Browser [e.g. chrome, safari]: chrome
  • Version [e.g. 22]: 113.0.5672.92
  • Extension Version: 0.0.3

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Thank you!! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.