PageRenderTime 54ms queryFilters 0ms Sphinxql 20ms app.CodeModel.GetByIds 6ms findMatchingLines 13ms GetByIds 19ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 0ms

1,211 results for 'api.duckduckgo.com' (54 ms)

Source

Language

Repository

libre.patch https://bitbucket.org/axil42/aur-mirror.git | Patch | 456 lines
1diff -urN iceweasel-13.0.orig/browser/app/profile/firefox.js iceweasel-13.0/browser/app/profile/firefox.js
2--- mozilla-build.orig/browser/app/profile/firefox.js	2012-06-01 09:03:47.000000000 -0300
3+++ mozilla-build/browser/app/profile/firefox.js	2012-06-05 19:53:08.847012282 -0300
4@@ -64,11 +64,11 @@
5 // Preferences for AMO integration
6 pref("extensions.getAddons.cache.enabled", true);
7 pref("extensions.getAddons.maxResults", 15);
8-pref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%");
9-pref("extensions.getAddons.getWithPerformance.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/guid:%IDS%?src=firefox&appOS=%OS%&appVersion=%VERSION%&tMain=%TIME_MAIN%&tFirstPaint=%TIME_FIRST_PAINT%&tSessionRestored=%TIME_SESSION_RESTORED%");
10-pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/firefox/search?q=%TERMS%&platform=%OS%&appver=%VERSION%");
11-pref("extensions.getAddons.search.url", "https://services.addons.mozilla.org/%LOCALE%/firefox/api/%API_VERSION%/search/%TERMS%/all/%MAX_RESULTS%/%OS%/%VERSION%/%COMPATIBILITY_MODE%?src=firefox");
12-pref("extensions.webservice.discoverURL", "https://services.addons.mozilla.org/%LOCALE%/firefox/discovery/pane/%VERSION%/%OS%/%COMPATIBILITY_MODE%");
13+pref("extensions.getAddons.get.url", "http://www.gnu.org/s/gnuzilla/addons.html");
14+pref("extensions.getAddons.getWithPerformance.url", "http://www.gnu.org/s/gnuzilla/addons.html");
15+pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/s/gnuzilla/addons.html");
README.md https://github.com/aembleton/zeroclickinfo-spice.git | Unknown | 374 lines
1DuckDuckHack Spice
2====
3This documentation walks you through the process of writing a DuckDuckHack Spice plugin.
4Before reading this section, make sure you've read the [DuckDuckHack Intro Site](http://duckduckhack.com) and the [DuckDuckHack Developer's Overview](https://github.com/duckduckgo/duckduckgo/blob/master/README.md). If you're here to brush up on Spice-related info, go ahead and scroll down. If you're here to learn how to write Spice plugins, head on over to the [Spice Overview](https://github.com/duckduckgo/duckduckgo#spice-overview).
5
6## Spice Handle Functions
7Spice plugins have **triggers** and **handle** functions like Goodies, as explained in the [Basic tutorial](http://github.com/duckduckgo/duckduckgo#basic-tutorial). The difference is that Spice handle functions don't return an instant answer directly like Goodies. Instead, they return arguments used to call a JavaScript callback function that then returns the instant answer.
8
9The JavaScript callback function is defined in another file and is explained in detail in the [Spice callback functions](#spice-callback-functions) section. For now let's concentrate on how it gets called via the Spice handle function.
10
11Usually the Spice plugin flow works like this:
12
13* Spice plugin is triggered.
14* Spice handle function is called.
15* Spice handle function returns arguments.
all_search_engines.xml https://bitbucket.org/cyanogenmod/android_packages_apps_browser.git | XML | 759 lines
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
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
7Copyright Michael Stephens <me@mikej.st>, released under a BSD-style license.
8
9Source: http://github.com/mikejs/python-duckduckgo
10
11Installation
12============
13
14To install run
15
keywords.sql git://github.com/nodemaker/Shell.git | SQL | 39 lines
1BEGIN TRANSACTION;
2CREATE TABLE "keywords" (id INTEGER PRIMARY KEY,short_name VARCHAR NOT NULL,keyword VARCHAR NOT NULL,favicon_url VARCHAR NOT NULL,url VARCHAR NOT NULL,show_in_default_list INTEGER,safe_for_autoreplace INTEGER,originating_url VARCHAR,date_created INTEGER DEFAULT 0,usage_count INTEGER DEFAULT 0,input_encodings VARCHAR,suggest_url VARCHAR,prepopulate_id INTEGER DEFAULT 0,autogenerate_keyword INTEGER DEFAULT 0,logo_id INTEGER DEFAULT 0,created_by_policy INTEGER DEFAULT 0,instant_url VARCHAR);
3INSERT INTO "keywords" VALUES(2,'Google (Default) (Default)','ggle','http://www.google.com/favicon.ico','{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&q={searchTerms}',1,0,'',0,5,'UTF-8','{google:baseSuggestURL}search?client=chrome&hl={language}&q={searchTerms}',1,0,6256,0,'{google:baseURL}webhp?{google:RLZ}sourceid=chrome-instant&ie={inputEncoding}&ion=1{searchTerms}&nord=1');
4INSERT INTO "keywords" VALUES(4,'Bing','bing','http://www.bing.com/s/wlflag.ico','http://www.bing.com/search?setmkt=en-US&q={searchTerms}',1,0,'',0,1,'UTF-8','http://api.bing.com/osjson.aspx?query={searchTerms}&language={language}',3,0,6250,0,'');
5INSERT INTO "keywords" VALUES(8,'youtube.com','utube','http://www.youtube.com/favicon.ico','http://www.youtube.com/results?search_query={searchTerms}&page={startPage?}&utm_source=opensearch',0,0,'http://www.youtube.com/opensearch?locale=en_US',1262593880,2,'','',0,0,0,0,'');
6INSERT INTO "keywords" VALUES(15,'ufl.edu','ufl','http://www.ufl.edu/favicon.ico','http://search.ufl.edu/web?query={searchTerms}',0,0,'http://www.ufl.edu/opensearch.xml',1273185159,0,'','',0,0,0,0,'');
7INSERT INTO "keywords" VALUES(16,'Grooveshark','gshark','http://listen.grooveshark.com/webincludes/images/favicon.ico?1','http://listen.grooveshark.com/#/search/songs/?query={searchTerms}',0,0,'http://listen.grooveshark.com/litesearch.xml',1273205764,0,'UTF-8','',0,0,0,0,'');
8INSERT INTO "keywords" VALUES(18,'CNN.com','cnn','http://www.cnn.com/favicon.ico','http://www.cnn.com/search/?query={searchTerms}',0,0,'http://www.cnn.com/tools/search/cnncom.xml',1273546684,0,'UTF-8','',0,0,0,0,'');
9INSERT INTO "keywords" VALUES(21,'Facebook','fb','http://www.facebook.com/favicon.ico','http://www.facebook.com/search/?src=os&q={searchTerms}',0,0,'http://b.static.ak.fbcdn.net/rsrc.php/yJ/r/H2SSvhJMJA-.xml',1297497157,4,'UTF-8','',0,0,0,0,'');
10INSERT INTO "keywords" VALUES(22,'rapidlibrary.com','rlib','http://rapidlibrary.com/favicon.ico','http://rapidlibrary.com/index.php?q={searchTerms}&filetype=0',0,0,'',1299451958,0,'UTF-8','',0,0,0,0,'');
11INSERT INTO "keywords" VALUES(24,'TechCrunch','tcrunch','http://techcrunch.com/favicon.ico','http://techcrunch.com/?s={searchTerms}',0,0,'http://techcrunch.com/osd.xml',1300514112,1,'UTF-8','',0,0,0,0,'');
12INSERT INTO "keywords" VALUES(25,'amazon.com','amzn','http://www.amazon.com/favicon.ico','http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords={searchTerms}&x=0&y=0',0,0,'',1300518675,3,'ISO-8859-1','',0,0,0,0,'');
13INSERT INTO "keywords" VALUES(26,'apetube.com','atube','http://www.apetube.com/favicon.ico','http://www.apetube.com/search/?q={searchTerms}',0,0,'',1301979486,2,'UTF-8','',0,0,0,0,'');
14INSERT INTO "keywords" VALUES(27,'Wikipedia (en)','wiki','http://en.wikipedia.org/favicon.ico','http://en.wikipedia.org/wiki/Special:Search?search={searchTerms}',1,0,'',1302319126,1,'UTF-8','http://en.wikipedia.org/w/api.php?action=opensearch&search={searchTerms}',0,0,0,0,'');
15INSERT INTO "keywords" VALUES(28,'eBay','ebay','http://rover.ebay.com/favicon.ico','http://rover.ebay.com/rover/1/711-47294-18009-3/4?satitle={searchTerms}',1,0,'',1302319126,0,'ISO-8859-1','',0,0,0,0,'');
ChangeLog https://bitbucket.org/kisom/surfraw-devel.git | Unknown | 709 lines
12012-06-28  Manolo MartĂ­nez  <manolo@austrohungaro.com>
2
3	* examples/hooks.lua: Added elinks integration script
4
52012-06-28  Ivy Foster  <joyfulgirl@archlinux.us>
6
7	* Further simplified searchable bookmarks
8
92012-06-28  Thomas Zervogiannis <tzervo@gmail.com>
10
11	* Simplified searchable bookmarks
12
132012-06-27  Ivy Foster  <joyfulgirl@archlinux.us>
14
15	* Fixed arg parsing in searchable bookmarks
responses.yml https://github.com/gdrooid/zeroclickinfo-goodies.git | YAML | 180 lines
1# If the text and HTML versions can be reasonably generated from the same format
2# use base_format.  If info_url is included, the words surrounded with [] will be linked
3# in the HTML version.  The url will be appended to the text version.
4#
5# Otherwise, include both text and html keys.
6#
7# If more than one keyword applies, add an aliases key with an array ref of string aliases.
8---
9about:
10  base_format: "DuckDuckGo's [about page]"
11  info_url: https://duckduckgo.com/about
12ads:
13  aliases:
14    - businessmodel
15    - advertisements
all_search_engines.xml https://github.com/SOKP-1/packages_apps_Browser.git | XML | 768 lines
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
README.md git://github.com/duckduckgo/zeroclickinfo-spice.git | Markdown | 24 lines
1# In Maintenance [![Build Status](https://travis-ci.org/duckduckgo/zeroclickinfo-spice.svg?branch=master)](https://travis-ci.org/duckduckgo/zeroclickinfo-spice)
2
3DuckDuckHack is now in maintenance mode. We are only accepting pull requests for essential bug fixes. For more information see [duckduckhack.com](https://duckduckhack.com). 
4
5## What are essential bug fixes?
6
7Any changes necessary to keep existing Instant Answers functioning correctly and as expected. For example:
8
9  - Updating the URL for a Spice Instant Answer when the API changes
10  - Correcting a Perl or JavaScript logic error
11  - Fixing CSS that's causing the display to break
12
13Any other changes will not be accepted. For example:
14
15  - spelling/comment changes
README.md git://github.com/duckduckgo/zeroclickinfo-goodies.git | Markdown | 24 lines
1# In Maintenance [![Build Status](https://travis-ci.org/duckduckgo/zeroclickinfo-goodies.svg?branch=master)](https://travis-ci.org/duckduckgo/zeroclickinfo-goodies)
2
3DuckDuckHack is now in maintenance mode. We are only accepting pull requests for essential bug fixes. For more information see [duckduckhack.com](https://duckduckhack.com). 
4
5## What are essential bug fixes?
6
7Any changes necessary to keep existing Instant Answers functioning correctly and as expected. For example:
8
9  - Updating the URL for a Spice Instant Answer when the API changes
10  - Correcting a Perl or JavaScript logic error
11  - Fixing CSS that's causing the display to break
12
13Any other changes will not be accepted. For example:
14
15  - spelling/comment changes
helm-net.el https://github.com/redguardtoo/emacs.d.git | Lisp | 601 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2014 Thierry Volpiatto <thierry.volpiatto@gmail.com>
4
5;; This program is free software; you can redistribute it and/or modify
6;; it under the terms of the GNU General Public License as published by
7;; the Free Software Foundation, either version 3 of the License, or
8;; (at your option) any later version.
9
10;; This program is distributed in the hope that it will be useful,
11;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13;; GNU General Public License for more details.
14
15;; You should have received a copy of the GNU General Public License
index.html git://github.com/Incognito/CodeGuide-0000.git | HTML | 884 lines
1<!DOCTYPE html>
2<html lang="en">
3<head>
4    <meta charset="utf-8">
5    <title>So you want to write some quality JavaScript</title>
6    
7    <meta name="author"   content="Brian Graham">
8    <meta name="viewport" content="width=1024">
9    
10    <link rel="stylesheet" href="./presentation.css">
11    
12</head>
13
14<body class="deck-container">
15
README.md https://github.com/andrearonsen/zeroclickinfo-goodies.git | Unknown | 205 lines
1DuckDuckGo ZeroClickInfo Goodies
2=================================
3
4About
5-----
6
7See [the contribution page](https://github.com/duckduckgo/duckduckgo/wiki) for a general overview on contributing to DuckDuckGo.
8
9This repository is for contributing goodies, which are special tools that reveal instant answers at the top of search results, e.g. calculations or throwing dice.
10
11Most of the existing goodies are listed on the [goodies page](http://duckduckgo.com/goodies.html) and [tech goodies page](http://duckduckgo.com/tech.html).
12
13We also maintain a list of [requested goodies](https://github.com/duckduckgo/duckduckgo/wiki/Goodies), but whatever you want to attempt is welcome.
14
15
spice_overview.md https://github.com/a-West/duckduckgo.git | Markdown | 547 lines
1# Spice Tutorial
2[Index](https://github.com/duckduckgo/duckduckgo#index) / **Spice Tutorial**
3
4---
5Spice plugins 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 plugin 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
7**Important:** This is a pretty long document, but it's broken up into logical sections. Follow along and by the end, you'll have all the knowledge you need for Spice creation.
8
9## Table of Contents
10
111. **[Basic Tutorial](#basic-tutorial)** -- this will show you the fundamentals of making a plugin. It's a simple walkthrough-by-example and gives a good introduction to the system. The plugin that we construct is technically a Goodie, but Goodies are the building-blocks of Spice plugins.
122. **[Spice Handle Functions](#spice-handle-functions)** -- this section provides an overview of the different variables that a spice plugin can process.
133. **[Testing Triggers](#testing-triggers)** -- this will lead you through how to use duckpan, our command-line utility, to test the plugins that you've written and make sure your triggers are working properly.
14
15Steps 1-3 complete the back-end portion of the Spice development process. These steps contain all of the relevant information pertaining to the Perl piece of the plugin and teach you how to make the system trigger your plugin. Once you've mastered this process, it's time to move on to the front-end documentation, which shows you how to construct the JavaScript part of your plugin that will run in the browser and set your plugin's style.
duckduck.go git://github.com/ajanicij/goduckgo.git | Go | 112 lines
94	query_enc := url.QueryEscape(query)
95	ddgurl := fmt.Sprintf("http://api.duckduckgo.com?q=%s&format=json&pretty=1", query_enc)
96	resp, err := http.Get(ddgurl)
BETA.md https://github.com/robertbrook/zeroclickinfo-spice.git | Markdown | 172 lines
1# DuckDuckHack in Public Beta
2
3The new version of DuckDuckGo has launched public beta.
4
5The DuckDuckHack platform is undergoing changes to support the new
6features, and you can help!
7
8The focus so far has been on the zeroclickinfo-spice API which has changed in some
9significant ways.  At DuckDuckGo we have converted many of the Spice Instant
10Answers, but there is still much to do!
11
12Over the next few days, we will make a series of posts walking through in
13detail the anatomy of a Spice, and creating issues in the zeroclickinfo-spice
14repo tagged with `bttf`.
15
.keysnail.js https://bitbucket.org/bamanzi/misc-utils | JavaScript | 1,615 lines
1// ========================== KeySnail Init File =========================== //
2
3// You can preserve your code in this area when generating the init file using GUI.
4// Put all your code except special key, set*key, hook, blacklist.
5// ========================================================================= //
6//{{%PRESERVE%
7//* PRESERVE
8
9//** Use Fox Splitter addon to mimic C-x 1/2/3 stuff
10ext.add("other-window", function() {
11    function focusSubBrowserById(aId) {
12        SplitBrowser.getSubBrowserById(aId).browser.contentWindow.focus();
13    }
14
15    var browsers = SplitBrowser.browsers;
responses.yml https://github.com/ehsan/zeroclickinfo-goodies.git | YAML | 179 lines
1# If the text and HTML versions can be reasonably generated from the same format
2# use base_format.  If info_url is included, the words surrounded with [] will be linked
3# in the HTML version.  The url will be appended to the text version.
4#
5# Otherwise, include both text and html keys.
6#
7# If more than one keyword applies, add an aliases key with an array ref of string aliases.
8---
9about:
10  base_format: "DuckDuckGo's [about page]"
11  info_url: https://duckduckgo.com/about
12ads:
13  aliases:
14    - businessmodel
15    - advertisements
responses.yml https://github.com/eladab/zeroclickinfo-goodies.git | YAML | 179 lines
1# If the text and HTML versions can be reasonably generated from the same format
2# use base_format.  If info_url is included, the words surrounded with [] will be linked
3# in the HTML version.  The url will be appended to the text version.
4#
5# Otherwise, include both text and html keys.
6#
7# If more than one keyword applies, add an aliases key with an array ref of string aliases.
8---
9about:
10  base_format: "DuckDuckGo's [about page]"
11  info_url: https://duckduckgo.com/about
12ads:
13  aliases:
14    - businessmodel
15    - advertisements
responses.yml https://github.com/zoracon/zeroclickinfo-goodies.git | YAML | 212 lines
1# If the text and HTML versions can be reasonably generated from the same format
2# use base_format.  If info_url is included, the words surrounded with [] will be linked
3# in the HTML version.  The url will be appended to the text version.
4#
5# Otherwise, include both text and html keys.
6#
7# If more than one keyword applies, add an aliases key with an array ref of string aliases.
8---
9about:
10  base_format: "DuckDuckGo's [about page]"
11  info_url: https://duckduckgo.com/about
12ads:
13  aliases:
14    - businessmodel
15    - advertisements
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21