PageRenderTime 250ms queryFilters 1ms Sphinxql 214ms app.CodeModel.GetByIds 9ms findMatchingLines 7ms GetByIds 16ms meta 0ms repositoryFilters 14ms languageFilters 5ms sourceFilters 0ms

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

Source

Language

Repository

RepoXMLHandlerTest.java https://gitlab.com/tobykurien/fdroidclient.git | Java | 664 lines
1
2package org.fdroid.fdroid;
3
4import android.test.AndroidTestCase;
5import android.text.TextUtils;
6import android.util.Log;
7
8import org.fdroid.fdroid.data.Apk;
9import org.fdroid.fdroid.data.App;
10import org.fdroid.fdroid.data.Repo;
11import org.xml.sax.InputSource;
12import org.xml.sax.SAXException;
13import org.xml.sax.XMLReader;
14
15import java.io.BufferedInputStream;
RepoXMLHandlerTest.java https://gitlab.com/vizilo/fdroidclient.git | Java | 664 lines
1
2package org.fdroid.fdroid;
3
4import android.test.AndroidTestCase;
5import android.text.TextUtils;
6import android.util.Log;
7
8import org.fdroid.fdroid.data.Apk;
9import org.fdroid.fdroid.data.App;
10import org.fdroid.fdroid.data.Repo;
11import org.xml.sax.InputSource;
12import org.xml.sax.SAXException;
13import org.xml.sax.XMLReader;
14
15import java.io.BufferedInputStream;
RepoXMLHandlerTest.java https://gitlab.com/xiaoyanit/fdroidclient.git | Java | 664 lines
1
2package org.fdroid.fdroid;
3
4import android.test.AndroidTestCase;
5import android.text.TextUtils;
6import android.util.Log;
7
8import org.fdroid.fdroid.data.Apk;
9import org.fdroid.fdroid.data.App;
10import org.fdroid.fdroid.data.Repo;
11import org.xml.sax.InputSource;
12import org.xml.sax.SAXException;
13import org.xml.sax.XMLReader;
14
15import java.io.BufferedInputStream;
RepoXMLHandlerTest.java https://gitlab.com/zaventh/fdroidclient.git | Java | 664 lines
1
2package org.fdroid.fdroid;
3
4import android.test.AndroidTestCase;
5import android.text.TextUtils;
6import android.util.Log;
7
8import org.fdroid.fdroid.data.Apk;
9import org.fdroid.fdroid.data.App;
10import org.fdroid.fdroid.data.Repo;
11import org.xml.sax.InputSource;
12import org.xml.sax.SAXException;
13import org.xml.sax.XMLReader;
14
15import java.io.BufferedInputStream;
DuckDuckGoDocsOperationImpl.java https://github.com/bstopp/acs-aem-commons.git | Java | 146 lines
1/*
2 * #%L
3 * ACS AEM Commons Bundle
4 * %%
5 * Copyright (C) 2013 Adobe
6 * %%
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2013-02-02-one-api-discovery-definition-to-rule-them-all.html https://github.com/csmattia/api-evangelist.git | HTML | 48 lines
1---
2layout: post
3title: "One API Discovery Definition to Rule Them All"
4url: 'http://apievangelist.com/2013/02/02/one-api-discovery-definition-to-rule-them-all/'
5image: 'http://kinlane-productions.s3.amazonaws.com/api-evangelist-site/blog/discovery-exploration.jpg'
6---
7
8
9
<p>
10     <img class="c1" src="https://s3.amazonaws.com/kinlane-productions/api-evangelist/discovery/discovery-exploration.jpg" alt="" width="275" align="right" />
11</p>
12<p>
13     When I talk about API discovery, in-person at events, or on my blog(s), I notice people automatically default to thinking I mean a universal API discovery language that will work for all web APIs. I think the technologists that operate in the API space are always striving for technical perfection--resulting in the discussions that you see around REST, HATEOAS, OAuth and similarly for this one about API discovery.
14</p>
15<p>
Minecraft.pm https://github.com/zoracon/zeroclickinfo-goodies.git | Perl | 76 lines
1package DDG::Goodie::Minecraft;
2# ABSTRACT: Minecraft crafting recipes.
3
4use strict;
5use DDG::Goodie;
6use JSON;
7
8zci answer_type => 'minecraft';
9zci is_cached => 1;
10
11primary_example_queries 'cake minecraft';
12secondary_example_queries 'how do i craft a cake in minecraft';
13name 'Minecraft';
14description 'Minecraft crafting recipes.';
15source 'http://thejool.com/api/crafting-guide.json';
README.md https://github.com/jloiola/shack-api.git | Unknown | 60 lines
1# keep-alive-agent
2
3keep-alive-agent is an HTTP connection pool agent for node.js that re-uses sockets. It is simpler than some agents that also solve this problem because it does not attempt to replace the Agent provided by node. If you want to re-use connections, use this agent. If you want the default node behavior, use the default global agent.
4
5## Usage
6
7__new KeepAliveAgent(*options-hash*)__
8
9Create an instance of the agent, passing the options hash through to the node Agent constructor. These options are in turn passed along to `createConnection()`. The KeepAliveAgent constructor does not use the options itself. The option you are most likely to change is `maxSockets`, which defaults to 5.
10
11To use the agent instance, set it in the `agent` field of the options passed to `http.request()` or `http.get()`. See the [http.request() documentation](http://nodejs.org/api/http.html#http_http_request_options_callback) for details.
12
13__new KeepAliveAgent.Secure(*options-hash*)__
14
15A keep-alive agent that creates tls sockets. Use it the same way you use the http agent.
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
Constants.java https://gitlab.com/jbwhips883/Web-browser.git | Java | 38 lines
1/*
2 * Copyright 2014 A.C.R. Development
3 */
4package acr.browser.lightning;
5
6import android.os.Environment;
7
8public class Constants {
9
10	public Constants() {
11		// TODO Auto-generated constructor stub
12	}
13	
14	public static final String DESKTOP_USER_AGENT = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/20 Safari/537.17";
15	public static final String MOBILE_USER_AGENT = "Mozilla/5.0 (Linux; U; Android 4.2; en-us; Nexus 4 Build/JOP24G) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30";
settings.js git://github.com/philc/vimium.git | JavaScript | 278 lines
1// A "setting" is a stored key/value pair.  An "option" is a setting which has a default value and whose value
2// can be changed on the options page.
3//
4// Option values which have never been changed by the user are in Settings.defaults.
5//
6// Settings whose values have been changed are:
7// 1. stored either in chrome.storage.sync or in chrome.storage.local (but never both), and
8// 2. cached in Settings.cache; on extension pages, Settings.cache uses localStorage (so it persists).
9//
10// In all cases except Settings.defaults, values are stored as jsonified strings.
11
12// If the current frame is the Vomnibar or the HUD, then we'll need our Chrome stubs for the tests.
13// We use "try" because this fails within iframes on Firefox (where failure doesn't actually matter).
14try { if (window.chrome == null) { window.chrome = window.top != null ? window.top.chrome : undefined; } } catch (error) {}
15
Shorten.pm https://github.com/csytan/zeroclickinfo-spice.git | Perl | 28 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'],
Web.pm https://github.com/DavidMascio/p5-app-duckpan.git | Perl | 390 lines
1package App::DuckPAN::Web;
2# ABSTRACT: Webserver for duckpan server
3
4use Moo;
5use DDG::Request;
6use DDG::Test::Location;
7use DDG::Test::Language;
8use Plack::Request;
9use Plack::Response;
10use Plack::MIME;
11use HTML::Entities;
12use HTML::TreeBuilder;
13use HTML::Element;
14use Data::Printer;
15use IO::All;
Shorten.pm https://github.com/DavidMascio/zeroclickinfo-spice.git | Perl | 28 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'],
check_api.c git://github.com/sahib/glyr.git | C | 237 lines
1/***********************************************************
2 * This file is part of glyr
3 * + a commnandline tool and library to download various sort of musicrelated metadata.
4 * + Copyright (C) [2011-2012]  [Christopher Pahl]
5 * + Hosted at: https://github.com/sahib/glyr
6 *
7 * glyr is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * glyr is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
HackerNews.pm https://github.com/aembleton/zeroclickinfo-spice.git | Perl | 25 lines
1package DDG::Spice::HackerNews;
2
3use DDG::Spice;
4
5triggers startend => "hn", "hackernews", "hacker news", "news.yc", "news.ycombinator.com", "hn search", "hnsearch", "hacker news search", "hackernews search";
6
7spice to => 'http://api.thriftdb.com/api.hnsearch.com/items/_search?q=$1&limit=50&weights[title]=1.1&weights[text]=0.7&weights[domain]=2.0&weights[username]=0.1&weights[type]=0.0&weights[points]=1.25&boosts[fields][points]=0.15&boosts[fields][num_comments]=0.15&boosts[functions][pow%282,div%28div%28ms%28create_ts,NOW%29,3600000%29,72%29%29]=200.0&callback={{callback}}';
8
9primary_example_queries "hn postgresql";
10description "Search the Hacker News database for related stories/comments";
11name "HackerNews";
12code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/HackerNews.pm";
13icon_url "/i/www.hnsearch.com.ico";
14topics "programming", "social";
15category "forums";
README.md https://github.com/chenglu/php-curl-class.git | Markdown | 146 lines
1# php-curl-class
2
3[![Build Status](https://travis-ci.org/php-curl-class/php-curl-class.png?branch=master)](https://travis-ci.org/php-curl-class/php-curl-class)
4
5PHP Curl Class is an object-oriented wrapper of the PHP cURL extension.
6
7### Composer
8
9    $ composer require php-curl-class/php-curl-class
10
11### Quick Start and Examples
12
13```php
14require 'Curl.php';
15
index.md https://github.com/chenglu/php-curl-class.git | Markdown | 266 lines
1---
2title: PHP Curl Class Documentation
3
4language_tabs:
5  - php
6
7toc_footers:
8  - <a href="https://github.com/php-curl-class/php-curl-class" target="_blank">PHP Curl Class on Github</a>
9---
10
11# Introduction
12
13PHP Curl Class is an object-oriented wrapper of the PHP cURL extension.
14
15# Install
init_old.c https://gitlab.com/libreems-suite/libreems-firmware.git | C | 586 lines
1/* FreeEMS - the open source engine management system
2 *
3 * Copyright 2008-2013 Fred Cooke
4 *
5 * This file is part of the FreeEMS project.
6 *
7 * FreeEMS software is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * FreeEMS software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
Search.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 32 lines
1package DDG::Spice::BoardGameGeek::Search;
2# ABSTRACT: Get information on a board game from the BoardGameGeek API
3
4use DDG::Spice;
5
6spice is_cached => 1;
7spice proxy_cache_valid => "200 7d";
8
9spice wrap_jsonp_callback => 1;
10
11# Need to escape string passed to &u= param, except $1
12my $search_url = uri_esc("http://www.boardgamegeek.com/xmlapi2/search?type=boardgame&query=");
13my $detail_url = uri_esc("http://www.boardgamegeek.com/xmlapi2/thing?stats=1&id=");
14
15spice to => 'https://duckduckgo.com/x.js?u=' . $search_url . '$1';
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21