Brandon Lopez
91c0fcf2d5
Merge branch 'master' of github.com:bglopez/cheat.sh
...
* 'master' of github.com:bglopez/cheat.sh:
Update README.md
minor fixes after refactoring (#79 )
cheat.sh plugins table fixed
cheat.sh editors features list
added new section notation: /EDITOR:filetype/
reverted a08f130562 (cht.sh posix compatibility)
moved POSIX version of cht.sh to share/cht.sh-posix.txt
added initial tests
fixed typo in intro.txt (fixes #63 )
import os to access os.path.join()
clean up colorizer
replace back color names
remove unnecessary boolean assignment
refactor reverse palette for legibility and abstraction
ls -T isn't portable as well, as pointed out by pickfire@.
Make zsh happy as well (in sh mode).
The ksh93 shell doesn't have "local", but "typeset" could be used instead.
Missed non-POSIX array expansion.
Make cht.sh work under POSIX environment.
2018-08-07 13:17:44 -07:00
Brandon Lopez
9fcd941087
Remove some code smells per Sonarcloud
2018-08-07 13:17:28 -07:00
Brandon Lopez
635b272e31
Merge pull request #2 from chubin/master
...
Bring up to date with upstream
2018-08-06 09:50:52 -07:00
Igor Chubin
cdadd3c0c9
minor fixes after refactoring ( #79 )
2018-08-05 18:56:42 +00:00
Igor Chubin
36c2543821
Merge pull request #79 from StrikingLoo/master
...
refactor colorize_internal.py
2018-08-05 20:41:51 +02:00
Igor Chubin
75c8878956
added new section notation: /EDITOR:filetype/
2018-08-05 17:14:34 +00:00
cclauss
604edfb7f7
import os to access os.path.join()
...
flake8 testing of https://github.com/chubin/cheat.sh on Python 3.7.0
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./lib/panela/panela_colors.py:636:16: F821 undefined name 'os'
pagepath = os.join.path(MYDIR, "share/firstpage-v2.pnl")
^
1 F821 undefined name 'os'
1
```
2018-07-31 00:04:15 +02:00
Brandon Lopez
22953bb109
Can now build a Docker image of the app with cheatsheets pulled in at build time and use Docker Compose to get it running with Redis
2018-07-29 23:51:41 -07:00
Igor Chubin
3910cfe6eb
parametrized PATH_LEARNXINY
2018-07-29 21:16:30 +00:00
Igor Chubin
3356ac1db6
Merge branch 'master' of https://github.com/chubin/cheat.sh
2018-07-29 21:10:30 +00:00
Igor Chubin
998f23ed36
rewriting queries (VIM_NAMES)
2018-07-29 21:10:24 +00:00
Igor Chubin
93a6f9ed52
wolfram support
2018-07-29 21:05:43 +00:00
Igor Chubin
90c1b97acf
Use OS packages
2018-07-29 22:31:01 +02:00
Brandon Lopez
65cf18ca95
panela_colors not using hardcoded path
2018-07-27 16:17:21 -07:00
Brandon Lopez
fe5046d481
Replaced hardcoded paths with something kept local to the cheat.sh folder
2018-07-27 16:17:11 -07:00
Brandon Lopez
6862a7a1f9
get_answer.py updated to not use hard coded path
2018-07-27 16:16:51 -07:00
Brandon Lopez
2a56f02751
adapter_learnxiny updated to not use hardcoded path
2018-07-27 16:16:31 -07:00
Igor Chubin
7ef67a384f
added new language: solidity
2018-07-27 17:31:36 +00:00
Luciano Strika
7201ce4251
clean up colorizer
2018-07-19 18:06:28 -03:00
Luciano Strika
e4d7fde7cf
replace back color names
2018-07-19 17:59:55 -03:00
Luciano Strika
7d20c45ac5
remove unnecessary boolean assignment
2018-07-19 17:49:48 -03:00
Luciano Strika
35155337c1
refactor reverse palette for legibility and abstraction
2018-07-19 17:49:13 -03:00
Igor Chubin
4d71519138
Merge branch 'master' of https://github.com/chubin/cheat.sh
2018-07-19 09:01:08 +00:00
Igor Chubin
7473c261b6
do not call render_html for empty answers
2018-07-19 09:01:05 +00:00
Igor Chubin
99399c1d8a
show empty list for empty sections
2018-07-19 08:58:59 +00:00
Igor Chubin
271d5bde8a
vim answers syntax highlighting
2018-07-19 08:58:27 +00:00
Igor Chubin
e0fd79de4d
add / to the section names in :list ( fixes #73 , fixes #77 )
2018-07-19 08:57:39 +00:00
Simon Knott
133008cfcf
Use "maybe" instead of "may be", bc grammar
2018-07-18 16:15:18 +02:00
Igor Chubin
abaea063b6
added lib/colorize_internal.py
2018-07-14 21:03:05 +00:00
Igor Chubin
10209437bf
minfor fixes
2018-07-14 20:53:58 +00:00
Igor Chubin
0ae85c4d67
added COLORIZED_INTERNAL_TOPICS
2018-07-14 20:53:34 +00:00
Igor Chubin
96b752ba2d
disabled unused langdetect
2018-07-14 20:18:48 +00:00
Igor Chubin
b24381c740
Merge branch 'master' of https://github.com/chubin/cheat.sh
2018-07-14 20:04:11 +00:00
Igor Chubin
f32a902339
fixed problem with wrong syntax highlighting for lang aliases
2018-07-14 20:03:43 +00:00
Igor Chubin
f75b38fa1f
Merge pull request #57 from StrikingLoo/master
...
Refactor get_answer.py
2018-07-14 22:00:29 +02:00
Igor Chubin
912e77faa3
Merge pull request #58 from md2perpe/fix-mydir
...
Fix incorrect MYDIR
2018-07-14 21:35:17 +02:00
Igor Chubin
6e190adbcf
sanitizing query
2018-07-14 08:22:58 +00:00
Luciano Strika
e38f68f8bd
end refactor of isdir
2018-07-14 01:39:00 -03:00
Luciano Strika
1b7c80f229
rename function after privacy convention.
2018-07-14 01:32:29 -03:00
Luciano Strika
3331608e98
big refactor of update_cheat_sheets_topics to make it more readable and maintainable.
2018-07-14 01:31:36 -03:00
Luciano Strika
c47c7eead4
refactor first half of update_cheat_sheets_topics for clarity and maintainability
2018-07-14 01:08:09 -03:00
Luciano Strika
ec6f7d1337
saw a common pattern and cleaned the code for cheat topics updater function
2018-07-14 00:45:35 -03:00
Luciano Strika
575054760f
refactor tldr_update so it fits in two lines. abrstracted logic away into a function.
2018-07-14 00:42:30 -03:00
Igor Chubin
7d244565d8
Merge pull request #49 from StrikingLoo/master
...
Refactors in beautifier.py
2018-07-14 00:50:27 +02:00
Per Persson
251256d418
Fix incorrect MYDIR
2018-07-13 23:59:01 +02:00
Luciano Strika
fa95f843a3
correct my linting
2018-07-12 21:57:05 -03:00
Luciano Strika
3a111580e0
make code here a bit cleaner.
2018-07-12 21:45:45 -03:00
Luciano Strika
defd1e397a
use constant names to reaplce number. It is easier to understand what the code does now, and future refactors will be less error prone.
2018-07-12 21:40:16 -03:00
Luciano Strika
28fb2bfec6
abstract functions away for improved readibility and maintainability
2018-07-12 21:39:22 -03:00
Luciano Strika
da28771646
add constants for improved readibility of code.
2018-07-12 21:37:29 -03:00