code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30 values | license stringclasses 15 values | size int32 3 1.05M | line_mean float64 0.5 100 | line_max int64 1 1k | alpha_frac float64 0.25 1 | autogenerated bool 1 class |
|---|---|---|---|---|---|---|---|---|---|
package com.ftchinese.jobs.common
import org.eclipse.jetty.server.handler.gzip.GzipHandler
import org.eclipse.jetty.server.handler.{ContextHandler, ContextHandlerCollection}
import org.eclipse.jetty.server.{Server, ServerConnector}
import scala.collection.mutable.ArrayBuffer
/**
* An http server.
* Created by wanbo on 15/8/21.
*/
class HttpServer(conf: JobsConfig) extends Logging {
private var _server: Server = null
private val _port: Int = conf.serverUIPort
private var _handlers: ArrayBuffer[ContextHandler] = ArrayBuffer[ContextHandler]()
def start(): Unit ={
if(_server != null)
throw new Exception("Server is already started.")
else {
doStart()
}
}
/**
* Actually start the HTTP server.
*/
private def doStart(): Unit ={
// The server
_server = new Server()
val connector = new ServerConnector(_server)
connector.setHost(conf.serverHost)
connector.setPort(_port)
_server.addConnector(connector)
// Set handlers
if(_handlers.size > 0) {
val collection = new ContextHandlerCollection
val gzipHandlers = _handlers.map(h => {
val gzipHandler = new GzipHandler
gzipHandler.setHandler(h)
gzipHandler
})
collection.setHandlers(gzipHandlers.toArray)
_server.setHandler(collection)
}
// Start the server
_server.start()
_server.join()
}
def attachHandler(handler: ContextHandler): Unit ={
_handlers += handler
}
def stop(): Unit ={
if(_server == null)
throw new Exception("Server is already stopped.")
else {
_server.stop()
_server = null
}
}
}
| FTChinese/push | src/main/scala/com/ftchinese/jobs/common/HttpServer.scala | Scala | mit | 1,840 | 23.864865 | 86 | 0.595109 | false |
include_directories(${GIT_ROOT}/aws-sdk-cpp/aws-cpp-sdk-transfer/include)
| ShaiRoitman/sbu | sbu/cmake/linux/aws-cpp-sdk-transferConfig.cmake | CMake | mit | 74 | 73 | 73 | 0.783784 | false |
<!DOCTYPE html>
<html>
<head></head>
<body style="font:12px Consolas; margin:0;">
<div id="p1" style="background:gold; width:50px; height:50px; min-width:100px; min-height:100px; padding:10px;">
<div id="c1" style="width:100%; height:100%; background:plum;"></div>
</div>
<br>
<div id="p2" style="background:gold; width:150px; height:150px; max-width:100px; max-height:100px; padding:10px;">
<div id="c2" style="width:100%; height:100%; background:plum;"></div>
</div>
</body>
</html> | dota8/dota8.github.io | tests/RD1024/static_min_max_height.html | HTML | mit | 522 | 39.230769 | 118 | 0.6341 | false |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>subst: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.1 / subst - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
subst
<small>
8.7.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-04-12 22:56:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-12 22:56:58 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/subst"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Subst"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [ "keyword: lambda-sigma-lift-calculus" "keyword: explicit substitution" "keyword: Newman's lemma" "keyword: Yokouchi's lemma" "keyword: confluence" "keyword: rewriting" "category: Computer Science/Lambda Calculi" ]
authors: [ "Amokrane Saïbi" ]
bug-reports: "https://github.com/coq-contribs/subst/issues"
dev-repo: "git+https://github.com/coq-contribs/subst.git"
synopsis: "The confluence of Hardin-Lévy lambda-sigma-lift-calcul"
description: """
The confluence of Hardin-Lévy lambda-sigma-lift-calcul is
proven. By the way, several standard definition and results about
rewriting systems are proven (Newman's lemma, Yokouchi's lemma, ...)."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/subst/archive/v8.7.0.tar.gz"
checksum: "md5=55a737d8d86b32bbcd34ea1e7994e224"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-subst.8.7.0 coq.8.11.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.1).
The following dependencies couldn't be met:
- coq-subst -> coq < 8.8~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-subst.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.1/subst/8.7.0.html | HTML | mit | 6,920 | 41.423313 | 299 | 0.545192 | false |
//~ name a744
alert(a744);
//~ component a745.js
| homobel/makebird-node | test/projects/large/a744.js | JavaScript | mit | 52 | 7.666667 | 21 | 0.615385 | false |
//
// BlackHoleDemo.h
// Drawing
//
// Created by Adrian Russell on 16/12/2013.
// Copyright (c) 2013 Adrian Russell. All rights reserved.
//
#ifndef __Drawing__BlackHoleDemo__
#define __Drawing__BlackHoleDemo__
#include "PhysicsDemo.h"
#include "ForceGenerator.h"
class BlackHoleDemo : public PhysicsDemo {
public:
BlackHoleDemo();
~BlackHoleDemo();
//void update();
void mouseMoved(int x, int y);
void mouseEvent(int button, int state, int x, int y);
void keyPressed(unsigned char key, int x, int y);
void keyUnpressed(int key, int x, int y) {};
std::string name() { return "Black Hole"; };
void draw();
private:
Array *_blackHoles;
Array *_particles;
};
#endif /* defined(__Drawing__BlackHoleDemo__) */
| aderussell/ARPhysics | Demo App/Demos/BlackHoleDemo.h | C | mit | 803 | 19.075 | 59 | 0.62142 | false |
'use strict';
var Q = require('q')
, _ = require('underscore');
exports.defaults = function () { return { storage: {} }; };
exports.mixin = {
/**
* Converts `arguments` to a key to be stored.
*/
toKey: function () {
return _.toArray(arguments);
},
contains: function () {
return this.containsKey(this.toKey.apply(this, _.toArray(arguments)));
},
containsKey: function (key) {
return Q.when(_.has(this.storage, key));
},
del: function () {
var args = _.toArray(arguments)
, key = this.toKey.apply(this, arguments);
if (!this.containsKey(key)) return Q.when(false);
this.emit.apply(this, [ 'del' ].concat(args));
delete this.storage[key];
return Q.when(true);
},
set: function (key, val) {
this.storage[key] = val;
return Q.when(true);
},
get: function (key) {
return Q.when(this.storage[key]);
}
};
| filipovskii/bolter | lib/bolter-memory.js | JavaScript | mit | 894 | 18.866667 | 74 | 0.590604 | false |
<?php
namespace Baghayi\Skyroom\Factory;
use Baghayi\Skyroom\Room as RoomItself;
use Baghayi\Skyroom\User;
use Baghayi\Skyroom\Collection\Users;
use Baghayi\Skyroom\Exception\AlreadyExists;
use Baghayi\Skyroom\Request;
use Baghayi\Skyroom\Exception\DuplicateRoom;
final class Room {
private $request;
public function __construct(Request $request)
{
$this->request = $request;
}
public function create(string $name, int $max_users = null) : RoomItself
{
try {
$roomId = $this->request->make('createRoom', [
'name' => 'room-' . md5($name) . '-' . rand(1, 99999999),
'title' => mb_substr($name, 0, 128),
'guest_login' => false,
"max_users" => $max_users
/*
*"op_login_first" => true,
*/
]);
}
catch(DuplicateRoom $e) {
$name .= '-' . rand(1, 99999999);
return $this->create($name);
}
$room = new RoomItself($roomId, $this->request);
return $room;
}
}
| baghayi/skyroom | src/Factory/Room.php | PHP | mit | 1,107 | 24.744186 | 76 | 0.532069 | false |
capstone.controller("RegisterCtrl", function($scope,$http,AuthFactory,$location,user1){
// $(".button-collapse").sideNav();
$http.get(`states.json`)
.then((data)=>{
$scope.stateName = data.data
console.log($scope.stateName)
$('input.autocomplete').autocomplete({
data: $scope.stateName,
limit: 10 // The max amount of results that can be shown at once. Default: Infinity.
});
})
$scope.date = new Date();
let storageRef = firebase.storage().ref();
let inputElement = document.getElementById("fileInput");
inputElement.addEventListener("change", handleFiles, false)
function handleFiles() {
var fileList = this.files; /* now you can work with the file list */
console.log("filelist[0]", fileList[0])
storageRef.child(fileList[0].name).put(fileList[0])
.then(function(snapshot) {
console.log('Uploaded a blob or file!');
storageRef.child(fileList[0].name).getDownloadURL()
.then((url)=>{
var img =document.getElementById("myImg")
img.src = url;
$scope.img = img.src;
})
.catch((error)=>{
alert("error")
})
});
}
$scope.register = () => {
if($scope.user_email === $scope.user_confirmEmail){
AuthFactory.getter($scope.user_email,$scope.user_password)
.then ((data)=> {
console.log(data)
$scope.UID = data
// $http.post(`https://frontendcapstone.firebaseio.com/users/.json`,{
// uid: $scope.UID
// })
$http.post(`https://frontendcapstone.firebaseio.com/users/${$scope.UID}.json`,{
uid: $scope.UID,
Firstname: $scope.firstName,
Lastname: $scope.lastName,
email: $scope.user_email,
password: $scope.user_password,
DOB: $scope.user_dob,
imageUrl : $scope.img,
Address: {Address1: $scope.user_addressLine1,
Address2: $scope.user_addressLine2,
City: $scope.user_city,
state: $scope.user_state,
zipcode: $scope.user_zipcode}
})
Materialize.toast("registered successfully", 2000)
$location.path(`/`)
})
}
else {
Materialize.toast("Emails have to match", 1000)
$("input[type='email']").focus()
}
}
})
| priyakamesh/frontendcapstone-priya | app/controller/registerCtrl.js | JavaScript | mit | 2,390 | 31.739726 | 91 | 0.56318 | false |
<?php if(time() > 1346310303){return null;} return array (
2 =>
array (
4 =>
array (
0 =>
array (
'id' => 3,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Гастроэнтерология',
'longtitle' => '',
'description' => 'Гастроэнтерология в клинике Беласу.',
'alias' => 'gastroenterologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 0,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-16 23:02:18',
'editedby' => 1,
'editedon' => '2012-08-18 17:53:02',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-16 23:02:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'gastroenterologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'gastroenterologiya',
'level' => 2,
'linktext' => 'Гастроэнтерология',
'title' => 'Гастроэнтерология',
),
1 =>
array (
'id' => 5,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Гинекология',
'longtitle' => '',
'description' => 'Гинекология в клинике Беласу.',
'alias' => 'ginekologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 1,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 13:18:32',
'editedby' => 1,
'editedon' => '2012-08-18 17:54:29',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 13:28:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'ginekologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'ginekologiya',
'level' => 2,
'linktext' => 'Гинекология',
'title' => 'Гинекология',
),
2 =>
array (
'id' => 6,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Кардиология',
'longtitle' => '',
'description' => 'Кардиология в клинике Беласу.',
'alias' => 'kardiologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 2,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 14:54:49',
'editedby' => 1,
'editedon' => '2012-08-18 17:55:27',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:20:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'kardiologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'kardiologiya',
'level' => 2,
'linktext' => 'Кардиология',
'title' => 'Кардиология',
),
3 =>
array (
'id' => 7,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Маммология',
'longtitle' => '',
'description' => 'Маммология в клинике Беласу.',
'alias' => 'mammologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 3,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 15:13:51',
'editedby' => 1,
'editedon' => '2012-08-18 17:56:26',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:20:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'mammologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'mammologiya',
'level' => 2,
'linktext' => 'Маммология',
'title' => 'Маммология',
),
4 =>
array (
'id' => 8,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Неврология',
'longtitle' => '',
'description' => 'Неврология в клинике Беласу.',
'alias' => 'nevrologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 4,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 15:16:02',
'editedby' => 1,
'editedon' => '2012-08-18 17:58:22',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:20:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'nevrologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'nevrologiya',
'level' => 2,
'linktext' => 'Неврология',
'title' => 'Неврология',
),
5 =>
array (
'id' => 9,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Оториноларингология',
'longtitle' => '',
'description' => 'Оториноларингология в клинике Беласу.',
'alias' => 'otorinolaringologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 5,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 15:25:40',
'editedby' => 1,
'editedon' => '2012-08-18 18:08:33',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 15:25:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'otorinolaringologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'otorinolaringologiya',
'level' => 2,
'linktext' => 'Оториноларингология',
'title' => 'Оториноларингология',
),
6 =>
array (
'id' => 10,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Урология',
'longtitle' => '',
'description' => 'Урология в клинике Беласу.',
'alias' => 'urologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 6,
'menuindex' => 6,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 16:53:30',
'editedby' => 1,
'editedon' => '2012-08-18 18:09:49',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 16:54:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'urologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'urologiya',
'level' => 2,
'linktext' => 'Урология',
'title' => 'Урология',
),
7 =>
array (
'id' => 11,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Эндокринология',
'longtitle' => '',
'description' => 'Эндокринология в клинике Беласу.',
'alias' => 'endokrinologiya',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 7,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 17:36:34',
'editedby' => 1,
'editedon' => '2012-08-18 18:10:29',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 17:36:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'endokrinologiya',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'endokrinologiya',
'level' => 2,
'linktext' => 'Эндокринология',
'title' => 'Эндокринология',
),
8 =>
array (
'id' => 13,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Ультразвуковая диагностика',
'longtitle' => '',
'description' => 'Ультразвуковая диагностика в клинике Беласу.',
'alias' => 'uzi',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 6,
'menuindex' => 8,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 17:53:53',
'editedby' => 1,
'editedon' => '2012-08-18 18:12:26',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 17:53:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'uzi',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'uzi',
'level' => 2,
'linktext' => 'Ультразвуковая диагностика',
'title' => 'Ультразвуковая диагностика',
),
9 =>
array (
'id' => 14,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Лабораторная диагностика',
'longtitle' => '',
'description' => 'Лабораторная диагностика в клинике Беласу.',
'alias' => 'lab',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 4,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 5,
'menuindex' => 9,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 18:14:28',
'editedby' => 1,
'editedon' => '2012-08-18 18:14:00',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 18:14:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'lab',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'lab',
'level' => 2,
'linktext' => 'Лабораторная диагностика',
'title' => 'Лабораторная диагностика',
),
),
15 =>
array (
0 =>
array (
'id' => 17,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'О клинике',
'longtitle' => '',
'description' => 'Информация о клинике Беласу.',
'alias' => 'about',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 15,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 8,
'menuindex' => 0,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-18 20:58:15',
'editedby' => 1,
'editedon' => '2012-08-18 21:48:54',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-18 20:58:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'about',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'about',
'level' => 2,
'linktext' => 'О клинике',
'title' => 'О клинике',
),
1 =>
array (
'id' => 18,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Руководство клиники',
'longtitle' => '',
'description' => 'Руководство клиники Беласу.',
'alias' => 'chief',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 15,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 8,
'menuindex' => 1,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-21 11:29:51',
'editedby' => 1,
'editedon' => '2012-08-21 11:31:58',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-21 11:31:58',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'chief',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'chief',
'level' => 2,
'linktext' => 'Руководство клиники',
'title' => 'Руководство клиники',
),
2 =>
array (
'id' => 20,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'График работы',
'longtitle' => '',
'description' => 'График работы медицинского персонала ТОО "Беласу-Ш" во 2-полугодии 2011 года.
',
'alias' => 'schedule',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 15,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 9,
'menuindex' => 2,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-21 21:19:52',
'editedby' => 1,
'editedon' => '2012-08-27 19:47:38',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-21 21:19:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'schedule',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'schedule',
'level' => 2,
'linktext' => 'График работы',
'title' => 'График работы',
),
),
),
1 =>
array (
0 =>
array (
0 =>
array (
'id' => 4,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Услуги',
'longtitle' => '',
'description' => '',
'alias' => 'services',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => true,
'introtext' => '',
'content' => '/',
'richtext' => true,
'template' => 0,
'menuindex' => 3,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 11:44:34',
'editedby' => 1,
'editedon' => '2012-08-17 13:07:22',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 12:11:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modWebLink',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'services/',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' =>
array (
'core' =>
array (
'responseCode' => 'HTTP/1.1 301 Moved Permanently',
),
),
'protected' => false,
'link' => '/',
'level' => 1,
'linktext' => 'Услуги',
'title' => 'Услуги',
),
1 =>
array (
'id' => 15,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'О нас',
'longtitle' => '',
'description' => '',
'alias' => 'aboutus',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => true,
'introtext' => '',
'content' => '/about',
'richtext' => true,
'template' => 0,
'menuindex' => 4,
'searchable' => false,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-17 18:34:04',
'editedby' => 1,
'editedon' => '2012-08-18 22:07:09',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-17 18:34:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modWebLink',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'aboutus/',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' =>
array (
'core' =>
array (
'responseCode' => 'HTTP/1.1 301 Moved Permanently',
),
),
'protected' => false,
'link' => '/about',
'level' => 1,
'linktext' => 'О нас',
'title' => 'О нас',
),
2 =>
array (
'id' => 21,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Прейскурант',
'longtitle' => '',
'description' => 'Стоимость услуг в клинике Беласу.',
'alias' => 'prices',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 9,
'menuindex' => 5,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-21 23:41:05',
'editedby' => 1,
'editedon' => '2012-08-27 19:59:09',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-21 23:41:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'prices',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'prices',
'level' => 1,
'linktext' => 'Прейскурант',
'title' => 'Прейскурант',
),
3 =>
array (
'id' => 23,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Отзывы',
'longtitle' => '',
'description' => 'Отзывы пациентов клиники Беласу.',
'alias' => 'feedback',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 10,
'menuindex' => 6,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-25 14:08:31',
'editedby' => 1,
'editedon' => '2012-08-25 14:13:22',
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-25 14:08:00',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'feedback',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'feedback',
'level' => 1,
'linktext' => 'Отзывы',
'title' => 'Отзывы',
),
4 =>
array (
'id' => 24,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Онлайн запись',
'longtitle' => '',
'description' => 'Онлайн запись на прием в клинике Беласу.',
'alias' => 'application',
'link_attributes' => '',
'published' => true,
'pub_date' => 0,
'unpub_date' => 0,
'parent' => 0,
'isfolder' => false,
'introtext' => '',
'content' => '',
'richtext' => true,
'template' => 11,
'menuindex' => 7,
'searchable' => true,
'cacheable' => true,
'createdby' => 1,
'createdon' => '2012-08-27 22:05:50',
'editedby' => 0,
'editedon' => 0,
'deleted' => false,
'deletedon' => 0,
'deletedby' => 0,
'publishedon' => '2012-08-27 22:05:50',
'publishedby' => 1,
'menutitle' => '',
'donthit' => false,
'privateweb' => false,
'privatemgr' => false,
'content_dispo' => 0,
'hidemenu' => false,
'class_key' => 'modDocument',
'context_key' => 'web',
'content_type' => 1,
'uri' => 'application',
'uri_override' => 0,
'hide_children_in_tree' => 0,
'show_in_tree' => 1,
'properties' => NULL,
'protected' => false,
'link' => 'application',
'level' => 1,
'linktext' => 'Онлайн запись',
'title' => 'Онлайн запись',
),
),
),
); | yenbekbay/clinic | core/cache/resource/web/resources/5/e17fd6472397a7760f677426bb024e70.cache.php | PHP | mit | 29,091 | 28.46519 | 104 | 0.428633 | false |
<!DOCTYPE html>
<html>
<head>
<title>movies of the 80's</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<style>
body {
background-color: black;
background-image: url(action.jpg);
background-position-x: center;
background-position-y: bottom;
background-repeat: no-repeat;
background-attachment: scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;}
.list-group {float: left;
margin-left: 15px}
footer {text-align: center;}
.ulclass { position: relative;
display: block;
padding-top: 100px;
padding-right: 40px;
padding-bottom: 30px;
padding-left:22px;
margin-bottom: -1px;
height:30px;
background-color: #222;
border-color: #080808;}
.korisni {height: 600px;
background-color: #222;
float: left;
margin-top: -20px;
position: relative;
}
.vertical-menu {
width: 200px;
}
.vertical-menu a {
background-color: #222;
color: #eee;
display: block;
padding: 12px;
text-decoration: none;
}
.vertical-menu a:hover {
background-color: #ccc;
color: #222;
}
.signup {padding-left: 10px;
padding-top: 20px;
color: #eee;
}
.link0 {padding-top: 20px;}
.registracija {font-size: 78%;}
.textarea {
padding-left: 10px !important;
padding-top: 12px !important;
color: #eee;
}
.textarea2{ color: black !important }
.input {
transition: font-size 0.3s;
font-size: 14px;
}
.input:hover {
font-size: 14.9px;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="Index.html">Početna stranica</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#">Nekakav link <span class="sr-only">(current)</span></a></li>
<li><a href="#">Nekakav link 2</a></li>
<li><a href="#">Nekakav link 3</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Drop menu za neke potrebe <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text" class="form-control" placeholder="Upiši pretragu">
</div>
<button type="submit" class="btn btn-default">Traži</button>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</header>
<div class="korisni">
<div class="vertical-menu">
<form class="signup">
<div>PRIJAVA</div> <br>
Korisnicko ime:<br>
<input type="text" name="username" style="color: black !important"><br><br>
Lozinka:<br>
<input type="password" name="password" style="color: black !important"><br><br>
<button type="submit" style="color:#222;">Prijavi se</button><button type="submit" style="color:#222;">Registracija</button><br>
</form>
<div class="link0"><a href="#">Link 0</a></div>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</div>
<div class="textarea"><form>Unesite neki sadržaj:<br>
<textarea class="textarea2" rows="5"></textarea><br>
<input type="submit" value="Stisni" style="color:black !important">
</form>
</div>
</div>
<footer>
<nav class="navbar-fixed-bottom">
<div class="container" style="color: white !important">
<p>Ovo je jedan obični footer, a <a href="#">ovdje</a> kliknite za početnu stranicu 2017</p>
</div>
</nav>
</footer>
</body>
</html>
| algebrateam/phpdev2017 | gtolusic/bootstrap_zadaca.html | HTML | mit | 5,158 | 25.285714 | 217 | 0.615877 | false |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Query Objects — MongoAlchemy v0.8 documentation</title>
<link rel="stylesheet" href="../../_static/default.css" type="text/css" />
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../../',
VERSION: '0.8',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<link rel="top" title="MongoAlchemy v0.8 documentation" href="../../index.html" />
<link rel="up" title="Expression Language — Querying and Updating" href="index.html" />
<link rel="next" title="Mongo Query Expression Language" href="query_expressions.html" />
<link rel="prev" title="Expression Language — Querying and Updating" href="index.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="query_expressions.html" title="Mongo Query Expression Language"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="index.html" title="Expression Language — Querying and Updating"
accesskey="P">previous</a> |</li>
<li><a href="../../index.html">MongoAlchemy v0.8 documentation</a> »</li>
<li><a href="../index.html" >API documentation</a> »</li>
<li><a href="index.html" accesskey="U">Expression Language — Querying and Updating</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="query-objects">
<h1>Query Objects<a class="headerlink" href="#query-objects" title="Permalink to this headline">¶</a></h1>
<dl class="class">
<dt id="mongoalchemy.query.Query">
<em class="property">class </em><tt class="descclassname">mongoalchemy.query.</tt><tt class="descname">Query</tt><big>(</big><em>type</em>, <em>session</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query" title="Permalink to this definition">¶</a></dt>
<dd><p>A query object has all of the methods necessary to programmatically
generate a mongo query as well as methods to retrieve results of the
query or do an update based on it.</p>
<p>In general a query object should be created via <tt class="docutils literal"><span class="pre">Session.query</span></tt>,
not directly.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>type</strong> – A subclass of class:<cite>mongoalchemy.document.Document</cite></li>
<li><strong>db</strong> – The <a class="reference internal" href="../session.html#mongoalchemy.session.Session" title="mongoalchemy.session.Session"><tt class="xref py py-class docutils literal"><span class="pre">Session</span></tt></a> which this query is associated with.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="mongoalchemy.query.Query.resolve_name">
<tt class="descname">resolve_name</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.resolve_name" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="attribute">
<dt id="mongoalchemy.query.Query.query">
<tt class="descname">query</tt><a class="headerlink" href="#mongoalchemy.query.Query.query" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.raw_output">
<tt class="descname">raw_output</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.raw_output" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.get_fields">
<tt class="descname">get_fields</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.get_fields" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.get_limit">
<tt class="descname">get_limit</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.get_limit" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.get_skip">
<tt class="descname">get_skip</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.get_skip" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.limit">
<tt class="descname">limit</tt><big>(</big><em>limit</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.limit" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the limit on the number of documents returned</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>limit</strong> – the number of documents to return</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.skip">
<tt class="descname">skip</tt><big>(</big><em>skip</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.skip" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the number of documents to skip in the result</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>skip</strong> – the number of documents to skip</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.clone">
<tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.clone" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates a clone of the current query and all settings. Further
updates to the cloned object or the original object will not
affect each other</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.one">
<tt class="descname">one</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.one" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute the query and return one result. If more than one result
is returned, raises a <tt class="docutils literal"><span class="pre">BadResultException</span></tt></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.first">
<tt class="descname">first</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.first" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute the query and return the first result. Unlike <tt class="docutils literal"><span class="pre">one</span></tt>, if
there are multiple documents it simply returns the first one. If
there are no documents, first returns <tt class="xref docutils literal"><span class="pre">None</span></tt></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.hint_asc">
<tt class="descname">hint_asc</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.hint_asc" title="Permalink to this definition">¶</a></dt>
<dd><p>Applies a hint for the query that it should use a
(<tt class="docutils literal"><span class="pre">qfield</span></tt>, ASCENDING) index when performing the query.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – the instance of <tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.QueryField</span></tt> to use as the key.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.hint_desc">
<tt class="descname">hint_desc</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.hint_desc" title="Permalink to this definition">¶</a></dt>
<dd><p>Applies a hint for the query that it should use a
(<tt class="docutils literal"><span class="pre">qfield</span></tt>, DESCENDING) index when performing the query.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – the instance of <tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.QueryField</span></tt> to use as the key.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.explain">
<tt class="descname">explain</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.explain" title="Permalink to this definition">¶</a></dt>
<dd><p>Executes an explain operation on the database for the current
query and returns the raw explain object returned.</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.all">
<tt class="descname">all</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.all" title="Permalink to this definition">¶</a></dt>
<dd><p>Return all of the results of a query in a list</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.distinct">
<tt class="descname">distinct</tt><big>(</big><em>key</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.distinct" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute this query and return all of the unique values
of <tt class="docutils literal"><span class="pre">key</span></tt>.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>key</strong> – the instance of <tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.QueryField</span></tt> to use as the distinct key.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.filter">
<tt class="descname">filter</tt><big>(</big><em>*query_expressions</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.filter" title="Permalink to this definition">¶</a></dt>
<dd><p>Apply the given query expressions to this query object</p>
<p><strong>Example</strong>: <tt class="docutils literal"><span class="pre">s.query(SomeObj).filter(SomeObj.age</span> <span class="pre">></span> <span class="pre">10,</span> <span class="pre">SomeObj.blood_type</span> <span class="pre">==</span> <span class="pre">'O')</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>query_expressions</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></td>
</tr>
</tbody>
</table>
<div class="admonition-see-also admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">QueryExpression</span></tt></a> class</p>
</div>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.filter_by">
<tt class="descname">filter_by</tt><big>(</big><em>**filters</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.filter_by" title="Permalink to this definition">¶</a></dt>
<dd><p>Filter for the names in <tt class="docutils literal"><span class="pre">filters</span></tt> being equal to the associated
values. Cannot be used for sub-objects since keys must be strings</p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.count">
<tt class="descname">count</tt><big>(</big><em>with_limit_and_skip=False</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.count" title="Permalink to this definition">¶</a></dt>
<dd><p>Execute a count on the number of results this query would return.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>with_limit_and_skip</strong> – Include <tt class="docutils literal"><span class="pre">.limit()</span></tt> and <tt class="docutils literal"><span class="pre">.skip()</span></tt> arguments in the count?</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.fields">
<tt class="descname">fields</tt><big>(</big><em>*fields</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.fields" title="Permalink to this definition">¶</a></dt>
<dd><p>Only return the specified fields from the object. Accessing a field that was not specified in <tt class="docutils literal"><span class="pre">fields</span></tt> will result in a :class:<tt class="docutils literal"><span class="pre">mongoalchemy.document.FieldNotRetrieved</span></tt> exception being raised</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>fields</strong> – Instances of :class:<tt class="docutils literal"><span class="pre">mongoalchemy.query.QueryField</span></tt> specifying which fields to return</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.ascending">
<tt class="descname">ascending</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.ascending" title="Permalink to this definition">¶</a></dt>
<dd><p>Sort the result based on <tt class="docutils literal"><span class="pre">qfield</span></tt> in ascending order. These calls
can be chained to sort by multiple fields.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – Instance of :class:<tt class="docutils literal"><span class="pre">mongoalchemy.query.QueryField</span></tt> specifying which field to sort by.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.descending">
<tt class="descname">descending</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.descending" title="Permalink to this definition">¶</a></dt>
<dd><p>Sort the result based on <tt class="docutils literal"><span class="pre">qfield</span></tt> in ascending order. These calls
can be chained to sort by multiple fields.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>qfield</strong> – Instance of :class:<tt class="docutils literal"><span class="pre">mongoalchemy.query.QueryField</span></tt> specifying which field to sort by.</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.not_">
<tt class="descname">not_</tt><big>(</big><em>*query_expressions</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.not_" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a $not expression to the query, negating the query expressions
given.</p>
<p><strong>Examples</strong>: <tt class="docutils literal"><span class="pre">query.not_(SomeDocClass.age</span> <span class="pre"><=</span> <span class="pre">18)</span></tt> becomes <tt class="docutils literal"><span class="pre">{'age'</span> <span class="pre">:</span> <span class="pre">{</span> <span class="pre">'$not'</span> <span class="pre">:</span> <span class="pre">{</span> <span class="pre">'$gt'</span> <span class="pre">:</span> <span class="pre">18</span> <span class="pre">}</span> <span class="pre">}}</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>query_expressions</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.or_">
<tt class="descname">or_</tt><big>(</big><em>first_qe</em>, <em>*qes</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.or_" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a $not expression to the query, negating the query expressions
given. The <tt class="docutils literal"><span class="pre">|</span> <span class="pre">operator</span></tt> on query expressions does the same thing</p>
<p><strong>Examples</strong>: <tt class="docutils literal"><span class="pre">query.or_(SomeDocClass.age</span> <span class="pre">==</span> <span class="pre">18,</span> <span class="pre">SomeDocClass.age</span> <span class="pre">==</span> <span class="pre">17)</span></tt> becomes <tt class="docutils literal"><span class="pre">{'$or'</span> <span class="pre">:</span> <span class="pre">[{</span> <span class="pre">'age'</span> <span class="pre">:</span> <span class="pre">18</span> <span class="pre">},</span> <span class="pre">{</span> <span class="pre">'age'</span> <span class="pre">:</span> <span class="pre">17</span> <span class="pre">}]}</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>query_expressions</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.in_">
<tt class="descname">in_</tt><big>(</big><em>qfield</em>, <em>*values</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.in_" title="Permalink to this definition">¶</a></dt>
<dd><p>Check to see that the value of <tt class="docutils literal"><span class="pre">qfield</span></tt> is one of <tt class="docutils literal"><span class="pre">values</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>qfield</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></li>
<li><strong>values</strong> – Values should be python values which <tt class="docutils literal"><span class="pre">qfield</span></tt> understands</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.nin">
<tt class="descname">nin</tt><big>(</big><em>qfield</em>, <em>*values</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.nin" title="Permalink to this definition">¶</a></dt>
<dd><p>Check to see that the value of <tt class="docutils literal"><span class="pre">qfield</span></tt> is not one of <tt class="docutils literal"><span class="pre">values</span></tt></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>qfield</strong> – Instances of <a class="reference internal" href="query_expressions.html#mongoalchemy.query_expression.QueryExpression" title="mongoalchemy.query_expression.QueryExpression"><tt class="xref py py-class docutils literal"><span class="pre">mongoalchemy.query_expression.QueryExpression</span></tt></a></li>
<li><strong>values</strong> – Values should be python values which <tt class="docutils literal"><span class="pre">qfield</span></tt> understands</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.find_and_modify">
<tt class="descname">find_and_modify</tt><big>(</big><em>new=False</em>, <em>remove=False</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.find_and_modify" title="Permalink to this definition">¶</a></dt>
<dd><p>The mongo “find and modify” command. Behaves like an update expression
in that “execute” must be called to do the update and return the
results.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>new</strong> – Whether to return the new object or old (default: False)</li>
<li><strong>remove</strong> – Whether to remove the object before returning it</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.set">
<tt class="descname">set</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.set" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.set" title="mongoalchemy.update_expression.UpdateExpression.set"><tt class="xref py py-func docutils literal"><span class="pre">set()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.unset">
<tt class="descname">unset</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.unset" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.unset" title="mongoalchemy.update_expression.UpdateExpression.unset"><tt class="xref py py-func docutils literal"><span class="pre">unset()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.inc">
<tt class="descname">inc</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.inc" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.inc" title="mongoalchemy.update_expression.UpdateExpression.inc"><tt class="xref py py-func docutils literal"><span class="pre">inc()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.append">
<tt class="descname">append</tt><big>(</big><em>qfield</em>, <em>value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.append" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.append" title="mongoalchemy.update_expression.UpdateExpression.append"><tt class="xref py py-func docutils literal"><span class="pre">append()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.extend">
<tt class="descname">extend</tt><big>(</big><em>qfield</em>, <em>*value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.extend" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.extend" title="mongoalchemy.update_expression.UpdateExpression.extend"><tt class="xref py py-func docutils literal"><span class="pre">extend()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.remove">
<tt class="descname">remove</tt><big>(</big><em>qfield</em>, <em>value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.remove" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.remove" title="mongoalchemy.update_expression.UpdateExpression.remove"><tt class="xref py py-func docutils literal"><span class="pre">remove()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.remove_all">
<tt class="descname">remove_all</tt><big>(</big><em>qfield</em>, <em>*value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.remove_all" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.remove_all" title="mongoalchemy.update_expression.UpdateExpression.remove_all"><tt class="xref py py-func docutils literal"><span class="pre">remove_all()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.add_to_set">
<tt class="descname">add_to_set</tt><big>(</big><em>qfield</em>, <em>value</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.add_to_set" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.add_to_set" title="mongoalchemy.update_expression.UpdateExpression.add_to_set"><tt class="xref py py-func docutils literal"><span class="pre">add_to_set()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.pop_first">
<tt class="descname">pop_first</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.pop_first" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.pop_first" title="mongoalchemy.update_expression.UpdateExpression.pop_first"><tt class="xref py py-func docutils literal"><span class="pre">pop_first()</span></tt></a></p>
</dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.Query.pop_last">
<tt class="descname">pop_last</tt><big>(</big><em>qfield</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.Query.pop_last" title="Permalink to this definition">¶</a></dt>
<dd><p>Refer to: <a class="reference internal" href="update_expressions.html#mongoalchemy.update_expression.UpdateExpression.pop_last" title="mongoalchemy.update_expression.UpdateExpression.pop_last"><tt class="xref py py-func docutils literal"><span class="pre">pop_last()</span></tt></a></p>
</dd></dl>
</dd></dl>
<dl class="class">
<dt id="mongoalchemy.query.QueryResult">
<em class="property">class </em><tt class="descclassname">mongoalchemy.query.</tt><tt class="descname">QueryResult</tt><big>(</big><em>cursor</em>, <em>type</em>, <em>raw_output=False</em>, <em>fields=None</em><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult" title="Permalink to this definition">¶</a></dt>
<dd><dl class="method">
<dt id="mongoalchemy.query.QueryResult.next">
<tt class="descname">next</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult.next" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.QueryResult.rewind">
<tt class="descname">rewind</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult.rewind" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="method">
<dt id="mongoalchemy.query.QueryResult.clone">
<tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#mongoalchemy.query.QueryResult.clone" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="index.html"
title="previous chapter">Expression Language — Querying and Updating</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="query_expressions.html"
title="next chapter">Mongo Query Expression Language</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/api/expressions/query.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="query_expressions.html" title="Mongo Query Expression Language"
>next</a> |</li>
<li class="right" >
<a href="index.html" title="Expression Language — Querying and Updating"
>previous</a> |</li>
<li><a href="../../index.html">MongoAlchemy v0.8 documentation</a> »</li>
<li><a href="../index.html" >API documentation</a> »</li>
<li><a href="index.html" >Expression Language — Querying and Updating</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2010, Jeffrey Jenkins.
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.8.
</div>
</body>
</html> | shakefu/MongoAlchemy | api/expressions/query.html | HTML | mit | 32,684 | 60.21576 | 660 | 0.683575 | false |
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
url: 'http://my-ghost-blog.com',
mail: {},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
// 配置MySQL 数据库
/*database: {
client: 'mysql',
connection: {
host : 'host',
user : 'user',
password : 'password',
database : 'database',
charset : 'utf8'
},
debug: false
},*/
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
//Storage.Now,we can support `qiniu`,`upyun`, `aliyun oss`, `aliyun ace-storage` and `local-file-store`
storage: {
provider: 'local-file-store'
}
// or
// 参考文档: http://www.ghostchina.com/qiniu-cdn-for-ghost/
/*storage: {
provider: 'qiniu',
bucketname: 'your-bucket-name',
ACCESS_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
SECRET_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
root: '/image/',
prefix: 'http://your-bucket-name.qiniudn.com'
}*/
// or
// 参考文档: http://www.ghostchina.com/upyun-cdn-for-ghost/
/*storage: {
provider: 'upyun',
bucketname: 'your-bucket-name',
username: 'your user name',
password: 'your password',
root: '/image/',
prefix: 'http://your-bucket-name.b0.upaiyun.com'
}*/
// or
// 参考文档: http://www.ghostchina.com/aliyun-oss-for-ghost/
/*storage: {
provider: 'oss',
bucketname: 'your-bucket-name',
ACCESS_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
SECRET_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
root: '/image/',
prefix: 'http://your-bucket-name.oss-cn-hangzhou.aliyuncs.com'
}*/
// or
// 参考文档: http://www.ghostchina.com/install-ghost-on-aliyun-ace/
/*storage: {
provider: 'ace-storage',
bucketname: 'your-bucket-name'
}*/
},
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
// Change this to your Ghost blogs published URL.
url: 'http://localhost:2368',
// Example mail config
// Visit http://support.ghost.org/mail for instructions
// ```
// mail: {
// transport: 'SMTP',
// options: {
// service: 'Mailgun',
// auth: {
// user: '', // mailgun username
// pass: '' // mailgun password
// }
// }
// },
// ```
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
paths: {
contentPath: path.join(__dirname, '/content/')
}
},
// **Developers only need to edit below here**
// ### Testing
// Used when developing Ghost to run tests and check the health of Ghost
// Uses a different port number
testing: {
url: 'http://127.0.0.1:2369',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-test.db')
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing MySQL
// Used by Travis - Automated testing run through GitHub
'testing-mysql': {
url: 'http://127.0.0.1:2369',
database: {
client: 'mysql',
connection: {
host : '127.0.0.1',
user : 'root',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing pg
// Used by Travis - Automated testing run through GitHub
'testing-pg': {
url: 'http://127.0.0.1:2369',
database: {
client: 'pg',
connection: {
host : '127.0.0.1',
user : 'postgres',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
}
};
// Export config
module.exports = config;
| PHILIP-2014/philip-blog | config.example.js | JavaScript | mit | 5,939 | 28.671875 | 111 | 0.45169 | false |
<?php
namespace AppBundle\Service\Crud\Strategy;
/**
* @author Alexandr Sibov<cyberdelia1987@gmail.com>
*/
trait ResolverAwareTrait
{
/**
* @var ResolverInterface
*/
private $resolver;
public function setStrategyResolver(ResolverInterface $resolver)
{
$this->resolver = $resolver;
$resolver->setBaseEntityName($this->getBaseEntityName());
$resolver->setEntityFactory($this);
}
/**
* @return ResolverInterface
*/
public function getStrategyResolver()
{
return $this->resolver;
}
}
| Cyberdelia1987/symfony-test | src/AppBundle/Service/Crud/Strategy/ResolverAwareTrait.php | PHP | mit | 575 | 18.166667 | 68 | 0.634783 | false |
(function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param $mdSidenav
* @param avatarsService
* @constructor
*/
function UserController( userService, $mdSidenav, $mdBottomSheet, $log, $q) {
var self = this;
self.selected = null;
self.users = [ ];
self.selectUser = selectUser;
self.toggleList = toggleUsersList;
self.share = share;
// Load all registered users
userService
.loadAllUsers()
.then( function( users ) {
self.users = [].concat(users);
self.selected = users[0];
});
// *********************************
// Internal methods
// *********************************
/**
* First hide the bottomsheet IF visible, then
* hide or Show the 'left' sideNav area
*/
function toggleUsersList() {
var pending = $mdBottomSheet.hide() || $q.when(true);
pending.then(function(){
$mdSidenav('left').toggle();
});
}
/**
* Select the current avatars
* @param menuId
*/
function selectUser ( user ) {
self.selected = angular.isNumber(user) ? $scope.users[user] : user;
self.toggleList();
}
/**
* Show the bottom sheet
*/
function share($event) {
var user = self.selected;
$mdBottomSheet.show({
parent: angular.element(document.getElementById('content')),
templateUrl: '/src/users/view/contactSheet.html',
controller: [ '$mdBottomSheet', UserSheetController],
controllerAs: "vm",
bindToController : true,
targetEvent: $event
}).then(function(clickedItem) {
clickedItem && $log.debug( clickedItem.name + ' clicked!');
});
/**
* Bottom Sheet controller for the Avatar Actions
*/
function UserSheetController( $mdBottomSheet ) {
this.user = user;
this.items = [
{ name: 'Github' , icon: 'github' , icon_url: 'assets/svg/github.svg', urlPath: "https://github.com/hassanabidpk/"},
{ name: 'Twitter' , icon: 'twitter' , icon_url: 'assets/svg/twitter.svg', urlPath: "https://twitter.com/hassanabidpk"},
{ name: 'Google+' , icon: 'google_plus' , icon_url: 'assets/svg/google_plus.svg', urlPath: "https://plus.google.com/+HassanAbid/"},
{ name: 'Linkedin' , icon: 'linkedin' , icon_url: 'assets/svg/linkedin.svg', urlPath: "https://kr.linkedin.com/pub/hassan-abid/12/700/66b"}
];
this.performAction = function(action) {
window.location.href = action.urlPath;
$mdBottomSheet.hide(action);
};
}
}
}
})();
| hassanabidpk/portfolio | app/src/users/UserController.js | JavaScript | mit | 2,971 | 29.628866 | 158 | 0.539886 | false |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.0 / metacoq-pcuic - 1.0~alpha2+8.10</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq-pcuic
<small>
1.0~alpha2+8.10
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-01 17:12:23 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-01 17:12:23 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.9.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.10"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
"Simon Boulier <simon.boulier@inria.fr>"
"Cyril Cohen <cyril.cohen@inria.fr>"
"Yannick Forster <forster@ps.uni-saarland.de>"
"Fabian Kunze <fkunze@fakusb.de>"
"Gregory Malecha <gmalecha@gmail.com>"
"Matthieu Sozeau <matthieu.sozeau@inria.fr>"
"Nicolas Tabareau <nicolas.tabareau@inria.fr>"
"Théo Winterhalter <theo.winterhalter@inria.fr>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
[make "-j%{jobs}%" "-C" "pcuic"]
]
install: [
[make "-C" "pcuic" "install"]
]
depends: [
"ocaml" {> "4.02.3"}
"coq" {>= "8.10" & < "8.11~"}
"coq-equations" {>= "1.2"}
"coq-metacoq-template" {= version}
"coq-metacoq-checker" {= version}
]
synopsis: "A type system equivalent to Coq's and its metatheory"
description: """
MetaCoq is a meta-programming framework for Coq.
The PCUIC module provides a cleaned-up specification of Coq's typing algorithm along
with a certified typechecker for it. This module includes the standard metatheory of
PCUIC: Weakening, Substitution, Confluence and Subject Reduction are proven here.
"""
# url {
# src: "https://github.com/MetaCoq/metacoq/archive/v2.1-beta3.tar.gz"
# checksum: "md5=e81b8ecabef788a10337a39b095d54f3"
# }
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-alpha2-8.10.tar.gz"
checksum: "sha256=94156cb9397b44915c9217a435a812cabc9651684cd229d5069b34332d0792a2"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-metacoq-pcuic.1.0~alpha2+8.10 coq.8.9.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.9.0).
The following dependencies couldn't be met:
- coq-metacoq-pcuic -> ocaml >= 4.02.4
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-pcuic.1.0~alpha2+8.10</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.9.0/metacoq-pcuic/1.0~alpha2+8.10.html | HTML | mit | 8,081 | 42.074866 | 159 | 0.561763 | false |
# ConfigBot
Welcome to config_bot gem!
This is a ruby command-line bot which will guide you to create a config file which can be later used by any environment.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'config_bot'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install config_bot
## Usage
TODO: Write usage instructions here
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/WasiqB/config_bot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
| WasiqB/config_bot | README.md | Markdown | mit | 1,366 | 34.025641 | 324 | 0.756223 | false |
import Router = require('koa-router');
import * as schema from './schema';
import * as routes from './routes';
import validator from '../../utils/validator';
const router = new Router({ prefix: '/toolkit' });
router.get('/example', routes.example);
router.post('/upload', validator(schema.upload), routes.upload);
export default router;
| whosesmile/koa-scaffold | src/modules/toolkit/index.ts | TypeScript | mit | 340 | 29.909091 | 64 | 0.702941 | false |
class Report < ActiveRecord::Base
mount_uploader :forest_photo, ForestPhotoUploader
end
| pilou15/https-github.com-pilou15-acacias-harvest | app/models/report.rb | Ruby | mit | 90 | 29 | 51 | 0.811111 | false |
package io.mattw.youtube.commentsuite.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;
public class ClipboardUtil {
private Clipboard systemClipboard;
public ClipboardUtil() {
}
private void initSystemClipboard() {
if (systemClipboard == null) {
systemClipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
}
}
private void setSystemClipboard(Clipboard clipboard) {
this.systemClipboard = clipboard;
}
public String getClipboard() throws UnsupportedFlavorException, IOException {
return (String) systemClipboard.getData(DataFlavor.stringFlavor);
}
/**
* Sets clipboard to string value.
*
* @param string text to set clipboard as
*/
public void setClipboard(String string) {
initSystemClipboard();
StringSelection selection = new StringSelection(string);
systemClipboard.setContents(selection, selection);
}
/**
* Converts list into a line.separator delimited string and sets to clipboard.
*
* @param list list of objects converted to line separated toString()
*/
public void setClipboard(List<?> list) {
List<String> strList = list.stream().map(Object::toString).collect(Collectors.toList());
setClipboard(strList.stream().collect(Collectors.joining(System.getProperty("line.separator"))));
}
/**
* Coverts object to string value and sets to clipboard.
*
* @param object uses toString() for clipboard
*/
public void setClipboard(Object object) {
setClipboard(object.toString());
}
}
| mattwright324/youtube-comment-suite | src/main/java/io/mattw/youtube/commentsuite/util/ClipboardUtil.java | Java | mit | 1,872 | 28.714286 | 105 | 0.691774 | false |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../circle.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /><small>vendor/whichbrowser/parser/tests/data/tablet/manufacturer-samsung.yaml</small></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.0.3</td><td style="border-left: 1px solid #555"></td><td>Galaxy Tab 2 10.1</td><td>tablet</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-027cff01-4a76-491b-ace3-9289fcbc172f">Detail</a>
<!-- Modal Structure -->
<div id="modal-027cff01-4a76-491b-ace3-9289fcbc172f" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[headers] => User-Agent: Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
[result] => Array
(
[browser] => Array
(
[name] => Chrome
[version] => 18
[type] => browser
)
[engine] => Array
(
[name] => Webkit
[version] => 535.19
)
[os] => Array
(
[name] => Android
[version] => 4.0.3
)
[device] => Array
(
[type] => tablet
[manufacturer] => Samsung
[model] => Galaxy Tab 2 10.1
)
)
[readable] => Chrome 18 on a Samsung Galaxy Tab 2 10.1 running Android 4.0.3
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Tab 2 10.1</td><td>Tablet</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.024</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a>
<!-- Modal Structure -->
<div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapFull result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.0.*gt\-p5100 build\/.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android?4.0*gt-p5100 build/*) applewebkit/* (khtml* like gecko) chrome/18.*safari/*
[parent] => Chrome 18.0 for Android
[comment] => Chrome 18.0
[browser] => Chrome
[browser_type] => Browser
[browser_bits] => 32
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 18.0
[majorver] => 18
[minorver] => 0
[platform] => Android
[platform_version] => 4.0
[platform_description] => Android OS
[platform_bits] => 32
[platform_maker] => Google Inc
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] =>
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] => 1
[issyndicationreader] =>
[crawler] =>
[isfake] =>
[isanonymized] =>
[ismodified] =>
[cssversion] => 3
[aolversion] => 0
[device_name] => Galaxy Tab 2 10.1
[device_maker] => Samsung
[device_type] => Tablet
[device_pointing_method] => touchscreen
[device_code_name] => GT-P5100
[device_brand_name] => Samsung
[renderingengine_name] => WebKit
[renderingengine_version] => unknown
[renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.
[renderingengine_maker] => Apple Inc
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td><td>Chrome </td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.008</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-42bb56ba-b834-47c5-bea0-c0270e9ab371">Detail</a>
<!-- Modal Structure -->
<div id="modal-42bb56ba-b834-47c5-bea0-c0270e9ab371" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapLite result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/.*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/*safari/*
[parent] => Chrome Generic for Android
[comment] => Chrome Generic
[browser] => Chrome
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => unknown
[browser_modus] => unknown
[version] => 0.0
[majorver] => 0
[minorver] => 0
[platform] => Android
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] => false
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => unknown
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>Chrome 18.0</td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.035</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a>
<!-- Modal Structure -->
<div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.*\) applewebkit\/.* \(khtml.* like gecko\) chrome\/18\..*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android*) applewebkit/* (khtml* like gecko) chrome/18.*safari/*
[parent] => Chrome 18.0 for Android
[comment] => Chrome 18.0
[browser] => Chrome
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 18.0
[majorver] => 18
[minorver] => 0
[platform] => Android
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] =>
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => touchscreen
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a>
<!-- Modal Structure -->
<div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] => Android
[browser] => Chrome
[version] => 18.0.1025.133
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>AndroidOS 4.0.3</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a>
<!-- Modal Structure -->
<div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>JenssegersAgent result detail</h4>
<p><pre><code class="php">Array
(
[browserName] => Chrome
[browserVersion] => 18.0.1025.133
[osName] => AndroidOS
[osVersion] => 4.0.3
[deviceModel] => SamsungTablet
[isMobile] => 1
[isRobot] =>
[botName] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Tab 2 (10.1)</td><td>desktop-browser</td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.27802</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a>
<!-- Modal Structure -->
<div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 0
[is_mobile] =>
[type] => desktop-browser
[mobile_brand] => Samsung
[mobile_model] => Galaxy Tab 2 (10.1)
[version] => 18.0.1025.133
[is_android] =>
[browser_name] => Chrome
[operating_system_family] => Android
[operating_system_version] => 4.0.3
[is_ios] =>
[producer] => Google Inc.
[operating_system] => Android 4.0.x Ice Cream Sandwich
[mobile_screen_width] => 0
[mobile_browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555">Samsung</td><td>GALAXY Tab 2 10.1"</td><td>tablet</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.004</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a>
<!-- Modal Structure -->
<div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] => Array
(
[type] => browser
[name] => Chrome
[short_name] => CH
[version] => 18.0
[engine] => WebKit
)
[operatingSystem] => Array
(
[name] => Android
[short_name] => AND
[version] => 4.0
[platform] =>
)
[device] => Array
(
[brand] => SA
[brandName] => Samsung
[model] => GALAXY Tab 2 10.1"
[device] => 2
[deviceName] => tablet
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] => 1
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] =>
[isTablet] => 1
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ec1cd248-02b0-457e-8a9d-35bb99af008c">Detail</a>
<!-- Modal Structure -->
<div id="modal-ec1cd248-02b0-457e-8a9d-35bb99af008c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>SinergiBrowserDetector result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Sinergi\BrowserDetector\Browser Object
(
[userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
[name:Sinergi\BrowserDetector\Browser:private] => Chrome
[version:Sinergi\BrowserDetector\Browser:private] => 18.0.1025.133
[isRobot:Sinergi\BrowserDetector\Browser:private] =>
[isChromeFrame:Sinergi\BrowserDetector\Browser:private] =>
[isFacebookWebView:Sinergi\BrowserDetector\Browser:private] =>
[isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] =>
)
[operatingSystem] => Sinergi\BrowserDetector\Os Object
(
[name:Sinergi\BrowserDetector\Os:private] => Android
[version:Sinergi\BrowserDetector\Os:private] => 4.0.3
[isMobile:Sinergi\BrowserDetector\Os:private] => 1
[userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
)
[device] => Sinergi\BrowserDetector\Device Object
(
[name:Sinergi\BrowserDetector\Device:private] => unknown
[userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Chrome 18.0.1025</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>GT-P5100</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a>
<!-- Modal Structure -->
<div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 18
[minor] => 0
[patch] => 1025
[family] => Chrome
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] => 4
[minor] => 0
[patch] => 3
[patchMinor] =>
[family] => Android
)
[device] => UAParser\Result\Device Object
(
[brand] => Samsung
[model] => GT-P5100
[family] => Samsung GT-P5100
)
[originalUserAgent] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Chrome 18.0.1025.133</td><td>WebKit 535.19</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15101</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a>
<!-- Modal Structure -->
<div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[platform_name] => Android
[platform_version] => 4.0.3
[platform_type] => Mobile
[browser_name] => Chrome
[browser_version] => 18.0.1025.133
[engine_name] => WebKit
[engine_version] => 535.19
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.062</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a>
<!-- Modal Structure -->
<div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentStringCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[agent_type] => Browser
[agent_name] => Android Webkit Browser
[agent_version] => --
[os_type] => Android
[os_name] => Android
[os_versionName] =>
[os_versionNumber] => 4.0.3
[os_producer] =>
[os_producerURL] =>
[linux_distibution] => Null
[agent_language] =>
[agent_languageTag] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>Chrome 18.0.1025.133</td><td>WebKit 535.19</td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.24001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] => Android
[simple_sub_description_string] =>
[simple_browser_string] => Chrome 18 on Android (Ice Cream Sandwich)
[browser_version] => 18
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => stdClass Object
(
[System Build] => IML74K
)
[layout_engine_name] => WebKit
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => chrome
[operating_system_version] => Ice Cream Sandwich
[simple_operating_platform_string] => Samsung GT-P5100
[is_abusive] =>
[layout_engine_version] => 535.19
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] => Samsung
[operating_system] => Android (Ice Cream Sandwich)
[operating_system_version_full] => 4.0.3
[operating_platform_code] => GT-P5100
[browser_name] => Chrome
[operating_system_name_code] => android
[user_agent] => Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19
[browser_version_full] => 18.0.1025.133
[browser] => Chrome 18
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Tab 2 10.1</td><td>tablet</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a>
<!-- Modal Structure -->
<div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => Chrome
[version] => 18
[type] => browser
)
[engine] => Array
(
[name] => Webkit
[version] => 535.19
)
[os] => Array
(
[name] => Android
[version] => 4.0.3
)
[device] => Array
(
[type] => tablet
[manufacturer] => Samsung
[model] => Galaxy Tab 2 10.1
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a>
<!-- Modal Structure -->
<div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[name] => Chrome
[vendor] => Google
[version] => 18.0.1025.133
[category] => smartphone
[os] => Android
[os_version] => 4.0.3
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>GT-P5100</td><td>Tablet</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.017</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a>
<!-- Modal Structure -->
<div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => true
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => true
[is_mobile] => true
[is_robot] => false
[is_smartphone] => false
[is_touchscreen] => true
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] => Android
[advertised_device_os_version] => 4.0.3
[advertised_browser] => Chrome
[advertised_browser_version] => 18.0.1025.133
[complete_device_name] => Samsung GT-P5100 (Galaxy Tab 2 10.1)
[device_name] => Samsung Galaxy Tab 2 10.1
[form_factor] => Tablet
[is_phone] => false
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => Samsung
[model_name] => GT-P5100
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => true
[has_qwerty_keyboard] => true
[can_skip_aligned_link_row] => true
[uaprof] => http://wap.samsungmobile.com/uaprof/GT-P5100.xml
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] => Android
[mobile_browser] => Chrome Mobile
[mobile_browser_version] => 18
[device_os_version] => 4.0
[pointing_method] => touchscreen
[release_date] => 2012_april
[marketing_name] => Galaxy Tab 2 10.1
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => true
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => true
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => true
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => iso-8859-1
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => text/html
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => mms:
[xhtml_file_upload] => supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => full
[xhtml_avoid_accesskeys] => true
[xhtml_can_embed_video] => none
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => standard
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => w3c_api
[xhtml_support_level] => 4
[preferred_markup] => html_web_4_0
[wml_1_1] => false
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => true
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 1280
[resolution_height] => 800
[columns] => 25
[max_image_width] => 800
[max_image_height] => 1280
[rows] => 21
[physical_screen_width] => 218
[physical_screen_height] => 136
[dual_orientation] => true
[density_class] => 1.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => true
[transparent_png_index] => true
[svgt_1_1] => true
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 65536
[webp_lossy_support] => true
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 3600
[wifi] => true
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 2000000
[max_url_length_in_requests] => 256
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => true
[inline_support] => false
[oma_support] => true
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => true
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 30
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 0
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => 1
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => apple_live_streaming
[wap_push_support] => true
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => true
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => true
[sender] => true
[mms_max_size] => 307200
[mms_max_height] => 480
[mms_max_width] => 640
[built_in_recorder] => false
[built_in_camera] => true
[mms_jpeg_baseline] => true
[mms_jpeg_progressive] => false
[mms_gif_static] => true
[mms_gif_animated] => true
[mms_png] => true
[mms_bmp] => false
[mms_wbmp] => true
[mms_amr] => true
[mms_wav] => false
[mms_midi_monophonic] => true
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => true
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => true
[mms_vcalendar] => true
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => true
[mms_mp4] => true
[mms_3gpp] => true
[mms_3gpp2] => true
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => true
[midi_polyphonic] => true
[sp_midi] => true
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => true
[au] => false
[amr] => true
[awb] => false
[aac] => true
[mp3] => true
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => false
[css_supports_width_as_percentage] => true
[css_border_image] => webkit
[css_rounded_corners] => webkit
[css_gradient] => none
[css_spriting] => true
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => true
[progressive_download] => true
[playback_vcodec_h263_0] => 10
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 0
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 3.0
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => true
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => none
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => true
[html_preferred_dtd] => html4
[viewport_supported] => true
[viewport_width] => device_width_token
[viewport_userscalable] => no
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => full
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => A
[is_sencha_touch_ok] => false
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Google Chrome 18.0.1025.133</td><td><i class="material-icons">close</i></td><td>Android 4.0.3</td><td style="border-left: 1px solid #555">Samsung</td><td>P5100</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a>
<!-- Modal Structure -->
<div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Zsxsoft result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[link] => http://google.com/chrome/
[title] => Google Chrome 18.0.1025.133
[name] => Google Chrome
[version] => 18.0.1025.133
[code] => chrome
[image] => img/16/browser/chrome.png
)
[os] => Array
(
[link] => http://www.android.com/
[name] => Android
[version] => 4.0.3
[code] => android
[x64] =>
[title] => Android 4.0.3
[type] => os
[dir] => os
[image] => img/16/os/android.png
)
[device] => Array
(
[link] => http://www.samsungmobile.com/
[title] => Samsung P5100
[model] => P5100
[brand] => Samsung
[code] => samsung
[dir] => device
[type] => device
[image] => img/16/device/samsung.png
)
[platform] => Array
(
[link] => http://www.samsungmobile.com/
[title] => Samsung P5100
[model] => P5100
[brand] => Samsung
[code] => samsung
[dir] => device
[type] => device
[image] => img/16/device/samsung.png
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-05-10 08:10:14</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/e9/3d/e93d87f0-5b6e-4fa9-8a69-d4eb386acf11.html | HTML | mit | 57,360 | 39.972143 | 922 | 0.544613 | false |
package com.aol.cyclops.guava;
import com.aol.simple.react.stream.traits.FutureStream;
import com.google.common.collect.FluentIterable;
public class FromSimpleReact {
public static <T> FluentIterable<T> fromSimpleReact(
FutureStream<T> s) {
return FluentIterable.from(s);
}
}
| sjfloat/cyclops | cyclops-guava/src/main/java/com/aol/cyclops/guava/FromSimpleReact.java | Java | mit | 286 | 22.833333 | 55 | 0.776224 | false |
#import <Flutter/Flutter.h>
@interface AdbflibPlugin : NSObject<FlutterPlugin>
@end
| electricherd/audiobookfinder | packages/adbflib_ffi/ios/Classes/AdbflibPlugin.h | C | mit | 85 | 20.25 | 50 | 0.788235 | false |
---
layout: post
title: "苹果的清洁能源项目"
date: 2016-3-21 9:11:11
categories: 苹果 能源 环保
published: false
---
本月 22 号苹果举行了他们的春季发布会。虽然消费产品,例如 iPhone 和 iPad 并没有大的更新,但是关于 CareKit 和[环保项目][1]的进展还是很振奋人心的。特别是其中的清洁能源项目,是非常雄心勃勃并且需要巨大投入的,因此也十分值得我们研究学习。

[1]: http://www.apple.com/cn/environment/renewable-resources/
| unionx/unionx.github.io | _posts/2016-3-22-renewable-resources-in-apple.md | Markdown | mit | 605 | 26.615385 | 132 | 0.746518 | false |
<?php
namespace Nijens\FailureHandling;
use Nijens\Utilities\UnregisterableCallback;
/**
* FailureCatcher
*
* @author Niels Nijens <nijens.niels@gmail.com>
* @package Nijens\Failurehandling
**/
class FailureCatcher
{
/**
* The failure handler instance implementing FailureHandlerInterface
*
* @access protected
* @var FailureHandlerInterface
**/
protected static $failureHandler;
/**
* The UnregisterableCallback instance
*
* @access protected
* @var UnregisterableCallback
**/
protected static $shutdownCallback;
/**
* The callable with an additional shutdown callback handled in @see shutdown
*
* @access protected
* @var callable
**/
protected static $additionalShutdownCallback;
/**
* start
*
* Starts the failure catcher with a $failureHandler
*
* @access public
* @param FailureHandlerInterface $failureHandler
* @param callable $additionalShutdownCallback
* @return void
**/
public static function start(FailureHandlerInterface $failureHandler, $additionalShutdownCallback = null)
{
static::setPHPConfigurationOptionsToAvoidErrorOutput();
static::$failureHandler = $failureHandler;
set_error_handler(array($failureHandler, "handleError") );
set_exception_handler(array($failureHandler, "handleException") );
static::$shutdownCallback = new UnregisterableCallback(array(__CLASS__, "shutdown") );
register_shutdown_function(array(static::$shutdownCallback, "call") );
if (is_callable($additionalShutdownCallback) ) {
static::$additionalShutdownCallback = $additionalShutdownCallback;
}
}
/**
* setPHPConfigurationOptionsToAvoidErrorOutput
*
* Sets the ini options in a way that make sure errors are not outputted to the browser or cli
*
* @return boolean
*/
private static function setPHPConfigurationOptionsToAvoidErrorOutput() {
$changed = false;
// an empty log while logging will produce output on errors that cannot be handled by an error-handler
if (ini_get("log_errors") === "1" && ini_get("error_log") === "") {
ini_set("log_errors", "0");
$changed = true;
}
// do not output errors
if (ini_get("display_errors") === "1") {
ini_set("display_errors", "0");
$changed = true;
}
return $changed;
}
/**
* stop
*
* Stops the failure catcher
*
* @access public
* @return void
**/
public static function stop()
{
if (static::$failureHandler instanceof FailureHandlerInterface) {
restore_error_handler();
restore_exception_handler();
}
if (static::$shutdownCallback instanceof UnregisterableCallback) {
static::$shutdownCallback->unregister();
}
static::$failureHandler = null;
static::$shutdownCallback = null;
static::$additionalShutdownCallback = null;
}
/**
* shutdown
*
* Handles errors that were not handled by FailureHandlerInterface::handleError
*
* @access public
* @return void
**/
public static function shutdown()
{
$error = error_get_last();
if (is_array($error) ) {
static::handleShutdownError($error);
}
if (is_callable(static::$additionalShutdownCallback) ) {
call_user_func(static::$additionalShutdownCallback);
}
}
/**
* handleShutdownError
*
* Handles errors that were not handled by FailureHandlerInterface::handleError
*
* @access protected
* @param array $error
* @return void
**/
protected static function handleShutdownError(array $error)
{
$stacktrace = null;
if (ob_get_length() > 0) {
$stacktrace = ob_get_clean();
}
$context = array("stacktrace" => $stacktrace);
static::$failureHandler->handleError($error["type"], $error["message"], $error["file"], $error["line"], $context);
}
}
| niels-nijens/FailureHandling | src/FailureCatcher.php | PHP | mit | 4,222 | 26.776316 | 122 | 0.605637 | false |
namespace Farmhand.Installers.Patcher.Injection.Components.Modifiers
{
// ReSharper disable StyleCop.SA1600
using System;
using System.ComponentModel.Composition;
using Farmhand.Installers.Patcher.Cecil;
using Farmhand.Installers.Patcher.Injection.Components.Hooks;
using Farmhand.Installers.Patcher.Injection.Components.Modifiers.Converters;
[Export(typeof(IHookHandler))]
[PartCreationPolicy(CreationPolicy.Shared)]
public class AlterProtectionHandler : IHookHandler
{
private readonly CecilContext cecilContext;
private readonly IAlterProtectionAttributeConverter propertyConverter;
[ImportingConstructor]
public AlterProtectionHandler(
IAlterProtectionAttributeConverter propertyConverter,
IInjectionContext injectionContext)
{
this.propertyConverter = propertyConverter;
var context = injectionContext as CecilContext;
if (context != null)
{
this.cecilContext = context;
}
else
{
throw new Exception(
$"CecilInjectionProcessor is only compatible with {nameof(CecilContext)}.");
}
}
#region IHookHandler Members
public void PerformAlteration(Attribute attribute, string typeName, string methodName)
{
this.propertyConverter.FromAttribute(attribute);
bool isPublic = this.propertyConverter.MinimumProtectionLevel == 2;
var type = this.cecilContext.GetTypeDefinition(this.propertyConverter.TypeName);
type.IsPublic = isPublic;
type.IsNotPublic = !isPublic;
}
public bool Equals(string fullName)
{
return this.propertyConverter.FullName == fullName;
}
#endregion
}
} | ClxS/Stardew-Farmhand | Libraries/Installers/Patcher/FarmhandPatcherCommon/Injection/Components/Modifiers/AlterProtectionHandler.cs | C# | mit | 1,879 | 32.535714 | 96 | 0.654768 | false |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.1 / elpi - 1.12.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
elpi
<small>
1.12.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-03-02 19:39:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-02 19:39:01 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.5.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
maintainer: "Enrico Tassi <enrico.tassi@inria.fr>"
authors: [ "Enrico Tassi" ]
license: "LGPL-2.1-or-later"
homepage: "https://github.com/LPCIC/coq-elpi"
bug-reports: "https://github.com/LPCIC/coq-elpi/issues"
dev-repo: "git+https://github.com/LPCIC/coq-elpi"
build: [ [ make "build" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" "OCAMLWARN=" ]
[ make "test" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ] {with-test}
]
install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
depends: [
"stdlib-shims"
"ocaml" {>= "4.07"}
"elpi" {>= "1.13.6" & < "1.14.0~"}
"coq" {>= "8.15" & < "8.16~" }
]
tags: [ "logpath:elpi" ]
synopsis: "Elpi extension language for Coq"
description: """
Coq-elpi provides a Coq plugin that embeds ELPI.
It also provides a way to embed Coq's terms into λProlog using
the Higher-Order Abstract Syntax approach
and a way to read terms back. In addition to that it exports to ELPI a
set of Coq's primitives, e.g. printing a message, accessing the
environment of theorems and data types, defining a new constant and so on.
For convenience it also provides a quotation and anti-quotation for Coq's
syntax in λProlog. E.g. `{{nat}}` is expanded to the type name of natural
numbers, or `{{A -> B}}` to the representation of a product by unfolding
the `->` notation. Finally it provides a way to define new vernacular commands
and
new tactics."""
url {
src: "https://github.com/LPCIC/coq-elpi/archive/v1.12.1.tar.gz"
checksum: "sha256=32eac6be5172eb945df6e80b1b6e0b784cbf1d7dca15ee780bb60716a0bb9ce5"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-elpi.1.12.1 coq.8.5.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.1).
The following dependencies couldn't be met:
- coq-elpi -> ocaml >= 4.07
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-elpi.1.12.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.1/elpi/1.12.1.html | HTML | mit | 7,729 | 42.514124 | 159 | 0.55518 | false |
<?php
namespace Superjobs\HomeBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Superjobs\HomeBundle\Entity\CVtheque;
use Superjobs\HomeBundle\Form\CVthequeType;
use Superjobs\HomeBundle\Entity\Category;
use Superjobs\HomeBundle\Form\CategoryType;
class MainController extends Controller {
public function indexAction(Request $request) {
$em = $this->getDoctrine()->getManager();
$jobs = $em->getRepository("SuperjobsHomeBundle:Jobs")->findBy(
array(), array('id' => 'DESC')
);
$productRepository = $em->getRepository('SuperjobsHomeBundle:Category');
$oCategory = $productRepository->findAll();
foreach ($oCategory as $key => $oCategoryValue) {
$category[$key] = $oCategoryValue->getName();
}
$paginator = $this->get('knp_paginator');
$pagination = $paginator->paginate(
$jobs, $request->query->get('page', 1)/* page number */, 10/* limit per page */
);
return $this->render('SuperjobsHomeBundle:Main:index.html.twig', array(
'pagination' => $pagination,
'category' => $category
));
}
public function feedbackAction() {
return $this->render('SuperjobsHomeBundle:Main:feedback.html.twig');
}
public function contactAction() {
return $this->render('SuperjobsHomeBundle:Main:contact.html.twig');
}
public function faqAction() {
return $this->render('SuperjobsHomeBundle:Main:faq.html.twig');
}
public function pressAction() {
return $this->render('SuperjobsHomeBundle:Main:press.html.twig');
}
public function cguAction() {
return $this->render('SuperjobsHomeBundle:Main:cgu.html.twig');
}
public function aboutAction() {
return $this->render('SuperjobsHomeBundle:Main:about.html.twig');
}
function detailsAction($id, Request $request) {
$id = $request->query->get('tag');
$job = $this->getDoctrine()->getRepository("SuperjobsHomeBundle:Jobs")->findOneBy(array('id' => $id));
$CVtheque = new CVtheque();
$form = $this->createForm(new CVthequeType(), $CVtheque);
return $this->render('SuperjobsHomeBundle:Main:details.html.twig', array(
'job' => $job,
'form' => $form->createView(),
));
}
function searchEngineAction($pattern, Request $request) {
if ($pattern == "all")
$pattern = "";
$Jobs = $this->get("superjobs_search_engine")->searchExpress($pattern);
return $this->render('SuperjobsHomeBundle:SearchEngine:searchResults.html.twig', array(
'Jobs' => $Jobs
));
}
}
| anderson-abc/Superjobs | src/Superjobs/HomeBundle/Controller/MainController.php | PHP | mit | 2,833 | 31.193182 | 110 | 0.612778 | false |
local module = {}
function module.ctor(env,loader)
env.loader = loader
end
return module
| gsmake/gsmake | lib/gsmake/gsmake/sandbox/loader.lua | Lua | mit | 100 | 11.5 | 32 | 0.68 | false |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.0 / metacoq - 1.0~beta1+8.11</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq
<small>
1.0~beta1+8.11
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-10-28 09:54:59 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-28 09:54:59 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
"Simon Boulier <simon.boulier@inria.fr>"
"Cyril Cohen <cyril.cohen@inria.fr>"
"Yannick Forster <forster@ps.uni-saarland.de>"
"Fabian Kunze <fkunze@fakusb.de>"
"Gregory Malecha <gmalecha@gmail.com>"
"Matthieu Sozeau <matthieu.sozeau@inria.fr>"
"Nicolas Tabareau <nicolas.tabareau@inria.fr>"
"Théo Winterhalter <theo.winterhalter@inria.fr>"
]
license: "MIT"
depends: [
"ocaml" {>= "4.07.1"}
"coq" {>= "8.11" & < "8.12~"}
"coq-metacoq-template" {= version}
"coq-metacoq-checker" {= version}
"coq-metacoq-pcuic" {= version}
"coq-metacoq-safechecker" {= version}
"coq-metacoq-erasure" {= version}
"coq-metacoq-translations" {= version}
]
synopsis: "A meta-programming framework for Coq"
description: """
MetaCoq is a meta-programming framework for Coq.
The meta-package includes the template-coq library, unverified checker for Coq,
PCUIC development including a verified translation from Coq to PCUIC,
safe checker and erasure for PCUIC and example translations.
See individual packages for more detailed descriptions.
"""
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-beta1-8.11.tar.gz"
checksum: "sha256=1644c5bd9d02385c802535c6c46dbcaf279afcecd4ffb3da5fae08618c628c75"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-metacoq.1.0~beta1+8.11 coq.8.11.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.0).
The following dependencies couldn't be met:
- coq-metacoq -> ocaml >= 4.07.1
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq.1.0~beta1+8.11</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.0/metacoq/1.0~beta1+8.11.html | HTML | mit | 7,589 | 41.728814 | 159 | 0.556261 | false |
MIT License
===========
Copyright (c) 2017 Arne Bakkebø
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. | makingwaves/mirrorjson | LICENSE.md | Markdown | mit | 1,081 | 48.136364 | 78 | 0.797222 | false |
<?php
/**
* BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
*
* @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace BjyAuthorize\Service;
use BjyAuthorize\View\UnauthorizedStrategy;
use Interop\Container\ContainerInterface;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
/**
* Factory responsible of instantiating {@see \BjyAuthorize\View\UnauthorizedStrategy}
*
* @author Marco Pivetta <ocramius@gmail.com>
*/
class UnauthorizedStrategyServiceFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
return new UnauthorizedStrategy($container->get('BjyAuthorize\Config')['template']);
}
/**
* {@inheritDoc}
*
* @return \BjyAuthorize\View\UnauthorizedStrategy
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
return $this($serviceLocator, UnauthorizedStrategy::class);
}
}
| JohnPaulConcierge/BjyAuthorize | src/BjyAuthorize/Service/UnauthorizedStrategyServiceFactory.php | PHP | mit | 1,135 | 29.675676 | 98 | 0.748018 | false |
require 'spec_helper'
describe Micropost do
let(:user) { FactoryGirl.create(:user) }
before { @micropost = user.microposts.build(content: "Lorem ipsum") }
subject { @micropost }
it { should respond_to(:content) }
it { should respond_to(:user_id) }
it { should respond_to(:user) }
its(:user) { should eq user }
it { should be_valid }
describe "when user_id is not present" do
before { @micropost.user_id = nil }
it { should_not be_valid }
end
end | prank7/jsTwitter | spec/models/micropost_spec.rb | Ruby | mit | 480 | 20.863636 | 71 | 0.652083 | false |
//
// ViewController.h
// DSCrashDemo
//
// Created by dasheng on 16/4/11.
// Copyright © 2016年 dasheng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| walkdianzi/DSCrashDemo | DSCrashDemo/DSCrashDemo/ViewController.h | C | mit | 215 | 13.133333 | 51 | 0.688679 | false |
https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=1068
| andrewdefries/ToxCast | Figure4/FDA_Pesticides/PCID_1068.html | HTML | mit | 62 | 61 | 61 | 0.790323 | false |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\FujiFilm;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class Face7Name extends AbstractTag
{
protected $Id = 'Face7Name';
protected $Name = 'Face7Name';
protected $FullName = 'FujiFilm::FaceRecInfo';
protected $GroupName = 'FujiFilm';
protected $g0 = 'MakerNotes';
protected $g1 = 'FujiFilm';
protected $g2 = 'Image';
protected $Type = '?';
protected $Writable = false;
protected $Description = 'Face 7 Name';
protected $flag_Permanent = true;
}
| romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/FujiFilm/Face7Name.php | PHP | mit | 840 | 18.090909 | 74 | 0.679762 | false |
var gulp = require('gulp'),
concat = require('gulp-concat'),
compass = require('gulp-compass'),
notify = require('gulp-notify');
function swallowError(error) {
this.emit('end');
}
function reportError(error) {
notify.onError().apply(this, arguments);
this.emit('end');
}
// combine js into single file
//===========================================
gulp.task('scripts', function() {
gulp.src([
'./src/js/lib/jquery.min.js',
'./src/js/lib/cssbeautify.js',
'./src/js/lib/specificity.js',
'./src/js/lib/tablesorter.js',
'./src/js/local/helpers.js',
// './src/js/local/syntax-highlight.js',
'./src/js/local/build-html.js',
// './src/js/local/build-specificity.js',
'./src/js/local/button-control.js',
// './src/js/local/css-highlight.js',
'./src/js/local/tabs.js'
])
.pipe(concat('smprof.js'))
.pipe(gulp.dest('./ext/js/'))
});
// compass: compile sass to css
//===========================================
gulp.task('compass', function() {
gulp.src('./assets/sass/*.scss')
.pipe(compass({
config_file: './config.rb',
css: './ext/css/',
sass: './assets/sass'
}))
.on('error', reportError);
});
// watch: monitor html and static assets updates
//===========================================
gulp.task('watch', function() {
// watch task for sass
gulp.watch('./assets/sass/**/*.scss', ['compass']);
gulp.watch('./src/js/**/*.js', ['scripts']);
});
// Default Gulp Task
//===========================================
gulp.task('default', ['compass', 'scripts', 'watch']); | jalvarado91/searchMyProf | gulpfile.js | JavaScript | mit | 1,611 | 24.587302 | 54 | 0.518312 | false |
import { CustomVirtualAudioNodeFactory, VirtualAudioNode } from "../types";
export default abstract class VirtualAudioNodeBase {
public readonly node!: string | CustomVirtualAudioNodeFactory;
public cannotUpdateInPlace(newVirtualAudioNode: VirtualAudioNode): boolean {
return newVirtualAudioNode.node !== this.node;
}
}
| benji6/virtual-audio-graph | src/VirtualAudioNodes/VirtualAudioNodeBase.ts | TypeScript | mit | 332 | 35.888889 | 78 | 0.792169 | false |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
from __future__ import absolute_import
from math import acos, cos, pi, radians, sin, sqrt
import auttitude as at
import numpy as np
def normalized_cross(a, b):
"""
Returns the normalized cross product between vectors.
Uses numpy.cross().
Parameters:
a: First vector.
b: Second vector.
"""
c = np.cross(a, b)
length = sqrt(c.dot(c))
return c/length if length > 0 else c
def general_plane_intersection(n_a, da, n_b, db):
"""
Returns a point and direction vector for the line of intersection
of two planes in space, or None if planes are parallel.
Parameters:
n_a: Normal vector to plane A
da: Point of plane A
n_b: Normal vector to plane B
db: Point of plane B
"""
# https://en.wikipedia.org/wiki/Intersection_curve
n_a = np.array(n_a)
n_b = np.array(n_b)
da = np.array(da)
db = np.array(db)
l_v = np.cross(n_a, n_b)
norm_l = sqrt(np.dot(l_v, l_v))
if norm_l == 0:
return None
else:
l_v /= norm_l
aa = np.dot(n_a, n_a)
bb = np.dot(n_b, n_b)
ab = np.dot(n_a, n_b)
d_ = 1./(aa*bb - ab*ab)
l_0 = (da*bb - db*ab)*d_*n_a + (db*aa - da*ab)*d_*n_b
return l_v, l_0
def small_circle_intersection(axis_a, angle_a, axis_b, angle_b):
"""
Finds the intersection between two small-circles returning zero, one or two
solutions as tuple.
Parameters:
axis_a: Vector defining first circle axis
angle_a: Small circle aperture angle (in radians) around axis_a
axis_b: Vector defining second circle axis
angle_b: Small circle aperture angle (in radians) around axis_b
"""
line = general_plane_intersection(axis_a, cos(angle_a),
axis_b, cos(angle_b))
if line is None:
return ()
l_v, l_0 = line
# https://en.wikipedia.org/wiki/Line%E2%80%93sphere_intersection
b = 2*l_v.dot(l_0)
delta = b*b - 4*(l_0.dot(l_0) - 1)
# Should the answers be normalized?
if delta < 0:
return ()
elif delta == 0:
return -b/2.,
else:
sqrt_delta = sqrt(delta)
return l_0 + l_v*(-b - sqrt_delta)/2., l_0 + l_v*(-b + sqrt_delta)/2.
def build_rotation_matrix(azim, plng, rake):
"""
Returns the rotation matrix that rotates the North vector to the line given
by Azimuth and Plunge and East and Up vectors are rotate clock-wise by Rake
around the rotated North vector.
Parameters:
azim: Line Azimuth from North (degrees).
plng: Line Plunge measured from horizontal (degrees).
rake: Rotation angle around rotated axis (degrees).
"""
# pylint: disable=bad-whitespace
azim, plng, rake = radians(azim), radians(plng), radians(rake)
R1 = np.array((( cos(rake), 0., sin(rake)),
( 0., 1., 0. ),
(-sin(rake), 0., cos(rake))))
R2 = np.array((( 1., 0., 0. ),
( 0., cos(plng), sin(plng)),
( 0., -sin(plng), cos(plng))))
R3 = np.array((( cos(azim), sin(azim), 0. ),
(-sin(azim), cos(azim), 0. ),
( 0., 0., 1. )))
return R3.dot(R2).dot(R1)
def adjust_lines_to_planes(lines, planes):
"""
Project each given line to it's respective plane. Returns the projected
lines as a new LineSet and the angle (in radians) between each line and
plane prior to projection.
Parameters:
lines: A LineSet like object with an array of n Lines
planes: A PlaseSet like object with an array of n Planes
"""
lines = at.LineSet(lines)
planes = at.PlaneSet(planes)
angles = np.zeros(len(lines))
adjusted_lines = np.zeros_like(lines)
for i, (line, plane) in enumerate(zip(lines, planes)):
cos_theta = np.dot(line, plane)
angles[i] = pi/2. - acos(cos_theta)
adjusted_line = line - line*cos_theta
adjusted_lines[i] = adjusted_line/sqrt(np.dot(adjusted_line,
adjusted_line))
return adjusted_lines, angles
| endarthur/autti | auttitude/math.py | Python | mit | 4,348 | 30.507246 | 80 | 0.554508 | false |
#!/usr/bin/env bash
set -e
function hr {
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
}
while getopts ":u" opt; do
case $opt in
u)
docker pull blengerich/genamap || { echo "failed to pull the image" >&2; exit 1; }
hr
echo 'Pulled the GenAMap docker image'
hr
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done
if [ ! -d ./mongodbpath ]; then
mkdir mongodbpath
fi
if [ ! -d ./postgresdbpath ]; then
mkdir postgresdbpath
fi
# Run MongoDB Container
m_name="genamap_mongo"
if ! docker ps --format "{{.Names}}"| grep -q ${m_name}; then
if ! docker ps -a --format "{{.Names}}"| grep -q ${m_name}; then
docker run -v "$(pwd)/mongodbpath":/data -p 27017:27017 --name ${m_name} -d mongo mongod --smallfiles \
|| { echo 'starting mongo failed' >&2; exit 1; }
else
docker start ${m_name} || { echo "starting mongo failed" >&2; exit 1; }
fi
hr
echo "MongoDB container has been successfully launched!"
hr
else
hr
echo "MongoDB container is already running..."
hr
fi
# Run PostgresSQL container
p_name="genamap_postgres"
if ! docker ps --format "{{.Names}}"| grep -q ${p_name}; then
if ! docker ps -a --format "{{.Names}}"| grep -q ${p_name}; then
docker run --name ${p_name} -p 5432:5432 -v "$(pwd)/postgresdbpath":/var/lib/postgresql/data \
-e POSTGRES_PASSWORD='!!GeNaMaPnew00' -e POSTGRES_USER='postgres' -d postgres \
|| { echo "starting postgres failed" >&2; exit 1; }
else
docker start ${p_name} || { echo "starting postgres failed" >&2; exit 1; }
fi
hr
echo "PostgreSQL container has been successfully launched!"
hr
else
hr
echo "PostgreSQL container is already running..."
hr
fi
# Enter the GenAMap container
g_name="genamap_development_server"
hr
echo "Entering the GenAMap development server container..."
hr
echo $1
echo $2
#docker run -ti -p 3000:3000 -p 3001:3001 --name ${g_name} --link ${m_name}:mongo --link ${p_name}:postgres \
# -w /usr/src/genamap \-v ${PWD}/../src/:/usr/src/genamap -v $1:/usr/src/genamap2 -v $2:/usr/src/genamap3 blengerich/genamap
if ! docker ps --format "{{.Names}}" | grep -q ${g_name}; then
if docker ps -a --format "{{.Names}}"| grep -q ${g_name}; then
docker start ${g_name} \
|| { echo "starting genamap failed" >&2; exit 1; }
docker exec -it ${g_name} bash \
|| { echo "starting genamap failed" >&2; exit 1; }
else
docker run -ti -p 3000:3000 -p 3001:3001 --name ${g_name} --link ${m_name}:mongo --link ${p_name}:postgres \
-w /usr/src/genamap \-v ${PWD}/../src/:/usr/src/genamap -v $1:/usr/src/genamap_data -v $2:/usr/src/genamap_config blengerich/genamap \
|| { echo "starting genamap failed" >&2; exit 1; }
fi
else
docker exec -it ${g_name} bash
fi
| blengerich/GenAMap | scripts/dev_genamap.sh | Shell | mit | 2,991 | 31.51087 | 149 | 0.578068 | false |
c ----------------------------------------------------------------------
c
c Gaussian wake model applied to offshore wind farms (WindFarm object)
c by Juan P. Murcia <jumu@dtu.dk>
c
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c ----------------------------------------------------------------------
c ----------------------------------------------------------------------
c get_RW(x,D,CT,ks)
c ----------------------------------------------------------------------
c Computes the wake radius at a location
c
c Inputs
c ----------
c x (float): Distance between turbines in the stream-wise direction
c D (float): Wind turbine diameter
c CT (float): Outputs WindTurbine object's thrust coefficient
c ks (float): Wake (linear) expansion coefficient
c
c Outputs
c ----------
c Rw (float): Wake radius at a location
subroutine get_RW(n,x,D,CT,RW,ks)
implicit none
integer :: n
real(kind=8) :: x(n),D,CT,RW(n),ks
cf2py integer intent(hide),depend(x) :: n=len(x)
cf2py real(kind=8) intent(in),dimension(n) :: x
cf2py real(kind=8) intent(in) :: D,CT
cf2py real(kind=8) optional,intent(in) :: ks = 0.030
cf2py real(kind=8) intent(out), depend(n),dimension(n) :: RW
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i
real(kind=8) :: Area,a,k
Area=pi*D*D/4.0d0
! axial velocity deficit at rotor disc
a=(1.0d0-(sqrt(1.0d0-CT)))/2.0d0
! Near wake expansion ratio: k = D0/D from momentum balance
k=sqrt((1.0d0-a)/(1.0d0-2.0d0*a))
do i = 1, n
! Linear wake expansion:
! RW is defined as the sigma of the Gaussian wake deficit
RW(i)=0.2d0*k*D + ks*x(i)
end do
end subroutine get_RW
c ----------------------------------------------------------------------
c get_dU(x,r,D,CT,ks)
c ----------------------------------------------------------------------
c Computes the wake velocity deficit at a location
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x (float): Distance between turbines in the stream-wise direction
c r (array): Radial distance between the turbine and the location
c D (float): Wind turbine diameter
c ks (float): Wake (linear) expansion coefficient [-]
c CT (float): Outputs WindTurbine object's thrust coefficient
c
c Outputs
c ----------
c dU (float): Wake velocity deficit at a location normalized
c by rotor averaged (equivalent) inflow velocity
subroutine get_dU(n,x,r,D,CT,ks,dU)
implicit none
integer :: n
real(kind=8) :: x(n),r(n),D,CT,ks,dU(n)
cf2py integer intent(hide),depend(x) :: n=len(x)
cf2py real(kind=8) intent(in),dimension(n) :: x
cf2py real(kind=8) intent(in),depend(n),dimension(n) :: r
cf2py real(kind=8) intent(in) :: D,CT,ks
cf2py real(kind=8) intent(out),depend(n),dimension(n) :: dU
! internal variables
integer :: i
real(kind=8), dimension(n) :: RW, tm0, tm10,tm20
call get_RW(n,x,D,CT,RW,ks)
do i = 1, n
tm0(i) = (RW(i)/D)**(2.0d0)
if ( (x(i)<=2.d0*D).or.(1.0d0<=(CT/(8.0d0*tm0(i)))) ) then
! Null wake radius for locations in front of the rotor disc
dU(i) = 0.0d0
else
tm10(i)=1.0d0 - ( (1.0d0 - (CT/(8.0d0*tm0(i))))**(0.5d0) )
tm20(i)=exp(-(1.0d0/(2.0d0*tm0(i)))*((r(i)/D)**(2.0d0)))
dU(i)=-tm10(i)*tm20(i)
end if
end do
end subroutine get_dU
c ----------------------------------------------------------------------
c get_dUeq(x,y,z,DT,D,CT,ks)
c ----------------------------------------------------------------------
c Computes the rotor averaged (equivalent) wake velocity deficit at
c different turbine locations and diameters
c
c Inputs
c ----------
c x (array): Distance between turbines in the stream-wise direction
c y (array): Distance between turbines in the cross-flow direction
c z (array): Distance between turbines in the vertical direction
c DT (array): Wake operating turbines diameter
c D (float): Wake generating turbine diameter
c ks (float): Wake (linear) expansion coefficient [-]
c CT (float): Outputs WindTurbine object's thrust coefficient
c Ng (int): Polynomial order for Gauss-Legendre quadrature integration
c in both radial and angular positions
c
c Outputs
c ----------
c dUeq (float): Wake velocity deficit at a location normalized by
c inflow velocity
subroutine get_dUeq(n,x,y,z,DT,D,CT,ks,Ng,dUeq)
implicit none
integer :: n,Ng
real(kind=8) :: x(n),y(n),z(n),DT(n),D,CT,ks
real(kind=8) :: dUeq(n)
cf2py integer intent(hide),depend(x) :: n = len(x)
cf2py real(kind=8) intent(in),dimension(n) :: x
cf2py real(kind=8) intent(in),depend(n),dimension(n) :: y,z,DT
cf2py real(kind=8) intent(in) :: D,CT,ks
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) intent(out),depend(n),dimension(n) :: dUeq
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i,j,k
real(kind=8) :: tm1,tm2,tm3,tm4
real(kind=8), dimension(Ng) :: root,weight,r_pr,th_pr
real(kind=8), dimension(1) :: x_e,r_e,dU
real(kind=8), dimension(n) :: RT,r_R,th_R
RT = DT/2.0d0
! Gauss-Legendre quadrature points and weights
select case (ng)
case ( 4 )
root(1) = -0.3399810435848563d0
root(2) = 0.3399810435848563d0
root(3) = -0.8611363115940526d0
root(4) = 0.8611363115940526d0
weight(1) = 0.6521451548625461d0
weight(2) = 0.6521451548625461d0
weight(3) = 0.3478548451374538d0
weight(4) = 0.3478548451374538d0
case (5)
root(1) = 0.0000000000000000d0
root(2) = -0.5384693101056831d0
root(3) = 0.5384693101056831d0
root(4) = -0.9061798459386640d0
root(5) = 0.9061798459386640d0
weight(1) = 0.5688888888888889d0
weight(2) = 0.4786286704993665d0
weight(3) = 0.4786286704993665d0
weight(4) = 0.2369268850561891d0
weight(5) = 0.2369268850561891d0
case (6)
root(1) = 0.6612093864662645d0
root(2) = -0.6612093864662645d0
root(3) = -0.2386191860831969d0
root(4) = 0.2386191860831969d0
root(5) = -0.9324695142031521d0
root(6) = 0.9324695142031521d0
weight(1) = 0.3607615730481386d0
weight(2) = 0.3607615730481386d0
weight(3) = 0.4679139345726910d0
weight(4) = 0.4679139345726910d0
weight(5) = 0.1713244923791704d0
weight(6) = 0.1713244923791704d0
case (7)
root(1) = 0.0000000000000000d0
root(2) = 0.4058451513773972d0
root(3) = -0.4058451513773972d0
root(4) = -0.7415311855993945d0
root(5) = 0.7415311855993945d0
root(6) = -0.9491079123427585d0
root(7) = 0.9491079123427585d0
weight(1) = 0.4179591836734694d0
weight(2) = 0.3818300505051189d0
weight(3) = 0.3818300505051189d0
weight(4) = 0.2797053914892766d0
weight(5) = 0.2797053914892766d0
weight(6) = 0.1294849661688697d0
weight(7) = 0.1294849661688697d0
case ( 8 )
root(1) = -0.960289856497536d0
root(2) = -0.796666477413627d0
root(3) = -0.525532409916329d0
root(4) = -0.183434642495650d0
root(5) = 0.183434642495650d0
root(6) = 0.525532409916329d0
root(7) = 0.796666477413627d0
root(8) = 0.960289856497536d0
weight(1) = 0.101228536290374d0
weight(2) = 0.222381034453375d0
weight(3) = 0.313706645877888d0
weight(4) = 0.362683783378363d0
weight(5) = 0.362683783378363d0
weight(6) = 0.313706645877888d0
weight(7) = 0.222381034453375d0
weight(8) = 0.101228536290374d0
end select
! Location of the turbines in wake coordinates
r_R = (y**(2.0d0) + z**(2.0d0))**(0.5d0)
th_R = modulo(atan2(z,y),2.0d0*pi)
do i = 1, n
dUeq(i) = 0.0d0
if (x(i) > 0.0) then
! Location of evaluation points in the local rotor coordinates
r_pr = RT(i)*(root+1d0)/2.0d0!uniform in [0, RT]
!th_pr = pi*(root+1d0) !uniform in [0,2*pi]
th_pr = pi*(root+1d0)-pi/2.d0 !uniform in [-pi/2,3/2*pi]
! Location of evaluation points in wake coordinates
! Evaluation of wake and sum of quadrature
do j = 1, Ng
do k = 1, Ng
x_e = x(i)
tm1 = (r_R(i))**(2.0d0)
tm2 = (r_pr(k))**(2.0d0)
tm3 = 2d0*r_R(i)*r_pr(k)*cos(th_R(i) - th_pr(j))
r_e = sqrt( tm1+tm2+tm3)
call get_dU(1,x_e,r_e,D,CT,ks,dU)
tm4 = weight(j)*weight(k)*dU(1)*(root(k)+1d0)/4d0
dUeq(i)=dUeq(i)+tm4
end do
end do
end if
end do
end subroutine get_dUeq
c ----------------------------------------------------------------------
c gau_s(x,y,z,DT,P_c,CT_c,WS,ks)
c ----------------------------------------------------------------------
c SINGLE FLOW CASE
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (float): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (float): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (float): Wake (linear) expansion coefficient [-]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,ks,Ng,rho,
&WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,Ng
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),WS,WD,ks
real(kind=8) :: rho,WS_CI(n),WS_CO(n),CT_idle(n),P(n),T(n),U(n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in) :: WS,WD,ks
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(n) :: P,T,U
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i,j,k,nDownstream(n),idT(n)
real(kind=8) :: x(n),y(n),z(n),D,CT,dUeq(n),angle
real(kind=8) :: x_l(n,n),y_l(n,n)
! Rotates the global coordinates to local flow coordinates
angle = pi*(270.0d0-WD)/180.0d0
do i=1,n
do j=1,n
x_l(i,j) = cos(angle)*x_g(i,j)+sin(angle)*y_g(i,j)
y_l(i,j) = -sin(angle)*x_g(i,j)+cos(angle)*y_g(i,j)
end do
! counts the number of turbines in front of turbine
nDownstream(i) = count(x_l(i,:).lt.0)
end do
! Indexes of ordered turbines from most upstream turbine
call order_id(n,nDownstream,idT)
! Initializes the rotor averaged (equivalent) velocity
U = WS
! Computes the rotor averaged (equivalent) velocity deficit
do j=1,n
i=idT(j)
x = x_l(i,:)
y = y_l(i,:)
z = z_g(i,:)
D = DT(i)
if ((U(i) >= WS_CI(i)).and.(U(i) <= WS_CO(i))) then
call interp_l(CT_c(i,:,1),CT_c(i,:,2),nCT,U(i),CT)
else
CT = CT_idle(i)
end if
call get_dUeq(n,x,y,z,DT,D,CT,ks,Ng,dUeq)
U = U + U(i)*dUeq
end do
! Calculates the power and thrust
do k=1,n
if ((U(k) >= WS_CI(k)).and.(U(k) <= WS_CO(k))) then
call interp_l(P_c(k,:,1),P_c(k,:,2),nP,U(k),P(k))
call interp_l(CT_c(k,:,1),CT_c(k,:,2),nCT,U(k),CT)
else
P(k)=0.0d0
CT = CT_idle(k)
end if
T(k) = CT*0.5d0*rho*U(k)*U(k)*pi*DT(k)*DT(k)/4.0d0
end do
end subroutine gau_s
c ----------------------------------------------------------------------
c gau(x,y,z,DT,P_c,CT_c,WS,WD,ks)
c ----------------------------------------------------------------------
c MULTIPLE FLOW CASES
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,ks,
&Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,WD,ks
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,WD,ks
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
integer :: i
do i=1,nF
call gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c,CT_c,WS(i),WD(i),ks(i),
& Ng,rho,WS_CI,WS_CO,CT_idle,P(i,:),T(i,:),U(i,:))
end do
end subroutine gau
c ----------------------------------------------------------------------
c gau_av(x,y,z,DT,P_c,CT_c,WS,WD,ks,AV)
c ----------------------------------------------------------------------
c MULTIPLE FLOW CASES with wt available
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c AV (array): Wind turbine available per flow [nF,n]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_av(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,ks,AV,
&Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng,AV(nf,n)
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,WD,ks
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,WD,ks
cf2py integer intent(in),dimension(nF,n) :: AV
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
integer :: i,j
real(kind=8) :: CT_c_AV(n,nCT,2), P_c_AV(n,nCT,2)
do i=1,nF
CT_c_AV = CT_c
P_c_AV = P_c
! Re-defines the trust curve for non available turbines
do j=1,n
if (AV(i,j)==0) then
CT_c_AV(j,:,2) = CT_idle(j)
P_c_AV(j,:,2) = 0.0d0
end if
end do
call gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c_AV,CT_c_AV,WS(i),WD(i),
& ks(i),Ng,rho,WS_CI,WS_CO,CT_idle,P(i,:),T(i,:),U(i,:))
end do
end subroutine gau_av
c ----------------------------------------------------------------------
c gau_GA(x,y,z,DT,P_c,CT_c,WS,WD,ks,STD_WD,Nga)
c ----------------------------------------------------------------------
c GAUSSIAN AVERAGE
c Gauss-Hermite quadrature for normally distributed wind direction
c uncertainty (inside Reynolds averaging time), for a global/unique wind
c direction uncertainty
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c STD_WD(array): Standard deviation of wind direction uncertainty
c Nga (int): Number of quadrature points for Gaussian averaging
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_GA(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,
&ks,STD_WD,Nga,Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng,Nga
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,WD,ks,STD_WD
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,ks,WD,STD_WD
cf2py integer optional,intent(in) :: Nga = 4
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
real(kind=8), parameter :: pi=3.1415926535897932384626433832795d0
integer :: i,j
real(kind=8) :: WD_aux
real(kind=8), dimension(n) :: P_aux,T_aux,U_aux
real(kind=8), dimension(Nga) :: root,weight
! Gauss-Hermite quadrature points and weights
select case (Nga)
case ( 1 )
root(1) = 0.0d0
weight(1) = sqrt(pi)
case ( 4 )
root(1) = -1.650680123885785d0
root(2) = -0.524647623275290d0
root(3) = 0.524647623275290d0
root(4) = 1.650680123885785d0
weight(1) = 0.081312835447245d0
weight(2) = 0.804914090005513d0
weight(3) = 0.804914090005513d0
weight(4) = 0.081312835447245d0
case ( 5 )
root(1) = -2.020182870456086d0
root(2) = -0.958572464613819d0
root(3) = 0.000000000000000d0
root(4) = 0.958572464613819d0
root(5) = 2.020182870456086d0
weight(1) = 0.019953242059046d0
weight(2) = 0.393619323152241d0
weight(3) = 0.945308720482942d0
weight(4) = 0.393619323152241d0
weight(5) = 0.019953242059046d0
case ( 6 )
root(1) = -2.350604973674492d0
root(2) = -1.335849074013697d0
root(3) = -0.436077411927617d0
root(4) = 0.436077411927617d0
root(5) = 1.335849074013697d0
root(6) = 2.350604973674492d0
weight(1) = 0.004530009905509d0
weight(2) = 0.157067320322856d0
weight(3) = 0.724629595224392d0
weight(4) = 0.724629595224392d0
weight(5) = 0.157067320322856d0
weight(6) = 0.004530009905509d0
case ( 7 )
root(1) = -2.651961356835233d0
root(2) = -1.673551628767471d0
root(3) = -0.816287882858965d0
root(4) = 0.000000000000000d0
root(5) = 0.816287882858965d0
root(6) = 1.673551628767471d0
root(7) = 2.651961356835233d0
weight(1) = 0.000971781245100d0
weight(2) = 0.054515582819127d0
weight(3) = 0.425607252610128d0
weight(4) = 0.810264617556807d0
weight(5) = 0.425607252610128d0
weight(6) = 0.054515582819127d0
weight(7) = 0.000971781245100d0
case ( 8 )
root(1) = -2.930637420257244d0
root(2) = -1.981656756695843d0
root(3) = -1.157193712446780d0
root(4) = -0.381186990207322d0
root(5) = 0.381186990207322d0
root(6) = 1.157193712446780d0
root(7) = 1.981656756695843d0
root(8) = 2.930637420257244d0
weight(1) = 0.000199604072211d0
weight(2) = 0.017077983007413d0
weight(3) = 0.207802325814892d0
weight(4) = 0.661147012558241d0
weight(5) = 0.661147012558241d0
weight(6) = 0.207802325814892d0
weight(7) = 0.017077983007413d0
weight(8) = 0.000199604072211d0
end select
do i=1,nF
P(i,:)=0.0d0
T(i,:)=0.0d0
U(i,:)=0.0d0
do j=1,Nga
WD_aux = WD(i)+sqrt(2.0d0)*STD_WD(i)*root(j)
call gau_s(n,nP,nCT,x_g,y_g,z_g,DT,P_c,CT_c,WS(i),WD_aux,
& ks(i),Ng,rho,WS_CI,WS_CO,CT_idle,P_aux,T_aux,U_aux)
P(i,:)=P(i,:)+weight(j)*P_aux*(1.0d0/sqrt(pi))
T(i,:)=T(i,:)+weight(j)*T_aux*(1.0d0/sqrt(pi))
U(i,:)=U(i,:)+weight(j)*U_aux*(1.0d0/sqrt(pi))
end do
end do
end subroutine gau_GA
c ----------------------------------------------------------------------
c gau_mult_wd(x,y,z,DT,P_c,CT_c,WS,WD,ks)
c ----------------------------------------------------------------------
c MULTIPLE FLOW CASES with individual wind direction for each turbine
c and optional individual Gaussian averaging
c
c Inputs
c ----------
c x_g (array): Distance between turbines in the global coordinates
c y_g (array): Distance between turbines in the global coordinates
c z_g (array): Distance between turbines in the global coordinates
c DT (array): Turbines diameter
c P_c (array): Power curves
c CT_c (array): Thrust coefficient curves
c WS (array): Undisturbed rotor averaged (equivalent) wind speed at hub
c height [m/s]
c WD (array): Undisturbed wind direction at hub height [deg.]
c Meteorological coordinates (N=0,E=90,S=180,W=270)
c ks (array): Linear wake expansion [-]
c
c rho (float): Air density at which the power curve is valid [kg/m^3]
c WS_CI (array): Cut in wind speed [m/s] for each turbine
c WS_CO (array): Cut out wind speed [m/s] for each turbine
c CT_idle (array): Thrust coefficient at rest [-] for each turbine
c
c Outputs
c ----------
c P (array): Power production of the wind turbines (nWT,1) [W]
c T (array): Thrust force of the wind turbines (nWT,1) [N]
c U (array): Rotor averaged (equivalent) Wind speed at hub height
c (nWT,1) [m/s]
subroutine gau_mult_wd(n,nP,nCT,nF,x_g,y_g,z_g,DT,P_c,CT_c,WS,WD,
&ks,STD_WD,Nga,Ng,rho,WS_CI,WS_CO,CT_idle,P,T,U)
implicit none
integer :: n,nP,nCT,nF,Ng,Nga
real(kind=8) :: x_g(n,n),y_g(n,n),z_g(n,n),DT(n),P_c(n,nP,2)
real(kind=8) :: CT_c(n,nCT,2),rho,WS_CI(n),WS_CO(n),CT_idle(n)
real(kind=8),dimension(nF) :: WS,ks
real(kind=8),dimension(nF,n) :: WD,STD_WD
real(kind=8) :: P(nF,n),T(nF,n),U(nF,n)
cf2py integer intent(hide),depend(DT) :: n = len(DT)
cf2py integer intent(hide),depend(P_c) :: nP = size(P_c,2)
cf2py integer intent(hide),depend(CT_c) :: nCT = size(CT_c,2)
cf2py integer intent(hide),depend(WS) :: nF = len(WS)
cf2py real(kind=8) intent(in),dimension(n) :: DT
cf2py real(kind=8) intent(in),depend(n),dimension(n,n) :: x_g,y_g,z_g
cf2py real(kind=8) intent(in),dimension(n,nP,2) :: P_c
cf2py real(kind=8) intent(in),dimension(n,nCT,2) :: CT_c
cf2py real(kind=8) intent(in),dimension(nF) :: WS,ks
cf2py real(kind=8) intent(in),dimension(nF,n) :: WD
cf2py real(kind=8) optional,intent(in),dimension(nF,n) :: STD_WD = 0.0
cf2py integer optional intent(in) :: Nga = 1
cf2py integer optional intent(in) :: Ng = 4
cf2py real(kind=8) optional,intent(in) :: rho=1.225
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CI=4.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: WS_CO=25.0
cf2py real(kind=8) optional,intent(in),dimension(n) :: CT_idle=0.053
cf2py real(kind=8) intent(out),depend(n),dimension(nF,n) :: P,T,U
! internal variables
integer :: i,j
real(kind=8), dimension(n) :: P_aux,T_aux,U_aux
do j=1,n
do i=1,nF
call gau_GA(n,nP,nCT,1,x_g,y_g,z_g,DT,P_c,CT_c,WS(i),WD(i,j),
&ks(i),STD_WD(i,j),Nga,Ng,rho,
&WS_CI,WS_CO,CT_idle,P_aux,T_aux,U_aux)
P(i,j)=P_aux(j)
T(i,j)=T_aux(j)
U(i,j)=U_aux(j)
end do
end do
end subroutine gau_mult_wd
c ----------------------------------------------------------------------
c Additional routines
c ----------------------------------------------------------------------
c ----------------------------------------------------------------------
c Find the lower location index of a point in an ordered array
c ----------------------------------------------------------------------
subroutine loc_in_list(n,xa,x,j)
implicit none
integer j,n
real(kind=8) x,xa(n)
cf2py integer intent(hide),depend(xa) :: n = len(xa)
cf2py real(kind=8) intent(in),dimension(n) :: xa
cf2py real(kind=8) intent(in) :: x
cf2py integer intent(out) :: j
! internal variables
integer j_low,j_mid,j_up
j_low=0
j_up=n+1
! bisecting loop
do while (j_up-j_low.gt.1)
j_mid=(j_up+j_low)/2
if((xa(n).ge.xa(1)).eqv.(x.ge.xa(j_mid)))then
j_low=j_mid
else
j_up=j_mid
end if
end do
! check for cases
if(x.eq.xa(1))then
j=1
else if(x.eq.xa(n))then
j=n-1
else
j=j_low
end if
end subroutine loc_in_list
c ----------------------------------------------------------------------
c Linear interpolation
c ----------------------------------------------------------------------
subroutine interp_l(xa,ya,n,x,y)
implicit none
integer n
real(kind=8) x,y,xa(n),ya(n)
cf2py integer intent(hide),depend(xa) :: n = len(xa)
cf2py real(kind=8) intent(in),dimension(n) :: xa
cf2py real(kind=8) intent(in),depend(n),dimension(n) :: ya
cf2py real(kind=8) intent(in) :: x
cf2py real(kind=8) intent(out) :: y
! internal variables
integer j
call loc_in_list(n,xa,x,j)
y = ((ya(j+1)-ya(j))/(xa(j+1)-xa(j)))*(x-xa(j)) + ya(j)
end subroutine interp_l
c ----------------------------------------------------------------------
c Finds the index that order an array from lower to higher values
c only for integers
c
c Knuth, D. E. "Sorting and Searching, vol. 3 of The Art of Computer
c Programming, section 6.2. 2." (1997): 430-31.
c ----------------------------------------------------------------------
subroutine order_id(n,a,id)
integer n,a(n),id(n)
cf2py integer intent(hide),depend(a) :: n = len(a)
cf2py integer intent(in),dimension(n) :: a
cf2py integer intent(out),depend(n),dimension(n) :: id
! internal variables
integer i,j,inc,v,w
do i=1,n
id(i)=i
end do
! Determine starting increment
inc=1
do while (inc.le.n)
inc=3*inc+1
end do
! Partial sorts loop
do while (inc.gt.1)
inc=inc/3
do i=inc+1,n
v=a(i)
w=id(i)
j=i
do while (a(j-inc).gt.v)
a(j)=a(j-inc)
id(j)=id(j-inc)
j=j-inc
if(j.le.inc) exit
end do
a(j)=v
id(j)=w
end do
end do
end subroutine order_id
| DTUWindEnergy/FUSED-Wake | fusedwake/gau/fortran/GAU.f | FORTRAN | mit | 32,442 | 38.039711 | 72 | 0.576352 | false |
{% extends path+"/_layout-case-action.html" %}
{% block citizen_content %}
{{ data.nuggets | log }}
<p class="no-kdBar"><a href="javascript: history.go(-1)" class="link-back">Back</a></p>
<h1 class="heading-large mt10
">
<span class="heading-secondary">Mental state examination</span>
Insight</h1>
<div class="grid-row">
<div class="column-two-thirds">
<p>Things you should be assessing</p>
<ul class="list list-bullet">
<li>Insight</li>
<li>Awareness of danger</li>
</ul>
{% if data['lcwra']==='lcwra1'%}
{% elif data['lcwra']==='lcwra2' or data['lcwra']==='lcwra3' or data['lcwra']==='lcwra4' or data['lcwra']==='lcwra6' or data['lcwra']==='lcwra7' or data['lcwra']==='lcwra8' or data['lcwra']==='lcwra9' or data['lcwra']==='lcwra10' or data['lcwra']==='lcwra11' or data['lcwra']==='lcwra12' or data['lcwra']==='lcwra13' or data['lcwra']==='lcwra14' or data['lcwra']==='lcwra15' or data['lcwra']==='lcwra16' or data['lcwra']==='lcwra17' or data['lcwra']==='lcwra18' or data['lcwra']==='lcwra19' or data['lcwra']==='lcwra20'%}
<form action="mentalHealthAssessmentCurtail" method="POST" class="form">
{% else %}<form action="mentalHealthAssessment" method="POST" class="form">{% endif %}
<div class="form-group">
<label class="form-label-bold" for="mh-insight">Observation</label>
<textarea class="form-control form-control-3-4" name="mhinsight" id="mh-insight" rows="8">{{mhinsight}}</textarea>
</div>
<input type="submit" class="button" value="Save">
<div class="multiple-choice" style="display:none">
<input id="radio-inline-4" type="radio" name="Insight" value="Insight" checked>
<label for="radio-4">hidden radio one</label>
</div>
</form>
</div><!-- column -->
</div><!-- row -->
{% endblock %}
{% block footer_top %}
{% endblock %}
{% block page_scripts %}
{% endblock %}
| dwpdigitaltech/healthanddisability | app/views/fha/v8/assessment/evidence/mh-insight.html | HTML | mit | 1,924 | 28.6 | 521 | 0.609667 | false |
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% for column in widget.columns %}
<span class="icon-admin {{ column }}"></span>
{% endfor %}
<br/>
{% include "django/forms/widgets/input.html" %} {{ widget.label }}</label> | Blueshoe/djangocms-layouter | layouter/templates/layouter/radio_option.html | HTML | mit | 245 | 40 | 74 | 0.616327 | false |
# frozen_string_literal: true
require 'spec_helper'
module Pathway
describe Result do
describe ".success" do
let(:result) { Result.success("VALUE") }
it "returns a Success object with passed value", :aggregate_failures do
expect(result).to be_a(Result::Success)
expect(result.value).to eq("VALUE")
end
end
describe ".failure" do
let(:result) { Result.failure("ERROR!") }
it "returns a Failure object with passed value", :aggregate_failures do
expect(result).to be_a(Result::Failure)
expect(result.error).to eq("ERROR!")
end
end
describe ".result" do
let(:result) { Result.result(object) }
context "when passing a Result object" do
let(:object) { Result.failure(:something_went_wrong) }
it "returns the object itsef" do
expect(result).to eq(object)
end
end
context "when passing a regular object" do
let(:object) { "SOME VALUE" }
it "returns the object wrapped in a result", :aggregate_failures do
expect(result).to be_a(Result::Success)
expect(result.value).to eq("SOME VALUE")
end
end
end
context "when is a success" do
subject(:prev_result) { Result.success("VALUE") }
describe "#success?" do
it { expect(prev_result.success?).to be true }
end
describe "#failure?" do
it { expect(prev_result.failure?).to be false }
end
describe "#then" do
let(:callable) { double }
let(:next_result) { Result.success("NEW VALUE")}
before { expect(callable).to receive(:call).with("VALUE").and_return(next_result) }
it "if a block is given it executes it and returns the new result" do
expect(prev_result.then { |prev| callable.call(prev) }).to eq(next_result)
end
it "if a callable is given it executes it and returns the new result" do
expect(prev_result.then(callable)).to eq(next_result)
end
end
describe "#tee" do
let(:callable) { double }
let(:next_result) { Result.success("NEW VALUE")}
before { expect(callable).to receive(:call).with("VALUE").and_return(next_result) }
it "if a block is given it executes it and keeps the previous result" do
expect(prev_result.tee { |prev| callable.call(prev) }).to eq(prev_result)
end
context "when a block wich returns an unwrapped result is given" do
let(:next_result) { "NEW VALUE" }
it "it executes it and keeps the previous result" do
expect(prev_result.tee { |prev| callable.call(prev) }).to eq(prev_result)
end
end
it "if a callable is given it executes it and keeps the previous result" do
expect(prev_result.tee(callable)).to eq(prev_result)
end
end
end
context "when is a failure" do
subject(:prev_result) { Result.failure(:something_wrong) }
describe "#success?" do
it { expect(prev_result.success?).to be false }
end
describe "#failure?" do
it { expect(prev_result.failure?).to be true }
end
describe "#tee" do
let(:callable) { double }
before { expect(callable).to_not receive(:call) }
it "if a block is given it ignores it and returns itself" do
expect(prev_result.tee { |prev| callable.call(prev) }).to eq(prev_result)
end
it "if a callable is given it ignores it and returns itself" do
expect(prev_result.tee(callable)).to eq(prev_result)
end
end
describe "#then" do
let(:callable) { double }
before { expect(callable).to_not receive(:call) }
it "if a block is given it ignores it and returns itself" do
expect(prev_result.then { |prev| callable.call(prev) }).to eq(prev_result)
end
it "if a callable is given it ignores it and returns itself" do
expect(prev_result.then(callable)).to eq(prev_result)
end
end
end
end
end
| pabloh/pathway | spec/result_spec.rb | Ruby | mit | 4,096 | 31.507937 | 91 | 0.60498 | false |
package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import factory.FactoryService;
import vo.Bbs_CommmVo;
import vo.Board2Vo;
public class BoardDao2 {
private static BoardDao2 dao;
public static synchronized BoardDao2 getDao(){
if ( dao == null ) dao = new BoardDao2();
return dao;
}
public void insertDB(Board2Vo vo){
SqlSession ss= FactoryService.getFatory().openSession(true);
ss.insert("board2.in_board",vo);
ss.close();
}
public List<Board2Vo> getList(){
SqlSession ss= FactoryService.getFatory().openSession();
List<Board2Vo> list=ss.selectList("board2.gList");
ss.close();
return list;
}
public Board2Vo view(int no){
SqlSession ss= FactoryService.getFatory().openSession();
Board2Vo vo =ss.selectOne("board2.view_board",no);
ss.close();
return vo;
}
// 댓글에 해당 되는 메소드
public void commin(Bbs_CommmVo vo){
SqlSession ss= FactoryService.getFatory().openSession(true);
ss.insert("board2.bbscomin",vo);
ss.close();
}
public List<Bbs_CommmVo> bbs_view(int no){
SqlSession ss= FactoryService.getFatory().openSession();
List<Bbs_CommmVo> list=ss.selectList("board2.comL",no);
ss.close();
return list;
}
public void replayInsert(Board2Vo vo){
System.out.println("LOG replayInsert 메소드 시작 ");
SqlSession ss= FactoryService.getFatory().openSession();
try {
ss.update("board2.replay_Update",vo);
System.out.println("LOG replayUpdate");
ss.insert("board2.replay_Insert",vo);
System.out.println("LOG replayInsert");
ss.commit();
} catch (Exception e) {
e.printStackTrace();
ss.rollback();
} finally{
ss.close();
System.out.println("LOG replayInsert 메소드 끝 ");
}
}
} | ByeongGi/Koata_Java | Jsp1012-13_struts2-04/src/dao/BoardDao2.java | Java | mit | 1,753 | 21.578947 | 62 | 0.693878 | false |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.freteplanejado.entity;
/**
*
* @author 43596980895
*/
public class Frete {
private int id;
private String origem;
private String destino;
private float altura;
private float largura;
private float profundidade;
private float peso;
private String observacoes;
public Frete() {
}
public Frete(String origem, String destino, float altura, float largura, float profundidade, float peso, String observacoes) {
this.origem = origem;
this.destino = destino;
this.altura = altura;
this.largura = largura;
this.profundidade = profundidade;
this.peso = peso;
this.observacoes = observacoes;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getOrigem() {
return origem;
}
public void setOrigem(String origem) {
this.origem = origem;
}
public String getDestino() {
return destino;
}
public void setDestino(String destino) {
this.destino = destino;
}
public float getAltura() {
return altura;
}
public void setAltura(float altura) {
this.altura = altura;
}
public float getLargura() {
return largura;
}
public void setLargura(float largura) {
this.largura = largura;
}
public float getProfundidade() {
return profundidade;
}
public void setProfundidade(float profundidade) {
this.profundidade = profundidade;
}
public float getPeso() {
return peso;
}
public void setPeso(float peso) {
this.peso = peso;
}
public String getObservacoes() {
return observacoes;
}
public void setObservacoes(String observacoes) {
this.observacoes = observacoes;
}
}
| 5devs/web-project-m1 | FretePlanejado/src/java/com/freteplanejado/entity/Frete.java | Java | mit | 2,066 | 19.66 | 130 | 0.613262 | false |
module.exports = require( "./src/LRUCache" ); | eventEmitter/ee-lru-cache | index.js | JavaScript | mit | 49 | 11.5 | 46 | 0.632653 | false |
Kloj le Grand
=============
Clojure bot for [vindinium](http://vindinium.org)
## Usage
```
$ lein repl
```
```clojure
> ; (re)load the code
> (require 'vindinium.core :reload)
> ; run a training game with 80 turns
> (vindinium.core/-main "training" secretkey 80)
> ; run 50 arena games
> (vindinium.core/-main "arena" secretkey 50)
```
| chrisghost/kloj-le-grand | README.md | Markdown | mit | 343 | 14.590909 | 49 | 0.638484 | false |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>ua-parser/uap-core<br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">Huawei</td><td>U8800 Pro</td><td></td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a>
<!-- Modal Structure -->
<div id="modal-test" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Testsuite result detail</h4>
<p><pre><code class="php">Array
(
[user_agent_string] => Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
[family] => U8800 Pro
[brand] => Huawei
[model] => U8800 Pro
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td><td>Android 4.0</td><td>WebKit </td><td>Android 2.2</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.022</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-215ac98d-ccf8-4615-916e-5a819d6a59c9">Detail</a>
<!-- Modal Structure -->
<div id="modal-215ac98d-ccf8-4615-916e-5a819d6a59c9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.2\.2.* build\/.*\).*applewebkit\/.*\(.*khtml,.*like gecko.*\).*version\/4\.0.*safari.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android?2.2* build/*)*applewebkit/*(*khtml,*like gecko*)*version/4.0*safari*
[parent] => Android Browser 4.0
[comment] => Android Browser 4.0
[browser] => Android
[browser_type] => Browser
[browser_bits] => 32
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 4.0
[majorver] => 4
[minorver] => 0
[platform] => Android
[platform_version] => 2.2
[platform_description] => Android OS
[platform_bits] => 32
[platform_maker] => Google Inc
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] => 1
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] =>
[crawler] =>
[cssversion] => 3
[aolversion] => 0
[device_name] => general Mobile Phone
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => touchscreen
[device_code_name] => general Mobile Phone
[device_brand_name] => unknown
[renderingengine_name] => WebKit
[renderingengine_version] => unknown
[renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.
[renderingengine_maker] => Apple Inc
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>Android Browser 4.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a>
<!-- Modal Structure -->
<div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] => Android
[browser] => Android Browser
[version] => 4.0
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>Android Webkit 4.0</td><td><i class="material-icons">close</i></td><td>Android 2.2.2</td><td style="border-left: 1px solid #555">Huawei</td><td>U8800 Pro</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.26208</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a>
<!-- Modal Structure -->
<div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 800
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] => Huawei
[mobile_model] => U8800 Pro
[version] => 4.0
[is_android] => 1
[browser_name] => Android Webkit
[operating_system_family] => Android
[operating_system_version] => 2.2.2
[is_ios] =>
[producer] => Google Inc.
[operating_system] => Android 2.2.x Froyo
[mobile_screen_width] => 480
[mobile_browser] => Android Webkit
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td>Android Browser </td><td>WebKit </td><td>Android 2.2</td><td style="border-left: 1px solid #555">Huawei</td><td>U8800Pro</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.005</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a>
<!-- Modal Structure -->
<div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] => Array
(
[type] => browser
[name] => Android Browser
[short_name] => AN
[version] =>
[engine] => WebKit
)
[operatingSystem] => Array
(
[name] => Android
[short_name] => AND
[version] => 2.2
[platform] =>
)
[device] => Array
(
[brand] => HU
[brandName] => Huawei
[model] => U8800Pro
[device] => 1
[deviceName] => smartphone
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] => 1
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] => 1
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td><td>Navigator 4.0</td><td><i class="material-icons">close</i></td><td>Android 2.2.2</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>SinergiBrowserDetector result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Sinergi\BrowserDetector\Browser Object
(
[userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
[name:Sinergi\BrowserDetector\Browser:private] => Navigator
[version:Sinergi\BrowserDetector\Browser:private] => 4.0
[isRobot:Sinergi\BrowserDetector\Browser:private] =>
[isChromeFrame:Sinergi\BrowserDetector\Browser:private] =>
)
[operatingSystem] => Sinergi\BrowserDetector\Os Object
(
[name:Sinergi\BrowserDetector\Os:private] => Android
[version:Sinergi\BrowserDetector\Os:private] => 2.2.2
[isMobile:Sinergi\BrowserDetector\Os:private] => 1
[userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
)
[device] => Sinergi\BrowserDetector\Device Object
(
[name:Sinergi\BrowserDetector\Device:private] => unknown
[userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>Android 2.2.2</td><td><i class="material-icons">close</i></td><td>Android 2.2.2</td><td style="border-left: 1px solid #555">Huawei</td><td>U8800 Pro</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.003</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a>
<!-- Modal Structure -->
<div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 2
[minor] => 2
[patch] => 2
[family] => Android
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] => 2
[minor] => 2
[patch] => 2
[patchMinor] =>
[family] => Android
)
[device] => UAParser\Result\Device Object
(
[brand] => Huawei
[model] => U8800 Pro
[family] => U8800 Pro
)
[originalUserAgent] => Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 2.2.2</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.14904</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4">Detail</a>
<!-- Modal Structure -->
<div id="modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentStringCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[agent_type] => Browser
[agent_name] => Android Webkit Browser
[agent_version] => --
[os_type] => Android
[os_name] => Android
[os_versionName] =>
[os_versionNumber] => 2.2.2
[os_producer] =>
[os_producerURL] =>
[linux_distibution] => Null
[agent_language] => Bulgarian (Bulgaria)
[agent_languageTag] => bg-bg
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td>Android Browser 4.0</td><td>WebKit 533.1</td><td>Android 2.2.2</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40612</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a>
<!-- Modal Structure -->
<div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] => Android
[simple_sub_description_string] =>
[simple_browser_string] => Android Browser 4 on Android (Froyo)
[browser_version] => 4
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => stdClass Object
(
[System Build] => HuaweiU8800Pro
)
[layout_engine_name] => WebKit
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => android-browser
[operating_system_version] => Froyo
[simple_operating_platform_string] =>
[is_abusive] =>
[layout_engine_version] => 533.1
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] =>
[operating_system] => Android (Froyo)
[operating_system_version_full] => 2.2.2
[operating_platform_code] =>
[browser_name] => Android Browser
[operating_system_name_code] => android
[user_agent] => Mozilla/5.0 (Linux; U; Android 2.2.2; bg-bg; U8800 Pro Build/HuaweiU8800Pro) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
[browser_version_full] => 4.0
[browser] => Android Browser 4
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>Android Browser </td><td>Webkit 533.1</td><td>Android 2.2.2</td><td style="border-left: 1px solid #555">Huawei</td><td>IDEOS X5 Pro</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.018</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a>
<!-- Modal Structure -->
<div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => Android Browser
)
[engine] => Array
(
[name] => Webkit
[version] => 533.1
)
[os] => Array
(
[name] => Android
[version] => 2.2.2
)
[device] => Array
(
[type] => mobile
[subtype] => smart
[manufacturer] => Huawei
[model] => IDEOS X5 Pro
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td>Safari 4.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3f285ff5-314b-4db4-9948-54572e92e7b6">Detail</a>
<!-- Modal Structure -->
<div id="modal-3f285ff5-314b-4db4-9948-54572e92e7b6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[name] => Safari
[vendor] => Apple
[version] => 4.0
[category] => smartphone
[os] => Android
[os_version] => 2.2.2
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Android Webkit 2.2</td><td><i class="material-icons">close</i></td><td>Android 2.2</td><td style="border-left: 1px solid #555">Huawei</td><td>U8800 Pro</td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.073</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a>
<!-- Modal Structure -->
<div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => true
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => true
[is_mobile] => true
[is_robot] => false
[is_smartphone] => true
[is_touchscreen] => true
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] => Android
[advertised_device_os_version] => 2.2
[advertised_browser] => Android Webkit
[advertised_browser_version] => 2.2
[complete_device_name] => Huawei U8800 Pro
[form_factor] => Smartphone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => Huawei
[model_name] => U8800 Pro
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => true
[has_qwerty_keyboard] => true
[can_skip_aligned_link_row] => true
[uaprof] =>
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] => Android
[mobile_browser] => Android Webkit
[mobile_browser_version] =>
[device_os_version] => 2.2
[pointing_method] => touchscreen
[release_date] => 2011_july
[marketing_name] =>
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => true
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => true
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => iso-8859-1
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => text/html
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => mms:
[xhtml_file_upload] => supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => full
[xhtml_avoid_accesskeys] => true
[xhtml_can_embed_video] => play_and_stop
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => standard
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => w3c_api
[xhtml_support_level] => 4
[preferred_markup] => html_web_4_0
[wml_1_1] => false
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => true
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 480
[resolution_height] => 800
[columns] => 60
[max_image_width] => 320
[max_image_height] => 400
[rows] => 40
[physical_screen_width] => 50
[physical_screen_height] => 83
[dual_orientation] => true
[density_class] => 1.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => true
[transparent_png_index] => true
[svgt_1_1] => false
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 65536
[webp_lossy_support] => false
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 384
[wifi] => true
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 2000000
[max_url_length_in_requests] => 256
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => true
[inline_support] => false
[oma_support] => true
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => true
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 10
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 2
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => 3.0
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => progressive_download
[wap_push_support] => false
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => true
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => false
[sender] => false
[mms_max_size] => 0
[mms_max_height] => 0
[mms_max_width] => 0
[built_in_recorder] => false
[built_in_camera] => true
[mms_jpeg_baseline] => false
[mms_jpeg_progressive] => false
[mms_gif_static] => false
[mms_gif_animated] => false
[mms_png] => false
[mms_bmp] => false
[mms_wbmp] => false
[mms_amr] => false
[mms_wav] => false
[mms_midi_monophonic] => false
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => false
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => false
[mms_vcalendar] => false
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => false
[mms_mp4] => false
[mms_3gpp] => false
[mms_3gpp2] => false
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => false
[midi_polyphonic] => false
[sp_midi] => false
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => false
[au] => false
[amr] => false
[awb] => false
[aac] => true
[mp3] => true
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => true
[css_supports_width_as_percentage] => true
[css_border_image] => webkit
[css_rounded_corners] => webkit
[css_gradient] => none
[css_spriting] => true
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => true
[progressive_download] => true
[playback_vcodec_h263_0] => 10
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 0
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 3.0
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => true
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => none
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => true
[html_preferred_dtd] => html4
[viewport_supported] => true
[viewport_width] => device_width_token
[viewport_userscalable] => no
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => full
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => A
[is_sencha_touch_ok] => false
[controlcap_is_smartphone] => default
[controlcap_is_ios] => default
[controlcap_is_android] => default
[controlcap_is_robot] => default
[controlcap_is_app] => default
[controlcap_advertised_device_os] => default
[controlcap_advertised_device_os_version] => default
[controlcap_advertised_browser] => default
[controlcap_advertised_browser_version] => default
[controlcap_is_windows_phone] => default
[controlcap_is_full_desktop] => default
[controlcap_is_largescreen] => default
[controlcap_is_mobile] => default
[controlcap_is_touchscreen] => default
[controlcap_is_wml_preferred] => default
[controlcap_is_xhtmlmp_preferred] => default
[controlcap_is_html_preferred] => default
[controlcap_form_factor] => default
[controlcap_complete_device_name] => default
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-02-13 13:37:33</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v4/user-agent-detail/ad/03/ad03a2d6-a5c9-45b1-9a63-5381ec942da9.html | HTML | mit | 46,539 | 40.442565 | 750 | 0.538989 | false |
package com.martijndashorst.euler;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
/**
* The sequence of triangle numbers is generated by adding the natural numbers.
* So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first
* ten terms would be:
*
* 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
*
* Let us list the factors of the first seven triangle numbers:
*
* <pre>
1: 1
3: 1,3
6: 1,2,3,6
10: 1,2,5,10
15: 1,3,5,15
21: 1,3,7,21
28: 1,2,4,7,14,28
* </pre>
*
* We can see that 28 is the first triangle number to have over five divisors.
*
* What is the value of the first triangle number to have over five hundred
* divisors?
*/
public class Euler12 {
@Test
public void example() {
assertThat(firstTriangleNumberWithOverNDivisors(5), is(28L));
}
@Test
public void solution() {
assertThat(firstTriangleNumberWithOverNDivisors(500), is(76_576_500L));
}
private long firstTriangleNumberWithOverNDivisors(int n) {
int divisors = 0;
int counter = 1;
long triangle = 0;
do {
triangle = (counter * (counter + 1)) / 2;
divisors = numberOfDivisors(triangle);
counter++;
} while (divisors < n);
return triangle;
}
@Test
public void nrOfDivisors1() {
assertThat(numberOfDivisors(1), is(1));
assertThat(numberOfDivisors(2), is(2));
assertThat(numberOfDivisors(3), is(2));
assertThat(numberOfDivisors(4), is(3));
assertThat(numberOfDivisors(10), is(4));
assertThat(numberOfDivisors(28), is(6));
}
private int numberOfDivisors(long n) {
if (n == 1)
return 1;
if (n <= 3)
return 2;
long nr = (long) Math.sqrt(n);
int nrOfDivisors = 2;
for (int i = 2; i <= nr; i++) {
if (n % i == 0) {
nrOfDivisors += i == nr ? 1 : 2;
}
}
return nrOfDivisors;
}
}
| dashorst/project-euler | src/test/java/com/martijndashorst/euler/Euler12.java | Java | mit | 1,853 | 22.455696 | 80 | 0.641123 | false |
'use strict';
angular.module('sportzCast')
.controller('FooterCtrl', function ($scope) {
$('#footer').hide();
$(function () {
$(window).scroll(function () {
// set distance user needs to scroll before we start fadeIn
if ($(this).scrollTop() > 500) {
$('.navbar').fadeIn();
} else {
$('.navbar').fadeOut();
}
});
});
}); | AriGonzo/SportzCast | src/components/footer/footerController.js | JavaScript | mit | 439 | 23.444444 | 76 | 0.448747 | false |
# Changelog
## Unreleased
- Removed `kp get` and `kp set` commands, basically we removed the global config. Config can only be done via `kanpai.json` or the `kanpai` field in `package.json`.
## 0.10.1
- Support `HTTPS` git URL.
## 0.10.0
- Move `npm publish` and `kp gh-release` to a standalone command: `kp release`, now running `kp` will only update `package.json`, create git tag and push to GitHub. `kp release` is used to actually publish on npm and create release on GitHub, this step could be automated via CI instead, env variables `GITHUB_TOKEN` and `NPM_TOKEN` are required for this to work.
- Generate default changelog from commit messages.
## 0.9.9
- Missing changelog body on GitHub Releases.
## 0.9.8
- Add `kp gh-release` command to publish a new release on GitHub.
- Migrate this package to esm format.
## 0.9.7
- Fix first release again
## 0.9.6
- Fix changelog heading
## 0.9.5
- Fix first release
- Prepend `## Unreleased` to the top of the changelog
## 0.9.4
- Remove `v` prefix from default version number in CHANGELOG.md
## 0.9.3
- Make sure git push tags too
## 0.9.2
- Replace `%s` in commit message with actual version number.
## 0.9.1
- Require version to be specified to prevent accidentally running `kp`
- Automatically change title `## Unreleased` in `CHANGELOG.md` to actual version `## vx.y.z` when publishing
| egoist/kanpai | CHANGELOG.md | Markdown | mit | 1,366 | 24.773585 | 363 | 0.713031 | false |
/* crypto/bf/blowfish.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
#ifndef HEADER_BLOWFISH_H
# define HEADER_BLOWFISH_H
# include <VialerPJSIP/openssl/e_os2.h>
#ifdef __cplusplus
extern "C" {
#endif
# ifdef OPENSSL_NO_BF
# error BF is disabled.
# endif
# define BF_ENCRYPT 1
# define BF_DECRYPT 0
/*-
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* ! BF_LONG has to be at least 32 bits wide. If it's wider, then !
* ! BF_LONG_LOG2 has to be defined along. !
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*/
# if defined(__LP32__)
# define BF_LONG unsigned long
# elif defined(OPENSSL_SYS_CRAY) || defined(__ILP64__)
# define BF_LONG unsigned long
# define BF_LONG_LOG2 3
/*
* _CRAY note. I could declare short, but I have no idea what impact
* does it have on performance on none-T3E machines. I could declare
* int, but at least on C90 sizeof(int) can be chosen at compile time.
* So I've chosen long...
* <appro@fy.chalmers.se>
*/
# else
# define BF_LONG unsigned int
# endif
# define BF_ROUNDS 16
# define BF_BLOCK 8
typedef struct bf_key_st {
BF_LONG P[BF_ROUNDS + 2];
BF_LONG S[4 * 256];
} BF_KEY;
# ifdef OPENSSL_FIPS
void private_BF_set_key(BF_KEY *key, int len, const unsigned char *data);
# endif
void BF_set_key(BF_KEY *key, int len, const unsigned char *data);
void BF_encrypt(BF_LONG *data, const BF_KEY *key);
void BF_decrypt(BF_LONG *data, const BF_KEY *key);
void BF_ecb_encrypt(const unsigned char *in, unsigned char *out,
const BF_KEY *key, int enc);
void BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
const BF_KEY *schedule, unsigned char *ivec, int enc);
void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out,
long length, const BF_KEY *schedule,
unsigned char *ivec, int *num, int enc);
void BF_ofb64_encrypt(const unsigned char *in, unsigned char *out,
long length, const BF_KEY *schedule,
unsigned char *ivec, int *num);
const char *BF_options(void);
#ifdef __cplusplus
}
#endif
#endif
| OnurVar/TestProject | Pods/Vialer-pjsip-iOS/VialerPJSIP.framework/Versions/A/Headers/openssl/blowfish.h | C | mit | 5,363 | 40.253846 | 80 | 0.687675 | false |
package ru.otus.l51.tests;
/**
* Created by tully.
*/
@SuppressWarnings("unused")
public class TestClass {
private int a = 0;
private String s = "";
public TestClass() {
}
public TestClass(Integer a) {
this.a = a;
}
public TestClass(Integer a, String s) {
this.a = a;
this.s = s;
}
int getA() {
return a;
}
String getS() {
return s;
}
private void setDefault(){
a = 0;
s = "";
}
}
| artem-gabbasov/otus_java_2017_04_L1 | L5.1/src/test/java/ru/otus/l51/tests/TestClass.java | Java | mit | 502 | 13.342857 | 43 | 0.486056 | false |
{% extends "adventure/views/templates/layout.html" %}
{% block content %}
<div class="post">
<div class="post_inner">
<div class="the_post format-text">
<ul>
{% for adventure in adventures %}
<li>
<a href="/adventure/{{ adventure.id }}">{{ adventure.title }}</a>
<div class="additional-meta-wrap">
<div class="additional-meta">
<div class="meta-date">
Created by {{ adventure.author }} on {{ adventure.created_on|date:"MM/dd/yyyy" }}
</div>
</div>
</div>
<br />
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}
{% block extra-js %}
{% if analytics-id %}
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create','{{ analytics-id }}','inchingforward.com');
ga('send', 'pageview');
{% endif %}
{% endblock %}
| inchingforward/adventure | src/adventure/views/templates/home.html | HTML | mit | 1,133 | 28.051282 | 95 | 0.556929 | false |
<?php
namespace Blogger\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
//\Blogger\BlogBundle\Entity\Client
class ClientController extends Controller{
/**
* Show one client.
*
* @Route("/client/{id}", name="client_show")
* @Method("GET")
*/
public function showAction($id)
{
$em = $this->getDoctrine()->getManager();
$client = $em->getRepository('BloggerBlogBundle:Client')->find($id);
if (!$client) {
throw $this->createNotFoundException('Unable to find Client post.');
}
return $this->render('BloggerBlogBundle:Client:show.html.twig', array(
'client' => $client,
));
}
}
| PavelKovalchuk/symblog | src/Blogger/BlogBundle/Controller/ClientController.php | PHP | mit | 901 | 22.102564 | 80 | 0.605993 | false |
<?php
namespace mle86\Value;
/**
* The interface of all value classes,
* i.e. AbstractValue and AbstractSerializableValue.
*
* It just specifies that Value classes should have a 'value' method
* and a one-argument constructor, although those classes have another
* important requirement: being immutable. But we cannot encode that
* in an interface.
*
* @author Maximilian Eul
* @link https://github.com/mle86/php-value
*/
interface Value
{
public function __construct($rawValue);
public function value();
}
| mle86/php-value | src/Value.php | PHP | mit | 536 | 21.333333 | 71 | 0.720149 | false |
package main
import (
"fmt"
"log"
"net"
"os"
"github.com/kennylevinsen/g9p"
"github.com/kennylevinsen/g9ptools/fileserver"
"github.com/kennylevinsen/g9ptools/ramfs/ramtree"
)
func main() {
if len(os.Args) < 5 {
fmt.Printf("Too few arguments\n")
fmt.Printf("%s service UID GID address\n", os.Args[0])
fmt.Printf("UID and GID are the user/group that owns /\n")
return
}
service := os.Args[1]
user := os.Args[2]
group := os.Args[3]
addr := os.Args[4]
root := ramtree.NewRAMTree("/", 0777, user, group)
l, err := net.Listen("tcp", addr)
if err != nil {
log.Fatalf("Unable to listen: %v", err)
}
h := func() g9p.Handler {
m := make(map[string]fileserver.Dir)
m[service] = root
return fileserver.NewFileServer(nil, m, 10*1024*1024, fileserver.Debug)
}
log.Printf("Starting ramfs at %s", addr)
g9p.ServeListener(l, h)
}
| joushou/g9ptools | ramfs/server.go | GO | mit | 857 | 19.902439 | 73 | 0.655776 | false |
/**
* Usuario Controller Test Suite
*
* @author Thiago Paes <mrprompt@gmail.com>
* @license MIT
*/
'use strict';
var connection = require('../test');
var Usuario = require('../../src/controllers/UsuarioController');
var sinon = require('sinon');
var assert = require('assert');
var request = require('request');
var response = {
content: null,
statusCode: 0,
json: function(content){
this.content = content;
return this;
},
status: function(status) {
this.statusCode = status;
return this;
}
};
describe('Usuario Controller', function () {
it('#lista() deve retornar um array', function (done) {
request.headers = {};
request.params = { };
request.query = {
page : 1,
limit: 1
};
Usuario.lista(request, response, function() {
assert.equal(response.content.object, 'list');
done();
});
});
it('#abre() deve retornar um objeto', function (done) {
request.headers = { };
request.params = {
id: 1
};
request.query = {
page : 1,
limit: 1
};
Usuario.abre(request, response, function() {
assert.equal(response.content.object, 'error');
assert.equal(response.statusCode, 404);
done();
});
});
it('#adiciona() deve retornar um objeto', function (done) {
request.headers = { };
request.body = {
nome : 'Foo Bar',
email : 'foo@bar.bar',
password: 'foo',
uf : 'AA',
estado : 'aaa aaa',
cidade : 'bbb bbb bb'
};
Usuario.adiciona(request, response, function() {
assert.equal(response.content.object, 'error');
done();
});
});
it('#atualiza() deve retornar um objeto', function (done) {
request.headers = { };
request.params = {
id: 1
};
request.query = {
page : 1,
limit: 1
};
Usuario.atualiza(request, response, function() {
assert.equal(response.content.object, 'error');
done();
});
});
it('#apaga() deve retornar um objeto', function (done) {
request.headers = { };
request.params = {
id: 1
};
request.query = {
page : 1,
limit: 1
};
Usuario.apaga(request, response, function() {
assert.equal(response.content.object, 'error');
done();
});
});
}); | mrprompt/expressjs-api-skel | test/controllers/UsuarioControllerTest.js | JavaScript | mit | 2,672 | 20.556452 | 65 | 0.483533 | false |
#!/usr/bin/env ts-node
import * as Path from 'path'
import * as Fs from 'fs'
import Ajv, { ErrorObject } from 'ajv'
function handleError(error: string) {
console.error(error)
process.exit(-1)
}
function formatErrors(errors: ErrorObject[]): string {
return errors
.map(error => {
const { dataPath, message } = error
const additionalProperties = error.params as any
const additionalProperty = additionalProperties.additionalProperty as string
let additionalPropertyText = ''
if (additionalProperty != null) {
additionalPropertyText = `, found: '${additionalProperties.additionalProperty}'`
}
// dataPath starts with a leading "."," which is a bit confusing
const element = dataPath.substring(1)
return ` - ${element} - ${message}${additionalPropertyText}`
})
.join('\n')
}
const repositoryRoot = Path.dirname(__dirname)
const changelogPath = Path.join(repositoryRoot, 'changelog.json')
// eslint-disable-next-line no-sync
const changelog = Fs.readFileSync(changelogPath, 'utf8')
let changelogObj = null
try {
changelogObj = JSON.parse(changelog)
} catch {
handleError(
'Unable to parse the contents of changelog.json into a JSON object. Please review the file contents.'
)
}
const schema = {
$schema: 'http://json-schema.org/draft-07/schema#',
type: 'object',
properties: {
releases: {
type: 'object',
patternProperties: {
'^([0-9]+.[0-9]+.[0-9]+)(-beta[0-9]+|-test[0-9]+)?$': {
type: 'array',
items: {
type: 'string',
},
uniqueItems: true,
},
},
additionalProperties: false,
},
},
}
const ajv = new Ajv({ allErrors: true, uniqueItems: true })
const validate = ajv.compile(schema)
const valid = validate(changelogObj)
if (!valid && validate.errors != null) {
handleError(`Errors: \n${formatErrors(validate.errors)}`)
}
console.log('The changelog is totally fine')
| desktop/desktop | script/validate-changelog.ts | TypeScript | mit | 1,979 | 24.050633 | 105 | 0.642749 | false |
<?php
namespace TheScienceTour\DocumentBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
use Doctrine\Bundle\MongoDBBundle\Validator\Constraints\Unique as MongoDBUnique;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use TheScienceTour\MediaBundle\Validator\Constraints as TSTMediaAssert;
/** @MongoDB\MappedSuperclass */
abstract class Document {
/**
* @MongoDB\Boolean
*/
protected $isErasmus; // Le contenu est-il lié à un projet Erasmus ?
/**
* @MongoDB\String
*/
protected $language; // La langue du document
/**
* @MongoDB\ReferenceOne(targetDocument="TheScienceTour\DocumentBundle\Document\Document", inversedBy="translations")
*/
protected $principal; // Le document original
/**
* @MongoDB\ReferenceMany(targetDocument="TheScienceTour\DocumentBundle\Document\Document", mappedBy="principal")
*/
protected $translations; // Ensemble des traductions
public function getIsErasmus() {
return $this->isErasmus;
}
public function getLanguage() {
return $this->isErasmus;
}
public function getPrincipal() {
return $this->isErasmus;
}
public function setIsErasmus($isErasmus) {
$this->isErasmus = $isErasmus;
return $this;
}
public function setLanguage($language) {
$this->language = $language;
return $this;
}
public function setPrincipal(\TheScienceTour\DocumentBundle\Document\Document $principal) {
$this->principal = $principal;
return $this;
}
public function getTranslations() {
return $this->translations;
}
public function addTranslation(\TheScienceTour\DocumentBundle\Document\Document $translation) {
$this->translations[] = $translation;
}
public function removeTranslation(\TheScienceTour\DocumentBundle\Document\Document $translation) {
$this->translations->removeElement($translation);
}
}
| assemblee-virtuelle/science-tour | src/TheScienceTour/DocumentBundle/Document/Document.php | PHP | mit | 1,916 | 25.219178 | 121 | 0.732497 | false |
define([
], function () {
'use strict';
return function (req, res, next) {
function filterParams(req, action) {
var paramsWhitelist = action.params,
whitelistParam,
paramValue,
type,
filteredParams = {};
// check all actions params
for (whitelistParam in paramsWhitelist) {
if (paramsWhitelist.hasOwnProperty(whitelistParam)) {
type = '';
// get param from body or query
if (paramsWhitelist[whitelistParam].query === true) {
paramValue = req.query[whitelistParam];
} else {
paramValue = req.body[whitelistParam];
}
// if defined or not optional -> validate
if (paramValue !== undefined || !paramsWhitelist[whitelistParam].optional) {
// validate missing params
if (paramValue === undefined && !paramsWhitelist[whitelistParam].optional) { // necessary param missing
type = 'missing_parameter';
} else if (paramValue && paramValue.constructor !== paramsWhitelist[whitelistParam].type) { // validate param type
type = 'wrong_type';
} else if (paramsWhitelist[whitelistParam].hasOwnProperty('regex') && !paramsWhitelist[whitelistParam].regex.test(paramValue)) {
type = 'invalid_structure'; // validate param for custom regex
} else if (paramsWhitelist[whitelistParam].hasOwnProperty('validate') && !paramsWhitelist[whitelistParam].validate(paramValue)) {
type = 'custom_validation'; // validate param for custom validate function
}
// if error type is set -> throw error
if (type) {
throw {
error: type,
param: whitelistParam
};
}
// set validated param
filteredParams[whitelistParam] = paramValue;
}
}
}
return filteredParams;
}
if (req.customData && req.customData.action) {
try {
req.customData.params = filterParams(req, req.customData.action);
} catch (e) {
return res.status(400).send(e);
}
}
next();
};
});
| KillerCodeMonkey/handmade | middleware/validation.js | JavaScript | mit | 2,697 | 43.95 | 153 | 0.468669 | false |
module Em
module Systemcommand
VERSION = "2.0.10"
end
end
| leoc/em-systemcommand | lib/em-systemcommand/version.rb | Ruby | mit | 66 | 12.2 | 22 | 0.666667 | false |
use std::env;
use std::process;
use minigrep::Config;
fn main() {
let args: Vec<String> = env::args().collect();
let config = Config::new(&args).unwrap_or_else(|err| {
eprintln!("Problem parsing arguments: {}", err);
process::exit(1);
});
if let Err(e) = minigrep::run(config) {
eprintln!("Application error: {}", e);
process::exit(1);
}
}
| jekhokie/scriptbox | rust--learnings/12/minigrep/src/main.rs | Rust | mit | 396 | 21 | 58 | 0.558081 | false |
// Copyright (c) 2018 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_UTIL_H_
#define SHELL_COMMON_GIN_UTIL_H_
#include "gin/converter.h"
#include "gin/function_template.h"
namespace gin_util {
template <typename T>
bool SetMethod(v8::Local<v8::Object> recv,
const base::StringPiece& key,
const T& callback) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
auto context = isolate->GetCurrentContext();
return recv
->Set(context, gin::StringToV8(isolate, key),
gin::CreateFunctionTemplate(isolate, callback)
->GetFunction(context)
.ToLocalChecked())
.ToChecked();
}
} // namespace gin_util
#endif // SHELL_COMMON_GIN_UTIL_H_
| the-ress/electron | shell/common/gin_util.h | C | mit | 829 | 27.586207 | 69 | 0.652593 | false |
{% extends "images/base.html" %}
{% block content %}
<h2>{{ resource }}</h2>
<p><strong>Tags: </strong>
{% for tag in resource.tags.all %}
<a href={% url 'tag' tag %}>{{ tag }}</a>
{% endfor %}
<p><strong>Similar Images: </strong>
{% for resource in resource.tags.similar_objects %}
<a href="{% url 'resource' resource.id %}">{{ resource }}</a>
{% endfor %}</p>
<img src="{{ resource.file.url }}" class="thumbnail">
{% endblock %}
| bdunnette/pima | images/templates/images/resource.html | HTML | mit | 435 | 24.588235 | 61 | 0.595402 | false |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - DoCoMo/2.0 P90liS(c100;TB;W20H10)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../circle.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
DoCoMo/2.0 P90liS(c100;TB;W20H10)
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>UAParser<br /><small>v0.5.0.2</small><br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">DoCoMo</td><td>P90liS</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59">Detail</a>
<!-- Modal Structure -->
<div id="modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">Array
(
[user_agent_string] => DoCoMo/2.0 P90liS(c100;TB;W20H10)
[family] => DoCoMo P90liS
[brand] => DoCoMo
[model] => P90liS
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>DoCoMo 2.0</td><td> </td><td>JAVA </td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Device</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.007</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a>
<!-- Modal Structure -->
<div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapFull result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^docomo\/2\.0.*$/
[browser_name_pattern] => docomo/2.0*
[parent] => DoCoMo
[comment] => DoCoMo
[browser] => DoCoMo
[browser_type] => Browser
[browser_bits] => 32
[browser_maker] => unknown
[browser_modus] => unknown
[version] => 2.0
[majorver] => 2
[minorver] => 0
[platform] => JAVA
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 32
[platform_maker] => Oracle
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] =>
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] =>
[crawler] =>
[isfake] =>
[isanonymized] =>
[ismodified] =>
[cssversion] => 1
[aolversion] => 0
[device_name] => general Mobile Device
[device_maker] => unknown
[device_type] => Mobile Device
[device_pointing_method] => unknown
[device_code_name] => general Mobile Device
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>DoCoMo 2.0</td><td><i class="material-icons">close</i></td><td>JAVA </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Device</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.01</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a>
<!-- Modal Structure -->
<div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^docomo\/2\.0.*$/
[browser_name_pattern] => docomo/2.0*
[parent] => DoCoMo
[comment] => DoCoMo
[browser] => DoCoMo
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => unknown
[browser_modus] => unknown
[version] => 2.0
[majorver] => 2
[minorver] => 0
[platform] => JAVA
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] =>
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Device
[device_pointing_method] => unknown
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>DoCoMo 2.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a>
<!-- Modal Structure -->
<div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] =>
[browser] => DoCoMo
[version] => 2.0
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>NetFront </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">DoCoMo</td><td></td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.20801</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a>
<!-- Modal Structure -->
<div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 320
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] => DoCoMo
[mobile_model] =>
[version] =>
[is_android] =>
[browser_name] => NetFront
[operating_system_family] => unknown
[operating_system_version] =>
[is_ios] =>
[producer] => ACCESS CO.,LTD
[operating_system] => unknown
[mobile_screen_width] => 240
[mobile_browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">DoCoMo</td><td>P90liS</td><td>feature phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.007</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a>
<!-- Modal Structure -->
<div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] =>
[operatingSystem] => Array
(
)
[device] => Array
(
[brand] => DC
[brandName] => DoCoMo
[model] => P90liS
[device] => 3
[deviceName] => feature phone
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] =>
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] => 1
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] =>
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">DoCoMo</td><td>P90liS</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a>
<!-- Modal Structure -->
<div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] =>
[minor] =>
[patch] =>
[family] => Other
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] =>
[minor] =>
[patch] =>
[patchMinor] =>
[family] => Other
)
[device] => UAParser\Result\Device Object
(
[brand] => DoCoMo
[model] => P90liS
[family] => DoCoMo P90liS
)
[originalUserAgent] => DoCoMo/2.0 P90liS(c100;TB;W20H10)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td> </td><td> </td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15301</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a>
<!-- Modal Structure -->
<div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[platform_name] => NTT DoCoMo
[platform_version] => 2.0
[platform_type] => Mobile
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555"></td><td>P90liS</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.23401</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] =>
[simple_sub_description_string] =>
[simple_browser_string] =>
[browser_version] =>
[extra_info] => Array
(
)
[operating_platform] => P90liS
[extra_info_table] => Array
(
)
[layout_engine_name] =>
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] =>
[operating_system_version] =>
[simple_operating_platform_string] => P90liS
[is_abusive] =>
[layout_engine_version] =>
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] =>
[operating_system] =>
[operating_system_version_full] =>
[operating_platform_code] =>
[browser_name] =>
[operating_system_name_code] =>
[user_agent] => DoCoMo/2.0 P90liS(c100;TB;W20H10)
[browser_version_full] =>
[browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555"></td><td>P90liS</td><td>mobile:feature</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a>
<!-- Modal Structure -->
<div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[device] => Array
(
[type] => mobile
[subtype] => feature
[model] => P90liS
[carrier] => DoCoMo
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>docomo P90liS</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>mobilephone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a>
<!-- Modal Structure -->
<div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[name] => docomo
[os] => docomo
[category] => mobilephone
[vendor] => docomo
[version] => P90liS
[os_version] => UNKNOWN
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">DoCoMo</td><td></td><td>Feature Phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.016</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a>
<!-- Modal Structure -->
<div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => false
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => false
[is_mobile] => true
[is_robot] => false
[is_smartphone] => false
[is_touchscreen] => false
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => true
[is_html_preferred] => false
[advertised_device_os] =>
[advertised_device_os_version] =>
[advertised_browser] =>
[advertised_browser_version] =>
[complete_device_name] => DoCoMo
[device_name] => DoCoMo
[form_factor] => Feature Phone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => DoCoMo
[model_name] =>
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => false
[has_qwerty_keyboard] => false
[can_skip_aligned_link_row] => true
[uaprof] =>
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] =>
[mobile_browser] =>
[mobile_browser_version] =>
[device_os_version] =>
[pointing_method] =>
[release_date] => 2002_january
[marketing_name] =>
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => true
[card_title_support] => false
[softkey_support] => false
[table_support] => false
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => false
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => false
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => false
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => true
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => ja
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => false
[xhtml_supports_forms_in_table] => false
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => false
[xhtml_supports_css_cell_table_coloring] => false
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => false
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => utf8
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => application/vnd.wap.xhtml+xml
[xhtml_table_support] => false
[xhtml_send_sms_string] => none
[xhtml_send_mms_string] => none
[xhtml_file_upload] => not_supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => none
[xhtml_avoid_accesskeys] => false
[xhtml_can_embed_video] => none
[ajax_support_javascript] => false
[ajax_manipulate_css] => false
[ajax_support_getelementbyid] => false
[ajax_support_inner_html] => false
[ajax_xhr_type] => none
[ajax_manipulate_dom] => false
[ajax_support_events] => false
[ajax_support_event_listener] => false
[ajax_preferred_geoloc_api] => none
[xhtml_support_level] => 1
[preferred_markup] => docomo_imode_html_3
[wml_1_1] => true
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => true
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => true
[html_web_3_2] => false
[html_web_4_0] => false
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 240
[resolution_height] => 320
[columns] => 8
[max_image_width] => 240
[max_image_height] => 320
[rows] => 6
[physical_screen_width] => 27
[physical_screen_height] => 27
[dual_orientation] => false
[density_class] => 1.0
[wbmp] => false
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => false
[png] => false
[tiff] => false
[transparent_png_alpha] => false
[transparent_png_index] => false
[svgt_1_1] => false
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 262144
[webp_lossy_support] => false
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 9
[wifi] => false
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 5000
[max_url_length_in_requests] => 512
[max_url_length_homepage] => 100
[max_url_length_bookmark] => 100
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 256
[max_length_of_password] => 20
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => false
[inline_support] => false
[oma_support] => false
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => false
[streaming_3gpp] => false
[streaming_mp4] => false
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => -1
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => -1
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => -1
[streaming_acodec_amr] => none
[streaming_acodec_aac] => none
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => none
[wap_push_support] => false
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => false
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => false
[sender] => false
[mms_max_size] => 0
[mms_max_height] => 0
[mms_max_width] => 0
[built_in_recorder] => false
[built_in_camera] => false
[mms_jpeg_baseline] => false
[mms_jpeg_progressive] => false
[mms_gif_static] => false
[mms_gif_animated] => false
[mms_png] => false
[mms_bmp] => false
[mms_wbmp] => false
[mms_amr] => false
[mms_wav] => false
[mms_midi_monophonic] => false
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => false
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => false
[mms_vcalendar] => false
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => false
[mms_mp4] => false
[mms_3gpp] => false
[mms_3gpp2] => false
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => false
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => false
[midi_polyphonic] => false
[sp_midi] => false
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => false
[au] => false
[amr] => false
[awb] => false
[aac] => false
[mp3] => false
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] => 1_1
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => false
[css_supports_width_as_percentage] => true
[css_border_image] => none
[css_rounded_corners] => none
[css_gradient] => none
[css_spriting] => false
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => false
[progressive_download] => true
[playback_vcodec_h263_0] => -1
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => -1
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 1
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => false
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => lc
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => false
[html_preferred_dtd] => xhtml_mp1
[viewport_supported] => false
[viewport_width] =>
[viewport_userscalable] =>
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => none
[image_inlining] => false
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => none
[is_sencha_touch_ok] => false
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>DoCoMo 2.0</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a>
<!-- Modal Structure -->
<div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Zsxsoft result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[link] => http://www.nttdocomo.com/
[title] => DoCoMo 2.0
[code] => null
[version] => 2.0
[name] => DoCoMo
[image] => img/16/browser/null.png
)
[os] => Array
(
[link] =>
[name] =>
[version] =>
[code] => null
[x64] =>
[title] =>
[type] => os
[dir] => os
[image] => img/16/os/null.png
)
[device] => Array
(
[link] => #
[title] => Unknown
[code] => null
[dir] => browser
[type] => os
[image] => img/16/browser/null.png
)
[platform] => Array
(
[link] => #
[title] => Unknown
[code] => null
[dir] => browser
[type] => os
[image] => img/16/browser/null.png
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-05-10 08:06:17</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/ba/2e/ba2efb11-d9a9-4489-8474-c5e519c9d172.html | HTML | mit | 46,068 | 38.510292 | 960 | 0.526613 | false |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SourceSchemaParser.DOTA2;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace SourceSchemaParser.JsonConverters
{
internal class SchemaItemToDotaHeroJsonConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
throw new NotImplementedException();
}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
{
if (reader.TokenType == JsonToken.Null)
{
return null;
}
List<DotaHeroSchemaItem> heroes = new List<DotaHeroSchemaItem>();
JToken t = JToken.Load(reader);
var properties = t.Children<JProperty>();
foreach (var item in properties)
{
if (item.Name == "Version")
{
continue;
}
JObject o = (JObject)item.Value;
DotaHeroSchemaItem heroSchemaItem = JsonConvert.DeserializeObject<DotaHeroSchemaItem>(item.Value.ToString());
if (!string.IsNullOrWhiteSpace(heroSchemaItem.Url)) { heroSchemaItem.Url = heroSchemaItem.Url.Replace(" ", "_"); }
heroSchemaItem.Name = item.Name;
if (heroSchemaItem.Team == "good") { heroSchemaItem.Team = "Good"; } // fix stupid caps
heroes.Add(heroSchemaItem);
}
return heroes;
}
public override bool CanWrite { get { return false; } }
public override bool CanConvert(Type objectType)
{
return typeof(IList<DotaHeroSchemaItem>).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo());
}
}
} | babelshift/SourceSchemaParser | src/SourceSchemaParser/JsonConverters/SchemaItemToDotaHeroJsonConverter.cs | C# | mit | 1,860 | 32.8 | 130 | 0.606566 | false |
<!doctype html>
<html lang="en-gb">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<title>Wing Jones by Katherine Webber – Suffolk Libraries</title>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@suffolklibrary">
<meta name="twitter:title" content="Wing Jones by Katherine Webber">
<meta name="twitter:description" content="Emma loved Wing Jones and is excited to read Katherine Webber's future work">
<meta name="twitter:image" content="/images/featured/featured-wing-jones.jpg">
<meta name="twitter:image:alt" content="Wing Jones">
<link rel="stylesheet" href="/css/style.css">
<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-regular.woff2">
<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-italic.woff2">
<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-700.woff2">
</head>
<body class="custom-sans-serif lh-copy dark-gray bg-moon-gray">
<ul class="clip">
<li><a href="#content">Skip to content</a></li>
<li><a href="#footer-nav">Skip to navigation menu</a></li>
</ul>
<div class="bg-black white pa2 ph3-ns">
<div class="custom-max-width">
<p class="f6 ma0 custom-lh-title"><span role='image' aria-label='Debit card' class='pr1'>💳</span> You can now pay online. <a href="
https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/MSGTRN/OPAC/LOGINB?RDT=/SpydusCitizenPay/default.aspx
" class="underline lightest-blue">
Pay charges now →
</a></p>
</div>
</div>
<header id="site-header" class="custom-lh-title">
<div class="bg-white dark-gray ph2 ph3-ns pt2 pt3-ns">
<div class="custom-max-width flex">
<div class="w-30">
<a href="/"><img src="/images/logos/sl.svg" class="v-btm w3 w4-ns" alt="Suffolk Libraries"></a>
</div>
<div class="w-70 flex justify-end items-center">
<div><a href="/support-us/" class="dib blue pv1 pv2-ns f7 f6-ns pr2">Donate</a></div>
<div><a href="/help/joining-the-library/" class="dib custom-icon custom-icon-card blue pv1 pv2-ns f7 f6-ns">Join</a></div>
<div><a href="https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/MSGTRN/OPAC/LOGINB" class="dib custom-icon custom-icon-lock blue pv1 pv2-ns ml2 f7 f6-ns">Login</a></div>
<div><a href="/search-form/" class="dib custom-icon custom-icon-search blue ml2 pv1 pv2-ns f7 f6-ns">Search</a></div>
</div>
</div>
</div>
<div class="custom-bg-corporate white ph2 ph3-ns bb b--white">
<div class="custom-max-width">
<ul class="ma0 pa0 list f6">
<li class="dib mr2 mr3-l"><a href="/" class="white underline db pv2">Home</a></li>
<li class="dib mr2 mr3-l"><a href="/elibrary/" class="white underline db pv2">eLibrary</a></li>
<li class="dib mr2 mr3-l"><a href="/events-activities/online-and-streamed-events/" class="white underline db pv2">Online events</a></li>
<li class="dib mr2 mr3-l"><a href="/help/" class="white underline db pv2">Help</a></li>
<li class="dib mr2 mr3-l"><a href="/contact/" class="white underline db pv2">Contact</a></li>
<!-- <li class="dib mr2 mr3-l"><a href="/about/" class="white underline db pv2">About</a></li>
<li class="dib"><a class="white underline db pv2" href="/support-us/">Donate</a></li> -->
</ul>
</div>
</div>
</header>
<div class="pv2 pv3-ns cf custom-max-width
">
<main id="content" role="main">
<div class="custom-g-l4">
<article>
<div class="bg-white pa2 pa5-ns pv4-ns cf mb2 border-box b--light-gray
">
<div class="pa2 ph3-ns bg-white ba b--light-gray custom-underline f6">
<a class="blue underline" href="/">Home</a>
→ <a class="blue underline" href="/new-suggestions/">New suggestions</a>
→ <a class="blue underline" href="/new-suggestions/young-adult/">Young adult</a>
→ Wing Jones by Katherine Webber
</div>
<header class="mt3">
<h1 itemprop="name headline"class="custom-lh-title f2 pa0 ma0 mb3
}">Wing Jones by Katherine Webber</h1>
<p class="f6 mid-gray">
Written by <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Emma Maguire</span></span> · Published Apr 27, 2017 · Filed under <a class="blue" href="/new-suggestions/reviews/genre/literary-fiction">Literary fiction</a>
</p>
</header>
<div itemprop="articleBody"class="lh-copy custom-hyphens custom-prose
custom-underline custom-visited">
<p><img src="/images/featured/featured-wing-jones.jpg" alt="Wing Jones" /></p>
<p><strong><a href="https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/ENQ/OPAC/BIBENQ?BRN=2078815">See <cite>Wing Jones</cite> in our catalogue</a>.</strong></p>
<p>Wing has always been in the shadow of her football-playing popular brother. She doesn’t look like anyone else, and the one friend she did have moved away. When tragedy strikes the family, Wing discovers she can run - fast!</p>
<p>Wing finds a place to fit in, makes new friends, and Aaron becomes more than just her brother’s best friend. Wing discovers against incredible pain you can find happiness - and her talent might just help her family too.</p>
<p>I loved <cite>Wing Jones</cite>, and I couldn’t put it down. I will be keeping an eye out for anything else Katherine Webber writes. Read this book, it’s one of my favourites so far this year!</p>
<footer>
<footer class="pb4 pb5-ns pt3 bt b--light-gray">
<h1 class="f4 ma0 pa0 pb1">Emma Maguire</a></h1>
<p class="ma0">I'm a library and information advisor.</p>
</footer>
</footer>
</div>
</div>
</article>
</div>
</main>
<div class="custom-g-l2 custom-g-nm custom-underline">
<aside id="sidebar" class="bg-white pa2 pa5-ns pv4-ns cf mb2 border-box b--light-gray
custom-constrain-img" role="complementary">
<section class="pb3 pb4-ns
">
<h1 class="ma0 pb2 f5 f4-ns fw6
">About our Young Adult section</h1>
<p class="ma0 mb2 f6 f5-ns">Book reviews, reading suggestions and blog posts from our staff and young adult readers. Want to write for our website? Email us at <strong>help@suffolklibraries.co.uk</strong>.</p>
</section>
<section class="pb3 pb4-ns
">
<h1 class="ma0 pb2 f5 f4-ns fw6
">More Young adult</h1>
<ul class="pa0 ma0 list mb2 f6 f5-ns
">
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/new-young-adult-for-march-2020/">New Young Adult books for March 2020</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/wranglestone-by-darren-charlton/">Wranglestone by Darren Charlton</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/lgbt-history-month-2020/">Recommended Young Adult titles to mark LGBT History Month 2020</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/with-the-fire-on-high-by-elizabeth-acevedo/">With the Fire on High by Elizabeth Acevedo</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/new-young-adult-for-february-2020/">New Young Adult books for February 2020</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/the-poet-x-by-elizabeth-acevedo/">The Poet X by Elizabeth Acevedo</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/read-for-empathy-ya-2020/">Find your new favourite book with the 2020 Read for Empathy YA book collection</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/the-deathless-girls-by-kiran-millwood-hargrave/">The Deathless Girls by Kiran Millwood Hargrave</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/the-beautiful-by-renee-ahdieh/">The Beautiful by Renée Ahdieh</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/ya-comic-books/">Feast your eyes on our stunning Young Adult comic books</a></li>
</ul>
</section>
<section class="pb3 pb4-ns
">
<h1 class="ma0 pb2 f5 f4-ns fw6
">More suggestions</h1>
<ul class="pa0 ma0 list mb2 f6 f5-ns
">
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/fiction/">Fiction</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/audiobooks/">Audiobooks</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/films-dvds/">Films & DVDs</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/elibrary-picks/">eLibrary picks</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/childrens-ya-books/">Children's books</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/young-adult/">Young adult</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/non-fiction/">Non-fiction</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/music/">Music</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/meet-the-author/">Meet the Author interviews</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/articles/">Articles</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/health-lists/"> Health and wellbeing</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/reviews/">Reviews</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/new-suggestions/book-club/">Book club favourites</a></li>
</ul>
</section>
<section class="pb3 pb4-ns
">
<h1 class="ma0 pb2 f5 f4-ns fw6
">Keep updated</h1>
<p class="ma0 mb2 f6 f5-ns">Get the latest suggestions, releases and reviews delivered straight to you.</p>
<ul class="pa0 ma0 list mb2 f6 f5-ns
">
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="/newsletter/">Email newsletter</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="https://facebook.com/suffolklibraries">Facebook</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="https://twitter.com/suffolklibrary">Twitter</a></li>
<li class="pv2 bt b--light-gray
"><a class="blue link
" href="https://instagram.com/suffolklibraries">Instagram</a></li>
</ul>
</section>
</aside>
</div>
</div>
<footer id="footer" class="pa2 pt3 pa3-ns pt4-ns bg-near-black white custom-underline">
<div class="custom-max-width">
<div class="flex-l justify-between-l">
<div class="w-30-l mb4 f6">
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Do it online</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="https://suffolk.spydus.co.uk" class="link light-gray hover-white">Search & reserve</a></li>
<li class="mb2 mb1-ns"><a href="https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/MSGTRN/OPAC/LOGINB" class="link light-gray hover-white">Login & renew</a></li>
<li class="mb2 mb1-ns"><a class="link light-gray hover-white" href="/elibrary">eLibrary</a></li>
<li class="mb2 mb1-ns"><a href="/help/joining-the-library/" class="link light-gray hover-white">Get a library card</a></li>
</ul>
</section>
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Support your library</h2>
<p>We're a charity that makes life in Suffolk better for thousands of people.</p>
<p class="ma0"><a class="b pa1 br2 custom-bg-corporate-green hover-bg-green white custom-no-underline" href="/support-us">Donate</a></p>
</section>
</div>
<div class="w-30-l mb4 f6">
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Contact us</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="tel:01473351249" class="link light-gray hover-white">01473 351249</a></li>
<li class="mb2 mb1-ns"><a href="mailto:help@suffolklibraries.co.uk" class="link light-gray hover-white">help@suffolklibraries.co.uk</a></li>
</ul>
</section>
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Social media</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="http://facebook.com/suffolklibraries" class="link light-gray hover-white">Facebook</a></li>
<li class="mb2 mb1-ns"><a href="https://www.youtube.com/user/SuffolkLibraries/" class="link light-gray hover-white">YouTube</a></li>
<li class="mb2 mb1-ns"><a href="http://twitter.com/suffolklibrary" class="link light-gray hover-white">Twitter</a></li>
<li class="mb2 mb1-ns"><a href="https://instagram.com/suffolklibraries" class="link light-gray hover-white">Instagram</a></li>
<li class="mb2 mb1-ns"><a href="https://www.linkedin.com/company/suffolk-libraries/" class="link light-gray hover-white">LinkedIn</a></li>
<li class="mb2 mb1-ns"><a href="/newsletter" class="link light-gray hover-white">Email newsletter</a></li>
</ul>
</section>
</div>
<div class="w-30-l mb4 f6">
<nav class="pb4" id="footer-nav">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Sections</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="/elibrary/" class="link light-gray hover-white">eLibrary</a></li>
<li class="mb2 mb1-ns"><a href="/libraries/" class="link light-gray hover-white">Libraries</a></li>
<li class="mb2 mb1-ns"><a href="/mobiles-home/" class="link light-gray hover-white">Mobile & home service</a></li>
<li class="mb2 mb1-ns"><a href="/help/" class="link light-gray hover-white">Help using the service</a></li>
<li class="mb2 mb1-ns"><a href="/new-suggestions/" class="link light-gray hover-white">Recommendations & reviews</a></li>
<li class="mb2 mb1-ns"><a href="/events-activities/" class="link light-gray hover-white">Events & activities</a></li>
<li class="mb2 mb1-ns"><a href="/research-and-reference/" class="link light-gray hover-white">Research & reference</a></li>
<li class="mb2 mb1-ns"><a href="/parents-carers-and-children/" class="link light-gray hover-white">Parents, carers & children</a></li>
<li class="mb2 mb1-ns"><a href="/teachers-and-home-educators/" class="link light-gray hover-white">Teachers & home educators</a></li>
<li class="mb2 mb1-ns"><a href="/health/" class="link light-gray hover-white">Health & wellbeing</a></li>
<li class="mb2 mb1-ns"><a href="/help-with-reading-and-literacy/" class="link light-gray hover-white">Help with reading & literacy</a></li>
<li class="mb2 mb1-ns"><a href="/work-and-benefits/" class="link light-gray hover-white">Work & benefits</a></li>
<li class="mb2 mb1-ns"><a href="/business-and-room-hire/" class="link light-gray hover-white">Business & room hire</a></li>
<li class="mb2 mb1-ns"><a href="/bloc/" class="link light-gray hover-white">BLOC</a></li>
<li class="mb2 mb1-ns"><a href="/music-and-drama/" class="link light-gray hover-white">Music & Drama Library</a></li>
<li class="mb2 mb1-ns"><a href="/news/" class="link light-gray hover-white">News</a></li>
<li class="mb2 mb1-ns"><a href="/about/jobs/" class="link light-gray hover-white">Jobs</a></li>
<li class="mb2 mb1-ns"><a href="/volunteer/" class="link light-gray hover-white">Volunteering</a></li>
<li class="mb2 mb1-ns"><a href="/about/" class="link light-gray hover-white">About us</a></li>
</ul>
</nav>
</div>
</div>
<section class="pb4 f6">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Privacy & cookies</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns">Find out what cookies we use and how we use your data: <a href="/help/privacy-and-cookies/" class="light-gray underline hover-white">our privacy policies</a>.</li>
<li class="mb2 mb1-ns"><a href="/about/jobs/privacy-notice-for-job-applicants/" class="light-gray underline hover-white">Privacy notice for job applicants</a></li>
</ul>
</section>
<div class="pb4 f6">
<p class="ma0 light-gray">Suffolk Libraries HMRC charity number XT34476. Registered company number IP031542.</p>
</div>
</div>
</footer>
</body>
</html>
| suffolklibraries/sljekyll | _site/new-suggestions/young-adult/wing-jones-by-katherine-webber/index.html | HTML | mit | 21,399 | 27.47004 | 276 | 0.524812 | false |
<?php
/*
* This file is part of the Quantum Unit Solutions development package.
*
* (c) Quantum Unit Solutions <http://github.com/dmeikle/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gossamer\Tehuti\Routing;
/**
* ServerContext
*
* @author Dave Meikle
*/
class ServerContext extends Context {
}
| dmeikle/tehuti | src/framework/Gossamer/Tehuti/Routing/ServerContext.php | PHP | mit | 417 | 18.857143 | 75 | 0.70024 | false |
<html>
<head>
<meta content="HTML Tidy for HTML5 for Linux version 5.2.0" name="generator"/>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="Describes the xSemaphoreCreateBinaryStatic() RTOS API function which is part of the RTOS semaphore API source code function set." name="description"/>
<meta content="vSemaphoreCreateBinaryStatic, semaphore, binary, binary semaphore, mutex, mailbox, RTOS mailbox, FreeRTOS API, RTOS API, RTOS" name="keywords"/>
<title>xSemaphoreCreateBinaryStatic() RTOS API documentation</title>
<link href="doxygen.css" rel="stylesheet"/>
<style type="text/css">
</style>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<script src="banners.js" type="text/javascript">
</script>
<script src="stlib.js" type="text/javascript">
</script>
<script src="left_menu.js" type="text/javascript">
</script>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript">
</script>
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js">
</script>
<link href="code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css" rel="stylesheet"/>
<script type="text/javascript">
window.onload = function()
{
var rect1 = document.getElementById( 'td_right_side_bar' ).getBoundingClientRect();
if( rect1.right >= window.innerWidth )
{
document.getElementById( 'td_right_side_bar' ).style.display = 'none';
document.getElementById( 'td_right_side_bar' ).style.width = '0';
}
};
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6086815-2']);
_gaq.push(['_setDomainName', 'freertos.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
function check_left_image_clash()
{
var rect1 = document.getElementById( 'left_banner_image' ).getBoundingClientRect();
var rect2 = document.getElementById( 'id_tree_menu' ).getBoundingClientRect();
if ( rect1.right >= rect2.left ) {
document.getElementById( 'td_left_side_bar' ).style.display = 'none';
document.getElementById( 'td_left_side_bar' ).style.width = '0';
}
}
</script>
<script type="text/javascript">
function check_right_image_clash()
{
var rect1 = document.getElementById( 'td_right_side_bar' ).getBoundingClientRect();
if( rect1.right >= window.innerWidth )
{
document.getElementById( 'td_right_side_bar' ).style.display = 'none';
document.getElementById( 'td_right_side_bar' ).style.width = '0';
}
}
</script>
<script type="text/javascript">
$( document ).ready( function()
{
window.setTimeout("blindDownMenuHint();", 5000);
window.setTimeout("blindUpMenuHint();", 12000);
}
)
function blindDownMenuHint()
{
if( window.name != "done" )
{
$( "#menu_hint").show( "blind", "slow" );
window.name = "done";
}
}
function blindUpMenuHint()
{
$( "#menu_hint").hide( "blind", "slow" );
}
</script></head>
<body><font face="Arial"><a id="page_top" name="page_top"/></font>
<table>
<tbody>
<tr>
<td valign="top">
<!-- Content area - the other td is the side bar area. -->
<table align="center" cellpadding="5" cellspacing="0" style="height:100%;background:white; border-left:solid 1px #f0f0f0; border-right:solid 1px #f0f0f0;">
<tbody>
<tr valign="top">
<td colspan="3" style="height:100px;">
<!-- Spans the left menu, blank line, and main content columns of the next row. -->
<table border="0" cellpadding="0" cellspacing="2" style="width:100%;"><!-- Rows for logos and banners, blue lines with menu. -->
<tbody>
<tr style="padding: 0px 0px 0px 0px;"><!-- Top row, banner and logo. -->
<td>
<table cellpadding="0" cellspacing="5px" style="table-layout:fixed;" width="100%">
<tbody>
<tr>
<td id="logo_column" style="line-height:normal;" valign="middle" width="174px">
<div style="float:left;"><a href="index.html"><img alt="Free RTOS logo" border="0" src="logo.jpg" style="padding: 0 0 0 5px;" width="164px"/></a></div>
</td>
<td style="width:5px; border-top:solid 2px #e6e6e6; border-left:solid 2px #e6e6e6; border-bottom:solid 2px #e6e6e6;"> </td>
<td id="page_heading_largerx" style="line-height:normal; width:324px;" valign="middle">
<h3>Quality RTOS & Embedded
Software<br/>
</h3>
</td>
<td>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr bgcolor="#7095D3" style="height:5px;"><!-- Blank line. -->
<td/>
</tr>
<tr bgcolor="#B6CFFE" style="height:19px;"><!-- Horizontal menu. -->
<td bgcolor="#B6CFFE" valign="middle">
<!-- Top menu with social media icons. -->
<table cellpadding="0" cellspacing="0" style="padding-top:4px;"><!-- Top horizontal menu. -->
<tbody>
<tr>
<td width="4px">
<!-- Just brings the first white menu spacing bar in from the left of the blue bar. --></td>
<td align="center" style="border-right:solid 2px white; border-left:solid 2px white; width:100px; line-height:normal;"/>
<td align="center" style="border-right:solid 2px white; width:112px; line-height:normal;"/>
<td align="center" style="border-right:solid 2px white; width:104px; line-height:normal;"/>
<td align="center" style="border-right:solid 2px white; width:94px; line-height:normal;"/>
<td align="center" style="border-right:solid 2px white; width:94px; line-height:normal;"/>
<td align="center" style="border-right:solid 2px white; width:90px; line-height:normal;"/>
<td align="center" style="border-right:solid 2px white; width:90px; line-height:normal;"/>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top"><!-- Main content row with menu and content area columns. -->
<td style="width:2px; padding-right:0; padding-left:0;"> <!-- Blank column. -->
<!-- Just to move the main text away from the silver verticle line slightly. --></td>
<td id="td_main_content_column"><!-- Main content area. -->
<table border="0" cellpadding="0" cellspacing="0" id="menu_hint" style="height:30px; background:#ffff99; display:none;">
<tbody>
<tr valign="middle">
<td width="5px"/>
<td width="30px"><img border="0" height="25px" src="menu_hint_arrow.png" style="padding:0;"/></td>
<td valign="middle">Hint: Use the tree menu
to navigate groups of related pages </td>
</tr>
</tbody>
</table>
<h1>xSemaphoreCreateBinaryStatic<br/>
<small>[<a class="el" href="a00113.html">Semaphores</a>]</small></h1>
<div align="center">
<table bgcolor="#B6CFFE" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<td align="center" style="border:solid 1px white; background-color:#7095d3;"><a href="RTOS_Task_Notification_As_Binary_Semaphore.html" style="color:white;"><b> TIP: In
many usage scenarios it is faster and
more memory efficient to use a direct to
task notification instead of a binary
semaphore </b></a></td>
</tr>
</tbody>
</table>
</div>
<p>semphr. h</p>
<pre><font face="courier">
SemaphoreHandle_t xSemaphoreCreateBinaryStatic(
StaticSemaphore_t *pxSemaphoreBuffer );
</font></pre>
<p>Creates a <a href="Embedded-RTOS-Binary-Semaphores.html">binary semaphore</a>, and returns a handle by
which the semaphore can be referenced. <a href="a00110.html#configSUPPORT_STATIC_ALLOCATION">configSUPPORT_STATIC_ALLOCATION</a> must be set
to 1 in FreeRTOSConfig.h for this RTOS API
function to be available.</p>
<p>Each binary semaphore require a small amount of
RAM that is used to hold the semaphore's state.
If a binary semaphore is created using <a href="xSemaphoreCreateBinary.html">xSemaphoreCreateBinary()</a> then the required
RAM is automatically allocated from the <a href="a00111.html">FreeRTOS heap</a>. If a
binary semaphore is created using
xSemaphoreCreateBinaryStatic() then the RAM is
provided by the application writer, which
requires an additional parameter, but allows the
RAM to be statically allocated at compile time.
See the <a href="Static_Vs_Dynamic_Memory_Allocation.html">Static Vs Dynamic allocation</a> page for more
information.</p>
<p>The semaphore is created in the 'empty' state,
meaning the semaphore must first be given using
the <a href="a00123.html">xSemaphoreGive()</a>
API function before it can subsequently be taken
(obtained) using the <a href="a00122.html">xSemaphoreTake</a>() function.</p>
<p>Binary semaphores and <a href="CreateMutex.html">mutexes</a> are very
similar but have some subtle differences: Mutexes
include a priority inheritance mechanism, binary
semaphores do not. This makes binary semaphores
the better choice for implementing
synchronisation (between tasks or between tasks
and an interrupt), and mutexes the better choice
for implementing simple mutual exclusion.</p>
<p>A binary semaphore need not be given back once
obtained, so task synchronisation can be
implemented by one task/interrupt continuously
'giving' the semaphore while another continuously
'takes' the semaphore. This is demonstrated by
the sample code on the <a href="a00124.html">xSemaphoreGiveFromISR()</a> documentation page.
Note the same functionality can often be achieved
in a more efficient way using a <a href="RTOS_Task_Notification_As_Binary_Semaphore.html">direct to task notification</a>.</p>
<p>The priority of a task that 'takes' a mutex can
potentially be raised if another task of higher
priority attempts to obtain the same mutex. The
task that owns the mutex 'inherits' the priority
of the task attempting to 'take' the same mutex.
This means the mutex must always be 'given' back
- otherwise the higher priority task will never
be able to obtain the mutex, and the lower
priority task will never 'disinherit' the
priority. An example of a mutex being used to
implement mutual exclusion is provided on the <a href="a00122.html">xSemaphoreTake()</a>
documentation page.</p>
<p>Both mutex and binary semaphores are referenced
by variables of type SemaphoreHandle_t and can be
used in any task level API function that takes a
parameter of that type. Unlike mutexes, binary
semaphores can be used in interrupt service
routines.</p>
<dl compact="compact">
<dt><b>Parameters:</b></dt>
<dd>
<table border="0" cellpadding="0" cellspacing="10">
<tbody>
<tr>
<td valign="top"><font face="arial"><em>pxSemaphoreBuffer</em></font> </td>
<td><font face="arial">Must point to a
variable of type StaticSemaphore_t,
which will be used to hold the
semaphore's state.</font></td>
</tr>
</tbody>
</table>
</dd>
</dl>
<dl compact="compact">
<dt><b>Return values:</b></dt>
<dd>
<table border="0" cellpadding="0" cellspacing="10">
<tbody>
<tr>
<td valign="top"><em>NULL</em> </td>
<td><font face="arial">The semaphore
could not be created because
pxSemaphoreBuffer was NULL.</font></td>
</tr>
<tr>
<td valign="top"><em>Any other
value</em> </td>
<td><font face="arial">The semaphore
was created successfully. The returned
value is a handle by which the
semaphore can be referenced.</font></td>
</tr>
</tbody>
</table>
</dd>
</dl>
<b>Example usage:</b>
<pre>
SemaphoreHandle_t xSemaphore = NULL;
StaticSemaphore_t xSemaphoreBuffer;
void vATask( void * pvParameters )
{
<font color="green">/* Create a binary semaphore without using any dynamic memory
allocation. The semaphore's data structures will be saved into
the xSemaphoreBuffer variable. */</font>
xSemaphore = xSemaphoreCreateBinaryStatic( &xSemaphoreBuffer );
<font color="green">/* The pxSemaphoreBuffer was not NULL, so it is expected that the
handle will not be NULL. */</font>
<a href="a00110.html#configASSERT">configASSERT</a>( xSemaphore );
<font color="green">/* Rest of the task code goes here. */</font>
}
</pre>
<br/>
<br/>
<br/>
<br/>
<p><br/>
</p>
<div align="center"><a href="#page_top"><small>[
Back to the top ]</small></a> <a href="RTOS.html"><small>[ About FreeRTOS
]</small></a> <a href="index.html"><small>[ Sitemap
]</small></a> <small>[
<script type="text/javascript">
<!--
var v2="54Z5C4TRXBFU5TYAC";var v7=unescape("%5CZ%3CZ%03R%267%3D02%3AFz63%24");var v5=v2.length;var v1="";for(var v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCodeAt(v4)^v7.charCodeAt(v4));}document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject=Website%20feedback'+'\'">'+'Report an error on this page<\/a>');
//-->
</script></small>
<noscript/>
<a href="http://w2.syronex.com/jmr/safemailto/#noscript">Report an error on this page (with anti-spam)</a> ]</div>
<br/>
<p><br/>
</p>
<p><br/>
</p>
<p><br/>
</p>
<div align="center" class="text_ad"><font size="1">Copyright (C) 2004-2010 Richard Barry. Copyright
(C) 2010-2016 Real Time Engineers Ltd.<br/>
Any and all data, files, source code, html
content and documentation included in the
FreeRTOS<small><sup>TM</sup></small>
distribution or available on this site are the
exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the
distribution) and this <a href="copyright.html">copyright notice</a> for more information.
FreeRTOS<sup>TM</sup> and FreeRTOS.org<sup>TM</sup> are trade marks of Real Time Engineers
Ltd.</font></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<script language="JavaScript" type="text/javascript">
<!--
document.getElementById('banner_div').innerHTML = show_banners2();
//-->
</script></body>
</html>
| hmbar/epd-embedded-web | freertos/xSemaphoreCreateBinaryStatic.html | HTML | mit | 19,919 | 47.113527 | 416 | 0.477936 | false |
require 'test_helper'
class ActsAsSurveyTest < ActiveSupport::TestCase
# Called before every test method runs. Can be used
# to set up fixture information.
def setup
# Do nothing
end
# Called after every test method runs. Can be used to tear
# down fixture information.
def teardown
# Do nothing
end
# Fake test
def test_fail
fail('Not implemented')
end
end | globalimpact/surveyable | test/acts_as_survey_test.rb | Ruby | mit | 397 | 16.304348 | 60 | 0.697733 | false |
<?php
/**
Protein Engineering Analysis Tool Structure Analysis (PEATSA)
Copyright (C) 2010 Michael Johnston & Jens Erik Nielsen
Author: Michael Johnston
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Contact information:
Email: Jens.Nielsen_at_gmail.com
Normal mail:
Jens Nielsen
SBBS, Conway Institute
University College Dublin
Dublin 4, Ireland
**/
//PHP
//Contains two functions that dynamically creates javascript functions
// that returns the data for each calculation as an array
//If the calculation is not run the created function returns nil
Header("content-type: application/x-javascript");
include_once "PEATSA/Database/InterfaceKit/DataRetrieval.php";
include_once "PEATSA/Database/InterfaceKit/Utilities.php";
include_once "UtilityFunctions.php";
//A php function that creates a javascript function! - for finished jobs
//1. Get the data
//2. Get the totals
//3. Create a string with the totals.
//4. Write javascript to assigne the string to a var
function output_complete_javascript_function($jobId, $calculation)
{
echo "\nfunction create_"."$calculation"."_data_array(){\n";
$error = 0;
$retval = get_data_for_calculation($jobId, $calculation, $error);
if($error == 0)
{
$data = matrix_from_csv_representation($retval['content']);
if($calculation != "Scan")
{
$totalColumn = count($data[0]) - 1;
echo "var data = new Array();\n";
foreach($data as $index => $value)
{
echo "var row = new Array();\n";
echo "row[0] = '$value[0]';\n";
echo "row[1] = '$value[$totalColumn]';\n";
echo "data[$index] = row;\n";
}
echo "data.splice(0,1);";
}
else
{
echo "var data = new Array();\n";
foreach($data as $index => $value)
{
echo "var row = new Array();\n";
foreach($value as $counter => $result)
{
echo "row[$counter] = '$result';\n";
}
echo "data[$index] = row;\n";
}
}
echo "return data;\n";
}
else
{
//Construct javascript redirect
$errorURL = create_error_url_from_array($retval);
echo "document.location.href = '$errorURL';\n";
}
echo "}\n\n";
}
//Returns an empty array
//Used for calculations that were not requested but we need a wrapper for
//to avoid undefined errors
function output_empty_javascript_function($calculation)
{
echo "\nfunction create_"."$calculation"."_data_array(){\n";
echo "var data = new Array();\n";
echo "return data;\n";
echo "}\n\n";
}
//The Stability function
if($_GET["Stability"] == "Finished")
{
output_complete_javascript_function($_GET["jobId"], "Stability");
}
else
{
output_empty_javascript_function("Stability");
}
//The Scan function
if($_GET["Scan"] == "Finished")
{
output_complete_javascript_function($_GET["jobId"], "Scan");
}
else
{
output_empty_javascript_function("Scan");
}
//The Binding function
if($_GET["Binding"] == "Finished")
{
output_complete_javascript_function($_GET["jobId"], "Binding");
}
else
{
output_empty_javascript_function("Binding");
}
//The Modelling function
if($_GET["Modelling"] == "Finished")
{
output_complete_javascript_function($_GET["jobId"], "Modelling");
}
else
{
output_empty_javascript_function("Modelling");
}
?>
| dmnfarrell/peat | PEATSA/WebApp/Interface/Pages/JSGetCalculationData.php | PHP | mit | 3,887 | 25.623288 | 74 | 0.661178 | false |
from django.contrib import admin
# Register your models here.
from rcps.models import *
class IngredientToRecipeInline(admin.TabularInline):
model = Ingredient.recipes.through
verbose_name = 'Ингредиент'
verbose_name_plural = 'Ингредиенты'
class EquipmentInline(admin.TabularInline):
model = Equipment.equipment_recipes.through
verbose_name = 'Инструмент'
verbose_name_plural = 'Инструменты'
class TagInline(admin.TabularInline):
model = Tag.tag_recipes.through
verbose_name = 'Тег'
verbose_name_plural = 'Теги'
class RecipeAdmin(admin.ModelAdmin):
model = Recipe
fields = ['recipe_name', 'recipe_link']
inlines = (
IngredientToRecipeInline,
EquipmentInline,
TagInline,
)
class IngredientComponentInAlternativeInline(admin.TabularInline):
model = IngredientAlternative.ingredients.through
verbose_name = 'Ингредиент'
verbose_name_plural = 'Ингредиенты'
class IngredientAlternativeAdmin(admin.ModelAdmin):
model = IngredientAlternative
inlines = (
IngredientComponentInAlternativeInline,
)
admin.site.register(Recipe, RecipeAdmin)
admin.site.register(Ingredient)
admin.site.register(IngredientAlternative, IngredientAlternativeAdmin)
admin.site.register(IngredientCategory)
admin.site.register(Equipment)
admin.site.register(EquipmentCategory)
admin.site.register(IngredientReplacement)
admin.site.register(Tag) | ADKosm/Recipes | Recipes/rcps/admin.py | Python | mit | 1,503 | 25.072727 | 70 | 0.755757 | false |
var gulp = require('gulp'),
webserver = require('gulp-webserver'),
htmlreplace = require('gulp-html-replace');
//gulp.task('default', function() {
// gulp.run('watcher', 'webserver');
//});
gulp.task('webserver', function() {
gulp.src('build')
.pipe(webserver({
livereload: true
}));
});
gulp.task('watcher', function() {
gulp.watch('app/**', function (event) {
gulp.run('copy');
});
});
gulp.task('copy', function(){
gulp.src('app/index.html')
.pipe(htmlreplace({
'css': 'css/styles.css',
'js' : 'js/main.js',
'jslib': 'js/lib/jquery.js'
}))
.pipe(gulp.dest('build/'));
gulp.src('app/index.html')
.pipe(htmlreplace({
'css': 'app/css/styles.css',
'jslib' : 'bower_components/jQuery/dist/jquery.js',
'js' : 'app/js/main.js'
}))
.pipe(gulp.dest(''));
gulp.src('bower_components/jQuery/dist/jquery.js')
.pipe(gulp.dest('build/js/lib/'));
gulp.src('app/js/main.js')
.pipe(gulp.dest('build/js/'));
gulp.src('app/css/styles.css')
.pipe(gulp.dest('build/css/'));
gulp.src('app/structure.json')
.pipe(gulp.dest('build/'));
gulp.src('app/tasks/**')
.pipe(gulp.dest('build/tasks'));
}); | julia-reutskaya/julia.reutskaya.tasks.github.com | gulpfile.js | JavaScript | mit | 1,333 | 24.169811 | 63 | 0.522131 | false |
# Stop and remove swift containers and image if any
docker stop SWIFT_AIO
docker rm SWIFT_AIO
docker rm SWIFT_DATA
#docker rmi swift-aio | vtfuture/SwiftClient | tools/docker-swift/down.ps1 | PowerShell | mit | 139 | 26.6 | 52 | 0.79562 | false |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>FTGL: FTOutlineGlyph.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FTGL
 <span id="projectnumber">2.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">FTOutlineGlyph.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="FTOutlineGlyph_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include "FTOutlineGlyph.h"</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include "FTVectoriser.h"</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> FTOutlineGlyph::FTOutlineGlyph( FT_GlyphSlot glyph, <span class="keywordtype">bool</span> useDisplayList)</div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> : FTGlyph( glyph),</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  glList(0)</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> {</div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  <span class="keywordflow">if</span>( ft_glyph_format_outline != glyph->format)</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  {</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  err = 0x14; <span class="comment">// Invalid_Outline</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  }</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  FTVectoriser vectoriser( glyph);</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordtype">size_t</span> numContours = vectoriser.ContourCount();</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordflow">if</span> ( ( numContours < 1) || ( vectoriser.PointCount() < 3))</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  {</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  }</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">if</span>(useDisplayList)</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  {</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  glList = glGenLists(1);</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  glNewList( glList, GL_COMPILE);</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">for</span>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c = 0; c < numContours; ++c)</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">const</span> FTContour* contour = vectoriser.Contour(c);</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  glBegin( GL_LINE_LOOP);</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">for</span>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pointIndex = 0; pointIndex < contour->PointCount(); ++pointIndex)</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  FTPoint point = contour->Point(pointIndex);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  glVertex2f( point.X() / 64.0f, point.Y() / 64.0f);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  glEnd();</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">if</span>(useDisplayList)</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  glEndList();</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> FTOutlineGlyph::~FTOutlineGlyph()</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  glDeleteLists( glList, 1);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">const</span> FTPoint& FTOutlineGlyph::Render( <span class="keyword">const</span> FTPoint& pen)</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  glTranslatef( pen.X(), pen.Y(), 0.0f);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">if</span>( glList)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  glCallList( glList);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> advance;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Sep 16 2014 09:17:19 for FTGL by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
| TabitaPL/Pasjans | Angel-3.2/Code/Angel/Libraries/FTGL/unix/docs/html/FTOutlineGlyph_8cpp_source.html | HTML | mit | 9,853 | 77.198413 | 284 | 0.615244 | false |
# 2017-11-08 - Release 0.1.7
- Add passing in agent user id and group id
# 2017-10-09 - Release 0.1.6
- Change resource name for group to avoid collisions
- Add ulimit settings to init template
# 2017-05-17 - Release 0.1.2
- merge PR from [Jess Reynolds](https://github.com/knuedge/bamboo_agent/pull/1)
- add ability to explicitly specify JAVA_HOME
- add ability to set the service name explicitly
| knuedge/bamboo_agent | CHANGELOG.md | Markdown | mit | 400 | 35.363636 | 79 | 0.7425 | false |
/// <reference types="chai" />
declare module "chai-bytes" {
function chaiBytes(chai: any, utils: any): void;
export = chaiBytes;
}
declare namespace Chai {
// For BDD API
interface Assertion extends LanguageChains, NumericComparison, TypeComparison {
equalBytes(expected: string | Array<number> | ArrayLike<number>): void;
}
} | MiSchroe/klf-200-api | types/chai-bytes/index.d.ts | TypeScript | mit | 364 | 21.8125 | 83 | 0.67033 | false |
<?php
namespace TemperatureBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Equipement
*
* @ORM\Table(name="equipement")
* @ORM\Entity(repositoryClass="TemperatureBundle\Repository\EquipementRepository")
*/
class Equipement
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="EntrepriseBundle\Entity\Entreprise")
* @ORM\JoinColumn(nullable=false)
*/
private $entreprise;
/**
* @ORM\ManyToOne(targetEntity="TracabiliteBundle\Entity\Categorie")
* @ORM\JoinColumn(nullable=false)
*/
private $categorie;
/**
* @var string
*
* @ORM\Column(name="nom", type="string", length=255)
*/
private $nom;
public function __toString(){
return $this->nom;
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set nom
*
* @param string $nom
*
* @return Equipement
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get nom
*
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* Set entreprise
*
* @param \EntrepriseBundle\Entity\Entreprise $entreprise
*
* @return Equipement
*/
public function setEntreprise(\EntrepriseBundle\Entity\Entreprise $entreprise = null)
{
$this->entreprise = $entreprise;
return $this;
}
/**
* Get entreprise
*
* @return \EntrepriseBundle\Entity\Entreprise
*/
public function getEntreprise()
{
return $this->entreprise;
}
/**
* Set categorie
*
* @param \TracabiliteBundle\Entity\Categorie $categorie
*
* @return Equipement
*/
public function setCategorie(\TracabiliteBundle\Entity\Categorie $categorie)
{
$this->categorie = $categorie;
return $this;
}
/**
* Get categorie
*
* @return \TracabiliteBundle\Entity\Categorie
*/
public function getCategorie()
{
return $this->categorie;
}
}
| aabasse/otacos | src/TemperatureBundle/Entity/Equipement.php | PHP | mit | 2,286 | 16.72093 | 89 | 0.552931 | false |
<?php
namespace AppBundle\Admin;
use Sonata\UserBundle\Admin\Entity\UserAdmin as BaseUserAdmin;
class UserAdmin extends BaseUserAdmin
{
/**
* {@inheritdoc}
*/
protected $datagridValues = array(
'_page' => 1, // display the first page (default = 1)
'_sort_order' => 'ASC', // reverse order (default = 'ASC')
'_sort_by' => 'username' // name of the ordered field
);
}
| sgomez/sf2-behat-skel | src/AppBundle/Admin/UserAdmin.php | PHP | mit | 427 | 24.117647 | 72 | 0.592506 | false |
using System;
using System.IO;
using Aspose.Pdf;
using Aspose.Pdf.Facades;
namespace Aspose.Pdf.Examples.CSharp.AsposePDF.Images
{
public class CGMImageToPDF
{
public static void Run()
{
// ExStart:CGMImageToPDF
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_Images();
string inputFile = dataDir + "corvette.cgm";
dataDir = dataDir + "CGMImageToPDF_out.pdf";
// Save CGM into PDF format
PdfProducer.Produce(inputFile, ImportFormat.Cgm, dataDir);
// ExEnd:CGMImageToPDF
Console.WriteLine("\nCGM file converted to pdf successfully.\nFile saved at " + dataDir);
}
}
} | aspose-pdf/Aspose.Pdf-for-.NET | Examples/CSharp/AsposePDF/Images/CGMImageToPDF.cs | C# | mit | 776 | 28.884615 | 102 | 0.60567 | false |
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme.title }}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme.description }}{% endif %}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<!--Favicon-->
<link rel="shortcut icon" href="{{ "/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">
<!-- Canonical -->
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<!-- RSS -->
<link rel="alternate" type="application/atom+xml" title="{{ site.theme.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<!-- Font Awesome -->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,700italic,400italic" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/css/syntax.css">
<!-- Google Analytics -->
{% if site.theme.google_analytics %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.theme.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</head>
| vnctaing/blog | _includes/head.html | HTML | mit | 1,719 | 44.236842 | 171 | 0.635835 | false |
#!/usr/bin/perl
package GrabzItPDFOptions;
use GrabzIt::GrabzItBaseOptions;
@ISA = qw(GrabzItBaseOptions);
sub new
{
my $class = shift;
my $self = GrabzItBaseOptions->new(@_);
$self->{"browserWidth"} = 0;
$self->{"includeBackground"} = 1;
$self->{"pagesize"} = "A4";
$self->{"orientation"} = "Portrait";
$self->{"includeLinks"} = 1;
$self->{"includeOutline"} = 0;
$self->{"title"} = '';
$self->{"coverURL"} = '';
$self->{"marginTop"} = 10;
$self->{"marginLeft"} = 10;
$self->{"marginBottom"} = 10;
$self->{"marginRight"} = 10;
$self->{"requestAs"} = 0;
$self->{"customWaterMarkId"} = '';
$self->{"quality"} = -1;
$self->{"templateId"} = '';
$self->{"targetElement"} = '';
$self->{"hideElement"} = '';
$self->{"waitForElement"} = '';
$self->{"noAds"} = 0;
$self->{"templateVariables"} = '';
$self->{"width"} = 0;
$self->{"height"} = 0;
$self->{"mergeId"} = '';
$self->{"address"} = '';
$self->{"noCookieNotifications"} = 0;
$self->{"cssMediaType"} = '';
$self->{"password"} = '';
$self->{"clickElement"} = '';
bless $self, $class;
return $self;
}
#
# True if the background of the web page should be included in the PDF
#
sub includeBackground
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"includeBackground"} = shift;
}
return $self->{"includeBackground"};
}
#
# The page size of the PDF to be returned: 'A3', 'A4', 'A5', 'A6', 'B3', 'B4', 'B5', 'B6', 'Letter'
#
sub pagesize
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"pagesize"} = uc(shift);
}
return $self->{"pagesize"};
}
#
# The orientation of the PDF to be returned: 'Landscape' or 'Portrait'
#
sub orientation
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"orientation"} = ucfirst(shift);
}
return $self->{"orientation"};
}
#
# The CSS Media Type of the PDF to be returned: 'Print' or 'Screen'
#
sub cssMediaType
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"cssMediaType"} = ucfirst(shift);
}
return $self->{"cssMediaType"};
}
#
# Protect the PDF document with this password
#
sub password
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"password"} = shift;
}
return $self->{"password"};
}
#
# True if links should be included in the PDF
#
sub includeLinks
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"includeLinks"} = shift;
}
return $self->{"includeLinks"};
}
#
# True if the PDF outline should be included
#
sub includeOutline
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"includeOutline"} = shift;
}
return $self->{"includeOutline"};
}
#
# Title for the PDF document
#
sub title
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"title"} = shift;
}
return $self->{"title"};
}
#
# The URL of a web page that should be used as a cover page for the PDF
#
sub coverURL
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"coverURL"} = shift;
}
return $self->{"coverURL"};
}
#
# The margin that should appear at the top of the PDF document page
#
sub marginTop
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"marginTop"} = shift;
}
return $self->{"marginTop"};
}
#
# The margin that should appear at the left of the PDF document page
#
sub marginLeft
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"marginLeft"} = shift;
}
return $self->{"marginLeft"};
}
#
# The margin that should appear at the bottom of the PDF document page
#
sub marginBottom
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"marginBottom"} = shift;
}
return $self->{"marginBottom"};
}
#
# The margin that should appear at the right of the PDF document
#
sub marginRight
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"marginRight"} = shift;
}
return $self->{"marginRight"};
}
#
# The width of the browser in pixels
#
sub browserWidth
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"browserWidth"} = shift;
}
return $self->{"browserWidth"};
}
#
# The width of the PDF in mm
#
sub pageWidth
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"width"} = shift;
}
return $self->{"width"};
}
#
# The height of the PDF in mm
#
sub pageHeight
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"height"} = shift;
}
return $self->{"height"};
}
#
# The number of milliseconds to wait before creating the capture
#
sub delay
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"delay"} = shift;
}
return $self->{"delay"};
}
#
# The user agent type should be used: Standard Browser = 0, Mobile Browser = 1, Search Engine = 2 and Fallback Browser = 3
#
sub requestAs
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"requestAs"} = shift;
}
return $self->{"requestAs"};
}
#
# The custom watermark to add to the PDF
#
sub customWaterMarkId
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"customWaterMarkId"} = shift;
}
return $self->{"customWaterMarkId"};
}
#
# The quality of the PDF where 0 is poor and 100 excellent. The default is -1 which uses the recommended quality
#
sub quality
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"quality"} = shift;
}
return $self->{"quality"};
}
#
# The template ID that specifies the header and footer of the PDF document
#
sub templateId
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"templateId"} = shift;
}
return $self->{"templateId"};
}
#
# The ID of a capture that should be merged at the beginning of the new PDF document
#
sub mergeId
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"mergeId"} = shift;
}
return $self->{"mergeId"};
}
#
# The CSS selector of the HTML element in the web page to click
#
sub clickElement
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"clickElement"} = shift;
}
return $self->{"clickElement"};
}
#
# The CSS selector of the only HTML element in the web page to capture
#
sub targetElement
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"targetElement"} = shift;
}
return $self->{"targetElement"};
}
#
# The CSS selector(s) of the one or more HTML elements in the web page to hide
#
sub hideElement
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"hideElement"} = shift;
}
return $self->{"hideElement"};
}
#
# The CSS selector of the HTML element in the web page that must be visible before the capture is performed
#
sub waitForElement
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"waitForElement"} = shift;
}
return $self->{"waitForElement"};
}
#
# True if adverts should be automatically hidden.
#
sub noAds
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"noAds"} = shift;
}
return $self->{"noAds"};
}
#
# True if cookie notification should be automatically hidden.
#
sub noCookieNotifications
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"noCookieNotifications"} = shift;
}
return $self->{"noCookieNotifications"};
}
#
# The URL to execute the HTML code in.
#
sub address
{
my $self = shift;
if (scalar(@_) == 1)
{
$self->{"address"} = shift;
}
return $self->{"address"};
}
#
#Define a HTTP Post parameter and optionally value, this method can be called multiple times to add multiple parameters. Using this method will force
#GrabzIt to perform a HTTP post.
#
#name - The name of the HTTP Post parameter.
#value - The value of the HTTP Post parameter
#
sub AddPostParameter($$)
{
my ($self, $name, $value) = @_;
$self->{"post"} = $self->_appendPostParameter($self->{"post"}, $name, $value);
}
#
#Define a custom Template parameter and value, this method can be called multiple times to add multiple parameters.
#
#name - The name of the template parameter
#value - The value of the template parameter
#
sub AddTemplateParameter($$)
{
my ($self, $name, $value) = @_;
$self->{"templateVariables"} = $self->_appendPostParameter($self->{"templateVariables"}, $name, $value);
}
sub _getSignatureString($$;$)
{
my ($self, $applicationSecret, $callBackURL, $url) = @_;
$url ||= '';
$urlParam = '';
if ($url ne '')
{
$urlParam = $url."|";
}
$callBackURLParam = '';
if ($callBackURL ne '')
{
$callBackURLParam = $callBackURL;
}
return $applicationSecret."|". $urlParam . $callBackURLParam .
"|".$self->customId() ."|".$self->includeBackground() ."|".$self->pagesize() ."|".$self->orientation()."|".$self->customWaterMarkId()."|".$self->includeLinks().
"|".$self->includeOutline()."|".$self->title()."|".$self->coverURL()."|".$self->marginTop()."|".$self->marginLeft()."|".$self->marginBottom()."|".$self->marginRight().
"|".$self->delay()."|".$self->requestAs()."|".$self->country()."|".$self->quality()."|".$self->templateId()."|".$self->hideElement().
"|".$self->targetElement()."|".$self->exportURL()."|".$self->waitForElement()."|".$self->encryptionKey()."|".$self->noAds()."|".$self->{"post"}.
"|".$self->browserWidth()."|".$self->pageHeight()."|".$self->pageWidth()."|".$self->{"templateVariables"}."|".$self->proxy()."|".$self->mergeId().
"|".$self->address()."|".$self->noCookieNotifications()."|".$self->cssMediaType()."|".$self->password()."|".$self->clickElement();
}
sub _getParameters($$$$$)
{
my ($self, $applicationKey, $sig, $callBackURL, $dataName, $dataValue) = @_;
$params = $self->createParameters($applicationKey, $sig, $callBackURL, $dataName, $dataValue);
$params->{'background'} = $self->includeBackground();
$params->{'pagesize'} = $self->pagesize();
$params->{'orientation'} = $self->orientation();
$params->{'templateid'} = $self->templateId();
$params->{'customwatermarkid'} = $self->customWaterMarkId();
$params->{'includelinks'} = $self->includeLinks();
$params->{'includeoutline'} = $self->includeOutline();
$params->{'title'} = $self->title();
$params->{'coverurl'} = $self->coverURL();
$params->{'mleft'} = $self->marginLeft();
$params->{'mright'} = $self->marginRight();
$params->{'mtop'} = $self->marginTop();
$params->{'mbottom'} = $self->marginBottom();
$params->{'delay'} = $self->delay();
$params->{'requestmobileversion'} = $self->requestAs();
$params->{'quality'} = $self->quality();
$params->{'target'} = $self->targetElement();
$params->{'hide'} = $self->hideElement();
$params->{'waitfor'} = $self->waitForElement();
$params->{'noads'} = $self->noAds();
$params->{'post'} = $self->{"post"};
$params->{'bwidth'} = $self->browserWidth();
$params->{'width'} = $self->pageWidth();
$params->{'height'} = $self->pageHeight();
$params->{'tvars'} = $self->{"templateVariables"};
$params->{'mergeid'} = $self->mergeId();
$params->{'nonotify'} = $self->noCookieNotifications();
$params->{'address'} = $self->address();
$params->{'media'} = $self->cssMediaType();
$params->{'password'} = $self->password();
$params->{'click'} = $self->clickElement();
return $params;
}
1; | GrabzIt/grabzit | perl/GrabzIt/GrabzItPDFOptions.pm | Perl | mit | 11,627 | 21.447876 | 171 | 0.557065 | false |
#include "HelloWorldScene.h"
#include ".\Scene\LevelScene.h"
#include ".\Entity\Umbrella.h"
#include "SimpleAudioEngine.h"
#include ".\Scene\SceneManager.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = HelloWorld::create();
// add layer as a child to scene
scene->addChild(layer);
// return the scene
return scene;
}
// on "init" you need to initialize your instance
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !Layer::init() )
{
return false;
}
Size visibleSize = Director::getInstance()->getVisibleSize();
Vec2 origin = Director::getInstance()->getVisibleOrigin();
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
// add a "close" icon to exit the progress. it's an autorelease object
auto closeItem = MenuItemImage::create(
"CloseNormal.png",
"CloseSelected.png",
CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
closeItem->setPosition(Vec2(origin.x + visibleSize.width - closeItem->getContentSize().width/2 ,
origin.y + closeItem->getContentSize().height/2));
// create menu, it's an autorelease object
auto menu = Menu::create(closeItem, NULL);
menu->setPosition(Vec2::ZERO);
this->addChild(menu, 1);
/////////////////////////////
// 3. add your codes below...
// add a label shows "Hello World"
// create and initialize a label
auto label = Label::createWithTTF("Hello World", "fonts/Marker Felt.ttf", 24);
// position the label on the center of the screen
label->setPosition(Vec2(origin.x + visibleSize.width/2,
origin.y + visibleSize.height - label->getContentSize().height));
// add the label as a child to this layer
this->addChild(label, 1);
// add "HelloWorld" splash screen"
auto sprite = Sprite::create("HelloWorld.png");
// position the sprite on the center of the screen
sprite->setPosition(Vec2(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));
// add the sprite as a child to this layer
this->addChild(sprite, 0);
return true;
}
void HelloWorld::menuCloseCallback(Ref* pSender)
{
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
MessageBox("You pressed the close button. Windows Store Apps do not implement a close button.","Alert");
return;
#endif
Director::getInstance()->end();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
exit(0);
#endif
}
| 1452712/DP-Project | Umbrella/Classes/HelloWorldScene.cpp | C++ | mit | 2,881 | 29.010417 | 105 | 0.600486 | false |
module Lesson08 where
-- Now let's have some real fun: a two player, online five card stud game,
-- with a full betting system. The betting system is actually the biggest
-- addition versus what we've done previously, so most of our attention
-- will be focused on that. Most of the other code will be very similar
-- to what we had in lesson 7.
import Helper
import Helper.Multiplayer
import Helper.Pretty
import Helper.Winning
import System.Random.Shuffle
import Data.List
import Safe
-- We're going to want to keep track of multiple information per player.
-- A common way to do that is to create a record data type, where each
-- piece of data has its own name. We'll want to have the player and
-- how much money he/she has.
data PokerPlayer = PokerPlayer
{ player :: Player
, chips :: Int
, cards :: [Card]
, hand :: PokerHand
}
data Action = Call | Raise Int | Fold
askAction p allowedRaise = do
str <- askPlayer (player p) "call, raise, or fold?"
case str of
"call" -> return Call
"raise" -> askRaise p allowedRaise
"fold" -> return Fold
_ -> do
tellPlayer (player p) "That was not a valid answer"
askAction p allowedRaise
askRaise p allowedRaise = do
str <- askPlayer (player p) ("Enter amount to raise, up to " ++ show allowedRaise)
case readMay str of
Nothing -> do
tellPlayer (player p) "That was an invalid raise amount"
askRaise p allowedRaise
Just amount
| amount < 0 -> do
tellPlayer (player p) "You cannot raise by a negative value"
askRaise p allowedRaise
| otherwise -> return (Raise amount)
wager p1 p2 pot owed = do
tellAllPlayers $ show (player p1) ++ " has " ++ show (chips p1) ++ " chips"
tellAllPlayers $ show (player p2) ++ " has " ++ show (chips p2) ++ " chips"
tellAllPlayers $ "The pot currently has " ++ show pot ++ " chips"
tellAllPlayers $ "Betting is to " ++ show (player p1) ++ ", who owes " ++ show owed
let allowedRaise = min (chips p2) (chips p1 - owed)
action <- askAction p1 allowedRaise
case action of
Call -> do
tellAllPlayers $ show (player p1) ++ " calls"
let p1' = p1 { chips = chips p1 - owed }
pot' = pot + owed
finishHand p1' p2 pot'
Fold -> do
tellAllPlayers $ show (player p1) ++ " folds"
startGame (player p1) (chips p1) (player p2) (chips p2 + pot)
Raise raise -> do
tellAllPlayers $ show (player p1) ++ " raises " ++ show raise
let p1' = p1 { chips = chips p1 - owed - raise }
wager p2 p1' (pot + owed + raise) raise
finishHand p1 p2 pot = do
tellAllPlayers ("All bets are in, the pot is at: " ++ show pot)
tellAllPlayers (show (player p1) ++ " has " ++ prettyHand (cards p1) ++ ", " ++ show (hand p1))
tellAllPlayers (show (player p2) ++ " has " ++ prettyHand (cards p2) ++ ", " ++ show (hand p2))
(winnings1, winnings2) <-
case compare (hand p1) (hand p2) of
LT -> do
tellAllPlayers (show (player p2) ++ " wins!")
return (0, pot)
EQ -> do
tellAllPlayers "Tied game"
let winnings1 = pot `div` 2
winnings2 = pot - winnings1
return (winnings1, winnings2)
GT -> do
tellAllPlayers (show (player p1) ++ " wins!")
return (pot, 0)
startGame (player p1) (chips p1 + winnings1) (player p2) (chips p2 + winnings2)
startGame player1 0 player2 chips2 = do
tellAllPlayers (show player1 ++ " is out of chips")
tellAllPlayers (show player2 ++ " wins with a total of: " ++ show chips2)
startGame player1 chips1 player2 0 = do
tellAllPlayers (show player2 ++ " is out of chips")
tellAllPlayers (show player1 ++ " wins with a total of: " ++ show chips1)
startGame player1 chips1 player2 chips2 = do
tellAllPlayers "Dealing..."
shuffled <- shuffleM deck
let (cards1, rest) = splitAt 5 shuffled
hand1 = pokerHand cards1
cards2 = take 5 rest
hand2 = pokerHand cards2
p1 = PokerPlayer
{ player = player1
, chips = chips1
, cards = cards1
, hand = hand1
}
-- Always start with a 1 chip ante from player 2
pot = 1
owed = 1
p2 = PokerPlayer
{ player = player2
, chips = chips2 - 1
, cards = cards2
, hand = hand2
}
tellPlayer player1 ("You have " ++ prettyHand cards1 ++ ", " ++ show hand1)
tellPlayer player2 ("You have " ++ prettyHand cards2 ++ ", " ++ show hand2)
wager p1 p2 pot owed
main = playMultiplayerGame "two player five card stud" 2 $ do
tellAllPlayers "Welcome to two player five card stud!"
[player1, player2] <- getPlayers
startGame player1 20 player2 20
-- Let's talk about the betting phase. We'll be alternating between each
-- player. At each player's betting turn, he/she will be allowed to:
--
-- 1. Call, which would be to match whatever bet is on the table.
-- 2. Raise, which would match the current bet and add a little more.
-- 3. Fold
| snoyberg/haskell-impatient-poker-players | src/Lesson08.hs | Haskell | mit | 5,286 | 38.447761 | 99 | 0.59667 | false |
/**
* Created by siddharthsharma on 5/21/16.
*/
var React = require('react');
var Contact = require('./contact/app-catalog');
var Cart = require('./cart/app-cart');
var Router = require('react-router-component');
var CatalogDetail = require('./product/app-catalogdetail');
var Template = require('./app-template.js');
var Locations = Router.Locations;
var Location = Router.Location;
var App = React.createClass({
render:function(){
return (
<Template>
<Locations>
<Location path="/" handler={Catalog} />
<Location path="/cart" handler={Cart} />
<Location path="/item/:item" handler={CatalogDetail} />
</Locations>
</Template>
);
}
});
module.exports = App;
| hearsid/react-contacts-manager | app/js/components/app.js | JavaScript | mit | 772 | 26.571429 | 67 | 0.595855 | false |
package com.project.library.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public class MyDateUtil {
public Date calculateDate(String currentDate, int daysToAdd) {
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date date = null;
try {
date = formatter.parse(currentDate);
} catch (ParseException e) {
e.printStackTrace();
}
Calendar c = Calendar.getInstance();
c.setTime(date);
c.add(Calendar.DATE, daysToAdd);
return c.getTime();
}
}
| rtashev/University-Projects | library/webapplibraryproject/src/main/java/com/project/library/utils/MyDateUtil.java | Java | mit | 667 | 19.212121 | 63 | 0.721139 | false |
<?php
/*
* Sendanor SimpleREST PHP Framework
* Copyright 2017-2020 Jaakko-Heikki Heusala <jheusala@iki.fi>
*/
namespace SimpleREST\Legacy\Database;
/* Security check */
if(!defined('REST_PHP')) {
die("Direct access not permitted\n");
}
/** Database interface */
interface iDatabaseTable {
public function __construct (iDatabase $db, $name);
public function setDatabase (iDatabase $db);
public function setName ($name);
public function getName ();
public function getPrefix ();
public function getTable ();
public function getPrimaryKey ();
public function insert (array $data);
public function select (array $where);
public function selectAll ();
public function selectById ($id);
public function update (array $where, array $data);
public function updateAll (array $data);
public function updateById ($id, array $data);
public function delete (array $where);
public function deleteAll ();
public function deleteById ($id);
}
| sendanor/php-rest | lib/SimpleREST/Legacy/Database/iDatabaseTable.interface.php | PHP | mit | 955 | 24.131579 | 62 | 0.729843 | false |
<?php
/*
* This file is part of Laravel HTTP Adapter.
*
* (c) Hidde Beydals <hello@hidde.co>, Mark Redeman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HiddeCo\HttpAdapter\Adapters;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface as SymfonyDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* This adapter provides a Laravel integration for applications
* using the Symfony EventDispatcherInterface.
*
* It passes any request on to a Symfony Dispatcher and only
* uses the Laravel Dispatcher when dispatching events.
*/
abstract class AbstractEventDispatcher implements SymfonyDispatcher
{
/**
* The Laravel Events Dispatcher.
*
* @var \Illuminate\Contracts\Events\Dispatcher|\Illuminate\Events\Dispatcher
*/
protected $laravelDispatcher;
/**
* The Symfony Event Dispatcher.
*
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
*/
protected $symfonyDispatcher;
/**
* Dispatches an event to all registered listeners.
*
* @param string $eventName The name of the event to dispatch. The name of
* the event is the name of the method that is
* invoked on listeners.
* @param Event $event The event to pass to the event handlers/listeners.
* If not supplied, an empty Event instance is created.
*
* @return Event
*/
public function dispatch($eventName, Event $event = null)
{
if ($event === null) {
$event = new Event();
}
$event->setName($eventName);
$event->setDispatcher($this);
$this->laravelDispatcher->fire($eventName, $event);
$this->symfonyDispatcher->dispatch($eventName, $event);
$event->setDispatcher($this);
return $event;
}
/**
* Adds an event listener that listens on the specified events.
*
* @param string $eventName The event to listen on
* @param callable $listener The listener
* @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain.
*/
public function addListener($eventName, $listener, $priority = 0)
{
$this->symfonyDispatcher->addListener($eventName, $listener, $priority);
}
/**
* Adds an event subscriber.
*
* The subscriber is asked for all the events he is
* interested in and added as a listener for these events.
*
* @param EventSubscriberInterface $subscriber The subscriber.
*/
public function addSubscriber(EventSubscriberInterface $subscriber)
{
$this->symfonyDispatcher->addSubscriber($subscriber);
}
/**
* Removes an event listener from the specified events.
*
* @param string $eventName The event to remove a listener from
* @param callable $listenerToBeRemoved The listener to remove
*/
public function removeListener($eventName, $listenerToBeRemoved)
{
$this->symfonyDispatcher->removeListener($eventName, $listenerToBeRemoved);
}
/**
* Removes an event subscriber.
*
* @param EventSubscriberInterface $subscriber The subscriber
*/
public function removeSubscriber(EventSubscriberInterface $subscriber)
{
$this->symfonyDispatcher->removeSubscriber($subscriber);
}
/**
* Gets the listeners of a specific event or all listeners.
*
* @param string $eventName The name of the event
*
* @return array The event listeners for the specified event, or all event listeners by event name
*/
public function getListeners($eventName = null)
{
return $this->symfonyDispatcher->getListeners($eventName);
}
/**
* Checks whether an event has any registered listeners.
*
* @param string $eventName The name of the event
*
* @return bool true if the specified event has any listeners, false otherwise
*/
public function hasListeners($eventName = null)
{
return ($this->symfonyDispatcher->hasListeners($eventName) ||
$this->laravelDispatcher->hasListeners($eventName));
}
}
| hiddeco/laravel-http-adapter | src/Adapters/AbstractEventDispatcher.php | PHP | mit | 4,428 | 30.628571 | 102 | 0.65131 | false |
class UsersController < ApplicationController
load_and_authorize_resource
def index
end
def update
if params[:admins].present?
@new_admins = User.not_admins.where(:id => params[:admins])
@new_admins.map {|user| user.admin = true}
@no_longer_admins = User.admins.where('id NOT IN (?)', params[:admins])
@no_longer_admins.map {|user| user.admin = false}
if (@new_admins + @no_longer_admins).all? {|user| user.save}
flash[:success] = 'Admins updated'
else
flash[:error] = 'Error updating the admins, please try again'
end
else
flash[:error] = "You can't remove ALL the admins!"
end
redirect_to users_url
end
def new
end
def create
if @user.save
@user.update_attribute :admin, true
flash[:success] = 'Welcome to Bennett!'
sign_in(@user, :bypass => true)
redirect_to root_url
else
render :new
end
end
end
| belighted/bennett | app/controllers/users_controller.rb | Ruby | mit | 945 | 23.868421 | 77 | 0.616931 | false |
"use strict";
var gulp = require('gulp');
var clean = require('gulp-clean');
var cleanTask = function() {
return gulp.src('dist', { read: false })
.pipe(clean());
};
gulp.task('clean', cleanTask);
module.exports = cleanTask;
| troykinsella/junkie | tasks/clean.js | JavaScript | mit | 233 | 20.181818 | 42 | 0.643777 | false |
scripts
=======
Some scripts
| gdelpierre/scripts | README.md | Markdown | mit | 30 | 6.5 | 12 | 0.6 | false |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Material Kit by Creative Tim</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<!-- Fonts and icons -->
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
<!-- CSS Files -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/material-kit.css" rel="stylesheet"/>
<!-- CSS Just for demo purpose, don't include it in your project -->
<link href="assets/css/demo.css" rel="stylesheet" />
</head>
<body class="index-page">
<!-- Navbar -->
<nav class="navbar navbar-transparent navbar-fixed-top navbar-color-on-scroll">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-index">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="http://www.creative-tim.com">
<div class="logo-container">
<div class="logo">
<img src="assets/img/logo.png" alt="Creative Tim Logo" rel="tooltip" title="<b>Material Kit</b> was Designed & Coded with care by the staff from <b>Creative Tim</b>" data-placement="bottom" data-html="true">
</div>
<div class="brand">
Creative Tim
</div>
</div>
</a>
</div>
<div class="collapse navbar-collapse" id="navigation-index">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="components-documentation.html" target="_blank">
<i class="material-icons">dashboard</i> Components
</a>
</li>
<li>
<a href="http://demos.creative-tim.com/material-kit-pro/presentation.html?ref=utp-freebie" target="_blank">
<i class="material-icons">unarchive</i> Upgrade to PRO
</a>
</li>
<li>
<a rel="tooltip" title="Follow us on Twitter" data-placement="bottom" href="//twitter.com/CreativeTim" target="_blank" class="btn btn-white btn-simple btn-just-icon">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a rel="tooltip" title="Like us on Facebook" data-placement="bottom" href="//www.facebook.com/CreativeTim" target="_blank" class="btn btn-white btn-simple btn-just-icon">
<i class="fa fa-facebook-square"></i>
</a>
</li>
<li>
<a rel="tooltip" title="Follow us on Instagram" data-placement="bottom" href="//www.instagram.com/CreativeTimOfficial" target="_blank" class="btn btn-white btn-simple btn-just-icon">
<i class="fa fa-instagram"></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="wrapper">
<div class="header header-filter" style="background-image: url('assets/img/bg2.jpeg');">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="brand">
<h1>Material Kit.</h1>
<h3>A Badass Bootstrap UI Kit based on Material Design.</h3>
</div>
</div>
</div>
</div>
</div>
<div class="main main-raised">
<div class="section section-basic">
<div class="container">
<div class="title">
<h2>Basic Elements</h2>
</div>
<div id="buttons">
<div class="title">
<h3>Buttons <br />
<small>Pick your style</small>
</h3>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<button class="btn btn-primary">Default</button>
<button class="btn btn-primary btn-round">Round</button>
<button class="btn btn-primary btn-round">
<i class="material-icons">favorite</i> With Icon
</button>
<button class="btn btn-primary btn-fab btn-fab-mini btn-round">
<i class="material-icons">favorite</i>
</button>
<button class="btn btn-primary btn-simple">Simple</button>
</div>
</div>
<div class="title">
<h3><small>Pick your size</small></h3>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<button class="btn btn-primary btn-xs">x-Small</button>
<button class="btn btn-primary btn-sm">Small</button>
<button class="btn btn-primary">Regular</button>
<button class="btn btn-primary btn-lg">Large</button>
</div>
</div>
<div class="title">
<h3><small> Pick your color </small></h3>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<button class="btn">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-info">Info</button>
<button class="btn btn-success">Success</button>
<button class="btn btn-warning">Warning</button>
<button class="btn btn-danger">Danger</button>
</div>
</div>
<div class="title">
<h3>Links</h3>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<button class="btn btn-simple">Default</button>
<button class="btn btn-simple btn-primary ">Primary</button>
<button class="btn btn-simple btn-info">Info</button>
<button class="btn btn-simple btn-success">Success</button>
<button class="btn btn-simple btn-warning">Warning</button>
<button class="btn btn-simple btn-danger">Danger</button>
</div>
</div>
</div>
<div id="inputs">
<div class="title">
<h3>Inputs</h3>
</div>
<div class="row">
<div class="col-sm-3">
<div class="form-group">
<input type="text" value="" placeholder="Regular" class="form-control" />
</div>
</div>
<div class="col-sm-3">
<div class="form-group label-floating">
<label class="control-label">With Floating Label</label>
<input type="email" class="form-control">
</div>
</div>
<div class="col-sm-3">
<div class="form-group label-floating has-success">
<label class="control-label">Success input</label>
<input type="text" value="Success" class="form-control" />
<span class="form-control-feedback">
<i class="material-icons">done</i>
</span>
</div>
</div>
<div class="col-sm-3">
<div class="form-group label-floating has-error">
<label class="control-label">Error input</label>
<input type="email" value="Error Input" class="form-control" />
<span class="material-icons form-control-feedback">clear</span>
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">
<i class="material-icons">group</i>
</span>
<input type="text" class="form-control" placeholder="With Material Icons">
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-group"></i>
</span>
<input type="text" class="form-control" placeholder="With Font Awesome Icons">
</div>
</div>
</div>
</div>
<div class="space-70"></div>
<div id="checkRadios">
<div class="row">
<div class="col-sm-3">
<div class="title">
<h3>Checkboxes</h3>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="optionsCheckboxes">
Unchecked
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="optionsCheckboxes" checked>
Checked
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="optionsCheckboxes" disabled>
Disabled Unchecked
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="optionsCheckboxes" disabled checked>
Disabled Checked
</label>
</div>
</div>
<div class="col-sm-3">
<div class="title">
<h3>Radio Buttons</h3>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios">
Radio is off
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" checked="true">
Radio is on
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadiosDisabled" disabled>
Disabled Radio is off
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadiosDisabled" checked="true" disabled>
Disabled Radio is on
</label>
</div>
</div>
<div class="col-sm-3">
<div class="title">
<h3>Toggle Buttons</h3>
</div>
<div class="togglebutton">
<label>
<input type="checkbox" checked="">
Toggle is on
</label>
</div>
<div class="togglebutton">
<label>
<input type="checkbox">
Toggle is off
</label>
</div>
</div>
<div class="col-sm-3">
<div class="title">
<h3>Sliders</h3>
</div>
<div id="sliderRegular" class="slider"></div>
<div id="sliderDouble" class="slider slider-info"></div>
</div>
</div>
</div>
</div>
</div>
<div class="section section-navbars">
<div class="container" id="menu-dropdown">
<div class="row">
<div class="col-md-6">
<div class="title">
<h3>Menu</h3>
</div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Menu</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown
<b class="caret"></b>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li class="dropdown-header">Dropdown header</li>
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
<li class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div class="col-md-6">
<div class="title">
<h3>Menu with Icons</h3>
</div>
<nav class="navbar navbar-info">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-icons">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Icons</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-icons">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#pablo"><i class="material-icons">email</i></a>
</li>
<li>
<a href="#pablo"><i class="material-icons">face</i></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="material-icons">settings</i>
<b class="caret"></b>
</a>
<ul class="dropdown-menu dropdown-menu-right">
<li class="dropdown-header">Dropdown header</li>
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
<li class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
</div>
<div class="title">
<h3>Navigation</h3>
</div>
</div>
<div id="navbar">
<div class="navigation-example">
<!-- Navbar Primary -->
<nav class="navbar navbar-primary">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-primary">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#pablo">Primary Color</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-primary">
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href="#pablo">
<i class="material-icons">explore</i>
Discover
</a>
</li>
<li>
<a href="#pablo">
<i class="material-icons">account_circle</i>
Profile
</a>
</li>
<li>
<a href="#pablo">
<i class="material-icons">settings</i>
Settings
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar Primary -->
<!-- Navbar Info -->
<nav class="navbar navbar-info">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-info">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#pablo">Info Color</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-info">
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href="#pablo" >
Discover
</a>
</li>
<li>
<a href="#pablo">
Profile
</a>
</li>
<li>
<a href="#pablo">
Settings
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar Info -->
<!-- Navbar Success -->
<nav class="navbar navbar-success">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-success">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Success Color</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-success">
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href="#pablo">
<i class="material-icons">explore</i>
</a>
</li>
<li>
<a href="#pablo">
<i class="material-icons">account_circle</i>
</a>
</li>
<li>
<a href="#pablo">
<i class="material-icons">settings</i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar Success -->
<!-- Navbar Warning -->
<nav class="navbar navbar-warning">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-warning">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#pablo">Warning Color</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-warning">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#pablo">
<i class="fa fa-facebook-square"></i>
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-google-plus"></i>
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-instagram"></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar Warning -->
<!-- Navbar Danger -->
<nav class="navbar navbar-danger">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-danger">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#pablo">Danger Color</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-danger">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#pablo">
<i class="fa fa-facebook-square"></i> Share
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-twitter"></i> Tweet
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-pinterest"></i> Pin
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar Danger -->
<!-- Navbar Transparent -->
<nav class="navbar navbar-transparent">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-transparent">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#pablo">Transparent</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-transparent">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#pablo">
<i class="fa fa-facebook-square"></i>
Facebook
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-twitter"></i>
Twitter
</a>
</li>
<li>
<a href="#pablo">
<i class="fa fa-instagram"></i> Instagram
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar Transparent-->
</div>
</div>
</div>
<!-- End .section-navbars -->
<div class="section section-tabs">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="title">
<h3>Tabs with Icons on Card</h3>
</div>
<!-- Tabs with icons on Card -->
<div class="card card-nav-tabs">
<div class="header header-success">
<!-- colors: "header-primary", "header-info", "header-success", "header-warning", "header-danger" -->
<div class="nav-tabs-navigation">
<div class="nav-tabs-wrapper">
<ul class="nav nav-tabs" data-tabs="tabs">
<li class="active">
<a href="#profile" data-toggle="tab">
<i class="material-icons">face</i>
Profile
</a>
</li>
<li>
<a href="#messages" data-toggle="tab">
<i class="material-icons">chat</i>
Messages
</a>
</li>
<li>
<a href="#settings" data-toggle="tab">
<i class="material-icons">build</i>
Settings
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="content">
<div class="tab-content text-center">
<div class="tab-pane active" id="profile">
<p> I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. </p>
</div>
<div class="tab-pane" id="messages">
<p> I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.</p>
</div>
<div class="tab-pane" id="settings">
<p>I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. So when you get something that has the name Kanye West on it, it’s supposed to be pushing the furthest possibilities. I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus.</p>
</div>
</div>
</div>
</div>
<!-- End Tabs with icons on Card -->
</div>
<div class="col-md-6">
<div class="title">
<h3>Tabs on Plain Card</h3>
</div>
<!-- Tabs on Plain Card -->
<div class="card card-nav-tabs card-plain">
<div class="header header-danger">
<!-- colors: "header-primary", "header-info", "header-success", "header-warning", "header-danger" -->
<div class="nav-tabs-navigation">
<div class="nav-tabs-wrapper">
<ul class="nav nav-tabs" data-tabs="tabs">
<li class="active"><a href="#home" data-toggle="tab">Home</a></li>
<li><a href="#updates" data-toggle="tab">Updates</a></li>
<li><a href="#history" data-toggle="tab">History</a></li>
</ul>
</div>
</div>
</div>
<div class="content">
<div class="tab-content text-center">
<div class="tab-pane active" id="home">
<p>I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. So when you get something that has the name Kanye West on it, it’s supposed to be pushing the furthest possibilities. I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus.</p>
</div>
<div class="tab-pane" id="updates">
<p> I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. </p>
</div>
<div class="tab-pane" id="history">
<p> I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at. I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.</p>
</div>
</div>
</div>
</div>
<!-- End Tabs on plain Card -->
</div>
</div>
</div>
</div>
<!-- End Section Tabs -->
<div class="section section-pagination">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="title">
<h3>Progress Bars</h3>
</div>
<div class="progress progress-line-primary">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 30%;">
<span class="sr-only">60% Complete</span>
</div>
</div>
<div class="progress progress-line-info">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
<span class="sr-only">60% Complete</span>
</div>
</div>
<div class="progress progress-line-danger">
<div class="progress-bar progress-bar-success" style="width: 35%">
<span class="sr-only">35% Complete (success)</span>
</div>
<div class="progress-bar progress-bar-warning" style="width: 20%">
<span class="sr-only">20% Complete (warning)</span>
</div>
<div class="progress-bar progress-bar-danger" style="width: 10%">
<span class="sr-only">10% Complete (danger)</span>
</div>
</div>
<br />
<div class="title">
<h3>Navigation Pills</h3>
</div>
<ul class="nav nav-pills" role="tablist">
<!--
color-classes: "nav-pills-primary", "nav-pills-info", "nav-pills-success", "nav-pills-warning","nav-pills-danger"
-->
<li>
<a href="#dashboard" role="tab" data-toggle="tab">
<i class="material-icons">dashboard</i>
Dashboard
</a>
</li>
<li class="active">
<a href="#schedule" role="tab" data-toggle="tab">
<i class="material-icons">schedule</i>
Schedule
</a>
</li>
<li>
<a href="#tasks" role="tab" data-toggle="tab">
<i class="material-icons">list</i>
Tasks
</a>
</li>
<li>
<a href="#payments" role="tab" data-toggle="tab">
<i class="material-icons">attach_money</i>
Payments
</a>
</li>
</ul>
</div>
<div class="col-md-6">
<div class="title">
<h3>Pagination</h3>
</div>
<ul class="pagination pagination-primary">
<!--
color-classes: "pagination-primary", "pagination-info", "pagination-success", "pagination-warning", "pagination-danger"
-->
<li><a href="javascript:void(0);">1</a></li>
<li><a href="javascript:void(0);">...</a></li>
<li><a href="javascript:void(0);">5</a></li>
<li><a href="javascript:void(0);">6</a></li>
<li class="active"><a href="javascript:void(0);">7</a></li>
<li><a href="javascript:void(0);">8</a></li>
<li><a href="javascript:void(0);">9</a></li>
<li><a href="javascript:void(0);">...</a></li>
<li><a href="javascript:void(0);">12</a></li>
</ul>
<ul class="pagination pagination-info">
<li><a href="javascript:void(0);">< prev</a></li>
<li><a href="javascript:void(0);">1</a></li>
<li><a href="javascript:void(0);">2</a></li>
<li class="active"><a href="javascript:void(0);">3</a></li>
<li><a href="javascript:void(0);">4</a></li>
<li><a href="javascript:void(0);">5</a></li>
<li><a href="javascript:void(0);">next ></a></li>
</ul>
<div class="title">
<h3>Labels </h3>
</div>
<span class="label label-default">Default</span>
<span class="label label-primary">Primary</span>
<span class="label label-info">Info</span>
<span class="label label-success">Success</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>
</div>
</div>
<div class="space"></div>
<div class="title">
<h3>Notifications</h3>
</div>
</div>
</div>
<div class="section section-notifications" id="notifications">
<div class="alert alert-info">
<div class="container-fluid">
<div class="alert-icon">
<i class="material-icons">info_outline</i>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="material-icons">clear</i></span>
</button>
<b>Info alert:</b> You've got some friends nearby, stop looking at your phone and find them...
</div>
</div>
<div class="alert alert-success">
<div class="container-fluid">
<div class="alert-icon">
<i class="material-icons">check</i>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="material-icons">clear</i></span>
</button>
<b>Success Alert:</b> Yuhuuu! You've got your $11.99 album from The Weeknd
</div>
</div>
<div class="alert alert-warning">
<div class="container-fluid">
<div class="alert-icon">
<i class="material-icons">warning</i>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="material-icons">clear</i></span>
</button>
<b>Warning Alert:</b> Hey, it looks like you still have the "copyright © 2015" in your footer. Please update it!
</div>
</div>
<div class="alert alert-danger">
<div class="container-fluid">
<div class="alert-icon">
<i class="material-icons">error_outline</i>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true"><i class="material-icons">clear</i></span>
</button>
<b>Error Alert:</b> Damn man! You screwed up the server this time. You should find a good excuse for your Boss...
</div>
</div>
<div class="clearfix"></div>
</div><!-- end notifications -->
<div class="section">
<div class="container tim-container">
<div class="title">
<h2>Typography</h2>
</div>
<div id="typography">
<div class="row">
<div class="tim-typo">
<h1><span class="tim-note">Header 1</span>The Life of Material Kit </h1>
</div>
<div class="tim-typo">
<h2><span class="tim-note">Header 2</span>The Life of Material Kit</h2>
</div>
<div class="tim-typo">
<h3><span class="tim-note">Header 3</span>The Life of Material Kit</h3>
</div>
<div class="tim-typo">
<h4><span class="tim-note">Header 4</span>The Life of Material Kit</h4>
</div>
<div class="tim-typo">
<h5><span class="tim-note">Header 5</span>The Life of Material Kit</h5>
</div>
<div class="tim-typo">
<h6><span class="tim-note">Header 6</span>The Life of Material Kit</h6>
</div>
<div class="tim-typo">
<p><span class="tim-note">Paragraph</span>
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.</p>
</div>
<div class="tim-typo">
<span class="tim-note">Quote</span>
<blockquote>
<p>
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.
</p>
<small>
Kanye West, Musician
</small>
</blockquote>
</div>
<div class="tim-typo">
<span class="tim-note">Muted Text</span>
<p class="text-muted">
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
</p>
</div>
<div class="tim-typo">
<span class="tim-note">Primary Text</span>
<p class="text-primary">
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
</div>
<div class="tim-typo">
<span class="tim-note">Info Text</span>
<p class="text-info">
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
</div>
<div class="tim-typo">
<span class="tim-note">Success Text</span>
<p class="text-success">
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
</div>
<div class="tim-typo">
<span class="tim-note">Warning Text</span>
<p class="text-warning">
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers...
</p>
</div>
<div class="tim-typo">
<span class="tim-note">Danger Text</span>
<p class="text-danger">
I will be the leader of a company that ends up being worth billions of dollars, because I got the answers... </p>
</div>
<div class="tim-typo">
<h2><span class="tim-note">Small Tag</span>
Header with small subtitle <br>
<small>Use "small" tag for the headers</small>
</h2>
</div>
</div>
</div>
<div class="space-50"></div>
<div id="images">
<div class="title">
<h2>Images</h2>
</div>
<br>
<div class="row">
<div class="col-sm-2">
<h4>Rounded Image</h4>
<img src="assets/img/avatar.jpg" alt="Rounded Image" class="img-rounded img-responsive">
</div>
<div class="col-sm-2 col-sm-offset-1">
<h4>Circle Image</h4>
<img src="assets/img/avatar.jpg" alt="Circle Image" class="img-circle img-responsive">
</div>
<div class="col-sm-2 col-sm-offset-1">
<h4>Rounded Raised</h4>
<img src="assets/img/avatar.jpg" alt="Raised Image" class="img-rounded img-responsive img-raised">
</div>
<div class="col-sm-2 col-sm-offset-1">
<h4>Circle Raised</h4>
<img src="assets/img/avatar.jpg" alt="Thumbnail Image" class="img-circle img-raised img-responsive">
</div>
</div>
<div class="row">
</div>
</div>
</div>
</div>
<div class="section" id="javascriptComponents">
<div class="container">
<div class="title">
<h2>Javascript components</h2>
</div>
<div class="row" id="modals">
<div class="col-md-6">
<div class="title">
<h3>Modal</h3>
</div>
<button class="btn btn-primary" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
</div>
<div class="col-md-6">
<div class="title">
<h3>Popovers</h3>
</div>
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="left" title="Popover on left" data-content="Here will be some very useful information about his popover.<br> Here will be some very useful information about his popover." data-container="body">On left</button>
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="top" title="Popover on top" data-content="Here will be some very useful information about his popover." data-container="body">On top</button>
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="bottom" title="Popover on bottom" data-content="Here will be some very useful information about his popover." data-container="body">On bottom</button>
<button type="button" class="btn btn-default" data-toggle="popover" data-placement="right" title="Popover on right" data-content="Here will be some very useful information about his popover." data-container="body">On right</button>
</div>
<br /><br />
<div class="col-md-6">
<div class="title">
<h3>Datepicker</h3>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group label-static">
<label class="control-label">Datepicker</label>
<input type="text" class="datepicker form-control" value="03/12/2016" />
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="title">
<h3>Tooltips</h3>
</div>
<button type="button" class="btn btn-default btn-tooltip" data-toggle="tooltip" data-placement="left" title="Tooltip on left" data-container="body">On left</button>
<button type="button" class="btn btn-default btn-tooltip" data-toggle="tooltip" data-placement="top" title="Tooltip on top" data-container="body">On top</button>
<button type="button" class="btn btn-default btn-tooltip" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom" data-container="body">On bottom</button>
<button type="button" class="btn btn-default btn-tooltip" data-toggle="tooltip" data-placement="right" title="Tooltip on right" data-container="body">On right</button>
<div class="clearfix"></div><br><br>
</div>
<div class="title">
<h3>Carousel</h3>
</div>
</div>
</div>
</div>
<div class="section" id="carousel">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<!-- Carousel Card -->
<div class="card card-raised card-carousel">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="assets/img/bg2.jpeg" alt="Awesome Image">
<div class="carousel-caption">
<h4><i class="material-icons">location_on</i> Yellowstone National Park, United States</h4>
</div>
</div>
<div class="item">
<img src="assets/img/bg3.jpeg" alt="Awesome Image">
<div class="carousel-caption">
<h4><i class="material-icons">location_on</i> Somewhere Beyond, United States</h4>
</div>
</div>
<div class="item">
<img src="assets/img/bg4.jpeg" alt="Awesome Image">
<div class="carousel-caption">
<h4><i class="material-icons">location_on</i> Yellowstone National Park, United States</h4>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
<i class="material-icons">keyboard_arrow_left</i>
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<i class="material-icons">keyboard_arrow_right</i>
</a>
</div>
</div>
</div>
<!-- End Carousel Card -->
</div>
</div>
</div>
</div>
<div class="section">
<div class="container text-center">
<div class="row">
<div class="col-md-8 col-md-offset-2 text-center">
<h2>Completed with examples</h2>
<h4>The kit comes with three pre-built pages to help you get started faster. You can change the text and images and you're good to go. More importantly, looking at them will give you a picture of what you can built with this powerful kit.</h4>
</div>
</div>
</div>
</div>
<div class="section section-full-screen section-signup" style="background-image: url('assets/img/city.jpg'); background-size: cover; background-position: top center; min-height: 700px;">
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="card card-signup">
<form class="form" method="" action="">
<div class="header header-primary text-center">
<h4>Sign Up</h4>
<div class="social-line">
<a href="#pablo" class="btn btn-simple btn-just-icon">
<i class="fa fa-facebook-square"></i>
</a>
<a href="#pablo" class="btn btn-simple btn-just-icon">
<i class="fa fa-twitter"></i>
</a>
<a href="#pablo" class="btn btn-simple btn-just-icon">
<i class="fa fa-google-plus"></i>
</a>
</div>
</div>
<p class="text-divider">Or Be Classical</p>
<div class="content">
<div class="input-group">
<span class="input-group-addon">
<i class="material-icons">face</i>
</span>
<input type="text" class="form-control" placeholder="First Name...">
</div>
<div class="input-group">
<span class="input-group-addon">
<i class="material-icons">email</i>
</span>
<input type="text" class="form-control" placeholder="Email...">
</div>
<div class="input-group">
<span class="input-group-addon">
<i class="material-icons">lock_outline</i>
</span>
<input type="password" placeholder="Password..." class="form-control" />
</div>
<!-- If you want to add a checkbox to this form, uncomment this code
<div class="checkbox">
<label>
<input type="checkbox" name="optionsCheckboxes" checked>
Subscribe to newsletter
</label>
</div> -->
</div>
<div class="footer text-center">
<a href="#pablo" class="btn btn-simple btn-primary btn-lg">Get Started</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12 text-center">
<a href="examples/signup-page.html" class="btn btn-simple btn-primary btn-lg" target="_blank">View Signup Page</a>
</div>
<div class="space-50"></div>
<div class="section section-examples">
<div class="container-fluid text-center">
<div class="row">
<div class="col-md-6">
<a href="examples/landing-page.html" target="_blank">
<img src="assets/img/landing.jpg" alt="Rounded Image" class="img-rounded img-raised img-responsive">
<button class="btn btn-simple btn-primary btn-lg">View Landing Page</button>
</a>
</div>
<div class="col-md-6">
<a href="examples/profile-page.html" target="_blank">
<img src="assets/img/profile.jpg" alt="Rounded Image" class="img-rounded img-raised img-responsive">
<button class="btn btn-simple btn-primary btn-lg">View Profile Page</button>
</a>
</div>
</div>
</div>
</div>
<div class="section section-download">
<div class="container">
<div class="row text-center">
<div class="col-md-8 col-md-offset-2">
<h2>Do you love this UI Kit?</h2>
<h4>Cause if you do, it can be yours for FREE. Hit the button below to navigate to Creative Tim where you can find the kit. Start a new project or give an old Bootstrap project a new look!</h4>
</div>
<div class="col-xs-8 col-xs-offset-2 col-sm-4 col-sm-offset-4">
<a href="http://www.creative-tim.com/product/material-kit" class="btn btn-primary btn-lg">
<i class="material-icons">cloud_download</i> Free Download
</a>
</div>
</div>
<br><br>
<div class="row text-center">
<div class="col-md-8 col-md-offset-2">
<h2>Want more?</h2>
<h4>We've just launched <a href="http://demos.creative-tim.com/material-kit-pro/presentation.html?ref=utp-freebie" target="_blank">Material Kit PRO</a>. It has a huge number of components, sections and example pages. Start Your Development With A Badass Bootstrap UI Kit inspired by Material Design.</h4>
</div>
<div class="col-xs-8 col-xs-offset-2 col-sm-4 col-sm-offset-4">
<a href="http://demos.creative-tim.com/material-kit-pro/presentation.html?ref=utp-freebie" class="btn btn-upgrade btn-lg" target="_blank">
<i class="material-icons">unarchive</i> Upgrade to PRO
</a>
</div>
</div>
<div class="row sharing-area text-center">
<h3>Thank you for supporting us!</h3>
<a href="#" class="btn btn-twitter">
<i class="fa fa-twitter"></i>
Tweet
</a>
<a href="#" class="btn btn-facebook">
<i class="fa fa-facebook-square"></i>
Share
</a>
<a href="#" class="btn btn-google-plus">
<i class="fa fa-google-plus"></i>
Share
</a>
<a href="#" class="btn btn-github">
<i class="fa fa-github"></i>
Star
</a>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<nav class="pull-left">
<ul>
<li>
<a href="http://www.creative-tim.com">
Creative Tim
</a>
</li>
<li>
<a href="http://presentation.creative-tim.com">
About Us
</a>
</li>
<li>
<a href="http://blog.creative-tim.com">
Blog
</a>
</li>
<li>
<a href="http://www.creative-tim.com/license">
Licenses
</a>
</li>
</ul>
</nav>
<div class="copyright pull-right">
© 2016, made with <i class="material-icons">favorite</i> by Creative Tim for a better web.
</div>
</div>
</footer>
</div>
<!-- Sart Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
<i class="material-icons">clear</i>
</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-simple">Nice Button</button>
<button type="button" class="btn btn-danger btn-simple" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- End Modal -->
</body>
<!-- Core JS Files -->
<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/js/material.min.js"></script>
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
<script src="assets/js/nouislider.min.js" type="text/javascript"></script>
<!-- Plugin for the Datepicker, full documentation here: http://www.eyecon.ro/bootstrap-datepicker/ -->
<script src="assets/js/bootstrap-datepicker.js" type="text/javascript"></script>
<!-- Control Center for Material Kit: activating the ripples, parallax effects, scripts from the example pages etc -->
<script src="assets/js/material-kit.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function(){
// the body of this function is in assets/material-kit.js
materialKit.initSliders();
window_width = $(window).width();
if (window_width >= 992){
big_image = $('.wrapper > .header');
$(window).on('scroll', materialKitDemo.checkScrollForParallax);
}
});
</script>
</html>
| zhouxinyong/code-demo | demoHouse/material_kit/index.html | HTML | mit | 58,219 | 40.476123 | 625 | 0.483889 | false |
import os
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = "super_secret_key"
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
class ProductionConfig(Config):
DEBUG = False
SECRET_KEY = os.environ['SECRET_KEY']
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
class TestingConfig(Config):
TESTING = True
| jiangtyd/crewviewer | project/config.py | Python | mit | 404 | 20.263158 | 56 | 0.685644 | false |
<div id="about">
<header class="twelve columns">
<h1>My background</h1>
<p class="opening">I'm a programmer, entrepreneur, speaker, designer, and trail runner among other things. As an engineer I've worked across the stack in backend, web, and mobile. I live and work in Los Angeles and studied at UCLA.</p>
</header>
<div id="page-content" class="twelve columns">
<section class="twelve columns">
<p>I'm currently an Engineering Manager working on feature development and engineering best practices alongside a great team at <a href="https://www.gotinder.com/" target="_blank">Tinder</a>. I'm also an organizer of monthly meetups at the <a href="http://lactoforum.org/" target="_blank">LA CTO Forum</a>.</p>
<p> In 2015 I was featured in Inc.'s <a href="https://enplug.com/blog/enplug-makes-inc-magazines-2015-30-under-30-list">30 under 30</a> for co-founding <a href="https://enplug.com">Enplug</a>, a display software for teams and businesses.</p>
<p>You can find my work history on <a href="https://www.linkedin.com/in/alexross8">LinkedIn</a>, or you can download my <a href="/src/pdf/AlexRoss-Resume.pdf">resume</a>. I have a few projects on <a href="https://github.com/aleross">Github</a>.</p>
</section>
<article id="photos" class="twelve columns">
<img src="/src/img/about/1.jpg">
<img src="/src/img/about/4.jpg">
<img src="/src/img/about/13.jpg">
<img src="/src/img/about/11.jpg">
<img src="/src/img/about/5.jpg">
<img src="/src/img/about/7.jpg">
</article>
<article class="twelve columns">
<h2>Programming</h2>
<p>I frequently work across the full stack, including mobile. Below are some technologies I've used in production projects:</p>
<ul>
<li><strong>Front-end:</strong> HTML5, CSS3, SASS, JavaScript</li>
<li><strong>Back-end & scripting:</strong> NodeJS, PHP, Ruby, Python</li>
<li><strong>Frameworks:</strong> AngularJS, Bootstrap, jQuery, Wordpress, ZendFramework</li>
<li><strong>Servers:</strong> Linux, Apache, RabbitMQ, Rackspace, AWS</li>
<li><strong>Databases:</strong> MySQL, MongoDB, Redis, DynamoDB, Firebase (DBaaS)</li>
<li><strong>Mobile:</strong> Objective-C & Interface Builder, Java (Android), PhoneGap/Cordova</li>
<li><strong>Dev tools:</strong> Git, Grunt, Bower, NPM, Composer, Jasmine+Karma</li>
<li><strong>The Internet:</strong> DNS, HTTP, sockets, CDNs, load-balancing, etc.</li>
<li><strong>Design:</strong> Adobe Photoshop & Illustrator, InvisionApp</li>
</ul>
<p></p>
</article>
</div>
</div>
| aleross/alexross.codes | src/html/pages/about.html | HTML | mit | 2,831 | 73.5 | 322 | 0.619216 | false |
var scroller = angular.module("scroller", ["ngTouch", "angular-websql"]); | jouk0/Scroller | js/index.js | JavaScript | mit | 73 | 73 | 73 | 0.712329 | false |
/******************************************************************************
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV (from 2014)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
#include "QtAV/LibAVFilter.h"
#include <QtCore/QSharedPointer>
#include "QtAV/private/Filter_p.h"
#include "QtAV/Statistics.h"
#include "QtAV/AudioFrame.h"
#include "QtAV/VideoFrame.h"
#include "QtAV/private/AVCompat.h"
#include "utils/internal.h"
#include "utils/Logger.h"
/*
* libav10.x, ffmpeg2.x: av_buffersink_read deprecated
* libav9.x: only av_buffersink_read can be used
* ffmpeg<2.0: av_buffersink_get_buffer_ref and av_buffersink_read
*/
// TODO: enabled = false if no libavfilter
// TODO: filter_complex
// NO COPY in push/pull
#define QTAV_HAVE_av_buffersink_get_frame (LIBAV_MODULE_CHECK(LIBAVFILTER, 4, 2, 0) || FFMPEG_MODULE_CHECK(LIBAVFILTER, 3, 79, 100)) //3.79.101: ff2.0.4
namespace QtAV {
#if QTAV_HAVE(AVFILTER)
// local types can not be used as template parameters
class AVFrameHolder {
public:
AVFrameHolder() {
m_frame = av_frame_alloc();
#if !QTAV_HAVE_av_buffersink_get_frame
picref = 0;
#endif
}
~AVFrameHolder() {
av_frame_free(&m_frame);
#if !QTAV_HAVE_av_buffersink_get_frame
avfilter_unref_bufferp(&picref);
#endif
}
AVFrame* frame() { return m_frame;}
#if !QTAV_HAVE_av_buffersink_get_frame
AVFilterBufferRef** bufferRef() { return &picref;}
// copy properties and data ptrs(no deep copy).
void copyBufferToFrame() { avfilter_copy_buf_props(m_frame, picref);}
#endif
private:
AVFrame *m_frame;
#if !QTAV_HAVE_av_buffersink_get_frame
AVFilterBufferRef *picref;
#endif
};
typedef QSharedPointer<AVFrameHolder> AVFrameHolderRef;
#endif //QTAV_HAVE(AVFILTER)
class LibAVFilter::Private
{
public:
Private()
: avframe(0)
, status(LibAVFilter::NotConfigured)
{
#if QTAV_HAVE(AVFILTER)
filter_graph = 0;
in_filter_ctx = 0;
out_filter_ctx = 0;
avfilter_register_all();
#endif //QTAV_HAVE(AVFILTER)
}
~Private() {
#if QTAV_HAVE(AVFILTER)
avfilter_graph_free(&filter_graph);
#endif //QTAV_HAVE(AVFILTER)
if (avframe) {
av_frame_free(&avframe);
avframe = 0;
}
}
bool setOptions(const QString& opt) {
if (options == opt)
return false;
options = opt;
status = LibAVFilter::NotConfigured;
return true;
}
bool pushAudioFrame(Frame *frame, bool changed, const QString& args);
bool pushVideoFrame(Frame *frame, bool changed, const QString& args);
bool setup(const QString& args, bool video) {
if (avframe) {
av_frame_free(&avframe);
avframe = 0;
}
status = LibAVFilter::ConfigureFailed;
#if QTAV_HAVE(AVFILTER)
avfilter_graph_free(&filter_graph);
filter_graph = avfilter_graph_alloc();
//QString sws_flags_str;
// pixel_aspect==sar, pixel_aspect is more compatible
QString buffersrc_args = args;
qDebug("buffersrc_args=%s", buffersrc_args.toUtf8().constData());
AVFilter *buffersrc = avfilter_get_by_name(video ? "buffer" : "abuffer");
Q_ASSERT(buffersrc);
AV_ENSURE_OK(avfilter_graph_create_filter(&in_filter_ctx,
buffersrc,
"in", buffersrc_args.toUtf8().constData(), NULL,
filter_graph)
, false);
/* buffer video sink: to terminate the filter chain. */
AVFilter *buffersink = avfilter_get_by_name(video ? "buffersink" : "abuffersink");
Q_ASSERT(buffersink);
AV_ENSURE_OK(avfilter_graph_create_filter(&out_filter_ctx, buffersink, "out",
NULL, NULL, filter_graph)
, false);
/* Endpoints for the filter graph. */
AVFilterInOut *outputs = avfilter_inout_alloc();
AVFilterInOut *inputs = avfilter_inout_alloc();
outputs->name = av_strdup("in");
outputs->filter_ctx = in_filter_ctx;
outputs->pad_idx = 0;
outputs->next = NULL;
inputs->name = av_strdup("out");
inputs->filter_ctx = out_filter_ctx;
inputs->pad_idx = 0;
inputs->next = NULL;
struct delete_helper {
AVFilterInOut **x;
delete_helper(AVFilterInOut **io) : x(io) {}
~delete_helper() {
// libav always free it in avfilter_graph_parse. so we does nothing
#if QTAV_USE_FFMPEG(LIBAVFILTER)
avfilter_inout_free(x);
#endif
}
} scoped_in(&inputs), scoped_out(&outputs);
//avfilter_graph_parse, avfilter_graph_parse2?
AV_ENSURE_OK(avfilter_graph_parse_ptr(filter_graph, options.toUtf8().constData(), &inputs, &outputs, NULL), false);
AV_ENSURE_OK(avfilter_graph_config(filter_graph, NULL), false);
avframe = av_frame_alloc();
status = LibAVFilter::ConfigureOk;
#if DBG_GRAPH
//not available in libav9
const char* g = avfilter_graph_dump(filter_graph, NULL);
if (g)
qDebug().nospace() << "filter graph:\n" << g; // use << to not print special chars in qt5.5
av_freep(&g);
#endif //DBG_GRAPH
return true;
#endif //QTAV_HAVE(AVFILTER)
return false;
}
#if QTAV_HAVE(AVFILTER)
AVFilterGraph *filter_graph;
AVFilterContext *in_filter_ctx;
AVFilterContext *out_filter_ctx;
#endif //QTAV_HAVE(AVFILTER)
AVFrame *avframe;
QString options;
LibAVFilter::Status status;
};
QStringList LibAVFilter::videoFilters()
{
static const QStringList list(LibAVFilter::registeredFilters(AVMEDIA_TYPE_VIDEO));
return list;
}
QStringList LibAVFilter::audioFilters()
{
static const QStringList list(LibAVFilter::registeredFilters(AVMEDIA_TYPE_AUDIO));
return list;
}
QString LibAVFilter::filterDescription(const QString &filterName)
{
QString s;
#if QTAV_HAVE(AVFILTER)
avfilter_register_all();
const AVFilter *f = avfilter_get_by_name(filterName.toUtf8().constData());
if (!f)
return s;
if (f->description)
s.append(QString::fromUtf8(f->description));
#if AV_MODULE_CHECK(LIBAVFILTER, 3, 7, 0, 8, 100)
return s.append(QLatin1String("\n")).append(QObject::tr("Options:"))
.append(Internal::optionsToString((void*)&f->priv_class));
#endif
#endif //QTAV_HAVE(AVFILTER)
Q_UNUSED(filterName);
return s;
}
LibAVFilter::LibAVFilter()
: priv(new Private())
{
}
LibAVFilter::~LibAVFilter()
{
delete priv;
}
void LibAVFilter::setOptions(const QString &options)
{
if (!priv->setOptions(options))
return;
Q_EMIT optionsChanged();
}
QString LibAVFilter::options() const
{
return priv->options;
}
LibAVFilter::Status LibAVFilter::status() const
{
return priv->status;
}
bool LibAVFilter::pushVideoFrame(Frame *frame, bool changed)
{
return priv->pushVideoFrame(frame, changed, sourceArguments());
}
bool LibAVFilter::pushAudioFrame(Frame *frame, bool changed)
{
return priv->pushAudioFrame(frame, changed, sourceArguments());
}
void* LibAVFilter::pullFrameHolder()
{
#if QTAV_HAVE(AVFILTER)
AVFrameHolder *holder = NULL;
holder = new AVFrameHolder();
#if QTAV_HAVE_av_buffersink_get_frame
int ret = av_buffersink_get_frame(priv->out_filter_ctx, holder->frame());
#else
int ret = av_buffersink_read(priv->out_filter_ctx, holder->bufferRef());
#endif //QTAV_HAVE_av_buffersink_get_frame
if (ret < 0) {
qWarning("av_buffersink_get_frame error: %s", av_err2str(ret));
delete holder;
return 0;
}
#if !QTAV_HAVE_av_buffersink_get_frame
holder->copyBufferToFrame();
#endif
return holder;
#endif //QTAV_HAVE(AVFILTER)
return 0;
}
QStringList LibAVFilter::registeredFilters(int type)
{
QStringList filters;
#if QTAV_HAVE(AVFILTER)
avfilter_register_all();
const AVFilter* f = NULL;
AVFilterPad* fp = NULL; // no const in avfilter_pad_get_name() for ffmpeg<=1.2 libav<=9
#if AV_MODULE_CHECK(LIBAVFILTER, 3, 8, 0, 53, 100)
while ((f = avfilter_next(f))) {
#else
AVFilter** ff = NULL;
while ((ff = av_filter_next(ff)) && *ff) {
f = (*ff);
#endif
fp = (AVFilterPad*)f->inputs;
// only check the 1st pad
if (!fp || !avfilter_pad_get_name(fp, 0) || avfilter_pad_get_type(fp, 0) != (AVMediaType)type)
continue;
fp = (AVFilterPad*)f->outputs;
// only check the 1st pad
if (!fp || !avfilter_pad_get_name(fp, 0) || avfilter_pad_get_type(fp, 0) != (AVMediaType)type)
continue;
filters.append(QLatin1String(f->name));
}
#endif //QTAV_HAVE(AVFILTER)
return filters;
}
class LibAVFilterVideoPrivate : public VideoFilterPrivate
{
public:
LibAVFilterVideoPrivate()
: VideoFilterPrivate()
, pixfmt(QTAV_PIX_FMT_C(NONE))
, width(0)
, height(0)
{}
AVPixelFormat pixfmt;
int width, height;
};
LibAVFilterVideo::LibAVFilterVideo(QObject *parent)
: VideoFilter(*new LibAVFilterVideoPrivate(), parent)
, LibAVFilter()
{
}
QStringList LibAVFilterVideo::filters() const
{
return LibAVFilter::videoFilters();
}
void LibAVFilterVideo::process(Statistics *statistics, VideoFrame *frame)
{
Q_UNUSED(statistics);
#if QTAV_HAVE(AVFILTER)
if (status() == ConfigureFailed)
return;
DPTR_D(LibAVFilterVideo);
//Status old = status();
bool changed = false;
if (d.width != frame->width() || d.height != frame->height() || d.pixfmt != frame->pixelFormatFFmpeg()) {
changed = true;
d.width = frame->width();
d.height = frame->height();
d.pixfmt = (AVPixelFormat)frame->pixelFormatFFmpeg();
}
bool ok = pushVideoFrame(frame, changed);
//if (old != status())
// emit statusChanged();
if (!ok)
return;
AVFrameHolderRef ref((AVFrameHolder*)pullFrameHolder());
if (!ref)
return;
const AVFrame *f = ref->frame();
VideoFrame vf(f->width, f->height, VideoFormat(f->format));
vf.setBits((quint8**)f->data);
vf.setBytesPerLine((int*)f->linesize);
vf.setMetaData(QStringLiteral("avframe_hoder_ref"), QVariant::fromValue(ref));
vf.setTimestamp(ref->frame()->pts/1000000.0); //pkt_pts?
//vf.setMetaData(frame->availableMetaData());
*frame = vf;
#else
Q_UNUSED(frame);
#endif //QTAV_HAVE(AVFILTER)
}
QString LibAVFilterVideo::sourceArguments() const
{
DPTR_D(const LibAVFilterVideo);
#if QTAV_USE_LIBAV(LIBAVFILTER)
return QStringLiteral("%1:%2:%3:%4:%5:%6:%7")
#else
return QStringLiteral("video_size=%1x%2:pix_fmt=%3:time_base=%4/%5:pixel_aspect=%6/%7")
#endif
.arg(d.width).arg(d.height).arg(d.pixfmt)
.arg(1).arg(AV_TIME_BASE) //time base 1/1?
.arg(1).arg(1) //sar
;
}
class LibAVFilterAudioPrivate : public AudioFilterPrivate
{
public:
LibAVFilterAudioPrivate()
: AudioFilterPrivate()
, sample_rate(0)
, sample_fmt(AV_SAMPLE_FMT_NONE)
, channel_layout(0)
{}
int sample_rate;
AVSampleFormat sample_fmt;
qint64 channel_layout;
};
LibAVFilterAudio::LibAVFilterAudio(QObject *parent)
: AudioFilter(*new LibAVFilterAudioPrivate(), parent)
, LibAVFilter()
{}
QStringList LibAVFilterAudio::filters() const
{
return LibAVFilter::audioFilters();
}
QString LibAVFilterAudio::sourceArguments() const
{
DPTR_D(const LibAVFilterAudio);
return QStringLiteral("time_base=%1/%2:sample_rate=%3:sample_fmt=%4:channel_layout=0x%5")
.arg(1)
.arg(AV_TIME_BASE)
.arg(d.sample_rate)
//ffmpeg new: AV_OPT_TYPE_SAMPLE_FMT
//libav, ffmpeg old: AV_OPT_TYPE_STRING
.arg(QLatin1String(av_get_sample_fmt_name(d.sample_fmt)))
.arg(d.channel_layout, 0, 16) //AV_OPT_TYPE_STRING
;
}
void LibAVFilterAudio::process(Statistics *statistics, AudioFrame *frame)
{
Q_UNUSED(statistics);
#if QTAV_HAVE(AVFILTER)
if (status() == ConfigureFailed)
return;
DPTR_D(LibAVFilterAudio);
//Status old = status();
bool changed = false;
const AudioFormat afmt(frame->format());
if (d.sample_rate != afmt.sampleRate() || d.sample_fmt != afmt.sampleFormatFFmpeg() || d.channel_layout != afmt.channelLayoutFFmpeg()) {
changed = true;
d.sample_rate = afmt.sampleRate();
d.sample_fmt = (AVSampleFormat)afmt.sampleFormatFFmpeg();
d.channel_layout = afmt.channelLayoutFFmpeg();
}
bool ok = pushAudioFrame(frame, changed);
//if (old != status())
// emit statusChanged();
if (!ok)
return;
AVFrameHolderRef ref((AVFrameHolder*)pullFrameHolder());
if (!ref)
return;
const AVFrame *f = ref->frame();
AudioFormat fmt;
fmt.setSampleFormatFFmpeg(f->format);
fmt.setChannelLayoutFFmpeg(f->channel_layout);
fmt.setSampleRate(f->sample_rate);
if (!fmt.isValid()) {// need more data to decode to get a frame
return;
}
AudioFrame af(fmt);
//af.setBits((quint8**)f->extended_data);
//af.setBytesPerLine((int*)f->linesize);
af.setBits(f->extended_data); // TODO: ref
af.setBytesPerLine(f->linesize[0], 0); // for correct alignment
af.setSamplesPerChannel(f->nb_samples);
af.setMetaData(QStringLiteral("avframe_hoder_ref"), QVariant::fromValue(ref));
af.setTimestamp(ref->frame()->pts/1000000.0); //pkt_pts?
//af.setMetaData(frame->availableMetaData());
*frame = af;
#else
Q_UNUSED(frame);
#endif //QTAV_HAVE(AVFILTER)
}
bool LibAVFilter::Private::pushVideoFrame(Frame *frame, bool changed, const QString &args)
{
#if QTAV_HAVE(AVFILTER)
VideoFrame *vf = static_cast<VideoFrame*>(frame);
if (status == LibAVFilter::NotConfigured || !avframe || changed) {
if (!setup(args, true)) {
qWarning("setup video filter graph error");
//enabled = false; // skip this filter and avoid crash
return false;
}
}
if (!vf->constBits(0)) {
*vf = vf->to(vf->format());
}
avframe->pts = frame->timestamp() * 1000000.0; // time_base is 1/1000000
avframe->width = vf->width();
avframe->height = vf->height();
avframe->format = (AVPixelFormat)vf->pixelFormatFFmpeg();
for (int i = 0; i < vf->planeCount(); ++i) {
avframe->data[i] = (uint8_t*)vf->constBits(i);
avframe->linesize[i] = vf->bytesPerLine(i);
}
//TODO: side data for vf_codecview etc
//int ret = av_buffersrc_add_frame_flags(in_filter_ctx, avframe, AV_BUFFERSRC_FLAG_KEEP_REF);
/*
* av_buffersrc_write_frame equals to av_buffersrc_add_frame_flags with AV_BUFFERSRC_FLAG_KEEP_REF.
* av_buffersrc_write_frame is more compatible, while av_buffersrc_add_frame_flags only exists in ffmpeg >=2.0
* add a ref if frame is ref counted
* TODO: libav < 10.0 will copy the frame, prefer to use av_buffersrc_buffer
*/
AV_ENSURE_OK(av_buffersrc_write_frame(in_filter_ctx, avframe), false);
return true;
#endif //QTAV_HAVE(AVFILTER)
Q_UNUSED(frame);
return false;
}
bool LibAVFilter::Private::pushAudioFrame(Frame *frame, bool changed, const QString &args)
{
#if QTAV_HAVE(AVFILTER)
if (status == LibAVFilter::NotConfigured || !avframe || changed) {
if (!setup(args, false)) {
qWarning("setup audio filter graph error");
//enabled = false; // skip this filter and avoid crash
return false;
}
}
AudioFrame *af = static_cast<AudioFrame*>(frame);
const AudioFormat afmt(af->format());
avframe->pts = frame->timestamp() * 1000000.0; // time_base is 1/1000000
avframe->sample_rate = afmt.sampleRate();
avframe->channel_layout = afmt.channelLayoutFFmpeg();
#if QTAV_USE_FFMPEG(LIBAVCODEC) || QTAV_USE_FFMPEG(LIBAVUTIL) //AVFrame was in avcodec
avframe->channels = afmt.channels(); //MUST set because av_buffersrc_write_frame will compare channels and layout
#endif
avframe->format = (AVSampleFormat)afmt.sampleFormatFFmpeg();
avframe->nb_samples = af->samplesPerChannel();
for (int i = 0; i < af->planeCount(); ++i) {
//avframe->data[i] = (uint8_t*)af->constBits(i);
avframe->extended_data[i] = (uint8_t*)af->constBits(i);
avframe->linesize[i] = af->bytesPerLine(i);
}
AV_ENSURE_OK(av_buffersrc_write_frame(in_filter_ctx, avframe), false);
return true;
#endif //QTAV_HAVE(AVFILTER)
Q_UNUSED(frame);
return false;
}
} //namespace QtAV
#if QTAV_HAVE(AVFILTER)
Q_DECLARE_METATYPE(QtAV::AVFrameHolderRef)
#endif
| fuyanzhi1234/DevelopQt | QtAV-master/src/filter/LibAVFilter.cpp | C++ | mit | 17,637 | 31.721707 | 152 | 0.630549 | false |
r"""
Create MapServer class diagrams
Requires https://graphviz.gitlab.io/_pages/Download/Download_windows.html
https://stackoverflow.com/questions/1494492/graphviz-how-to-go-from-dot-to-a-graph
For DOT languge see http://www.graphviz.org/doc/info/attrs.html
cd C:\Program Files (x86)\Graphviz2.38\bin
dot -Tpng D:\GitHub\mappyfile\mapfile_classes.dot -o outfile.png
outfile.png
For Entity Relationship diagrams:
https://graphviz.readthedocs.io/en/stable/examples.html#er-py
"""
import os
import pydot
# import pprint
FONT = "Lucida Sans"
def graphviz_setup(gviz_path):
os.environ['PATH'] = gviz_path + ";" + os.environ['PATH']
def add_child(graph, child_id, child_label, parent_id, colour):
"""
http://www.graphviz.org/doc/info/shapes.html#polygon
"""
node = pydot.Node(child_id, style="filled", fillcolor=colour, label=child_label, shape="polygon", fontname=FONT)
graph.add_node(node)
graph.add_edge(pydot.Edge(parent_id, node))
def add_children(graph, parent_id, d, level=0):
blue = "#6b6bd1"
white = "#fdfefd"
green = "#33a333"
colours = [blue, white, green] * 3
for class_, children in d.items():
colour = colours[level]
child_label = class_
child_id = parent_id + "_" + class_
add_child(graph, child_id, child_label, parent_id, colour)
add_children(graph, child_id, children, level+1)
def save_file(graph, fn):
filename = "%s.png" % fn
graph.write_png(filename)
graph.write("%s.dot" % fn)
os.startfile(filename)
def main(gviz_path, layer_only=False):
graphviz_setup(gviz_path)
graph = pydot.Dot(graph_type='digraph', rankdir="TB")
layer_children = {
'CLASS': {
'LABEL': {'STYLE': {}},
'CONNECTIONOPTIONS': {},
'LEADER': {'STYLE': {}},
'STYLE': {},
'VALIDATION': {}
},
'CLUSTER': {},
'COMPOSITE': {},
'FEATURE': {'POINTS': {}},
'GRID': {},
'JOIN': {},
'METADATA': {},
'PROJECTION': {},
'SCALETOKEN': {'VALUES': {}},
'VALIDATION': {}
}
# pprint.pprint(layer_children)
classes = {
"MAP": {
"LAYER": layer_children,
'LEGEND': {'LABEL': {}},
'PROJECTION': {},
'QUERYMAP': {},
'REFERENCE': {},
'SCALEBAR': {'LABEL': {}},
'SYMBOL': {},
'WEB': {'METADATA': {}, 'VALIDATION': {}}
}
}
if layer_only:
root = "LAYER"
classes = classes["MAP"]
fn = "layer_classes"
else:
fn = "map_classes"
root, = classes.keys()
node = pydot.Node(root, style="filled", fillcolor="#33a333", label=root, fontname=FONT, shape="polygon")
graph.add_node(node)
add_children(graph, root, classes[root])
save_file(graph, fn)
if __name__ == "__main__":
gviz_path = r"C:\Program Files (x86)\Graphviz2.38\bin"
main(gviz_path, True)
main(gviz_path, False)
print("Done!")
| geographika/mappyfile | docs/scripts/class_diagrams.py | Python | mit | 3,102 | 25.067227 | 116 | 0.554803 | false |
import { get_definition } from './../base';
export const push_link = (
oid, linkurl, linkname, onmenu='true', instance_name,
when, additional_args, description
) => get_definition({
oid,
linkurl,
linkname,
onmenu,
instance_name
},
{
label: 'VersionOne - Push Link',
method: 'push_link',
module: 'main',
name: 'v1plugin'
},
when, additional_args, description
); | walkerrandolphsmith/VersionOne.JavaScript.PipelineBuilder | src/plugins/v1/push_link.js | JavaScript | mit | 457 | 21.9 | 57 | 0.551422 | false |