Latest Comments

3102 Total
a comment on the Instant Answer Idea Is X site down - give a site's status 5 years and 9 months ago
a comment on the Instant Answer Idea Currency in x - tells you the currency in x country 5 years and 9 months ago
a comment on the Instant Answer Idea Zip Code lookup - give location (and map?) for zip code entered. 5 years and 9 months ago
We have internal functions that call the mapquest API. What kind of call do you need to make?
a comment on the Instant Answer Idea Hi, You could make the Exlclamation code for I Feel Ducky. Thank You. 5 years and 9 months ago
I'm not sure what you mean. If you do an ! plus a space it does that. As does starting the search with \
a comment on the Instant Answer Idea Medical search 5 years and 9 months ago
Our bang syntax (https://duckduckgo.com/bang.html) is really distinct from this plugin platform (http://duckduckhack.com/).

If you have a bang suggestion, e.g. for !med, submit it at https://duckduckgo.com/newbang.html

However, I could see a useful fathead plugin here from webmd like you said on descrptions of drugs and symptons (if they're not already covered by wikipedia).

That way you could type in a drug or something and get an instant answer about it.
a comment on the Instant Answer Idea wordpress codex search 5 years and 9 months ago
The bang syntax is really independent of the duckduckhack plugin platform. For new bang or bang improvements, check out https://duckduckgo.com/newbang.html

However, if would work as a good fathead plugin if you scraped the pieces of the api you wanted to exact match, e.g. function names.

Then you could just type in

wordpress register_post_type

And get an instant answer without ever having to go to the site, and you could tie it to the exact right url for more clicks.
a comment on the Instant Answer Idea bible verse that works with abbreviation 5 years and 9 months ago
I made a github issue for this:

https://github.com/duckduckgo/zeroclicki...
a comment on the Instant Answer Idea Cheatsheet for readline keyboard shortcuts 5 years and 10 months ago
Possibly some other good shortcut cheatsheets here: http://news.ycombinator.com/item?id=3843...
a comment on the Instant Answer Idea syntax 5 years and 10 months ago
For what language?
a comment on the Instant Answer Idea Currency in x - tells you the currency in x country 5 years and 10 months ago
I think you can drop the position thing and do something like this:

if ($_ =~ /^.*(?:in|of|for)\s(.*?)$/) {

Then the stuff after the last in/of/for will be in the $1 variable and you can just check that.

The ?: block just means don't capture.

Putting a ? after a * means not greedy. So the first .* captures all the way until the last in|of|for
« 1 ... 9 10 11 12 13 14 15 16 17 ... 311 »