simple library for cn func
Simple class name manager for DOM elements.
Find a file or directory by walking up parent directories — Zero dependencies
Simple Statistics
Simple dependency graph.
An object-oriented command-line parser for TypeScript
GitHub GraphQL API client for browsers and Node
Functional utility library - modern, simple, typed, powerful
Babel helper for ensuring that access to a given value is performed through simple accesses
A very simple and stupid parser, based on a statemachine and regular expressions.
Simple update notifier to check for npm updates for cli applications
Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines.
maximally minimal string formatting library
Parse XML without Blowing Up Your Bundle Size
Parse Cache-Control headers.
Zero dependency streaming tar parser and writer for JavaScript.
Extract names from functions
A library for encoding and decoding any data structure
Super-minimalist version of `concat-stream`. Less than 15 lines!
Create a hash checksum over a folder and its content - its children and their content
Minimalist yEnc and dynEncode encoder and decoder library for browser and NodeJS
file downloading using client-side javascript
🌈 Light, fast, and easy to use, dependencies free javascript syntax highlighter, with automatic language detection
Simply swizzle your arguments
The class_names function takes any number of arguments which can be a string or hash. The argument 'foo' is short for { foo: true }. If the value associated with a given key is falsy (nil or false), that key won't be included in the output.
Represent, record, and persist Ruby classes' attributes as CSV fields and persist them as data fields into CSV files. Each attribute has an internal class name-for ease of use w/in your Ruby code, and 'human'-readable names in the CSV file.
A simple Logger, that logs objects error tagged with their class name and IDs
Provides Ruby's File class with a new method called ::mkfifo that creates a named pipe (FIFO). This gem is a simple C extension wrapping the *nixish mkfifo(3) function.
Debuggers are great! They help us troubleshoot complicated programming problems by inspecting values produced by code, line by line. They are invaluable when trying to understand what is going on in a large application composed of thousands or millions of lines of code. In day-to-day test-driven development and simple debugging though, a puts statement can be a lot quicker in revealing what is going on than halting execution completely just to inspect a single value or a few. This is certainly true when writing the simplest possible code that could possibly work, and running a test every few seconds or minutes. Problem is you need to locate puts statements in large output logs, know which file names, line numbers, classes, and methods contained the puts statements, find out what variable names are being printed, and see nicely formatted output. Enter puts_debuggerer. A guilt-free puts debugging Ruby gem FTW that prints file names, line numbers, class names, method names, and code statements; and formats output nicely courtesy of awesome_print. Partially inspired by this blog post: https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html (Credit to Tenderlove.)
This is a simple dbc library for ruby. It emploies alias_method to redefine method, hence it will introduce a lot of method name in your class. And it should be slow. If you care this, don't use it
== Glossa is a tool for generating simple naming language generators (which can in turn generate names). Note: Version 1.0.0 is an (almost) direct port of {mewo2's JavaScript naming-language generator}[https://github.com/mewo2/naming-language]. These initial ideas are his, and I have changed very little of the actual inner-workings (other than basically turn it into a class). I would _highly_ encourage everybody to go and checkout his original repo (link above), {read his documentation on how the language generator works}[http://mewo2.com/notes/naming-language/], and {follow @unchartedatlas}[https://twitter.com/unchartedatlas]
A simple Gem to enable any `ActiveRecord::Base` object to store a set of attributes in a set like structure represented through a bitfield on the database level. You only have to specify the name of the set to hold the attributes in question an the rest is done for you through some fine selected Ruby magic. Here is a simple example of how you could use the gem: class Person < ActiveRecord::Base has_set :interests end To get this to work you need some additional work done first: 1. You need an unsigned 8-Byte integer column in your database to store the bitfield. It is expected that the column is named after the name of the set with the suffix `_bitfield` appended (e.g. `interests_bitfield`). You can change that default behavior by providing the option `:column_name` (e.g. `has_set :interests, :column_name => :my_custom_column`). 2. You need a class that provides the valid values to be stored within the set and map the single bits back to something meaningful. The class should be named after the name of the set (you can change this through the `:enum_class` option). This class could be seen as an enumeration and must implement the following simple interface: * There must be a class method `values` to return all valid enumerators in the defined enumeration. * Each enumerator must implement a `name` method to return a literal representation for identification. The literal must be of the type `String`. * Each enumerator must implement a `bitfield_index` method to return the exponent of the number 2 for calculation the position of this enumerator in the bitfield. **Attention** Changing this index afterwards will destroy your data integrity. Here is a simple example of how to implement such a enumeration type while using the the `renum` gem for simplicity. You are free to use anything else that matches the described interface. enum :Interests do attr_reader :bitfield_index Art(0) Golf(1) Sleeping(2) Drinking(3) Dating(4) Shopping(5) def init(bitfield_index) @bitfield_index = bitfield_index end end
Chained is simple chained selects plugin. It works with both jQuery and Zepto. Use class based version if you do not want to make external queries. It uses HTML class names of select options to decide content. To create selects from AJAX queries use remote version instead. This version makes an external AJAX query and uses the returned JSON to build child selects.
Very simple class to ensure that filenames are unique. If you are generating files into directory or adding files to zip archive, you probably want to avoid filenames collistion, when one file can overwrite another one with the same name. If filename is duplicated returns modified filename incremented sequentially.
Auto-discovers test classes in the working directory and runs the tests with<br/><br/>basically no boot up time and no configuration. It doesn't matter how you<br/><br/>structure your project, instead, simple naming conventions are used:<br/><br/><br/><br/> - All test files should be named *_tests.rb<br/><br/> - All test methods should be named test__*<br/><br/><br/><br/>Other things you need to know:<br/><br/><br/><br/> - All test classes should inherit FasTest::TestClass<br/><br/> - There are two setup and two teardown methods:<br/><br/> - class_setup: Called once before any of the tests<br/><br/> - class_teardown: Called once after any of the tests<br/><br/> - test_setup: Called before each test<br/><br/> - test_teardown: Called after each test<br/><br/><br/><br/>Take a look in the test folder to see an example of how the library is used.<br/><br/>(fas_test is used to test itself).<br/><br/><br/><br/>To actually run your tests just invoke fastest.rb from a command line. It will<br/><br/>automatically recursively discover all of your test classes within the working<br/><br/>directory and run there tests.
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.