Coder Social home page Coder Social logo

scholarship_logtime's Introduction

time banner

⏱ scholarship_logtime ⏱

Hello there !

Here's my first personal project which is a program that may be interesting to 42 GEN scholarship students:
It calculates the total logtime a person has done from the 27th to the 26th of the current month or the month you chose, counting bonus time from the previous month if there is any !

Git clone my repo

  git clone https://github.com/Nonino42/scholarship_logtime.git

API

As the program needs to access the 42 API, you will have to create an application v2 in your intra

For that, go on your intra, click on your profile, settings, API, register a new app at the top right on your screen

You can skip the other cases

Now you should have your UID and your SECRET

Now go back to your terminal and set your application's UID and SECRET in sslog.sh file

  UID_42="your_application_UID"
  SECRET_42="your_application_SECRET"

Execute the program by doing like so:

  ./sslog.sh your_42_login chosen_month -s
  
  #If you don't put anything for the chosen_month, it will automatically choose the current month
  #If you put the "-s" flag it will show you the dates
  • If you have chosen the current month, the program also tells you:
    • how much time is left before the 27th
    • how many days are left before the 27th (counting days off if you have set any)
    • how much time you should do each day (counting days off if you have set any)
FAQ ANSWER
BONUS LOG Note that you can cumulate up to 70 hours of bonus logtime and it's only applicable for the next month
LOGS NOT DISPLAYED YET you have to wait until midnight !
CAN WE CHOOSE ANY MONTH You can't choose a month that is older than 4 months
PUBLIC HOLIDAYS Automatically add 7 hours; if you come that day, the logtime you will do will be appended to it

‼️ IT DOESN'T TELL THE EXACT LOGTIME ‼️

My bonus logtime is not the same as the real bonus logtime

If you have a doubt about your logtime, please ask your staff

Documentation

Author 👨‍💻

Feel free to contact me if you have anything to say about the program / bugs !

scholarship_logtime's People

Contributors

hanmpark avatar

Stargazers

rdedola 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.