Skip to content

Instantly share code, notes, and snippets.

@mikejs
Created July 15, 2010 02:29
Show Gist options
  • Save mikejs/476418 to your computer and use it in GitHub Desktop.
Save mikejs/476418 to your computer and use it in GitHub Desktop.
# ddg -h
Usage: ddg [options] query
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-o, --open open results in a browser
-n N number of results to show
-d D disambiguation choice
# ddg duck duck go
Duck Duck Go is a search engine based in Valley Forge, Pennsylvania that uses information from crowd-sourced sites with the aim of augmenting traditional results and improving relevance.
1. Official site
<http://duckduckgo.com/>
# ddg python
'python' can mean multiple things. You can re-run your query and add '-d #' where '#' is the topic number you're interested in.
1. Python (genus): Any member of Python (genus) (in particular), a group of snakes found in Africa and Asia
2. Pythonidae: Any member of the family Pythonidae (in general), the family to which the python genus belongs, a group of snakes found in Africa, Asia, Australia and a few islands in Oceania
3. Python (mythology): Python (mythology) serpent, the earth-dragon of Delphi
# ddg python -n 10
'python' can mean multiple things. You can re-run your query and add '-d #' where '#' is the topic number you're interested in.
1. Python (genus): Any member of Python (genus) (in particular), a group of snakes found in Africa and Asia
2. Pythonidae: Any member of the family Pythonidae (in general), the family to which the python genus belongs, a group of snakes found in Africa, Asia, Australia and a few islands in Oceania
3. Python (mythology): Python (mythology) serpent, the earth-dragon of Delphi
4. Python of Byzantium: Python of Byzantium orator, diplomat of Philip II of Macedon
5. Python of Catana: Python of Catana poet who accompanied Alexander the Great
6. Python of Aenus: Python of Aenus student of Plato
7. Python (programming language): Python (programming language), a computer programming language
8. Colt Python: Colt Python, a .357 Magnum caliber revolver
9. python (missile): Python missile, a series of Israeli air-to-air missiles
10. Python (film): Python (film), a 2000 horror film by Richard Clabaugh
# ddg python -d 3
In Greek mythology Python, serpent, was the earth-dragon of Delphi, always represented in Greek sculpture and vase-paintings as a serpent.
1. Homeric Hymn to Pythian Apollo
<http://omacl.org/Hesiod/hymns.html>
# ddg 2^10
Answer: 2 ^ 10 = 1,024
# ddg -o this query will be opened in a web browser!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment