PageRenderTime 558ms queryFilters 0ms Sphinxql 147ms GetByIds 202ms meta 0ms repositoryFilters 122ms languageFilters 0ms sourceFilters 0ms

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

Source

Language

Repository

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.
mixpanel.js https://github.com/ShiftFinancial/ripple-client.git | JavaScript | 3,017 lines
1/*
2 * Mixpanel JS Library v2.2.0
3 *
4 * Copyright 2012, Mixpanel, Inc. All Rights Reserved
5 * http://mixpanel.com/
6 *
7 * Includes portions of Underscore.js
8 * http://documentcloud.github.com/underscore/
9 * (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.
10 * Released under the MIT License.
11 */
12
13// ==ClosureCompiler==
14// @compilation_level ADVANCED_OPTIMIZATIONS
15// @output_file_name mixpanel-2.2.min.js
InTheaters.pm git://github.com/duckduckgo/zeroclickinfo-spice.git | Perl | 109 lines
1package DDG::Spice::InTheaters;
2# ABSTRACT: Show movies from Rotten Tomatoes.
3
4use strict;
5use DDG::Spice;
6
7primary_example_queries "movies";
8secondary_example_queries "movies in theaters", "currently in theaters", "i want to watch a movie";
9description "Current movies from Rotten Tomatoes";
10name "InTheaters";
11code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/InTheaters.pm";
12icon_url "/i/www.rottentomatoes.com.ico";
13topics "entertainment";
14category "entertainment";
15attribution github => ['https://github.com/jagtalon','jagtalon'],
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.
config.h https://bitbucket.org/jasonwryan/workstation | C++ Header | 195 lines
1/*
2    (c) 2009 by Leon Winter
3    (c) 2009-2011 by Hannes Schueller
4    (c) 2009-2010 by Matto Fransen
5    (c) 2010-2011 by Hans-Peter Deifel
6    (c) 2010-2011 by Thomas Adam
7    (c) 2011 by Albert Kim
8    see LICENSE file
9*/
10
11/* Vimprobable version number */
12#define VERSION "0.9.10.0"
13#define INTERNAL_VERSION "Vimprobable2/"VERSION
14
15/* general settings */
config.h https://bitbucket.org/jasonwryan/eeepc | C++ Header | 224 lines
1/*
2    (c) 2009 by Leon Winter
3    (c) 2009-2012 by Hannes Schueller
4    (c) 2009-2010 by Matto Fransen
5    (c) 2010-2011 by Hans-Peter Deifel
6    (c) 2010-2011 by Thomas Adam
7    (c) 2011 by Albert Kim
8    see LICENSE file
9*/
10
11/* Vimprobable version number */
12#define VERSION "1.2.0"
13#define INTERNAL_VERSION "Vimprobable2/"VERSION
14
15/* general settings */
config.h https://bitbucket.org/jasonwryan/centurion | C++ Header | 253 lines
1/*
2    (c) 2009 by Leon Winter
3    (c) 2009-2012 by Hannes Schueller
4    (c) 2009-2010 by Matto Fransen
5    (c) 2010-2011 by Hans-Peter Deifel
6    (c) 2010-2011 by Thomas Adam
7    (c) 2011 by Albert Kim
8    (c) 2013 Daniel Carl
9    see LICENSE file
10*/
11
12/* Vimprobable version number */
13#define VERSION "1.4.2"
14#define INTERNAL_VERSION "Vimprobable2/"VERSION
15
heimweh-205-kommentare.html https://github.com/benthebear/anmutunddemut.git | HTML | 351 lines
1<!DOCTYPE html SYSTEM "about:legacy-compat">
2<html>
3<head>
4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
5  <title>Heimweh 2.0.5 – Kommentare und mehr | anmut und demut</title>
6  <meta name="Generator" content="Heimweh"/>
7  <meta http-equiv="content-language" content="de" />
8  <!-- Get rid of those f*ckin Bots -->
9  <meta name="robots" content="noindex, nofollow" />
10  <meta name="robots" content="noimageindex" />
11  <meta name="googlebot" content="noindex, nofollow" />
12  <meta name="DuckDuckBot" content="index, follow" />
13  <meta name="description" content="anmut und demut | Kirchenlieder für die Ungläubigen seit 2001" />
14  <link rel="prev" href="/2010/07/12/welt-meisterschaft.html" />
15  <link rel="next" href="/2010/07/12/man-verwende-es-sparsam.html" />
hacking.html https://github.com/gvx/gvx.github.com.git | HTML | 330 lines
1<!DOCTYPE html>
2<html lang="en">
3	<head>
4		<meta charset="utf-8" />
5		<title>~/Hacking</title>
6		<link href="hacking.css" media="screen" rel="stylesheet" type="text/css" />
7		<link rel="shortcut icon" href="favicon.png"/>
8	</head>
9	<body><div id="shuffle"></div>
10		<div class="nav"><b>Places</b> | <a href="index.html">Userpage</a>
11				| <a href="http://github.com/gvx/">GitHub</a>
12				| <a href="http://gvxdev.wordpress.com/">Blog</a>
13				| <a href="http://twitter.com/gvxdev">Twitter</a>
14				<noscript>| This page is tastier with JavaScript enabled.</noscript>
15		</div>
config https://bitbucket.org/jasonwryan/centurion | Unknown | 84 lines
1# -------------------------------------------------
2# file:     ~/.config/vimb/config
3# author:   jason ryan http://jasonwryan.com/
4# vim:fenc=utf-8:nu:ai:si:et:ts=2:sw=2:ft=sh:
5# -------------------------------------------------
6
7# set options
8handler-add mailto=urxvt -e mutt %s
9handler-add ftp=urxvt -e wget %s -P /tmp/vimb
10set editor-command=urxvt -title scratchpad -geometry 86x24+40+60 -e vim %s
11set home-page=file:///home/jason/Sync/vimb/index.html
12set cookie-accept=origin
13set download-path=/home/jason/
14set header=DNT=1
15set history-max-items=30000
quixey.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 353 lines
1(function(env) {
2    var quixey_image_domain = "d1z22zla46lb9g.cloudfront.net";
3
4    // spice callback function
5    env.ddg_spice_quixey = function(api_result) {
6
7        if (!(api_result && api_result.results && api_result.results.length)) {
8            return Spice.failed('apps');
9        }
10
11        var qLower = api_result.q.toLowerCase();
12            categories = [
13                "action",
14                "adventure",
15                "arcade",
in_theaters.js git://github.com/duckduckgo/zeroclickinfo-spice.git | JavaScript | 131 lines
1(function(env) {
2    "use strict";
3    
4    // A change in the Rotten Tomatoes API returns images that end in _tmb.
5    // This changes this to _det.
6    function toDetail(img) {
7        if(/resizing\.flixster\.com/.test(img)) {
8            // Everything before the size of the image can be removed and it would still work.
9            img = img.replace(/.+\/\d+x\d+\/(.+)/, "http://$1");
10            // Better use the _det size (which is smaller) instead of the _ori size.
11            return img.replace(/_ori/, "_det");
12        }
13        
14        // Otherwise, use the old string replacement strategy.
15        return img.replace(/tmb\.(jpg|png)/, "det.$1");
main.js https://github.com/paulstansifer/rust.git | JavaScript | 1,019 lines
1// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11/*jslint browser: true, es5: true */
12/*globals $: true, rootPath: true */
13
14(function() {
15    "use strict";
twitter.md https://gitlab.com/ev/evbogue.git | Markdown | 22 lines
1---
2title: Ev Bogue Twitter
3date: 2013-12-02
4---
5
6I do not have a Twitter account.
7
8I do not use Twitter. At all. Anymore. If you want to get in touch with me, you need to use my [email address](mailto:ev@evbogue.com), or visit my [IRC](/irc) channel.
9
10I used to have a Twitter account under the username of 'evbogue', but I deleted it in 2011. Someone squatted on the name, does not use it, and Twitter will not give me this namespace back. 
11
12I don't care, because Twitter doesn't resemble the app you heard about in 2007-2010. What was once an amazing application with an open API to disseminate information is now a public company trying to squeeze its users for every bit of money they have. I don't want to be part of this, so I won't do business with Twitter. Twitter is not a good way to 'reach' people, if that was what you're after. 
13
14For awhile I used an account at the username 'venportman', but I found it didn't benefit me at all to use Twitter, so I stopped.
15
main.js git://github.com/paulstansifer/rust.git | JavaScript | 1,018 lines
1// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11/*jslint browser: true, es5: true */
12/*globals $: true, rootPath: true */
13
14(function() {
15    "use strict";
main.js git://github.com/eholk/rust.git | JavaScript | 1,294 lines
1// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11/*jslint browser: true, es5: true */
12/*globals $: true, rootPath: true */
13
14(function() {
15    "use strict";
vc_without_m.md https://github.com/alFReD-NSH/homoiconic.git | Unknown | 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
vc_without_m.md https://github.com/brianyang/homoiconic.git | Unknown | 159 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
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20