PageRenderTime 95ms queryFilters 0ms Sphinxql 172ms GetByIds 187ms meta 0ms repositoryFilters 1ms languageFilters 0ms sourceFilters 0ms

394 results for 'api.duckduckgo.com' (95 ms)

Source

Language

Repository

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-->
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
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
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,'');
.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;
ubiquity.js https://github.com/cosimo/ubiquity-opera.git | JavaScript | 1,411 lines
1// -------------------------------------
2// ==UserScript==
3// @name Ubiquity for Opera
4// @author Cosimo Streppone
5// @ujs:modified 2010-10-22
6// ==/UserScript==
7// -------------------------------------
8//
9
10(function (opera) {
11    if (! opera) return;
12
13    // -----------------------------------------------
14    //
15    //       Firefox Ubiquity emulation layer
wot.js https://bitbucket.org/_PH_/opera-userjs | JavaScript | 1,993 lines
1// ==UserScript== 
2// @name WOT For Opera
3// @author PH
4// @namespace http://my.opera.com/PH`/about/
5// @version 0.964
6// @description : displays a WOT logo near results on some search engines
7// @description : supported search engines : Google.com, Yahoo.com, Exalead.fr, Ask.com, Lemoteur.fr, orange.fr, voila.fr, seek.fr, altavista.com, netscape.com, bing.com, alltheweb.com, yandex.ru, yebol.com, baidu.com, yauba.com, greenmaven.com, ecocho.eu, goodtree.com, ethicle.com, clusty.com, dogpile.com, www.metacrawler.com, cuil.com, Lycos, Mugurdy.com, Blackle.com, Rambler.ru, Naver.com, Sapo.pt, Search.ch, Miner.hu, Najdi.si
8// @description : social bookmarkers supported: digg.com, delicious.com, Stumbleupon.com, blogmarks.net, yoolink.fr, Wikio, Technorati, Sphere.com
9// @ujs:category browser: enhancements 
10// @ujs:published 2009-11-07 10:00
11// @ujs:modified 2010-07-25 21:00
12// @ujs:documentation N/A
13// @ujs:download
14// @include http://*
15// @exclude http://localhost/*
helm-net.el https://github.com/jwiegley/dot-emacs.git | Lisp | 608 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
helm-net.el https://gitlab.com/glor/.dots.git | Lisp | 564 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2015 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
helm-net.el https://bitbucket.org/sakito/dot.emacs.d/ | Lisp | 527 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2016 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
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
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.
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
completion_engines.coffee git://github.com/philc/vimium.git | CoffeeScript | 179 lines
1
2# A completion engine provides search suggestions for a custom search engine.  A custom search engine is
3# identified by a "searchUrl".  An "engineUrl" is used for fetching suggestions, whereas a "searchUrl" is used
4# for the actual search itself.
5#
6# Each completion engine defines:
7#
8#   1. An "engineUrl". This is the URL to use for search completions and is passed as the option "engineUrl"
9#      to the "BaseEngine" constructor.
10#
11#   2. One or more regular expressions which define the custom search engine URLs for which the completion
12#      engine will be used. This is passed as the "regexps" option to the "BaseEngine" constructor.
13#
14#   3. A "parse" function. This takes a successful XMLHttpRequest object (the request has completed
15#      successfully), and returns a list of suggestions (a list of strings).  This method is always executed
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
IsItUp.t git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 53 lines
1#!/usr/bin/env perl
2
3use strict;
4use warnings;
5use Test::More;
6use DDG::Test::Spice;
7use utf8;
8
9ddg_spice_test(
10    [qw( DDG::Spice::IsItUp )],
11    'is duckduckgo.com up' => test_spice(
12        '/js/spice/is_it_up/duckduckgo.com',
13        call_type => 'include',
14        caller => 'DDG::Spice::IsItUp',
15    ),
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)
Quixey.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 122 lines
1package DDG::Spice::Quixey;
2# ABSTRACT: Search for apps for mobile devices
3
4use strict;
5use DDG::Spice;
6use JSON;
7use Text::Trim;
8use List::Uniq ':all';
9
10primary_example_queries "flight tracking app", "quixey angry birds";
11secondary_example_queries "free calculator app", "tiny piano for iphone";
12description "Search for mobile apps";
13name "Quixey App Search";
14source "Quixey";
15code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Quixey.pm";
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20