Giter Site home page Giter Site logo

commonscripts's Introduction

haven't finished:

empty

updated:

files updated items comments
git_push_to_new_repository.py add cmd support to transfer path arg git_push_to_new_repository.py now can support command line arguments as --path
git_push_to_new_repository.py bug fix
logger.py new colorful logger

file(s):

  • git_push_to_new_repository.py: add cmd support to transfer path arg

    • eg: copy 3 files: execute_cmd.py+shellChoose.py+git_push_to_new_repository.py

      to the new repository directory, like "./test/new_repo", then open the "git_push_to_new_repository.py" and modify user, email use you own user name and email address for gitHub.

    • Save the file you edit, and use command to run the scripts from any where.

      for example:

    python ./test/new_repo/git_push_to_new_repository.py

    You will have to fill in 3 blanks: local_name, repo_name, commit

    • local_name : used to commit when you are working at local device
    • repo_name : used to set remote repository on the github.com
    • commit : used to explain what you've done in order to help others understand your work
  • logger.py: a colorful logger file

    ''' 
    simple examples for logger.py
    '''
    import logger
    log1 = logger.getLogger(loggername='test')
    log2 = logger.getLogger(loggername='test', filename='myApp.log', colorful=True)
    log2.info('Info test')
    log2.debug('debug message')
    log2.error('Error occured!')
    log2.exception('This is an exception')
    log.debug(log1 is log2)
    
    # set attibutes
    log.set_logger(backup_count=10)
    log.set_logger(loggername='new_test_logger')

    โ€‹

Finished

files functional description comments
git_push_to_new_repository.py can be used to push github only for the first time
execute_cmd.py can execute multiple commands or singal commands for the same interface But when tested on Windows 10, the process will be stucked by some commands like "cmd" or "winver". It seems like a bug for the "subprocess" module.

commonscripts's People

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.