Skip to content

eurosat7/ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii

A little digital clock in ascii art.

Looks good on a 800x480 display in fullscreen.

Has some C=64 vibes. :)

purpose & focus

This one is not limited to just rendering a clock. You can do a lot more. A clock was just nice because it was reloading every second so I could skip on pressing F5. :D

This is just an example on how to use generators and typehinting them.

compiling the autoloader

Open a shell (aka bash, prompt, terminal, command line) and run:

composer update

I expect you have composer on your pc.

serving

Open a shell (aka bash, prompt, terminal, command line) and run:

php -S localhost:8088

Point your browser to localhost:8088.

To stop the php server press Ctrl+C.

I expect you have php on your pc.

testing code quality

composer update
make get-phpcpd
make test

I expect you have make on your pc.

If not:

composer update
wget https://phar.phpunit.de/phpcpd.phar -nc -O ./phpcpd.phar 
chmod +x ./phpcpd.phar
./phpcpd.phar src
./vendor/bin/phpmd src text cleancode,codesize,controversial,design,unusedcode
./vendor/bin/phpstan
./vendor/bin/psalm
./vendor/bin/rector -n

But please, get make and learn it; It is old but rocks still.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors