maxbachmann
d9edefd23e
use rapidfuzz instead of fuzzywuzzy
2020-03-27 00:34:20 +01:00
Rohan Kumar
4a2a6193f6
Fix: Py3: don't use str.decode()
...
`str.decode('utf-8')` is obsolete, and `str.decode` has been removed
since Python 3 makes everything Unicode by default. This commit avoids
receiving the following error for the TLDR adapter:
`AttributeError: 'str' object has no attribute 'decode'`
2020-03-19 13:22:14 -07:00
Waldir Pimenta
fad7543c4d
Fix various typos
2020-01-23 14:08:26 +00:00
Igor Chubin
a3bd7a1dc0
chrisallenlane/cheat was splitted into cheat and cheatsheets ( #127 )( fixes #162 )
2019-10-21 16:43:46 +00:00
Igor Chubin
d6364fa665
initial latex support ( #151 )
2019-08-02 13:03:35 +00:00
Igor Chubin
0404fad5c1
added cmake support
2019-07-07 11:33:06 +00:00
Igor Chubin
ea055559c4
added Git support
2019-07-07 11:16:48 +00:00
Igor Chubin
eced83f011
nim support
2019-07-06 19:58:34 +00:00
Igor Chubin
03bae9e5da
queries may contain spaces; first word is the section
2019-05-19 19:00:30 +00:00
Igor Chubin
f44b58d8ac
connect stdin to /dev/null when starting subprocesses
2019-05-18 20:30:11 +00:00
Igor Chubin
adcac9bfeb
support for python3
2019-05-11 18:26:10 +02:00
Igor Chubin
465a18270b
lib/adapter/rosetta.py: minor cleanup
2019-05-11 16:54:17 +02:00
Igor Chubin
4c12ec701d
lib/adapter/question.py: minor fix
2019-05-11 16:53:13 +02:00
Igor Chubin
33dafa92f7
lib/adapter/upstream.py: minor text style improvements
2019-05-11 12:36:38 +02:00
Igor Chubin
b91e0f5da6
upstream queries support
2019-05-09 23:03:05 +02:00
Igor Chubin
fed0b15aa4
various fixes
2019-05-09 22:58:47 +02:00
Igor Chubin
8882613f07
lib/adapter/rosetta.py: initial rosetta support
2019-05-09 22:20:46 +02:00
Igor Chubin
bc957ac342
fetch/update works now
2019-05-09 22:20:04 +02:00
Igor Chubin
34f072e8dd
latenz adapter minor fixes
2019-05-09 22:18:33 +02:00
Igor Chubin
426dbb9be4
fixed the bug with cheat sheets in subdirs
2019-05-09 10:04:16 +02:00
Igor Chubin
4baf2c3fb1
adapter.internal minor cleanup
2019-05-03 08:14:40 +02:00
Igor Chubin
b7ba222cb8
learnxiny.py: use local_repository_location()
2019-05-01 20:56:00 +02:00
Igor Chubin
d94ca8458f
switched to new configuration interface
2019-05-01 20:48:05 +02:00
Igor Chubin
857daf3455
rosetta.py: use local_repository_locaion()
2019-05-01 10:32:59 +02:00
Igor Chubin
2bf84e07a2
removed a reference to unused page /:share
2019-05-01 10:14:18 +02:00
Igor Chubin
857b07b3c5
adapter/latenz.py refactoring
2019-05-01 10:13:48 +02:00
Igor Chubin
acbb260e9c
adapter/adapter.py: identify/find adapter by name
2019-05-01 09:31:57 +02:00
Igor Chubin
22dfb74f72
lib/adapter/__init__.py: load adapter modules dynamically
2019-05-01 09:30:56 +02:00
Igor Chubin
3bd31f94a4
adapter/adapter.py: minor clean up
2019-04-30 22:53:40 +02:00
Igor Chubin
0060f6c8fc
a couple of functions documented
2019-04-30 22:52:54 +02:00
Igor Chubin
19ba5bafad
adapter/cmd.py: tldr and cheat moved to separate modules
2019-04-30 22:46:42 +02:00
Igor Chubin
d02b0efb70
lib/adapter/rosetta.py: use CheatSheets.local_repository_location() instead of PATH_CHEAT_SHEETS
2019-04-30 22:45:48 +02:00
Igor Chubin
b51a38fd3a
new adapter abstract class for repositories: RepositoryAdapter
2019-04-30 22:35:29 +02:00
Igor Chubin
86650ccd6c
refactored adapter/cheat_sheets.py
2019-04-30 22:34:35 +02:00
Igor Chubin
016ebb1661
new adapter modules: cheat_cheat, tldr
2019-04-30 22:29:41 +02:00
Igor Chubin
dbde5e00c5
separated the Cheat Adapter to a module
2019-04-30 22:29:09 +02:00
Igor Chubin
58af6648c8
separated the Tldr Adapter to a module
2019-04-30 22:28:28 +02:00
Igor Chubin
2d59158b4b
lib/adapter/internal.py: minor fix
2019-04-30 22:25:39 +02:00
Igor Chubin
bc2266a864
initial support for repositories fetch/update
2019-04-29 20:25:52 +02:00
Igor Chubin
7a05dc88e0
ignore non-existent learnxiny pages
2019-04-29 20:04:31 +02:00
Igor Chubin
1f8b2bdbb3
new adapter class: GitRepositoryAdapter
2019-04-29 20:01:43 +02:00
Igor Chubin
868a78e38c
added repositories urls to adapters
2019-04-29 19:50:14 +02:00
Igor Chubin
4fff68bfcb
Merge branch 'master' of https://github.com/chubin/cheat.sh
2019-02-23 21:49:56 +00:00
Igor Chubin
6d74567209
updated cheat paths
2019-02-23 21:45:18 +00:00
Igor Chubin
e83fd89c8a
routing refactoring (get_answer.py => routing.py + postprocessing.py)
2019-02-17 14:12:08 +01:00
Igor Chubin
50f4abacb0
caching separated into cache.py
2019-02-17 14:07:02 +01:00
Igor Chubin
fa3382bff7
routing further refactoring
2019-02-17 00:34:03 +01:00
Igor Chubin
7d37b8cc1f
rosetta output format fixed
2019-02-16 21:12:52 +01:00
Igor Chubin
941136f357
removed hanging spaces
2019-02-16 21:12:21 +01:00
Igor Chubin
c59bdab2f2
cheat_wrapper.py splitted into fmt/ and frontend/
2019-02-16 20:11:34 +01:00