Mercurial Hosting > repper
changeset 1:deb42211d649
Automated Vimcurial commmit
author | VilyaemKenyaz |
---|---|
date | Mon, 11 Sep 2023 12:53:43 -0400 |
parents | 0e9d15783f1d |
children | d7e5ec99037f |
files | .repper.c.swp LICENSE.TXT REPPER.MAN c.ksh repper repper.c |
diffstat | 6 files changed, 49 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LICENSE.TXT Mon Sep 11 12:53:43 2023 -0400 @@ -0,0 +1,29 @@ + CHRISTIAN FREE SOFTWARE LICENSE + CFSL + +This software is free and open source charity ware, users are asked +to donate to the Eastern Orthodox Church by any means. + +Redistribution of this project in source and/or binary forms with/without +modification, are permitted provided that the following conditions are met: + +1. Redistributions must retain this notice, the conditions, and the disclaimer. +2. Redistributions must retain credit to the author, and signage to where the original +work can be found. +3. Redistributions cannot become a part of, in anyway shape or form, part of proprietary +software, or software that is clearly out of line with Christian values. +4. Redistributions must remain free. + +DISCLAIMER + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/REPPER.MAN Mon Sep 11 12:53:43 2023 -0400 @@ -0,0 +1,13 @@ +REPPER +.SH +NAME +.PP +REPPER +.SH +SYNOPSIS +.PP +REPPER +.SH +DESC +.PP +C Program that helps you keep track of your reps and sets and paces you.
--- a/c.ksh Fri Aug 25 13:46:12 2023 -0400 +++ b/c.ksh Mon Sep 11 12:53:43 2023 -0400 @@ -4,5 +4,5 @@ echo "Compiling" rm repper tcc repper.c -o repper -cp repper /usr/bin/ +doas cp repper /usr/bin/ ./repper
--- a/repper.c Fri Aug 25 13:46:12 2023 -0400 +++ b/repper.c Mon Sep 11 12:53:43 2023 -0400 @@ -6,30 +6,27 @@ int main(int argc, char* argv[]){ - if (argc == 1){ - puts("Repper by Vilyaem peepsoftgames.github.io thekenyaz@yandex.com\n Usage: \n repper (unsigned int sets) (unsigned int reps) (unsigned int reptime) (unsignd int settime)\n 3 Beeps is a set completion, 1 beep is rep completion, this uses the 'beep' program. \n"); - exit(1); - } + if (argc == 1){puts("Repper by Vilyaem peepsoftgames.github.io thekenyaz@yandex.com\n Usage: \n repper (unsigned int sets) (unsigned int reps) (unsigned int reptime) (unsignd int settime)\n 3 Beeps is a set completion, 1 beep is rep completion.\n");exit(1);} unsigned int sets = atoi(argv[1]); unsigned int reps = atoi(argv[2]); unsigned int reptime = atoi(argv[3]); unsigned int settime = atoi(argv[4]); printf("Starting repper with %d Sets and %d Reps Rep Rest: %d Set Rest: %d \n", sets, reps, reptime, settime); - printf("Waiting 3 Seconds to make sure you are ready\n"); + puts("Waiting 3 Seconds to make sure you are ready\n"); sleep(3); for ( sets > 0; sets--;){ - for (unsigned int newreps = reps; newreps > 0; newreps --){ + for (unsigned int newreps = reps; newreps > 0; newreps --){ sleep(reptime); - system("beep"); + putchar('\a'); printf("Rep completed, reps left in the set: %d\n", newreps); } - system("beep;beep;beep"); + puts("\a\a\a"); printf("Set completed, sets left in the exercise: %d\n", sets); sleep(settime); } - printf("Repper is finished\n"); + puts("Repper is finished"); exit(0); }