React Hook for managing state in URL query parameters with easy serialization.
Drop in support for [`use-query-params`](https://www.npmjs.com/package/use-query-params)
Popup Maker Use Query Params
Drop in support for [`use-query-params`](https://www.npmjs.com/package/use-query-params)
Like `useQueryParam` `use-query-params`, but if current value is same as the default, param is removed from the URL.
Strongly typed, routing-library agnostic react hook to use and manipulate query params
A library for simplifying encoding and decoding URL query parameters.
A react hook for syncing state to the URL's query parameters
Convenient state management of query parameters in Next.js apps.
[](https://github.com/rudyhuynh/use-url-search-params/blob/master/License)
express middleware that normalizes incoming query param names
Displays the results of a GROQ query in a View Pane
This package provides helpers for doing extractPlasmicQueryData() with Next.js App Router.
🏆 Use Ant Design Table like a Pro!
Append querystring params to a URL.
The core `url` packaged standalone for use with Browserify.
Types for (de)serializing HTTP requests from both the client and server side
A module to manipulate search part of URLs (querystring)
A tiny (305B) browser utility for stringifying a query Object.
Express style path to RegExp utility
React hooks for using URL query params as state. No dependencies.
React Hook for managing state in URL query parameters with easy serialization.
Right-to-left addon for Storybook.
AWS SDK for JavaScript Timestream Query Client for Node.js, Browser and React Native
This gem extracts params given as a hash to structured data, that can be used when creating queries
Safely merge params for use with url_for or for the query string
Convert a filter param in a query string to a conditions hash useful for MongoMapper searching
Rails routing constraint for api versioning in query params using the v param.
Using scopes on a model that only need to accessed in a controller seems like a leakage of SRP. This gem will allow you to write simple filtering logic that translates your params to AREL queries.
Pushes current local branch to remote with upstream at origin/[local-branch-name]. It also opens a new pull request browser window at a URL with customized query params, based on specified options, which pre-populates certain fields in the pull request. This is especially useful when supporting multiple PR templates within a code base.
The National Library of Medicine API, "Medlineplus Connect", can be somewhat cantankerous to work with. Query params are non sensical to end users, query format is from a bygone era, and the resulting responses often contain large amounts of superficial information. The response structures are somewhat inconsistant, and are always non intuitive. This gem simplifies querying the NLM API, and parses the responses into something more sane and structured for the average Ruby dev to use. Note that at this time, the only feature available through this gem is querying descriptions for ICD-10 codes, more API interfaces TBD.
When we save data, Active Record provides us a method serialize, which helps us to save object params in JSON or YAML format. If we do not work with raw data, it is OK, but if we try to query raw data (for analytics purposes, for example) it becomes a headache. For JSON format it is not so critical, because databases provide functionality for work with JSON data, but for YAML there is no such functionality, which causes troubles for raw data querying.
GraphQL interface over WCC::Contentful store
# XQuery [](https://gitter.im/JelF/xquery?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://travis-ci.org/JelF/xquery) [](https://codeclimate.com/github/JelF/xquery) [](https://codeclimate.com/github/JelF/xquery/coverage) [](https://codeclimate.com/github/JelF/xquery) XQuery is designed to replace boring method call chains and allow to easier convert it in a builder classes ## Usage of `XQuery` function `XQuery` is a shortcat to `XQuery::Generic.with` ``` r = XQuery(''.html_safe) do |q| # similar to tap q << 'bla bla bla' q << 'bla bla bla' # using truncate q.truncate(15) # real content (q.send(:query)) mutated q << '!' end r # => "bla bla blab...!" ``` ## Usage of `XQuery::Abstract` I designed this gem to help me with `ActiveRecord` Queries, so i inherited `XQuery::Abstract` and used it's powers. It provides the following features ### `wrap_method` and `wrap_methods` when you call each of this methods they became automatically wrapped (`XQuery::Abstract` basically wraps all methods query `#respond_to?`) It means, that there are instance methods with same name defined and will change a `#query` to their call result. ``` self.query = query.foo(x) # is basically the same as foo(x) # when `wrap_method :foo` called ``` You can also specify new name using `wrap_method :foo, as: :bar` syntax ### `q` object `q` is a proxy object which holds all of wrapped methods, but not methods you defined inside your class. E.g. i have defined `wrap_method(:foo)`, but also delegated `#foo` to some another object. If i call `q.foo`, i will get wrapped method. Note, that if you redefine `#__foo` method, q.foo will call it instead of normal work. You can add additional methods to `q` using something like `alias_on_q :foo`. I used it with `kaminary` and it was useful ``` def page=(x) apply { |query| query.page(x) } end alias_on_q :page= def page query.current_page end alias_on_q :page ``` ### `query_superclass` You should specify `query_superclass` class_attribute to inherit `XQuery::Abstract`. Whenever `query.is_a?(query_superclass)` evaluate to false, you will get `XQuery::QuerySuperclassChanged` exception. It can save you much time when your class misconfigured. E.g. you are using `select!` and it returns `nil`, because why not? ### `#apply` method `#apply` does exact what it source tells ``` # yields query inside block # @param block [#to_proc] # @return [XQuery::Abstract] self def apply(&block) self.query = block.call(query) self end ``` It is usefull to merge different queries. ### `with` class method You can get XQuery functionality even you have not defined a specific class (You are still have to inherit XQuery::Abstract to use it) You can see it in this document when i described `XQuery` function. Note, that it yields a class instance, not `q` object. It accepts any arguments, they will be passed to a constructor (except block) ### `execute` method Preferred way to call public instance methods. Resulting query would be returned
The cookie_tracker easily synchronizes settings stored in cookies with instance variables of the same name available for use in controllers and views. This gem allows you to declare a hash of parameters along with default values that you wish to be loaded/stored in the user's cookies during each page load. Each parameter will be loaded into it's own instance variable of the same name for easy access in controllers and views. If the parameter is passed in the params[] hash, the new value will automatically be stored in the correct cookie and replace the old or default value. This makes it easy to track various options that a user can select on a page, such as items per page, search queries, and custom display settings. If a user clicks off to another page on your site, their settings will be remembered when they return. You can declare the default cookie lifetime options in an initializer or override them at runtime. If you prefer to use the session store over the cookie jar, there is a method for that as well. You can override the default cookie options by creating an initializer. Visit the github page https://github.com/DanKnox/CookieTracker
Send SMS messages using the OpenMarket API
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.