PageRenderTime 538ms queryTime 215ms sortTime 0ms getByIdsTime 58ms findMatchingLines 126ms

100+ results results for 'api duckduckgo com' (538 ms)

Not the results you expected?
modes.md https://bitbucket.org/ybozkurt12/n11keytorc.git | Markdown | 53 lines
                    
9
                    
10WebdriverIO can be used for various purposes. It implements the Webdriver protocol API and can run browser in an automated way. The framework is designed to work in any arbitrary environment and for any kind of task. It is independent from any 3rd party frameworks and only requires Node.js to run.
                    
11
                    
13
                    
14The probably simplest form to run WebdriverIO is in standalone mode. This has nothing to do with the Selenium server file which is usually called `selenium-server-standalone`. It basically just means that you require the `webdriverio` package in your project and use the API behind it to run your automation. Here is a simple example:
                    
15
                    
22    .init()
                    
23    .url('https://duckduckgo.com/')
                    
24    .setValue('#search_form_input_homepage', 'WebdriverIO')
                    
27        console.log('Title is: ' + title);
                    
28        // outputs: "Title is: WebdriverIO (Software) at DuckDuckGo"
                    
29    })
                    
41    it('searches for WebdriverIO', function() {
                    
42        browser.url('https://duckduckgo.com/');
                    
43        browser.setValue('#search_form_input_homepage', 'WebdriverIO');
                    
                
main.py https://gitlab.com/seanbehan/duckduckgo-bot | Python | 180 lines
                    
56def shorten_url(long_url):
                    
57    """Puts your URL through the PTPB API to shorten it"""
                    
58    response = requests.post(
                    
69    # feel free to fork and change the base url
                    
70    base = "https://duckduckgo.com/?q="
                    
71    end = quote_plus(query)
                    
85            thumb_url=
                    
86            'https://duckduckgo.com/assets/icons/meta/DDG-iOS-icon_60x60.png',
                    
87            url=convert_to_url(query),
                    
105            thumb_url=
                    
106            'https://duckduckgo.com/assets/icons/meta/DDG-iOS-icon_60x60.png',
                    
107            url=lmddgtfy_url(query),
                    
121    config = {}
                    
122    config['config'] = {'token': input('API Key: ')}
                    
123    if input('Save? [Y/n]') not in ['n', 'N']:
                    
                
README.md https://gitlab.com/unofficial-mirrors/pelican-plugins | Markdown | 99 lines
                    
3
                    
4> :warning: **Instead of this plugin, please use the [Pelican Search](https://github.com/pelican-plugins/search) plugin.**
                    
5
                    
19
                    
20    python -m pip install -e "git+https://github.com/getpelican/pelican-plugins/#egg=pelican-tipue-search&subdirectory=tipue_search"
                    
21
                    
25
                    
26Static sites do not offer search feature out of the box. [Tipue Search](https://web.archive.org/web/20200703134724/https://tipue.com/search/)
                    
27is a jQuery plugin that search the static site without using any third party service, like DuckDuckGo or Google.
                    
40        {
                    
41            "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero.",
                    
42            "tags": "Example Category",
                    
42            "tags": "Example Category",
                    
43            "url" : "http://oncrashreboot.com/plugin-example.html",
                    
44            "title": "Everything you want to know about Lorem Ipsum"
                    
                
README.md https://gitlab.com/dongrvtop/angularcomponent | Markdown | 145 lines
                    
9
                    
10`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
11 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
34  console.log(response.responseUrl);
                    
35  // 'http://duckduckgo.com/robots.txt'
                    
36});
                    
73
                    
74In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
                    
75the following per-request options are supported:
                    
90By default, `follow-redirects` will use the Node.js default implementations
                    
91of [`http`](https://nodejs.org/api/http.html)
                    
92and [`https`](https://nodejs.org/api/https.html).
                    
126
                    
127Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues)
                    
128 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
responses.yml git://github.com/duckduckgo/zeroclickinfo-goodies.git | YAML | 244 lines
                    
23  subtitle: "Learn more about the DuckDuckGo Instant Answer API"
                    
24  url: https://duckduckgo.com/api
                    
25app:
                    
83  subtitle: "View them on GitHub"
                    
84  url: https://github.com/duckduckgo/zeroclickinfo-goodies
                    
85help:
                    
150  subtitle: "Visit the DuckDuckGo settings page"
                    
151  url: https://duckduckgo.com/settings
                    
152short:
                    
165  subtitle: "Visit DuckDuckGo's Spread page"
                    
166  url: https://duckduckgo.com/spread
                    
167swag:
                    
200  subtitle: "Visit the DuckDuckGo traffic page"
                    
201  url: https://duckduckgo.com/traffic.html
                    
202translation:
                    
                
README.md https://gitlab.com/sagefhopkins/hopkinsdev | Markdown | 148 lines
                    
5[![npm version](https://img.shields.io/npm/v/follow-redirects.svg)](https://www.npmjs.com/package/follow-redirects)
                    
6[![Build Status](https://github.com/follow-redirects/follow-redirects/workflows/CI/badge.svg)](https://github.com/follow-redirects/follow-redirects/actions)
                    
7[![Coverage Status](https://coveralls.io/repos/follow-redirects/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/follow-redirects/follow-redirects?branch=master)
                    
10
                    
11`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
12 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
35  console.log(response.responseUrl);
                    
36  // 'http://duckduckgo.com/robots.txt'
                    
37});
                    
76
                    
77In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
                    
78the following per-request options are supported:
                    
129
                    
130Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues)
                    
131 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
setup.py https://gitlab.com/unofficial-mirrors/pelican-plugins | Python | 32 lines
                    
19    'description': 'Serialize generated HTML content to a JS variable for use by the Tipue static search jQuery plugin',
                    
20    'long_description': 'Tipue Search\n============\n\nA Pelican plugin to serialize generated HTML to a JS variable that can be used by jQuery plugin - Tipue Search.\n\nCopyright (c) Talha Mansoor\n\nAuthor          | Talha Mansoor\n----------------|-----\nAuthor Email    | talha131@gmail.com \nAuthor Homepage | http://onCrashReboot.com \nGithub Account  | https://github.com/talha131 \n\nWhy do you need it?\n===================\n\nStatic sites do not offer search feature out of the box. [Tipue Search](http://www.tipue.com/search/)\nis a jQuery plugin that search the static site without using any third party service, like DuckDuckGo or Google.\n\nTipue search requires the textual content of site in a JS variable.\n\nRequirements\n============\n\nTipue Search requires BeautifulSoup.\n\n```bash\npip install beautifulsoup4\n```\n\nHow Tipue Search works\n=========================\n\nTipue Search serializes the generated HTML into JSON and saves it into a JS variable. Format of JSON is as follows\n\n```javascript\nvar tipuesearch = {\n    "pages": [\n        { \n            "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero.",\n            "tags": "Example Category",\n            "url" : "http://oncrashreboot.com/plugin-example.html",\n            "title": "Everything you want to know about Lorem Ipsum"\n        },\n        { \n            "text": "Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh.",\n            "tags": "Example Category",\n            "url" : "http://oncrashreboot.com/plugin-example-2.html",\n            "title": "Review of the book Lorem Ipsum"\n        }\n    ]\n};\n```\n\nJS variable is written to file `tipuesearch_content.js` which is created in the root of `output` directory.\n\nHow to use\n==========\n\nYour theme needs to have Tipue Search properly configured in it. [Official documentation](http://www.tipue.com/search/help/) has the required details.\n\nIn addition to the instructions from Tipue, the following has to be added in `pelicanconf.py`.\n\n```python\nPLUGIN_PATH = \'plugins\'\nPLUGINS = [\'tipue_search\']\nDIRECT_TEMPLATES = [\'index\', \'tags\', \'categories\', \'authors\', \'archives\', \'search\']\n```\n\nFurthermore, the generated JavaScript variable has to be sourced in the relevant html pages.\n\n```html\n<script src="{{ SITEURL }}tipuesearch_content.js"></script>\n```\n\nPelican [Elegant Theme](https://github.com/talha131/pelican-elegant) and [Plumage theme](https://github.com/kdeldycke/plumage) have Tipue Search configured. You can view their code to understand the configuration.\n\nBackward Compatibility\n======================\n\nThis plugin requires Tipue Search Version 7.0 or higher.\n\nTipue used to expect content in a json file. Around Version 7.0, Tipue maintainers made a switch to JavaScript variable. tipue_search plugin was updated to reflect this change in commit `4a5f171fc`. Latest version of tipue_search plugin will not work with older versions of Tipue Search.\n\nIf you are using older Tipue Search, prior to 7.0 release, then you will find old version of tipue_search plugin in commit `2dcdca8c8`. \n',
                    
21    'author': 'Talha Mansoor',
                    
21    'author': 'Talha Mansoor',
                    
22    'author_email': 'talha131@gmail.com',
                    
23    'url': 'https://github.com/getpelican/pelican-plugins/tree/master/tipue_search',
                    
                
responses.yml https://gitlab.com/jslee1/zeroclickinfo-goodies | YAML | 242 lines
                    
23  subtitle: "Learn more about the DuckDuckGo Instant Answer API"
                    
24  url: https://duckduckgo.com/api
                    
25app:
                    
31  title: "Looking for our app?"
                    
32  url: https://duckduckgo.com/app/
                    
33bangs:
                    
163  subtitle: "Visit the DuckDuckGo settings page"
                    
164  url: https://duckduckgo.com/settings
                    
165short:
                    
174  subtitle: "Visit our documentation"
                    
175  url: https://github.com/duckduckgo/zeroclickinfo-spice
                    
176spread:
                    
178  subtitle: "Visit DuckDuckGo's Spread page"
                    
179  url: https://duckduckgo.com/spread
                    
180swag:
                    
                
links.rb https://gitlab.com/jcsilkey/homebrew-core | Ruby | 51 lines
                    
2  desc "Lynx-like WWW browser that supports tables, menus, etc."
                    
3  homepage "http://links.twibright.com/"
                    
4  # Switch url & mirror back over when twibright is responsive.
                    
5  url "https://mirrors.ocf.berkeley.edu/debian/pool/main/l/links2/links2_2.13.orig.tar.bz2"
                    
6  mirror "http://links.twibright.com/download/links-2.13.tar.bz2"
                    
7  sha256 "c252095334a3b199fa791c6f9a9affe2839a7fbd536685ab07851cb7efaa4405"
                    
10    cellar :any
                    
11    sha256 "72f73ee61f9b16ae1e8bbe1306900a1fb17cfd49576f166bb88ab574ec8b0925" => :el_capitan
                    
12    sha256 "490a0aa8d1116268d3a431d9c1442dc9a2bd94fb00a74f0cab3767622ea119ac" => :yosemite
                    
16  depends_on "pkg-config" => :build
                    
17  depends_on "openssl" => :recommended
                    
18  depends_on "libressl" => :optional
                    
48  test do
                    
49    system bin/"links", "-dump", "https://duckduckgo.com"
                    
50  end
                    
                
w3m.rb https://gitlab.com/0072016/homebrew-core | Ruby | 54 lines
                    
7  bottle do
                    
8    sha256 "c6443287699a058e58ff0e378a8f6459370de79f89246ac7217e11f9f748abed" => :el_capitan
                    
9    sha256 "57a644921789316e92cbc37d2e0c51eaf5591876992626a9bcf9f4a56c0e3897" => :yosemite
                    
26    # Race condition in build reported in:
                    
27    # https://github.com/Homebrew/homebrew/issues/12854
                    
28    ENV.j1
                    
32  test do
                    
33    assert_match /DuckDuckGo/, shell_output("#{bin}/w3m -dump https://duckduckgo.com")
                    
34  end
                    
                
README.md https://gitlab.com/jslee1/zeroclickinfo-goodies | Markdown | 75 lines
                    
8
                    
9Instant Answers appear on DuckDuckGo.com above ads and organic links, on [millions of searches](https://duckduckgo.com/traffic.html). Instant Answers are created by an open source community of developers [around the world](http://duckduckgo.meetup.com/) like you. Welcome!
                    
10
                    
10
                    
11You can find the [full documentation here](http://docs.duckduckhack.com). This is the repository for [one type of Instant Answers](http://docs.duckduckhack.com/welcome/determining-ia-type.html), called Goodies.
                    
12
                    
22
                    
23We welcome new contributors to dive in and improve live Instant Answers. It's a great, hands-on way to learn how things work. Start by [setting up your development environment](http://docs.duckduckhack.com/welcome/setup-dev-environment.html).
                    
24
                    
70
                    
71[![slack](http://docs.duckduckhack.com/assets/slack.png) Talk to us on Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email us](mailto:open@duckduckgo.com).
                    
72
                    
72
                    
73We're a digital community, but real people - we frequently meet up to hack together. Check out our [global meetups](http://duckduckgo.meetup.com/).
                    
74
                    
                
README.md https://gitlab.com/IvettGeorge/tecnicassanacion | Markdown | 155 lines
                    
10
                    
11`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
12 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
36  console.log(response.responseUrl);
                    
37  // 'http://duckduckgo.com/robots.txt'
                    
38});
                    
69
                    
70In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
                    
71the following per-request options are supported:
                    
85of [`http`](https://nodejs.org/api/http.html)
                    
86and [`https`](https://nodejs.org/api/https.html).
                    
87To enable features such as caching and/or intermediate request tracking,
                    
136
                    
137Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues)
                    
138 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
index.html https://gitlab.com/stanjanssen/homepage | HTML | 66 lines
                    
6    <title>Home</title>
                    
7    <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
                    
8    <link href="https://fonts.googleapis.com/css?family=Jaldi" rel="stylesheet">
                    
15        <div class="row">
                    
16            <form method="GET" action="https://duckduckgo.com/">
                    
17                <input type="text" name="q" placeholder="Search DuckDuckGo..." id="duck" />
                    
23                    <ul class="column">
                    
24                        <li><a href="https://reddit.com">Reddit</a></li>
                    
25                        <li><a href="https://tweakers.net">Tweakers</a></li>
                    
25                        <li><a href="https://tweakers.net">Tweakers</a></li>
                    
26                        <li><a href="http://encide.com">Encide</a></li>
                    
27                        <li><a href="https://gmail.com">Gmail</a></li>
                    
27                        <li><a href="https://gmail.com">Gmail</a></li>
                    
28                        <li><a href="https://calendar.google.com">Google Calendar</a></li>
                    
29                    </ul>
                    
                
CONTRIBUTING.md https://gitlab.com/jslee1/zeroclickinfo-goodies | Markdown | 42 lines
                    
1# Contributing an Instant Answer to DuckDuckGo.com
                    
2
                    
2
                    
3> You can find the full [DuckDuckHack documentation here](http://docs.duckduckhack.com)
                    
4
                    
8
                    
9	> Instant Answer Pages are the "home base" for each Instant Answer. They are where the community plans, collaborates, and tracks the [life cycle](http://docs.duckduckhack.com/submitting/long-term.html) of all Instant Answers. It's where we aggregate pull requests, issues, attribution, and feedback.
                    
10
                    
10
                    
112. **Hack away, keeping the [Instant Answer Production Guidelines](http://docs.duckduckhack.com/submitting/checklist.html) in mind.**
                    
12
                    
16
                    
17We're excited to meet you and support you along the way - and it's never too early to say hello. Join us on [Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email](mailto:open@duckduckgo.com). 
                    
18
                    
36
                    
37	- "**Fixes #2038.** The images used by the API are very large and don't change often. I've but a smaller version of each image (and a 2x version for retina screens) in the share directory. The callback will try and load a local image based on the astronauts name and fallback to using the API's image if one does not exist."
                    
38
                    
                
completion_engines.coffee git://github.com/philc/vimium.git | CoffeeScript | 179 lines
                    
79    super
                    
80      engineUrl: "http://suggestqueries.google.com/complete/search?client=youtube&ds=yt&xml=t&q=%s"
                    
81      regexps: "^https?://[a-z]+\\.youtube\\.com/results"
                    
99    super
                    
100      engineUrl: "http://api.bing.com/osjson.aspx?query=%s"
                    
101      regexps: "^https?://www\\.bing\\.com/search"
                    
110    super
                    
111      engineUrl: "https://completion.amazon.com/search/complete?method=completion&search-alias=aps&client=amazon-search-ui&mkt=1&q=%s"
                    
112      regexps: "^https?://www\\.amazon\\.(com|co\\.uk|ca|de|com\\.au)/s/"
                    
145    super
                    
146      engineUrl: "https://api.qwant.com/api/suggest?q=%s"
                    
147      regexps: "^https?://www\\.qwant\\.com/"
                    
177root = exports ? window
                    
178root.CompletionEngines = CompletionEngines
                    
179
                    
                
PackageTracking.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 306 lines
                    
14spice from => '([^/]+)/?.+?$';
                    
15spice to => 'https://api.packagetrackr.com/ddg/v1/track/simple?n=$1&api_key={{ENV{DDG_SPICE_PACKAGETRACKR_API_KEY}}}';
                    
16
                    
41    ## UPS
                    
42    # Soure: https://www.ups.com/content/ca/en/tracking/help/tracking/tnh.html
                    
43    # To Do: Some additional formats exist
                    
53    ## Fedex
                    
54    # Source: https://www.trackingex.com/fedex-tracking.html
                    
55    #         https://www.trackingex.com/fedexuk-tracking.html
                    
55    #         https://www.trackingex.com/fedexuk-tracking.html
                    
56    #         https://www.trackingex.com/fedex-poland-domestic-tracking.html
                    
57    fedex => qr/^
                    
73    # Note:   May need to restrict pattern #3 if overtriggering
                    
74    #         https://github.com/duckduckgo/zeroclickinfo-goodies/issues/3900
                    
75    parcelforce => qr/^
                    
                
README.md https://gitlab.com/vitalii.dr/ohmyzsh | Markdown | 75 lines
                    
42| cssflow       | `http://www.cssflow.com/search?q=`                                          |
                    
43| dartlang      | `https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:`     |
                    
44| emberjs       | `https://www.google.com/search?as_sitesearch=emberjs.com/&as_q=`            |
                    
49| jestjs        | `https://www.google.com/search?as_sitesearch=jestjs.io&as_q=`               |
                    
50| jquery        | `https://api.jquery.com/?s=`                                                |
                    
51| lodash        | `https://devdocs.io/lodash/index#`                                          |
                    
55| packagephobia | `https://packagephobia.now.sh/result?p=`                                    |
                    
56| qunit         | `https://api.qunitjs.com/?s=`                                               |
                    
57| reactjs       | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=`    |
                    
57| reactjs       | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=`    |
                    
58| smacss        | `https://google.com/search?as_sitesearch=smacss.com&as_q=`                  |
                    
59| stackoverflow | `https://stackoverflow.com/search?q=`                                       |
                    
67
                    
68The plugin will use Google as a fallback if the docs site for a search context does not have a search function. You can set the fallback search engine to DuckDuckGo by setting  `FRONTEND_SEARCH_FALLBACK='duckduckgo'` in your `~/.zshrc` file before Oh My Zsh is sourced.
                    
69
                    
                
qutebrowser.org https://gitlab.com/csantosb/wikidata | Org | 1731 lines
                    
23     - [[#code-2][Code]]
                    
24   - [[#completion][Completion]]
                    
25     - [[#code-3][Code]]
                    
50     - [[#hint][Hint]]
                    
51     - [[#command][Command]]
                    
52     - [[#prompt][Prompt]]
                    
52     - [[#prompt][Prompt]]
                    
53     - [[#command-prompt][Command, prompt]]
                    
54     - [[#caret][Caret]]
                    
106The default page(s) to open at the start, separated by commas.
                    
107Default: https://duckduckgo.com
                    
108
                    
486 cmd-history-max-items (Int):
                    
487     How many commands to save in the command history.
                    
488     0: no history / -1: unlimited
                    
                
helm-net.el https://gitlab.com/csagedy/prelude | Emacs Lisp | 521 lines
                    
50(defcustom helm-google-suggest-url
                    
51  "http://google.com/complete/search?output=toolbar&q="
                    
52  "URL used for looking up Google suggestions."
                    
71(defcustom helm-surfraw-duckduckgo-url
                    
72  "https://duckduckgo.com/lite/?q=%s&kp=1"
                    
73  "The duckduckgo url.
                    
80(defcustom helm-wikipedia-suggest-url
                    
81  "https://en.wikipedia.org/w/api.php?action=opensearch&search="
                    
82  "Url used for looking up Wikipedia suggestions."
                    
99(defcustom helm-search-suggest-action-youtube-url
                    
100  "http://www.youtube.com/results?aq=f&search_query=%s"
                    
101  "The Youtube search url.
                    
373(defvar helm-browse-url-default-browser-alist
                    
374  `((,(or (and (boundp 'w3m-command) w3m-command)
                    
375          "/usr/bin/w3m") . w3m-browse-url)
                    
                
majuscules.md https://gitlab.com/CodeursEnLiberte/www | Markdown | 89 lines
                    
2date = "2022-03-17T18:19:00+01:00"
                    
3title = "Les majuscules, c’est compliqué"
                    
4author = "Thibaut"
                    
17
                    
18En résumé, le cerveau doit fournir plus d'efforts pour les interpréter au delà de l'équivalent d'une phrase. Donc à la fin d'une journée à travailler de la matière texte en majuscules, nous sommes plus fatigué(e)s que si elle était composée de minuscules. Pour comprendre pourquoi, nous allons voir comment fonctionne la lecture d'un texte, et faire un test pour faire l'expérience de la différence entre minuscules et majuscules à l'échelle d'une liste de mots.
                    
19
                    
21
                    
22Contrairement à la fluidité qu'on ressent en lisant, que vous ressentez sans doutes à l'instant même, le regard progresse par à-coups dans les lignes en faisant des sauts d'un groupe de lettres à l'autre. Recherchez les termes « [eye tracking text](https://duckduckgo.com/?q=eye+tracking+text&iar=videos&iax=videos&ia=videos) » sur la plateforme vidéo de votre choix et vous pourrez en voir la démonstration. L'efficacité de la reconnaissance des mots en coups d'œil est donc déterminante pour la vitesse et le confort de lecture.
                    
23
                    
25
                    
26Il y a encore un peu de controverse sur la façon précise dont on reconnait les mots, mais pour résumer sans fâcher personne disons que nous utilisons l'habitude et la mémoire pour reconnaitre un ensemble de lettres comme étant un mot en particulier. On a longtemps pensé que le dessin global d'un mot écrit primait sur la lecture des lettres qui le composent, mais des études remettent ce fonctionnement en question. Il s'avère en tous cas que ces mots-visages en majuscules sont mieux reconnus que ceux en minuscules lorsqu'ils sont seuls et isolés. Mais l'inverse est vrai quand les mots sont regroupés sur une longue ligne ou en paragraphes.
                    
27
                    
86
                    
87Une note finale pour nos collègues développeurs. Une bonne pratique à adopter est de ne pas utiliser de majuscules dans les données enregistrées en base. Si un service demande à ce que les noms de famille soient affichés en majuscules, il vaut mieux avoir `Dupont` en base pour avoir le choix de l'afficher comme « DUPONT » pour ce service, puis dans un autre contexte pouvoir l'afficher comme  « Dupont » avec quelques règles de présentation.
                    
88
                    
                
README.md https://gitlab.com/spice/spice-space | Markdown | 67 lines
                    
9----------------|-----
                    
10Author Email    | talha131@gmail.com 
                    
11Author Homepage | http://onCrashReboot.com 
                    
11Author Homepage | http://onCrashReboot.com 
                    
12Github Account  | https://github.com/talha131 
                    
13
                    
16
                    
17Static sites do not offer search feature out of the box. [Tipue Search](http://www.tipue.com/search/)
                    
18is a jQuery plugin that search the static site without using any third party service, like DuckDuckGo or Google.
                    
19
                    
20Tipue Search offers 4 search modes. Its [JSON search mode](http://www.tipue.com/search/docs/json/) is the best search mode
                    
21especially for large sites.
                    
42        { 
                    
43            "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero.",
                    
44            "tags": "Example Category",
                    
                
beats.py https://gitlab.com/kalix/beats | Python | 317 lines
                    
113            return # do nothing
                    
114        command, sep, rest = message.lstrip('!').partition(' ')
                    
115        # Get the function corresponding to the command given.
                    
115        # Get the function corresponding to the command given.
                    
116	command = command.replace("ö","o")
                    
117        func = getattr(self, 'command_' + command, None)
                    
170	return next(res.results).text.encode('utf8').replace("\\:0e3f","")
                    
171    def command_g(self, rest):
                    
172
                    
172
                    
173        url = 'http://ajax.googleapis.com/ajax/services/search/web?'
                    
174
                    
186	return rtStr.decode('utf8').encode('iso-8859-1')
                    
187    def command_duck(self, rest):
                    
188        return duckduckgo.get_zci(str(rest)).encode('iso-8859-1')
                    
                
search.py https://gitlab.com/hekel/sopel-extras-pandorah | Python | 158 lines
                    
38
                    
39r_duck = re.compile(r'nofollow" class="[^"]+" href="(?!(?:https?:\/\/r\.search\.yahoo)|(?:https?:\/\/duckduckgo\.com\/y\.js)(?:\/l\/\?kh=-1&amp;uddg=))(.*?)">')
                    
40
                    
59    if '!bang' in query.lower():
                    
60        return 'https://duckduckgo.com/bang.html'
                    
61
                    
62    # This fixes issue #885 (https://github.com/sopel-irc/sopel/issues/885)
                    
63    # It seems that duckduckgo api redirects to its Instant answer API html page
                    
64    # if the query constains special charactares that aren't urlencoded.
                    
66    query = quote_plus(query)
                    
67    uri = 'https://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1' % query
                    
68    results = json.loads(web.get(uri))
                    
148    # an alternative suggestion API.
                    
149    uri = 'https://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q='
                    
150    answer = xmltodict.parse(web.get(uri + query.replace('+', '%2B')))['toplevel']
                    
                
TestMessageList.qml https://gitlab.com/blacksailer/sailfish-vk | QML | 154 lines
                    
33        last_name:"Ivanov"
                    
34        user_photo:"https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fmedia01.money4invest.com%2F2010%2F01%2Ffaceyourmanga-female-avatar.jpg&f=1"
                    
35        date:19000000
                    
76                            {
                    
77                                vkapi.messages_getHistory(chat_id,listView.count,20,-1)
                    
78                            }
                    
102            console.log(Attachments)
                    
103  //          vkapi.messages_send(chat_id,text,Attachments)
                    
104            c_Model.clear();
                    
124    }
                    
125    Component.onCompleted: {
                    
126        historyModel.clear_Messages();
                    
126        historyModel.clear_Messages();
                    
127        globalSettings.companionId=chat_id;
                    
128        vkapi.messages_getHistory(chat_id,0,20,-1);
                    
                
QSObject_URLHandling.m https://github.com/quicksilver/Quicksilver.git | Objective C | 265 lines
                    
32    
                    
33	NSString *favIconString = [NSString stringWithFormat:@"https://icons.duckduckgo.com/ip3/%@.ico", [favIconURL host]];
                    
34	NSImage *favicon = [[NSImage alloc] initWithContentsOfURL:[NSURL URLWithString:favIconString]];
                    
47    NSSize imageSize = [image size];
                    
48    NSBitmapImageRep *bitmap = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL
                    
49                                                                        pixelsWide:imageSize.width
                    
61    }
                    
62    NSGraphicsContext *graphicsContext = [NSGraphicsContext graphicsContextWithBitmapImageRep:bitmap];
                    
63    
                    
71    [image setSize:rect.size];
                    
72    [image drawInRect:rect fromRect:rectFromSize([image size]) operation:NSCompositingOperationSourceOver fraction:1.0];
                    
73    NSImage *findImage = [[QSResourceManager imageNamed:@"Find"] copy];
                    
80            [favIcon setSize:rect.size];
                    
81            [favIcon drawInRect:NSMakeRect(rect.origin.x+NSWidth(rect)*0.48, rect.origin.y+NSWidth(rect)*0.32, 30, 30) fromRect:rect operation:NSCompositingOperationSourceOver fraction:1.0];
                    
82        }
                    
                
helm-net.el https://gitlab.com/ngnigha/emacs.d | Emacs Lisp | 572 lines
                    
38
                    
39(defcustom helm-home-url "https://www.google.com"
                    
40  "Default url to use as home url."
                    
50(defcustom helm-google-suggest-url
                    
51  "https://encrypted.google.com/complete/search?output=toolbar&q=%s"
                    
52  "URL used for looking up Google suggestions.
                    
73(defcustom helm-surfraw-duckduckgo-url
                    
74  "https://duckduckgo.com/lite/?q=%s&kp=1"
                    
75  "The duckduckgo url.
                    
77If you have personal settings saved on duckduckgo you should have
                    
78a personal url, see your settings on duckduckgo."
                    
79  :type 'string
                    
82(defcustom helm-wikipedia-suggest-url
                    
83  "https://en.wikipedia.org/w/api.php?action=opensearch&search=%s"
                    
84  "Url used for looking up Wikipedia suggestions.
                    
                
assertion-libraries.md https://github.com/FluentLenium/FluentLenium.git | Markdown | 129 lines
                    
12## Supported Assertions Libraries
                    
13- [AssertJ (recommended)](#assertj)
                    
14- [Junit](#junit)
                    
19
                    
20We recommend to use AssertJ because we extend it with FluentWebElement and FluentList custom assertions.
                    
21
                    
35```java
                    
36import static org.assertj.core.api.Assertions.*;
                    
37import static org.fluentlenium.assertj.FluentLeniumAssertions.*;
                    
128
                    
129check the [example](https://github.com/FluentLenium/FluentLenium/blob/develop/examples/kotest/src/test/kotlin/org/fluentlenium/example/kotest/DuckDuckGoSpec.kt) and the [tests](../../fluentlenium-kotest-assertions) for usage examples.
                    
130
                    
                
Solved Media Plus.user.js https://gitlab.com/coffee-coated/dotfiles-mobile | JavaScript | 1881 lines
                    
2// @name         Solved Media Plus
                    
3// @icon         https://icons.duckduckgo.com/ip2/solvemedia.com.ico
                    
4// @version      0.4.2
                    
9// @include      *
                    
10// @match        *api-secure.solvemedia.com*
                    
11// @require      https://greasyfork.org/scripts/37236-monkeyconfig/code/MonkeyConfig.js
                    
289        "come along pond",
                    
290        "come back",
                    
291        "come clean",
                    
291        "come clean",
                    
292        "come on down",
                    
293        "come what may",
                    
294        "comfort zone",
                    
295        "comma comma",
                    
296        "common law",
                    
                
2020-02-15-meetup-api-multiple-redirect-uris.md https://gitlab.com/jamietanna/jvt.me | Markdown | 51 lines
                    
1---
                    
2title: "Setting up Multiple `redirect_uri`s on the Meetup.com API"
                    
3description: "How to allow multiple `redirect_uri`s on your Meetup.com (OAuth2) API consumer."
                    
13---
                    
14Since roughly September, I've been on-and-off working on [contributing a feature request](https://github.com/snarfed/bridgy/issues/873) to allow [Bridgy](https://brid.gy) to send RSVPs events from my personal website straight to Meetup.com.
                    
15
                    
21
                    
22However, the Meetup.com API does _not_ allow for multiple `redirect_uri`s, which has made this process much more complicated than it needed to be, and has been quite a painful learning experience.
                    
23
                    
23
                    
24Getting quite annoyed with the complexity overhead of this approach, I set about trying my DuckDuckGo-fu and seeing if I could find anything online, but to no avail.
                    
25
                    
50
                    
51Hopefully this helps those of you still creating Meetup.com APIs, but I do wish that the API documentation would make it known that it's possible!
                    
52
                    
                
useragents.py https://gitlab.com/kissarat/wowenginecmd | Python | 30 lines
                    
9    spider crawler bot slurp fetcher fetch proxy perl checker check checkup index indexer
                    
10    wordpress python mail.ru apple-pubsub java/1 wget httpclient bsalsa.com
                    
11    butterfly larbin w3c_validator ia_archiver bsalsa.com nutch
                    
12    screenshot-generator yandexblogs sitetruth.com yandexdirect crawler4j
                    
13    webagent.wise-guys.nl intraweb webmaster@livejournal.com linkdex.com
                    
14    linkpeek.com appengine-google hourlypress curl twitturls strawberryj.am
                    
17    movabletype mechanize ruby libwww lynx w3m ostrovok lwp- metauri
                    
18    mailchimp.com openwave pagepeeker.com readability rss-harvester quicktime
                    
19    seostats scraping safarizator webcollage loadimpact.com
                    
20    publisher links webdav websitevila webcolars unrecognized voyager.exe dwnloadmnger
                    
21    .. watchmouse.com sniffer bodyground.ru anonymouse.org yandexmarket facebookplatform
                    
22    ichiro parser resolver pingadmin ping-admin nmap embedly yahooysmcm pipes heritrix
                    
22    ichiro parser resolver pingadmin ping-admin nmap embedly yahooysmcm pipes heritrix
                    
23    duckduckgo.com typhoeus /etc rivva docomo enterprise_search kaz.kz ahrefsbot
                    
24    urlsearchhook search.bot google-site user-agent verification
                    
                
surfraw.rb https://gitlab.com/jcsilkey/homebrew-core | Ruby | 37 lines
                    
9    revision 1
                    
10    sha256 "df27f0dc82f9f2f4efa5fc33244d66063592d0c7afd3d2dd8db0466ec10492d0" => :el_capitan
                    
11    sha256 "cf0dd3b14c4e8034f0d0766fb09978eac0f19fa41730d72ed1422a67c0b0d0b3" => :yosemite
                    
34    output = shell_output("#{bin}/surfraw -p duckduckgo homebrew")
                    
35    assert_equal "https://www.duckduckgo.com/lite/?q=homebrew\n", output
                    
36  end
                    
                
abstract.coffee https://gitlab.com/0072016/github-adsbot-app | CoffeeScript | 45 lines
                    
9#
                    
10# Commands:
                    
11#   hubot abstract <topic> - Prints a nice abstract of the given topic
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
34          # Astronomy is the scientific study of celestial objects.
                    
35          # http://duckduckgo.com/Astronomy
                    
36          res.send topic.Text
                    
40          # contumacious definition: stubbornly disobedient.
                    
41          # http://merriam-webster.com/dictionary/contumacious
                    
42          res.send data.Definition
                    
                
in_theaters.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 131 lines
                    
3    
                    
4    // A change in the Rotten Tomatoes API returns images that end in _tmb.
                    
5    // This changes this to _det.
                    
6    function toDetail(img) {
                    
7        if(/resizing\.flixster\.com/.test(img)) {
                    
8            // Everything before the size of the image can be removed and it would still work.
                    
28    env.ddg_spice_in_theaters = function(api_result) {
                    
29        if(!api_result || api_result.error) {
                    
30            return Spice.failed('in_theaters');
                    
32
                    
33        var mod_api_result = [];
                    
34        var filter_rating;
                    
105                            var image = "https://image.tmdb.org/t/p/w185" + data.movie_results[0].poster_path;
                    
106                            item.$html.find(".tile__media__img").attr("src", "https://images.duckduckgo.com/iu/?f=1&u=" + encodeURIComponent(image));
                    
107                            $.extend(item, {
                    
                
duckduck.go git://github.com/ajanicij/goduckgo.git | Go | 183 lines
                    
1// Package goduckgo provides the functionality for using
                    
2// DuckDuckGo API. For the description of the API, visit
                    
3// http://duckduckgo.com/api.html.
                    
16
                    
17var baseUrl = "https://api.duckduckgo.com/?q=%s&format=json&pretty=1%s"
                    
18
                    
152
                    
153// Do the HTTP requests against API and handle errors
                    
154func Do(url string) ([]byte, error) {
                    
167
                    
168// Query the API given a text query, returns a Message
                    
169func Query(query string) (*Message, error) {
                    
                
CHANGELOG.md https://github.com/neutralinsomniac/uzbl.git | Markdown | 61 lines
                    
3### v0.9.1 / 2016-10-27
                    
4- [#321](https://github.com/uzbl/uzbl/pull/321) fix QA issues in *.desktop files (@rindeal)
                    
5- [#317](https://github.com/uzbl/uzbl/pull/317) Load uri with auth (@keis)
                    
9- [#269](https://github.com/uzbl/uzbl/pull/269) No empty strings in parser (@keis)
                    
10- [#282](https://github.com/uzbl/uzbl/pull/282) Adding string escaping for the DuckDuckGo search engine. (@everton1984)
                    
11- [#278](https://github.com/uzbl/uzbl/pull/278) Fix segfault upon toggling builtin string variable (@hofheinz)
                    
22- [#248](https://github.com/uzbl/uzbl/pull/248) Use version tag when used from archive (@keis)
                    
23- [#244](https://github.com/uzbl/uzbl/pull/244) comm: fix appending doubles to events (@mathstuf)
                    
24- [#247](https://github.com/uzbl/uzbl/pull/247) status-bar: call the parent class' size_allocate (@mathstuf)
                    
25- [#245](https://github.com/uzbl/uzbl/pull/245) config: fix <Space> bindings (@mathstuf)
                    
26- [#229](https://github.com/uzbl/uzbl/pull/229) Use GIOStream to do command input (@keis)
                    
27- [#241](https://github.com/uzbl/uzbl/pull/241) Rework authentication (@keis)
                    
48- [#103](https://github.com/uzbl/uzbl/pull/103) Add support for local settings (@mathstuf, @bct, @pawelz, @TaylanUB, @djpohly, @dylex, @lucab, @keis, @dmedvinsky, @igoralmeida)
                    
49- [#106](https://github.com/uzbl/uzbl/pull/106) Make scheme.py python3 compatible. (@mhrheaume)
                    
50- [#105](https://github.com/uzbl/uzbl/pull/105) Tab reordering for uzbl-tabbed (@moorchegue)
                    
                
2019-12-17-xml-pretty-print.md https://gitlab.com/jamietanna/jvt.me | Markdown | 58 lines
                    
1---
                    
2title: "Pretty Printing XML on the Command-Line"
                    
3description: "How to use `xmllint` to pretty-print XML/HTML files."
                    
8- pretty-print
                    
9- command-line
                    
10license_code: Apache-2.0
                    
14---
                    
15A couple of times recently I've found that I need to pretty-print XML - be that HTML or actual XML, but haven't found a great way from the command-line.
                    
16
                    
16
                    
17Fortunately [DuckDuckGo has an HTML Beautify setup](https://duckduckgo.com/?q=html+beautify&ia=answer) but that's not super safe for proprietary content, nor for automating the pretty-printing.
                    
18
                    
23```xml
                    
24<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>me.jvt.www</groupId> <artifactId>www-api</artifactId> <version>0.5.0-SNAPSHOT</version> <modules> <module>www-api-web</module> <module>www-api-acceptance</module> <module>www-api-core</module> <module>indieauth-spring-security</module> </modules> <packaging>pom</packaging> </project>
                    
25```
                    
                
isync.rb https://gitlab.com/jcsilkey/homebrew-core | Ruby | 42 lines
                    
9    revision 1
                    
10    sha256 "38fb0d21a245178886acb1262f57ddde284adbf889039baf3401bf2028d7cba7" => :el_capitan
                    
11    sha256 "074b9295e7ac9773eafac5bdc20e32d42d8023ffccd275235d0cb72ff09574cf" => :yosemite
                    
39  test do
                    
40    system bin/"get-cert", "duckduckgo.com:443"
                    
41  end
                    
                
CONTRIBUTING.md https://gitlab.com/0072016/zeroclickinfo-goodies | Markdown | 72 lines
                    
6
                    
7Before you can do anything, you first need a [GitHub account](https://github.com/signup/free). This is required because we use GitHub to handle all incoming *Pull Requests* (code modifications) and *Issues* (bug reports) which cannot be made without a GitHub account.
                    
8
                    
10
                    
11- Firstly, please make sure the bug is related to the Goodie repository. If this bug is about the DuckDuckGo API, or the relevancy of our search results, please visit our feedback page at <https://duckduckgo.com/feedback>. If you're unsure, its best to use the feedback page (your message will be passed along to the correct people).
                    
12
                    
12
                    
13- Check the Goodie [issues](https://github.com/duckduckgo/zeroclickinfo-goodies/issues) to see if an issue already exists for the given bug or suggestion
                    
14  - If one doesn't exist, create a GitHub issue in the Goodie repository
                    
50
                    
512. Get your commit history [how you like it](http://book.git-scm.com/4_interactive_rebasing.html).
                    
52
                    
71
                    
725. Go into GitHub and submit a [pull request!](http://help.github.com/send-pull-requests/) to the Goodie repository, making sure to use the Goodie repository's **[Pull Request Template](https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/pull_request_template_goodie.md)**. This will let us know about your changes and start the conversation about integrating it into the live code.
                    
73
                    
                
responses.yml https://gitlab.com/0072016/zeroclickinfo-goodies | YAML | 201 lines
                    
19  base_format: "DuckDuckGo's [API]"
                    
20  info_url: https://duckduckgo.com/api
                    
21app:
                    
84    - instantanswers
                    
85  html: DuckDuckGo's instant answers display helpful information at the top of the search page (like this box).<br>Suggest or develop them on <a href='http://duckduckhack.com/'>DuckDuckHack</a> and see all the current instant answers on the <a href='https://duckduckgo.com/goodies'>Goodies page</a>.
                    
86  text: |-
                    
87    DuckDuckGo's instant answers display helpful information at the top of the search page (like this box).
                    
88    Suggest or develop them on http://duckduckhack.com and see all the current instant answers on the Goodies page (https://duckduckgo.com/goodies).
                    
89ie:
                    
94irc:
                    
95  html: "DuckDuckGo's official IRC channel is <a href='http://webchat.freenode.net/?channels=duckduckgo'>#duckduckgo</a> on <a href='http://freenode.net/'>irc.freenode.net</a>"
                    
96  text: "DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net."
                    
119  html: "To remove DuckDuckGo from your browser, take a look <a href='https://duck.co/help/desktop'>here</a>. Please <a href='https://duckduckgo.com/feedback'>let us know</a> why you are leaving!"
                    
120  text: 'To remove DuckDuckGo from your browser, take a look at https://duck.co/help/desktop. Please let us know why you are leaving at https://duckduckgo.com/feedback!'
                    
121roboduck:
                    
                
Namecheap.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 66 lines
                    
11
                    
12my $namecheap_endpoint = 'http://api.namecheap.com/xml.response';
                    
13
                    
15# DDG_SPICE_NAMECHEAP_USERNAME : Namecheap API username
                    
16# DDG_SPICE_NAMECHEAP_APIKEY   : Namecheap API key
                    
17# DDG_SPICE_NAMECHEAP_IP_ADDR  : Allowed end-User IP address
                    
19    ApiUser    => '{{ENV{DDG_SPICE_NAMECHEAP_USERNAME}}}', # Username required to access the API
                    
20    ApiKey     => '{{ENV{DDG_SPICE_NAMECHEAP_APIKEY}}}',   # Password required used to access the API
                    
21    UserName   => '{{ENV{DDG_SPICE_NAMECHEAP_USERNAME}}}', # same as ApiUser
                    
21    UserName   => '{{ENV{DDG_SPICE_NAMECHEAP_USERNAME}}}', # same as ApiUser
                    
22    Command    => 'namecheap.domains.check',               # API method
                    
23    ClientIp   => '0.0.0.0',  # End-user IP address
                    
33    } @query_list );
                    
34spice to => "https://duckduckgo.com/x.js?u=" . $query_url;
                    
35
                    
                
README.md https://bitbucket.org/leihouchao/pi-liang-zhao-hui-she-bei-dian-hua.git | Markdown | 155 lines
                    
12
                    
13`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
14 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
38  console.log(response.responseUrl);
                    
39  // 'http://duckduckgo.com/robots.txt'
                    
40});
                    
71
                    
72In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
                    
73the following per-request options are supported:
                    
84By default, `follow-redirects` will use the Node.js default implementations
                    
85of [`http`](https://nodejs.org/api/http.html)
                    
86and [`https`](https://nodejs.org/api/https.html).
                    
136
                    
137Pull Requests are always welcome. Please [file an issue](https://github.com/olalonde/follow-redirects/issues)
                    
138 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
casperjs.rb https://gitlab.com/jcsilkey/homebrew-core | Ruby | 36 lines
                    
3  homepage "http://www.casperjs.org/"
                    
4  url "https://github.com/casperjs/casperjs/archive/1.1.3.tar.gz"
                    
5  sha256 "3e9c385a2e3124a44728b24d3b4cad05a48e2b3827e9350bdfe11c9a6d4a4298"
                    
5  sha256 "3e9c385a2e3124a44728b24d3b4cad05a48e2b3827e9350bdfe11c9a6d4a4298"
                    
6  head "https://github.com/casperjs/casperjs.git"
                    
7
                    
9    cellar :any_skip_relocation
                    
10    sha256 "b71c26fc5d2d6da94cc95554defbe5db1c6e0213d64ec09fea99755ffd529df4" => :el_capitan
                    
11    sha256 "3ca3351236ac827a5cd745087e7763dbd7445e05e4ce05aa11c5bbc7d62d75a6" => :yosemite
                    
26      var casper = require("casper").create();
                    
27      casper.start("https://duckduckgo.com/about", function() {
                    
28        this.download("https://duckduckgo.com/assets/dax-alt.svg", "dax-alt.svg");
                    
                
check_api.c git://github.com/sahib/glyr.git | C | 236 lines
                    
2 * This file is part of glyr
                    
3 * + a command-line tool and library to download various sort of musicrelated metadata.
                    
4 * + Copyright (C) [2011-2016]  [Christopher Pahl]
                    
4 * + Copyright (C) [2011-2016]  [Christopher Pahl]
                    
5 * + Hosted at: https://github.com/sahib/glyr
                    
6 *
                    
20
                    
21#include "test_common.h"
                    
22#include <check.h>
                    
191    atexit (glyr_cleanup);
                    
192    GlyrMemCache * c = glyr_download ("www.duckduckgo.com",NULL);
                    
193    fail_unless (c != NULL,"Could not load www.google.de");
                    
201{
                    
202    Suite *s = suite_create ("Libglyr API");
                    
203
                    
                
slides.md https://gitlab.com/cfedde/aghi_ansible.git | Markdown | 357 lines
                    
30# Assumptions
                    
31* You have a reasonable grasp of the linux/unix command line
                    
32* what is a pipe?
                    
47# Assumptions
                    
48* [DDG](https://duckduckgo.com/)
                    
49* [Ansible Documentation](http://docs.ansible.com/)
                    
52* This courseware is freely available
                    
53* [https://gitlab.com/cfedde/aghi_ansible](https://gitlab.com/cfedde/aghi_ansible)
                    
54
                    
82
                    
83# "Server Complex"
                    
84## "Administrative Domain"
                    
89
                    
90# "Server Complex"
                    
91## "Administrative Domain"
                    
                
engine-mode.el https://github.com/budevg/emacs-conf.git | Emacs Lisp | 178 lines
                    
29;; (defengine duckduckgo
                    
30;;   "https://duckduckgo.com/?q=%s"
                    
31;;   :keybinding "d")
                    
33;; `C-x / d' is now bound to the new function
                    
34;; engine/search-duckduckgo'! Nifty.
                    
35
                    
52(eval-when-compile (require 'cl-macs))
                    
53(eval-when-compile (require 'format-spec))
                    
54
                    
146\(defengine duckduckgo
                    
147  \"https://duckduckgo.com/?q=%s\"
                    
148  :term-transformation-hook 'upcase)
                    
150In this case, searching for \"foobar\" will hit the url
                    
151\"https://duckduckgo.com/?q=FOOBAR\".
                    
152
                    
                
README.md https://gitlab.com/tcnj/uuid-bot | Markdown | 59 lines
                    
10
                    
11To use the agent instance, set it in the `agent` field of the options passed to `http.request()` or `http.get()`. See the [http.request() documentation](http://nodejs.org/api/http.html#http_http_request_options_callback) for details.
                    
12
                    
23var getOptions = {
                    
24    hostname: 'twitter.com',
                    
25    port: 80,
                    
41var getOptions = {
                    
42    hostname: 'www.duckduckgo.com',
                    
43    port: 443,
                    
54
                    
55For other implementations, see [agentkeepalive](https://github.com/TBEDP/agentkeepalive) and the [request](https://github.com/mikeal/request) module's [ForeverAgent](https://github.com/mikeal/request/blob/master/forever.js).
                    
56
                    
                
changing-the-default-search-engine.patch https://gitlab.com/parabola/abslibre_abslibre | Patch | 40 lines
                    
16+browser.search.order.1=searx
                    
17+browser.search.order.2=DuckDuckGo HTML
                    
18+browser.search.order.3=DuckDuckGo Lite
                    
20 # To make mapit buttons to disappear in the addressbook, specify empty string.  For example:
                    
21 # mail.addr_book.mapit_url.format=
                    
22@@ -23,14 +23,12 @@ browser.search.order.3=
                    
25 # Default map service:
                    
26-mail.addr_book.mapit_url.format=http://maps.google.com/maps?q=@A1%20@A2%20@CI%20@ST%20@ZI%20@CO
                    
27+mail.addr_book.mapit_url.format=http://nominatim.openstreetmap.org/search.php?polygon=1&q=@A1%2C@A2%2C@CI%2C@ST%2C@ZI%2C@CO
                    
29-mail.addr_book.mapit_url.1.name=Google Maps
                    
30-mail.addr_book.mapit_url.1.format=http://maps.google.com/maps?q=@A1%20@A2%20@CI%20@ST%20@ZI%20@CO
                    
31-mail.addr_book.mapit_url.2.name=OpenStreetMap
                    
31-mail.addr_book.mapit_url.2.name=OpenStreetMap
                    
32-mail.addr_book.mapit_url.2.format=http://nominatim.openstreetmap.org/search.php?polygon=1&q=@A1%2C@A2%2C@CI%2C@ST%2C@ZI%2C@CO
                    
33+mail.addr_book.mapit_url.1.name=OpenStreetMap
                    
                
MacAddress.pm git://github.com/duckduckgo/zeroclickinfo-goodies.git | Perl | 77 lines
                    
25        label => $query,
                    
26        url   => 'https://duckduckgo.com/?q=' . (join '+', @split) . '&ia=answer',
                    
27    };
                    
46
                    
47    # If the info is all capitals, then try to add in some best guesses for
                    
48    # capitalization to make it more readable.
                    
                
README.md https://gitlab.com/Webxity/searchblox-cloudconvert | Markdown | 112 lines
                    
6[![Coverage Status](https://coveralls.io/repos/olalonde/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/olalonde/follow-redirects?branch=master)
                    
7[![Code Climate](https://codeclimate.com/github/olalonde/follow-redirects/badges/gpa.svg)](https://codeclimate.com/github/olalonde/follow-redirects)
                    
8[![Dependency Status](https://david-dm.org/olalonde/follow-redirects.svg)](https://david-dm.org/olalonde/follow-redirects)
                    
12
                    
13`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
14 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
51  console.log(res.fetchedUrls);
                    
52  // [ 'http://duckduckgo.com/robots.txt',  'http://bitly.com/UHfDGO' ]
                    
53});
                    
80 module when running in the browser. If you are experiencing problems, you may want to check out
                    
81 [browserify-http-2](https://www.npmjs.com/package/http-browserify-2). It is more actively maintained and
                    
82 attempts to address a few of the shortcomings of `browserify-http`. In that case, your browserify config should
                    
93
                    
94Pull Requests are always welcome. Please [file an issue](https://github.com/olalonde/follow-redirects/issues)
                    
95 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
parse.py git://github.com/duckduckgo/zeroclickinfo-fathead.git | Python | 186 lines
                    
11__MODULE__ = "apple_discussions"
                    
12__AUTHOR__ = "DuckDuckGo [https://duckduckgo.com]"
                    
13__SOURCE__ = "https://discussions.apple.com/"
                    
79    temp_title = title.strip().replace("Q: ", "")
                    
80    parsed_doc["title"] = temp_title[0].capitalize() + temp_title[1:] # Capitalizes first word
                    
81    print("Parsing", parsed_doc["title"])
                    
90
                    
91    # Get's the most 'Recommended Answer'
                    
92    if soup.find("div", {"class": "recommended-answers"}):
                    
104
                    
105        posted = soup.find("div", {"class", "recommended-answers"}).find("p", {"class": "meta-posted"}).text
                    
106        posted = posted.strip().replace("Posted on ", "")
                    
109
                    
110        content = soup.find("div", {"class", "recommended-answers"}).find("section").find("div", {"class": "jive-rendered-content"})
                    
111
                    
                
Goodreads.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 61 lines
                    
11# Goodreads API endpoint
                    
12my $api_key = '{{ENV{DDG_SPICE_GOODREADS_APIKEY}}}';
                    
13my $book_search_endpoint =
                    
13my $book_search_endpoint =
                    
14    uri_escape('https://www.goodreads.com/search/index.xml?key=')
                    
15  . $api_key
                    
18
                    
19spice to => 'https://duckduckgo.com/x.js?u=' . $book_search_endpoint;
                    
20spice wrap_jsonp_callback => 1;
                    
24    goodreads_book_details => {
                    
25        to => 'https://duckduckgo.com/x.js?u='
                    
26          . uri_escape("https://www.goodreads.com/book/show/") . '$1'
                    
33        proxy_cache_valid => '200 30d',
                    
34        to                => 'https://duckduckgo.com/m.js?q=$1'
                    
35    }
                    
                
navigation.html https://gitlab.com/janninematt/janninematt | HTML | 55 lines
                    
3  {% if FEED_FEEDBURNER %}
                    
4  <li><a href="http://feeds.feedburner.com/{{ FEED_FEEDBURNER }}" rel="subscribe-rss">RSS</a></li>
                    
5  {% else %}
                    
16{% if SEARCH_BOX %}
                    
17<form action="{{ SITESEARCH|default('https://www.google.com/search') }}" method="get">
                    
18  <fieldset role="search">
                    
18  <fieldset role="search">
                    
19    {% if 'duckduckgo.com' in SITESEARCH|lower %}
                    
20    <input type="hidden" name="sites" value="{{ SITEURL|replace('https://','')|replace('http://','') }}" />
                    
45      <li {% if cat == category %}class="active"{% endif %}>
                    
46        <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | capitalize }}</a>
                    
47      </li>
                    
                
index.html https://gitlab.com/whilefalse/whilefalse.net | HTML | 133 lines
                    
3<html xmlns="http://www.w3.org/1999/xhtml"
                    
4      xmlns:foaf="http://xmlns.com/foaf/0.1/"
                    
5      xmlns:dc="http://purl.org/dc/elements/1.1/" 
                    
22    <!-- CSS stuff -->
                    
23    <link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
                    
24    <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
                    
31
                    
32    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
                    
33    <script type="text/javascript" src="/js/jquery.jslatex.js"></script>
                    
87    <span class="dc:description">
                    
88      I was recently a victim of the [timthumb vulnerability](http://duckduckgo.com/?q=timthumb+vulnerability). At first I noticed some rogue PHP in all my index.php files, which I cleaned up. But it turned out they had already got in enough to re-hack in no time at all. This time it was my javascript files which all had some obstruficated code in them, causing every page load to make a request to some random site.
                    
89
                    
108  <div class="copyrights">
                    
109    All content licensed under <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons 3.0 Attribution</a> (unless otherwise stated). 
                    
110    <br/>Please reference <strong>Steven Anderson</strong> if you 
                    
                
Quixey.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 122 lines
                    
14source "Quixey";
                    
15code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Quixey.pm";
                    
16icon_url "/i/www.quixey.com.ico";
                    
18topics "everyday", "special_interest";
                    
19attribution github => ['https://github.com/duckduckgo', 'DuckDuckGo'],
                    
20            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
                    
53
                    
54spice to => 'https://api.quixey.com/1.0/search?partner_id=2073823582&partner_secret={{ENV{DDG_SPICE_QUIXEY_APIKEY}}}&q=$1&platform_ids=$2&max_cents=$3&custom_id=$4&limit=50&skip=0&format=json&callback={{callback}}';
                    
55
                    
99        # if platform restiction(s) detected
                    
100        # return query, specify proper ids for API
                    
101        if (defined $restriction) {
                    
                
Getartistid.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 37 lines
                    
14topics "entertainment", "everyday", "music";
                    
15# FIXME Point to the duckduckgo repository on pull.
                    
16code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Artists.pm";
                    
16code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Artists.pm";
                    
17attribution github => ["https://github.com/bradcater", "Brad Cater"],
                    
18            twitter => ["https://twitter.com/bradcater", "Brad Cater"];
                    
21
                    
22spice to => 'http://api.songkick.com/api/3.0/search/artists.json?apikey={{ENV{DDG_SPICE_SONGKICK_APIKEY}}}&per_page=1&query=$1&jsoncallback={{callback}}';
                    
23
                    
24handle remainder => sub {
                    
25    # If the query isn't blank, then use it for the API query.
                    
26    if (length($_) > 0) {
                    
                
search.py https://gitlab.com/garheade/garbot.git | Python | 223 lines
                    
17        query = query.encode('utf-8')
                    
18    uri = 'http://ajax.googleapis.com/ajax/services/search/web'
                    
19    args = '?v=1.0&safe=off&q=' + web.quote(query)
                    
101    willie.say(reply)
                    
102gcs.commands = ['gcs', 'comp']
                    
103gcs.example = '.gcs foo bar'
                    
139    query = web.quote(query)
                    
140    uri = 'http://duckduckgo.com/html/?q=%s&kl=uk-en' % query
                    
141    bytes = web.get(uri)
                    
146    if '!bang' in query.lower():
                    
147        return 'https://duckduckgo.com/bang.html'
                    
148
                    
149    uri = web.quote(query)
                    
150    uri = 'http://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1'%query
                    
151    results = json.loads(web.get(uri))
                    
                
content.html https://gitlab.com/codingrights/radarlegislativo | HTML | 51 lines
                    
35	<div class="after-projetos text-center">
                    
36		<p>Feeds RSS das tramitações: <em><a href="https://duckduckgo.com/?q=o+que+são+feeds">(o que são feeds?)</a></em><br />
                    
37				<a href="feed/todos.xml">
                    
48		<hr />
                    
49		<p>Dados extraídos do <a href="http://www2.camara.leg.br/transparencia/dados-abertos/dados-abertos-legislativo">WebServices da Câmara</a>, do serviço de <a href="http://dadosabertos.senado.gov.br/">Dados Abertos</a> do Senado<br /> e através de raspagem / <em>scraping</em> de alguns dados indisponíveis nos serviços.</p>
                    
50	</div>
                    
                
Zipcode.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 153 lines
                    
14source "MapQuest";
                    
15code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Zipcode.pm";
                    
16category "geography";
                    
17topics "everyday", "geography", "travel";
                    
18attribution github => ["https://github.com/almanackist", "Almanackist"],
                    
19            twitter => ["https://twitter.com/cajoyce", "Almanackist"];
                    
26spice from => '([A-Z0-9\-]+)(?:/([A-Z]+)?)?';
                    
27spice to => '"http://where.yahooapis.com/v1/places{{dollar}}and(.q($1,$2),.type(11));count=0?appid={{ENV{DDG_SPICE_ZIPCODE_APIKEY}}}&format=json&callback={{callback}}"';
                    
28
                    
29# Definitions
                    
30my %countries = ("afghanistan" => "af", "albania" => "al", "algeria" => "dz", "american samoa" => "as", "andorra" => "ad", "angola" => "ao", "anguilla" => "ai", "antarctica" => "aq", "antigua & barbuda" => "ag", "antigua and barbuda" => "ag", "antigua barbuda" => "ag", "antigua" => "ag", "argentina" => "ar", "armenia" => "am", "aruba" => "aw", "australia" => "au", "austria" => "at", "azerbaijan" => "az", "bahama" => "bs", "bahamas" => "bs", "bahrain" => "bh", "bangladesh" => "bd", "barbados" => "bb", "belarus" => "by", "belgium" => "be", "belize" => "bz", "benin" => "bj", "bermuda" => "bm", "bhutan" => "bt", "bolivia" => "bo", "bosnia and herzegovina" => "ba", "bosnia herzegovina" => "ba", "bosnia" => "ba", "botswana" => "bw", "bouvet island" => "bv", "brazil" => "br", "british indian ocean territory" => "io", "british virgin islands" => "vg", "brunei darussalam" => "bn", "brunei" => "bn", "bulgaria" => "bg", "burkina faso" => "bf", "burma" => "bu", "burundi" => "bi", "cambodia" => "kh", "cameroon" => "cm", "canada" => "ca", "cape verde" => "cv", "cayman islands" => "ky", "central african republic" => "cf", "chad" => "td", "chile" => "cl", "china" => "cn", "christmas island" => "cx", "cocos islands" => "cc", "colombia" => "co", "comoros" => "km", "congo" => "cg", "cook islands" => "ck", "costa rica" => "cr", "cote d'ivoire" => "ci", "cote divoire" => "ci", "croatia" => "hr", "cuba" => "cu", "curacao" => "cw", "curaรงao" => "cw", "cyprus" => "cy", "czech republic" => "cz", "czechoslovakia" => "cs", "democratic republic of congo" => "cg", "democratic yemen" => "yd", "denmark" => "dk", "djibouti" => "dj", "dominica" => "dm", "dominican republic" => "do", "east timor" => "tp", "ecuador" => "ec", "egypt" => "eg", "el salvador" => "sv", "equatorial guinea" => "gq", "eritrea" => "er", "estonia" => "ee", "ethiopia" => "et", "falkland islands" => "fk", "faroe islands" => "fo", "fiji" => "fj", "finland" => "fi", "france metropolitan" => "fx", "france" => "fr", "french guiana" => "gf", "french polynesia" => "pf", "french southern and antarctic territories" => "tf", "gabon" => "ga", "gambia" => "gm", "georgia" => "ge", "germany" => "de", "ghana" => "gh", "gibraltar" => "gi", "great britain" => "gb", "greece" => "gr", "greenland" => "gl", "grenada" => "gd", "guadeloupe" => "gp", "guam" => "gu", "guatemala" => "gt", "guinea bissau" => "gw", "guinea" => "gn", "guinea-bissau" => "gw", "guyana" => "gy", "haiti" => "ht", "heard & mcdonald islands" => "hm", "heard and mcdonald islands" => "hm", "heard mcdonald islands" => "hm", "honduras" => "hn", "hong kong" => "hk", "hungary" => "hu", "iceland" => "is", "india" => "in", "indonesia" => "id", "iran" => "ir", "iraq" => "iq", "ireland" => "ie", "israel" => "il", "italy" => "it", "jamaica" => "jm", "japan" => "jp", "jordan" => "jo", "kazakhstan" => "kz", "kenya" => "ke", "kiribati" => "ki", "korea" => "kp", "korea" => "kr", "kuwait" => "kw", "kyrgyzstan" => "kg", "laos" =>"la", "latvia" => "lv", "lebanon" => "lb", "lesotho" => "ls", "liberia" => "lr", "libya" => "ly", "libyan arab jamahiriya" => "ly", "liechtenstein" => "li", "lithuania" => "lt", "luxembourg" => "lu", "macedonia" => "mk", "macau" => "mo", "madagascar" => "mg", "malawi" => "mw", "malaysia" => "my", "maldives" => "mv", "mali" => "ml", "malta" => "mt", "marshall islands" => "mh", "martinique" => "mq", "mauritania" => "mr", "mauritius" => "mu", "mayotte" => "yt", "mexico" => "mx", "micronesia" => "fm", "moldova" => "md", "monaco" => "mc", "mongolia" => "mn", "monserrat" => "ms", "morocco" => "ma", "mozambique" => "mz", "myanmar" => "mm", "nambia" => "na", "nauru" => "nr", "nepal" => "np", "netherlands antilles" => "an", "netherlands" => "nl", "neutral zone" => "nt", "new caledonia" => "nc", "new zealand" => "nz", "newzealand" => "nz", "nicaragua" => "ni", "niger" => "ne", "nigeria" => "ng", "niue" => "nu", "norfolk island" => "nf", "northern mariana islands" => "mp", "norway" => "no", "oman" => "om", "pakistan" => "pk", "palau" => "pw", "panama" => "pa", "papua new guinea" => "pg", "paraguay" => "py", "peru" => "pe", "philippines" => "ph", "pitcairn" => "pn", "poland" => "pl", "portugal" => "pt", "puerto rico" => "pr", "qatar" => "qa", "reunion" => "re", "romania" => "ro", "russia" => "ru", "russian federation" => "ru", "rwanda" => "rw", "saint helena" => "sh", "saint kitts and nevis" => "kn", "saint kitts nevis" => "kn", "saint kitts" => "kn", "saint lucia" => "lc", "saint pierre miquelon" => "pm", "saint vincent grenadines" => "vc", "saint vincent" => "vc", "samoa" => "ws", "san marino" => "sm", "sao tome & principe" => "st", "sao tome and principe" => "st", "sao tome principe" => "st", "saudi arabia" => "sa", "senegal" => "sn", "seychelles" => "sc", "sierra leone" => "sl", "singapore" => "sg", "slovakia" => "sk", "slovenia" => "si", "solomon islands" => "sb", "somalia" => "so", "south africa" => "za", "south georgia and the south sandwich islands" => "gs", "south georgia" => "gs", "south sandwich islands" => "gs", "spain" => "es", "sri lanka" => "lk", "srilanka" => "lk", "st helena" => "sh", "st kitts and nevis" => "kn", "st kitts nevis" => "kn", "st kitts" => "kn", "st pierre & miquelon" => "pm", "st pierre and miquelon" => "pm", "st pierre miquelon" => "pm", "st vincent & the grenadines" => "vc", "st vincent and the grenadines" => "vc", "st vincent grenadines" => "vc", "st vincent" => "vc", "sudan" => "sd", "suriname" => "sr", "svalbard & jan mayen islands" => "sj", "svalbard and jan mayen islands" => "sj", "svalbard jan mayen islands" => "sj", "swaziland" => "sz", "sweden" => "se", "switzerland" => "ch", "syria" => "sy", "syrian arab republic" => "sy", "taiwan province of china" => "tw", "taiwan" => "tw", "tajikistan" => "tj", "tanzania" => "tz", "thailand" => "th", "togo" => "tg", "tokelau" => "tk", "tonga" => "to", "trinidad & tobago" => "tt", "trinidad and tobago" => "tt", "trinidad tobago" => "tt", "tunisia" => "tn", "turkey" => "tr", "turkmenistan" => "tm", "turks & caicos islands" => "tc", "turks and caicos islands" => "tc", "turks caicos islands" => "tc", "turks caicos" => "tc", "tuvalu" => "tv", "uganda" => "ug", "ukraine" => "ua", "united arab emirates" => "ae", "united kingdom" => "gb", "united republic of tanzania" => "tz", "united states minor outlying islands" => "um", "united states of america" => "us", "united states virgin islands" => "vi", "united states" => "us", "uruguay" => "uy", "us minor outlying islands" => "um", "us of a" => "us", "us virgin islands" => "vi", "us" => "us", "usa" => "us", "uzbekistan" => "uz", "vanuatu" => "vu", "vatican city" => "va", "vatican" => "va", "venezuela" => "ve", "viet nam" => "vn", "vietnam" => "vn", "virgin islands" => "vg", "wallis & futuna islands" => "wf", "wallis and futuna islands" => "wf", "wallis futuna islands" => "wf", "western sahara" => "eh", "yemen" => "ye", "yugoslavia" => "yu", "zaire" => "zr", "zambia" => "zm", "zimbabwe" => "zw");
                    
31my @names = reverse keys %countries;
                    
                
index.html https://github.com/uthark/uthark.github.com.git | HTML | 188 lines
                    
23<meta property="og:url" content="https://uthark.github.io/2014/03/17/reading-list-2014-march-17/">
                    
24<meta property="og:description" content="General  Life is a game. This is your strategy guide Happy 25th Birthday, Web! or: Honoring the web by embracing It Is the Internet good or bad? Yes.  Josh Timonen — My Brain Has No Space For Your User Interface Inside DuckDuckGo, Google&rsquo;s Tiniest, Fiercest Competitor ⚙ Co.">
                    
25</head>
                    
55<li><a href=http://j.mp/1hnxOOt>Josh Timonen — My Brain Has No Space For Your User Interface</a></li>
                    
56<li><a href=http://j.mp/1hnxPlx>Inside DuckDuckGo, Google&rsquo;s Tiniest, Fiercest Competitor âš™ Co.Labs âš™ code + community</a></li>
                    
57<li><a href=http://j.mp/1cKFkFM>7 Data Presentation Tips: Think, Focus, Simplify, Calibrate, Visualize++</a></li>
                    
136<div id=disqus_thread></div>
                    
137<script type=application/javascript>var disqus_config=function(){};(function(){if(["localhost","127.0.0.1"].indexOf(window.location.hostname)!=-1){document.getElementById('disqus_thread').innerHTML='Disqus comments not available by default when the website is previewed locally.';return}var b=document,a=b.createElement('script');a.async=!0,a.src='//uthark.disqus.com/embed.js',a.setAttribute('data-timestamp',+new Date),(b.head||b.body).appendChild(a)})()</script>
                    
138<noscript>Please enable JavaScript to view the <a href=https://disqus.com/?ref_noscript>comments powered by Disqus.</a></noscript>
                    
175<li class=sidebar-nav-item> <a target=_blank href=https://bitbucket.org/uthark/ title=https://bitbucket.org/uthark/><i class="fa fa-bitbucket fa-2x"></i></a>
                    
176<li class=sidebar-nav-item><a target=_blank href=https://twitter.com/real_atamanenko title=https://twitter.com/real_atamanenko><i class="fa fa-twitter fa-2x"></i></a>
                    
177<li class=sidebar-nav-item><a target=_blank href=https://keybase.io/uthark/ title=https://keybase.io/uthark/><i class="fa fa-key fa-2x"></i></a>
                    
177<li class=sidebar-nav-item><a target=_blank href=https://keybase.io/uthark/ title=https://keybase.io/uthark/><i class="fa fa-key fa-2x"></i></a>
                    
178<li class=sidebar-nav-item><a target=_blank href=http://stackoverflow.com/users/216764/uthark title=http://stackoverflow.com/users/216764/uthark><i class="fa fa-stack-overflow fa-2x"></i></a>
                    
179</li>
                    
                
CONTRIBUTING.md git://github.com/ajanicij/goduckgo.git | Markdown | 82 lines
                    
17- Firstly, please make sure the bug is related to the **GoDuckGo** package. If this bug
                    
18is about the DuckDuckGo API, or the relevancy of the search results, please visit DuckDuckGo's
                    
19feedback page at <https://duckduckgo.com/feedback>.
                    
20
                    
21- Check the **GoDuckGo** [issues](https://github.com/ajanicij/goduckgo/issues) to see if
                    
22an issue already exists for the given bug or suggestion:
                    
35- Make sure your commits are of a reasonable size. They shouldn't be too big.
                    
36- Make sure your commit messages effectively explain what changes have been made.
                    
37
                    
56  ```shell
                    
57  git commit -am "My first commit!"
                    
58  ```
                    
59
                    
602. Get your commit history [how you like it](http://book.git-scm.com/4_interactive_rebasing.html).
                    
61
                    
                
YogaAsanas.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 33 lines
                    
7
                    
8spice to => 'http://longtail.duckduckgo.com:8000/solr/prod/select?version=2.2&defType=edismax&qt=dismax&q=$1+source_match:yoga_asanas_api&fq=&wt=json&start=0&rows=75&sort=p_count+asc&json.wrf={{callback}}';
                    
9
                    
                
region.properties https://gitlab.com/parabola/abslibre_abslibre | Properties File | 27 lines
                    
9browser.search.order.1=searx
                    
10browser.search.order.2=DuckDuckGo HTML
                    
11browser.search.order.3=DuckDuckGo Lite
                    
12
                    
13# To make mapit buttons to disappear in the addressbook, specify empty string.  For example:
                    
14# mail.addr_book.mapit_url.format=
                    
14# mail.addr_book.mapit_url.format=
                    
15# The format for "mail.addr_book.mapit_url.format" is:
                    
16# @A1 == address, part 1
                    
21# @CO == country
                    
22mail.addr_book.mapit_url.format=
                    
23mailnews.messageid_browser.url=
                    
25# Recognize non-standard versions of "Re:" in subjects from localized versions of MS Outlook et al.
                    
26# Specify a comma-separated list without spaces. For example: mailnews.localizedRe=AW,SV
                    
27mailnews.localizedRe=
                    
                
spice_overview.md https://gitlab.com/Guy1394/duckduckgo-documentation | Markdown | 64 lines
                    
4
                    
5Spice Instant Answers are triggered by a backend Perl component that then calls the JSON API of an upstream service. The API response is wrapped in a JavaScript function call. You, the Instant Answer author, define this callback function and handle the API's response on the client side, generating the display from the data returned by the API.
                    
6
                    
12
                    
13- APIs called by Spice Instant Answers **must use the JSON or JSONP formats**. We do not support the use of XML (it's coming soon though!), HTML, or plain text responses.
                    
14- APIs should respond to requests in **less than one second** (< 1s).
                    
26
                    
27If you're not sure about whether the API you'd like to use fits these criteria, we're happy to help figure it out. Email us over at [open@duckduckgo.com](mailto:open@duckduckgo.com).
                    
28
                    
30
                    
31The Spice frontend is the code that is triggered by the Perl backend for your spice Instant Answer. It mainly consists of a function (the Spice "callback" function) that takes a JSON formatted, API response as its input and uses the data to display a Spice result at the top of the DuckDuckGo search results page.
                    
32
                    
63
                    
64Email us at [open@duckduckgo.com](mailto:open@duckduckgo.com) with what idea you're working on and how you're thinking of going about it.
                    
65
                    
                
http.test.js https://bitbucket.org/zurimokato/pqr_app.git | JavaScript | 334 lines
                    
8beforeEach(() => {
                    
9    api = nock('https://api.jdxcode.com');
                    
10});
                    
187    test('follows redirect', async () => {
                    
188        api.get('/foo1').reply(302, null, { Location: 'https://api.jdxcode.com/foo2' });
                    
189        api.get('/foo2').reply(302, null, { Location: 'https://api.jdxcode.com/foo3' });
                    
203        api.get('/foo10').reply(302, null, { Location: 'https://api.jdxcode.com/foo11' });
                    
204        api.get('/foo11').reply(302, null, { Location: 'https://api.jdxcode.com/foo12' });
                    
205        expect.assertions(1);
                    
225    test('faithfully passes custom-encoded content-types', async () => {
                    
226        let apiEncoded = nock('https://api.jdxcode.com', {
                    
227            reqheaders: {
                    
326    test('streams a response', async (done) => {
                    
327        api = nock('http://api.jdxcode.com');
                    
328        api.get('/').reply(200, { message: 'ok' });
                    
                
isync.rb https://gitlab.com/0072016/homebrew-core | Ruby | 34 lines
                    
8    cellar :any
                    
9    sha256 "b236f25f8fb6f2285fb6775deba1e61b89df904fc2fc933f2546bb69d0bb9ec6" => :el_capitan
                    
10    sha256 "a4406974110a2f4ea3aaa81f0232c00f8aa9b572fab8709f1e16c7dc2d6ab6f6" => :yosemite
                    
31  test do
                    
32    system bin/"get-cert", "duckduckgo.com:443"
                    
33  end
                    
                
Snow.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 79 lines
                    
12source "Is it snowing yet?";
                    
13code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Snow.pm";
                    
14topics "everyday";
                    
15category "facts";
                    
16attribution web => [ 'https://www.duckduckgo.com', 'DuckDuckGo' ],
                    
17            github => [ 'https://github.com/duckduckgo', 'DuckDuckGo'],
                    
17            github => [ 'https://github.com/duckduckgo', 'DuckDuckGo'],
                    
18            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
                    
19
                    
19
                    
20spice to => 'http://isitsnowingyet.org/api/check/$1/key/{{ENV{DDG_SPICE_SNOW_APIKEY}}}';
                    
21
                    
                
Geteventid.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 42 lines
                    
8name "Songkick Events";
                    
9description "See upcoming concerts.";
                    
10source "Songkick";
                    
14topics "entertainment", "everyday", "music";
                    
15# FIXME Point to the duckduckgo repository on pull.
                    
16code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Events.pm";
                    
16code_url "https://github.com/bradcater/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Songkick/Events.pm";
                    
17attribution github => ["https://github.com/bradcater", "Brad Cater"],
                    
18    twitter => ["https://twitter.com/bradcater", "Brad Cater"];
                    
21
                    
22spice to => 'http://api.songkick.com/api/3.0/search/locations.json?apikey={{ENV{DDG_SPICE_SONGKICK_APIKEY}}}&per_page=1&query=$1&jsoncallback={{callback}}';
                    
23
                    
24handle remainder => sub {
                    
25    # If the query isn't blank, then use it for the API query.
                    
26    if (length($_) > 0) {
                    
                
CurrencyIn.pm https://gitlab.com/0072016/zeroclickinfo-goodies | Perl | 90 lines
                    
9# In some countries there are more than one currency.
                    
10# For that reason values in hash are stored as arrays. (loaded from .txt as comma separated values )
                    
11# Example: %countries( "Zimbabwe"=>["A","B"], "Slovakia"=>["A"], ... )"
                    
29name 'CurrencyIn';
                    
30code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CurrencyIn.pm';
                    
31category 'facts';
                    
32topics 'travel';
                    
33attribution github => ['http://github.com/Alchymista', 'Alchymista'];
                    
34
                    
37# Countries are lowercased but input from user, too ... so those always match...
                    
38# ...country is capitalized on output...
                    
39
                    
67            my $output_country = $country;                      # Pass country name to the output_country
                    
68            $output_country =~ s/\b(\w)/\U$1/g;                 # so it can by capitalized
                    
69
                    
                
InTheaters.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 109 lines
                    
10name "InTheaters";
                    
11code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/InTheaters.pm";
                    
12icon_url "/i/www.rottentomatoes.com.ico";
                    
14category "entertainment";
                    
15attribution github => ['https://github.com/jagtalon','jagtalon'],
                    
16            twitter => ['http://twitter.com/juantalon','jagtalon'];
                    
20spice from => '(.*?)/(.*)';
                    
21spice to => 'http://api.rottentomatoes.com/api/public/v1.0/lists/movies/$1.json?country=$2&apikey={{ENV{DDG_SPICE_ROTTEN_APIKEY}}}&callback={{callback}}&page_limit=30&limit=30';
                    
22
                    
                
board_game_geek_search.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 152 lines
                    
3
                    
4    env.ddg_spice_board_game_geek_search = function(api_result){
                    
5
                    
6        // Validate the response (customize for your Spice)
                    
7        if (!api_result || api_result.error || !api_result.items || !api_result.items.item) {
                    
8            return Spice.failed('board_game_geek');
                    
11
                    
12        var items = api_result.items.item,
                    
13
                    
50                itemType: "Board Games",
                    
51                searchTerm: decodeURIComponent(query),
                    
52                sourceName: "BoardGameGeek",
                    
112     *
                    
113     * They'll be proxied via https://images.duckduckgo.com anyway so it's not a problem
                    
114     */
                    
                
duckduck_test.go git://github.com/ajanicij/goduckgo.git | Go | 66 lines
                    
13	query := "New York City"
                    
14	expectedUrl := "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
                    
15	expectedBody := `{
                    
51	query := "!gi New York City"
                    
52	expectedUrl := "https://api.duckduckgo.com/?q=%21gi+New+York+City&format=json&pretty=1&no_redirect=1"
                    
53
                    
59	query = "New York City"
                    
60	expectedUrl = "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
                    
61	url = EncodeUrl(query)
                    
                
duckduckgo_definitions.py https://gitlab.com/lanodan/searx.git | Python | 149 lines
                    
6
                    
7url = 'https://api.duckduckgo.com/'\
                    
8    + '?{query}&format=json&pretty=0&no_redirect=1&d=1'
                    
117    # TODO artist / playwright : ??
                    
118    # TODO compagny : ??
                    
119    # TODO software / os : ??
                    
                
index2ddg.py git://github.com/duckduckgo/zeroclickinfo-fathead.git | Python | 563 lines
                    
2'''
                    
3    Copyright (C) 2013  Povilas Kanapickas <povilas@radix.lt>
                    
4
                    
128
                    
129class Index2DuckDuckGoList(IndexTransform):
                    
130
                    
132        self.ident_map = ident_map
                    
133        super(Index2DuckDuckGoList, self).__init__(ignore_typedefs=True)
                    
134
                    
177
                    
178# returns the version number common to all declarations. Returns none if two
                    
179# declarations have different version numbers or if no version number is
                    
201        # limit the number of code snippets to be included so that total number
                    
202        # of lines is less than max_code_lines. The limit becomes active only
                    
203        # for the second and subsequent snippets.
                    
                
do-servers-breath.html https://bitbucket.org/nithinsanjey/nithinsanjey.bitbucket.io.git | HTML | 84 lines
                    
4  <meta charset="utf-8">
                    
5  <meta http-equiv="X-UA-Compatible" content="IE=edge">
                    
6  <meta name="viewport" content="width=device-width, initial-scale=1">
                    
8  <meta name="description" content="Well, its an old fact that a typical google search emits 7g of carbon-dioxide. Of course, machine learning is computationally expensive :P. Personally, I hat...">
                    
9  <link href='https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,900,400italic' rel='stylesheet' type='text/css'>
                    
10  <link rel="stylesheet" href="/css/main.css">
                    
41  <div class="c-article__main">
                    
42    <p>Well, its an old fact that a typical google search emits 7g of carbon-dioxide. Of course, machine learning is computationally expensive :P. Personally, I hate to use google reference here and I wish everyone uses <a href="https://duckduckgo.com">duckduckgo</a>.</p>
                    
43
                    
45
                    
46<p>This is true for our personal devices as well. Running applications consume power - depending on the CPU usage. Just like one got more electricity bill for running bittorrent as it <a href="https://torrentfreak.com/utorrent-quietly-installs-riskware-bitcoin-miner-users-report-150306/">quietly installed a cryptocurrency miner</a> with an ‘update’. This is where <a href="https://www.fsf.org/about/what-is-free-software">free software’s</a> philosophy comes in.</p>
                    
47
                    
75  <!-- <p>&#9993; nithinsanjey@tutanota.com</p> -->
                    
76  <p>&#9993; nithinsanjey@tutanota.com<span class="u-separate"></span><a href="https://twitter.com/nithinsanjey">Twitter</a></p>
                    
77</footer>
                    
                
TitleCase.pm https://gitlab.com/0072016/zeroclickinfo-goodies | Perl | 45 lines
                    
5
                    
6triggers startend => 'titlecase', 'ucfirst', 'title case', 'capitalize';
                    
7
                    
10name 'Title Case';
                    
11code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/TitleCase.pm';
                    
12category 'transformations';
                    
14
                    
15attribution github => ['https://github.com/moollaza', 'moollaza'],
                    
16            github => ['https://github.com/maxluzuriaga', 'Max Luzuriaga'];
                    
20
                    
21# http://blog.apastyle.org/apastyle/2012/03/title-case-and-sentence-case-capitalization-in-apa-style.html
                    
22my @exceptions = ("a", "an", "and", "the", "by", "but", "for", "or", "nor", "yet", "so", "as", "at", "in", "of", "on", "per", "to");
                    
31        if ($_ == 0) {
                    
32            ucfirst $word # Capitalize first word
                    
33        } else {
                    
                
travis_status.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 57 lines
                    
2    "use strict";
                    
3    env.ddg_spice_travis_status = function(api_result) {
                    
4        if (!api_result) {
                    
8        var relevantDetails = {
                    
9          status: api_result.status.indicator,
                    
10          description: api_result.status.description,
                    
13
                    
14        for(var i=0,max=api_result.incidents.length; i<max; i++) {
                    
15          var incident = api_result.incidents[i];
                    
27            meta: {
                    
28                sourceName: api_result.page.name,
                    
29                sourceUrl: api_result.page.url,
                    
29                sourceUrl: api_result.page.url,
                    
30                sourceIconUrl: "https://icons.duckduckgo.com/ip2/docs.travis-ci.com.ico"
                    
31            },
                    
                
duckduckgo.py git://github.com/mikejs/python-duckduckgo.git | Python | 164 lines
                    
8
                    
9def query(query, useragent='python-duckduckgo 0.1'):
                    
10    """
                    
23    params = urllib.urlencode({'q': query, 'o': 'x'})
                    
24    url = 'http://duckduckgo.com/?' + params
                    
25
                    
40
                    
41        self.api_version = xml.attrib.get('version', None)
                    
42
                    
122
                    
123        webbrowser.open("http://duckduckgo.com/?%s" % urllib.urlencode(
                    
124            dict(q=q)), new=2)
                    
                
sample-iframe.html https://bitbucket.org/mad3linux/bigbox.git | HTML | 133 lines
                    
71		<br>
                    
72		The <kbd>Toggle tree</kbd> button in the embedded welcome page also gives
                    
73		an example on how to access a tree that exists outside the own frame.
                    
90				<ul>
                    
91					<li><a href="//duckduckgo.com" target="contentFrame">DuckDuckGo</a>
                    
92					<li><a href="//duckduckgo.com" target="_self">DuckDuckGo (target='_self')</a>
                    
92					<li><a href="//duckduckgo.com" target="_self">DuckDuckGo (target='_self')</a>
                    
93					<li><a href="http://duckduckgo.com" target="_top" title="This link replaces the current page">DuckDuckGo (target='_top')</a>
                    
94					<li><a href="//www.bing.com" target="contentFrame">Bing</a>
                    
94					<li><a href="//www.bing.com" target="contentFrame">Bing</a>
                    
95					<li><a href="//www.wolframalpha.com/" target="contentFrame">WolframAlpha</a>
                    
96				</ul>
                    
100					<li><a href="//ui.jquery.com/" target="contentFrame">jQuery UI</a>
                    
101					<li><a href="//api.jquery.com/" target="contentFrame">API browser</a>
                    
102					<li><a href="//wwwendt.de/tech/fancytree/doc/jsdoc/index.html" target="contentFrame">Fancytree</a>
                    
                
TeamInfo.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 41 lines
                    
2
                    
3# ABSTRACT: Get info on teams in the FIRST Robotics Competition
                    
4
                    
11
                    
12spice to => 'https://www.thebluealliance.com/api/v2/team/frc$1?X-TBA-App-Id=duckduckgo:search-engine:1';
                    
13
                    
13
                    
14# Obtain the years a team has competed
                    
15spice alt_to => {
                    
15spice alt_to => {
                    
16    years_competed => {
                    
17        is_cached => 1,
                    
18        proxy_cache_valid => "200 1d",
                    
19        to => 'https://www.thebluealliance.com/api/v2/team/frc$1/years_participated?X-TBA-App-Id=duckduckgo:search-engine:1'
                    
20    }
                    
                
Search.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 32 lines
                    
1package DDG::Spice::BoardGameGeek::Search;
                    
2# ABSTRACT: Get information on a board game from the BoardGameGeek API
                    
3
                    
11# Need to escape string passed to &u= param, except $1
                    
12my $search_url = uri_esc("http://www.boardgamegeek.com/xmlapi2/search?type=boardgame&query=");
                    
13my $detail_url = uri_esc("http://www.boardgamegeek.com/xmlapi2/thing?stats=1&id=");
                    
14
                    
15spice to => 'https://duckduckgo.com/x.js?u=' . $search_url . '$1';
                    
16
                    
18    get_details => {
                    
19        to => 'https://duckduckgo.com/x.js?u=' . $detail_url . '$1',
                    
20        is_cached => 1,
                    
                
duckduckgo.cpp git://pkgs.fedoraproject.org/kdeplasma-addons | C++ | 170 lines
                    
28
                    
29DuckDuckGo::DuckDuckGo(QObject *parent, const QVariantList& args)
                    
30    : Plasma::AbstractRunner(parent, args)
                    
35
                    
36    addSyntax(Plasma::RunnerSyntax(QLatin1String( "duckduckgo :q:" ), i18n("Lists the search entries matching the query, using DuckDuckGo search")));
                    
37    addSyntax(Plasma::RunnerSyntax(QLatin1String( "wolfram :q:" ), i18n("Searches using Wolfram Alpha, powered by DuckDuckGo")));
                    
43
                    
44    KUrl url = KUrl("http://api.duckduckgo.com/?q=futurama+characters&format=json&pretty=1");
                    
45       // "http://api.duckduckgo.com/?q=define+ostensibly&format=json&pretty=1");
                    
51
                    
52DuckDuckGo::~DuckDuckGo()
                    
53{
                    
106
                    
107void DuckDuckGo::startDuckDuckGoJob(Plasma::RunnerContext *context)
                    
108{
                    
                
BitcoinAddress.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 39 lines
                    
1package DDG::Spice::BitcoinAddress;
                    
2# ABSTRACT: Displays information about a bitcoin block using the biteasy.com API.
                    
3
                    
12name "Bitcoin Address Info";
                    
13source "https://api.biteasy.com";
                    
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinAddress.pm";
                    
18
                    
19attribution github => ['https://github.com/biteasy','biteasy.com'],
                    
20            email => ['support@biteasy.com','biteasy.com'],
                    
21            twitter => ["biteasy", 'biteasy.com'],
                    
22            web => ['https://biteasy.com','biteasy.com'];
                    
23
                    
26
                    
27spice to => 'https://api.biteasy.com/blockchain/v1/addresses/$1?api_key={{ENV{DDG_SPICE_BITEASY_APIKEY}}}';
                    
28
                    
                
index.html https://github.com/sbates/Bratty-Redhead.git | HTML | 276 lines
                    
28  <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
                    
29<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
30<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
49  
                    
50<form action="http://www.duckduckgo.com/" method="get">
                    
51  <fieldset role="search">
                    
93<div class="entry-content"><p>I&rsquo;m a professional services consultant for a truly enormous  corporation; for two more weeks.&nbsp; I turned in my two week notice today.&nbsp;  I think I&rsquo;m all done working for big companies.&nbsp; I spent 8 years at a  major retail chain doing web architecture, middleware and ops and the  last 5 years consulting for the hosting, management and monitoring  portion of a megacorp.&nbsp;</p>
                    
94<p>When I took this job, it was with a group that had been a much  smaller, recently acquired company.&nbsp; The feel was still pretty casual,  annual reviews were barely a formality, attitudes were laid back and  friendly and we rarely had to interact externally to our area. We had  separate time tracking, VPN and client systems access. &nbsp;I was told that  it still had a small-company feel and they were right mostly.&nbsp; I used a  separate VPN for email, travel booking and expense reporting.&nbsp; I was  sheltered from the corporation.&nbsp; All the engineers were.</p>
                    
95<p>This isn&rsquo;t a rant about why corporations suck.&nbsp; They&rsquo;ve got a lot  going for them.&nbsp; This one kept me in a 6 figure salary, great benefits  and a 6% 401k match. I got paid even when I was benched, although that  wasn&rsquo;t often.&nbsp; If you&rsquo;re traditionally ambitious(re: mgmt chain), I hear  they&rsquo;re great for that too.&nbsp; If you&rsquo;re a slacker, you get a pass at a  big company.&nbsp; It&rsquo;s hard to be noticed.</p>
                    
96<p>Yeah.&nbsp; It&rsquo;s hard to be noticed.&nbsp; We&rsquo;ve been through several re-orgs  since I was hired.&nbsp; ProServ was moved out of management and monitoring.&nbsp;  The work started getting monotonous.&nbsp; Half of ProServ was re-orgd out  of our group.&nbsp; We kept getting moved around.&nbsp; All our dedicated PMs were  moved to a central PMO.&nbsp; The ProServ team was largely forgotten except  by a few folks who managed our existing client base.&nbsp; Senior management  probably forgot we existed.&nbsp;&nbsp; We haven&#8217;t had a team meeting in a year.  My manager&#8217;s manager thinks I&#8217;m a man.</p>
                    
97<p>About a year ago I realized I was bored. I realized that, if I had to  architect one more WebSphere install, I might scream.&nbsp; No interesting  work was coming in.&nbsp; Very little work at all was coming in, for that  matter.&nbsp; I never lacked for work myself, but half my team was benched.&nbsp; I  started thinking about quitting.&nbsp; Then a call came in.</p>
                    
98<p>A friend working at one of our current clients was starting a  continuous integration project.&nbsp; He used to work for the same megacorp  and we&rsquo;d been friends for years.&nbsp;&nbsp; The work was outside my immediate  realm of experience.&nbsp; Learn Ruby, learn a new configuration management  tool called Chef and start figuring out how to automate the existing  infrastructure at this client.&nbsp; I was skeptical.&nbsp; I&rsquo;m pretty smart but I  have a realistic assessment of my own abilities and I had no coding  experience beyond some bash and python scripting.</p>
                    
133  
                    
134  <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://brattyredhead.com/blog/2011/06/23/another-chapter-done/" data-via="sascha_d" data-counturl="http://brattyredhead.com/blog/2011/06/23/another-chapter-done/" >Tweet</a>
                    
135  
                    
                
BitcoinTransaction.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 39 lines
                    
1package DDG::Spice::BitcoinTransaction;
                    
2# ABSTRACT: Displays information about a bitcoin transaction using the biteasy.com API.
                    
3
                    
12name "Bitcoin Transaction Info";
                    
13source "https://api.biteasy.com";
                    
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinTransaction.pm";
                    
18
                    
19attribution github => ['https://github.com/biteasy','biteasy.com'],
                    
20            email => ['support@biteasy.com','biteasy.com'],
                    
21            twitter => ["biteasy", 'biteasy.com'],
                    
22            web => ['https://biteasy.com','biteasy.com'];
                    
23
                    
26
                    
27spice to => 'https://api.biteasy.com/blockchain/v1/transactions/$1?api_key={{ENV{DDG_SPICE_BITEASY_APIKEY}}}';
                    
28
                    
                
pull_request_template_spice.md git://github.com/duckduckgo/zeroclickinfo-spice.git | Markdown | 94 lines
                    
2
                    
3Using this template will help us better understand your Instant Answer and assist you when necessary.  Simply copy and paste the markdown below into the description of your GitHub pull request and complete as appropriate.
                    
4
                    
22
                    
23**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
                    
24
                    
34
                    
35**What are the terms of use for the API? Will DuckDuckGo need specific authorization (e.g. an API key)? Are there any costs associated with API usage?**
                    
36
                    
51[] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)
                    
52[] Tested cross-browser compatibility
                    
53
                    
                
test.py https://bitbucket.org/datatheorem/dt-api-client.git | Python | 220 lines
                    
170            multiple_output_print('Try to Build Xcode project duckduckgo App and extracting UI testing bundle...')
                    
171            helper = XCUITestBuilder(os.path.join(os.path.dirname(__file__), 'duckduckgo/DuckDuckGo.xcodeproj'))
                    
172            multiple_output_print('Extracting xctest bundle for Scheme : DuckDuckGo...')
                    
182        """
                    
183        with extract_zip_project('duckduckgo.zip', 'duckduckgo'):
                    
184            multiple_output_print('Try to Build Xcode project duckduckgo App and extracting UI testing bundle...')
                    
184            multiple_output_print('Try to Build Xcode project duckduckgo App and extracting UI testing bundle...')
                    
185            helper = XCUITestBuilder(os.path.join(os.path.dirname(__file__), 'duckduckgo/DuckDuckGo.xcodeproj'))
                    
186            with patch.object(subprocess, 'check_output', new=patched_subprocess):
                    
186            with patch.object(subprocess, 'check_output', new=patched_subprocess):
                    
187                file_to_upload, app_bundle_id, app_version = helper.build_xctest("DuckDuckGoUITests", "DuckDuckGo")
                    
188
                    
188
                    
189        multiple_output_print('Extracting xctest bundle for product DuckDuckGoUITests and  for Scheme : DuckDuckGo...')
                    
190        assert "DuckDuckGoUITests.xctest.zip" in file_to_upload
                    
                
responses.yml https://gitlab.com/phora/zeroclickinfo-goodies | YAML | 212 lines
                    
19  base_format: "DuckDuckGo's [API]"
                    
20  info_url: https://duckduckgo.com/api
                    
21app:
                    
105irc:
                    
106  html: "DuckDuckGo's official IRC channel is <a href='http://webchat.freenode.net/?channels=duckduckgo'>#duckduckgo</a> on <a href='http://freenode.net/'>irc.freenode.net</a>"
                    
107  text: "DuckDuckGo's official IRC channel is #duckduckgo on irc.freenode.net."
                    
129    - removal
                    
130  html: "To remove DuckDuckGo from your browser, take a look <a href='https://duck.co/help/desktop'>here</a>. Please <a href='https://duckduckgo.com/feedback'>let us know</a> why you are leaving!"
                    
131  text: 'To remove DuckDuckGo from your browser, take a look at https://duck.co/help/desktop. Please let us know why you are leaving at https://duckduckgo.com/feedback!'
                    
142  base_format: "Add a DuckDuckGo [search box] to your site!"
                    
143  info_url: https://duckduckgo.com/search_box
                    
144settings:
                    
195  html: Help <a href='https://duck.co/translate'>translate DuckDuckGo</a> or adjust your language in the <a href='https://duckduckgo.com/settings'>settings menu</a>.
                    
196  text: Help translate DuckDuckGo (https://duck.co/translate) or adjust your language in the settings menu (https://duckduckgo.com/settings).
                    
197twitter:
                    
                
BitcoinBlock.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 37 lines
                    
1package DDG::Spice::BitcoinBlock;
                    
2# ABSTRACT: Displays information about a bitcoin block using the biteasy.com API.
                    
3
                    
12name "Bitcoin Block Info";
                    
13source "https://api.biteasy.com";
                    
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBlock.pm";
                    
18
                    
19attribution github => ['https://github.com/biteasy','biteasy.com'],
                    
20            email => ['support@biteasy.com','biteasy.com'],
                    
21            twitter => ["biteasy", 'biteasy.com'],
                    
22            web => ['https://biteasy.com','biteasy.com'];
                    
23
                    
26
                    
27spice to => 'https://api.biteasy.com/blockchain/v1/blocks/$1?api_key={{ENV{DDG_SPICE_BITEASY_APIKEY}}}';
                    
28
                    
                
README.md https://bitbucket.org/slimdll/botphp.git | Markdown | 74 lines
                    
8
                    
9## Comandos
                    
10
                    
27- JS {COMANDO}
                    
28  + Busca o comando no site da [MDN](http://mdn/.io) e retorna a URL
                    
29  + Exemplo: js map
                    
33  + Exemplo: gme como se faz café?
                    
34  + Retorno: http://pt-br.lmgtfy.com/?q=como+se+faz+caf%C3%A9%3F
                    
35- {ARRAY}.map({CALLBACK})
                    
35- {ARRAY}.map({CALLBACK})
                    
36  + Executa o comando map
                    
37  + Exemplo: [1,2,3,4].map( num => num*2 )
                    
68- [JS]{COMANDO} // Busca em mdn.io/{COMANDO}
                    
69- Integração com a API Luis.ai com tradução automática
                    
70
                    
                
testapi.js https://bitbucket.org/bilboteam2018/borrador_backend01.git | JavaScript | 82 lines
                    
15
                    
16// Se comprueba con la llamada a esta http nos devuelve los resultados del test//
                    
17describe('First test',
                    
18 function(){
                    
19   it('Test tahat DuckDuckGo works',
                    
20      function(done){
                    
20      function(done){
                    
21        chai.request('http://www.duckduckgo.com')
                    
22            .get('/')
                    
27                      //console.log(res);//
                    
28                  res.should.have.status(200);//se guarda la respuesta como código 200 para saber que lo ha hecho bien//
                    
29                                                  //el codigo de rectorno ok es 200, se comprueba que ho hace bien y no hay falsos positivos//
                    
40
                    
41 describe('Test de API de usuarios TechU',
                    
42  function(){
                    
                
index.html https://github.com/sbates/Bratty-Redhead.git | HTML | 274 lines
                    
20  
                    
21  <link rel="canonical" href="http://brattyredhead.com/blog/2012/04/01/weekend-chef-and-puppet-projects">
                    
22  <link href="/favicon.png" rel="icon">
                    
28  <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
                    
29<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
30<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
49  
                    
50<form action="http://www.duckduckgo.com/" method="get">
                    
51  <fieldset role="search">
                    
95<p><br />Another call was from someone I do work for from time to time.&nbsp; Their projects source my &ldquo;Puppet for Chef&rdquo; series, if 2 blog posts can be called a series.&nbsp; In my head I have a 3rd one on templates but haven&rsquo;t gotten around to it yet. This 3wk run may source some if I&rsquo;m lucky. I agreed to do some ad hoc sysadmin work for these guys because they&rsquo;re in a swivet, getting ready for a PCI audit in 3 weeks.</p>
                    
96<p>The job: There are about 150 Centos 5 servers. Caveat: some of the servers on the list may be retired already.&nbsp; Examine all of the configuration files for ConfigServer Firewall, bring them under Puppet control. Individual node config sets are ok (ugh).&nbsp; All servers are running a puppet client.&nbsp; I don&rsquo;t know if it&rsquo;s the same client.&nbsp; The master was at 2.7.9 last I checked, I think.<p />I have a mini Chef project too for the weekend, but I think I&rsquo;ll save that for another blog post.&nbsp; I actually wrote post of this post on Saturday morning and am just finishing it up. I haven&rsquo;t actually started my Puppet stuff except to wonder if they have some command line tools and think I&rsquo;d better get to writing some tcp testers and comparison scripts if there isn&rsquo;t such a thing.</p>
                    
97<p><br />I actually spent a chunk of time working on my Chef thing which was an exercise in frustration.&nbsp; It&rsquo;s for a Windows Ohai plugin and the actual ruby work was a piece of cake. Testing has made me crazy though.&nbsp; Windows servers don&rsquo;t fire up as fast as Linux for one and they are a huge pain in the ass to interact with.&nbsp; On my todo list is an SSH server for Windows cookbook, unless my ultimate wish of hoping that all Windows servers DIAF happens prior to that.&nbsp; The ssh cookbook is half done, like so many things.</p>
                    
129  
                    
130  <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://brattyredhead.com/blog/2012/04/01/weekend-chef-and-puppet-projects/" data-via="sascha_d" data-counturl="http://brattyredhead.com/blog/2012/04/01/weekend-chef-and-puppet-projects/" >Tweet</a>
                    
131  
                    
                
README.rst https://gitlab.com/lanodan/searx.git | ReStructuredText | 158 lines
                    
35-  edit your
                    
36   `settings.yml <https://github.com/asciimoo/searx/blob/master/settings.yml>`__
                    
37   (set your ``secret_key``!)
                    
40For all the details, follow this `step by step
                    
41installation <https://github.com/asciimoo/searx/wiki/Installation>`__
                    
42
                    
55``versions.cfg`` to produce most stable build. Also remember, NO make
                    
56command should be run as root, not even ``make production``
                    
57
                    
89Runs tests. You can write tests
                    
90`here <https://github.com/asciimoo/searx/tree/master/searx/tests>`__ and
                    
91remember 'untested code is broken code'.
                    
156
                    
157.. |Flattr searx| image:: http://api.flattr.com/button/flattr-badge-large.png
                    
158   :target: https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software
                    
                
search.py https://github.com/kevincarrogan/phenny.git | Python | 152 lines
                    
16      web.urllib.URLopener.__init__(self, *args)
                    
17      self.addheader('Referer', 'https://github.com/sbp/phenny')
                    
18   def http_error_default(self, url, fp, errcode, errmsg, headers):
                    
22   """Search using AjaxSearch, and return its JSON."""
                    
23   uri = 'http://ajax.googleapis.com/ajax/services/search/web'
                    
24   args = '?v=1.0&safe=off&q=' + web.urllib.quote(query.encode('utf-8'))
                    
87   if not input.group(2):
                    
88      return phenny.reply("Nothing to compare.")
                    
89   queries = r_query.findall(input.group(2))
                    
103   phenny.say(reply)
                    
104gcs.commands = ['gcs', 'comp']
                    
105
                    
138   query = web.urllib.quote(query.encode('utf-8'))
                    
139   uri = 'http://duckduckgo.com/html/?q=%s&kl=uk-en' % query
                    
140   bytes = web.get(uri)
                    
                
lddg.py http://stuffpack.googlecode.com/svn/ | Python | 24 lines
                    
16	print "DuckDuckGoing for "+wordStr
                    
17	endUrl = urllib.urlopen('http://tinyurl.com/api-create.php?url=http://lmddgtfy.com/?q='+wordStr).read()
                    
18	print endUrl
                    
18	print endUrl
                    
19	xchat.command("PRIVMSG " +  xchat.get_info("channel") + " " + endUrl)
                    
20
                    
20
                    
21xchat.hook_command('ddg', letmeduckit, help="pick your search terms and type /ddg terms")
                    
22
                    
                
testapi.js https://bitbucket.org/leortizto/mk-pa-m1-e1-rest-restful.git | JavaScript | 62 lines
                    
13   it('Tests that DuckDuckGo works', function(done) {
                    
14     chai.request('http://www.duckduckgo.com')
                    
15       .get('/')
                    
28
                    
29describe('Test de API Usuarios',
                    
30 function() {
                    
30 function() {
                    
31   it('Prueba que la API de usuarios responde correctamente.',
                    
32     function(done) {
                    
33       chai.request('http://localhost:3000')
                    
34         .get('/apitechu/v1')
                    
35         .end(
                    
37             res.should.have.status(200);
                    
38             res.body.msg.should.be.eql("Bienvenido al API");
                    
39             done();
                    
                
IsItUp.t git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 53 lines
                    
10    [qw( DDG::Spice::IsItUp )],
                    
11    'is duckduckgo.com up' => test_spice(
                    
12        '/js/spice/is_it_up/duckduckgo.com',
                    
15    ),
                    
16    'is http://duckduckgo.com up?' => test_spice(
                    
17        '/js/spice/is_it_up/duckduckgo.com',
                    
20    ),
                    
21    'is http://duckduckgo.com online' => test_spice(
                    
22        '/js/spice/is_it_up/duckduckgo.com',
                    
25    ),
                    
26    'http://duckduckgo.com status???????????' => test_spice(
                    
27        '/js/spice/is_it_up/duckduckgo.com',
                    
30    ),
                    
31    'is http://duckduckgo.com down?' => test_spice(
                    
32        '/js/spice/is_it_up/duckduckgo.com',
                    
                
Mtg.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 28 lines
                    
12topics "entertainment", "gaming";
                    
13code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/mtg/lib/DDG/Spice/Mtg.pm";
                    
14attribution github => ["https://github.com/puskin94", "puskin"];
                    
16triggers start => 'mtg', 'magic card', 'magic cards', 'magic the gathering';
                    
17spice to => 'http://api.mtgdb.info/cards/$1';
                    
18spice wrap_jsonp_callback => 1;
                    
                
settings.yml https://gitlab.com/lanodan/searx.git | YAML | 274 lines
                    
74
                    
75# api-key required: http://www.faroo.com/hp/api/api.html#key
                    
76#  - name : faroo
                    
78#    shortcut : fa
                    
79#    api_key : 'apikey' # required!
                    
80
                    
98    shortcut : fl
                    
99# You can use the engine using the official stable API, but you need an API key
                    
100# See : https://www.flickr.com/services/apps/create/
                    
101#    engine : flickr
                    
102#    api_key: 'apikey' # required!
                    
103# Or you can use the html non-stable engine, activated by default
                    
103# Or you can use the html non-stable engine, activated by default
                    
104    engine : flickr_noapi
                    
105
                    
                
WGHA.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 35 lines
                    
11name "WGHA Events";
                    
12code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/WGHA.pm";
                    
13topics "entertainment", "special_interest";
                    
21
                    
22spice to => 'http://ddg.wasgehtheuteab.de/duckduckgo/events.json?q=$1&callback={{callback}}&api_key={{ENV{DDG_SPICE_WGHA_APIKEY}}}';
                    
23spice proxy_cache_valid => "200 60m";
                    
                
README.md https://bitbucket.org/alan_doyle/movie.git | Markdown | 135 lines
                    
7[![Coverage Status](https://coveralls.io/repos/olalonde/follow-redirects/badge.svg?branch=master)](https://coveralls.io/r/olalonde/follow-redirects?branch=master)
                    
8[![Code Climate](https://codeclimate.com/github/olalonde/follow-redirects/badges/gpa.svg)](https://codeclimate.com/github/olalonde/follow-redirects)
                    
9[![Dependency Status](https://david-dm.org/olalonde/follow-redirects.svg)](https://david-dm.org/olalonde/follow-redirects)
                    
13
                    
14`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
15 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
39  console.log(response.responseUrl);
                    
40  // 'http://duckduckgo.com/robots.txt'
                    
41});
                    
69
                    
70In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
                    
71the following per-request options are supported:
                    
116
                    
117Pull Requests are always welcome. Please [file an issue](https://github.com/olalonde/follow-redirects/issues)
                    
118 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
README.rst git://github.com/mikejs/python-duckduckgo.git | ReStructuredText | 48 lines
                    
1==================
                    
2python-duckduckgo
                    
3==================
                    
4
                    
5A Python library for querying the Duck Duck Go API.
                    
6
                    
8
                    
9Source: http://github.com/mikejs/python-duckduckgo
                    
10
                    
27    >>> r.results[0].url
                    
28    'http://duckduckgo.com/'
                    
29    >>> r.abstract.url
                    
39    >>> r.related[6].url
                    
40    'http://duckduckgo.com/Python_(programming_language)'
                    
41
                    
                
SimilarSites.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 33 lines
                    
5
                    
6primary_example_queries "similar sites to facebook.com", "similar to youtube.com";
                    
7secondary_example_queries "sites like twitter.com", "pages like github.com";
                    
10source "SimilarSites";
                    
11code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/SimilarWeb.pm";
                    
12icon_url "/i/www.similarsitesearch.com.ico";
                    
14topics "everyday", "special_interest";
                    
15attribution github => ['https://github.com/Adman', 'Adman'],
                    
16            twitter => ['http://twitter.com/adman_X', 'adman_X'];
                    
19
                    
20spice to => 'http://www.similarsitesearch.com/api/similar/$1';
                    
21
                    
                
11.html https://codeberg.org/nokoru/nokos_almanac.git | HTML | 119 lines
                    
23privacy and they "don't track you", but there's no point in criticize g00gle if you
                    
24recommend other spyware platforms. It's just replacing crap with crap.</p>
                    
25<blockquote>
                    
28<p>Well, that's actually true. google doesn't just track you on their site, but
                    
29they also track you on any site that uses googleapis/googlefonts/google analytics/reCaptcha or
                    
30any "free" or paid service provided by them, but fortunately there's a good
                    
57</blockquote>
                    
58<p>Apparently looks like they recommend Apple Maps because it's easier to use. Well, the reason cause
                    
59small projects like OpenStreetMap are small and "not so good" projects it's because people don't care about those
                    
65to remember that people should use their own HDDs/SSDs to store their data. Your files are
                    
66not safe in others' computers. Not even if you're using "end-to-end encryption". After all, who's generating
                    
67the encryption keys? If you want to use a "cloud" service, use it for non-secret files
                    
77app stores like Aptoide or F-Droid. If you really care about your privacy, use <a href="https://www.replicant.us/">Replicant</a> or
                    
78just don't use a mobile phone, but I don't really recommend that since communication is important.</p>
                    
79<blockquote>
                    
                
Getid.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 56 lines
                    
9name "Guidebox";
                    
10code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Guidebox/Getid.pm";
                    
11icon_url "/i/www.guidebox.com.ico";
                    
13category "entertainment";
                    
14attribution github => ['https://github.com/adman','Adman'],
                    
15            twitter => ['http://twitter.com/adman_X','Adman'];
                    
18
                    
19spice to => 'http://api-public.guidebox.com/v1.3/json/{{ENV{DDG_SPICE_GUIDEBOX_APIKEY}}}/search/title/$1';
                    
20
                    
                
BitcoinBalance.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 36 lines
                    
1package DDG::Spice::BitcoinBalance;
                    
2# ABSTRACT: Displays the balance of a Bitcoin address from the Chain.com API.
                    
3
                    
10source "http://chain.com";
                    
11code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBalance.pm";
                    
12topics "economy_and_finance";
                    
15
                    
16attribution github => ['https://github.com/chain-engineering','chain.com'],
                    
17            email => ['hello@chain.com','chain.com'],
                    
18            twitter => ["chain", 'chain.com'],
                    
19            web => ['https://chain.com','chain.com'];
                    
20
                    
23
                    
24spice to => 'https://api.chain.com/v1/bitcoin/addresses/$1?key={{ENV{DDG_SPICE_BITCOIN_APIKEY}}}';
                    
25# The Chain API requires an API key. Chain has granted the spice a free account with unlimited access. We can provide this to DuckDuckGo before release.
                    
                
settings.php git://github.com/sjparkinson/isitup.git | PHP | 169 lines
                    
14    // The default input value
                    
15    $setting["default"] = "duckduckgo.com";
                    
16
                    
31        "Mozilla/4.0 (compatible; ICS)",
                    
32        "Rackspace Monitoring/1.1 (https://monitoring.api.rackspacecloud.com)",
                    
33        "Python-urllib/1.17",
                    
42        "http://gang.yulewangzhan.cn/*",
                    
43        "http://hao.dangqian.com/hao/*",
                    
44        "http://tlapple.com/*",
                    
60        "http://www.bjnanmo.com/*",
                    
61        "http://www.craneceo.com/*",
                    
62        "http://www.dangqian.com/*",
                    
82        "http://www.90kis.com/*",
                    
83        "http://www.zyruide.com/*",
                    
84        "http://www.bmizg.com/*",
                    
                
RymButs.js https://github.com/rickdog/chewbone.git | JavaScript | 52 lines
                    
8var tit = encodeURIComponent($('.album_title').text().trim());
                    
9var name = encodeURIComponent($('span[itemProp=\'byArtist\']').text());
                    
10var whereAppend = $($('.album_title').siblings(0) [0]);
                    
19
                    
20addButton('Google', 'https://google.com?q="' + tit + '" "' + name + '"');
                    
21addButton('Google Blog', 'https://google.com?q="' + tit + '" "' + name + '"&tbm=blg');
                    
22addButton('Google Image', 'https://www.google.com/searchbyimage?image_url=' + (($('.coverart_img') && $('.coverart_img')[0]) ? $('.coverart_img')[0].src :  ""));
                    
23addButton('Inoreader', 'http://www.inoreader.com/search/"' + tit + '" AND "' + name + '"/public');
                    
24addButton('Spotify', 'https://play.spotify.com/search/' + tit + ' ' + name);
                    
24addButton('Spotify', 'https://play.spotify.com/search/' + tit + ' ' + name);
                    
25addButton('reviews', 'http://developer.echonest.com/api/v4/artist/reviews?format=json&api_key=FEQK8YEAC4WDXAWSP&results=100&name=' + name);
                    
26addButton('AllMusic', 'http://www.allmusic.com/search/all/"' + name + '" "' + tit + '"');
                    
29addButton('Ranker', 'http://www.ranker.com/app/search.htm?q=' + tit + ' ' + name);
                    
30addButton('DDGG', 'https://duckduckgo.com/?ia=audio&q="' + tit + '" "' + name + '"');
                    
31addButton('GenFile', 'http://www.generalfil.es/?qa="' + tit + '" "' + name + '"');
                    
                
config.h https://bitbucket.org/jasonwryan/workstation | C Header | 195 lines
                    
41#define             COMPLETION_TAG_OPEN     "<b>"
                    
42#define             COMPLETION_TAG_CLOSE    "</b>"
                    
43
                    
87static Searchengine searchengines[] = {
                    
88    { "d",         "http://duckduckgo.com/?q=%s" },
                    
89    { "g",         "http://www.google.com/search?hl=en&source=hp&ie=ISO-8859-l&q=%s" },
                    
91    { "w",         "https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special%%3ASearch&search=%s&go=Go" },
                    
92    { "b",         "http://www.google.com/search?q=site:bbs.archlinux.org+%s" },
                    
93    /* Hack to shorten urls */
                    
93    /* Hack to shorten urls */
                    
94    { "s",         "http://api.bit.ly/v3/shorten?login=jasonwryan&apikey=R_b71a9d75eecaed78de197596f35126d9&longUrl=%s&format=txt" },
                    
95};
                    
99/* command mapping */
                    
100Command commands[COMMANDSIZE] = {
                    
101    /* command,                                        	function,         argument */
                    
                
README.md https://gitlab.com/Lagi/cevo.git | Markdown | 77 lines
                    
22* We will be able to launch the game on Linux and MacOS natively.
                    
23* We will even be able lauch the game in a browser! This is possible because lazarus can compile to gtk, and gtk has the "broadway" engine. (It eats a lot of traffic, but works in most cases.)
                    
24
                    
34* the game is incredibly slow under Windows but fast under Linux. This is because of `BitBlt` usages, it should be easy to fix but needs to be done.
                    
35* the in-game manual cannot be browsed in Linux because it lacks proper "PVSB" custom component support (see the code).
                    
36* the more obvious errors got fixed, the more hard ones left.. The porting progress becomes harder.
                    
36* the more obvious errors got fixed, the more hard ones left.. The porting progress becomes harder.
                    
37* the game proved to be hard to port. A _lot_ of winapi was used originally. Even assebly! Even now the project has a lot of platform-specific code.
                    
38* compilation TODO-s are left, they look like "`lazarus todo`" or "`{$ifdef WINDOWS}`".
                    
64
                    
65Main git repo: [https://gitlab.com/vn971/cevo](https://gitlab.com/vn971/cevo)
                    
66
                    
66
                    
67Github mirror: [https://github.com/vn971/cevo](https://gitlab.com/vn971/cevo)
                    
68
                    
                
kubernetes-failure-stories.rst https://codeberg.org/hjacobs/srcco.de.git | ReStructuredText | 83 lines
                    
19Since we started with Kubernetes at Zalando in 2016, we collected many internal postmortems.
                    
20Docker bugs (`daemon unresponsive <https://github.com/moby/moby/issues/28889>`_, process stuck in pipe wait, ..) were a major pain point in the beginning, but Docker itself has become more mature and did not bite us recently.
                    
21The biggest chunk of problems can be attributed to the nature of distributed systems and "cascading failures", e.g. a Kubernetes API server outage should not affect running workloads, but `it did <https://github.com/zalando/skipper/issues/406>`_,
                    
31(as you can even see from the similarity in talk titles ;-)). I hope to see more people share their postmortems and give failure talks.
                    
32Monzo's transparency and `public postmortem <https://community.monzo.com/t/resolved-current-account-payments-may-fail-major-outage-27-10-2017/26296/95>`_ is a great service to the community and should be something we all strive towards.
                    
33
                    
36
                    
37On my quest to find more public Kubernetes failure stories, I discovered that it's either really hard to find them (or my web search skills are lacking) or that there are only very few published. Search terms I tried on `DuckDuckGo <https://duckduckgo.com/>`_ and Google:
                    
38
                    
42* `kubernetes failure <https://duckduckgo.com/?q=kubernetes+failure>`_
                    
43* `kubernetes crash <https://duckduckgo.com/?q=kubernetes+crash>`_
                    
44
                    
76* `Optimizing Kubernetes Resource Requests/Limits for Cost-Efficiency and Latency - Zalando - Highload++ 2018 <https://www.youtube.com/watch?v=eBChCFD9hfs>`_: why you should consider disabling CPU throttling (CFS quota) in your cluster(s)
                    
77* `Kubernetes the very hard way at Datadog <https://www.youtube.com/watch?v=2dsCwp_j0yQ>`_: good insights of common (DNS issues, OOM) and less common (e.g. Datadog uses containerd and IPVS) challenges
                    
78* `Inside Kubernetes Resource Management (QoS) – Mechanics and Lessons from the Field - Michael Gasch - KubeCon Europe 2018 <https://www.youtube.com/watch?v=8-apJyr2gi0>`_: fundamental information on how Kubernetes resources work
                    
                
slides.md https://gitlab.com/dfedde/aghi_ansible.git | Markdown | 283 lines
                    
37# Assumptions
                    
38* You have a reasonable grasp of the linux/unix command line
                    
39* pipe
                    
55* Linux CLI
                    
56* [DDG](https://duckduckgo.com/)
                    
57* [Ansible Documentation](http://docs.ansible.com/)
                    
60* This courseware is freely available
                    
61* [https://gitlab.com/cfedde/aghi_ansible](https://gitlab.com/cfedde/aghi_ansible)
                    
62
                    
95
                    
96# "Server Complex"
                    
97* administrative domain?
                    
98
                    
99# "Server Complex"
                    
100* kinda like a broadcast domain
                    
                
helper.js https://gitlab.com/jhta/.myconfig.git | JavaScript | 251 lines
                    
14const DUCKDUCKGO_API_URL = 
                    
15    "https://api.duckduckgo.com/?format=json&no_redirect=1"+
                    
16    "&skip_disambig=1&q=";
                    
51
                    
52const DuckDuckGoHelperMenuItem = new Lang.Class({
                    
53    Name: 'DuckDuckGoHelperMenuItem',
                    
167
                    
168const DuckDuckGoHelper = new Lang.Class({
                    
169    Name: 'DuckDuckGoHelper',
                    
219
                    
220        let url = DUCKDUCKGO_API_URL+encodeURIComponent(query);
                    
221        this._get_data_async(url, Lang.bind(this, function(result) {
                    
244        else {
                    
245            let menu_item = new DuckDuckGoHelperMenuItem(data);
                    
246
                    
                
GetEvents.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 30 lines
                    
7description "Upcoming events from GetEvents";
                    
8code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/GetEvents.pm";
                    
9category "entertainment";
                    
9category "entertainment";
                    
10topics "computing","entertainment","food_and_drink","music","science","special_interest","travel";
                    
11
                    
12triggers startend => 'events near me', 'nearby events';
                    
13spice to => 'https://api.getevents.co/ddg?lat=$1&lng=$2&timezone=$3' ;
                    
14
                    
                
CONTRIBUTING.md git://github.com/duckduckgo/zeroclickinfo-spice.git | Markdown | 48 lines
                    
14
                    
15DuckDuckHack is now in maintenance mode. We are only accepting pull requests for essential bug fixes. For more information see [duckduckhack.com](https://duckduckhack.com).
                    
16
                    
20
                    
21  - Updating the URL for a Spice Instant Answer when the API changes
                    
22  - Correcting a Perl or JavaScript logic error
                    
30## Need to report a bug?
                    
31If you find a bug or relevancy issue, the **best** way to report this is via the Feedback button on the DuckDuckGo.com search results page. These issues are compiled and reviewed daily.
                    
32
                    
33## Have a suggestion or idea?
                    
34The **best** way to report these is also via the Feedback button on the DuckDuckGo.com search results page.
                    
35
                    
35
                    
36You can also share your thoughts with our community on [Reddit](https://www.reddit.com/r/duckduckgo/).
                    
37
                    
                
pull_request_template_spice.md https://gitlab.com/phora/zeroclickinfo-spice | Markdown | 120 lines
                    
4
                    
51) Use the **raw** text at https://raw.githubusercontent.com/duckduckgo/zeroclickinfo-spice/master/pull_request_template_spice.md
                    
6
                    
36
                    
37**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
                    
38
                    
48
                    
49**What are the terms of use for the API? Will DuckDuckGo need specific authorization (e.g. an API key)? Are there any costs associated with API usage?**
                    
50
                    
65[] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)
                    
66[] Tested cross-browser compatibility
                    
67
                    
                
Readme.md https://bitbucket.org/nicomee/martingale.git | Markdown | 948 lines
                    
11
                    
12**We've implemented [many](https://github.com/segmentio/nightmare/issues/1388) of the security recommendations [outlined by Electron](https://github.com/electron/electron/blob/master/docs/tutorial/security.md) to try and keep you safe, but vulnerabilities may exist in Electron that may allow a malicious website to execute code on your company. Avoid visiting untrusted websites.**
                    
13
                    
15
                    
16[Daydream](https://github.com/segmentio/daydream) is a complementary chrome extension built by [@stevenmiller888](https://github.com/stevenmiller888) that generates Nightmare scripts for you while you browse.
                    
17
                    
75    nightmare
                    
76      .goto('https://duckduckgo.com')
                    
77      .type('#search_form_input_homepage', 'github nightmare')
                    
172The command line switches used by the Chrome browser that are also supported by Electron. Here's a list of supported Chrome command line switches:
                    
173https://github.com/atom/electron/blob/master/docs/api/chrome-command-line-switches.md
                    
174
                    
248
                    
249A string to determine the client certificate selected by electron. If this options is set, the [`select-client-certificate`](https://github.com/electron/electron/blob/master/docs/api/app.md#event-select-client-certificate) event will be set to loop through the certificateList and find the first certificate that matches `subjectName` on the electron [`Certificate Object`](https://electronjs.org/docs/api/structures/certificate).
                    
250
                    
                
History.md https://bitbucket.org/nicomee/martingale.git | Markdown | 602 lines
                    
4* BREAKING: properly serialize error values (#1391)
                    
5* added linting, formatting and a git pre-commit hook (#1386)
                    
6* Added ability to specify the client certificate selected by electron (#1339)
                    
9* Fix error on preload (#1247)
                    
10* Add mouseout action to complement mouseover (#1238)
                    
11* fix problems that are rejected when adding child actions with objects. (#1093)
                    
28* Updates speed information on the readme
                    
29* Swaps Yahoo example out for a faster DuckDuckGo example
                    
30* Fixes an issue where `nightmare` may be undefined in the browser at injection time
                    
30* Fixes an issue where `nightmare` may be undefined in the browser at injection time
                    
31* Changes screenshot rendering to use debugger API instead of forcing a DOM change
                    
32
                    
53* Removes dependency on `object-assign`
                    
54* Adds `.halt()` API to stop Nightmare execution immediately
                    
55* Fixes `blur` exception when elements are removed by keyboard events
                    
                
searchbuttons.js https://github.com/rickdog/chewbone.git | JavaScript | 133 lines
                    
48
                    
49  addButton('DDGG', 'https://duckduckgo.com/?ia=audio&q=' + quote(sel));
                    
50  addButton('mail.ru', 'http://go.mail.ru/search?q=' + quote(sel));
                    
54  addButton('Spotify', 'https://play.spotify.com/search/' + sel);
                    
55  addButton('reviews', 'http://developer.echonest.com/api/v4/artist/reviews?format=json&api_key=FEQK8YEAC4WDXAWSP&results=100&name=' + sel);
                    
56  addButton('AllMusic', 'http://www.allmusic.com/search/all/' + sel);
                    
64  addButton('GenSearch', 'http://www.general-search.net/download/' + sel);
                    
65  addButton('FBug', 'http://www.filesbug.com/search/' + sel);
                    
66  addButton('FDeck', 'http://filesdeck.com/search.php?q=' + sel);
                    
71
                    
72  addButton('sharedir', 'http://sharedir.com/index.php?s=' + sel);
                    
73  addButton('downloadstube', 'http://www.downloadstube.net/' + sel + '/DDLs.html');
                    
73  addButton('downloadstube', 'http://www.downloadstube.net/' + sel + '/DDLs.html');
                    
74  addButton('RSE', 'http://rapid-search-engine.com/index-s=' + sel + ".html");
                    
75
                    
                
LaunchLibrary.pm https://gitlab.com/phora/zeroclickinfo-spice | Perl | 33 lines
                    
1package DDG::Spice::LaunchLibrary;
                    
2# ABSTRACT: List upcoming rocket launches and where to watch them online
                    
3
                    
10source "LaunchLibrary.net";
                    
11description "List upcoming rocket launches and where to watch them online";
                    
12primary_example_queries "upcoming rocket launches", "next space launch", "watch a rocket launch";
                    
12primary_example_queries "upcoming rocket launches", "next space launch", "watch a rocket launch";
                    
13secondary_example_queries "upcoming rocket webcast", "next space webcast", "watch a space launch webcast";
                    
14category "reference";
                    
15topics "geek", "science";
                    
16code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/LaunchLibrary.pm";
                    
17attribution github => ["globalspin", "Chris Radcliff"],
                    
19
                    
20# Version 1.1 of the API allows GET requests. 
                    
21# Parameters are included in the URL path; "/next/10" shows the next 10 launches
                    
                
helm-net.el https://gitlab.com/otfrom/otfrom-org-emacs.git | Emacs Lisp | 599 lines
                    
49(defcustom helm-google-suggest-url
                    
50  "http://google.com/complete/search?output=toolbar&q="
                    
51  "URL used for looking up Google suggestions."
                    
67(defcustom helm-yahoo-suggest-url
                    
68  "http://search.yahooapis.com/WebSearchService/V1/relatedSuggestion?appid=Generic&query="
                    
69  "Url used for looking up Yahoo suggestions."
                    
79(defcustom helm-surfraw-duckduckgo-url
                    
80  "https://duckduckgo.com/lite/?q=%s&kp=1"
                    
81  "The duckduckgo url.
                    
82This is a format string, don't forget the `%s'.
                    
83If you have personal settings saved on duckduckgo you should have
                    
84a personal url, see your settings on duckduckgo."
                    
88(defcustom helm-wikipedia-suggest-url
                    
89  "http://en.wikipedia.org/w/api.php?action=opensearch&search="
                    
90  "Url used for looking up Wikipedia suggestions."
                    
                
ddh-index.md https://gitlab.com/Guy1394/duckduckgo-documentation | Markdown | 72 lines
                    
3- **Getting Started**
                    
4  - [Welcome!](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/getting-started/ddh-intro.md)
                    
5  - [How to Contribute](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/getting-started/contributing.md)
                    
27  - [Advanced Frontend](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/spice/spice_advanced_frontend.md)
                    
28  - [JavaScript API Reference](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/spice/spice_js_api.md)
                    
29  - [Perl API Reference](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/spice/spice_perl_api.md)
                    
55  - [Test Files](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/testing/test_files.md)
                    
56  - [Testing with the Location & Language APIs](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/testing/testing_location_language_apis.md)
                    
57
                    
63- **Advanced**
                    
64  - [Language & Location APIs](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/advanced/language_and_location_apis.md)
                    
65
                    
68  - [Code Styleguide](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/resources/code_styleguide.md)
                    
69  - [Common Pitfalls](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/resources/common_pitfalls.md)
                    
70  - [How to QA an Instant Answer](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/resources/how_to_qa.md)
                    
                
test_files.md https://gitlab.com/Guy1394/duckduckgo-documentation | Markdown | 161 lines
                    
11
                    
12At a minimum, your tests should cover all of your primary and secondary example queries. If possible, you should also include examples of similar queries on which your code does **not** trigger. If your answer depends on the user's location, please review the [Location API testing guide](https://github.com/duckduckgo/duckduckgo-documentation/blob/master/duckduckhack/testing/testing_language_location_apis.md) for help in developing your tests. If your answer depends on the time of day or year, please be sure that your tests will continue to pass no matter when they are run.
                    
13
                    
23
                    
24Tests are run from the root of the repository using the `prove` command included in your Perl distribution. During development, you can quickly run a single test file to verify your changes:
                    
25
                    
37
                    
38To ensure that you have not inadvertently changed the behavior of other code, you should run the full test suite before submitting your Instant Answer. This is easily accomplished via `duckpan`:
                    
39
                    
45
                    
46Below is the test file of the **RouterPasswords** Goodie, found at [`t/RouterPasswords.t`](https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/t/RouterPasswords.t).
                    
47
                    
108
                    
109Below is the test file of the **Xkcd** Spice, found at [`t/Xkcd.t`](https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/t/Xkcd.t).
                    
110
                    
                
duckduckgo.py https://gitlab.com/lanodan/searx.git | Python | 76 lines
                    
1## DuckDuckGo (Web)
                    
2#
                    
3# @website     https://duckduckgo.com/
                    
4# @provide-api yes (https://duckduckgo.com/api),
                    
5#              but not all results from search-site
                    
6#
                    
7# @using-api   no
                    
8# @results     HTML (using search portal)
                    
11#
                    
12# @todo        rewrite to api
                    
13# @todo        language support
                    
25# search-url
                    
26url = 'https://duckduckgo.com/html?{query}&s={offset}'
                    
27
                    
                
README.md https://github.com/glenjamin/node-intro-challenge.git | Markdown | 63 lines
                    
14    > node setup
                    
15    { google: 'http://google.com/search?q=',
                    
16      bing: 'http://www.bing.com/search?q=',
                    
16      bing: 'http://www.bing.com/search?q=',
                    
17      yahoo: 'http://search.yahoo.com/search?p=',
                    
18      ask: 'http://www.ask.com/web?q=',
                    
18      ask: 'http://www.ask.com/web?q=',
                    
19      duck: 'http://duckduckgo.com/?q=' }
                    
20
                    
21Start with `challenge.js`, which requires the URL list and takes the search
                    
22terms from the command line.
                    
23
                    
46Firing stuff off in parallel is easy enough, but knowing when asynchronous
                    
47tasks have completed is less so. Combine the results of all of the queries
                    
48into a single object keyed by engine name that contains the time taken to
                    
                
default.erb https://github.com/waferbaby/usesthis.git | Ruby HTML | 70 lines
                    
28  <% end %>
                    
29    <meta property="og:image:url" content="https://usesthis.com/images/interviews/<%= page.slug %>/portrait.jpg">
                    
30    <meta property="og:image:type" content="image/jpeg">
                    
35    <meta name="twitter:description" content="<%= page.summary %>">
                    
36    <meta name="twitter:image" content="https://usesthis.com/images/interviews/<%= page.slug %>/portrait.jpg">
                    
37    <meta name="twitter:label1" content="Published">
                    
57    <footer>
                    
58      <form id="search" method="get" action="https://duckduckgo.com/">
                    
59        <label><strong>Search:</strong>
                    
61        </label>
                    
62        <input type="hidden" name="sites" value="usesthis.com">
                    
63        <input type="submit" value="Go">
                    
65
                    
66      <p>Unless otherwise noted, everything is available via the <a href="http://creativecommons.org/licenses/by-sa/4.0/" title="The BY-SA Creative Commons licence.">Attribution-Share Alike</a> licence. Subscribe to the site via the <a href="/feed.atom" title="The Atom feed.">feed</a>, or build something cool with the <a href="/api/" title="The API documentation.">API</a>!</p>
                    
67      <p>Last updated <a href="https://buildkite.com/waferbaby/publish-uses-this" title="The Buildkite pipleline that builds the site."><%= Time.now.strftime('%B %-d, %Y') %></a>.</p>
                    
                
index.html https://github.com/treyhunner/treyhunner.github.com.git | HTML | 331 lines
                    
31<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
32<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
33
                    
105           | <a href="#disqus_thread"
                    
106             data-disqus-identifier="http://treyhunner.com">Comments</a>
                    
107        
                    
115
                    
116<p>Since discovering DuckDuckGo&rsquo;s <a href="https://duckduckgo.com/?q=random+word">random word</a> generation, I&rsquo;ve
                    
117<a href="https://duckduckhack.uservoice.com/forums/5168-ideas-for-duckduckgo-instant-answer-plugins/suggestions/2850418-random-name">hoped</a> that someone would make a DuckDuckGo plugin to generate
                    
192  
                    
193  <a href="//twitter.com/share" class="twitter-share-button" data-url="http://treyhunner.com/2013/02/random-name-generator/" data-via="" data-counturl="http://treyhunner.com/2013/02/random-name-generator/" >Tweet</a>
                    
194  
                    
307      var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
                    
308      script.src = 'https://apis.google.com/js/plusone.js';
                    
309      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
                    
                
README.md https://bitbucket.org/datatheorem/dt-api-client.git | Markdown | 88 lines
                    
44A **Result API key** is needed in order to call the script; the API key can be found in the Data Theorem portal at
                    
45https://www.securetheorem.com/sdlc/api under the **"Accessing Data"** section. With the Results API key, the script can
                    
46then be used:
                    
47
                    
48    python results_api_cli.py --api-key <results_api_key>
                    
49
                    
58An **Upload API key** is needed in order to call the script; the API key can be found in the Data Theorem portal at
                    
59https://www.securetheorem.com/sdlc/api under the **"Uploading Applications"** section. With the Upload API key, the
                    
60script can then be used:
                    
61
                    
62    python upload_app_cli.py --api-key <upoad_api_key> --comments test --username user --password p4ss ./app.ipa
                    
63
                    
73An **Upload API key** is needed in order to call the script; the API key can be found in the Data Theorem portal at
                    
74https://www.securetheorem.com/sdlc/api under the **"Uploading Applications"** section. With the Upload API key, the
                    
75script can then be used:
                    
                
22.html https://bitbucket.org/davewiner/scripting-news.git | HTML | 20 lines
                    
2<div class="divSingularItem" data-type="outline"><a name="a142706"></a>Good morning bingewatching fans!<span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a142706" title="Direct link to this item.">#</a></span></div>
                    
3<div class="divSingularItem" data-type="outline"><a name="a215854"></a>A simple JavaScript <a href="https://gist.github.com/scripting/98a6ab727ccacac41029b50e07b3c4e2">demo app</a>, running in Node, creates a new file in a repo on GitHub using the REST API.<span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a215854" title="Direct link to this item.">#</a></span></div>
                    
4<div class="divSingularItem" data-type="outline"><a name="a022544"></a>Net neutrality is already broken. When you see a mobile service offer free Netflix or no bandwidth charges when watching Youtube, those are violations of the principle of neutrality. They predate Trump and the new FCC.<span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a022544" title="Direct link to this item.">#</a></span></div>
                    
5<div class="divSingularItem" data-type="outline"><a name="a143457"></a><a href="https://github.com/scripting/Scripting-News/issues/46">Braintrust query</a>: How should I add shows to BingeWorthy? <span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a143457" title="Direct link to this item.">#</a></span></div>
                    
6<div class="divSingularItem" data-type="outline"><a name="a144729"></a>I just added <a href="http://bingeworthy.io/?id=00353">Godless</a>, the new Netflix show, to BingeWorthy. Once it gets 5 ratings it will be eligible for the <a href="http://bingeworthy.io/hotlist.html">hotlist</a>. A highly-rated Netflix <a href="https://duckduckgo.com/?q=Godless+tv+series&ia=web">program</a> is pretty much an automatic add. <span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a144729" title="Direct link to this item.">#</a></span></div>
                    
7<div class="divSingularItem" data-type="outline"><a name="a051212"></a>Plot for a scifi book. An alien race from a faraway galaxy visits earth. We know they're coming and where they'll land like <a href="https://en.wikipedia.org/wiki/Close_Encounters_of_the_Third_Kind">Close Encounters</a>. When they show up, they walk right by the humans and greet the dogs. Turns out dogs are the master species of planet earth. And of course the aliens are canines as well. <span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a051212" title="Direct link to this item.">#</a></span></div>
                    
8<div class="divTitledItem">
                    
9	<div class="divTitle"><a name="a054232"></a><a href="http://scripting.com/2017/11/22.html#a054232"><span class="spTitleLink">It shouldn't be that easy</a></a><span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a054232" title="Direct link to this item.">#</a></span></div>
                    
10	<ul class="ulLevel0">
                    
10	<ul class="ulLevel0">
                    
11		<li><a name="a054258"></a><a href="http://littlecardeditor.com/users/davewiner/cards/2017/11/21/itShouldnt3.html"><img src="http://scripting.com/images/2017/11/22/itShouldntBeThatEasy.png" width="400" height="300" border="0" alt="A picture named itShouldntBeThatEasy.png"></a><span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a054258" title="Direct link to this item.">#</a></span></li>
                    
12		</ul>
                    
14<div class="divTitledItem">
                    
15	<div class="divTitle"><a name="a165857"></a><a href="http://scripting.com/2017/11/22.html#a165857"><span class="spTitleLink">In TrumpSpeak </a></a><span class="spPermaLink"><a href="http://scripting.com/2017/11/22.html#a165857" title="Direct link to this item.">#</a></span></div>
                    
16	<ul class="ulLevel0">
                    
                
05.html https://bitbucket.org/davewiner/scripting-news.git | HTML | 48 lines
                    
1<div class="divDayTitle"><a href="http://scripting.com/2018/03/05.html">Monday, March 5, 2018</a></div>
                    
2<div class="divSingularItem" data-type="outline" data-image="http://scripting.com/images/2018/03/05/mrWhite.png"><a name="a132936"></a><img src="http://scripting.com/images/2018/03/05/mrWhite.png" border="0" style="float: right; padding-left: 25px; padding-bottom: 10px; padding-top: 10px; padding-right: 15px;">Good morning sports fans!<span class="spPermaLink"><a href="http://scripting.com/2018/03/05.html#a132936" title="Direct link to this item.">#</a></span></div>
                    
3<div class="divSingularItem" data-type="outline"><a name="a143300"></a><a href="https://github.com/scripting/Scripting-News/issues/65">Braintrust query</a>: Face recognition as a service.<span class="spPermaLink"><a href="http://scripting.com/2018/03/05.html#a143300" title="Direct link to this item.">#</a></span></div>
                    
23	<li data-type="outline"><a name="a132951"></a>It's not necessary to actually watch Knicks games because they all seem to end the same. Last night they played the Sacramento Kings, another lottery team, and you might think here's a game the Knicks might actually be able to win. <a href="http://www.nydailynews.com/sports/basketball/knicks/knicks-fall-kings-skai-labissiere-game-winner-article-1.3855565">Nahh</a>. At least they're consistent!  <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145114.html#a132951" title="Direct link to this item.">#</a></span></li>
                    
24	<li data-type="outline"><a name="a133051"></a>A friend who happens to be a Yankees fan is also a Knicks fan, and we talk about the team regularly. He wonders why he's a Knicks fan if they always lose. I said I know the answer. The Knicks are his <a href="http://thesaurus.land/?word=atonement">atonement</a> for being a Yankees fan. Now what does this say about me, a lifetime Mets fan? Well, one thing -- winning isn't the most important thing. And that said, unlike the Knicks, the Mets do win once in long while. Even that amount of winning requires <a href="https://duckduckgo.com/?q=define+atonement&t=hf&ia=definition">atonement</a>, I guess. <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145114.html#a133051" title="Direct link to this item.">#</a></span></li>
                    
25	</ul>
                    
30	<ul class="ulLevel0">
                    
31	<li data-type="outline"><a name="a133520"></a>Speaking of winners, by the middle of the <a href="https://en.wikipedia.org/wiki/90th_Academy_Awards">Oscars show</a> last night I concluded that <a href="https://en.wikipedia.org/wiki/Get_Out">Get Out</a> would win everything. Unfortunately not so. I think in a few years we will have forgotten <a href="https://en.wikipedia.org/wiki/The_Shape_of_Water_(film)">The Shape of Water</a>, and Get Out will have been the beginning of something new. The combination of politics, comedy, romance, tragedy and horror is hard to beat. <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145047.html#a133520" title="Direct link to this item.">#</a></span></li>
                    
32	<li data-type="outline"><a name="a133745"></a>I was delighted that <a href="https://en.wikipedia.org/wiki/Allison_Janney">Allison Janney</a> won best supporting actress. I, Tonya was a wonderful movie. It could have gotten a Best Picture nomination. And Janney was brilliant as Harding's bitter, cigarette-smoking hardass waitress mother. <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145047.html#a133745" title="Direct link to this item.">#</a></span></li>
                    
32	<li data-type="outline"><a name="a133745"></a>I was delighted that <a href="https://en.wikipedia.org/wiki/Allison_Janney">Allison Janney</a> won best supporting actress. I, Tonya was a wonderful movie. It could have gotten a Best Picture nomination. And Janney was brilliant as Harding's bitter, cigarette-smoking hardass waitress mother. <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145047.html#a133745" title="Direct link to this item.">#</a></span></li>
                    
33	<li data-type="outline"><a name="a133929"></a><a href="https://twitter.com/RyanJL/status/970518467228119041?ref_src=twsrc%5Etfw&ref_url=http%3A%2F%2Ftime.com%2F5185334%2Fjennifer-lawrence-jodie-foster-oscars%2F">Jennifer Lawrence and Jody Foster</a> made the best on-stage couple comedy act. I was staring at Foster on her crutches before my attention turned to Lawrence, who is by far my favorite actress of her generation, for her irreverence, intelligence, and last night sheer <a href="https://en.wiktionary.org/wiki/gobsmacked">gobsmacking</a> beauty. She's beautiful the way Hedy Lamarr was. And what an actress. She's still only 26 and one can only imagine what delights await us. I'm more than a fan, I am in awe. <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145047.html#a133929" title="Direct link to this item.">#</a></span></li>
                    
34	<li data-type="outline"><a name="a141734"></a>Sometimes the Academy passes on a movie that goes on to have great significance. For me, the most interesting example is <a href="http://www.imdb.com/title/tt0118715/awards">The Big Lebowski</a>. It didn't win a single <a href="https://en.wikipedia.org/wiki/71st_Academy_Awards#Awards">Oscar</a>. I wonder what the judges must have thought of it. A silly insignificant comedy? It's weird because TBL came after <a href="https://en.wikipedia.org/wiki/69th_Academy_Awards#Awards">Fargo</a>, which was much-celebrated by the Oscars. The year Lebowski would have been up for an award, <a href="https://en.wikipedia.org/wiki/Shakespeare_in_Love">Shakespeare in Love</a> won best picture, and imho the other winners were also Big Mehs. Imho there's no doubt The Big Lebowski was the Best Picture in 1999. But you don't necessarily know it in the moment. History has a role to play too. <span class="spPermaLink"><a href="http://scripting.com/2018/03/05/145047.html#a141734" title="Direct link to this item.">#</a></span></li>
                    
38<div class="divTitledItem">
                    
39	<div class="divTitle"><a name="a140648"></a><a href="http://scripting.com/2018/03/05/140648.html"><span class="spTitleLink">Phantom Thread review</a></a><span class="spPermaLink"><a href="http://scripting.com/2018/03/05/140648.html" title="Direct link to this item.">#</a></span></div>
                    
40	<ul class="ulLevel0">
                    
                
index.html https://github.com/sbates/Bratty-Redhead.git | HTML | 294 lines
                    
28  <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
                    
29<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
30<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
                    
49  
                    
50<form action="http://www.duckduckgo.com/" method="get">
                    
51  <fieldset role="search">
                    
92
                    
93<div class="entry-content"><p><a href="https://github.com/sbates/Chef-odds-n-ends/blob/master/ohai/parse_host_plugin.rb" title="The plugin at github" target="_blank">The plugin at github</a></p>
                    
94<p>When we started the Chef infrastructure automation project last year,  a dev team started up at nearly the same time.&nbsp; I didn&#8217;t know enough  about Chef to have (much of) an opinion on how others were addressing  cookbook issues they faced. So for the first few months, I worked on my  problems to solve while the devs worked on theirs.&nbsp; I did eventually  started paying attention to what was going on with the dev team and  discovered that they had started to create role names that looked like  app_name_env(e.g. riak_prod), causing a role for each app to be created  in each environment, but with nearly identical run lists.&nbsp; They were  labeling their attributes with environment and used the roles to sort  them out.</p>
                    
117<p>&nbsp;</p>
                    
118<p>This will also come in handy once we&#8217;ve migrated to .10 where we can  set so many more things within Chef based on environment.&nbsp; The plugin is  phrased in functions as my original plugin file was rather messy with  comments and things.&nbsp; I felt like breaking it down this way made it  easier to follow wth was going on.</p>
                    
119<p>Please let me know if you find this useful or if you have questions.&nbsp;  This is my first community contribution and so I&#8217;m kind of like the kid  with the cool shiny thing they want to show everyone.&nbsp; Look at my  shiny!</p>
                    
149  
                    
150  <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://brattyredhead.com/blog/2011/06/24/59995517/" data-via="sascha_d" data-counturl="http://brattyredhead.com/blog/2011/06/24/59995517/" >Tweet</a>
                    
151  
                    
                
duckduckgo_article.html https://codeberg.org/TheShadow/SpywareWatchdog.git | HTML | 82 lines
                    
28    <p>
                    
29    Gabriel Weinberg should be very grateful to the NSA . When last summer it became known how comprehensive the US-intelligence trawl monitoring was, the traffic to Weinberg's privacy-friendly search engine DuckDuckGo increased rapidly. By now they are fairly consistent with about four million searches per day - twice as much as before the Snowden revelations began in June 2013.
                    
30    </p>
                    
36    <p>
                    
37    It is not that simple. DuckDuckGo is a US company and is thus subject to US law. A court could force Weinberg to issue its SSL keys, as did the email provider Lavabit . The secretive FISA court may also force DuckDuckGo to collect and post user data without informing users.
                    
38    </p>
                    
45    <p>
                    
46    Maybe many know it all and still prefer to use DuckDuckGo than Google. Weinberg had said at the end of 2012 in an interview with ZEIT ONLINE that he wanted to offer not only more privacy than the competition, but also the better search results. In fact, his search engine works well for English-language topics, at least as an adjunct to other providers DuckDuckGo is absolutely suitable.
                    
47    </p>
                    
49    <p>
                    
50    Compared to Google, the numbers of DuckDuckGo are still hardly worth mentioning. Google has about three times as many search queries a day as DuckDuckGo does every year, according to TechCrunch .
                    
51    </p>
                    
74    <p>
                    
75    c) that Startpage is also hosted in the US and thus subject to the Patriot Act. However, according to a company spokesman, this is not true: some of the servers are in the Netherlands, he said on request, and all European users are taking action. In the US there are servers for US users belonging to the Dutch company Surfboard Holding BV - the operator of Startpage and Ixquick. However, as a Dutch company, Startpage is not subject to either the Patriot Act or the Foreign Intelligence Surveillance Act (FISA), so it does not have to help the US authorities.
                    
76    </p>
                    
                
word_map.js https://gitlab.com/phora/zeroclickinfo-spice | JavaScript | 32 lines
                    
1(function(env){
                    
2    env.ddg_spice_word_map = function(api_result) {
                    
3        "use strict";
                    
4
                    
5        if ( (!api_result) || ("200" !== api_result.result_code)) {
                    
6    	   return Spice.failed('word_map');
                    
11            name: 'Answer',
                    
12            data: api_result,
                    
13            meta: {
                    
13            meta: {
                    
14                sourceUrl: 'https://www.twinword.com/?moreLink=' + encodeURIComponent(api_result.encrypt_entry),
                    
15                sourceName: 'Twinword',
                    
15                sourceName: 'Twinword',
                    
16                sourceIconUrl: 'http://icons.duckduckgo.com/ip/www.twinword.com.ico'
                    
17            },
                    
                
README.md https://bitbucket.org/roko_cleiton_brustulin/roko_ciklus.git | Markdown | 146 lines
                    
10
                    
11`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
                    
12 methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
                    
31https.request({
                    
32  host: 'bitly.com',
                    
33  path: '/UHfDGO',
                    
35  console.log(response.responseUrl);
                    
36  // 'http://duckduckgo.com/robots.txt'
                    
37});
                    
74
                    
75In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
                    
76the following per-request options are supported:
                    
127
                    
128Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues)
                    
129 detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
                    
                
API.php git://github.com/duckduckgo/php5-duckduckgo.git | PHP | 163 lines
                    
4 * @file DuckDuckGo/API.php
                    
5 * This file provides the base class to interface with the DuckDuckGo API.
                    
6 * It will also include any necessary classes.
                    
8 * Simple example:
                    
9 *     $api = new DuckDuckGo\API();
                    
10 *     $info = $api->zeroClickQuery('Internet Relay Chat');
                    
25    /**
                    
26     * The API base URL. This defaults to api.duckduckgo.com.
                    
27     */
                    
58        $this->noDisambiguations = FALSE;
                    
59        $this->baseURL = 'api.duckduckgo.com';
                    
60    }
                    
140    /**
                    
141     * Perform a ZeroClickInfo query against the DuckDuckGo API.
                    
142     * @param query     The term to query for.
                    
                
WordMap.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 46 lines
                    
6
                    
7spice to => 'https://www.twinword.com/api/v2/context/user/duckduckgo/?entry=$1&api_key={{ENV{DDG_SPICE_WORDMAP_APIKEY}}}';
                    
8spice wrap_jsonp_callback => 1;
                    
                
spice_displaying.md https://gitlab.com/Guy1394/duckduckgo-documentation | Markdown | 92 lines
                    
1# Adding Your Spice to the DuckDuckGo AnswerBar
                    
2
                    
2
                    
3Once your Instant Answer has been triggered, and the API request has returned a response to the client, the final step is to display your results onscreen.
                    
4
                    
4
                    
5![answerbar](https://images.duckduckgo.com/iu/?u=https%3A%2F%2Fraw.githubusercontent.com%2Fduckduckgo%2Fduckduckgo-documentation%2Fmaster%2Fduckduckhack%2Fassets%2Fdiagrams%2Fanswerbar.png&f=1)
                    
6
                    
                
astrobin_apod.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 72 lines
                    
9    // Fetch our json and pass to getScript
                    
10    env.ddg_spice_astrobin_apod = function(api_result) {
                    
11        if(!api_result) {
                    
13        }
                    
14        var getimageid = api_result.objects[0].image.split("/");
                    
15        $.getScript("/js/spice/astrobin/fetch_id/" + getimageid[4]);
                    
18    
                    
19    env.ddg_spice_astrobin_fetch_id = function(api_result) {
                    
20        if (!api_result) {
                    
26            name: "Astronomy",
                    
27            data: api_result,
                    
28            signal: 'high',
                    
30                sourceName: "AstroBin",
                    
31                sourceUrl: "http://www.astrobin.com/" + api_result.id
                    
32            },
                    
                
Tag2LinkTest.java https://github.com/openstreetmap/josm.git | Java | 135 lines
                    
42        Tag2Link.getLinksForTag("name", "foobar", this::addLink);
                    
43        checkLinks("Search on duckduckgo.com // https://duckduckgo.com/?q=foobar",
                    
44                "Search on google.com // https://www.google.com/search?q=foobar");
                    
79        Tag2Link.getLinksForTag("image", "File:Witten Brücke Gasstraße.jpg", this::addLink);
                    
80        checkLinks("View image on Wikimedia Commons // https://commons.wikimedia.org/wiki/File%3AWitten_Br%C3%BCcke_Gasstra%C3%9Fe.jpg");
                    
81        links.clear();
                    
83        Tag2Link.getLinksForTag("image", "File:Foo.jpg;File:Bar.jpg", this::addLink);
                    
84        checkLinks("View image on Wikimedia Commons // https://commons.wikimedia.org/wiki/File%3AFoo.jpg",
                    
85                "View image on Wikimedia Commons // https://commons.wikimedia.org/wiki/File%3ABar.jpg");
                    
128    void testMultipleSources() {
                    
129        Tag2Link.getLinksForTag("source", "https://foo.com/; https://bar.com/; https://baz.com/", this::addLink);
                    
130        checkLinks("Open foo.com // https://foo.com/",
                    
131                "Open bar.com // https://bar.com/",
                    
132                "Open baz.com // https://baz.com/");
                    
133    }
                    
                
index.html https://github.com/brettterpstra/brettterpstra.github.com.git | HTML | 56 lines
                    
27  <li><strong><a href="http://documentcloud.github.com/backbone/#Events-bind">Backbone.js</a></strong><br />What&#039;s not to love about key-value models, custom events, collections and enumeration, views with declarative event handling, and a RESTful JSON interface? &hellip; My doctor says I have an MVC deficiency, anyway.</li>
                    
28  <li><strong><a href="http://duckduckgo.com/api.html">Duck Duck Go Zero-click Info API</a></strong><br />Duck Duck Go is my new default search engine. I love it to death. The API for topic summaries and categories is pretty cool, too. Also see the <a href="http://dhruvbird.com/ddb/zc.html">Zero Click jQuery plugin</a> for example usage.</li>
                    
29  <li>
                    
33          <td>**[Eight Ways to Combine Typefaces</td>
                    
34          <td>Webdesigner Depot](http://www.webdesignerdepot.com/2011/02/eight-ways-to-combine-typefaces/)**<br />Speaking of font combinations, there&#039;s a great article today on Webdesigner Depot on the matter.</td>
                    
35        </tr>
                    
38  </li>
                    
39  <li><strong><a href="http://kwisatz.hadera.ch/">Kwisatz Haderach is the new Lorem Ipsum</a></strong><br />Gotta love truly creative random text. Hat tip to <a href="http://thebananaverse.com/">Kelly</a>!</li>
                    
40  <li>
                    
44          <td>**[Icon Search Engine</td>
                    
45          <td>Iconfinder](http://www.iconfinder.com/)**<br />Found this thanks to my Pinboard.in network. Seriously, if you&#039;re not using Pinboard&hellip; anyway, this is the absolute best icon search I&#039;ve ever seen. Awesome. And neat&hellip; they have an API.</td>
                    
46        </tr>
                    
49  </li>
                    
50  <li><strong><a href="http://wordpress.stackexchange.com/questions/3708/custom-taxonomy-wp-query-for-all-terms-in-a-taxonomy">wp query - Custom Taxonomy WP_Query for All Terms in a Taxonomy? - WordPress - Stack Exchange</a></strong><br />A class to extend WP_Query called PostsByTaxonomy which uses the &#039;posts_join&#039; hook. Kind of self-explanatory, in a not-at-all sort of way.</li>
                    
51</ul>
                    
                
Kwixer.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 34 lines
                    
11name "Kwixer";
                    
12code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Kwixer.pm";
                    
13icon_url "https://kwixer.com/favicon.ico";
                    
16attribution twitter => ['kwixerapp','Kwixer'],
                    
17            web => ['https://www.kwixer.com','Kwixer'];
                    
18
                    
19
                    
20spice to => 'https://www.kwixer.com/api/search?filter=movie&take=40&source=ddg&lang=en&query=$1';
                    
21spice wrap_jsonp_callback => 1;
                    
                
Twitter.t git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 38 lines
                    
9    [qw( DDG::Spice::Twitter )],
                    
10    '@duckduckgo' => test_spice(
                    
11        '/js/spice/twitter/duckduckgo',
                    
29    'twitter analytics' => undef,
                    
30    'twitter company' => undef,
                    
31    'about twitter' => undef,
                    
31    'about twitter' => undef,
                    
32    'twitter apis' => undef,
                    
33    'twitter developers' => undef,
                    
                
PoliticalPolls.pm https://gitlab.com/phora/zeroclickinfo-spice | Perl | 31 lines
                    
9source "HuffPost Pollster";
                    
10icon_url "http://elections.huffingtonpost.com/favicon.ico";
                    
11description "Provides polling data from the United States.";
                    
15topics "special_interest";
                    
16code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/PoliticalPolls.pm";
                    
17attribution github => ["alexander95015", "Alexander"],
                    
22
                    
23spice to => 'http://elections.huffingtonpost.com/pollster/api/charts.json?state=US';
                    
24
                    
                
dmenu_handler.pl https://gitlab.com/fengshaun/src.git | Perl | 56 lines
                    
13
                    
14    # this is the returned command
                    
15    my $cmd = `$dmenu_cmd`;
                    
17
                    
18    # return the command in array form
                    
19    my @cmd = split / /, $cmd;
                    
35sub process_define_cmd {
                    
36    #TODO: use the API
                    
37    my $word = join " ", @_;
                    
37    my $word = join " ", @_;
                    
38    exec($browser . "\"http://dictionary.reference.com/browse/$word\"");
                    
39}
                    
42    my $query = join "+", @_;
                    
43    exec($browser . "\"http://duckduckgo.com/?q=$query\"");
                    
44}
                    
                
setup.py git://github.com/mikejs/python-duckduckgo.git | Python | 24 lines
                    
1from setuptools import setup
                    
2from duckduckgo import __version__
                    
3
                    
5
                    
6setup(name='duckduckgo',
                    
7      version=__version__,
                    
7      version=__version__,
                    
8      py_modules=['duckduckgo'],
                    
9      description='Library for querying the Duck Duck Go API',
                    
12      license='BSD',
                    
13      url='http://github.com/mikejs/python-duckduckgo/',
                    
14      long_description=long_description,
                    
22                   ],
                    
23      entry_points={'console_scripts':['ddg = duckduckgo:main']},
                    
24      )
                    
                
options.html https://github.com/sanooj/DuckDuckGo.git | HTML | 123 lines
                    
2<head>
                    
3	<title>DuckDuckGo - Options</title>
                    
4	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                    
6    <link rel="stylesheet" type="text/css" href="../css/optionfields.css">
                    
7	<script type=text/javascript src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
                    
8</head>
                    
                
README.md https://gitlab.com/phora/zeroclickinfo-spice | Markdown | 77 lines
                    
8
                    
9Instant Answers appear on DuckDuckGo.com above ads and organic links, on [millions of searches](https://duckduckgo.com/traffic.html). Instant Answers are created by an open source community of developers [around the world](http://duckduckgo.meetup.com/) like you. Welcome!
                    
10
                    
12
                    
13[![slack](http://docs.duckduckhack.com/assets/slack.png) Talk to us on Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email us](mailto:open@duckduckgo.com).
                    
14
                    
24
                    
25We welcome new contributors to dive in and improve live Instant Answers. It's a great, hands-on way to learn how things work. Start by [setting up your development environment](http://docs.duckduckhack.com/welcome/setup-dev-environment.html).
                    
26
                    
72
                    
73[![slack](http://docs.duckduckhack.com/assets/slack.png) Talk to us on Slack](mailto:QuackSlack@duckduckgo.com?subject=AddMe) or [email us](mailto:open@duckduckgo.com).
                    
74
                    
74
                    
75We're a digital community, but real people - we frequently meet up to hack together. Check out our [global meetups](http://duckduckgo.meetup.com/).
                    
76
                    
                
README.md git://github.com/ajanicij/goduckgo.git | Markdown | 104 lines
                    
1goduckgo [![Build Status](https://travis-ci.org/ajanicij/goduckgo.svg?branch=master)](https://travis-ci.org/ajanicij/goduckgo)[![GoDoc](https://godoc.org/github.com/ajanicij/goduckgo/goduckgo?status.png)](http://godoc.org/github.com/ajanicij/goduckgo/goduckgo)
                    
2========
                    
3
                    
4Go package for DuckDuckGo Instant Answer API.
                    
5
                    
5
                    
6[DuckDuckGo](http://duckduckgo.com) is a search engine that:
                    
7
                    
11
                    
12The Instant Answer API is described [here](http://duckduckgo.com/api.html). For
                    
13example, the URL for querying about New York City is
                    
14
                    
15[http://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1](http://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1)
                    
16
                    
42
                    
43Command-line utility
                    
44--------------------
                    
                
main.js https://gitlab.com/haliax/dotfiles | JavaScript | 195 lines
                    
15    request.open("get",
                    
16                 "http://api.github.com/repos/fuyuneko/startpage/releases/latest",
                    
17                 false);
                    
92        case "-g":
                    
93            searchCase("https://www.google.com/#q=", query, "+");
                    
94            break;
                    
102        case "-y":
                    
103            searchCase("https://www.youtube.com/results?search_query=", query, "+");
                    
104            break;
                    
105        case "-d":
                    
106            searchCase("https://duckduckgo.com/?q=", query, "+");
                    
107            break;
                    
108        case "-s":
                    
109            searchCase("https://startpage.com/do/metasearch.pl?q=", query, "+");
                    
110            break;
                    
                
 

Source

Language