PageRenderTime 70ms queryFilters 0ms Sphinxql 68ms GetByIds 164ms meta 0ms repositoryFilters 39ms languageFilters 0ms sourceFilters 0ms

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

Source

Language

Repository

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=',
atom.xml https://github.com/treyhunner/treyhunner.github.com.git | XML | 1,171 lines
1<?xml version="1.0" encoding="utf-8"?>
2<feed xmlns="http://www.w3.org/2005/Atom">
3
4  <title><![CDATA[Trey Hunner]]></title>
5  <link href="http://treyhunner.com/atom.xml" rel="self"/>
6  <link href="http://treyhunner.com/"/>
7  <updated>2014-06-16T18:24:10-07:00</updated>
8  <id>http://treyhunner.com/</id>
9  <author>
10    <name><![CDATA[Trey Hunner]]></name>
11    
12  </author>
13  <generator uri="http://octopress.org/">Octopress</generator>
14
15  
Snow.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 79 lines
1package DDG::Spice::Snow;
2# ABSTRACT: Shows weather conditions for cities
3
4use strict;
5use DDG::Spice;
6
7primary_example_queries "is it snowing?";
8secondary_example_queries "is it snowing in New York City?";
9description "Check weather conditions at your location";
10name "Snow";
11icon_url "/icon16.png";
12source "Is it snowing yet?";
13code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Snow.pm";
14topics "everyday";
15category "facts";
README git://pkgs.fedoraproject.org/surfraw | Unknown | 371 lines
1
2        Surfraw - Shell Users' Revolutionary Front Rage Against the Web
3
4Home Page: http://surfraw.alioth.debian.org
5
6        ______  _     _  ______   _______  ______   _______  _  _  _
7       / _____)(_)   (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_)
8      ( (____   _     _  _____) ) _____    _____) ) _______  _  _  _
9       \____ \ | |   | ||  __  / |  ___)  |  __  / |  ___  || || || |
10       _____) )| |___| || |  \ \ | |      | |  \ \ | |   | || || || |
11      (______/  \_____/ |_|   |_||_|      |_|   |_||_|   |_| \_____/
12
13   Surfraw - Shell Users' Revolutionary Front Rage Against the Web
14		 New: http://surfraw.alioth.debian.org
15		 Old: http://surfraw.sourceforge.net/
ChangeLog git://pkgs.fedoraproject.org/surfraw | Unknown | 637 lines
12011-07-11  Ian Beckwith  <ianb@erislabs.net>
2
3	* netbsd: fix normal & mail search.
4	  google custom searches were complaining I was a bot, so I
5	  switched to normal google searches with
6	  site:{mail-index,}.netbsd.org.
7	* cia: fix search URL
8
92011-06-17  Ian Beckwith  <ianb@erislabs.net>
10
11	* arxiv: fix -scope=author with single-word queries.
12	  Thanks to Nikos Apostolakis.
13	* btw, note about entry below, netbsd make *does*
14	  support '$<', but only in suffix rules.
15
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 https://bitbucket.org/kisom/surfraw-devel.git | Unknown | 377 lines
1
2        Surfraw - Shell Users' Revolutionary Front Rage Against the Web
3
4Home Page: http://surfraw.alioth.debian.org
5
6        ______  _     _  ______   _______  ______   _______  _  _  _
7       / _____)(_)   (_)(_____ \ (_______)(_____ \ (_______)(_)(_)(_)
8      ( (____   _     _  _____) ) _____    _____) ) _______  _  _  _
9       \____ \ | |   | ||  __  / |  ___)  |  __  / |  ___  || || || |
10       _____) )| |___| || |  \ \ | |      | |  \ \ | |   | || || || |
11      (______/  \_____/ |_|   |_||_|      |_|   |_||_|   |_| \_____/
12
13   Surfraw - Shell Users' Revolutionary Front Rage Against the Web
14		 New: http://surfraw.alioth.debian.org
15		 Old: http://surfraw.sourceforge.net/
spice.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 48 lines
1
2
3/*
4 This is the function you define.
5
6To see a live example of what this function produces, check out:
7 http://duckduckgo.com/?q=is+it+raining+in+philadelphia
8
9Here is the flow (as laid out in the ../example.html file
10
111) The external API is called through our servers, e.g.
12   http://duckduckgo.com/ir/Phialadelphia
13
142) The API call returns JSON wrapped in a callback function, i.e. JSONP.
15
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
bookmarks.html https://bitbucket.org/ntraft/dotfiles | HTML | 382 lines
1<!DOCTYPE NETSCAPE-Bookmark-file-1>
2<!-- This is an automatically generated file.
3     It will be read and overwritten.
4     DO NOT EDIT! -->
5<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
6<TITLE>Bookmarks</TITLE>
7<H1>Bookmarks Menu</H1>
8
9<DL><p>
10    <DT><A HREF="place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&sort=12&excludeQueries=1&excludeItemIfParentHasAnnotation=livemark%2FfeedURI&maxResults=10&queryType=1">Recently Bookmarked</A>
11    <DT><A HREF="place:sort=14&type=6&maxResults=10&queryType=1">Recent Tags</A>
12    <DT><H3 ADD_DATE="1325958071" LAST_MODIFIED="1325958072">Quicksearches</H3>
13<DD>Search fields with keywords attached to them.  To search one of these sites, simply type one of these keywords into the URL bar, followed by the search string.
14    <DL><p>
15        <DT><A HREF="http://www.google.com/search?hl=en&q=%s" ADD_DATE="1325958072" LAST_MODIFIED="1325958072" SHORTCUTURL="g">Google</A>
Audio.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 20 lines
1package DDG::Spice::Dictionary::Audio;
2# ABSTRACT: Get audio file for pronounciation of a word
3
4use strict;
5use DDG::Spice;
6
7attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
8            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
9
10spice to => 'http://api.wordnik.com/v4/word.json/$1/audio?limit=10&useCanonical=false&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11triggers any => "///***never_trigger***///";
12spice proxy_cache_valid => "418 1d";
13
14handle remainder => sub {
15    return $_ if $_;
Hyphenation.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 19 lines
1package DDG::Spice::Dictionary::Hyphenation;
2# ABSTRACT: Get hyphenation of a word
3
4use strict;
5use DDG::Spice;
6
7attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
8            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
9
10spice to => 'http://api.wordnik.com/v4/word.json/$1/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11triggers startend => "///***never trigger***///";
12
13handle query_lc => sub {
14    return $_ if $_;
15    return;
Reference.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 21 lines
1package DDG::Spice::Dictionary::Reference;
2# ABSTRACT: Used to get the definition of the singular form for plural queries
3
4use strict;
5use DDG::Spice;
6
7attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
8            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
9
10spice to => 'http://api.wordnik.com/v4/word.json/$1/definitions?includeRelated=true&includeTags=true&limit=3&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11spice proxy_cache_valid => '200 30d';
12
13triggers startend => "///***never trigger***///";
14
15handle query_lc => sub {
Pronunciation.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 19 lines
1package DDG::Spice::Dictionary::Pronunciation;
2# ABSTRACT: Get pronounciation information of a word
3
4use strict;
5use DDG::Spice;
6
7attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
8            twitter => ['http://twitter.com/duckduckgo', 'DuckDuckGo'];
9
10spice to => 'http://api.wordnik.com/v4/word.json/$1/pronunciations?limit=1&useCanonical=false&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
11triggers any => "///***never_trigger***///";
12
13handle remainder => sub {
14    return $_ if $_;
15    return;
CONTRIBUTING.md https://github.com/robertbrook/zeroclickinfo-spice.git | Markdown | 84 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
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
4use strict;
5use DDG::Spice;
6
7primary_example_queries "17x23dNjXJLzGMev6R63uyRhMWP1VHawKc", "1Gn2dRFqouUHvuWPVhriCDtP3qVQc59WHy", "3QJmV3qfvL9SuYo34YihAf3sRCW3qSinyC";
8description "Display the balance of a Bitcoin address";
9name "Bitcoin Address Balance";
10source "http://chain.com";
11code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBalance.pm";
12topics "economy_and_finance";
13category "finance";
14icon_url "https://chain.com/chain32x32.ico";
15
CONTRIBUTING.md git://github.com/duckduckgo/zeroclickinfo-spice.git | Markdown | 48 lines
1<p align="center">
2  <img src="https://pbs.twimg.com/profile_images/542062260600840192/nK5NSKBY_400x400.png" height="180px" width="180px" alt="ddg logo" />
3</p>
4
5<p align="center">
6  <a href="https://duckduckhack.com/contributing.html">>> DUCKDUCKHACK CONTRIBUTING.MD <<</a>
7</p>
8  
9<p align="center">This document is hosted on our community website. Please use above link or the table of contents below.</p>
10
11* * *
12
13# In Maintenance
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).
2014-01-29-programming-with-minimum-number-of-dependencies.textile https://github.com/tkareine/tkareine.github.com.git | Unknown | 36 lines
1---
2layout: post
3title: Programming with minimum number of dependencies
4date: 2014-01-29T21:40+02
5published: true
6comments: true
7---
8
9When you're concentrating on the essentials of your current programming task, you'll want to avoid sidetracks as much as possible. Encounter a tricky subtask and you'll start searching the web for a 3rd party code solving it for you. When you're introducing additional dependencies without much further thought, you're not considering their burden on maintenance.
10
11How often do you check for outdated dependencies (and actually do upgrade, doing all the required client side changes)? Do you have local modifications to any of the dependencies (I hope not, but if you do, how do you track the modifications in order to reapply them)? Once you've updated the dependencies, how do you make sure your code still works as intended (how comprehensive are your tests)? And then there's the hell of library incompatibilities.
12
13You can think that dependencies are like loans you'll have to take care of for the whole lifespan of the project. The interest rate varies for each dependency, so it pays off to justify having each of them.
14
15Sometimes, you can go a surprisingly long way without additional dependencies. I take occasional delight in programming with as few library dependencies as possible.[1] It's fun for the challenge, and it makes you think about your design.
README.md git://github.com/robbyrussell/oh-my-zsh.git | Markdown | 74 lines
1## Introduction
2
3> Searches for your frontend web development made easier
4
5## Installation
6
7Open your `~/.zshrc` file and enable the `frontend-search` plugin:
8
9```zsh
10
11plugins=( ... frontend-search)
12
13```
14
15## Usage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20