PageRenderTime 433ms queryFilters 1ms Sphinxql 154ms GetByIds 88ms meta 0ms repositoryFilters 106ms languageFilters 0ms sourceFilters 0ms

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

Source

Language

Repository

Hyphenation.pm https://github.com/robertbrook/zeroclickinfo-spice.git | Perl | 17 lines
1package DDG::Spice::Dictionary::Hyphenation;
2
3use DDG::Spice;
4
5attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
6            twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
7
8spice to => 'http://api.wordnik.com/v4/word.json/$1/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
9triggers startend => "///***never trigger***///";
10
11handle query_lc => sub {
12    return $_ if $_;
13    return;
14};
15
Reference.pm https://github.com/robertbrook/zeroclickinfo-spice.git | Perl | 17 lines
1package DDG::Spice::Dictionary::Reference;
2
3use DDG::Spice;
4
5attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
6            twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
7
8spice 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}}';
9triggers startend => "///***never trigger***///";
10
11handle query_lc => sub {
12    return $_ if $_;
13    return;
14};
15
Pronunciation.pm https://github.com/robertbrook/zeroclickinfo-spice.git | Perl | 17 lines
1package DDG::Spice::Dictionary::Pronunciation;
2
3use DDG::Spice;
4
5attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
6            twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
7
8spice to => 'http://api.wordnik.com/v4/word.json/$1/pronunciations?limit=1&useCanonical=false&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
9triggers any => "///***never_trigger***///";
10
11handle remainder => sub {
12    return $_ if $_;
13    return;
14};
15
Hyphenation.pm https://github.com/heytitle/zeroclickinfo-spice.git | Perl | 17 lines
1package DDG::Spice::Dictionary::Hyphenation;
2
3use DDG::Spice;
4
5attribution web => ['http://duckduckgo.com', 'DuckDuckGo'],
6            twitter => ['http://twitter.com/duckduckgo', '@duckduckgo'];
7
8spice to => 'http://api.wordnik.com/v4/word.json/$1/hyphenation?includeRelated=true&api_key={{ENV{DDG_SPICE_WORDNIK_APIKEY}}}&callback={{callback}}';
9triggers startend => "///***never trigger***///";
10
11handle query_lc => sub {
12    return $_ if $_;
13    return;
14};
15
BitcoinBalance.pm https://github.com/robertbrook/zeroclickinfo-spice.git | Perl | 34 lines
1package DDG::Spice::BitcoinBalance;
2# ABSTRACT: Displays the balance of a Bitcoin address from the Chain.com API.
3
4use DDG::Spice;
5
6primary_example_queries "17x23dNjXJLzGMev6R63uyRhMWP1VHawKc", "1Gn2dRFqouUHvuWPVhriCDtP3qVQc59WHy", "3QJmV3qfvL9SuYo34YihAf3sRCW3qSinyC";
7description "Display the balance of a Bitcoin address";
8name "Bitcoin Address Balance";
9source "http://chain.com";
10code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBalance.pm";
11topics "economy_and_finance";
12category "finance";
13icon_url "https://chain.com/chain32x32.ico";
14
15attribution github => ['https://github.com/chain-engineering','chain.com'],
home.tpl https://github.com/uloga/DaveDaveFind.git | Unknown | 81 lines
1<!DOCTYPE html>
2<html itemscope itemtype="http://schema.org/Product">
3<head>
4    <script src="/styles/jquery-1.7.2.min.js" type="text/javascript"></script>
5    <script src="/styles/bootstrap.js" type="text/javascript"></script>
6
7    <link rel="stylesheet" href="/styles/bootstrap.css" type="text/css">
8    <link rel="stylesheet" href="/styles/home.css" type="text/css">
9
10    <meta itemprop="name" content="DaveDaveFind">
11    <meta itemprop="image" content="http://davedavefind.appspot.com/">
12    <meta name="viewport" content="width=device-width, initial-scale=1.0">
13
14    <title>DaveDaveFind</title>
15    <script type="text/javascript">
urlfilter.ini https://bitbucket.org/archin/smartadsblocker | Unknown | 5,256 lines
1# Fanboy's Adblock list (Opera)
2# Opera Türkiye Ekibinin Düzenlemesiyle
3# License: http://creativecommons.org/licenses/by/3.0/
4# Email: fanboyadblock@googlegroups.com Project homepage: http://fanboy.co.nz/
5# Web Page: http://www.operaturkiye.net
6#
7# save this urlfilter.ini file into,
8#
9# XP: C:\Documents and Settings\...\Application Data\Opera\Opera\
10# Vista: C:\Users\<username>\AppData\Roaming\Opera\Opera\
11# Linux: ~/.opera/
12# OSX: /Users/<username>/Library/Preferences/Opera Preferences/
13#
14[prefs]
15prioritize excludelist=1
spice.js https://github.com/mikeedwards83/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
spice.js https://github.com/mikeedwards83/zeroclickinfo-spice.git | JavaScript | 62 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
Shorten.pm https://github.com/robertbrook/zeroclickinfo-spice.git | Perl | 29 lines
1package DDG::Spice::Shorten;
2# ABSTRACT: Return a shortened version of a URL using the bitly API.
3
4use DDG::Spice;
5
6primary_example_queries "shorten http://www.duckduckgo.com/about.html";
7secondary_example_queries "url shorten www.github.com/explore";
8description "Shorten URLs using the is.gd API";
9name "Shorten";
10icon_url "/i/is.gd.ico";
11source "Shorten";
12code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Shorten.pm";
13topics "social";
14category "computing_tools";
15attribution github => ['https://github.com/danjarvis','Dan Jarvis'],
vc_without_m.md https://github.com/raganwald-deprecated/homoiconic.git | Markdown | 161 lines
1MVC, PVC and (¬M)VC
2===
3
4**preamble**
5
6This essay gives some background on two separate architecture patterns: The separation of domain logic from application logic, and the implementation of an application using the model-view-controller ("MVC") pattern. The integration of the two patterns is discussed and two alternatives to MVC are described. In the first alternative, the models in the application are proxies for resources in the domain logic server. In the second alternative, the application's controllers make RESTful calls directly to the domain logic server omitting models entirely.
7
8This essay's thesis is that when separating domain logic from application logic, domain logic can be implemented as a RESTful domain logic server. When doing so, the application can be implemented as an application server with models replaced by proxies to the domain server's resources such as with ActiveResource in Rails.
9
10The application can also be implemented as a single page interface in JavaScript. SPI applications can use the PVC architecture to create proxies. In simple, coarse-grained cases, SPI applications can forgo models and tightly couple the controllers to the domain logic server, a practice known as the (¬M)VC architecture. MVC and/or PVC is a better fit for SPI applications that are fine-grained and resemble desktop applications rather than web applications.
11
12**a long and barely relevant anecdote** (feel free to skip this or come back to it later)
13
14A long time ago, I worked on the development of a Java programming tool called JProbe Threadalyzer. Threadalyzer instrumented some running Java code and watched it for certain patterns of behaviour that indicated the possible presence of a threading bug. For example, if one thread were to obtain locks A and B in that order before accessing a shared resource and then at a later time any thread were to obtain locks B and A in that order (note the difference), Threadalyzer would alert the programmer that there was a possible bug. Although the code did not enter a deadlock, *if* two different threads were to try to obtain locks A, B, and B, A there might be a deadlock where one thread held A while waiting for B and another held B while waiting for A.
15
Namecheap.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 66 lines
1package DDG::Spice::Namecheap;
2# ABSTRACT: Queries Namecheap for available domain names.
3
4use DDG::Spice;
5use Data::Validate::Domain qw(is_domain);
6use List::Util qw(pairmap);
7use URI::Escape;
8use DDG::Util::SpiceConstants;
9
10spice proxy_cache_valid => '418 1d';
11
12my $namecheap_endpoint = 'http://api.namecheap.com/xml.response';
13
14# environment variables:
15# DDG_SPICE_NAMECHEAP_USERNAME : Namecheap API username
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
4use strict;
5use DDG::Spice;
6
7primary_example_queries "0e40627940d835d7154dcce33d6755f7ec40c7cc9e88d86291a971567bcd7ea7",
8                        "b1956e97661f91ab020f97dff96b8043602dcbdc23d0825f790b521221bef1f5",
9                        "b6f952bcb5e0f2da3726f7ecc1101afcc18248229ea57abcca7e2542f323ae7d";
10
11description "Display information about a Bitcoin Transaction";
12name "Bitcoin Transaction Info";
13source "https://api.biteasy.com";
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinTransaction.pm";
15topics "economy_and_finance";
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
4use strict;
5use DDG::Spice;
6
7primary_example_queries "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
8                        "1Biteasym3p5E4soZq8So6NjkjYugEnz2X",
9                        "1J6EZsQLTppftPTbqYbbRDYFJMW5Ex3Bqi";
10
11description "Display information about a Bitcoin Address";
12name "Bitcoin Address Info";
13source "https://api.biteasy.com";
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinAddress.pm";
15topics "economy_and_finance";
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
4use strict;
5use DDG::Spice;
6
7primary_example_queries "000000000000000000935d5053d80266447a6cc180e488bbb85675ca61cddfe7",
8                        "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
9                        "000000000000000040cd080615718eb68f00a0138706e7afd4068f3e08d4ca20";
10
11description "Display information about a Bitcoin block";
12name "Bitcoin Block Info";
13source "https://api.biteasy.com";
14code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/BitcoinBlock.pm";
15topics "economy_and_finance";
debug.py https://bitbucket.org/johndistasio/links-python | Python | 24 lines
1"""
2Debug methods for use during testing.
3"""
4import json
5
6def return_link():
7    link = '{ "link_id": 1, "user_link_id": 1, "url": "http://www.google.com", "tags": [ "search", "google", "favorites" ] }'
8    return link
9
10def return_links_p():
11    """
12    Returns links as a python object:
13    
14    {
15        "links" :
Geteventid.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 42 lines
1package DDG::Spice::Songkick::Geteventid;
2# ABSTRACT: Get concerts for an artist through Songkick
3
4use strict;
5use warnings;
6use DDG::Spice;
7
8name "Songkick Events";
9description "See upcoming concerts.";
10source "Songkick";
11primary_example_queries "concerts in Boston";
12secondary_example_queries "Boston concerts";
13category "entertainment";
14topics "entertainment", "everyday", "music";
15# FIXME Point to the duckduckgo repository on pull.
Getartistid.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 37 lines
1package DDG::Spice::Songkick::Getartistid;
2# ABSTRACT: Get similar artists for an artist
3
4use strict;
5use warnings;
6use DDG::Spice;
7
8name "Songkick Artists";
9description "Find similar artists.";
10source "Songkick";
11primary_example_queries "artists like Fleetwood Mac";
12secondary_example_queries "artists similar to Eric Clapton";
13category "entertainment";
14topics "entertainment", "everyday", "music";
15# FIXME Point to the duckduckgo repository on pull.
search.py git://github.com/sbp/phenny.git | Python | 265 lines
1#!/usr/bin/env python
2"""
3search.py - Phenny Web Search Module
4Copyright 2008-9, Sean B. Palmer, inamidst.com
5Licensed under the Eiffel Forum License 2.
6
7http://inamidst.com/phenny/
8"""
9
10import re
11import web
12
13class Grab(web.urllib.URLopener):
14   def __init__(self, *args):
15      self.version = 'Mozilla/5.0 (Phenny)'
package.json https://github.com/jloiola/shack-api.git | Unknown | 45 lines
1{
2  "name": "keep-alive-agent",
3  "version": "0.0.1",
4  "description": "a keep-alive agent for http and https",
5  "contributors": [
6    {
7      "name": "C J Silverio",
8      "email": "ceejceej@gmail.com",
9      "url": "http://ceejbot.tumblr.com/"
10    },
11    {
12      "name": "Danny Coates",
13      "email": "dannycoates@gmail.com",
14      "url": "https://github.com/dannycoates/"
15    }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20