3 ms·
This is neat! Did not have much luck searching for that on neither SO or Github "python unique list values ordered". The first answer on Google is what I would
by kelsolaar 6y ago
This is neat! Did not have much luck searching for that on neither SO or Github "python unique list values ordered". The first answer on Google is what I would expect: https://stackoverflow.com/questions/44628186/convert-python-list-to-ordered-unique-values https://stackoverflow.com/questions/44628186/convert-python-...
Given it is bound to a general shortcut ala Alfred (or Spotlight), would it make sense to integrate with the former for people who use it?
- mlejva 6y agoWe actually use Google's Search API under the hood. It might be possible that Google is giving you different results in a browser based on your search history. Can't really speak on integrations with Alfred and similar app right now. The idea is to build a separate app just for developers when they are searching for information.
- kelsolaar 6y ago> It might be possible that Google is giving you different results in a browser based on your search history. This is actually from an Incognito window (same result in Firefox): https://imgur.com/tWCWQW1 https://imgur.com/tWCWQW1 > The idea is to build a separate app just for developers when they are searching for information. Right makes sense but if I could have everything integrated with the launcher I use, it would extremely helpful, atm your default shortcut is the default shortcut of Alfred for example.
- mlejva 6y agoAh yes, you're right. I forgot we sort questions based on their upvotes.
- minot 6y agoThe follow up question I hope someone can answer is how does google sort them?
- wcarss 6y agoThis is a bit of a cop out answer, but Google probably sorts them based on something derived from PageRank: https://en.wikipedia.org/wiki/PageRank https://en.wikipedia.org/wiki/PageRank In other words: according to some approximation of the authority of the page, given the graph of links to that page, and their estimated authority in the domain of the searched keywords -- it's possible (and likely, I think?) they aren't using stack overflow's vote counts in their sort at all.
- kelsolaar 6y agoAnd for completion, here is Alfred performing the same search: https://imgur.com/iIkGdO1 https://imgur.com/iIkGdO1
- chris_f 6y ago> We actually use Google's Search API under the hood. It might be possible that Google is giving you different results in a browser based on your search history. Cool project! Just a heads up, the Google search API provides different results than the normal Google web search. [0] It uses a different index that isn't as big, and handles term matching a little differently. There will be a personalization element for different results, but there are a lot of results that Google just won't be return through the search API. I also work a lot with the google API for Runnaroo [1] (and the Github and Stack Overflow APIs). [0] https://support.google.com/programmable-search/answer/70392?hl=en https://support.google.com/programmable-search/answer/70392?... [1] https://www.runnaroo.com/search?term=python+unique+list+values+ordered https://www.runnaroo.com/search?term=python+unique+list+valu...
- boogies 6y agocurl cheat.sh/python+unique+list+values+ordered returns the most-upvoted answer on that SO question. With the Free vim plugin¹, typing the question into your code buffer followed by `<leader>KK` should bring the answer up in a pager, `<leader>KP`/`<leader>KR` should paste it after/over (replacing) the question, and `<leader>KC` should toggle the explanatory comments. Seems like a greater ‘minimiz[ation of] context switching’ to me. ¹Emacs, Sublime, VSCode, IDEA, and QtCreator plugins with varying feature sets also available. No affiliation. https://github.com/chubin/cheat.sh#editors-integration https://github.com/chubin/cheat.sh#editors-integration
- mxuribe 6y ago> curl cheat.sh/python+unique+list+values+ordered Wow, my mind is blown! I've been using cheat.sh for a little while now, but really only as a glorified man page interface...my mind is blown in a bunch of other ways that it can be used...Only now looking through what else is possible. I guess i should have actually read the manual on cheat.sh! Thanks for sharing! TIL