Normalize a value or function, applying extra args to the function
React hooks for debouncing value or function calls
JSS plugin for function value and rule syntax
Copy a descriptor from object A to object B
React hooks for debouncing value or function calls
Construct an array by repeating a value (or function) a number of times.
Tiny DOM-element-creation utility
Utility to parse a string bytes to bytes and vice-versa
Array manipulation, ordering, searching, summarizing, etc.
A minimalistic code generation utility.
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
Returns true if a value is a plain object, array or function.
AST utils for webassemblyjs
Matches strings against configurable strings, globs, regular expressions, and/or functions
A thenable to streamline a possibly sync / possibly async workflow.
Read/write IEEE754 floating point numbers from/to a Buffer or array-like object
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Iterate any iterable JS value. Works robustly in all environments, all versions.
Run an array of functions in parallel
Match human-quality input to potential matches by edit distance.
foreach component + npm package
Get the first fulfilled promise that satisfies the provided testing function
Power Assert output formatter
Scanner and parser for JSON with comments.
Easily set hash values to be functions of other values in the same hash.
Key-value Array utility functions
naming provides name and value container with useful functions
MySQL's `yearweek` function has eight different modes for determining the yearweek. This will get the same yearweek for each mode, with `4` being the default mode.
= sql_valued_columns SqlValuedColumns is an ActiveRecord plugin that will let you have specific SQL statements executed on INSERT / UPDATE. It will call the SQL function you provide, passing the arguments specified in the call to sql_column. See the documentation for SqlValuedColumns::ClassMethods#sql_column for more information regarding usage, including passing Strings and Proc objects as arguments to your SQL function. Example: You have a model with two columns, one named "another_column" and the other named "size_of_another_column". Whenever you insert data into "another_column", you want to have size_of_another_column have the result of the SQL function LENGTH inserted into it. class MyModel < ActiveRecord::Base sql_column :size_of_another_column, "LENGTH", :another_column end Example 2: You have a model with three columns, position, latitude and longitude. Latitude and longitude are values expressed as angles, and position is a special datatype for your database that represents the X/Y/Z projection of that particular latitude and longitude (example: http://www.postgresql.org/docs/8.3/static/earthdistance.html ) When you insert data with latitude and longitude, you want to automatically call a function in your database to transform the latitude and longitude into the appropriate represenation. class MyModel < ActiveRecord::Base sql_column :position, "ll_to_earth", :latitude, :longitude end Example 3: You are an insane criminal who has somehow learned SQL. You would like to make anyone who runs your code to suffer database punishing queries and odd security and data formatting issues that will make them rue the day they ever learned of computers. class MyModel < ActiveRecord::Base sql_column :a_column, "(SELECT count(id) FROM large_list_of_things)", :raw => true sql_column :another_column, '(SELECT count(other_id) FROM other_large_list_of_things WHERE some_column = \'#{some_model_method}\')', :raw => true end == Notes No tests yet, am lazy. == Copyright Copyright (c) 2009 Chris Zelenak. See LICENSE for details.
This is useful for such things as maintenance mode, testing, and heavy migrations.
Use fuzzy set analysis to infer missing values. You provide a sigma function, a membership function, and a kernel.
GTIN provides basic validation, checksum and conversion functionality for UPC, EAN and GTIN barcode values.
ActiveSupport::Concern that provides an enum-like functionality that for when multiple values are allowed in a method named `has_binary_property`
Returns many values from the method. You can extract it via order or via names.
Defines higher-order functions available in Enumerable that work over a Hash's values and return a Hash.
Spies all return values from functions, allows to set up expectations on them. Used majorly for debugging and code-finding.