このライブラリは、ブロック内の処理時間を計測するためのライブラリです。
A pure Ruby DOM polyfill built on Makiri, inspired by happy-dom and jsdom. It gives Ruby tests a browser style DOM with events, MutationObserver, Custom Elements, Shadow DOM, the File API, timers, and Storage, without requiring a real browser.
A powerful Ruby-based task runner for any kind of project with task dependency tracking and concurrent execution of designated tasks. Uses Thor for its rich CLI options, with dotenv, sh/shebang helpers, importable task files, scheduled execution of tasks via launchd (macOS) or systemd timers (Linux), a file watcher and background jobs.
A work-in-progress PlayStation 1 emulator written entirely in Ruby. Implements the MIPS R3000A CPU, GTE, GPU (software rasteriser), DMA, interrupts, timers, CD-ROM stub, SIO0 controller, and a minimal SPU — enough to boot the SCPH1001 BIOS into the Memory Card / CD-ROM shell. Ships an SDL2-backed front-end via the `psx` command. A BIOS image is not included and must be supplied by the user.
ronin is a terminal focus timer with bushido spirit. Pomodoro sessions with warrior quotes on completion, shame on abandonment, and streak tracking. Zero dependencies. Runs on Ruby stdlib only.
# Use as a Command Line Utility The main purpose of this gem is to provide a command line timer that can time small activities that make up a large activity. For example, if you want to study for 3 hours, but you want to break that up into 1 hour blocks, this is the perfect tool. You could run the following: `subtime -m 180 -s 120,”Switch to Biology”,60,”Switch to Chemistry”` This would count down from 180 minutes giving you the Biology reminder after an hour and the Chemistry reminder after another hour.
A plugin for 'thyme' pomodoro timer, which scores tasks every time a pomodoro is successfully completed.
A production-grade lightweight background job scheduler built on the Fiber::Scheduler interface itself, not on any one implementation: it runs under Async/Falcon, Itsi, or anything else that installs a scheduler. Single event loop with min-heap timer, skip-overlapping execution, jitter, monotonic clock intervals, semaphore concurrency control, and deterministic worker sharding.
== Easily add colors, boxes, repetitions and emojis to your terminal output using pipes (|). Install using the Ruby Gem: > gem install pipetext Includes a library module which can be included in your code: require 'pipetext' class YellowPrinter include PipeText def print(string) write('|Y' + string + '|n') end end printer = YellowPrinter.new printer.print('This is yellow') The gem includes a command line interface too: > pipetext > pipetext '|Ccyan|n' Easily set your bash prompt colors using pipetext: > PS1=$(pipetext '|$|g\u|n@|g\h|n:|g\w|n$ ') Works with files: > pipetext <filename> Works with pipes too: > echo '|RRed test |u1f49c|n' | pipetext --- | pipe || & ampersand && Toggle (&) background color mode |& white |w white |W black text on white background |k&w red |r bright red |R red background &r green |g bright green |G green background &g blue |b bright blue |B blue background &b cyan |c bright cyan |C cyan background &c yellow |y bright yellow |Y yellow background &y magenta |m bright magenta |M magenta background &m --- Hex RGB color codes: Foreground |#RRGGBB Background &#RRGGBB Palette colors (256) using Hex: |p33&pF8 Clear Screen |! black with white background |K&w Blinking |@ white with magenta background |w&m invert |i white with green background |w&g Underlined |_ red with cyan background |r&c Italics |~ bright red with blue background |R&b Bold |+ green with yellow background |g&y Faint |. bright green with red background |G&r Crossed out |x normal color and background |n&n Escape Sequence |\ Center text using current position and line end number |{text to center} Add spaces to line end |; Set line end |]# Set current x,y cursor position |[x,y] Terminal bell |[bell] Move cursor up 1 line |^ Hide cursor |h Move cursor down 1 line |v Unhide cursor |H Move cursor forward 1 character |> Sleep timer in seconds |[#s] Move cursor back 1 character |< Sleep timer in milliseconds |[#ms] Capture variable |(variable name=data) Display variable |(variable name) Add to variable |(variable name+=data) Subtract from variable |(variable name-=data) Multiple variable |(variable name*=data) Divide variable |(variable name/=data) Copy variable to current number |(#variable name) |$ toggles [ and ] around empty sequences automatically for bash command prompts --- Emojis: https://unicode.org/emoji/charts/full-emoji-list.html |[Abbreviated CLDR Short Name] 😍 |[smiling face with heart-eyes] or ⚙ |[gear] 💤 |[zzz] 👨 |[man] 😍 |[sm f w he e] ✔ |U2714 ❌ |U274c ☮ |u262E 💎 |u1f48e 💜 |u1f49c --- Single or double line box mode with |- or |= ┌──┬──┐ ╔══╦══╗ +--+--+ <-- Draw this with this: |15 |-[--v--] |=[--v--] |o[--v--] │ │ │ ║ ║ ║ | | | |15 |-! ! ! |=! ! ! |o! ! ! 123456789012345├──┴──┤ ╠══╩══╣ +--+--+ |y1234567890|g12345|n|->--^--< |=>--^--< |o>--^--< 15 Spaces │ │ ║ ║ | | |c15|n Spaces|6 |-! ! |=! ! |o! ! (|15 ) └─────┘ ╚═════╝ +-----+ (||15 )|9 |-{-----} |={-----} |o{-----} ┌──────────────────┐ ╔════════════════════╗ |-[|18-]|4 |g&m|=[|20-]|n&n|O │ │ ║ ║ |-!|18 !|4 |g&m|=!|20 !|n&n|O ├──────────────────┤ ╠════════════════════╣ |->|18-<|4 &m|g|=>|20-<|n&n|O │ │ ║ ║ |-!|18 !|4 |g&m|=!|20 !|n&n|O └──────────────────┘ ╚════════════════════╝ |-{|18-}|4 |g&m|={|20-}|n&n|O --- Repetition using | followed by the number of characters to repeat and then the character to repeat. |15* does the * character 15 times like this: *************** --- ==Use the ++pipetext++ command to see other options and examples.
Timer API
Debounce Ruby callbacks across processes through a lightweight Ruby timer server
Displays a countdown timer to a specified future date with millisecond precision
Ruby bindings for Spacetime, a Lisp-like language for getting and computing datetimes.
[オンライン開催:東京エリア・関西合同Debian勉強会(2021/04/17(土))](https://debianjp.connpass.com/event/208924/)の発表資料です。 crontab の代わりに systemd-timer を使う、および user 権限での systemd の話です。
Uses the CCAN timer implementation and hooks in the main Ruby VM to speed up timeout.rb