
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
____ ___ ____ ____ __ __ ______
| _ \ / _ \ | \ / \ | | | | / 12 \
| | | | | | | | | [] / / ^ \ | | | | | ^ |
| |_| | | |_| | | [] \ / /\ \ | |__ | |__ |9 |-> 3|
|____/[] \ ___ /[] |____/ /__ / \ __\ |_____| |_____| \___6__/
Movement has long been used to measure time. For example, the ball clock is a simple device which keeps track of the passing minutes by moving ball-bearings. Each minute, a rotating arm removes a ball bearing from the queue at the bottom, raises it to the top of the clock and deposits it on a track leading to indicators displaying minutes, five-minutes and hours. These indicators display the time between 1:00 and 12:59, but without 'a.m.' or 'p.m.' indicators. Thus 2 balls in the minute indicator, 6 balls in the five-minute indicator and 5 balls in the hour indicator displays the time 5:32.
__ __ _ ____ ___ ___ \\ //
| \_/ | / \ / __| / \ \\ || \\//
| | / _ \ | |__ | [ ] | \\ //\\
|_/\_/\_| /_/ \_\ \____| \___/ ||_\\ // \\
rvm install version_number
gem install danno_ball_clock
or clone it from this repo.Valid numbers are in the range 27 to 127.
The Clock supports two modes of computation.
The Clock takes two parameters, the number of balls and the number of minutes to run the Clock for. If the number of minutes is specified, the clock runs the number of minutes and reports the state of the tracks at that point in a JSON format. If no run time is provided then a JSON format will be returned with the number of days tell ball queue order returns to it's original state.
Sample Input 30 325
Output for the Sample Input {"Min":[],"FiveMin":[22,13,25,3,7],"Hour":[6,12,17,4,15],"Main" [11,5,26,18,2,30,19,8,24,10,29,20,16,21,28,1,23,14,27,9],"cycleDays":0}
ruby -Ilib ./bin/clock {27,0}
or ruby -Ilib ./bin/clock {30,325}
# if clonedruby -Ilib ~/.rvm/gems/ruby-2.2.3/gems/danno_ball_clock-0.0.4/bin/clock {33,90}
# if installed via gem install
rake
# if clonedcd ~/.rvm/gems/ruby-2.2.3/gems/danno_ball_clock_0.0.4
then rake
# if installed via gem install
FAQs
Unknown package
We found that danno_ball_clock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.