blockchainian / cli Goto Github PK
View Code? Open in Web Editor NEWLeetCode CLI
License: MIT License
LeetCode CLI
License: MIT License
Hi, just curious, can we install this in MAC without sudo command?
Cuz I'm using company laptop and it forbid some sensitive command like 'sudo'
Thank!
Create lists, add/remove problems to/from a list.
For this problem: https://leetcode.com/problems/hamming-distance/description/
The up arrows, the less-than-or-equal-to sign, and the to-the-power-of are not shown properly.
After installation, running leetcode-cli would give the following error.
Traceback (most recent call last):
File "/Users//miniconda3/bin/leetcode-cli", line 11, in
load_entry_point('leetcode-cli==0.0.6', 'console_scripts', 'leetcode-cli')()
File "/Users//miniconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users//miniconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/Users//miniconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/Users//miniconda3/lib/python3.7/site-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/Users//miniconda3/lib/python3.7/site-packages/leetcode_cli-0.0.6-py3.7.egg/leetcodecli/cli.py", line 266
print 'Welcome %s!' % username
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Welcome %s!' % username)?
When I change the language to cpp, pull just returns an empty file, instead it should have returned the default code for that problem.
When I try to login:
Traceback (most recent call last):
File "/home/dufferzafar/.local/bin/leetcode-cli", line 11, in <module>
sys.exit(main())
File "/home/dufferzafar/.local/venvs/leetcode-cli/lib/python2.7/site-packages/leetcodecli/cli.py", line 1044, in main
shell.do_login()
File "/home/dufferzafar/.local/venvs/leetcode-cli/lib/python2.7/site-packages/leetcodecli/cli.py", line 764, in do_login
self.login()
File "/home/dufferzafar/.local/venvs/leetcode-cli/lib/python2.7/site-packages/leetcodecli/cli.py", line 266, in login
'csrfmiddlewaretoken': csrf
UnboundLocalError: local variable 'csrf' referenced before assignment
Hi chenpengcheng,
the login function is not work and print nothing , how to fix it ?
When install sudo easy_install leetcode-cli
I get an error:
error: [Errno 2] No such file or directory: 'README.md'
Currently, there is no way to auto select a random problem to solve from all unsolved problems.
When I typed "Check" or "Run", it shows Line 10: NameError: global name 'Solution' is not defined. :)
Also, do i need to control + d every time I want to use "vim" command to type the code? It does not work when I was running ./cli.py.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.