PageRenderTime 11ms queryFilters 0ms Sphinxql 26ms app.CodeModel.GetByIds 6ms findMatchingLines 13ms GetByIds 19ms meta 0ms repositoryFilters 7ms languageFilters 0ms sourceFilters 0ms

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

Source

Language

Repository

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
Golf.pm https://github.com/pombredanne/zeroclickinfo-spice.git | Perl | 1,017 lines
1package DDG::Spice::ESPN::Golf;
2
3use DDG::Spice;
4use Time::localtime;
5
6description "News and stats for golf players";
7name "ESPN Golf";
8primary_example_queries "Tiger Woods", "Jeff Maggert";
9topics "entertainment", "special_interest";
10category "reference";
11code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/ESPN/Golf.pm";
12attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
13            twitter => ['http://twitter.com/duckduckgo', 'duckduckgo'];
14
15my %leagues = (
Quixey.pm https://github.com/robertbrook/zeroclickinfo-spice.git | Perl | 116 lines
1package DDG::Spice::Quixey;
2
3use DDG::Spice;
4use JSON;
5use String::Trim;
6use List::Uniq ':all';
7
8primary_example_queries "flight tracking app", "quixey angry birds";
9secondary_example_queries "free calculator app", "tiny piano for iphone";
10description "Search for mobile apps";
11name "Quixey App Search";
12source "Quixey";
13code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Quixey.pm";
14icon_url "/i/www.quixey.com.ico";
15category "entertainment";
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";
abrasion.py https://github.com/michaelgrosner/Abrasion.git | Python | 235 lines
1#!/usr/bin/env python
2
3from BeautifulSoup import *
4import urllib2, datetime, re, json, sys, getopt
5
6def socialSearch(search_term, extra_params=False, api='facebook', nresults=10, followLinks=True, output='p'):
7	if nresults > 100 and api == 'twitter':
8		raise Exception('Please specify less than 100 results')
9		
10	urlregex = r"https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?"
11	social_rules = {'twitter':  ['http://search.twitter.com/search.json?q=',      # Base link to api
12															 'results', 'text',                               # json dict handlers
13															 'rpp',                                           # key for nresults
14															 lambda url: re.compile(urlregex).findall(url)],  # URL extractor
15									'facebook': ['https://graph.facebook.com/search?q=',
responses.yml https://github.com/charles-l/zeroclickinfo-goodies.git | YAML | 242 lines
1# If the text and HTML versions can be reasonably generated from the same format
2# use title.  If info_url is included, the words surrounded with  will be linked
3#
4# in the HTML version.  The url will be appended to the text version.
5#
6# Otherwise, include both text and html keys.
7#
8# If more than one keyword applies, add an aliases key with an array ref of string aliases.
9---
10about:
11  title: "Want to know more about us?"
12  subtitle: "Visit our About page"
13  url: https://duckduckgo.com/about
14ads:
15  aliases:
helm-net.el https://github.com/DeltaAlphaRho/.emacs.d.git | Emacs Lisp | 607 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
CONTRIBUTING.md https://github.com/ehsan/zeroclickinfo-spice.git | Markdown | 83 lines
1# Contributing to the **Spice** repository
2
3
4At DuckDuckGo, we truly appreciate our community members taking the time to
5contribute to our open-source repositories. In an effort to ensure
6contributions are easy for you to make and for us to manage, we have written
7some guidelines that we ask our contributors to follow so that we can handle
8pull requests in a timely manner with as little friction as possible.
9
10### BETA
11
12The new version of DuckDuckGo has launched public beta!
13See the [what's new](https://github.com/duckduckgo/zeroclickinfo-spice/blob/bttf/BETA.md) for the current status and how you can contribute
14to converting the Spice Instant Answers to the new API !
15
CONTRIBUTING.md https://github.com/eladab/zeroclickinfo-spice.git | Markdown | 83 lines
1# Contributing to the **Spice** repository
2
3
4At DuckDuckGo, we truly appreciate our community members taking the time to
5contribute to our open-source repositories. In an effort to ensure
6contributions are easy for you to make and for us to manage, we have written
7some guidelines that we ask our contributors to follow so that we can handle
8pull requests in a timely manner with as little friction as possible.
9
10### BETA
11
12The new version of DuckDuckGo has launched public beta!
13See the [what's new](https://github.com/duckduckgo/zeroclickinfo-spice/blob/bttf/BETA.md) for the current status and how you can contribute
14to converting the Spice Instant Answers to the new API !
15
helm-net.el https://bitbucket.org/tkota_ee/.emacs.d.git | Emacs Lisp | 577 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2018 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/pokeba/emacs.d.git | Emacs Lisp | 577 lines
1;;; helm-net.el --- helm browse url and search web. -*- lexical-binding: t -*-
2
3;; Copyright (C) 2012 ~ 2018 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/Share-OpenSource/golang-stuff.git | Markdown | 257 lines
1# gocrawl
2
3gocrawl is a polite, slim and concurrent web crawler written in Go.
4
5## Features
6
7*    Full control over the URLs to visit, inspect and query (using a pre-initialized [goquery][] document)
8*    Crawl delays applied per host
9*    Obedience to robots.txt rules (using the [robotstxt.go][robots] library)
10*    Concurrent execution using goroutines
11*    Configurable logging
12*    Open, customizable design providing hooks into the execution logic
13
14## Installation and dependencies
15
duckduck_password.rb https://github.com/lttlrck/q.git | Ruby | 139 lines
1##
2# This file is part of the Metasploit Framework and may be subject to
3# redistribution and commercial restrictions. Please see the Metasploit
4# Framework web site for more information on licensing and terms of use.
5# http://metasploit.com/framework/
6##
7
8# The most useful and interesting feature of this module is the way the 
9# loot file gets appended to, rather than rewritten. Might be use for
10# this technique in other modules that gather loot.
11
12require 'msf/core'
13
14class Metasploit3 < Msf::Auxiliary
15
how_to_qa.md https://github.com/DavidMascio/duckduckgo-documentation.git | Markdown | 132 lines
1# How to QA an Instant Answer
2
3Our goal is to have a great instant answer for every search. When a developer submits a new instant answer, it must first be thoroughly reviewed by our community and internal staff before going live on DuckDuckGo.
4Please use the following guide when QA-ing instant answers:
5
6## Everyone (Reviewing Quality):
7
8### What's an instant answer made of?
9
101. Some code
112. A data source (like a website)
12
13### How do they work?
14
15Instant answers are a bundle of code that make information from one source available directly on DuckDuckGo. Anyone can suggest them and anyone can create them!
functions.php https://bitbucket.org/lpservice-it/ljmc.git | PHP | 1,025 lines
1<?php
2/*
3	This is the primary set of functions used to calculate the statistics, they are available for other developers to call.
4	
5	NOTE:  Many of the functions return an MySQL result object, using this object like a variable (ie. echo $result) will output 
6		   the number of rows returned, but you can also use it an a foreach loop to to get the details of the rows.
7*/
8
9	// This function returns the current users online.
10	function ljmc_statistics_useronline() {
11		
12		global $ljmcdb;
13		
14		return $ljmcdb->query("SELECT * FROM {$ljmcdb->prefix}statistics_useronline");
15	}
projects.txt https://github.com/pombredanne/ghtorrent.org.git | Unknown | 3,399 lines
101org appframework
201org rib
301org web-simulator
40xd34df00d leechcraft
510gen-labs mongo-web-shell
610up varying-vagrant-vagrants
71602 compound
81602 jugglingdb
923 resumable.js
102600hz kazoo
114teamwork ftw.contentpage
124teamwork opengever.core
13A24Group ssGWT-lib
14abarisain dmix
15Abhoryo APYDataGridBundle
IsItUp.t https://github.com/aembleton/zeroclickinfo-spice.git | Perl | 31 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        is_cached => 0
README.md https://github.com/webdesignsolutions/jddg.git | Unknown | 59 lines
1# Duck Duck Go Zero Info search box
2I always wanted to do a jQuery plugin. Now, it's done !
3
4This is a jQuery plugin for [Duck Duck Go Zero-click Info API](https://duckduckgo.com/api.html).
5For those who are not familiar with [Duck Duck Go](https://duckduckgo.com/), it's my new favorite search engine. Go try it !
6
7It provides a box with some basic info (like... From wolfram alpha, wikipedia etc.).
8
9I will make some tests to make it better (but I don't like tests... Sorry) and add more parameters soon.
10Stay tuned !
11
12And don't forget to use [Duck Duck Go](https://duckduckgo.com/) !
13## I want to use it (like a boss)
14First, include [jQuery](http://jquery.com/).
15Then, get the plugin and include it.
CONTRIBUTING.md https://github.com/elebow/zeroclickinfo-fathead.git | Markdown | 71 lines
1# Contributing to the **Fathead** repository
2
3At DuckDuckGo, we truly appreciate our community members taking the time to contribute to our open-source repositories. In an effort to ensure contributions are easy for you to make and for us to manage, we have written some guidelines that we ask our contributors to follow so that we can handle pull requests in a timely manner with as little friction as possible.
4
5## Getting Started
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
9## Submitting a **Bug** or **Suggestion**
10
11- Firstly, please make sure the bug is related to the **Fathead** 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
13- Check the **Fathead** [issues](https://github.com/duckduckgo/zeroclickinfo-fathead/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 **Fathead** repository
15    - Clearly describe the bug/improvemnt, including steps to reproduce when it is a bug
CONTRIBUTING.md https://github.com/gdrooid/zeroclickinfo-goodies.git | Markdown | 71 lines
1# Contributing to Goodie
2
3At DuckDuckGo, we truly appreciate our community members taking the time to contribute to our open-source repositories. In an effort to ensure contributions are easy for you to make and for us to manage, we have written some guidelines that we ask our contributors to follow so that we can handle pull requests in a timely manner with as little friction as possible.
4
5## Getting Started
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
9## Submitting a **Bug** or **Suggestion**
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
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
15    - Clearly describe the bug/improvemnt, including steps to reproduce when it is a bug
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21