Coder Social home page Coder Social logo

cosme12 / cheatsheet-maker Goto Github PK

View Code? Open in Web Editor NEW
115.0 9.0 26.0 218 KB

Cheetsheet (cheat sheet or quick reference) generator. Use it for guides, instructions or study. Made in Python 3

License: MIT License

Python 79.51% HTML 20.49%
study cheatsheet template-engine quick-reference manual guia-rapida html-generation

cheatsheet-maker's People

Contributors

cosme12 avatar jcharante 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cheatsheet-maker's Issues

New graphic interface

Quote from reddit user u/animalAbit

Cool Project. However, the CLI interface not my favorite for this case. I would love something like editing a text file in some markdown like format and the tool would produce a neatly formatted html cheat sheet(or any desirable format) just like your final output. Something akin to jekyll, but for cheat sheets. That way, I can edit freely and also choose to reuse my work if I choose to.

Improve code organization

Quote from reddit user MrBernoulli

It looks fine, honestly. My only suggestions are to:

  • Put your HTML/CSS in a text file and read it in. Don't put massive text blocks in your python code.
  • Your comments are weird, they should be like: """ The html sheet to be created and customized. """
  • Did you copy and paste this a lot: ################################################
    If you find yourself copy/pasting the same thing over and over, store it as a variable. That way if you wanted to use 50 #s instead of 55, you only have to change it in one place.

How exactly does it work?

When I run sheetmaker.py, my mouse cursor becomes a cross-hair and that is it, nothing else happens. It would be nice to have some kind of documentation on how this program is supposed to work.

Export to PDF

One of the main features. It will probably be one of the most useful additions to be included. Exporting to PDF allows you to share it with people, print or open anywhere.

Help & Tips option

Help option should be added. FAQ should be listed there including tips to bypass features not fnished yet.

Crash when color style input is invalid

Hej there,
I was fiddling around a bit and put a random text when asked for the color style. Eventually, cheatsheet-maker throws an error. See my input history below:

Choose your language:
1. English
2. Español (NOT CODED YET)
1
##################################################################
#                                                                #
#                                                                #
#                 Welcome to CheatSheet Maker 1.0                #
#                                                                #
#                                                                #
##################################################################
Type the number to choose your option.
1. Create sheet
2. Export (NOT CODED YET)
3. Help (NOT CODED YET)
4. Exit
1
##################################################################
Building the basic layout... answer the next questions.
1. What is your sheet title? ('CheatSheet' is added automatically)
foo
How many columns your sheet will have?
1. 1 main column
2. 2 main columns
3. 3 main columns
1
Which color style do you prefer?
1. Orange
2. Black and white
fdsaölkj
Invalid input. Try again.
##################################################################
Building the basic layout... answer the next questions.
1. What is your sheet title? ('CheatSheet' is added automatically)
foo
How many columns your sheet will have?
1. 1 main column
2. 2 main columns
3. 3 main columns
1
Which color style do you prefer?
1. Orange
2. Black and white
1
##################################################################
Building the header... answer the next questions.
1. What is the author name?
pylipp
##################################################################
Building the footer... answer the next questions.
1. What is the author picture url?

1. What is the author website url? (use http://)
http://github.com/pylipp
1. What is the sponsor name?
Beer
1. What is the sponsor webite url? (use http://)

##################################################################
Building the blocks... answer the next questions.
0. Done
1. Create text block
2. Create block with rows
0
##################################################################
Thanks for using CheatSheet Maker. Feel free to share your ideas at http://github.com/cosme12/cheasheet-maker
Press any key to exit
Traceback (most recent call last):
  File "sheetmaker/sheetmaker.py", line 27, in <module>
    sys.exit(main())
  File "sheetmaker/sheetmaker.py", line 23, in main
    new_wizard.main_menu()
  File "/home/<user>/code/python/cheatsheet-maker/sheetmaker/sheet_wizard.py", line 91, in main_menu
    self.config_sheet()
  File "/home/<user>/code/python/cheatsheet-maker/sheetmaker/sheet_wizard.py", line 137, in config_sheet
    self.NewSheet.set_style(color)
  File "/home/<user>/code/python/cheatsheet-maker/sheetmaker/html_builder.py", line 172, in set_style
    }}""".format(color_main[self.color], color_secundary[self.color])        
KeyError: 'fdsaölkj'

Export to PNG and JPG

I think this will be harder to do than exporting to PDF. A quick google search didn't show any possible module to accomplish this.

Add more examples

There is only 1 example. A few more would be great. Screnshoots may also work. Could probably do a google search and try to "replicate" some cheat sheets

Sheet preview

Right now, the only way to preview the sheet while you are building it is by opening the html file and reloading.
A window displaying the actual sheet, after a "new block" is added, would be a great feature.

Fails on a mac machine

Traceback (most recent call last):
  File "sheetmaker/sheetmaker.py", line 14, in <module>
    import sheet_wizard
  File "/Users/gsuga/Play/cheatsheet-maker/sheetmaker/sheet_wizard.py", line 68
SyntaxError: Non-ASCII character '\xc3' in file /Users/gsuga/Play/cheatsheet-maker/sheetmaker/sheet_wizard.py on line 68, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

This happens in MAC machine.

Basic tests

Tests should be added. I will need help with this.

Undo option

Right now there is no way to correct mistakes. If you dont like the block or changed your mind you either start a new sheet or edit the html file. Adding the option to undo blocks while you preview them would have a great speed advantage.

Tests for SheetWizard

Right now SheetWizard is not being tested. It would probably need a code reoganization in order to be able to add tests.

Add more color styles

More color styles are needed when creating the main sheet. I think allowing to add any hexadecimal color will slow down the build time, making it more inefficient.

Documentation

Just for the seek of learning how to build a proper documentation.

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.