统计类名使用次数 class-count
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
Indent each line in a string
Strip redundant indentation and indent the string
Get the visual width of a string - the number of columns required to display it
Pluralize a word
This package provides support for the [RedisBloom](https://redis.io/docs/data-types/probabilistic/) module, which adds additional probabilistic data structures to Redis.
Repeat a string - fast
Word and character count feature for CKEditor 5.
font family extension for tiptap
React is a JavaScript library for building user interfaces.
Import a module while bypassing the cache
Utilities for Svelte 5 that I find useful and will use in the various projects I work on. It's maintained by me, for me.
option parsing and help generation
Count the longest repeating streak of a substring
Register global imports on demand for Vite and Webpack
Find Cypress spec files using the config settings
WordPress word count utility.
Fast token estimation at 96% accuracy of a full tokenizer in a 2kB bundle
An object-oriented command-line parser for TypeScript
Make your terminal beep
@vue/reactivity-transform
Utilities for testing Ink apps
Word count in respect of CJK characters.
FFI-free Rust implementation of LIBSVM-compatible SVM training and prediction
Production-oriented Rust inference wrapper for CED AudioSet classifiers.
Run this command with a space separated list of either manifest file paths, or directories containing manifests. If omitted, it will default to inspecting all manifests in the manifests directory, so you can just run this in the root of a Puppet module and it will do the right thing.
Provides access to the module CounterContainer. Including CounterContainer allows classes with an Integer attribute (@counter) to gain incrementing, decrementing, and other functionality.
Syntax sugar for Resque consumers. Each consumer is a class, with clean interface, and custom logger. Usefull when count of different events ~100 and more.
Extending the String Class with methods to stem, count, and clean words
A little library for spying on your classes and counting method invocations
Syntax sugar for Sidekiq workers. Each consumer is a class, with clean interface, and custom logger. Usefull when count of different events ~100 and more.
Flexible instrumentation/reporting library for pushing info, errors, counts, timing, etc. to listening bystanders like Librato, Rollbar, New Relic, Rails logs or any custom reporting class.
The SMPTE gem provides a class for handling SMPTE time codes and includes functionality for parsing, comparing, adding, subtracting, converting and extracting frame counts. This code was originally used by the author as part of an EDL parser.
a minimalist server, based on rack, with routing, rendering, and controllers. Designed for quick api.
linecounter scans a git repository and reports per-file quality signals: non-empty lines of code, git churn, control-flow branching, and class-structure counts with average statement lines per item. Output as text or JSON.
This gem installs several class methods to Object which in turn generates both class and instance methods but only when you are ready. In order to prevent name pollution, you have the ability to manage the generators to pick alternate names if you prefer. After scouring the RubyGems site, some of the better Class upgrades are included here as well as some of my own. The gem creates the backbone upon which future upgrades should be forthcoming. As a teaser, some of the generators presently include: obj.local_methods, obj.inherited_methods, obj.replaced_methods, obj.in?, COBJ.comes_from?, COBJ.derives_from?, obj.find_def. There are currently 20 generators and counting. Calling Object.better_install_all will install all of the generators. You can also generate a subset by calling Object.better_install(:generator_name). The generator names are also the method names which can be renamed by calling Object.better_rename(old_name, new_name);
CircuitBreaker is a relatively simple Ruby mixin that will wrap a call to a given service in a circuit breaker pattern. The circuit starts off "closed" meaning that all calls will go through. However, consecutive failures are recorded and after a threshold is reached, the circuit will "trip", setting the circuit into an "open" state. In an "open" state, every call to the service will fail by raising CircuitBrokenException. The circuit will remain in an "open" state until the failure timeout has elapsed. After the failure_timeout has elapsed, the circuit will go into a "half open" state and the call will go through. A failure will immediately pop the circuit open again, and a success will close the circuit and reset the failure count. require 'circuit_breaker' class TestService include CircuitBreaker def call_remote_service() ... circuit_method :call_remote_service # Optional circuit_handler do |handler| handler.logger = Logger.new(STDOUT) handler.failure_threshold = 5 handler.failure_timeout = 5 end # Optional circuit_handler_class MyCustomCircuitHandler end
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.