Skip to content

Instantly share code, notes, and snippets.

@sdwrage
Created Sep 8, 2010
Embed
What would you like to do?
./vendor/rails/activesupport/lib/active_support/multibyte/utils.rb: string.split(//).grep(expression).join
./vendor/rails/activesupport/lib/active_support/core_ext/exception.rb: clean_backtrace.grep FrameworkRegexp
./vendor/rails/activerecord/test/cases/autosave_association_test.rb: model.instance_variables.grep(/_callbacks$/).map do |ivar|
./vendor/rails/activerecord/test/cases/schema_dumper_test.rb: index_definition = standard_dump.split(/\n/).grep(/add_index.*companies/).first.strip
./vendor/rails/railties/html/javascripts/prototype.js: grep: function(filter, iterator, context) {
./vendor/rails/railties/lib/rails_generator/commands.rb: Dir.glob("#{@migration_directory}/[0-9]*_*.rb").grep(/[0-9]+_#{file_name}.rb$/)
./vendor/rails/railties/CHANGELOG:* Add grep-based fallback to reaper, to work in pidless setups [Jamis Buck]
./vendor/rails/railties/CHANGELOG:* Add grep-based fallback to reaper, to work in pidless setups [Jamis Buck]
./vendor/rails/actionpack/lib/action_controller/layout.rb: child.layout(layout_match, {}, true) unless child.layout_list.grep(%r{layouts/#{layout_match}(\.[a-z][0-9a-z]*)+$}).empty?
./vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb: def grep(variable, pattern, &block)
./vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb: enumerate :grep, :variable => variable, :return => true, :method_args => [pattern], :yield_args => %w(value index), &block
./vendor/rails/actionpack/lib/action_view/reloadable_template.rb: ActionView::Base::CompiledTemplates.public_instance_methods.grep(/#{Regexp.escape(method_name_without_locals)}(?:_locals_)?/).each do |m|
./vendor/rails/actionpack/CHANGELOG:* Added logging of the request URI in the benchmark statement (makes it easy to grep for slow actions)
./vendor/rails/actionpack/test/template/prototype_helper_test.rb: def test_collection_proxy_with_grep
./vendor/rails/actionpack/test/template/prototype_helper_test.rb: @generator.select('p').grep 'a', /^a/ do |value|
./vendor/rails/actionpack/test/template/prototype_helper_test.rb: @generator.select('p').grep 'b', /b$/ do |value, index|
./vendor/rails/actionpack/test/template/prototype_helper_test.rb:var a = $$("p").grep(/^a/, function(value, index) {
./vendor/rails/actionpack/test/template/prototype_helper_test.rb:var b = $$("p").grep(/b$/, function(value, index) {
./vendor/plugins/trunk/test/scope_out_test.rb: $with_methods = (klass.methods-['with_scope']).grep(/^with_.*$/)
./script/finalize_inv_tots.sh:while [ "$(pgrep -f restore_statements)" ]
./script/apply_pmts.sh:while [ "$(pgrep -f finalize_invoice_totals)" ]
./script/cleanup_balances.sh:while [ "$(pgrep -f apply_all_payments)" ]
./public/javascripts/prototype.js: grep: function(filter, iterator, context) {
./public/javascripts/jquery.js: jQuery.grep(this, function(elem, i){
./public/javascripts/jquery.js: jQuery.grep(elem.className.split(/\s+/), function(className){
./public/javascripts/jquery.js: grep: function( elems, callback, inv ) {
./public/javascripts/jquery.js: animated: function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}
./public/javascripts/jquery.js: r = jQuery.grep( r, function(elem, i){
./.git/hooks/commit-msg.sample:# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
./.git/hooks/commit-msg.sample:test "" = "$(grep '^Signed-off-by: ' "$1" |
./.git/hooks/prepare-commit-msg.sample:# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment