Live data from Hacker News

Show HN: Search code in GitHub repos using regular expressions

grep.app

91–100 of 165 posts

Re: Show HN: Search code in GitHub repos using regular expressions

#91

Wow. This is incredibly helpful. You can use it to see how someone may have used a function with named parameters: my_function(label=x, option_1=2) my_function.*option_1 # search

That was my first thought. I’ll have to wait until tomorrow to try it, but I have one super rarely used function ima rare package I’d love to see how other people are using.

Re: Show HN: Search code in GitHub repos using regular expressions

#92
This is amazing! One thing that allows me to do, which I wasn't before, is to do a search for the repos that use some of my open source.

While there were some tools for this, they fail sort for older projects where using a library meant copy/paste it into your project, which is not reported in the CDN stats, npm installs or github "uses".

Now I can run a search with a bit of code that is only present in my library and find reliably those who copy/pasted it. While I publish my code under the MIT, this would also be very useful for those publishing under the GPL to detect bad actors.

Re: Show HN: Search code in GitHub repos using regular expressions

#93
post #83
post #63

Do you index the default branch of every repo? Or do you just index the master branch?

It indexes the default branch of each repo.

Cool. Keep up :) definitely gonna share with my co-workers.

Can't wait for filename filters which would make this the perfect solution

Re: Show HN: Search code in GitHub repos using regular expressions

#97
post #57

Earlier quoted context omitted.

Actually, It would more be like: "How I failed at 3 interviews, despite being directly contacted by execs."

Sure you built app on multi 20 core machines with functionality to search hundreds of millions of lines of code almost instantaneously, but are you someone I'd drink a beer with?

This snide remark dismisses the fact that working on software does mean working with other humans, not just unemotional robots devoid of any kind of irrational ideas. Being able to “drink a beer with” (and reasonably substituting the drinking of beer for just about any other social interaction) is an important part of being able to work with someone. Unless of course you believe an office environment consisting of a tyrannical manager barking orders at worker drones is a healthy relationship.

Re: Show HN: Search code in GitHub repos using regular expressions

#98
post #23

This is really cool. What are you using it for? Usage examples, debugging, etc.? I'm the CEO at Sourcegraph (universal code search for companies to use on their internal code). Our product is really optimized for searching a company's internal code right now, but soon we'll start working on offering much better search for public and open-source code as well. If you'd like to help out or just chat, please reach out! s…

Sorry, but his code search covers far more languages than yours the last time I tried yours :)

Re: Show HN: Search code in GitHub repos using regular expressions

#99

This is really cool! Awesome work. I assume you've seen https://sourcegraph.com/ as well? This to me seems much clearer and a bit more intuitive (though I've only spent a little time in sourcegraph). Really really cool. Does it also search code comments?

last time I tried sourcegraph doesn't cover the language I use, so it's useless to me.

Re: Show HN: Search code in GitHub repos using regular expressions

#100
post #87

It’s interesting how it took so many years for such an obviously useful tool to emerge. I guess hosting this is finally getting cheap enough.

I've been wondering the same thing for many years. And I don't know why Google killed Code Search
Post reply on HN