1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00
Commit Graph

287 Commits

Author SHA1 Message Date
Igor Chubin 447a714a3f Enable action=suggest 2021-02-06 08:18:17 +01:00
Igor Chubin e70b815306 Disable language detection 2021-01-31 20:23:09 +01:00
Igor Chubin 5bb899be9e Add initial typing support 2021-01-31 18:35:59 +01:00
Igor Chubin bda370afaf Remove some python2 code 2021-01-31 18:35:15 +01:00
Igor Chubin 16eaa7814a Add devkeys support 2021-01-31 18:34:35 +01:00
Igor Chubin 62a4a58687 Add NOT_FOUND_MESSAGE to adapter/question.py 2021-01-24 15:59:11 +01:00
Igor Chubin 1924f14096 Use sql comments for psql (#276) 2021-01-17 21:36:30 +00:00
Igor Chubin d2b8697ea2 Hotfix unicode processing for Python 3 (fixes #265)
This fix is temprorary, and must be implemented properly,
after Python 2 support will be fully dropped.
2020-11-29 21:37:30 +00:00
Igor Chubin 9e8baaf13f Update lib/routing.py
Co-authored-by: Anatoli Babenia <anatoli@rainforce.org>
2020-11-23 08:21:05 +01:00
Igor Chubin 8df1c945ab Continue if response found in cache 2020-11-22 20:09:51 +00:00
Igor Chubin 6515e7d86b Show all cheat sheets when several found 2020-11-22 19:00:44 +00:00
Anatoli Babenia 9bfd23ae67 Remove explicit gevent imports
It is enough to monkey patch one time at the top level,
which is done in `bin/srv.py` web server script.
2020-11-17 17:23:33 +03:00
Igor Chubin 426d251dcd Return 'cache' property in answer_dict 2020-11-16 23:58:57 +00:00
Igor Chubin b8df31004c Disable caching for UpstreamAdapter 2020-11-16 22:54:18 +00:00
Igor Chubin d6e0b4220e Merge pull request #248 from fedebuonco/Random
Random
2020-11-13 08:31:08 +01:00
Igor Chubin d8a7732806 Update lib/fetch.py
Co-authored-by: Anatoli Babenia <anatoli@rainforce.org>
2020-11-12 12:55:11 +01:00
Igor Chubin 72d2370843 Create logdir for fetch 2020-11-12 12:42:42 +01:00
fedeb 45c803a274 Further removing of special cases 2020-11-10 11:19:43 +01:00
fedeb 73e4e46e3e Fixed readme & style, removed special cases from random pool. 2020-11-09 18:39:52 +01:00
fedeb f4cd21e4e0 Another check if a given topic has just the :list and rosetta/ 2020-11-07 21:15:26 +01:00
fedeb f788f238a4 Minor fix on checking if is a random request 2020-11-07 20:48:38 +01:00
fedeb cb75302567 Fixed typo 2020-11-07 20:25:23 +01:00
fedeb e3ab4eafcb Fixed comments regarding :random 2020-11-07 20:15:54 +01:00
fedeb 417f7f9e69 removed rosetta/ and '' from possible random choices 2020-11-07 20:15:20 +01:00
fedeb bfa25504f3 Remved /:list from the possible random choice 2020-11-05 14:32:34 +01:00
fedeb b62bb9118c Added a check on get_answer_dict that identifies random requests 2020-11-05 14:15:18 +01:00
Igor Chubin ce8484fc2d fix: show integer weights for "Unknown topic" suggestions 2020-08-06 07:55:39 +02:00
Igor Chubin b45af37fba Merge branch 'master' of https://github.com/chubin/cheat.sh 2020-08-06 04:35:22 +00:00
Igor Chubin 318541c8ae regression fix 2020-08-06 04:35:14 +00:00
Igor Chubin 18e851ce80 Merge branch 'master' into run-tests 2020-08-06 06:27:05 +02:00
Igor Chubin 80ded6938c fixed search (#147, #225) 2020-08-05 09:46:36 +02:00
Anatoli Babenia b74707a109 Redis doesn't need to be Strict
https://github.com/andymccurdy/redis-py#client-classes-redis-and-strictredis
2020-08-01 06:10:03 +03:00
Anatoli Babenia 96cc3f64bd Install bash and fix Python3 subprocess bytes
File "/app/lib/globals.py", line 25, in error
        if not text.startswith("Too many queries"):
    TypeError: startswith first arg must be bytes or a tuple of bytes, not str
2020-07-29 12:02:02 +03:00
Anatoli Babenia dd00fa4188 Print full cmd when bash is not found 2020-07-29 10:49:21 +03:00
Anatoli Babenia c022613313 Use shallow copy for sheat clones -34MB 2020-07-28 11:47:59 +03:00
Anatoli Babenia 20e371c575 Fetch cheat sheets without installing cht.sh.txt 2020-07-27 11:03:46 +03:00
Igor Chubin 2e6ed2d0cc added filetype handling for adapters (#187) 2020-06-15 22:14:12 +00:00
Igor Chubin 33d692cb0a activated comments,syntax highlighting (#187) 2020-06-15 19:25:09 +00:00
Igor Chubin b5a1e12d66 remove : only in /:list (#212) 2020-06-15 19:13:24 +00:00
Your Name 47176f1ad2 cmd.py: oeisAdapter argparser no longer removes ':' this enables :list 2020-06-15 14:49:58 -04:00
Igor Chubin b24b45ce7c oeis: replace groups of non-alpha with spaces (#187) 2020-06-11 13:17:16 +00:00
Igor Chubin 1a29870d92 temprorary disabled hyperlinks processing 2020-06-11 13:16:28 +00:00
Your Name 9e7e7794f4 Merge branch 'master' of https://github.com/chubin/cheat.sh 2020-06-09 23:56:54 -04:00
Igor Chubin a15563e145 chmod/ output colorization (by iivån) (#197) 2020-06-10 03:13:48 +00:00
Your Name f3cbd539dc cmd.py AdapterOeis topic parse Replace all non (alphanumeric, '-') chars with Spaces 2020-06-07 14:57:57 -04:00
Igor Chubin 598e5dfb11 minor fix (#208) 2020-06-07 17:27:09 +00:00
Your Name 078411223d Fixed chmod arg parse issue, formating/comments better 2020-06-05 10:04:35 -04:00
Your Name eeee79c787 more resilliant cmd.py oerisAdapter parsing 2020-06-04 15:27:48 -04:00
Your Name 28ce919865 Hopefully fixed arg passing issue between cmd.py and oeis.sh 2020-06-03 16:17:23 -04:00
Your Name b9d48a3905 oeis topic string and code segment update 2020-05-30 23:37:45 -04:00