Rockstar - Makes you a Rockstar C++ Programmer in 2 minutes

Overview

Rockstar

downloads version supported license

Rockstar is one amazing library, which will make you a Rockstar Programmer in just 2 minutes. In last decade, people learned C++ in 21 days. But these days, it has come down to just 10 minutes. But, I wanted to do better.

This repo will not only teach you Complete C++ in just 2 minutes, but also makes Open Source Contributions. You see, Open Source contributions are very important these days, especially if you can get those boxes filled with green on your Github profile. As an efficient programmer, I believe in killing two birds in just one shot.

Run Rockstar, be a Rockstar, show off your Github profile to everyone and bag those $200K programmer jobs. Once you become a Rockstar, every recruiter will want to hire you and there is no turning back.

Installation

Rockstar is Python 3 only library. Rockstar programmers don't code in Python 2.

pip install rockstar

Usage

Time is very important. Do not waste time reading large manuals or listen to people who tell you how to learn C++, run these couple of lines instead:

from rockstar import RockStar

rock_it_bro = RockStar(days=300)
rock_it_bro.make_me_a_rockstar()

Above script will create a git repository in the current directory. After that, create a repo on Github and push the local repo. That's all!

days specify number of boxes you want to fill with green. Default value is 400. Remember, more commits, more green, more Rockstar you are!

Become a Rockstar Swift Programmer with 5 years of experience:

from rockstar import RockStar

swift_code = "print('Hello world')"
rock_it_bro = RockStar(days=1900, file_name='hello.swift', code=swift_code)
rock_it_bro.make_me_a_rockstar()

CLI Masterrace

Sometimes when Atom takes too long time to start, you can use the command line version instead:

rockstar --days=666

Testimonials

This is how your profile looks:

greens

Such glorious, much wow!

Many people have received jobs from the big 4 after becoming a Rockstar, using Rockstar

google

and also:

swiftguy

Feel free to send a PR and add your name.

Todo

  • Polyglot Rockstar

License

The mighty MIT license. Please check LICENSE for more details.

Comments
  • Added many examples.

    Added many examples.

    A lot of people don't respect the classics these days, so it takes a true artist to have the appreciation for the masters and works that came before.

    Since a true rock-star knows his history I felt it best to acknowledge that with this addition.

    opened by duaneking 8
  • Not much of a rockstar here

    Not much of a rockstar here

    can anyone tell me where im going wrong?

    running python 3.4

    when i run the example module.... i get an error like this

    Traceback (most recent call last): File "/Users/user/Desktop/rockstar/example.py", line 1, in from RockStar import RockStar File "/Users/user/Desktop/rockstar/RockStar/init.py", line 9, in import git ImportError: No module named 'git'

    opened by hsavit1 7
  • "from: can't read /var/mail/rockstar"

    Hey,

    Tried playing with this but getting this error when typing

    I've done sudo pip install rockstar and all requirements are satisfied. I've also installed python 3.6, and gitpython.

    So I'm doing git init then cd to ~/.git/ There trying to from rockstar import RockStar and getting the error from: can't read /var/mail/rockstar.

    Any idea of what I'm f*cking up ?

    opened by jpvalery 6
  • just can't work ,why?

    just can't work ,why?

    from rockstar import RockStar rock_it_bro = RockStar(days=300) rock_it_bro.make_me_a_rockstar()//started going wrong

    Traceback (most recent call last): File "C:\Python34\lib\site-packages\git\cmd.py", line 573, in execute **subprocess_kwargs File "C:\Python34\lib\subprocess.py", line 859, in init restore_signals, start_new_session) File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child startupinfo) FileNotFoundError: [WinError 2] System can not find the file specified.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "", line 1, in File "C:\Python34\lib\site-packages\rockstar\RockStar.py", line 81, in make_m _a_rockstar self.repo = git.Repo.init(self.repo_path) File "C:\Python34\lib\site-packages\git\repo\base.py", line 764, in init git.init(*_kwargs) File "C:\Python34\lib\site-packages\git\cmd.py", line 440, in return lambda *args, *_kwargs: self._call_process(name, _args, *_kwargs) File "C:\Python34\lib\site-packages\git\cmd.py", line 810, in _call_process return self.execute(make_call(), **_kwargs) File "C:\Python34\lib\site-packages\git\cmd.py", line 576, in execute raise GitCommandNotFound(str(err)) git.exc.GitCommandNotFound: [WinError 2] System can not find the file specified.

    somebody can help me ,thx

    opened by wdongm 6
  • Make it skip some days randomly

    Make it skip some days randomly

    Idea - it can take float parameter from user and that will be the fraction of days that user wants to skip randomly from the total number of days user has mentioned.

    I can take it up immediately. Just want to make sure, you are still maintaining it and merging PRs @avinassh

    opened by sahildua2305 5
  • Can't update number of days

    Can't update number of days

    I used it to make 300 days commit history and then on the same directory used it for 900 days , but it kept with original 300 days , and now no body will hire me :scream: :stuck_out_tongue_winking_eye:

    bug 
    opened by kiloreux 4
  • gitdb.utils.compat - Not found

    gitdb.utils.compat - Not found

    Trying to run this myself... After trying to import RockStar, I get the following traceback:

      File "/home/dio/.local/lib/python3.7/site-packages/git/compat.py", line 12, in <module>
        from gitdb.utils.compat import (
    ModuleNotFoundError: No module named 'gitdb.utils.compat'
    

    From a google search result, I found this. Maybe the GitPython version just needs to be updated?

    opened by FormerlyChucks 3
  • Gives the following error when I run it in pycharm

    Gives the following error when I run it in pycharm

    /Users/irateleaf/PycharmProjects/Demo/venv/bin/python /Users/irateleaf/PycharmProjects/Demo/venv/LetsDoIt.py Making you a Rockstar Programmer Making you a Rockstar Programmer Traceback (most recent call last): File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 137, in _get_ref_info fp = open(join(repo.git_dir, ref_path), 'rt') FileNotFoundError: [Errno 2] No such file or directory: '/Users/irateleaf/PycharmProjects/Demo/venv/.git/refs/heads/master'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 91, in _iter_packed_refs fp = open(cls._get_packed_refs_path(repo), 'rt') FileNotFoundError: [Errno 2] No such file or directory: '/Users/irateleaf/PycharmProjects/Demo/venv/.git/packed-refs'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last): File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 111, in _iter_packed_refs raise StopIteration StopIteration

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last): File "/Users/irateleaf/PycharmProjects/Demo/venv/LetsDoIt.py", line 4, in rock_it_bro.make_me_a_rockstar() File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/rockstar/RockStar.py", line 85, in make_me_a_rockstar self._edit_and_commit(str(uuid.uuid1()), commit_date) File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/rockstar/RockStar.py", line 65, in _edit_and_commit self.repo.index.commit(self._get_random_commit_message()) File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/index/base.py", line 924, in commit head, author=author, committer=committer) File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/objects/commit.py", line 299, in create_from_tree parent_commits = [repo.head.commit] File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 183, in _get_commit obj = self._get_object() File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 176, in _get_object return Object.new_from_sha(self.repo, hex_to_bin(self.dereference_recursive(self.repo, self.path))) File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 125, in dereference_recursive hexsha, ref_path = cls._get_ref_info(repo, ref_path) File "/Users/irateleaf/PycharmProjects/Demo/venv/lib/python3.7/site-packages/git/refs/symbolic.py", line 148, in _get_ref_info for sha, path in cls._iter_packed_refs(repo): RuntimeError: generator raised StopIteration

    Process finished with exit code 1

    opened by vaibhavsethia 3
  • Launch rockstar

    Launch rockstar

    Traceback (most recent call last): File "/usr/local/bin/rockstar", line 9, in load_entry_point('rockstar==0.5', 'console_scripts', 'rockstar')() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2394, in load_entry_point return ep.load() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/Library/Python/2.7/site-packages/rockstar/init.py", line 1, in from .RockStar import RockStar File "/Library/Python/2.7/site-packages/rockstar/RockStar.py", line 11, in import git File "/Library/Python/2.7/site-packages/git/init.py", line 6, in from repository import Repository, InvalidRepositoryError File "/Library/Python/2.7/site-packages/git/repository.py", line 11, in from objects import Commit File "/Library/Python/2.7/site-packages/git/objects/init.py", line 10, in from .submodule import util as smutil File "/Library/Python/2.7/site-packages/git/objects/submodule/util.py", line 3, in from git.config import GitConfigParser ImportError: cannot import name GitConfigParser

    Hello,

    I've just install rockstar, but when I try to launch rockstar, i've got an error about a GitConfigParser ?

    Any ideas ?

    Max.

    opened by tolsadus 3
  • Add frequency to make it looks more real.

    Add frequency to make it looks more real.

    Hi guys, this project is really cool! However, people can not always keep a ~400 days streak without a break off. So I have added some frequency feature, which makes the result more convincible.

    For example, if I set the frequency to 0.80 (the default is 1.00):

    from RockStar import RockStar
    
    rock_it_bro = RockStar(frequency=0.80)
    rock_it_bro.make_me_a_rockstar()
    

    Then the result will be like this:

    screen shot 2015-07-21 at 6 05 07 pm

    opened by dinever 3
  • Making Rockstar more Rockstarry by following PEP8

    Making Rockstar more Rockstarry by following PEP8

    Did following changes:

    • Added staticmethod decorator
    • Constants name capitalized
    • Default initialization in __init__.py
    • Making default argument immutable
    opened by tusharmakkar08 2
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    *Total -- 352.13kb -> 269.52kb (23.46%)

    /images/greensgreensgreens.png -- 78.83kb -> 46.39kb (41.15%) /images/google.png -- 150.98kb -> 121.70kb (19.39%) /images/theGuyWhoCreatedSwift.png -- 122.32kb -> 101.42kb (17.09%)

    Signed-off-by: ImgBotApp [email protected]

    opened by Pohakanui 0
  • Add Other Languages

    Add Other Languages

    In the beginning was the word. ^ Expected "&", "'n'", "(", "*", "+", ", and", ",", "-", "/", "=", "\n", "\r", "ain't", "aint", "and", "are ", "at", "between ", "is ", "is", "minus ", "nor", "of ", "or", "over ", "plus ", "says ", "takes", "taking", "times ", "was ", "were ", "with ", "without ", [ \t], [;,?!&.], or [A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĸĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽ] but "t" found. line 1 col 4

    opened by alex-d-fox 1
  • Does not support Rasberry PI

    Does not support Rasberry PI

    I laughed when I saw this and wondered if it ran on my raspberry pi; Tried this on a rasberry pi and the version it installs does not work. :(

    pi@raspberrypi ~/github/rockstar/lol/rockstar/RockStar $ python3 init.py Traceback (most recent call last): File "init.py", line 9, in import click File "/usr/local/lib/python3.2/dist-packages/click/init.py", line 18, in from .core import Context, BaseCommand, Command, MultiCommand, Group,
    File "/usr/local/lib/python3.2/dist-packages/click/core.py", line 8, in from .types import convert_type, IntRange, BOOL File "/usr/local/lib/python3.2/dist-packages/click/types.py", line 7, in from .exceptions import BadParameter File "/usr/local/lib/python3.2/dist-packages/click/exceptions.py", line 2, in from .utils import echo File "/usr/local/lib/python3.2/dist-packages/click/utils.py", line 301 file.write(u'\n') ^ SyntaxError: invalid syntax

    bug 
    opened by duaneking 5
Owner
I git stuff done
null
HiPlot makes understanding high dimensional data easy

HiPlot - High dimensional Interactive Plotting HiPlot is a lightweight interactive visualization tool to help AI researchers discover correlations and

Facebook Research 2.4k Jan 4, 2023
Python library that makes it easy for data scientists to create charts.

Chartify Chartify is a Python library that makes it easy for data scientists to create charts. Why use Chartify? Consistent input data format: Spend l

Spotify 2.8k Feb 18, 2021
HiPlot makes understanding high dimensional data easy

HiPlot - High dimensional Interactive Plotting HiPlot is a lightweight interactive visualization tool to help AI researchers discover correlations and

Facebook Research 2k Feb 17, 2021
Python library that makes it easy for data scientists to create charts.

Chartify Chartify is a Python library that makes it easy for data scientists to create charts. Why use Chartify? Consistent input data format: Spend l

Spotify 3.2k Jan 1, 2023
Flexitext is a Python library that makes it easier to draw text with multiple styles in Matplotlib

Flexitext is a Python library that makes it easier to draw text with multiple styles in Matplotlib

Tomás Capretto 93 Dec 28, 2022
A Python function that makes flower plots.

Flower plot A Python 3.9+ function that makes flower plots. Installation This package requires at least Python 3.9. pip install

Thomas Roder 4 Jun 12, 2022
The plottify package is makes matplotlib plots more legible

plottify The plottify package is makes matplotlib plots more legible. It's a thin wrapper around matplotlib that automatically adjusts font sizes, sca

Andy Jones 97 Nov 4, 2022
An application that allows you to design and test your own stock trading algorithms in an attempt to beat the market.

StockBot is a Python application for designing and testing your own daily stock trading algorithms. Installation Use the

Ryan Cullen 280 Dec 19, 2022
DrawBot lets you draw images taken from the internet on Skribbl.io, Gartic Phone and Paint

DrawBot You don't speak french? No worries, english translation is over here. C'est quoi ? DrawBot est un logiciel codé par V2F qui va prendre possess

V2F 205 Jan 1, 2023
Python scripts to manage Chia plots and drive space, providing full reports. Also monitors the number of chia coins you have.

Chia Plot, Drive Manager & Coin Monitor (V0.5 - April 20th, 2021) Multi Server Chia Plot and Drive Management Solution Be sure to ⭐ my repo so you can

null 338 Nov 25, 2022
This plugin plots the time you spent on a tag as a histogram.

This plugin plots the time you spent on a tag as a histogram.

Tom Dörr 7 Sep 9, 2022
An interactive dashboard built with python that enables you to visualise how rent prices differ across Sweden.

sweden-rent-dashboard An interactive dashboard built with python that enables you to visualise how rent prices differ across Sweden. The dashboard/web

Rory Crean 5 Dec 19, 2021
These data visualizations were created as homework for my CS40 class. I hope you enjoy!

Data Visualizations These data visualizations were created as homework for my CS40 class. I hope you enjoy! Nobel Laureates by their Country of Birth

null 9 Sep 2, 2022
A small collection of tools made by me, that you can use to visualize atomic orbitals in both 2D and 3D in different aspects.

Orbitals in Python A small collection of tools made by me, that you can use to visualize atomic orbitals in both 2D and 3D in different aspects, and o

Prakrisht Dahiya 1 Nov 25, 2021
🐍PyNode Next allows you to easily create beautiful graph visualisations and animations

PyNode Next A complete rewrite of PyNode for the modern era. Up to five times faster than the original PyNode. PyNode Next allows you to easily create

ehne 3 Feb 12, 2022
Amitkumar Mishra 2 Jan 14, 2022
This is the code repository for 40 Algorithms Every Programmer Should Know , published by Packt.

40 Algorithms Every Programmer Should Know, published by Packt

Packt 721 Jan 2, 2023
A markdown lexer and parser which gives the programmer atomic control over markdown parsing to html.

A markdown lexer and parser which gives the programmer atomic control over markdown parsing to html.

stonepresto 4 Aug 13, 2022
Technical Test - Python Programmer Grupo Nexxera

Technical Test Nexxera Group Teste Técnico - Grupo de Programadores Python Nexxera ?? Prepare-se para usar a API Nossa API de transações de contas dig

Raul dos Santos Moraes 1 Mar 16, 2022
Programmers-quest - Programmer's Quest! An open source MMO built on top of the Panda3D game engine and Astron server

Programmer's Quest! Programmer's Quest! The open source Python 3 2D MMORPG showc

Jordan Maxwell 5 Oct 7, 2022