Giter Site home page Giter Site logo

matrix-py3's Introduction

Matrix-py3

chunribu logo Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

Python3 implementation of cmatrix to generate "character falls".

Matrix-py3 is adapted from pmatrix that is well recommended if you prefer Python2.

It is also noteworthy that a timer is added to matrix-py3 for a scheduled stop. What's more, matrix-py3 can be regarded as a screensaver that runs parallel to other time-consuming programs.

screenshot

Installation

  • with pip
pip install matrix-py3
  • with conda
conda install matrix-py3 -c conda-forge

Usage

Run independently

  • in command line
matrix    # run until `Ctrl + C`
matrix 3  # run for 3 seconds
  • in python
from matrix3 import matrix

matrix()  # run until `Ctrl + C`
matrix(3) # run for 3 seconds

Run parallel to other programs

Add coolmatrix to the head of your commands. For example, ping is a command for testing a network connection. Assuming you want to run ping 8.8.8.8 -c 10 , then run:

coolmatrix ping 8.8.8.8 -c 10

All the outputs can be recorded automatically in the file cool.out .

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=110 time=75.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=110 time=81.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=110 time=82.3 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=110 time=75.0 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 75.055/78.655/82.345/3.449 ms

matrix-py3's People

Contributors

chunribu avatar

Stargazers

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