A simple gem to know if a link should get the class 'active'
Easily customize the styling of the <select> input type in a workarea application
Using the power of not-actually-a-select element, each option in this dropdown can have helper text associated with it.
Moduler solution to add search functionality for selected fields.
Binding to Natural Selection 2's Hive2 ELO system
A DataMapper plugin that makes getting the <tt>select</tt> options from a Model easier.
Use Mysql AUTO_INCREMENT to support key value cache, which should be combined by an integer and string. It means to reduce the database storage size, and improve query performance. All cache will store in process memory, and will never be expired, until the process dies, so the less kvs you use, the better performance you will get. BTW, 100,000 general strings use 10MB memory. Some relatived articles: http://en.wikipedia.org/wiki/Correlation_database Usage ------------------------------------------ ## setup ```ruby create_table :kv_browser_names, :options => 'ENGINE=MyISAM DEFAULT CHARSET=utf8' do |t| t.string :name t.timestamps end class KvBrowserName < ActiveRecord::Base include IdNameCache end ``` or ```ruby create_table :common_tag, :options => 'ENGINE=MyISAM DEFAULT CHARSET=utf8' do |t| t.integer :tagid t.string :tagname end class CommonTag < ActiveRecord::Base self.table_name = :common_tag self.primary_key = :tagid include IdNameCache; set_key_value :tagid, :tagname # include IdNameCache; set_key_value_without_create :tagid, :tagname # if you dont want create it automately end ``` ### use cases ```text ruby-1.9.3-rc1 :001 > QuizTag[1] QuizTag Load (0.3ms) SELECT `common_tag`.* FROM `common_tag` WHERE `common_tag`.`tagid` = 1 LIMIT 1 => "Android" ruby-1.9.3-rc1 :002 > QuizTag[1] => "Android" ruby-1.9.3-rc1 :003 > QuizTag['Android'] QuizTag Load (0.5ms) SELECT `common_tag`.* FROM `common_tag` WHERE `common_tag`.`tagname` = 'Android' LIMIT 1 => 1 ruby-1.9.3-rc1 :004 > QuizTag['Android'] => 1 ``` == Copyright MIT, David Chen at eoe.cn
dependent_select: a select that depends on other field and updates itself using js
This gem allows you to select array elements (where an array is some arbitrary input) with a pretty text user interface.
A simple gem to serialize selected days of the week as a bitmask
== Synopsys <code>Enumerable#filter</code> - extended <code>Enumerable#select</code> == Examples String filter (acts like <code>Enumerable#grep</code>): [1, 2, 3, 'ab'].filter(/a/) # => ['ab'] [1, 2, 3, '3'].filter('3') # => ['3'] You can pass a <code>Proc</code> or <code>Symbol</code>. Methods and blocks are allowed too: [1, 2, 3].filter(&:even?) # => [2] [1, 2, 3].filter(:even?) # => [2] [1, 2, 4].filter { |num| num.even? } # => [2, 4] <code>Enumerable#filter</code> can match against enumerable items attributes. Like this: [1, 2, 3, 4.2].filter :to_i => :even? # => [2, 4] If the block is supplied, each matching element is passed to it, and the block's result is stored in the output array. [1, 2, 4].filter(&:even?) { |n| n + 1 } # => [3, 5] <code>Enumerable#filter</code> also accepts <code>true</code> or <code>false</code> as argument: [0, false, 2, nil].filter(true) # => [0, 2] [0, false, 2, nil].filter(false) # => [false, nil] <code>Enumerable#filter</code> also supports <code>OR</code> operator! Just pass many patterns, they will be joined together with <code>OR</code> operator. [0, 2, 3, 4].filter(:zero?, :odd?) # => [0, 3]
Disable active admin count queries for selected tables
Handle translations for AR models into a single table. And provide a helper to select translated values.
= Webservice Client Library for InterMine Data-Warehouses This library provides an interface to the InterMine webservices API. It makes construction and execution of queries more straightforward, safe and convenient, and allows for results to be used directly in Ruby code. As well as traditional row based access, the library provides an object-orientated record result format (similar to ActiveRecords), and allows for fast, memory efficient iteration of result sets. == Example Get all protein domains associated with a set of genes and print their names: require "intermine/service" Service.new("www.flymine.org/query"). new_query("Pathway") select(:name). where("genes.symbol" => ["zen", "hox", "h", "bib"]). each_row { |row| puts row[:name]} == Who is this for? InterMine data warehouses are typically constructed to hold Biological data, and as this library facilitates programmatic access to these data, this install is primarily aimed at bioinformaticians. In particular, users of the following services may find it especially useful: * FlyMine (http://www.flymine.org/query) * YeastMine (http://yeastmine.yeastgenome.org/yeastmine) * RatMine (http://ratmine.mcw.edu/ratmine) * modMine (http://intermine.modencode.org/release-23) * metabolicMine (http://www.metabolicmine.org/beta) == How to use this library: We have tried to construct an interface to this library that does not require you to learn an entirely new set of concepts. As such, as well as the underlying methods that are common to all libraries, there is an additional set of aliases and sugar methods that emulate the DSL style of SQL: === SQL style service = Service.new("www.flymine.org/query") service.model. table("Gene"). select("*", "pathways.*"). where(:symbol => "zen"). order_by(:symbol). outerjoin(:pathways). each_row do |r| puts r end === Common InterMine interface service = Service.new("www.flymine.org/query") query = service.new_query("Gene") query.add_views("*", "pathways.*") query.add_constraint("symbol", "=", "zen") query.add_sort_order(:symbol) query.add_join(:pathways) query.each_row do |r| puts r end For more details, see the accompanying documentation and the unit tests for interface examples. Further documentation is available at www.intermine.org. == Support Support is available on our development mailing list: dev@intermine.org == License This code is Open Source under the LGPL. Source code for this gem can be checked out from https://github.com/intermine/intermine-ws-ruby
extends ruby array with select helpers
A more user friendly interface to the xcode-select command showing more info, xcsim - access the simulator application folders quickly
Select appropriate browser local or sauce for execution
Automatic ActiveRecord column selection for GraphQL (Ruby) fields.
Adds deselect logic to ActiveRecord
pass in a url or urls and mechanize-content will select the best block of text, image and title by analysing the page content
=== Learn Chinese vocabulary effectively This gem is meant to make live easier for any Chinese language student who: * Prefers to learn vocabulary from Chinese sentences. * Needs to memorize a lot of words on a _tight_ _time_ _schedule_. * Uses the spaced repetition flashcard program {Anki}[http://ankisrs.net/]. Chinese::Vocab addresses all of the above requirements by downloading sentences for each word and selecting the *minimum* *required* *number* *of* *Chinese* *sentences* (and English translations) to *represent* *all* *words*.
A fuzzy text selector for files and anything else you need to select.
Add Bootstrap Multiselect to your rails app. See https://github.com/davidstutz/bootstrap-multiselect for more information about bootstrap-multiselect.
Retrieve cloud instance DNS names from metadata search
Unobtrusive debug logging for Ruby. NO LITTERING. Automatically log selected methods and their arguments as they are called at runtime!
PagedList makes it easier for .Net developers to write paging code. It allows you to take any IEnumerable<T> and by specifying the page size and desired page index, select only a subset of that list. PagedList also provides properties that are useful when building UI paging controls.
A Rails gem containing a javascript plugin that adds a layer of UI goodness overtop of basic HTML select elements
jQuery plugin for nicer looking select boxes for use with Rails 3.1 asset pipeline.
This rails plugin not only runs "EXPLAIN" before each of your select queries in development, but provides a small DIV in the rendered output of each page with the summary of query warnings that it analyzed.
It provides a class to derivate the application resources and a delegator that select the appropiate resource to answer a request. Also, it include a templating adapter based on Tenjin.
Selectively encrypt fields in Sidekiq
Creates property, synthesize and dealloc statements from selected ivar declarations for the header and implementation files in an Xcode project.
a gem to help you select taiwan area like city and district
A simple collection of language names and abbreviations for Rails apps (includes replacements for language_select)
This gem helps you build nice filters in Activeadmin. It combines Select2, PostgresSQL and Ajax to create an easy to use select field.
rake db:clone[manual] provides a CLI for selecting a specific source database to copy to a specific destination database. Supports postgreql and mysql.
This gem uses the tiny_mce gem's plugin system to install the https://github.com/kete/image_selector_tinymce_plugin plugin.
selectively import methods from modules
Interactively select and execute fenced code blocks in markdown files. Build complex scripts by naming and requiring blocks. Log resulting scripts and output. Re-run scripts.
A library allows to select date and time.
provides form options for states in a variety of countries for the formtastic gem
Acra helps you easily secure your databases in distributed, microservice-rich environments. It allows you to selectively encrypt sensitive records with strong multi-layer cryptography, detect potential intrusions and SQL injections and cryptographically compartmentalise data stored in large sharded schemes.
This code allows you to keep the display labels in the model when the DB holds only a 1 character flag. and when the code requires symbolic references to the value to use in algorithms This gem is superceded by the gem state_objects Please migrate to: https://rubygems.org/gems/state_objects Limitations: Don't use this if you will run reports directly against the DB In that case, the reports will not have access to the display labels
The Rails gem shows the output, in your application logs, of applying "Explain" or "Explain Analyze" to the select queries of your rails application.
ar_mysql_flexmaster allows configuring N mysql servers in database.yml and auto-selects which is a master at runtime
Useful selectize form control with autocomplete, create and edit items by ajax.
Auto select http_proxy setting with a config file
label your models, so you can have easier selects and other useful stuff
Preserve is a Rails plugin which stores selected parameters in the session to make them available in subsequent requests.
scrAPI is an HTML scraping toolkit for Ruby. It uses CSS selectors to write easy, maintainable scraping rules to select, extract and store data from HTML content.