A React Hook that extracts query params from a URL query string and returns a queried object
Easy to use query param support for React
React hook for easily getting and setting query param strings.
No description provided.
`@nanumnavi/use-query-param`은 쿼리 파라미터 값을 가져오는데 도움이 되는 라이브러리입니다.
Easy to use query param support for React
Use url query parameter like regular refs in Vue, in a typesafe way.
A library for simplifying encoding and decoding URL query parameters.
URL rewrite middleware for express
Like `useQueryParam` `use-query-params`, but if current value is same as the default, param is removed from the URL.
Express style path to RegExp utility
This package provides helpers for doing extractPlasmicQueryData() with Next.js App Router.
Debounce hook for react
A Search UI connector for Engines
GitHub GraphQL API client for browsers and Node
TypeScript definitions for file-saver
YouTube IFrame Player API abstraction.
TypeScript definitions for jmespath
WooCommerce navigation utilities.
TypeScript definitions for pluralize
This package is intended for Prisma's internal use
TypeScript definitions for http-assert
Convert into a lower cased text with dashes between words
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
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.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.