Giter Site home page Giter Site logo

matardy / python_automation_cpp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 19 KB

This is how to run cpp program and organize all of your executable files, since in unix system you can't add them to .gitignore

C++ 5.57% Python 94.43%
python cpp gitignore compiled-language unix automation

python_automation_cpp's Introduction

python_automation_cpp

This is python script that automate the cpp compilation throught console.

How to use it:

First you need to have python 3.x.x and g++ compiler install. Then you will need vscode in order to run this program, on vscode install the extension "terminal-command-keys" Screen-Shot-2021-10-28-at-14-23-53

Now its time to configure your shourcuts: press cmd+shift+p or ctrl+shift+p type key and open the following: Screen-Shot-2021-10-28-at-14-26-21

Inside of it copy and paste the keybinding-config.json file in this repository. Open a vscode file press cmd+b and cmd+h and enjoy!

Motivation

I'm a mac user, one day I wanted to upload my C++ projects to a github repository and I noticed that I had a bunch of executable file, since C++ its a compiled lenguage. In unix based OS you cant add this executable files to .gitignore, so that was a problem.

Solution

I came up with an elegant solution, when I compiled my programs, this executable files will go to a folder /bin and then I can add /bin in .gitignore and problem solved!

Extras:

This code give you beatifully colored message in your console, telling you if there are sort of mistakes or typos.

Screen-Shot-2021-10-28-at-14-17-09 Screen-Shot-2021-10-28-at-14-17-31 Screen-Shot-2021-10-28-at-14-17-47 Screen-Shot-2021-10-28-at-14-18-05

In this repository I have not exclude the /bin folder to you, but its just for demostration the ideal thing is that you add bin in your .gitignore file

python_automation_cpp's People

Contributors

matardy avatar

Stargazers

 avatar

Watchers

 avatar

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.