Live data from Hacker News

A Whole New Code Search

github.com

51–60 of 113 posts

Re: A Whole New Code Search

#53
post #45

Oh my. And suddenly, github gave grep to the web. Thanks for that great work.

Or rather, fgrep. But it's still a welcome feature, and there's https://code.google.com/p/codesearch/ for locally available code.

`git grep` within repos as well

Re: A Whole New Code Search

#55

Interesting: https://github.com/search?p=4&q=gmail_password&ref=s... https://github.com/search?p=4&q=secret_token&ref=sea...

A hacker-with-a-heart-of-gold will write a script to harvest these emails and send them a warning message with a link to this thread.

Re: A Whole New Code Search

#56
post #43

This just reminds me of Google code search and makes me miss it more. Searching by regex was pretty useful.

I was hoping for regex support, but I guess it's pretty tough without Google-like scale.

Here's an interesting article describing how it worked: http://swtch.com/~rsc/regexp/regexp4.html

Re: A Whole New Code Search

#60
post #39
post #19

very nice. one bad setting (perhaps a default that never got overridden) is that searching for foo_bar searches for foo and bar separately, rather than treating foo_bar as an indivisible token.

Just search for '"foo_bar"' rather than 'foo_bar'.

i know, but in the context of code search foo_bar is almost always a single token, since the underscore is nigh-universally used in variable and function names.
Post reply on HN