PageRenderTime 11ms queryFilters 1ms Sphinxql 154ms GetByIds 1365ms meta 0ms repositoryFilters 316ms languageFilters 0ms sourceFilters 0ms

885 results for 'api.duckduckgo.com' (11 ms)

Source

Language

Repository

RepoXMLHandlerTest.java https://gitlab.com/TheLastProject/fdroidclient.git | Java | 668 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/tkfdroid/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/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/tobannert/fdroidclient.git | Java | 668 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;
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
readme.md https://github.com/bartolini/angularjs.git | Markdown | 54 lines
1# What is this project about?
2
3I have created this very simple project just to have a look at **AngularJS - the
4Superheroic JavaScript MVW Framework** by Google. There are multiple
5tutorials/courses/examples in the internet but after seeing a
6few of them I have decided to do some sort of a project by myself keeping
7in mind the following basics:
8
9* Learn some **general principles** about how angularjs framework works
10* Learn about the **$scope** object and how views and controllers work together
11* Learn about **two-way data binding**
12* Learn about **subviews**
13* Learn about **event handling**
14* Learn how to **create a filter/modifier**
15* Learn how to **create and use services**
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
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
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
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';
specific.txt https://github.com/AdguardTeam/AdguardFilters.git | Plain Text | 1,709 lines
1!
2! Temporary
3! https://github.com/easylist/easylist/issues/1719
4! https://github.com/AdguardTeam/AdguardFilters/issues/22746
5||ci.phncdn.com/www-static/js/ph-tracking.js$important
6!
7! index.ru alternative way of loading (loads index.ru first, then /tnc.js from the same domain, see roem.ru for example)
8/tnc.js?h=
9!
10! ||sa.etp-prod.com/analytics.js^ - breaks player on crunchyroll.com
11! ||api.radio.*/info/*/user/playlog - breaks playing radio
12!
13! ||spiegel.de/static/sys/dimensionspixel.gif - breaks loading pictures on mobile
14!
15! The site should be carefully checked when you add this rule
Congress.pm https://github.com/aembleton/zeroclickinfo-spice.git | Perl | 170 lines
1package DDG::Spice::Congress;
2# ABSTRACT: Return current Congress members for given state.
3
4use DDG::Spice;
5
6primary_example_queries "new york senators";
7secondary_example_queries "florida representatives", "house california";
8description "Shows congress by state";
9name "Congress";
10icon_url "/i/topics.nytimes.com.ico";
11source "The New York Times";
12code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Congress.pm";
13topics "special_interest", "trivia";
14category "facts";
15attribution web => ['http://kevinschaul.com','Kevin Schaul'],
InTheaters.pm https://github.com/aembleton/zeroclickinfo-spice.git | Perl | 89 lines
1package DDG::Spice::InTheaters;
2# ABSTRACT: Show movies from Rotten Tomatoes.
3
4use DDG::Spice;
5
6primary_example_queries "movies";
7secondary_example_queries "movies in theaters", "currently in theaters", "i want to watch a movie";
8description "Current movies from Rotten Tomatoes";
9name "InTheaters";
10code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/InTheaters.pm";
11icon_url "/i/www.rottentomatoes.com.ico";
12topics "entertainment";
13category "entertainment";
14attribution github => ['https://github.com/jagtalon','jagtalon'],
15            twitter => ['http://twitter.com/juantalon','juantalon'];
Movie.pm https://github.com/aembleton/zeroclickinfo-spice.git | Perl | 33 lines
1package DDG::Spice::Movie;
2
3use DDG::Spice;
4
5primary_example_queries "the graduate movie";
6secondary_example_queries "jiro dreams of sushi rating", "indie game film";
7description "Movie information from Rotten Tomatoes";
8name "Movie";
9code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Movie.pm";
10icon_url "/i/www.rottentomatoes.com.ico";
11topics "entertainment", "everyday";
12category "entertainment";
13attribution github => ['https://github.com/moollaza','Zaahir Moolla'],
14           twitter => ['https://twitter.com/zmoolla','zmoolla'];
15status "enabled";
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21