code
stringlengths
4
1.01M
language
stringclasses
2 values
--- category: section-tools-geolocation --- Endpoint ``` GET https://api.paymentwall.com/api/rest/country ``` Sample Response ```json { "code":"US", "country":"United States" } ```
Java
#!/usr/bin/env node require("babel/register")({ "stage": 1 }); var fs = require("fs"); GLOBAL.WALLACEVERSION = "Err"; GLOBAL.PLUGIN_CONTRIBUTORS = []; try { var p = JSON.parse(fs.readFileSync(__dirname+"/package.json")); GLOBAL.WALLACEVERSION = p.version; } catch(e) {} var Core = require("./core/Core.js"); process.on('uncaughtException', function (err) { console.error(err); }); GLOBAL.core = new Core();
Java
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::group([ 'middleware' => 'guest' ], function () { Route::get('login', 'Auth\AuthController@getLogin'); Route::post('login', 'Auth\AuthController@postLogin'); // Password reset link request routes... Route::get('password/email', 'Auth\PasswordController@getEmail'); Route::post('password/email', 'Auth\PasswordController@postEmail'); // Password reset routes... Route::get('password/reset/{token}', 'Auth\PasswordController@getReset'); Route::post('password/reset', 'Auth\PasswordController@postReset'); }); Route::group([ 'middleware' => 'auth' ], function () { Route::get('/', [ 'as' => 'home', 'uses' => 'ProjectController@index' ]); Route::get('/project/create', [ 'as' => 'project.create', 'uses' => 'ProjectController@create' ]); Route::post('/project/create', [ 'as' => 'project.store', 'uses' => 'ProjectController@store' ]); Route::post('/project/search', [ 'as' => 'project.search', 'uses' => 'ProjectController@search' ]); Route::get('/project/{project}/graph', [ 'as' => 'detail.graph', 'uses' => 'ProjectDetailController@graph' ]); Route::get('/project/{project}/overview', [ 'as' => 'detail.overview', 'uses' => 'ProjectDetailController@overview' ]); Route::get('/project/{project}/activity', [ 'as' => 'detail.activity', 'uses' => 'ProjectDetailController@activity' ]); Route::get('/project/{project}/inspection-{issue}/{category}', [ 'as' => 'detail.issue', 'uses' => 'ProjectDetailController@issue' ]); Route::post('/project/{project}/inspection-{issue}/', [ 'as' => 'detail.issue.category', 'uses' => 'ProjectDetailController@issueByCategory' ]); Route::delete('/project/{project}', [ 'as' => 'project.destroy', 'uses' => 'ProjectController@destroy' ]); Route::get('/project/{project}/inspect', [ 'as' => 'inspection.create', 'uses' => 'ProjectDetailController@create' ]); Route::post('/project/{project}/inspect', [ 'as' => 'inspection.store', 'uses' => 'ProjectDetailController@store' ]); Route::get('logout', 'Auth\AuthController@getLogout'); Route::group([ 'middleware' => 'role' ], function () { Route::resource('user', 'UserController'); }); });
Java
## Ruby These settings apply only when `--ruby` is specified on the command line. ``` yaml $(ruby) ruby: package-name: azure_mgmt_search package-version: "0.16.0" azure-arm: true ``` ### Ruby multi-api ``` yaml $(ruby) && $(multiapi) batch: - tag: package-2015-08 ``` ### Tag: package-2015-08 and ruby These settings apply only when `--tag=package-2015-08 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=<path to the root directory of your azure-sdk-for-ruby clone>`. ``` yaml $(tag) == 'package-2015-08' && $(ruby) namespace: "Azure::Search::Mgmt::V2015_08_19" output-folder: $(ruby-sdks-folder)/management/azure_mgmt_search/lib ```
Java
--- title: Faire l’expérience des offrandes date: 01/03/2018 --- Si Christ est venu nous révéler le caractère de Dieu, une chose devrait être claire maintenant: Dieu nous aime et Il veut le meilleur pour nous. Il nous demande de faire seulement ce qui sera de notre propre intérêt, jamais à notre détriment. C’est aussi, Son appel pour nous d’être des donneurs généreux et joyeux de ce qui nous a été donné. Les offrandes volontaires et généreuses que nous donnons sont autant un avantage pour nous qui donnons, tout comme elles peuvent l’être pour ceux qui les reçoivent. Seuls ceux qui donnent de cette manière peuvent savoir par eux-mêmes à quel point il y a plus de bonheur à donner qu’à recevoir. `Lisez 2 Corinthiens 9:6, 7. Comment ce texte résume-t-il parfaitement ce que devraient être les offrandes?` Faire une offrande généreuse peut et doit être un acte très personnel et spirituel. C’est une œuvre de foi, une expression de gratitude pour ce qui nous a été donné en Christ. Et, comme tout autre Acte de foi, le fait même de donner augmente la foi, car « la foi sans les œuvres est morte » (Jacques 2:20). Et il n’y a de meilleur moyen d’augmenter sa foi que de la vivre de façon pratique, ce qui signifie que nous devons faire des choses qui jaillissent de notre foi. Quand nous donnons, volontairement et généreusement, nous reflétons à notre manière le caractère de Christ. Nous apprenons davantage à agir comme Dieu en faisant l’expérience de nos propres actes. Ainsi, l’acte des offrandes inspire la confiance en Dieu et l’occasion de « [sentir et voir] combien l’Éternel est bon! Heureux l’homme qui cherche en Lui Son refuge! » (Ps. 34: 8, LSG). « On verra que la gloire qui resplendit sur la face du Christ c’est la gloire de l’amour qui se sacrifie. On verra, à la lumière du calvaire, que la loi de l’amour qui renonce à soi-même est la loi de la vie pour la terre et pour le ciel; que l’amour qui “ne cherche pas son intérêt” a sa source dans le cœur de Dieu; et qu’en celui qui est doux et humble se manifeste le caractère de celui qui habite une lumière dont aucun homme ne peut s’approcher. » – Ellen G. White, Jésus-Christ, pp. 9, 10. `Comment avez-vous vécu la réalité de comment la foi grandit grâce au fait de donner volontairement et généreusement de ce que vous avez reçu?`
Java
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:8:"datetime";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:16:"fecha_nacimiento";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}');
Java
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 'use strict'; /*global cEngine */ /*eslint no-console:0*/ (function (cEngine) { cEngine.extend('__name__', { create: function create(config) { config = config || {}; var __name__ = { cEnginePlugin: { name: '__name__', version: '0.0.1' }, init: function init(engine) { console.log('init', engine); }, start: function start() { console.log('start'); }, stop: function stop() { console.log('stop'); }, preStep: function preStep(context, width, height, dt) { console.log('preStep', context, width, height, dt); }, postStep: function postStep(context, width, height, dt) { console.log('postStep', context, width, height, dt); }, destroy: function destroy() { console.log('destroy'); } }; return __name__; } }); })(cEngine); },{}]},{},[1])
Java
--- title: Elsõ Gyümölcsök date: 12/07/2018 --- Péter szavai szíven találták a hallgatóságát. Némelyek közülük néhány héttel korábban még bizonyára Jézus keresztre feszítését követelték (Lk 23:13-25). Miután viszont meggyõzõdtek arról, hogy a názáreti Jézus Isten által kijelölt Messiás, elkeseredetten kiáltottak fel: "Mit cselekedjünk, atyámfiai, férfiak" (ApCsel 2:37)? `Olvassuk el ApCsel 2:38 versét! Mi a megbocsátás két alapvetõ feltétele?` A bûnbánat azt jelenti, hogy határozottan megváltozik az életünk menete, elfordulunk a bûntõl (ApCsel 3:19; 26:20), és nem csupán szomorkodunk vagy furdal a lelkiismeretünk. A valódi bûnbánat Isten ajándéka a hittel együtt, de mint minden ajándékot, vissza is lehet utasítani (ApCsel 5:31-33; 26:19-21; Róm 2:4). Keresztelõ János ideje óta a keresztséggel hozzák összefüggésbe a bûnbánatot (Mk 1:4). Azaz a keresztség a bûnbánat kifejezése lett, a szertartás a bûnök elmosását és a Szentlélek általi, erkölcsi helyreállítást jelképezi (ApCsel 2:38; 22:16; vö. Tit 3:5-7). `Olvassuk el ApCsel 2:38-39 verseit! Milyen különleges ígéretet kapnak, akik megbánják bûneiket és megkeresztelkednek?` Az emberek pünkösdkor nemcsak a bûnbocsánat, hanem a Szentlélek teljességének ígéretét is megkapták a személyes növekedésükhöz, az egyházban végzett szolgálathoz és fõként a misszióhoz. Talán ez volt a legnagyobb áldás az összes közül, hiszen az egyház tulajdonképpen azért létezik ma is, hogy hirdesse az evangélium jó hírét (1Pt 2:9). Így ettõl kezdve üdvbizonyosságuk lehetett, a Szentlélek erejét is megkaphatták, ami alkalmassá tette õket arra a küldetésre, amelyre az egyház elhívást kapott. `Azoknak, akik az evangéliumot akarják hirdetni, miért fontos felismerniük, hogy Isten megbocsátotta a bûneinket? Végsõ soron milyen reménységet kínálhatunk másoknak Jézusban, ha mi magunk nem rendelkezünk vele?`
Java
// Copyright (c) 2015 Uber Technologies, Inc. // // 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. 'use strict'; var EventEmitter = require('./lib/event_emitter'); var stat = require('./lib/stat'); var inherits = require('util').inherits; var errors = require('./errors'); var States = require('./reqres_states'); function TChannelOutResponse(id, options) { options = options || {}; var self = this; EventEmitter.call(self); self.errorEvent = self.defineEvent('error'); self.spanEvent = self.defineEvent('span'); self.finishEvent = self.defineEvent('finish'); self.channel = options.channel; self.inreq = options.inreq; self.logger = options.logger; self.random = options.random; self.timers = options.timers; self.start = 0; self.end = 0; self.state = States.Initial; self.id = id || 0; self.code = options.code || 0; self.tracing = options.tracing || null; self.headers = options.headers || {}; self.checksumType = options.checksumType || 0; self.checksum = options.checksum || null; self.ok = self.code === 0; self.span = options.span || null; self.streamed = false; self._argstream = null; self.arg1 = null; self.arg2 = null; self.arg3 = null; self.codeString = null; self.message = null; } inherits(TChannelOutResponse, EventEmitter); TChannelOutResponse.prototype.type = 'tchannel.outgoing-response'; TChannelOutResponse.prototype._sendCallResponse = function _sendCallResponse(args, isLast) { var self = this; throw errors.UnimplementedMethod({ className: self.constructor.name, methodName: '_sendCallResponse' }); }; TChannelOutResponse.prototype._sendCallResponseCont = function _sendCallResponseCont(args, isLast) { var self = this; throw errors.UnimplementedMethod({ className: self.constructor.name, methodName: '_sendCallResponseCont' }); }; TChannelOutResponse.prototype._sendError = function _sendError(codeString, message) { var self = this; throw errors.UnimplementedMethod({ className: self.constructor.name, methodName: '_sendError' }); }; TChannelOutResponse.prototype.sendParts = function sendParts(parts, isLast) { var self = this; switch (self.state) { case States.Initial: self.sendCallResponseFrame(parts, isLast); break; case States.Streaming: self.sendCallResponseContFrame(parts, isLast); break; case States.Done: self.errorEvent.emit(self, errors.ResponseFrameState({ attempted: 'arg parts', state: 'Done' })); break; case States.Error: // TODO: log warn break; default: self.channel.logger.error('TChannelOutResponse is in a wrong state', { state: self.state }); break; } }; TChannelOutResponse.prototype.sendCallResponseFrame = function sendCallResponseFrame(args, isLast) { var self = this; switch (self.state) { case States.Initial: self.start = self.timers.now(); self._sendCallResponse(args, isLast); if (self.span) { self.span.annotate('ss'); } if (isLast) self.state = States.Done; else self.state = States.Streaming; break; case States.Streaming: self.errorEvent.emit(self, errors.ResponseFrameState({ attempted: 'call response', state: 'Streaming' })); break; case States.Done: case States.Error: var arg2 = args[1] || ''; var arg3 = args[2] || ''; self.errorEvent.emit(self, errors.ResponseAlreadyDone({ attempted: 'call response', state: self.state, method: 'sendCallResponseFrame', bufArg2: arg2.slice(0, 50), arg2: String(arg2).slice(0, 50), bufArg3: arg3.slice(0, 50), arg3: String(arg3).slice(0, 50) })); } }; TChannelOutResponse.prototype.sendCallResponseContFrame = function sendCallResponseContFrame(args, isLast) { var self = this; switch (self.state) { case States.Initial: self.errorEvent.emit(self, errors.ResponseFrameState({ attempted: 'call response continuation', state: 'Initial' })); break; case States.Streaming: self._sendCallResponseCont(args, isLast); if (isLast) self.state = States.Done; break; case States.Done: case States.Error: self.errorEvent.emit(self, errors.ResponseAlreadyDone({ attempted: 'call response continuation', state: self.state, method: 'sendCallResponseContFrame' })); } }; TChannelOutResponse.prototype.sendError = function sendError(codeString, message) { var self = this; if (self.state === States.Done || self.state === States.Error) { self.errorEvent.emit(self, errors.ResponseAlreadyDone({ attempted: 'send error frame: ' + codeString + ': ' + message, currentState: self.state, method: 'sendError', codeString: codeString, errMessage: message })); } else { if (self.span) { self.span.annotate('ss'); } self.state = States.Error; self.codeString = codeString; self.message = message; self.channel.inboundCallsSystemErrorsStat.increment(1, { 'calling-service': self.inreq.headers.cn, 'service': self.inreq.serviceName, 'endpoint': String(self.inreq.arg1), 'type': self.codeString }); self._sendError(codeString, message); self.emitFinish(); } }; TChannelOutResponse.prototype.emitFinish = function emitFinish() { var self = this; var now = self.timers.now(); if (self.end) { self.logger.warn('out response double emitFinish', { end: self.end, now: now, serviceName: self.inreq.serviceName, cn: self.inreq.headers.cn, endpoint: String(self.inreq.arg1), codeString: self.codeString, errorMessage: self.message, remoteAddr: self.inreq.connection.socketRemoteAddr, state: self.state, isOk: self.ok }); return; } self.end = now; var latency = self.end - self.inreq.start; self.channel.emitFastStat(self.channel.buildStat( 'tchannel.inbound.calls.latency', 'timing', latency, new stat.InboundCallsLatencyTags( self.inreq.headers.cn, self.inreq.serviceName, self.inreq.endpoint ) )); if (self.span) { self.spanEvent.emit(self, self.span); } self.finishEvent.emit(self); }; TChannelOutResponse.prototype.setOk = function setOk(ok) { var self = this; if (self.state !== States.Initial) { self.errorEvent.emit(self, errors.ResponseAlreadyStarted({ state: self.state, method: 'setOk', ok: ok })); return false; } self.ok = ok; self.code = ok ? 0 : 1; // TODO: too coupled to v2 specifics? return true; }; TChannelOutResponse.prototype.sendOk = function sendOk(res1, res2) { var self = this; self.setOk(true); self.send(res1, res2); }; TChannelOutResponse.prototype.sendNotOk = function sendNotOk(res1, res2) { var self = this; if (self.state === States.Error) { self.logger.error('cannot send application error, already sent error frame', { res1: res1, res2: res2 }); } else { self.setOk(false); self.send(res1, res2); } }; TChannelOutResponse.prototype.send = function send(res1, res2) { var self = this; /* send calls after finish() should be swallowed */ if (self.end) { var logOptions = { serviceName: self.inreq.serviceName, cn: self.inreq.headers.cn, endpoint: self.inreq.endpoint, remoteAddr: self.inreq.remoteAddr, end: self.end, codeString: self.codeString, errorMessage: self.message, isOk: self.ok, hasResponse: !!self.arg3, state: self.state }; if (self.inreq && self.inreq.timedOut) { self.logger.info('OutResponse.send() after inreq timed out', logOptions); } else { self.logger.warn('OutResponse called send() after end', logOptions); } return; } self.arg2 = res1; self.arg3 = res2; if (self.ok) { self.channel.emitFastStat(self.channel.buildStat( 'tchannel.inbound.calls.success', 'counter', 1, new stat.InboundCallsSuccessTags( self.inreq.headers.cn, self.inreq.serviceName, self.inreq.endpoint ) )); } else { // TODO: add outResponse.setErrorType() self.channel.emitFastStat(self.channel.buildStat( 'tchannel.inbound.calls.app-errors', 'counter', 1, new stat.InboundCallsAppErrorsTags( self.inreq.headers.cn, self.inreq.serviceName, self.inreq.endpoint, 'unknown' ) )); } self.sendCallResponseFrame([self.arg1, res1, res2], true); self.emitFinish(); return self; }; module.exports = TChannelOutResponse;
Java
<div class="alert alert-{{$type}}"> <h1>{{$title}}</h1> <p>{{$content}}</p> </div>
Java
using RedditSharp.Things; using System.Threading.Tasks; namespace RedditSharp { partial class Helpers { private const string GetThingUrl = "/api/info.json?id={0}"; /// <summary> /// Get a <see cref="Thing"/> by full name. /// </summary> /// <param name="agent">IWebAgent to use to make request</param> /// <param name="fullname">fullname including kind + underscore. EG ("t1_######")</param> /// <returns></returns> public static async Task<Thing> GetThingByFullnameAsync(IWebAgent agent, string fullname) { var json = await agent.Get(string.Format(GetThingUrl, fullname)).ConfigureAwait(false); return Thing.Parse(agent, json["data"]["children"][0]); } } }
Java
#!/usr/bin/env node /** * Release this package. */ "use strict"; process.chdir(__dirname + '/..'); const apeTasking = require('ape-tasking'), apeReleasing = require('ape-releasing'); apeTasking.runTasks('release', [ (callback) => { apeReleasing.releasePackage({ beforeRelease: [ './ci/build.js', './ci/test.js' ] }, callback); } ], true);
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico"> <title>Jumbotron Template for Bootstrap</title> <!-- Bootstrap core CSS --> <link href="/static/static/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="/static/static/css/jumbotron.css" rel="stylesheet"> <!-- Just for debugging purposes. Don't actually copy these 2 lines! --> <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> <script src="/static/static/js/ie-emulation-modes-warning.js"></script> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[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="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> <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="#">Project name</a> </div> <div class="navbar-collapse collapse"> <form class="navbar-form navbar-right" role="form"> <div class="form-group"> <input type="text" placeholder="Email" class="form-control"> </div> <div class="form-group"> <input type="password" placeholder="Password" class="form-control"> </div> <button type="submit" class="btn btn-success">Sign in</button> </form> </div><!--/.navbar-collapse --> </div> </div> <!-- Main jumbotron for a primary marketing message or call to action --> <div class="jumbotron"> <div class="container"> <h1>Hello, world!</h1> <p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p> <p><a class="btn btn-primary btn-lg" role="button">Learn more &raquo;</a></p> </div> </div> <div class="container"> <!-- Example row of columns --> {% if messages %} <div class='row'> <div class='col-xs-12'> {% for message in messages %} <p {% if message.tags %} class="{{ message.tags }}"{% endif %}> {{ message }} </p> {% endfor %} </div> </div> {% endif %} <div class="row"> <div class="col-md-4"> <h2>Heading</h2> <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p> </div> <div class="col-md-4"> <h2>Heading</h2> <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p> </div> <div class="col-md-4"> <h2>Heading</h2> <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p> <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p> </div> <div class="col-md-4"> {% block content %}{% endblock %} </div> </div> <hr> <footer> <p>&copy; Company 2014</p> </footer> </div> <!-- /container --> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="/static/static/js/jquery.min.js"></script> <script src="/static/static/js/bootstrap.min.js"></script> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="/static/static/js/ie10-viewport-bug-workaround.js"></script> </body> </html>
Java
@echo off rem rem ADOBE SYSTEMS INCORPORATED rem Copyright 2007 Adobe Systems Incorporated rem All Rights Reserved. rem rem NOTICE: Adobe permits you to use, modify, and distribute this file rem in accordance with the terms of the license agreement accompanying it. rem rem rem acompc.bat script for Windows. rem This simply executes compc.exe in the same directory, rem inserting the option +configname=air, which makes rem compc.exe use air-config.xml instead of flex-config.xml. rem On Unix, acompc is used instead. rem "%~dp0compc.exe" +configname=air %*
Java
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package app import ( "fmt" "os" "k8s.io/kubernetes/federation/pkg/kubefed" _ "k8s.io/kubernetes/pkg/client/metrics/prometheus" // for client metric registration cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util" "k8s.io/kubernetes/pkg/util/logs" "k8s.io/kubernetes/pkg/version" _ "k8s.io/kubernetes/pkg/version/prometheus" // for version metric registration ) const hyperkubeImageName = "gcr.io/google_containers/hyperkube-amd64" func Run() error { logs.InitLogs() defer logs.FlushLogs() defaultImage := fmt.Sprintf("%s:%s", hyperkubeImageName, version.Get()) cmd := kubefed.NewKubeFedCommand(cmdutil.NewFactory(nil), os.Stdin, os.Stdout, os.Stderr, defaultImage) return cmd.Execute() }
Java
import os, scrapy, argparse from realclearpolitics.spiders.spider import RcpSpider from scrapy.crawler import CrawlerProcess parser = argparse.ArgumentParser('Scrap realclearpolitics polls data') parser.add_argument('url', action="store") parser.add_argument('--locale', action="store", default='') parser.add_argument('--race', action="store", default='primary') parser.add_argument('--csv', dest='to_csv', action='store_true') parser.add_argument('--output', dest='output', action='store') args = parser.parse_args() url = args.url extra_fields = { 'locale': args.locale, 'race': args.race } if (args.to_csv): if args.output is None: filename = url.split('/')[-1].split('.')[0] output = filename + ".csv" print("No output file specified : using " + output) else: output = args.output if not output.endswith(".csv"): output = output + ".csv" if os.path.isfile(output): os.remove(output) os.system("scrapy crawl realclearpoliticsSpider -a url="+url+" -o "+output) else: settings = { 'ITEM_PIPELINES' : { 'realclearpolitics.pipeline.PollPipeline': 300, }, 'LOG_LEVEL' : 'ERROR', 'DOWNLOAD_HANDLERS' : {'s3': None,} } process = CrawlerProcess(settings); process.crawl(RcpSpider, url, extra_fields) process.start()
Java
/*global d3 */ // asynchronously load data from the Lagotto API queue() .defer(d3.json, encodeURI("/api/agents/")) .await(function(error, a) { if (error) { return console.warn(error); } agentsViz(a.agents); }); // add data to page function agentsViz(data) { for (var i=0; i<data.length; i++) { var agent = data[i]; // responses tab d3.select("#response_count_" + agent.id) .text(numberWithDelimiter(agent.responses.count)); d3.select("#average_count_" + agent.id) .text(numberWithDelimiter(agent.responses.average)); } }
Java
var test = require("tape").test var level = require("level-test")() var testdb = level("test-versionstream") var version = require("../") var db = version(testdb) var lastVersion test("stuff some datas", function (t) { t.plan(2) db.put("pet", "fluffy", {version: 0}) db.put("pet", "spot", {version: 1}) db.put("pet", "scratch", {version: 334}) db.put("watch", "calculator", {version: 11}) db.put("watch", "casio", {version: 14}) db.put("pet", "sparky", function (err, version) { t.notOk(err, "no error") t.ok(version > Date.now() - 1000, "Default version is a recent timestamp") lastVersion = version }) }) test("versionstream pets", function (t) { t.plan(5) var versions = [] db.createVersionStream("pet") .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [lastVersion, 334, 1, 0], "Versions came out in the correct order") }) }) test("versionstream pets version no min", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {maxVersion: 500, limit: 1}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [334], "Versions came out in the correct order") }) }) test("versionstream pets version reverse no min", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {maxVersion: 500, limit: 1, reverse: true}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [0], "Versions came out in the correct order") }) }) test("versionstream pets version range no max", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {minVersion: 10, limit: 1}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [lastVersion], "Versions came out in the correct order") }) }) test("versionstream pets version range", function (t) { t.plan(2) var versions = [] db.createVersionStream("pet", {minVersion: 10, maxVersion: 500, limit: 1}) .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [334], "Versions came out in the correct order") }) }) test("versionstream watches", function (t) { t.plan(3) var versions = [] db.createVersionStream("watch") .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [14, 11], "Versions came out in the correct order") }) }) test("alias", function (t) { var versions = [] db.versionStream("pet") .on("data", function (record) { t.ok(record.version != null, "record has a version") versions.push(record.version) }) .on("end", function () { t.deepEqual(versions, [lastVersion, 334, 1, 0], "Versions came out in the correct order") t.end() }) })
Java
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under 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. */ #ifndef MODULES_BASIC_PORTFEEDBACKTESTMODULES_H #define MODULES_BASIC_PORTFEEDBACKTESTMODULES_H #include <Dataflow/Network/Module.h> #include <Modules/Basic/share.h> namespace SCIRun { namespace Modules { namespace Basic { class SCISHARE PortFeedbackSender : public SCIRun::Dataflow::Networks::Module, public Has1InputPort<StringPortTag>, public HasNoOutputPorts { public: PortFeedbackSender(); virtual void execute() override; virtual void setStateDefaults() override; INPUT_PORT(0, Input, String); MODULE_TRAITS_AND_INFO(NoAlgoOrUI) }; class SCISHARE PortFeedbackReceiver : public SCIRun::Dataflow::Networks::Module, public Has1OutputPort<StringPortTag>, public HasNoInputPorts { public: void processFeedback(const Core::Datatypes::ModuleFeedback& var); PortFeedbackReceiver(); virtual void execute() override; virtual void setStateDefaults() override; OUTPUT_PORT(0, Output, String); MODULE_TRAITS_AND_INFO(NoAlgoOrUI) }; }}} #endif
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery Mobile Docs - Theming Pages</title> <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" /> <link rel="stylesheet" href="../../_assets/css/jqm-docs.css"/> <script src="../../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script> <script src="../../../js/jquery.js"></script> <script src="../../../docs/_assets/js/jqm-docs.js"></script> <script src="../../../js/jquery.mobile.js"></script> </head> <body> <div data-role="page" class="type-interior" data-theme="e"> <div data-role="header" data-theme="e"> <h1>Theming pages</h1> <a href="../../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a> <a href="../../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a> </div><!-- /header --> <div data-role="content"> <div class="content-primary"> <ul data-role="controlgroup" data-type="horizontal" class="localnav"> <li><a href="../pages-themes.html" data-role="button" data-transition="fade">Theme Overview</a></li> <li><a href="theme-a.html" data-role="button" data-transition="fade">A&nbsp;</a></li> <li><a href="theme-b.html" data-role="button" data-transition="fade">B&nbsp;</a></li> <li><a href="theme-c.html" data-role="button" data-transition="fade">C&nbsp;</a></li> <li><a href="theme-d.html" data-role="button" data-transition="fade">D&nbsp;</a></li> <li><a href="theme-e.html" data-role="button" data-transition="fade" class="ui-btn-active">E&nbsp;</a></li> </ul> <h2>Theme E Sample Page</h2> <p>This is an example of <code>data-theme="e"</code> applied to the same element as <code>data-role="page"</code>, showing how the theme is inherited by widgets throughout the page.</p> <div data-role="fieldcontain"> <label for="name-a">Text Input:</label> <input type="text" name="name" id="name-a" value="" /> </div> <div data-role="fieldcontain"> <label for="switch-a">Flip switch:</label> <select name="switch-a" id="switch-a" data-role="slider"> <option value="off">Off</option> <option value="on">On</option> </select> </div> <div data-role="fieldcontain"> <label for="slider-a">Slider:</label> <input type="range" name="slider" id="slider-a" value="0" min="0" max="100" /> </div> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-type="horizontal"> <legend>Font styling:</legend> <input type="checkbox" name="checkbox-6a" id="checkbox-6a" class="custom" /> <label for="checkbox-6a">b</label> <input type="checkbox" name="checkbox-7a" id="checkbox-7a" class="custom" /> <label for="checkbox-7a"><em>i</em></label> <input type="checkbox" name="checkbox-8a" id="checkbox-8a" class="custom" /> <label for="checkbox-8a">u</label> </fieldset> </div> <div data-role="fieldcontain"> <fieldset data-role="controlgroup"> <legend>Choose a pet:</legend> <input type="radio" name="radio-choice-1" id="radio-choice-1a" value="choice-1" /> <label for="radio-choice-1a">Cat</label> <input type="radio" name="radio-choice-1" id="radio-choice-2a" value="choice-2" /> <label for="radio-choice-2a">Dog</label> <input type="radio" name="radio-choice-1" id="radio-choice-3a" value="choice-3" /> <label for="radio-choice-3a">Hamster</label> <input type="radio" name="radio-choice-1" id="radio-choice-4a" value="choice-4" /> <label for="radio-choice-4a">Lizard</label> </fieldset> </div> <div data-role="fieldcontain"> <label for="select-choice-a" class="select">Choose shipping method:</label> <select name="select-choice-a" id="select-choice-a"> <option value="standard">Standard: 7 day</option> <option value="rush">Rush: 3 days</option> <option value="express">Express: next day</option> <option value="overnight">Overnight</option> </select> </div> <h2>Collapsible Sets</h2> <div data-role="collapsible-set"> <div data-role="collapsible" data-collapsed="false"> <h3>Section 1</h3> <p>I'm the collapsible content in a set so this feels like an accordion. I'm visible by default because I have the <code>data-collapsed="false"</code> attribute; to collapse me, either click my header or expand another header in my set.</p> </div> <div data-role="collapsible"> <h3>Section 2</h3> <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I have the "collapsed" state; you need to expand the header to see me.</p> </div> <div data-role="collapsible"> <h3>Section 3</h3> <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I have the "collapsed" state; you need to expand the header to see me.</p> </div> </div> <h2>Inset List</h2> <ul data-role="listview" data-inset="true"> <li><a href="index.html">Inbox <span class="ui-li-count" >12</span></a></li> <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li> <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li> <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li> <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li> </ul> </div><!--/content-primary --> <div class="content-secondary"> <div data-role="collapsible" data-collapsed="true" data-theme="e" data-content-theme="e"> <h3>More in this section</h3> <ul data-role="listview" data-theme="e" data-dividertheme="e"> <li data-role="list-divider">Pages &amp; Dialogs</li> <li><a href="../../page-anatomy.html">Anatomy of a page</a></li> <li><a href="../../page-template.html" data-ajax="false">Single page template</a></li> <li><a href="../../multipage-template.html" data-ajax="false">Multi-page template</a></li> <li><a href="../../page-titles.html">Page titles</a></li> <li><a href="../../page-links.html">Linking pages</a></li> <li><a href="../../page-transitions.html" data-ajax="false">Page transitions</a></li> <li><a href="../../page-dialogs.html">Dialogs</a></li> <li><a href="../../page-cache.html">Prefetching &amp; caching pages</a></li> <li><a href="../../page-navmodel.html">Ajax, hashes &amp; history</a></li> <li><a href="../../page-dynamic.html">Dynamically Injecting Pages</a></li> <li><a href="../../page-scripting.html">Scripting pages</a></li> <li data-theme="a"><a href="../../pages-themes.html">Theming pages</a></li> </ul> </div> </div> </div><!-- /content --> <div data-role="footer" class="footer-docs" data-theme="e"> <p>&copy; 2011-12 The jQuery Foundation</p> </div> </div><!-- /page --> </body> </html>
Java
describe 'font' do before do @rmq = RubyMotionQuery::RMQ end it 'should return font from RMQ or an instance of rmq' do @rmq.font.should == RubyMotionQuery::Font rmq = RubyMotionQuery::RMQ.new rmq.font.should == RubyMotionQuery::Font end it 'should return a list of font families' do @rmq.font.family_list.grep(/Helvetica/).length.should > 0 end it 'should return a list of fonts for one family' do @rmq.font.for_family('Arial').grep(/Arial/).length.should > 0 end it 'should return a system font given a size' do @rmq.font.system(11).is_a?(UIFont).should == true end it 'should return a system font with system default font size' do @rmq.font.system.pointSize.should == UIFont.systemFontSize end it 'should return font with name' do @rmq.font.with_name('American Typewriter', 11).is_a?(UIFont).should == true end it "should return fonts that have been named" do @rmq.font.add_named('awesome_font', 'American Typewriter', 12) @rmq.font.awesome_font.is_a?(UIFont).should.be.true end end
Java
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://[email protected] class: java.io.WriteAbortedException ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_JAVA_IO_WRITEABORTEDEXCEPTION_HPP_DECL #define J2CPP_JAVA_IO_WRITEABORTEDEXCEPTION_HPP_DECL namespace j2cpp { namespace java { namespace lang { class Exception; } } } namespace j2cpp { namespace java { namespace lang { class String; } } } namespace j2cpp { namespace java { namespace lang { class Throwable; } } } namespace j2cpp { namespace java { namespace lang { class Object; } } } namespace j2cpp { namespace java { namespace io { class IOException; } } } namespace j2cpp { namespace java { namespace io { class Serializable; } } } namespace j2cpp { namespace java { namespace io { class ObjectStreamException; } } } #include <java/io/IOException.hpp> #include <java/io/ObjectStreamException.hpp> #include <java/io/Serializable.hpp> #include <java/lang/Exception.hpp> #include <java/lang/Object.hpp> #include <java/lang/String.hpp> #include <java/lang/Throwable.hpp> namespace j2cpp { namespace java { namespace io { class WriteAbortedException; class WriteAbortedException : public object<WriteAbortedException> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_FIELD(0) explicit WriteAbortedException(jobject jobj) : object<WriteAbortedException>(jobj) , detail(jobj) { } operator local_ref<java::lang::Exception>() const; operator local_ref<java::lang::Throwable>() const; operator local_ref<java::lang::Object>() const; operator local_ref<java::io::IOException>() const; operator local_ref<java::io::Serializable>() const; operator local_ref<java::io::ObjectStreamException>() const; WriteAbortedException(local_ref< java::lang::String > const&, local_ref< java::lang::Exception > const&); local_ref< java::lang::String > getMessage(); local_ref< java::lang::Throwable > getCause(); field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(0), J2CPP_FIELD_SIGNATURE(0), local_ref< java::lang::Exception > > detail; }; //class WriteAbortedException } //namespace io } //namespace java } //namespace j2cpp #endif //J2CPP_JAVA_IO_WRITEABORTEDEXCEPTION_HPP_DECL #else //J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_JAVA_IO_WRITEABORTEDEXCEPTION_HPP_IMPL #define J2CPP_JAVA_IO_WRITEABORTEDEXCEPTION_HPP_IMPL namespace j2cpp { java::io::WriteAbortedException::operator local_ref<java::lang::Exception>() const { return local_ref<java::lang::Exception>(get_jobject()); } java::io::WriteAbortedException::operator local_ref<java::lang::Throwable>() const { return local_ref<java::lang::Throwable>(get_jobject()); } java::io::WriteAbortedException::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } java::io::WriteAbortedException::operator local_ref<java::io::IOException>() const { return local_ref<java::io::IOException>(get_jobject()); } java::io::WriteAbortedException::operator local_ref<java::io::Serializable>() const { return local_ref<java::io::Serializable>(get_jobject()); } java::io::WriteAbortedException::operator local_ref<java::io::ObjectStreamException>() const { return local_ref<java::io::ObjectStreamException>(get_jobject()); } java::io::WriteAbortedException::WriteAbortedException(local_ref< java::lang::String > const &a0, local_ref< java::lang::Exception > const &a1) : object<java::io::WriteAbortedException>( call_new_object< java::io::WriteAbortedException::J2CPP_CLASS_NAME, java::io::WriteAbortedException::J2CPP_METHOD_NAME(0), java::io::WriteAbortedException::J2CPP_METHOD_SIGNATURE(0) >(a0, a1) ) , detail(get_jobject()) { } local_ref< java::lang::String > java::io::WriteAbortedException::getMessage() { return call_method< java::io::WriteAbortedException::J2CPP_CLASS_NAME, java::io::WriteAbortedException::J2CPP_METHOD_NAME(1), java::io::WriteAbortedException::J2CPP_METHOD_SIGNATURE(1), local_ref< java::lang::String > >(get_jobject()); } local_ref< java::lang::Throwable > java::io::WriteAbortedException::getCause() { return call_method< java::io::WriteAbortedException::J2CPP_CLASS_NAME, java::io::WriteAbortedException::J2CPP_METHOD_NAME(2), java::io::WriteAbortedException::J2CPP_METHOD_SIGNATURE(2), local_ref< java::lang::Throwable > >(get_jobject()); } J2CPP_DEFINE_CLASS(java::io::WriteAbortedException,"java/io/WriteAbortedException") J2CPP_DEFINE_METHOD(java::io::WriteAbortedException,0,"<init>","(Ljava/lang/String;Ljava/lang/Exception;)V") J2CPP_DEFINE_METHOD(java::io::WriteAbortedException,1,"getMessage","()Ljava/lang/String;") J2CPP_DEFINE_METHOD(java::io::WriteAbortedException,2,"getCause","()Ljava/lang/Throwable;") J2CPP_DEFINE_FIELD(java::io::WriteAbortedException,0,"detail","Ljava/lang/Exception;") } //namespace j2cpp #endif //J2CPP_JAVA_IO_WRITEABORTEDEXCEPTION_HPP_IMPL #endif //J2CPP_INCLUDE_IMPLEMENTATION
Java
<?php namespace Concrete\Tests\Core\File; use Concrete\Core\File\Importer; use Concrete\Core\Attribute\Type as AttributeType; use Concrete\Core\Attribute\Key\FileKey; use Concrete\Core\Attribute\Key\Category; class FileListTest extends \FileStorageTestCase { /** @var \Concrete\Core\File\FileList */ protected $list; protected function setUp() { $this->tables = array_merge($this->tables, array( 'Users', 'PermissionAccessEntityTypes', 'FileAttributeValues', 'FileImageThumbnailTypes', 'ConfigStore', 'FileSets', 'FileVersionLog', 'FileSetFiles', )); $this->metadatas = array_merge($this->metadatas, array( 'Concrete\Core\Entity\Attribute\Key\Type\NumberType', 'Concrete\Core\Entity\Attribute\Key\Type\Type', 'Concrete\Core\Entity\Attribute\Key\FileKey', 'Concrete\Core\Entity\Attribute\Value\FileValue', 'Concrete\Core\Entity\Attribute\Key\Key', 'Concrete\Core\Entity\Attribute\Value\Value', 'Concrete\Core\Entity\Attribute\Value\Value\NumberValue', 'Concrete\Core\Entity\Attribute\Value\Value\Value', 'Concrete\Core\Entity\Attribute\Type', 'Concrete\Core\Entity\Attribute\Category', )); parent::setUp(); \Config::set('concrete.upload.extensions', '*.txt;*.jpg;*.jpeg;*.png'); Category::add('file'); \Concrete\Core\Permission\Access\Entity\Type::add('file_uploader', 'File Uploader'); $number = AttributeType::add('number', 'Number'); FileKey::add($number, array('akHandle' => 'width', 'akName' => 'Width')); FileKey::add($number, array('akHandle' => 'height', 'akName' => 'Height')); mkdir($this->getStorageDirectory()); $this->getStorageLocation(); $sample = dirname(__FILE__) . '/StorageLocation/fixtures/sample.txt'; $image = DIR_BASE . '/concrete/images/logo.png'; $fi = new Importer(); $files = array( 'sample1.txt' => $sample, 'sample2.txt' => $sample, 'sample4.txt' => $sample, 'sample5.txt' => $sample, 'awesome.txt' => $sample, 'testing.txt' => $sample, 'logo1.png' => $image, 'logo2.png' => $image, 'logo3.png' => $image, 'foobley.png' => $image, 'test.png' => $image, ); foreach ($files as $filename => $pointer) { $fi->import($pointer, $filename); } $this->list = new \Concrete\Core\File\FileList(); $this->list->ignorePermissions(); } protected function cleanup() { parent::cleanup(); if (file_exists(dirname(__FILE__) . '/test.txt')) { unlink(dirname(__FILE__) . '/test.txt'); } if (file_exists(dirname(__FILE__) . '/test.invalid')) { unlink(dirname(__FILE__) . '/test.invalid'); } } public function testGetPaginationObject() { $pagination = $this->list->getPagination(); $this->assertInstanceOf('\Concrete\Core\Search\Pagination\Pagination', $pagination); } public function testGetUnfilteredTotal() { $this->assertEquals(11, $this->list->getTotalResults()); } public function testGetUnfilteredTotalFromPagination() { $pagination = $this->list->getPagination(); $this->assertEquals(11, $pagination->getTotalResults()); } public function testFilterByTypeValid1() { $this->list->filterByType(\Concrete\Core\File\Type\Type::T_IMAGE); $this->assertEquals(5, $this->list->getTotalResults()); $pagination = $this->list->getPagination(); $this->assertEquals(5, $pagination->getTotalResults()); $pagination->setMaxPerPage(3)->setCurrentPage(1); $results = $pagination->getCurrentPageResults(); $this->assertEquals(3, count($results)); $this->assertInstanceOf('\Concrete\Core\Entity\File\File', $results[0]); } public function testFilterByExtensionAndType() { $this->list->filterByType(\Concrete\Core\File\Type\Type::T_TEXT); $this->list->filterByExtension('txt'); $this->assertEquals(6, $this->list->getTotalResults()); } public function testFilterByKeywords() { $this->list->filterByKeywords('le'); $pagination = $this->list->getPagination(); $this->assertEquals(5, $pagination->getTotalResults()); } public function testFilterBySet() { $fs = \FileSet::add('test'); $f = \File::getByID(1); $f2 = \File::getByID(4); $fs->addFileToSet($f); $fs->addFileToSet($f2); $fs2 = \FileSet::add('test2'); $fs2->addFiletoSet($f); $this->list->filterBySet($fs); $pagination = $this->list->getPagination(); $this->assertEquals(2, $pagination->getTotalResults()); $results = $this->list->getResults(); $this->assertEquals(2, count($results)); $this->assertEquals(4, $results[1]->getFileID()); $this->list->filterBySet($fs2); $results = $this->list->getResults(); $this->assertEquals(1, count($results)); $this->assertEquals(1, $results[0]->getFileID()); $nl = new \Concrete\Core\File\FileList(); $nl->ignorePermissions(); $nl->filterByNoSet(); $results = $nl->getResults(); $this->assertEquals(9, count($results)); } public function testSortByFilename() { $this->list->sortByFilenameAscending(); $pagination = $this->list->getPagination(); $pagination->setMaxPerPage(2); $results = $pagination->getCurrentPageResults(); $this->assertEquals(2, count($results)); $this->assertEquals(5, $results[0]->getFileID()); } public function testAutoSort() { $req = \Request::getInstance(); $req->query->set($this->list->getQuerySortColumnParameter(), 'fv.fvFilename'); $req->query->set($this->list->getQuerySortDirectionParameter(), 'desc'); $nl = new \Concrete\Core\File\FileList(); $nl->ignorePermissions(); $results = $nl->getResults(); $this->assertEquals(6, $results[0]->getFileID()); $this->assertEquals('testing.txt', $results[0]->getFilename()); $req->query->set($this->list->getQuerySortColumnParameter(), null); $req->query->set($this->list->getQuerySortDirectionParameter(), null); } public function testPaginationPagesWithoutPermissions() { $pagination = $this->list->getPagination(); $pagination->setMaxPerPage(2)->setCurrentPage(1); $this->assertEquals(6, $pagination->getTotalPages()); $this->list->filterByType(\Concrete\Core\File\Type\Type::T_IMAGE); $pagination = $this->list->getPagination(); $this->assertEquals(5, $pagination->getTotalResults()); $pagination->setMaxPerPage(2)->setCurrentPage(2); $this->assertEquals(3, $pagination->getTotalPages()); $this->assertTrue($pagination->hasNextPage()); $this->assertTrue($pagination->hasPreviousPage()); $pagination->setCurrentPage(1); $this->assertTrue($pagination->hasNextPage()); $this->assertFalse($pagination->hasPreviousPage()); $pagination->setCurrentPage(3); $this->assertFalse($pagination->hasNextPage()); $this->assertTrue($pagination->hasPreviousPage()); $results = $pagination->getCurrentPageResults(); $this->assertInstanceOf('\Concrete\Core\Entity\File\File', $results[0]); $this->assertEquals(1, count($results[0])); } public function testPaginationWithPermissions() { // first lets make some more files. $sample = dirname(__FILE__) . '/StorageLocation/fixtures/sample.txt'; $image = DIR_BASE . '/concrete/images/logo.png'; $fi = new Importer(); $files = array( 'another.txt' => $sample, 'funtime.txt' => $sample, 'funtime2.txt' => $sample, 'awesome-o' => $sample, 'image.png' => $image, ); foreach ($files as $filename => $pointer) { $fi->import($pointer, $filename); } $nl = new \Concrete\Core\File\FileList(); $nl->setPermissionsChecker(function ($file) { if ($file->getTypeObject()->getGenericType() == \Concrete\Core\File\Type\Type::T_IMAGE) { return true; } else { return false; } }); $nl->sortByFilenameAscending(); $results = $nl->getResults(); $pagination = $nl->getPagination(); $this->assertEquals(-1, $nl->getTotalResults()); $this->assertEquals(6, $pagination->getTotalResults()); $this->assertEquals(6, count($results)); // so there are six "real" results, and 15 total results without filtering. $pagination->setMaxPerPage(4)->setCurrentPage(1); $this->assertEquals(2, $pagination->getTotalPages()); $this->assertTrue($pagination->hasNextPage()); $this->assertFalse($pagination->hasPreviousPage()); // Ok, so the results ought to be the following files, broken up into pages of four, in this order: // foobley.png // image.png // logo1.png // logo2.png // -- page break -- // logo3.png // test.png $results = $pagination->getCurrentPageResults(); $this->assertInstanceOf('\Concrete\Core\Search\Pagination\PermissionablePagination', $pagination); $this->assertEquals(4, count($results)); $this->assertEquals('foobley.png', $results[0]->getFilename()); $this->assertEquals('image.png', $results[1]->getFilename()); $this->assertEquals('logo1.png', $results[2]->getFilename()); $this->assertEquals('logo2.png', $results[3]->getFilename()); $pagination->setCurrentPage(2); $results = $pagination->getCurrentPageResults(); $this->assertEquals('logo3.png', $results[0]->getFilename()); $this->assertEquals('test.png', $results[1]->getFilename()); $this->assertEquals(2, count($results)); $this->assertTrue($pagination->hasPreviousPage()); $this->assertFalse($pagination->hasNextPage()); } public function testFileSearchDefaultColumnSet() { $set = \Concrete\Core\File\Search\ColumnSet\ColumnSet::getCurrent(); $this->assertInstanceOf('\Concrete\Core\File\Search\ColumnSet\DefaultSet', $set); $columns = $set->getColumns(); $this->assertEquals(4, count($columns)); } }
Java
package com.tale.model; import com.blade.jdbc.annotation.Table; import java.io.Serializable; // @Table(name = "t_comments", pk = "coid") public class Comments implements Serializable { private static final long serialVersionUID = 1L; // comment表主键 private Integer coid; // post表主键,关联字段 private Integer cid; // 评论生成时的GMT unix时间戳 private Integer created; // 评论作者 private String author; // 评论所属用户id private Integer author_id; // 评论所属内容作者id private Integer owner_id; // 评论者邮件 private String mail; // 评论者网址 private String url; // 评论者ip地址 private String ip; // 评论者客户端 private String agent; // 评论内容 private String content; // 评论类型 private String type; // 评论状态 private String status; // 父级评论 private Integer parent; public Comments() { } public Integer getCoid() { return coid; } public void setCoid(Integer coid) { this.coid = coid; } public Integer getCid() { return cid; } public void setCid(Integer cid) { this.cid = cid; } public Integer getCreated() { return created; } public void setCreated(Integer created) { this.created = created; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getMail() { return mail; } public void setMail(String mail) { this.mail = mail; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getAgent() { return agent; } public void setAgent(String agent) { this.agent = agent; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public Integer getParent() { return parent; } public void setParent(Integer parent) { this.parent = parent; } public Integer getAuthor_id() { return author_id; } public void setAuthor_id(Integer author_id) { this.author_id = author_id; } public Integer getOwner_id() { return owner_id; } public void setOwner_id(Integer owner_id) { this.owner_id = owner_id; } }
Java
--- title: பாபிலோனின் விழுகை date: 06/02/2020 --- `கேள்வி: கடைசிக்கால பாபிலோனின் விழுகைக்கு அடையாளமாக இருக்கும் பெல்ஷாத் சாருடைய பாபிலோனின் விழுகைபற்றி நாம் என்ன கற்றுக்கொள்ள முடிகிறது? தானி 5:29-31; வெளி 14:8; 16:19; 18:2.` எவ்வளவுதான் குறைகள் இருந்தாலும் பெல்ஷாத்சார் வாக்குத் தவறவில்லை. தானியேல் சொன்ன விளக்கம் கெட்ட செய்தியாக இருந் தாலும்கூட விளக்கத்தை ஏற்றுக்கொண்டான். தான் உறுதியளித்தபடி தீர்க்கதரிசிக்கு பரிசுகளை வழங்குகிறான். தானியேலுடைய செய்தி உண்மை என்பதைஅவன் உணர்ந்த செயலானது, தானியேலுடைய தேவன் உண்மையானவரென அவன் உணர்ந்ததை எடுத்துக்காட்டியது. முன்பு பரிசுகளை மறுத்த தானியேலும்கூட இப்போது ஏற்றுக்கொள் கிறான். விளக்கம்சொல்வதற்கு இனி அவை தடையாக இருக்காது என்பதும் காரணமாக இருக்கலாம். ஆனால் அந்தச் சூழ்நிலையில் அந்தப் பரிசுகளால் பயனில்லை; சாம்ராஜ்யம் விழ இருந்தது. அப்படி யிருந்தாலும் ஒரு மனிதாபிமானத்திற்காக, தீர்க்கதரிசி அந்தப் பரிசை ஏற்றுக்கொள்கிறான்; ஒரு சில மணி நேரங்களே ராஜ்யத்திற்கு தான் மூன்றாம் அதிபதியாக இருக்கப்போவதையும் அறிந்திருந்தான். தீர்க்கதரிசி சொன்னபடி பாபிலோன் விழுகிறது. ராஜாவும் அவ னுடைய அரசவையினரும் குடித்து வெறித்திருந்த நிலையில், சண்டை யில்லாமல் சடிதியில் பாபிலோன் விழுகிறது. பெர்சியர்கள் கால்வாய் ஒன்றை வெட்டி, ஐபிராத்தைத் திருப்பிவிட்டு, அந்த ஆற்றுப்படுகை வழியாக நகரத்திற்குள் அணிவகுத்துச் சென்றதாக ஹெரோடாடஸ் எனும் வரலாற்றாசிரியர் எழுதுகிறார். அன்று இராத்திரியில் பெல்ஷாத் சார் கொல்லப்பட்டான். அவனுடைய அப்பா நபோனிடஸ் ஏற்கனவே நகரத்தை விட்டு ஓடியிருந்தான்; பின்னர் புதிய ஆட்சியாளர்களிடம் சரணடைந்தான். எனவே வரலாற்றிலேயே மிகப்பெரிதான சாம் ராஜ்யம் விழுந்தது.; பொன்னான தலையாகிய பாபிலோன் முடிந்தது. ‘தேவனை அறிந்து, அவருடைய சித்தப்படி செய்ய பெல்ஷாத் சாருக்கு பல வாய்ப்புகள் கொடுக்கப்பட்டன. தன்னுடைய தாத்தா நேபு காத்நேச்சார் மனிதர்களிடமிருந்து தள்ளப்பட்டதைக் கண்டிருந்தான். அரசன் அகந்தையோடு தன் அறிவை குறித்து பெருமைபாராட்டியபோது அதைக் கொடுத்தவர் அதை எடுத்ததையும் பார்த்திருந்தான். ராஜா ராஜ் யத்திலிருந்து துரத்தப்பட்டு, வெளியின் மிருகங்களோடு சஞ்சரிக்க விடப்பட்டதையும் கண்டிருந்தான். அந்தப் பாடங்களை அவன் மறந் திருக்கக் கூடாது; ஆனால் கேளிக்கையும் சுயமகிமையும் மறக்கச்செய் தன. நேபுகாத்நேச்சார்மேல் நியாயத்தீர்ப்பைக் கொண்டுவந்த அதே பாவங்களைச் செய்தான். கிருபையாகக் கொடுக்கப்பட்ட தருணங் களை வீணாக்கினான்; சத்தியத்தை அறியும்படி கொடுக்கப்பட்ட வாய்பப்புகளைப் புறக்கணித்தான்.’ - BE, Apr 25, 1898. `‘சத்தியத்தை அறிந்துகொள்ள’ என்னென்ன வாய்ப்புகள் கொடுக்கப்பட்டுள்ளன? அறிந்து கொள்ளவேண்டிய அனைத்து சத்தியங்களையும் அறிந்ததாக எப்போது சொல்லமுடியும்?`
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Struct template as_feature&lt;tag::weighted_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt;(absolute)&gt;</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Accumulators"> <link rel="up" href="../../statistics_library_reference.html#header.boost.accumulators.statistics.weighted_tail_variate_means_hpp" title="Header &lt;boost/accumulators/statistics/weighted_tail_variate_means.hpp&gt;"> <link rel="prev" href="tag/relative_weigh_idp19953936.html" title="Struct template relative_weighted_tail_variate_means"> <link rel="next" href="as_feature_tag_idp19898304.html" title="Struct template as_feature&lt;tag::weighted_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt;(relative)&gt;"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> <td align="center"><a href="../../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="tag/relative_weigh_idp19953936.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../statistics_library_reference.html#header.boost.accumulators.statistics.weighted_tail_variate_means_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="as_feature_tag_idp19898304.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.accumulators.as_feature_tag_idp19893728"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Struct template as_feature&lt;tag::weighted_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt;(absolute)&gt;</span></h2> <p>boost::accumulators::as_feature&lt;tag::weighted_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt;(absolute)&gt;</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../statistics_library_reference.html#header.boost.accumulators.statistics.weighted_tail_variate_means_hpp" title="Header &lt;boost/accumulators/statistics/weighted_tail_variate_means.hpp&gt;">boost/accumulators/statistics/weighted_tail_variate_means.hpp</a>&gt; </span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> LeftRight<span class="special">,</span> <span class="keyword">typename</span> VariateType<span class="special">,</span> <span class="keyword">typename</span> VariateTag<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="as_feature_tag_idp19893728.html" title="Struct template as_feature&lt;tag::weighted_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt;(absolute)&gt;">as_feature</a><span class="special">&lt;</span><span class="identifier">tag</span><span class="special">::</span><span class="identifier">weighted_tail_variate_means</span><span class="special">&lt;</span> <span class="identifier">LeftRight</span><span class="special">,</span> <span class="identifier">VariateType</span><span class="special">,</span> <span class="identifier">VariateTag</span> <span class="special">&gt;</span><span class="special">(</span><span class="identifier">absolute</span><span class="special">)</span><span class="special">&gt;</span> <span class="special">{</span> <span class="comment">// types</span> <span class="keyword">typedef</span> <a class="link" href="tag/absolute_weigh_idp19949216.html" title="Struct template absolute_weighted_tail_variate_means">tag::absolute_weighted_tail_variate_means</a><span class="special">&lt;</span> <span class="identifier">LeftRight</span><span class="special">,</span> <span class="identifier">VariateType</span><span class="special">,</span> <span class="identifier">VariateTag</span> <span class="special">&gt;</span> <a name="boost.accumulators.as_feature_tag_idp19893728.type"></a><span class="identifier">type</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2005, 2006 Eric Niebler<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="tag/relative_weigh_idp19953936.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../statistics_library_reference.html#header.boost.accumulators.statistics.weighted_tail_variate_means_hpp"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="as_feature_tag_idp19898304.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
Java
"use strict"; const lua = require("../src/lua.js"); const lauxlib = require("../src/lauxlib.js"); const {to_luastring} = require("../src/fengaricore.js"); const toByteCode = function(luaCode) { let L = lauxlib.luaL_newstate(); if (!L) throw Error("failed to create lua state"); if (lauxlib.luaL_loadstring(L, to_luastring(luaCode)) !== lua.LUA_OK) throw Error(lua.lua_tojsstring(L, -1)); let b = []; if (lua.lua_dump(L, function(L, b, size, B) { B.push(...b.slice(0, size)); return 0; }, b, false) !== 0) throw Error("unable to dump given function"); return Uint8Array.from(b); }; module.exports.toByteCode = toByteCode;
Java
<!doctype html> <html> <head> <title>ATS-Queen-Puzzle</title> <style> #canvas-container { margin: 0 auto; width: 920px; height: auto; } </style> <script src="https://cdn.jsdelivr.net/jquery/2.1.1/jquery.min.js"> </script> <script src="https://ats-lang.github.io/LIBRARY/libatscc2js/ATS2-0.3.2/libatscc2js_all.js"> </script> </head> <body> <h1>ATS->C->JS via atscc2js</h1> <div id="canvas-container"> <canvas id="Patsoptaas-Evaluate-canvas" width="920px" height="600px" oncontextmenu="event.preventDefault()"> It seems that canvas is not supported by your browser! </canvas> </div> <!-- HX-2014-11: it must be the last one! --> <script src="./Queen_puzzle_php_dats.js"></script> </body> </html>
Java
require 'active_support/inflector' module Trello class BasicData include ActiveModel::Validations include ActiveModel::Dirty include ActiveModel::Serializers::JSON include Trello::JsonUtils class << self def path_name name.split("::").last.underscore end def find(id, params = {}) client.find(path_name, id, params) end def create(options) client.create(path_name, options) end def save(options) new(options).tap do |basic_data| yield basic_data if block_given? end.save end def parse(response) from_response(response).tap do |basic_data| yield basic_data if block_given? end end def parse_many(response) from_response(response).map do |data| data.tap do |d| yield d if block_given? end end end end def self.register_attributes(*names) options = { readonly: [] } options.merge!(names.pop) if names.last.kind_of? Hash # Defines the attribute getter and setters. class_eval do define_method :attributes do @attributes ||= names.reduce({}) { |hash, k| hash.merge(k.to_sym => nil) } end names.each do |key| define_method(:"#{key}") { @attributes[key] } unless options[:readonly].include?(key.to_sym) define_method :"#{key}=" do |val| send(:"#{key}_will_change!") unless val == @attributes[key] @attributes[key] = val end end end define_attribute_methods names end end def self.one(name, opts = {}) class_eval do define_method(:"#{name}") do |*args| options = opts.dup klass = options.delete(:via) || Trello.const_get(name.to_s.camelize) ident = options.delete(:using) || :id path = options.delete(:path) if path client.find(path, self.send(ident)) else klass.find(self.send(ident)) end end end end def self.many(name, opts = {}) class_eval do define_method(:"#{name}") do |*args| options = opts.dup resource = options.delete(:in) || self.class.to_s.split("::").last.downcase.pluralize klass = options.delete(:via) || Trello.const_get(name.to_s.singularize.camelize) params = options.merge(args[0] || {}) resources = client.find_many(klass, "/#{resource}/#{id}/#{name}", params) MultiAssociation.new(self, resources).proxy end end end def self.client Trello.client end register_attributes :id, readonly: [ :id ] attr_writer :client def initialize(fields = {}) update_fields(fields) end def update_fields(fields) raise NotImplementedError, "#{self.class} does not implement update_fields." end # Refresh the contents of our object. def refresh! self.class.find(id) end # Two objects are equal if their _id_ methods are equal. def ==(other) id == other.id end def client @client ||= self.class.client end end end
Java
/** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* Common Platform CSS */ @-ms-viewport { width: device-width; user-zoom: fixed; max-zoom: 1; min-zoom: 1; } @media (orientation: landscape) { .km-tablet .km-on-ios.km-horizontal.km-web:not(.km-ios-chrome) { position: fixed; bottom: 0; } } .km-root { font-size: .92em; } .km-root.km-retina input, .km-root.km-retina select, .km-root.km-retina textarea { font-size: 1em; } .km-root a { color: inherit; } .km-tablet { font-size: 1em; } .km-root *:focus { outline-width: 0; } .km-root, .km-pane, .km-pane-wrapper { width: 100%; height: 100%; -ms-touch-action: none; -ms-content-zooming: none; -ms-user-select: none; -webkit-user-select: none; -webkit-text-size-adjust: none; -moz-text-size-adjust: none; text-size-adjust: none; overflow-x: hidden; } .km-pane-wrapper { position: absolute; } .km-pane, .km-shim { font-family: sans-serif; } .km-pane { overflow-x: hidden; position: relative; } .km-vertical .km-collapsible-pane { position: absolute; z-index: 2 !important; -webkit-transition: -webkit-transform 350ms ease-out; -ms-transition: -ms-transform 350ms ease-out; -o-transition: -o-transform 350ms ease-out; transition: transform 350ms ease-out; -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .km-vertical .km-expanded-splitview .km-collapsible-pane { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .km-expanded-pane-shim { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; } .km-expanded-splitview .km-expanded-pane-shim { display: block; z-index: 1; } .km-root > * { margin: 0; padding: 0; } .km-root * { -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .km-content { display: block; } .km-view, .km-split-content { top: 0; left: 0; position: absolute; display: -moz-box; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; height: 100%; width: 100%; -moz-box-orient: vertical; -webkit-box-orient: vertical; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-align-items: stretch; -ms-align-items: stretch; align-items: stretch; -webkit-align-content: stretch; align-content: stretch; vertical-align: top; } .k-ff .km-view, .k-ff .km-pane { overflow: hidden; } .k-ff18 .km-view, .k-ff18 .km-pane, .k-ff19 .km-view, .k-ff19 .km-pane, .k-ff20 .km-view, .k-ff20 .km-pane, .k-ff21 .km-view, .k-ff21 .km-pane { position: relative; } .k-ff .km-view { display: -moz-inline-box; display: inline-flex; } .km-content { min-height: 1px; -moz-box-flex: 1; -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; -moz-box-align: stretch; -webkit-box-align: stretch; -ms-flex-align: stretch; flex-align: stretch; width: auto; overflow: hidden; position: relative; } .km-content p, .km-content h1, .km-content h2, .km-content h3, .km-content h4, .km-content h5, .km-content h6 { margin-left: 1rem; margin-right: 1rem; } .km-header, .km-footer { display: block; display: -moz-box; -moz-box-orient: vertical; width: 100%; } .km-header { padding: 0; } .km-footer { background: #1a1a1a; } [data-role="layout"] { display: none; } /** * The angular tags will be converted to div kendo-mobile-view * */ [data-role="view"], [data-role="drawer"], kendo-mobile-view, kendo-mobile-split-view, kendo-mobile-drawer { visibility: hidden; } .km-view { visibility: visible; } .km-header, .km-footer { position: relative; z-index: 1; } @media all and (-webkit-min-device-pixel-ratio: 10000), not all and (-webkit-min-device-pixel-ratio: 0) { .km-view { display: table; } .km-header, .km-footer, .km-content { display: table-row; } .km-header, .km-footer { height: 1px; } } .km-root .k-toolbar, .km-navbar, .km-button, .km-buttongroup, .km-tabstrip, .km-blackberry li.km-actionsheet-cancel > a { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-origin: border-box; position: relative; display: inline-block; padding: .4em .7em; margin: .1rem; overflow: visible; text-decoration: none; } .km-tabstrip, .km-root .k-toolbar, .km-navbar { display: block; padding: .8em; margin: 0; width: 100%; border-width: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-native-scroller { overflow: auto; -webkit-overflow-scrolling: touch; -ms-touch-action: pan-x pan-y; -ms-overflow-style: -ms-autohiding-scrollbar; -ms-scroll-snap-type: proximity; } .km-default-content { padding: 1em; } .km-shim { left: 0; bottom: 0; position: fixed; width: 100%; height: 100% !important; background: rgba(0, 0, 0, 0.6); z-index: 10001; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-root .km-shim { position: absolute; } .km-shim:before { content: "\a0"; height: 100%; width: 0; display: inline-block; vertical-align: middle; } .km-shim .k-animation-container { box-shadow: none; -webkit-box-shadow: none; border: 0; width: auto; } /* Loader */ .km-loader { top: 50%; left: 50%; width: 180px; height: 130px; z-index: 100000; padding: 30px 30px; position: absolute; margin-top: -70px; margin-left: -90px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; background-color: rgba(0, 0, 0, 0.5); } .km-loader h1 { font-size: 1rem; color: white; text-align: center; vertical-align: middle; } .km-loader .km-loading, .km-load-more .km-icon, .km-scroller-refresh .km-icon { animation: km-spin 1s infinite linear; -webkit-animation: km-spin 1s infinite linear; display: block; margin: 0 auto; width: 35px; height: 35px; font-size: 35px; } .km-loader .km-loading:after, .km-load-more .km-icon:after { color: #ccc; } .km-loading-left, .km-loading-right { display: none; } @-webkit-keyframes km-spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @-moz-keyframes km-spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } } @-ms-keyframes km-spin { from { -ms-transform: rotate(0deg); } to { -ms-transform: rotate(360deg); } } @-o-keyframes km-spin { from { -o-transform: rotate(0deg); } to { -o-transform: rotate(360deg); } } @-webkit-keyframes km-ios-spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @-webkit-keyframes km-ios-spin1 { from { -webkit-transform: rotate(-135deg); } to { -webkit-transform: rotate(225deg); } } @-moz-keyframes km-ios-spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } } @-moz-keyframes km-ios-spin1 { from { -moz-transform: rotate(-135deg); } to { -moz-transform: rotate(225deg); } } @keyframes km-ios-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes km-ios-spin1 { from { transform: rotate(-135deg); } to { transform: rotate(225deg); } } /* Stretched View */ .km-stretched-view { display: -moz-box; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } .km-stretched-view > * { width: 100%; } .km-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 100000; } .km-root.km-native-scrolling, .km-root.km-native-scrolling .km-view, .km-root.km-native-scrolling .km-splitview .km-pane { min-height: 100%; height: auto; -webkit-transform: none; overflow-x: visible; } .km-native-scrolling, .km-native-scrolling .km-pane, .km-native-scrolling .km-view { -ms-touch-action: auto; } .km-native-scrolling .km-pane, .km-native-scrolling .km-view { display: block; } .km-native-scrolling .km-content { -ms-flex: auto; } .km-native-scrolling .km-blackberry .km-content { min-height: auto; } /* Restore position:absolute during animation */ .km-native-scrolling .km-splitview { position: absolute; } .km-native-scrolling .km-header { position: fixed; top: 0; } .km-native-scrolling .km-android .km-header { top: auto; bottom: 0; } .km-native-scrolling .km-footer { position: fixed; bottom: 0; } .km-native-scrolling .km-android .km-footer { top: 0; bottom: auto; } .km-native-scrolling .km-badge { z-index: auto; } .km-native-scrolling .km-splitview .km-header, .km-native-scrolling .km-splitview .km-footer, .km-native-scrolling .km-popup.km-pane .km-header, .km-native-scrolling .km-popup.km-pane .km-footer { position: absolute; } .km-native-scrolling .km-modalview .km-header, .km-native-scrolling .km-modalview .km-footer { position: relative; } .km-native-scrolling .km-content { width: 100%; } .km-native-scrolling .km-shim, .km-native-scrolling .km-popup-overlay { position: fixed; top: 0; bottom: 0; height: auto !important; } .km-native-scrolling .km-drawer { position: fixed; top: 0; height: 100% !important; overflow: auto !important; -webkit-overflow-scrolling: touch; } .km-native-scrolling > .km-pane > .km-loader { position: fixed; top: 50%; margin-top: -2em; } .km-native-scrolling .km-header, .km-native-scrolling .km-footer { z-index: 2; } /* Disabled states */ .km-state-disabled { opacity: 0.5; } .km-badge, .km-detail { text-decoration: none; display: inline-block; vertical-align: middle; overflow: hidden; text-align: center; position: absolute; z-index: 1; height: 2em; font-size: .6rem; text-shadow: none; } .km-badge { top: -1em; right: -1em; line-height: 2em; margin-left: .5em; min-width: .9em; padding: 0 .55em; -moz-background-clip: padding-box; -webkit-background-clip: padding-box; background-clip: padding-box; } .km-tabstrip .km-badge { top: -0.2em; right: auto; margin-left: -1em; } /* DetailButtons */ .km-detail { position: absolute; float: right; right: .8rem; top: 50%; margin-top: -0.7rem; width: 1.3rem; height: 1.3rem; font-size: 1rem; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-widget .km-detaildisclose { font-size: .8em; } .k-ff .km-detail { width: 1rem; height: 1rem; } .km-detail .km-text { display: none; } .km-widget .km-rowinsert:after, .km-widget .km-rowdelete:after, .km-widget .km-contactadd:after, .km-widget .km-detaildisclose:after, .km-widget .km-rowinsert:before, .km-widget .km-rowdelete:before, .km-widget .km-contactadd:before, .km-widget .km-detaildisclose:before, .km-detail .km-icon { left: .15em; top: .15em; line-height: 1em; font-size: 1em; position: absolute; } .km-widget .km-detaildisclose:after { left: .1em; top: .25em; text-align: center; font-weight: bold; } /* Buttons */ .km-button { cursor: pointer; outline: 0; text-align: center; } button.km-button { display: inline-block; font: inherit; } .km-button:hover { text-decoration: none; } .km-button::-moz-focus-inner { padding: 0; border: 0; } .km-ios .km-state-disabled .km-button, .km-android .km-state-disabled .km-button, .km-blackberry .km-state-disabled .km-button, .km-meego .km-state-disabled .km-button { color: #aaa; text-shadow: none; } .km-root .km-pane .k-button:focus, .km-root .km-pane .k-button:active, .km-root .km-pane .k-button:focus:active { box-shadow: none; -webkit-box-shadow: none; } .km-buttongroup { padding: .4rem .7rem; -webkit-margin-collapse: separate; margin-collapse: separate; margin: .5em auto; } .km-widget.km-buttongroup { padding: 0; border-color: transparent; background: none; white-space: nowrap; display: table; } .km-buttongroup > .km-button { display: table-cell; } .km-widget.km-buttongroup .km-button { margin: 0; border-width: 1px 0 1px 1px; padding: .48em .9em .44em; } .km-tablet .km-buttongroup .km-button { padding: .4em .8em .34em; } .km-widget.km-navbar .km-buttongroup { font-size: .95rem; line-height: 1em; margin: 0 0 .2em; display: inline-block; height: 1.5em; top: -2px; } .k-toolbar .km-buttongroup { margin: 0; display: inline-block; } .km-tablet .km-navbar .km-buttongroup { top: -1px; } .km-widget.km-navbar .km-buttongroup > .km-button { font-size: 1em; min-width: 4rem; text-align: center; } .km-tablet .km-navbar .km-buttongroup > .km-button { min-width: 6rem; } .km-view .km-buttongroup .km-button:last-child { border-right-width: 1px; } .km-ios .km-buttongroup .km-button { font-size: 1.2em; font-weight: bold; } .km-collapsible { margin: 1em 0; } .km-collapsible.km-collapsibleinset { margin: 1em; } .km-collapsible + .km-collapsible { margin-top: -1em; } .km-collapsible-header { position: relative; border-style: solid; border-width: 1px 0; padding: .4em 20px; } .km-collapsibleinset > .km-collapsible-header { border-width: 1px; } .km-collapsible + .km-collapsible > .km-collapsible-header { border-top-width: 0; } .km-collapsibleinset.km-collapsed > .km-collapsible-header { border-radius: .5em; } .km-collapsibleinset.km-expanded > .km-collapsible-header { border-radius: .5em .5em 0 0; } .km-collapsible-header .km-icon { display: inline-block; font-size: .8em; margin-right: .3em; } .km-collapsible-header > h1, .km-collapsible-header > h2, .km-collapsible-header > h3, .km-collapsible-header > h4, .km-collapsible-header > h5, .km-collapsible-header > h6 { margin: 0; } .km-collapsible-content { border-style: solid; border-width: 1px 0; border-top: 0; padding: .4em; overflow: hidden; } .km-collapsible-header .km-arrow-s, .km-collapsible-header .km-arrow-n { position: absolute; top: .4em; } .km-icon-left .km-arrow-s, .km-icon-left .km-arrow-n { left: .2em; } .km-icon-right .km-arrow-s, .km-icon-right .km-arrow-n { left: auto; right: .2em; } .km-icon-top .km-arrow-s, .km-icon-top .km-arrow-n { position: static; display: block; margin: 0 auto; width: 1em; } .km-collapsibleinset > .km-collapsible-content { border-radius: 0 0 .5em .5em; border-width: 1px; } .km-collapsed > .km-collapsible-content.km-animated { transform: translateY(-0.8em); border-color: transparent; border-bottom: none; visibility: hidden; } .km-animated { -webkit-transition: -webkit-all 0.2s ease-in-out; -ms-transition: -ms-all 0.2s ease-in-out; -o-transition: -o-all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .km-hide-title { display: none; } .km-show-title:after { display: block; content: "\a0"; height: 0; } .km-fill-title:after { height: auto; } .km-footer .km-show-title:after { display: inline-block; } .km-view-title, .km-dialog-title { position: relative; visibility: visible; text-align: center; font-size: 1.4em; line-height: 2.3em; margin-left: auto; margin-right: auto; } .km-horizontal .km-view-title { line-height: 2em; } .km-root .k-toolbar, .km-navbar { padding: 0; -moz-box-flex: 1; -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; position: relative; overflow: hidden; display: block; border-width: 0 0 1px 0; background-color: #fff; } .k-ff.km-root .k-toolbar, .k-ff .km-navbar { overflow: visible; } .km-navbar .km-button { margin-top: .5rem; margin-bottom: .5rem; } .km-navbar .km-no-title { padding-top: .7rem; padding-bottom: .7rem; } .km-horizontal .km-navbar .km-button { margin-top: .3rem; margin-bottom: .3rem; } .km-horizontal .km-navbar .km-no-title { padding-top: .5rem; padding-bottom: .5rem; } .km-tablet.km-root .km-no-title { padding-top: .55rem; padding-bottom: .55rem; } .km-tablet .km-navbar .km-button { margin-top: .45rem; margin-bottom: .45rem; } .km-root .km-pane .km-navbar .km-no-title { visibility: visible; line-height: 0; } /* Navbar */ .km-on-ios.km-black-translucent-status-bar.km-app .km-header .km-navbar { padding-top: 1.4em; background-clip: border-box; } .km-on-ios.km-ios5.km-cordova .km-header .km-navbar, .km-on-ios.km-ios6.km-cordova .km-header .km-navbar { padding-top: 0; } .km-leftitem, .km-rightitem { z-index: 1; position: absolute; right: .5em; } .km-popup .km-rightitem { right: 0; } .km-leftitem { left: .5em; right: auto; } .km-popup .km-leftitem { left: 0; } /* Center left/right item contents */ .km-leftitem, .km-rightitem { height: 100%; } .km-on-ios.km-black-translucent-status-bar.km-app .km-leftitem, .km-on-ios.km-black-translucent-status-bar.km-app .km-rightitem { height: auto; } .km-leftitem > *, .km-rightitem > * { display: inline-block; vertical-align: middle; } .km-leftitem:before, .km-rightitem:before { content: "\a0"; display: inline-block; height: 100%; width: 0; vertical-align: middle; } /* Toolbar */ .km-root .k-toolbar { position: relative; display: block; vertical-align: middle; text-align: right; line-height: 2.2em; border-style: solid; box-shadow: none; -webkit-box-shadow: none; padding: .55em 3.4em .55em .5em; } .km-root .km-widget.k-toolbar { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-root .k-toolbar span.km-icon { vertical-align: middle; } .km-root .k-toolbar .k-button-icon { padding-left: .4em; padding-right: .4em; } .km-root .k-toolbar .k-button-icon .km-icon { margin-left: 0; margin-right: 0; } .km-root .k-toolbar-resizable { overflow: hidden; white-space: nowrap; } .km-root .k-toolbar > * { display: inline-block; vertical-align: middle; text-align: left; line-height: inherit; } .km-root .k-toolbar .km-button { line-height: inherit; } .km-root div.k-toolbar > .k-align-left { float: left; line-height: inherit; } .km-root div.k-toolbar > .k-align-right { float: none; } .km-root .k-toolbar > .km-button, .km-root .k-toolbar .km-buttongroup, .km-root .k-toolbar .k-split-button, .km-root .k-toolbar .k-widget, .km-root .k-toolbar .km-widget, .km-root .k-toolbar .k-textbox, .km-root .k-toolbar label, .km-root .k-toolbar .k-separator { margin: 0 .4em; } .km-root .k-toolbar .k-button-icontext .km-icon { margin-left: -0.15em; } .km-root .k-toolbar .k-split-button { padding-left: 0; } .km-root .k-toolbar .k-split-button .km-button, .km-root .k-toolbar .km-buttongroup .km-group-start { margin: 0; } .km-root .k-toolbar .k-split-button > .km-button { padding-left: 1em; padding-right: .6em; } .km-root .k-toolbar .k-split-button .k-split-button-arrow { margin: 0 0 0 -1px; padding-left: .2em; padding-right: .2em; } .km-root .km-pane .k-toolbar .k-overflow-anchor { border-width: 0; width: 1.5em; height: 100%; margin: 0; font-size: 2.2em; border-radius: 0; position: absolute; top: 0; right: 0; padding: 0; } .km-root .k-overflow-anchor span.km-icon { position: absolute; top: 50%; left: 50%; margin: -0.5em 0 0 -0.5em; } .km-root .k-overflow-anchor .km-icon:after, .km-root .k-overflow-anchor .km-icon:before { margin-left: 0; } .km-root .k-overflow-container .k-item { float: none; border: 0; } .km-root .k-overflow-container .k-overflow-button, .km-root .k-split-container .km-button { text-align: left; display: block; white-space: nowrap; margin: 0 0 1px; } .km-root .k-overflow-container li:last-child .k-overflow-button, .km-root .k-split-container li:last-child .km-button { margin: 0; } .km-root .k-overflow-container .km-buttongroup { padding: 0; } .km-root .k-overflow-container .km-buttongroup > li { display: block; } .km-root .k-overflow-container .k-overflow-group { border-width: 1px 0; border-style: solid; border-radius: 0; padding: 1px 0 0; margin: 0 0 1px; } .km-root .k-overflow-container .km-state-disabled { opacity: 1; } .km-root .k-overflow-container .k-overflow-hidden { display: none; } .km-root .k-overflow-container .k-toolbar-first-visible, .km-root .k-overflow-container .k-overflow-group + .k-overflow-group { border-top: 0; margin-top: 0; padding-top: 0; } .km-root .k-overflow-container .k-toolbar-last-visible { border-bottom: 0; margin-bottom: 0; } .km-root .k-overflow-wrapper .km-actionsheet-wrapper .km-actionsheet { overflow: hidden; overflow-y: auto; } .km-tabstrip { padding: .4rem .7rem; } .km-horizontal .km-tabstrip { padding: .2rem .7rem; } .km-tabstrip { -moz-box-orient: horizontal; -webkit-box-orient: horizontal; -moz-box-align: start; -webkit-box-align: start; -ms-flex-align: start; flex-align: start; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; -moz-box-pack: start; padding: 0; text-align: center; word-spacing: -1em; } .km-tabstrip .km-button { word-spacing: normal; box-shadow: none; -webkit-box-shadow: none; vertical-align: bottom; } @media screen and (-webkit-min-device-pixel-ratio: 0) { .km-tabstrip { word-spacing: normal; width: 100%; } } .km-tabstrip .km-button { font-family: Arial, Helvetica, sans-serif; color: #a8a8a8; padding: .4em .8em; border-width: 0; border-color: transparent; background: none; margin: 0; text-align: center; } .km-tabstrip .km-button:first-child { border-left: 0; } .km-tabstrip .km-button:last-child { border-right: 0; } .km-switch input[type=checkbox] { display: none; } .km-switch, .km-checkbox { text-align: left; font-size: 1rem; display: inline-block; width: 6.4rem; height: 2rem; line-height: 2rem; position: relative; overflow: hidden; } .km-switch-wrapper, .km-slider-wrapper { display: block; height: 100%; width: 100%; overflow: hidden; } .km-switch-background, .km-slider-background { display: block; margin: 0 1px 1px -5em; height: 100%; width: 200%; } .km-switch-container { top: 0; left: 0; position: absolute; display: block; height: 100%; width: 100%; overflow: hidden; background: transparent; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-checkbox { width: 1.8rem; height: 1.8rem; } .km-checkbox-checked:after { content: "\a0"; display: block; width: 100%; height: 100%; } .km-switch-handle { top: 0; left: 0; width: 2.72em; height: 100%; display: inline-block; margin: -1px 0 0 -1px; background-color: #000; } .km-switch-label-on, .km-switch-label-off { display: block; width: 130%; font-size: 1em; line-height: 2em; text-align: center; position: absolute; text-transform: uppercase; } .km-switch-label-off { left: 104%; } .km-switch-label-on { left: -134%; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); } .km-list .km-switch { position: absolute; top: 50%; right: .8rem; margin-top: -1rem; } .km-listview-link:after { width: .5rem; height: .5rem; content: "\a0"; display: inline-block; vertical-align: middle; margin-left: -0.2rem; border-style: solid; border-width: .24rem .24rem 0 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); } .km-listview-wrapper > ul:not(.km-listview) { margin: 0 auto; } .km-list, .km-listview { padding: 0; margin: 0; list-style-type: none; } .km-listinset, .km-listgroupinset { margin: 1em; } .k-ff .km-listinset:after, .k-ff .km-listgroupinset:after { display: block; height: 0; content: "\a0"; } .km-listinset, .km-listgroupinset .km-list { overflow: hidden; } .km-listview .km-switch { margin-top: -0.95rem; position: absolute; right: .8rem; top: 50%; } .km-listview .km-list { text-indent: 0; } .km-list > li, .km-widget .km-listview-link, .km-widget .km-listview-label { margin: 0; display: block; position: relative; list-style-type: none; vertical-align: middle; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; padding: .5em .7em; } .km-list > li { line-height: 1.6em; overflow: hidden; } .km-virtual-list { position: relative; width: 100%; -webkit-transform: translateZ(0); } .km-virtual-list > li { width: 100%; position: absolute; top: 0; -webkit-transform: translateZ(0); } .km-widget.km-list .km-load-more, .km-widget .km-list .km-load-more { border-bottom: 0; } .km-list > li > * { line-height: normal; } .km-group-title { display: block; font-weight: bold; padding: .2em 0; text-indent: .8em; } .km-listgroupinset .km-group-title { margin-top: .65em; line-height: 2em; } .km-list:not(.km-virtual-list) > li:first-child { border-top-width: 0; } .km-list:not(.km-virtual-list) > li:last-child { border-bottom-width: 0; } .km-widget .km-listview-link, .km-widget .km-listview-label { line-height: inherit; text-decoration: none; margin: -0.5em -0.7em; } .km-listview-link:after, .km-listview-label:after { border-color: #777; content: "\a0"; display: block; position: absolute; right: 1rem; top: 50%; margin-top: -0.32rem; } /* Filtering */ .km-filter-form { width: 100%; padding: .5em 0; border: 1px solid transparent; border-width: 1px 0; -webkit-transform: translatez(0); -ms-transform: translatez(0); -o-transform: translatez(0); transform: translatez(0); } .km-filter-wrap { position: relative; margin: 0 .7em; padding: .2em .4em; border: 1px solid transparent; } .km-widget .km-filter-wrap:before { display: inline-block; vertical-align: middle; content: "\e0e9"; font-size: 1.6em; width: 1em; height: 1em; margin-right: -1em; color: inherit; } .km-tablet .km-filter-wrap { max-width: 24em; margin: 0 auto; } .km-filter-wrap > input[type="search"]::-webkit-search-cancel-button { display: none; } .km-filter-wrap input { width: 100%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; border: 0; background: transparent; -moz-appearance: none; -webkit-appearance: none; vertical-align: middle; padding: 0 1.4em; } .km-filter-reset { display: inline-block; margin-left: -1.6em; vertical-align: middle; text-align: center; z-index: 1; text-decoration: none; height: 100%; } .km-filter-reset .km-clear { font-size: 1.6em; width: 1em; height: 1em; display: block; } .km-filter-reset > .km-text { position: absolute; top: -3333px; left: -3333px; } /* Load more */ .km-load-more { display: block; padding: .3em 0 1.2em; height: 3.2em; text-align: center; } /* Pull to refresh */ .km-scroller-pull { width: 100%; display: block; position: absolute; line-height: 3em; font-size: 1.4em; text-align: center; -webkit-transform: translate3d(0, -3em, 0); -ms-transform: translate3d(0, -3em, 0); -o-transform: translate3d(0, -3em, 0); transform: translate3d(0, -3em, 0); } .km-scroller-pull .km-template { display: inline-block; min-width: 200px; text-align: left; } .km-load-more .km-icon, .km-widget .km-scroller-pull .km-icon { display: inline-block; height: 2rem; margin-right: 1rem; vertical-align: middle; width: 2rem; font-size: 2rem; -webkit-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); -webkit-transition: -webkit-transform 300ms linear; -ms-transition: -ms-transform 300ms linear; -o-transition: -o-transform 300ms linear; transition: transform 300ms linear; } .km-widget .km-scroller-release .km-icon { -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } .km-widget .km-scroller-refresh .km-icon { -webkit-transition: none; -ms-transition: none; -o-transition: none; transition: none; } /* Scroller */ .km-touch-scrollbar { position: absolute; visibility: hidden; z-index: 200000; height: .4em; width: .4em; background-color: #333; opacity: 0; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; -o-transform-origin: 0 0; transform-origin: 0 0; -webkit-transition: opacity 0.3s linear; -ms-transition: opacity 0.3s linear; -o-transition: opacity 0.3s linear; transition: opacity 0.3s linear; } .km-vertical-scrollbar { height: 100%; right: 2px; top: 0; } .km-horizontal-scrollbar { width: 100%; left: 0; bottom: 2px; } .km-scrollview, .km-scroll-container { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; -moz-user-select: -moz-none; -webkit-margin-collapse: separate; margin-collapse: separate; } .km-scroll-wrapper { position: relative; } .km-scroll-header { position: absolute; z-index: 1001; width: 100%; top: 0; left: 0; } .km-scrollview { white-space: nowrap; overflow: hidden; position: relative; width: 100%; } .km-scrollview > div > * { -webkit-transform: translatez(0); } .km-scrollview > div > [data-role=page] { vertical-align: top; display: inline-block; min-height: 1px; } .km-scrollview .km-virtual-page { min-height: 1px; position: absolute; top: 0; left: 0; display: inline-block; } .k-ff18 .km-scrollview > div, .k-ff19 .km-scrollview > div, .k-ff20 .km-scrollview > div, .k-ff21 .km-scrollview > div { width: 0; } .km-pages { text-align: center; margin: 0; padding: .6em 0 0; height: 1.5em; } .km-pages li { display: inline-block; width: .5em; height: .55em; margin: 0 .3em; } /* PopUp + ActionSheet */ .km-root .km-popup .k-item, .km-widget.km-actionsheet > li { list-style-type: none; padding: inherit 1em; border-bottom: 1px solid #555; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-widget.km-actionsheet > li { line-height: 2em; border-bottom: 0; } .km-widget.km-actionsheet > li > a { line-height: 1.5em; text-align: left; background: transparent; } .km-root .km-popup .k-list, .km-widget.km-actionsheet { padding: 0; margin: 0; } .km-root .km-popup .k-item:last-child, .km-widget.km-actionsheet > li:last-child { border: 0; } .km-widget.km-actionsheet-wrapper { width: 100%; box-shadow: none; -webkit-box-shadow: none; border: 0; } .km-actionsheet-root.km-shim .k-animation-container { width: 100% !important; height: 100% !important; } .km-tablet .km-pane div.km-actionsheet-phone { background: transparent; } .km-tablet .km-actionsheet-phone li.km-actionsheet-title, .km-tablet div.km-actionsheet-phone li.km-actionsheet-cancel { display: block; } /* PopOver */ .km-popover-root .km-popup-wrapper { position: relative !important; } .km-popup-wrapper, .km-modalview-wrapper { z-index: 10001; position: relative; background: none; border: 0; box-shadow: none; -webkit-box-shadow: none; } .km-popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10002; } .km-popup-arrow, .km-popup-arrow:after, .km-popup-arrow:before { position: absolute; width: 15px; height: 15px; top: 0; left: 0; z-index: 2; } .km-left .km-popup-arrow, .km-right .km-popup-arrow { margin-top: -8px; } .km-up .km-popup-arrow, .km-down .km-popup-arrow { margin-left: -8px; } .km-popup-arrow:after, .km-popup-arrow:before { display: block; content: "\a0"; width: 0; height: 0; } .km-up .km-popup-arrow { top: auto; bottom: 0; } .km-left .km-popup-arrow { left: auto; right: 0; } .km-popup.km-pane { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; width: 100%; height: 100%; min-height: 100px; background: transparent; } .km-popover-root .km-view { position: relative; } .km-popover-root .km-content { -ms-flex: auto; } /* SplitView */ div.km-splitview > .km-content, kendo-mobile-split-view.km-splitview > .km-content { -moz-box-orient: horizontal; -webkit-box-orient: horizontal; -moz-box-direction: normal; -webkit-box-direction: normal; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; } div.km-split-vertical > .km-content, kendo-mobile-split-view.km-split-vertical > .km-content { -moz-box-orient: vertical; -webkit-box-orient: vertical; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; } div.km-split-content > .km-pane { -moz-box-flex: 2; -webkit-box-flex: 2; -webkit-flex: 2; -ms-flex: 2; flex: 2; width: auto; height: auto; } div.km-split-content > .km-pane:first-child { -moz-box-flex: 1; -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; } div.km-split-horizontal > .km-content > .km-pane { top: 0; bottom: 0; } .km-split-vertical > .km-content > .km-pane > .km-view { display: -webkit-box; } /* ModalView */ .km-modalview-root { text-align: center; } .km-modalview-root > .k-animation-container { text-align: left; position: relative !important; top: auto !important; left: auto !important; display: inline-block !important; vertical-align: middle; } .km-modalview, .km-modalview-wrapper:before { overflow: hidden; position: relative; display: -moz-inline-box; display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; width: 100%; height: 100%; vertical-align: middle; max-height: 100%; } .km-modalview .km-content { box-flex: 1; } .km-auto-height .km-content { -ms-flex: auto; } .km-native-scrolling .km-view.km-modalview { display: -webkit-inline-flex; display: inline-flex; } .km-modalview-root:before, .km-modalview-wrapper:before { vertical-align: middle; height: 100%; margin-left: -1px; content: "\a0"; width: 0px; display: inline-block; } /* Drawer */ .km-drawer, [data-role=drawer] { top: 0; left: auto; width: 250px; } .km-drawer .km-header, .km-drawer .km-footer { z-index: 0; } .km-left-drawer { left: 0; } .km-right-drawer { right: 0; } /* Forms and icons */ .km-item label:before, .km-item label.km-item-checked:after { position: absolute; content: " "; display: block; top: 50%; left: .6em; width: 36px; height: 36px; margin-top: -18px; } /* Slider */ .km-widget .k-slider { line-height: .6em; position: relative; display: inline-block; vertical-align: middle; text-align: center; } .km-widget .k-slider-horizontal { width: 50%; height: .6em; line-height: .6em; } .km-list .k-slider { position: absolute; right: 0; margin-top: -0.5em; top: 50%; } .km-root .k-slider-track { left: 1em !important; right: 1em; height: 100%; display: block; position: absolute; border: .5em solid transparent; border-width: .5em 0; } .km-widget .k-slider-horizontal .k-slider-track { width: auto !important; } .km-widget .k-slider .k-slider-track { background-clip: padding-box; } .km-widget .k-slider-track, .km-widget .k-slider-selection { margin-top: 0; border-radius: 5px; box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3); } .km-widget .k-slider-horizontal .k-slider-selection { top: 0; height: 100%; } .km-widget .k-slider-items { margin: 0; } .km-widget .k-slider .k-draghandle { text-indent: -3333px; left: 0; width: 1.2em; height: 1.2em; display: block; position: absolute; } .km-widget .k-slider-tooltip { display: none; } /* Dialog */ .km-dialog { position: absolute; min-width: 19em; max-width: 25em; overflow: hidden; } .km-dialog-title { position: static; float: none; height: 2.6em; margin-top: -2.6em; font-size: 1.22em; line-height: 3em; } .km-dialog:before { content: "\a0"; display: block; overflow: visible; width: 100%; height: 3em; opacity: .2; } .km-dialog-content { font-weight: normal; min-height: 2em; text-align: center; } .km-dialog .km-button { display: block; margin: .4em; font-size: 1.3em; text-align: center; padding: .44em; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } /* Form elements */ .km-list input[type=text]:not(.k-input), .km-list input[type=password], .km-list input[type=search], .km-list input[type=number], .km-list input[type=tel], .km-list input[type=url], .km-list input[type=email], .km-list input[type=file], .km-list input[type=month], .km-list input[type=color], .km-list input[type=week], .km-list input[type=date], .km-list input[type=time], .km-list input[type=datetime], .km-list input[type=datetime-local], .km-list select:not([multiple]), .km-list .k-dropdown, .km-list textarea { width: 50%; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; font-size: 1.2em; position: absolute; top: 50%; line-height: normal; z-index: 1; right: 0; margin-top: -1em; } .km-widget .k-slider .k-tick, .km-widget .k-slider .k-label, .km-widget .k-slider .k-button { display: none; } .km-list textarea { position: relative; width: -webkit-calc(50% + .7em); width: -moz-calc(50% + .7em); width: calc(50% + .7em); margin-right: -0.7em; } .km-list input, .km-list select, .km-list textarea, .km-list input[type=checkbox], .km-list input[type=radio] { appearance: none; -moz-appearance: none; -webkit-appearance: none; } .km-list input[type=checkbox], .km-list input[type=radio] { position: absolute; top: 50%; right: .7em; margin-top: -0.5em; background: none; } .km-widget input, .km-widget textarea { -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text; } .km-widget input[readonly], .km-widget input[type=image], .km-widget select:not([multiple]) { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .km-list textarea { top: 0; } .km-list .k-dropdown { line-height: 1.4em; } .km-list .k-dropdown, .km-list .k-dropdown .k-input { background-color: transparent; } .km-list .k-dropdown-wrap { display: inline-block; } .km-list .km-listview-label:after, .km-list input ~ .km-listview-link:after, .km-list textarea ~ .km-listview-link:after, .km-list select ~ .km-listview-link:after, .km-list .k-dropdown ~ .km-listview-link:after { display: none; } .km-list .k-dropdown select, .km-list .k-dropdown .k-select { display: none; } .km-widget .km-list textarea { position: relative; float: right; margin-top: 0; font-family: inherit; } /* Checkboxes and Radios */ .km-listview-label input[type=radio], .km-listview-label input[type=checkbox] { border: 0; font-size: inherit; width: 1em; height: .9em; } /* animation classes */ .k-fx-end .k-fx-next, .k-fx-end .k-fx-current { -webkit-transition: all 350ms ease-out; -ms-transition: all 350ms ease-out; -o-transition: all 350ms ease-out; transition: all 350ms ease-out; } .k-fx { position: relative; } .k-fx .k-fx-current { z-index: 0; } .k-fx .k-fx-next { z-index: 1; } .k-fx-hidden, .k-fx-hidden * { visibility: hidden !important; } .k-fx-reverse .k-fx-current { z-index: 1; } .k-fx-reverse .k-fx-next { z-index: 0; } /* Zoom */ .k-fx-zoom.k-fx-start .k-fx-next { -webkit-transform: scale(0) !important; -ms-transform: scale(0) !important; -o-transform: scale(0) !important; transform: scale(0) !important; } .k-fx-zoom.k-fx-end .k-fx-next { -webkit-transform: scale(1) !important; -ms-transform: scale(1) !important; -o-transform: scale(1) !important; transform: scale(1) !important; } .k-fx-zoom.k-fx-reverse.k-fx-start .k-fx-next, .k-fx-zoom.k-fx-reverse.k-fx-end .k-fx-next { -webkit-transform: scale(1) !important; -ms-transform: scale(1) !important; -o-transform: scale(1) !important; transform: scale(1) !important; } .k-fx-zoom.k-fx-reverse.k-fx-start .k-fx-current { -webkit-transform: scale(1) !important; -ms-transform: scale(1) !important; -o-transform: scale(1) !important; transform: scale(1) !important; } .k-fx-zoom.k-fx-reverse.k-fx-end .k-fx-current { -webkit-transform: scale(0) !important; -ms-transform: scale(0) !important; -o-transform: scale(0) !important; transform: scale(0) !important; } /* Fade */ .k-fx-fade.k-fx-start .k-fx-next { will-change: opacity; opacity: 0; } .k-fx-fade.k-fx-end .k-fx-next { opacity: 1; } .k-fx-fade.k-fx-reverse.k-fx-start .k-fx-current { will-change: opacity; opacity: 1; } .k-fx-fade.k-fx-reverse.k-fx-end .k-fx-current { opacity: 0; } /* Slide */ .k-fx-slide { /* left */ /* left reverse */ /* right */ } .k-fx-slide.k-fx-end .k-fx-next .km-content, .k-fx-slide.k-fx-end .k-fx-next .km-header, .k-fx-slide.k-fx-end .k-fx-next .km-footer, .k-fx-slide.k-fx-end .k-fx-current .km-content, .k-fx-slide.k-fx-end .k-fx-current .km-header, .k-fx-slide.k-fx-end .k-fx-current .km-footer { -webkit-transition: all 350ms ease-out; -ms-transition: all 350ms ease-out; -o-transition: all 350ms ease-out; transition: all 350ms ease-out; } .k-fx-slide.k-fx-start .k-fx-next .km-content { will-change: transform; -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-slide.k-fx-start .k-fx-next .km-header, .k-fx-slide.k-fx-start .k-fx-next .km-footer { will-change: opacity; opacity: 0; } .k-fx-slide.k-fx-end .k-fx-current .km-content { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-slide.k-fx-end .k-fx-next .km-header, .k-fx-slide.k-fx-end .k-fx-next .km-footer { opacity: 1; } .k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-content { will-change: transform; -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-content { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-content { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-content { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-header, .k-fx-slide.k-fx-reverse.k-fx-start .k-fx-current .km-footer { will-change: opacity; opacity: 1; } .k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-header, .k-fx-slide.k-fx-reverse.k-fx-start .k-fx-next .km-footer { opacity: 1; } .k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-header, .k-fx-slide.k-fx-reverse.k-fx-end .k-fx-current .km-footer { opacity: 0; } .k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-header, .k-fx-slide.k-fx-reverse.k-fx-end .k-fx-next .km-footer { opacity: 1; } .k-fx-slide.k-fx-right { /* right reverse */ } .k-fx-slide.k-fx-right.k-fx-start .k-fx-next .km-content { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-slide.k-fx-right.k-fx-end .k-fx-current .km-content { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current .km-content { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current .km-content { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-slide.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next .km-content { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-slide.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next .km-content { -webkit-transform: translatex(0%); -ms-transform: translatex(0%); -o-transform: translatex(0%); transform: translatex(0%); } /* Tile */ .k-fx-tile { /* left */ /* left reverse */ /* right */ } .k-fx-tile.k-fx-start .k-fx-next { will-change: transform; -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-end .k-fx-current { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-reverse.k-fx-start .k-fx-current { will-change: transform; -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-tile.k-fx-reverse.k-fx-end .k-fx-current { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-reverse.k-fx-start .k-fx-next { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-reverse.k-fx-end .k-fx-next { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-tile.k-fx-right { /* right reverse */ } .k-fx-tile.k-fx-right.k-fx-start .k-fx-next { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-right.k-fx-end .k-fx-current { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next { -webkit-transform: translatex(0%); -ms-transform: translatex(0%); -o-transform: translatex(0%); transform: translatex(0%); } /* Tile */ .k-fx-tile { /* left */ /* left reverse */ /* right */ } .k-fx-tile.k-fx-start .k-fx-next { will-change: transform; -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-end .k-fx-current { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-reverse.k-fx-start .k-fx-current { will-change: transform; -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-tile.k-fx-reverse.k-fx-end .k-fx-current { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-reverse.k-fx-start .k-fx-next { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-reverse.k-fx-end .k-fx-next { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-tile.k-fx-right { /* right reverse */ } .k-fx-tile.k-fx-right.k-fx-start .k-fx-next { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-right.k-fx-end .k-fx-current { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-current { -webkit-transform: translatex(0); -ms-transform: translatex(0); -o-transform: translatex(0); transform: translatex(0); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-current { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-start .k-fx-next { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx-tile.k-fx-right.k-fx-reverse.k-fx-end .k-fx-next { -webkit-transform: translatex(0%); -ms-transform: translatex(0%); -o-transform: translatex(0%); transform: translatex(0%); } /* Overlay */ .k-fx.k-fx-overlay.k-fx-start .k-fx-next, .k-fx.k-fx-overlay.k-fx-left.k-fx-start .k-fx-next { will-change: transform; -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx.k-fx-overlay.k-fx-right.k-fx-start .k-fx-next { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx.k-fx-overlay.k-fx-up.k-fx-start .k-fx-next { -webkit-transform: translatey(100%); -ms-transform: translatey(100%); -o-transform: translatey(100%); transform: translatey(100%); } .k-fx.k-fx-overlay.k-fx-down.k-fx-start .k-fx-next { -webkit-transform: translatey(-100%); -ms-transform: translatey(-100%); -o-transform: translatey(-100%); transform: translatey(-100%); } .k-fx.k-fx-overlay.k-fx-reverse.k-fx-start .k-fx-next { -webkit-transform: none; -ms-transform: none; -o-transform: none; transform: none; } .k-fx.k-fx-overlay.k-fx-reverse.k-fx-start .k-fx-current { will-change: transform; -webkit-transform: none; -ms-transform: none; -o-transform: none; transform: none; } .k-fx.k-fx-overlay.k-fx-reverse.k-fx-end .k-fx-current, .k-fx.k-fx-overlay.k-fx-reverse.k-fx-left.k-fx-end .k-fx-current { -webkit-transform: translatex(100%); -ms-transform: translatex(100%); -o-transform: translatex(100%); transform: translatex(100%); } .k-fx.k-fx-overlay.k-fx-reverse.k-fx-right.k-fx-end .k-fx-current { -webkit-transform: translatex(-100%); -ms-transform: translatex(-100%); -o-transform: translatex(-100%); transform: translatex(-100%); } .k-fx.k-fx-overlay.k-fx-reverse.k-fx-up.k-fx-end .k-fx-current { -webkit-transform: translatey(100%); -ms-transform: translatey(100%); -o-transform: translatey(100%); transform: translatey(100%); } .k-fx.k-fx-overlay.k-fx-reverse.k-fx-down.k-fx-end .k-fx-current { -webkit-transform: translatey(-100%); -ms-transform: translatey(-100%); -o-transform: translatey(-100%); transform: translatey(-100%); } /* Platform specific workarounds */ .km-on-wp .km-view, .km-on-wp .km-header, .km-on-wp .km-footer, .km-on-wp .km-slider, .km-on-wp .km-switch, .km-on-wp .km-filter-reset, .km-on-wp .km-shim .k-animation-container, .km-on-wp .km-scroll-container { transform: translateZ(0); } .km-ios, .km-blackberry, .km-on-ios .km-view, .km-on-ios .km-header, .km-on-ios .km-footer, .km-on-ios .km-slider, .km-on-ios .km-switch, .km-on-ios .km-group-title, .km-on-ios .km-filter-reset, .km-on-ios .km-shim .k-animation-container, .km-on-ios .km-scroll-container, .km-on-blackberry .km-view, .km-on-blackberry .km-content, .km-on-blackberry .km-header, .km-on-blackberry .km-footer, .km-on-blackberry .km-icon, .km-on-blackberry .km-switch, .km-on-blackberry .km-popup .k-item, .km-on-blackberry .km-actionsheet-wrapper, .km-on-android.km-4 .k-slider { -webkit-transform: translatez(0); } .km-on-android.km-4 .km-switch, .km-on-android.km-4 .km-listview-wrapper, .km-on-android.km-4 .km-content, .km-on-android.km-4 .km-switch-handle, .km-android.km-4.km-on-android .km-switch-wrapper, .km-on-android.km-4 .km-scroll-container, .km-on-meego .km-content, .km-on-meego .km-switch, .km-on-meego .km-icon, .km-on-meego .km-header, .km-on-meego .km-footer, .km-on-meego .km-content, .km-on-meego .km-switch-handle, .km-on-meego .km-switch-wrapper { -webkit-transform: translatez(0); -webkit-backface-visibility: hidden; } .km-android4.km-ios-chrome .km-listview-wrapper { -webkit-transform: none; } .km-native-scrolling .km-header, .km-native-scrolling .km-footer, .km-native-scrolling .km-shim, .km-native-scrolling .km-popup-overlay, .km-native-scrolling .km-drawer, .km-native-scrolling > .km-pane > .km-loader, .km-on-android.km-4 .km-scroller-pull .km-icon { -webkit-backface-visibility: hidden; } .km-on-android.km-4 input { -webkit-user-modify: read-write-plaintext-only; } .km-wp .km-view .km-absolute, .km-meego .km-view .km-absolute { position: absolute; } /* Icon per-widget styles */ .km-detail .km-icon, .km-button .km-icon, .km-list .km-icon, .km-ios .km-button .km-icon { width: 1em; height: 1em; font-size: 1em; margin-left: -0.3em; margin-right: 0.3em; vertical-align: baseline; display: inline-block; background-size: auto 100%; } html .km-widget .km-view .km-notext { margin-left: 0; margin-right: 0; } .km-buttongroup .km-button .km-icon { width: 1em; height: 1em; font-size: 1em; margin: .05em .16em 0 0; } .km-tabstrip .km-button .km-icon { width: 2.5rem; height: 2.5rem; font-size: 2.5rem; } .km-tabstrip .km-image, .km-tabstrip .km-button .km-icon { margin: 0 auto .1em; display: inline-block; } .km-tabstrip .km-text { display: block; } .km-phone .km-tabstrip .km-icon { height: 2.2rem; width: 2.2rem; font-size: 2.2rem; } .km-phone .km-horizontal .km-tabstrip .km-icon { height: 2rem; width: 2rem; font-size: 2rem; } /* Icons */ @font-face { font-family: "Kendo UI"; src: url("images/kendoui.woff?v=1.1") format("woff"), url("images/kendoui.ttf?v=1.1") format("truetype"), url("images/kendoui.svg#kendoui") format("svg"); } body:before { font-family: "Kendo UI"; content: "\a0"; font-size: 0; width: 0; height: 0; position: absolute; z-index: -1; } .km-root .km-pane .km-view .km-icon { -webkit-background-clip: text; background-size: 0 0; } .km-icon { position: relative; } .km-icon:after, .km-icon:before, .km-contactadd:after, .km-contactadd:before, .km-rowdelete:after, .km-rowdelete:before, .km-rowinsert:after, .km-rowinsert:before, .km-detaildisclose:after, .km-detaildisclose:before, .km-loading:after, .km-filter-wrap:before { position: relative; content: "\a0"; display: block; width: 100%; height: 100%; text-align: left; vertical-align: middle; background-size: auto; font: 1em/1em "Kendo UI"; } .km-icon:before, .km-contactadd:before, .km-rowdelete:before, .km-rowinsert:before, .km-detaildisclose:before { position: absolute; margin-top: 1px; color: rgba(0, 0, 0, 0.7); display: none; } .km-state-active .km-icon:before, .km-state-active .km-contactadd:before, .km-state-active .km-rowdelete:before, .km-state-active .km-rowinsert:before, .km-state-active .km-detaildisclose:before { display: block; } .km-ios7 .km-detaildisclose:after { font-family: serif; } .km-ios7 .km-icon:before, .km-ios7 .km-contactadd:before, .km-ios7 .km-rowdelete:before, .km-ios7 .km-rowinsert:before, .km-ios7 .km-detaildisclose:before { display: none; } .k-webkit .km-ios:not(.km-android):not(.km-blackberry6):not(.km-blackberry7) .km-icon:after, .k-webkit .km-blackberry:not(.km-android):not(.km-blackberry6):not(.km-blackberry7) .km-icon:after, .k-safari .km-ios:not(.km-android):not(.km-blackberry6):not(.km-blackberry7) .km-icon:after, .k-safari .km-blackberry:not(.km-android):not(.km-blackberry6):not(.km-blackberry7) .km-icon:after { background-image: inherit; background-repeat: inherit; background-position: inherit; background-color: currentcolor; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .km-root .km-pane.km-on-blackberry.km-blackberry6 .km-view .km-icon:after, .km-root .km-pane.km-on-blackberry.km-blackberry7 .km-view .km-icon:after, .km-root .km-pane.km-pane.km-on-android .km-view .km-icon:after, .km-root .km-pane.km-pane.km-on-meego .km-view .km-icon:after { background: none; -webkit-text-fill-color: inherit; } .km-contactadd:after, .km-contactadd:before, .km-rowinsert:after, .km-rowinsert:before { content: "\E039"; } .km-rowdelete:after, .km-rowdelete:before { content: "\E03a"; } .km-detaildisclose:after, .km-detaildisclose:before { content: "\E0E2"; } .km-action:after, .km-action:before { content: "\e0ca"; } .km-add:after, .km-add:before { content: "\e0cb"; } .km-arrow-n:after, .km-arrow-n:before { content: "\e001"; } .km-arrow-s:after, .km-arrow-s:before { content: "\e002"; } .km-battery:after, .km-battery:before { content: "\e0ce"; } .km-bookmarks:after, .km-bookmarks:before { content: "\e0cf"; } .km-camera:after, .km-camera:before { content: "\e0d0"; } .km-cart:after, .km-cart:before { content: "\e0d1"; } .km-edit:after, .km-compose:after, .km-edit:before, .km-compose:before { content: "\e0d5"; } .km-contacts:after, .km-contacts:before { content: "\e0e4"; } .km-trash:after, .km-delete:after, .km-trash:before, .km-delete:before { content: "\e0ec"; } .km-details:after, .km-details:before { content: "\e0e2"; } .km-download:after, .km-downloads:after, .km-download:before, .km-downloads:before { content: "\e0d4"; } .km-fastforward:after, .km-fastforward:before { content: "\e0d9"; } .km-toprated:after, .km-favorites:after, .km-toprated:before, .km-favorites:before { content: "\e0d7"; } .km-featured:after, .km-featured:before { content: "\e0d8"; } .km-globe:after, .km-globe:before { content: "\e0dc"; } .km-history:after, .km-history:before { content: "\e0e7"; } .km-home:after, .km-home:before { content: "\e0dd"; } .km-info:after, .km-about:after, .km-info:before, .km-about:before { content: "\e0de"; } .km-minus:after, .km-minus:before { content: "\e033"; } .km-more:after, .km-more:before { content: "\e0e0"; } .km-mostrecent:after, .km-mostrecent:before { content: "\e0cc"; } .km-mostviewed:after, .km-mostviewed:before { content: "\e0d6"; } .km-organize:after, .km-organize:before { content: "\e0eb"; } .km-pause:after, .km-pause:before { content: "\e0e3"; } .km-play:after, .km-play:before { content: "\e0e5"; } .km-plus:after, .km-plus:before { content: "\e032"; } .km-recents:after, .km-recents:before { content: "\e0d2"; } .km-refresh:after, .km-refresh:before { content: "\e0e6"; } .km-reply:after, .km-reply:before { content: "\e0ed"; } .km-rewind:after, .km-rewind:before { content: "\e0e8"; } .km-search:after, .km-search:before { content: "\e0e9"; } .km-settings:after, .km-settings:before { content: "\e0da"; } .km-share:after, .km-share:before { content: "\e0df"; } .km-sounds:after, .km-volume:after, .km-sounds:before, .km-volume:before { content: "\e0ef"; } .km-stop:after, .km-stop:before { content: "\e0ea"; } .km-wifi:after, .km-wifi:before { content: "\e0f0"; } .km-drawer-icon:after, .km-drawer-icon:before { content: "\e105"; } .km-root .km-pane .km-icon.km-check { -webkit-background-clip: initial; } .km-root .km-pane .km-check:checked:after, .km-widget .km-check:checked:after { content: "\e227"; } .km-android .km-more:after, .km-android .km-more:before { content: "\e0e1"; } .km-meego .km-more:after, .km-meego .km-more:before { content: "\e0f1"; } .km-wp .km-loading:after, .km-wp .km-load-more .km-icon:after, .km-wp .km-scroller-refresh .km-icon:after { content: "\e0f6"; } .km-meego .km-loading:after, .km-meego .km-load-more .km-icon:after, .km-meego .km-scroller-refresh .km-icon:after { content: "\e0f6"; } .km-root .km-android .km-loading:after, .km-android .km-load-more .km-icon:after, .km-root .km-android .km-scroller-refresh .km-icon:after { content: "\e0f6"; } .km-scroller-pull .km-icon:after { content: "\e0f2"; } .km-icon.km-phone:after, .km-ios7 .km-state-active .km-phone:after { content: "\e326"; } .km-ios7 .km-detaildisclose:after { content: "i"; } .km-ios7 .km-action:after { content: "\e1ff"; } .km-ios7 .km-add:after { content: "\e200"; } .km-ios7 .km-mostrecent:after { content: "\e201"; } .km-ios7 .km-battery:after { content: "\e203"; } .km-ios7 .km-bookmarks:after { content: "\e204"; } .km-ios7 .km-camera:after { content: "\e205"; } .km-ios7 .km-cart:after { content: "\e206"; } .km-ios7 .km-recents:after { content: "\e207"; } .km-ios7 .km-download:after, .km-ios7 .km-downloads:after { content: "\e209"; } .km-ios7 .km-edit:after { content: "\e20a"; } .km-ios7 .km-mostviewed:after { content: "\e20b"; } .km-ios7 .km-toprated:after, .km-ios7 .km-favorites:after { content: "\e20c"; } .km-ios7 .km-featured:after { content: "\e20d"; } .km-ios7 .km-fastforward:after { content: "\e20e"; } .km-ios7 .km-settings:after { content: "\e20f"; } .km-ios7 .km-globe:after { content: "\e211"; } .km-ios7 .km-home:after { content: "\e212"; } .km-ios7 .km-info:after, .km-ios7 .km-about:after { content: "\e213"; } .km-ios7 .km-share:after { content: "\e214"; } .km-ios7 .km-more:after { content: "\e215"; } .km-ios7 .km-details:after { content: "\e217"; } .km-ios7 .km-pause:after { content: "\e218"; } .km-ios7 .km-contacts:after { content: "\e219"; } .km-ios7 .km-play:after { content: "\e21a"; } .km-ios7 .km-refresh:after { content: "\e21b"; } .km-ios7 .km-history:after { content: "\e21c"; } .km-ios7 .km-rewind:after { content: "\e21d"; } .km-ios7 .km-search:after { content: "\e21e"; } .km-ios7 .km-stop:after { content: "\e21f"; } .km-ios7 .km-organize:after { content: "\e220"; } .km-ios7 .km-trash:after, .km-ios7 .km-delete:after { content: "\e221"; } .km-ios7 .km-reply:after { content: "\e222"; } .km-ios7 .km-forward:after { content: "\e223"; } .km-ios7 .km-sounds:after, .km-ios7 .km-volume:after { content: "\e224"; } .km-ios7 .km-wifi:after { content: "\e225"; } .km-ios7 .km-phone:after { content: "\e226"; } .km-ios7 .km-state-active .km-action:after { content: "\e2ff"; } .km-ios7 .km-state-active .km-add:after { content: "\e300"; } .km-ios7 .km-state-active .km-mostrecent:after { content: "\e301"; } .km-ios7 .km-state-active .km-battery:after { content: "\e303"; } .km-ios7 .km-state-active .km-bookmarks:after { content: "\e304"; } .km-ios7 .km-state-active .km-camera:after { content: "\e305"; } .km-ios7 .km-state-active .km-cart:after { content: "\e306"; } .km-ios7 .km-state-active .km-recents:after { content: "\e307"; } .km-ios7 .km-state-active .km-download:after, .km-ios7 .km-state-active .km-downloads:after { content: "\e309"; } .km-ios7 .km-state-active .km-edit:after { content: "\e30a"; } .km-ios7 .km-state-active .km-mostviewed:after { content: "\e30b"; } .km-ios7 .km-state-active .km-toprated:after, .km-ios7 .km-state-active .km-favorites:after { content: "\e30c"; } .km-ios7 .km-state-active .km-featured:after { content: "\e30d"; } .km-ios7 .km-state-active .km-fastforward:after { content: "\e30e"; } .km-ios7 .km-state-active .km-settings:after { content: "\e30f"; } .km-ios7 .km-state-active .km-globe:after { content: "\e311"; } .km-ios7 .km-state-active .km-home:after { content: "\e312"; } .km-ios7 .km-state-active .km-info:after, .km-ios7 .km-state-active .km-about:after { content: "\e313"; } .km-ios7 .km-state-active .km-share:after { content: "\e314"; } .km-ios7 .km-state-active .km-more:after { content: "\e315"; } .km-ios7 .km-state-active .km-details:after { content: "\e317"; } .km-ios7 .km-state-active .km-pause:after { content: "\e318"; } .km-ios7 .km-state-active .km-contacts:after { content: "\e319"; } .km-ios7 .km-state-active .km-play:after { content: "\e31a"; } .km-ios7 .km-state-active .km-refresh:after { content: "\e31b"; } .km-ios7 .km-state-active .km-history:after { content: "\e31c"; } .km-ios7 .km-state-active .km-rewind:after { content: "\e31d"; } .km-ios7 .km-state-active .km-search:after { content: "\e31e"; } .km-ios7 .km-state-active .km-stop:after { content: "\e31f"; } .km-ios7 .km-state-active .km-organize:after { content: "\e320"; } .km-ios7 .km-state-active .km-trash:after, .km-ios7 .km-state-active .km-delete:after { content: "\e321"; } .km-ios7 .km-state-active .km-reply:after { content: "\e322"; } .km-ios7 .km-state-active .km-forward:after { content: "\e323"; } .km-ios7 .km-state-active .km-sounds:after, .km-ios7 .km-state-active .km-volume:after { content: "\e324"; } .km-ios7 .km-state-active .km-wifi:after { content: "\e325"; } .km-arrowdown:after, .km-arrowdown:before { content: "\e002"; } .km-wp .km-scroller-pull .km-icon:after { content: "\E0D4"; } .km-on-wp.km-app .km-icon:after, .km-on-wp.km-app .km-filter-wrap:before, .km-on-wp.km-app .km-state-active .km-icon:after { color: transparent; background-image: url("images/wp8_icons.png"); background-size: auto 100%; height: 1em; margin-top: 0; vertical-align: middle; } .km-wp-light.km-app .km-icon:after, .km-wp-light.km-app .km-filter-wrap:before { background-image: url("images/wp8_inverseicons.png"); } .km-on-wp.km-app .km-icon { line-height: 1em; } .km-on-wp.km-app .km-icon:before { display: none; } .km-on-wp.km-app .km-action:after { background-position-x: 20%; } .km-on-wp.km-app .km-add:after, .km-on-wp.km-app .km-filter-reset .km-clear:after { background-position-x: 22%; } .km-on-wp.km-app .km-battery:after { background-position-x: 24%; } .km-on-wp.km-app .km-bookmarks:after { background-position-x: 26%; } .km-on-wp.km-app .km-camera:after { background-position-x: 28%; } .km-on-wp.km-app .km-cart:after { background-position-x: 30%; } .km-on-wp.km-app .km-edit:after, .km-on-wp.km-app .km-compose:after { background-position-x: 32%; } .km-on-wp.km-app .km-contacts:after { background-position-x: 34%; } .km-on-wp.km-app .km-trash:after, .km-on-wp.km-app .km-delete:after { background-position-x: 36%; } .km-on-wp.km-app .km-details:after { background-position-x: 38%; } .km-on-wp.km-app .km-download:after, .km-on-wp.km-app .km-downloads:after { background-position-x: 40%; } .km-on-wp.km-app .km-fastforward:after { background-position-x: 42%; } .km-on-wp.km-app .km-toprated:after, .km-on-wp.km-app .km-favorites:after { background-position-x: 44%; } .km-on-wp.km-app .km-featured:after { background-position-x: 46%; } .km-on-wp.km-app .km-globe:after { background-position-x: 48%; } .km-on-wp.km-app .km-history:after { background-position-x: 50%; } .km-on-wp.km-app .km-home:after { background-position-x: 52%; } .km-on-wp.km-app .km-info:after, .km-on-wp.km-app .km-about:after { background-position-x: 54%; } .km-on-wp.km-app .km-more:after { background-position-x: 56%; } .km-on-wp.km-app .km-mostrecent:after { background-position-x: 58%; } .km-on-wp.km-app .km-mostviewed:after { background-position-x: 60%; } .km-on-wp.km-app .km-organize:after { background-position-x: 62%; } .km-on-wp.km-app .km-pause:after { background-position-x: 64%; } .km-on-wp.km-app .km-play:after { background-position-x: 66%; } .km-on-wp.km-app .km-recents:after { background-position-x: 68%; } .km-on-wp.km-app .km-refresh:after { background-position-x: 70%; } .km-on-wp.km-app .km-reply:after { background-position-x: 72%; } .km-on-wp.km-app .km-rewind:after { background-position-x: 74%; } .km-on-wp.km-app .km-search:after, .km-on-wp.km-app .km-filter-wrap:before { background-position-x: 76%; } .km-on-wp.km-app .km-settings:after { background-position-x: 78%; } .km-on-wp.km-app .km-share:after { background-position-x: 80%; } .km-on-wp.km-app .km-sounds:after, .km-on-wp.km-app .km-volume:after { background-position-x: 82%; } .km-on-wp.km-app .km-stop:after { background-position-x: 84%; } .km-on-wp.km-app .km-wifi:after { background-position-x: 86%; } .km-on-wp.km-app.km-android .km-more:after { background-position-x: 88%; } .km-on-wp.km-app.km-meego .km-more:after { background-position-x: 90%; } .km-on-wp.km-app.km-meego .km-loading:after, .km-on-wp.km-app.km-meego .km-load-more .km-icon:after, .km-on-wp.km-app.km-meego .km-scroller-refresh .km-icon:after { background-position-x: 94%; } .km-on-wp.km-app .km-scroller-pull .km-icon:after { background-position-x: 100%; } .km-on-wp.km-app .km-filter-wrap:before { display: inline-block; content: "\a0"; } .km-on-wp.km-app .km-filter-reset .km-clear:after { transform: rotate(45deg); } .km-fiori { font: normal 1em "HelveticaNeue Light", "Roboto Light", "Slate Light", "Segoe WP", NokiaPureTextLight, sans-serif; } /* override transform options for performance */ .km-root .km-fiori.km-pane, .km-root .km-fiori .km-view, .km-root .km-fiori .km-slider, .km-root .km-fiori .km-switch, .km-root .km-fiori .km-group-title, .km-root .km-fiori .km-filter-reset, .km-root .km-fiori .km-shim .k-animation-container { -webkit-transform: none; } .km-fiori, .km-fiori * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-background-clip: border-box; -webkit-background-clip: border-box; background-clip: border-box; } /* Revert box/clip for Web widgets */ .km-fiori [class^=k-] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; } .km-fiori .km-tabstrip .km-button { background: none; } /* PopUp */ .km-fiori .km-popup .k-popup { font-size: 1em !important; } .km-fiori .km-popup .k-item, .km-fiori .km-actionsheet > li > a { text-decoration: none; padding: .5em .6em; border-radius: 0; border-width: 0 0 1px; border-style: solid; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-fiori .km-popup { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-fiori .km-popup .k-list-container { width: 100% !important; height: auto !important; } .km-fiori .km-actionsheet, .km-fiori .km-popup .k-list-container { max-height: 80%; } .km-fiori .km-actionsheet-wrapper, .km-fiori .km-popup .k-list-container { bottom: 0; border-width: 1px 0 0; border-style: solid; border-radius: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .km-fiori .km-shim .k-animation-container { left: 0; top: auto; bottom: 0; } .km-fiori .km-popup-wrapper { padding: 15px; } .km-fiori .km-popup.km-pane, .km-fiori .km-actionsheet-wrapper.km-popup { border-radius: 2px; } /* Loader & Pull-to-refresh */ .km-fiori .km-load-more { height: 3.4em; } .km-fiori .km-load-more .km-button { margin: 0 .8em; display: block; } .km-fiori .km-loader:before, .km-fiori .km-scroller-refresh.km-load-more, .km-fiori .km-scroller-pull { border-radius: 20em; overflow: visible; } .km-fiori .km-loader:before { content: "\a0"; display: block; position: absolute; margin-top: -2em; margin-left: -2em; width: 4em; height: 4em; top: 50%; left: 50%; border-radius: 5em; } .km-fiori .km-loader { left: 0; top: 0; margin: 0; width: 100%; height: 100%; } .km-fiori .km-scroller-refresh.km-load-more { padding: 0; position: relative; margin: auto; } .km-fiori .km-scroller-refresh.km-load-more, .km-fiori .km-scroller-pull { font-size: 1em; width: 2.5em; height: 2.5em; top: .25em; white-space: nowrap; } .km-fiori .km-scroller-pull { left: 50%; margin: 0 0 0 -90px; } .km-fiori .km-loader h1 { display: none; font-size: 1em; position: absolute; left: -50%; width: 200%; top: 55%; } .km-fiori .km-scroller-pull .km-template { position: absolute; line-height: 2em; font-size: 1.2em; min-width: 0; top: 0; left: 3em; } .km-fiori .km-loading, .km-fiori .km-loader .km-loading-left, .km-fiori .km-loader .km-loading-right, .km-fiori .km-load-more.km-scroller-refresh .km-icon, .km-fiori .km-scroller-pull.km-scroller-refresh .km-icon, .km-fiori .km-scroller-refresh .km-loading-left, .km-fiori .km-scroller-refresh .km-loading-right { font-size: 1em; display: block; width: .36em; height: 1em; position: absolute; top: 50%; left: 50%; margin-left: -0.8em; margin-top: -0.5em; border-radius: 1em; animation: km-fioriload 0.6s infinite linear; -webkit-animation: km-fioriload 0.6s infinite linear; -webkit-background-clip: none; } .km-fiori .km-scroller-pull .km-icon { margin-right: 0; display: block; position: absolute; top: 50%; left: 50%; margin-left: -1rem; margin-top: -1rem; } .km-fiori .km-load-more.km-scroller-refresh .km-icon, .km-fiori .km-scroller-pull.km-scroller-refresh .km-icon, .km-fiori .km-scroller-refresh .km-loading-left, .km-fiori .km-scroller-refresh .km-loading-right { height: .6em; margin-top: -0.3em; margin-left: -0.6em; width: .25em; animation: km-fiorirefresh 0.6s infinite linear; -webkit-animation: km-fiorirefresh 0.6s infinite linear; } .km-fiori .km-scroller-pull .km-icon:after { content: "\e012"; margin-left: -3px; } .km-fiori .km-scroller-refresh .km-icon:after { display: none; } .km-root .km-fiori .km-loading-left { margin-left: -0.2em; animation-delay: 0.2s; -webkit-animation-delay: 0.2s; } .km-root .km-fiori .km-loading-right { margin-left: .42em; animation-delay: 0.4s; -webkit-animation-delay: 0.4s; } .km-fiori .km-scroller-refresh .km-loading-left { margin-left: -0.18em; } .km-fiori .km-scroller-refresh .km-loading-right { margin-left: .28em; } @keyframes km-fioriload { 0% { height: 1em; margin-top: -0.5em; } 33% { height: 2em; margin-top: -1em; } 66% { height: 1em; margin-top: -0.5em; } } @-moz-keyframes km-fioriload { 0% { height: 1em; margin-top: -0.5em; } 33% { height: 2em; margin-top: -1em; } 66% { height: 1em; margin-top: -0.5em; } } @-webkit-keyframes km-fioriload { 0% { height: 1em; margin-top: -0.5em; } 33% { height: 2em; margin-top: -1em; } 66% { height: 1em; margin-top: -0.5em; } } @keyframes km-fiorirefresh { 0% { height: .6em; margin-top: -0.3em; } 33% { height: 1.2em; margin-top: -0.6em; } 66% { height: .6em; margin-top: -0.3em; } } @-moz-keyframes km-fiorirefresh { 0% { height: .6em; margin-top: -0.3em; } 33% { height: 1.2em; margin-top: -0.6em; } 66% { height: .6em; margin-top: -0.3em; } } @-webkit-keyframes km-fiorirefresh { 0% { height: .6em; margin-top: -0.3em; } 33% { height: 1.2em; margin-top: -0.6em; } 66% { height: .6em; margin-top: -0.3em; } } /* Color Template */ /* --- main text #333 ---- main background #f3f8fc --- navbar text #666 --- popover and modalview background #fff --- item borders #333 --- actionsheet and modalview button and footer tabstrip background #40464b --- actionsheet borders #7b7b7c --- actionsheet and button #fff --- primary button and counter background #009de0 --- selected state background #007cc0 --- list background #fafafa --- list hover background and modal view title #f0f0f0 --- list selected background #e6f2f9 --- list selected #fff --- list group title background #f7f7f7 --- list group title #004990 --- switch #979797 --- button group background #fff --- button (group) hover background #eaeaea --- button (group) selected background #007cc0 --- button (group) selected #fff --- button selected border #005483 --- footer tabstrip hover background #4c5358 */ /*switch, popover, modalview*/ /*navbar*/ /*buttons*/ /*actionsheet, popover and modalview buttons*/ /*also listview and button selected text*/ /*listview*/ /*also modalview title*/ .km-fiori { background-color: #f3f8fc; } .km-fiori { color: #333333; } .km-fiori .km-navbar { color: #666666; } /* ActionSheet, Footer */ .km-fiori .km-footer, .km-fiori .km-actionsheet > li > a { background: #40464b; color: #ffffff; } .km-fiori .km-footer .km-tabstrip .km-button:hover, .km-fiori .km-actionsheet > li > a:active, .km-fiori .km-actionsheet > li > a:hover, .km-fiori .km-actionsheet > li > .km-state-active { background: #4c5358; } .km-fiori .km-footer .km-tabstrip .km-button, .km-fiori .km-actionsheet > li > a { border-color: #7b7b7c; } .km-fiori .km-actionsheet > .km-actionsheet-cancel > a { background: #009de0; } /* Button */ .km-fiori .km-button { background: #f2f2f2; border-color: #bfbfbf; } .km-fiori .km-button:hover { background: #eaeaea; } .km-fiori .km-button.km-state-active { background: #007cc0; } /* Badges and Details */ .km-fiori .km-detail, .km-fiori .k-toolbar { border-color: #bfbfbf; } /* Switch */ .km-fiori .km-switch-wrapper { background-color: #ffffff; } .km-modalview, .km-fiori .km-switch-background { background: #ffffff; } .km-fiori .km-switch-handle { background: #ffffff; border-color: #ffffff; } .km-fiori .km-switch-container, .km-fiori .km-switch-wrapper { border-color: #ffffff; } /* Slider */ /* ListView */ .km-fiori .km-list > li { background: #fafafa; border-color: #bfbfbf; } .km-fiori .km-list > li:hover, .km-navbar .km-view-title { background-color: #f0f0f0; } .km-fiori .km-listinset > li:first-child, .km-fiori .km-listgroupinset .km-list > li:first-child { border-color: #bfbfbf; } .km-fiori .km-listinset > li:last-child, .km-fiori .km-listgroupinset .km-list > li:last-child { border-color: #bfbfbf; } .km-fiori .km-listview-link:after { color: #808080; border-color: currentcolor; } .km-fiori .km-group-title { background: #f7f7f7; border-color: #dddddd transparent #a4bdd4; color: #004990; } .km-fiori .km-listview .km-state-active > .km-listview-link { color: #333333; } .km-fiori .km-filter-wrap:before, .km-fiori .km-filter-reset .km-clear { color: #333333; } .km-fiori .km-filter-wrap > input { color: #333333; border-color: #bfbfbf; } .km-fiori .km-filter-wrap > input:focus { border-color: #000; } /* ScrollView */ .km-fiori .km-pages li { background: #bfbfbf; } /* Forms */ .km-fiori .km-list input[type=password], .km-fiori .km-list input[type=search], .km-fiori .km-list input[type=number], .km-fiori .km-list input[type=tel], .km-fiori .km-list input[type=url], .km-fiori .km-list input[type=email], .km-fiori .km-list input[type=month], .km-fiori .km-list input[type=color], .km-fiori .km-list input[type=week], .km-fiori .km-list input[type=date], .km-fiori .km-list input[type=time], .km-fiori .km-list input[type=datetime], .km-fiori .km-list input[type=datetime-local], .km-fiori .km-list input[type=text]:not(.k-input), .km-fiori .km-list select:not([multiple]), .km-fiori .km-list .k-dropdown-wrap, .km-fiori .km-list textarea, .km-fiori .km-list .k-dropdown-wrap .k-input { color: #333333; } .km-fiori .km-list select:not([multiple]) option { color: #333; } /* Checkboxes and Radios */ .km-fiori .km-listview-label input[type=radio], .km-fiori .km-listview-label input[type=checkbox] { border-color: #979797; background: #fff; } .km-fiori .km-listview-label input[type=checkbox]:checked:after { color: #007cc0; } /* Shim */ .km-fiori .km-shim, .km-phone .km-fiori .km-actionsheet-wrapper { background: rgba(0, 0, 0, 0.4); } /* PopUp */ .km-fiori .km-popup { background: rgba(64, 70, 75, 0.6); } .km-fiori .km-actionsheet-wrapper, .km-fiori .km-popup .k-list-container { background: rgba(64, 70, 75, 0.6); border-top-color: rgba(0, 0, 0, 0.2); } .km-fiori .km-popup.km-pane, .km-tablet .km-fiori .km-actionsheet-wrapper { background-color: #40464b; } .km-fiori .km-popup-arrow:after { border-color: #40464b transparent; } .km-fiori .km-left .km-popup-arrow:after, .km-fiori .km-right .km-popup-arrow:after { border-color: transparent #40464b; } /* Loader & Pull-to-refresh */ .km-fiori .km-loader { background: rgba(0, 0, 0, 0.05); } .km-fiori .km-loader h1 { color: #333333; } /* Active States */ .km-fiori .km-detail:active, .km-fiori .km-state-active .km-detail, .km-fiori .km-state-active[style*=background] { box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2); -webkit-box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2); } /* Active States */ .km-fiori .km-badge, .km-fiori .km-rowinsert, .km-fiori .km-rowdelete, .km-fiori .km-state-active, .km-fiori .km-switch-label-on, .km-fiori .km-switch-label-off, .km-fiori .km-tabstrip .km-button, .km-fiori .km-popup .k-item, .km-fiori .km-actionsheet > li > a, .km-fiori .km-tabstrip .km-state-active, .km-fiori .k-slider .k-draghandle, .km-fiori .k-slider .k-draghandle:hover, .km-fiori .km-scroller-pull .km-icon, .km-fiori .km-popup.km-pane .km-navbar, .km-fiori .km-popup.km-pane .k-toolbar, .km-fiori .km-popup.km-pane .km-tabstrip, .km-fiori .km-popup .k-state-hover, .km-fiori .km-popup .k-state-focused, .km-fiori .km-popup .k-state-selected, .km-fiori li.km-state-active .km-listview-link, .km-fiori li.km-state-active .km-listview-label, .km-fiori .km-state-active .km-listview-link:after { color: #ffffff; } .km-fiori .km-loader > *:not(h1), .km-fiori .km-filter-wrap > input, .km-fiori .km-switch-handle.km-state-active, .km-root .km-fiori .km-scroller-refresh span:not(.km-template) { background: #007cc0; } .km-fiori .km-switch-handle, .km-fiori .k-slider-selection, .km-fiori .km-switch-background { color: #007cc0; } .km-fiori .km-rowinsert, .km-fiori .km-state-active, .km-fiori .km-scroller-pull, .km-fiori .km-loader:before, .km-fiori .k-slider-selection, .km-fiori .km-touch-scrollbar, .km-fiori .km-pages .km-current-page, .km-fiori .k-slider .k-draghandle, .km-fiori .k-slider .k-draghandle:hover, .km-fiori .km-tabstrip .km-state-active, .km-fiori .km-scroller-refresh.km-load-more, .km-fiori .km-popup .k-state-selected, .km-fiori li.km-state-active .km-listview-link, .km-fiori li.km-state-active .km-listview-label, .km-fiori .km-listview-label input[type=radio]:checked, .km-fiori .km-listview-label input[type=checkbox]:checked { background: #007cc0; } .km-fiori .km-filter-wrap > input:focus { border-color: #007cc0; } .km-fiori .km-badge, .km-fiori .km-rowdelete { background: #009de0; } /* Tablet Styles */ .km-tablet .km-fiori.km-horizontal .km-navbar .km-button, .km-tablet .km-fiori.km-horizontal .km-toolbar .km-button { margin-top: .2rem; margin-bottom: .2rem; } /* Button */ .km-fiori .km-button { padding: .5em .8em; border-style: solid; border-width: 1px; border-radius: 2px; } /* Badges and Details */ .km-fiori .km-badge, .km-fiori .km-detail { border: 0; min-width: 2em; height: 2em; line-height: 2em; border-radius: 5em; font-size: .8em; } .km-fiori .km-detail { min-width: 1.4em; height: 1.4em; line-height: 1.4em; border-width: 1px; border-style: solid; } .km-fiori .km-detaildisclose { min-width: 2em; height: 2em; line-height: 2em; } .km-fiori .km-detaildisclose:after, .km-fiori .km-detaildisclose:before { left: .1em; top: 0.35em; } .km-fiori .km-detail .km-icon:before { display: none; } /* ButtonGroup */ .km-fiori .km-buttongroup > *:not(:first-child):not(:last-child) { border-radius: 0; } .km-fiori .km-buttongroup > *:first-child { border-radius: 2px 0 0 2px; } .km-fiori .km-buttongroup > *:last-child { border-radius: 0 2px 2px 0; } .km-fiori .km-buttongroup > *.km-state-active { border-right-width: 1px; } .km-fiori .km-buttongroup > *.km-state-active + * { border-left-width: 0; } /* NavBar */ .km-fiori .km-navbar { border: 1px solid #bfbfbf; } .km-fiori .km-header .km-navbar { border-width: 0 0 1px; } .km-fiori .km-footer .km-navbar { border-width: 1px 0 0; } .km-fiori .km-toolbar, .km-fiori .km-navbar, .km-fiori .km-tabstrip, .km-fiori .km-tabstrip .km-button { border-radius: 0; } /* ToolBar */ .km-fiori .k-toolbar { line-height: 2.1em; } .km-fiori .k-toolbar .km-button, .km-fiori .k-toolbar .k-split-button { padding-top: 0; padding-bottom: 0; line-height: inherit; } .km-fiori .k-toolbar .k-button-icon .km-icon, .km-fiori .k-toolbar .k-button-icontext .km-icon, .km-fiori .k-split-button .km-arrowdown { width: 1em; height: 1em; font-size: 1.2em; margin-top: -7px; margin-bottom: -2px; vertical-align: middle; } .km-fiori .k-split-button .km-arrowdown { margin-left: 2px; margin-right: 1px; } .km-fiori .k-split-button .k-button-icontext { border-top-right-radius: 0; border-bottom-right-radius: 0; } .km-fiori .k-split-button-arrow { border-top-left-radius: 0; border-bottom-left-radius: 0; } .km-fiori .km-actionsheet.k-split-container > li > .km-button, .km-fiori .km-actionsheet.k-overflow-container > li > .km-button { min-width: 10em; text-align: center; font-size: 1.1em; border: 0; border-radius: 0; } .km-fiori .km-actionsheet.k-split-container > li > .km-button { min-width: 5em; } .km-fiori .k-split-wrapper .km-actionsheet-wrapper, .km-fiori .k-overflow-wrapper .km-actionsheet-wrapper { padding: 1px; } html .km-fiori .k-split-container.km-actionsheet > li, html .km-fiori .k-overflow-container.km-actionsheet > li { margin-top: 0; margin-bottom: 0; } .km-fiori .k-split-container.km-actionsheet, .km-fiori .k-overflow-container.km-actionsheet { border-top: 0; } /* TabStrip */ .km-fiori .km-tabstrip { padding: 0; display: table; table-layout: fixed; } .km-fiori .km-tabstrip .km-button { font-size: .7em; display: table-cell; border: 0; } .km-fiori .km-tabstrip .km-icon:before { display: none; } /* Switch */ .km-fiori .km-switch { width: 5rem; height: 2.4rem; line-height: 2.2rem; overflow: hidden; } .km-fiori .km-switch-wrapper { overflow: hidden; } .km-fiori .km-switch-background, .km-fiori .k-slider-selection { background-position: 4.25em 0; background-repeat: no-repeat; background-color: currentcolor; margin-left: -3.4rem; } .km-fiori .km-switch-container { padding: 1px 0 1px 1px; border-width: 0; } .km-fiori .km-switch-handle { width: 2em; margin: 0 4px 0 0; border-width: 1px; border-style: solid; } .km-fiori .km-switch-label-off { left: 1.5em; } .km-fiori .km-switch-label-on { left: -2.8em; } .km-fiori .km-switch-label-on, .km-fiori .km-switch-label-off { text-shadow: none; width: 185%; font-size: 1em; line-height: 2em; vertical-align: middle; } .km-fiori .km-switch-wrapper, .km-fiori .km-switch-container, .km-fiori .km-switch-background { border-radius: 1.1rem; } .km-fiori .km-switch-handle { border-radius: 50%; } .km-fiori .km-switch-container, .km-fiori .km-switch-wrapper { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; border-width: 1px; border-style: solid; background-clip: content-box; } /* ListView */ .km-fiori .km-list > li { border-style: solid; border-width: 0 0 1px 0; line-height: 2.2em; } .km-fiori .km-listinset > li:first-child, .km-fiori .km-listgroupinset .km-list > li:first-child { border-style: solid; border-width: 1px; border-radius: 2px 2px 0 0; } .km-fiori .km-listinset > li, .km-fiori .km-listgroupinset .km-list > li { border-width: 0 1px 1px 1px; } .km-fiori .km-listinset > li:last-child, .km-fiori .km-listgroupinset .km-list > li:last-child { border-style: solid; border-width: 0 1px 1px 1px; border-radius: 0 0 2px 2px; } .km-fiori .km-listinset > li:first-child:last-child, .km-fiori .km-listgroupinset .km-list > li:first-child:last-child { border-width: 1px; border-radius: 2px; } .km-fiori .km-listview-link:after { border-width: .2rem .2rem 0 0; } .km-fiori:not(.km-on-android) .km-listview-link:after { width: .66rem; height: .64rem; border-width: 0; box-shadow: inset -0.2rem 0.2rem 0; } .km-fiori .km-listinset li:first-child > .km-listview-link, .km-fiori .km-listgroupinset li:first-child > .km-listview-link, .km-fiori .km-listinset li:first-child > .km-listview-label, .km-fiori .km-listgroupinset li:first-child > .km-listview-label { border-radius: 1px 1px 0 0; } .km-fiori .km-listinset li:last-child > .km-listview-link, .km-fiori .km-listgroupinset li:last-child > .km-listview-link, .km-fiori .km-listinset li:last-child > .km-listview-label, .km-fiori .km-listgroupinset li:last-child > .km-listview-label { border-radius: 0 0 1px 1px; } .km-fiori .km-listinset li:first-child:last-child > .km-listview-link, .km-fiori .km-listgroupinset li:first-child:last-child > .km-listview-link, .km-fiori .km-listinset li:first-child:last-child > .km-listview-label, .km-fiori .km-listgroupinset li:first-child:last-child > .km-listview-label { border-radius: 1px; } .km-fiori .km-group-title { border-style: solid; border-width: 1px 0; line-height: 1.6; } .km-fiori .km-scroll-header .km-group-title { border-width: 0 0 1px; } .km-fiori .km-listgroupinset .km-group-title { border: 0; background: none; } .km-fiori .km-listview .km-switch { margin-top: -1.2rem; } /* Filter box */ .km-fiori .km-listview-wrapper form .km-filter-wrap > input { font-size: 1.2em; padding: .3em 1.8em; } .km-fiori .km-filter-wrap:before { margin: 0.05em -1.3em 0 0.3em; } .km-fiori .km-filter-reset { margin: 0.05em 0 0 -2em; } .km-fiori .km-filter-reset .km-clear:after { content: "\e038"; } .km-fiori .km-filter-wrap > input { border-radius: 2px; border-width: 1px; border-style: solid; } .km-fiori .km-filter-wrap > input:focus { border-width: 1px; border-style: solid; } /* ScrollView */ .km-fiori .km-pages { padding-top: .4em; } .km-fiori .km-pages li { border-radius: 1em; } /* Slider */ .km-fiori .k-slider .k-draghandle, .km-fiori .k-slider .k-draghandle:hover { border: 0; border-radius: 5em; box-shadow: 0 0 0 3px currentcolor; -webkit-box-shadow: 0 0 0 3px currentcolor; } .km-fiori .k-slider-track { margin: -0.5em 0.5em 0 0; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; border-radius: .5em; background-color: #f0f0f0; } .km-fiori .k-slider-selection { margin-left: 0; } /* Forms */ .km-fiori .km-list input[type=password], .km-fiori .km-list input[type=search], .km-fiori .km-list input[type=number], .km-fiori .km-list input[type=tel], .km-fiori .km-list input[type=url], .km-fiori .km-list input[type=email], .km-fiori .km-list input[type=month], .km-fiori .km-list input[type=color], .km-fiori .km-list input[type=week], .km-fiori .km-list input[type=date], .km-fiori .km-list input[type=time], .km-fiori .km-list input[type=datetime], .km-fiori .km-list input[type=datetime-local], .km-fiori .km-list input[type=text]:not(.k-input), .km-fiori .km-list select:not([multiple]), .km-fiori .km-list .k-dropdown-wrap, .km-fiori .km-list textarea { appearance: none; -moz-appearance: none; -webkit-appearance: none; font-size: 1.1rem; min-width: 6em; border: 0; padding: .4em; outline: none; background: transparent; } .km-fiori .km-list .k-dropdown-wrap { padding: .2em; } .km-fiori .km-list .k-dropdown { margin-top: -1.05em; font-weight: normal; } .km-fiori .km-list input[type=color], .km-fiori .km-list input[type=week], .km-fiori .km-list input[type=date], .km-fiori .km-list input[type=time], .km-fiori .km-list input[type=month], .km-fiori .km-list input[type=datetime], .km-fiori .km-list input[type=datetime-local], .km-fiori .km-list .k-dropdown { text-align: left; } .km-fiori .km-list .k-dropdown .k-dropdown-wrap { display: block; border-radius: 0; background: transparent; box-shadow: none; -webkit-box-shadow: none; } /* Checkboxes and Radios */ .km-fiori .km-listview-label input[type=checkbox] { margin-top: -0.7em; } .km-fiori .km-listview-label input[type=radio], .km-fiori .km-listview-label input[type=checkbox] { border-width: 1px; border-style: solid; width: 1.4em; height: 1.4em; border-radius: 2px; } .km-fiori .km-listview-label input[type=radio] { width: 1.2em; height: 1.2em; border-radius: 1em; } .km-fiori .km-listview-label input[type=checkbox]:after { content: "\a0"; display: block; width: 90%; height: 76%; -webkit-transform: scale(0.9, 1); -ms-transform: scale(0.9, 1); -o-transform: scale(0.9, 1); transform: scale(0.9, 1); -webkit-transform-origin: 10% 50%; -ms-transform-origin: 10% 50%; -o-transform-origin: 10% 50%; transform-origin: 10% 50%; } .km-fiori .km-listview-label input[type=checkbox]:checked:after { font-size: 1.4em; } .km-fiori .km-listview-label input[type=radio]:after { color: transparent; } /* ActionSheet */ .km-fiori .km-actionsheet > li > a { font-size: 1.4em; font-weight: normal; text-align: center; } .km-fiori .km-actionsheet > li > a { display: block; } .km-fiori .km-actionsheet > li:last-child > a { border: 0; } .km-fiori .km-shim li.km-actionsheet-title, .km-fiori .km-popup li.km-actionsheet-title { display: none; } .km-fiori .km-actionsheet-wrapper.km-popup { padding: 2px 0; } /* PopOver */ .km-fiori .km-popup.km-pane { border: 5px solid transparent; } .km-fiori .km-popup.km-pane .km-navbar, .km-fiori .km-popup.km-pane .km-toolbar, .km-fiori .km-popup.km-pane .km-tabstrip { background: none; } .km-fiori .km-popup.km-pane .km-header { padding: 0 5px; margin: -5px -5px 2px; border-radius: 2px 2px 0 0; -webkit-margin-collapse: separate; } .km-fiori .km-popup-arrow:after { border-color: rgba(0, 0, 0, 0.5) transparent; border-style: solid; border-width: 0 15px 15px; } .km-fiori .km-down .km-popup-arrow:before { margin-top: -1px; } .km-fiori .km-up .km-popup-arrow:after { border-width: 15px 15px 0 15px; } .km-fiori .km-left .km-popup-arrow:after { border-width: 15px 0 15px 15px; } .km-fiori .km-right .km-popup-arrow:after { border-width: 15px 15px 15px 0; } /* Scroller */ .km-fiori .km-touch-scrollbar { border: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; border-radius: 1em; } .km-android4.km-fiori .km-scroller-pull .km-icon:after { margin-left: -6px; margin-top: -3px; } /* SplitView */ .km-on-blackberry.km-blackberry6 .km-view .km-icon, .km-on-blackberry.km-blackberry7 .km-view .km-icon, .km-on-blackberry.km-ios .km-view .km-icon, .km-pane.km-on-android .km-view .km-icon, .km-pane.km-on-meego .km-view .km-icon { background: none; }
Java
from panda3d.core import NodePath, DecalEffect import DNANode import DNAWall import random class DNAFlatBuilding(DNANode.DNANode): COMPONENT_CODE = 9 currentWallHeight = 0 def __init__(self, name): DNANode.DNANode.__init__(self, name) self.width = 0 self.hasDoor = False def setWidth(self, width): self.width = width def getWidth(self): return self.width def setCurrentWallHeight(self, currentWallHeight): DNAFlatBuilding.currentWallHeight = currentWallHeight def getCurrentWallHeight(self): return DNAFlatBuilding.currentWallHeight def setHasDoor(self, hasDoor): self.hasDoor = hasDoor def getHasDoor(self): return self.hasDoor def makeFromDGI(self, dgi): DNANode.DNANode.makeFromDGI(self, dgi) self.width = dgi.getInt16() / 100.0 self.hasDoor = dgi.getBool() def setupSuitFlatBuilding(self, nodePath, dnaStorage): name = self.getName() if name[:2] != 'tb': return name = 'sb' + name[2:] node = nodePath.attachNewNode(name) node.setPosHpr(self.getPos(), self.getHpr()) numCodes = dnaStorage.getNumCatalogCodes('suit_wall') if numCodes < 1: return code = dnaStorage.getCatalogCode( 'suit_wall', random.randint(0, numCodes - 1)) wallNode = dnaStorage.findNode(code) if not wallNode: return wallNode = wallNode.copyTo(node, 0) wallScale = wallNode.getScale() wallScale.setX(self.width) wallScale.setZ(DNAFlatBuilding.currentWallHeight) wallNode.setScale(wallScale) if self.getHasDoor(): wallNodePath = node.find('wall_*') doorNode = dnaStorage.findNode('suit_door') doorNode = doorNode.copyTo(wallNodePath, 0) doorNode.setScale(NodePath(), (1, 1, 1)) doorNode.setPosHpr(0.5, 0, 0, 0, 0, 0) wallNodePath.setEffect(DecalEffect.make()) node.flattenMedium() node.stash() def setupCogdoFlatBuilding(self, nodePath, dnaStorage): name = self.getName() if name[:2] != 'tb': return name = 'cb' + name[2:] node = nodePath.attachNewNode(name) node.setPosHpr(self.getPos(), self.getHpr()) numCodes = dnaStorage.getNumCatalogCodes('cogdo_wall') if numCodes < 1: return code = dnaStorage.getCatalogCode( 'cogdo_wall', random.randint(0, numCodes - 1)) wallNode = dnaStorage.findNode(code) if not wallNode: return wallNode = wallNode.copyTo(node, 0) wallScale = wallNode.getScale() wallScale.setX(self.width) wallScale.setZ(DNAFlatBuilding.currentWallHeight) wallNode.setScale(wallScale) if self.getHasDoor(): wallNodePath = node.find('wall_*') doorNode = dnaStorage.findNode('suit_door') doorNode = doorNode.copyTo(wallNodePath, 0) doorNode.setScale(NodePath(), (1, 1, 1)) doorNode.setPosHpr(0.5, 0, 0, 0, 0, 0) wallNodePath.setEffect(DecalEffect.make()) node.flattenMedium() node.stash() def traverse(self, nodePath, dnaStorage): DNAFlatBuilding.currentWallHeight = 0 node = nodePath.attachNewNode(self.getName()) internalNode = node.attachNewNode(self.getName() + '-internal') scale = self.getScale() scale.setX(self.width) internalNode.setScale(scale) node.setPosHpr(self.getPos(), self.getHpr()) for child in self.children: if isinstance(child, DNAWall.DNAWall): child.traverse(internalNode, dnaStorage) else: child.traverse(node, dnaStorage) if DNAFlatBuilding.currentWallHeight == 0: print 'empty flat building with no walls' else: cameraBarrier = dnaStorage.findNode('wall_camera_barrier') if cameraBarrier is None: raise DNAError.DNAError('DNAFlatBuilding requires that there is a wall_camera_barrier in storage') cameraBarrier = cameraBarrier.copyTo(internalNode, 0) cameraBarrier.setScale((1, 1, DNAFlatBuilding.currentWallHeight)) internalNode.flattenStrong() collisionNode = node.find('**/door_*/+CollisionNode') if not collisionNode.isEmpty(): collisionNode.setName('KnockKnockDoorSphere_' + dnaStorage.getBlock(self.getName())) cameraBarrier.wrtReparentTo(nodePath, 0) wallCollection = internalNode.findAllMatches('wall*') wallHolder = node.attachNewNode('wall_holder') wallDecal = node.attachNewNode('wall_decal') windowCollection = internalNode.findAllMatches('**/window*') doorCollection = internalNode.findAllMatches('**/door*') corniceCollection = internalNode.findAllMatches('**/cornice*_d') wallCollection.reparentTo(wallHolder) windowCollection.reparentTo(wallDecal) doorCollection.reparentTo(wallDecal) corniceCollection.reparentTo(wallDecal) for i in xrange(wallHolder.getNumChildren()): iNode = wallHolder.getChild(i) iNode.clearTag('DNACode') iNode.clearTag('DNARoot') wallHolder.flattenStrong() wallDecal.flattenStrong() holderChild0 = wallHolder.getChild(0) wallDecal.getChildren().reparentTo(holderChild0) holderChild0.reparentTo(internalNode) holderChild0.setEffect(DecalEffect.make()) wallHolder.removeNode() wallDecal.removeNode() self.setupSuitFlatBuilding(nodePath, dnaStorage) self.setupCogdoFlatBuilding(nodePath, dnaStorage) node.flattenStrong()
Java
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MvcThrottle")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("stefanprodan.eu")] [assembly: AssemblyProduct("MvcThrottle")] [assembly: AssemblyCopyright("Copyright © Stefan Prodan 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b78fdf2f-12cf-49fb-a9ea-bc72ddafec19")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
Java
// This file was generated based on 'C:\ProgramData\Uno\Packages\Experimental.Physics\0.18.8\$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.Int.h> namespace g{ namespace Experimental{ namespace Physics{ // private enum BasicBoundedRegion2D.MoveMode :37 uEnumType* BasicBoundedRegion2D__MoveMode_typeof(); }}} // ::g::Experimental::Physics
Java
/* Get Programming with JavaScript * Listing 4.01 * Displaying an object's properties on the console */ var movie1; movie1 = { title: "Inside Out", actors: "Amy Poehler, Bill Hader", directors: "Pete Doctor, Ronaldo Del Carmen" }; console.log("Movie information for " + movie1.title); console.log("------------------------------"); console.log("Actors: " + movie1.actors); console.log("Directors: " + movie1.directors); console.log("------------------------------"); /* Further Adventures * * 1) Add a second movie and display the same info for it. * * 2) Create an object to represent a blog post. * * 3) Write code to display info about the blog post. * */
Java
describe('Component: Product Search', function(){ var scope, q, oc, state, _ocParameters, parameters, mockProductList ; beforeEach(module(function($provide) { $provide.value('Parameters', {searchTerm: null, page: null, pageSize: null, sortBy: null}); })); beforeEach(module('orderCloud')); beforeEach(module('orderCloud.sdk')); beforeEach(inject(function($rootScope, $q, OrderCloud, ocParameters, $state, Parameters){ scope = $rootScope.$new(); q = $q; oc = OrderCloud; state = $state; _ocParameters = ocParameters; parameters = Parameters; mockProductList = { Items:['product1', 'product2'], Meta:{ ItemRange:[1, 3], TotalCount: 50 } }; })); describe('State: productSearchResults', function(){ var state; beforeEach(inject(function($state){ state = $state.get('productSearchResults'); spyOn(_ocParameters, 'Get'); spyOn(oc.Me, 'ListProducts'); })); it('should resolve Parameters', inject(function($injector){ $injector.invoke(state.resolve.Parameters); expect(_ocParameters.Get).toHaveBeenCalled(); })); it('should resolve ProductList', inject(function($injector){ parameters.filters = {ParentID:'12'}; $injector.invoke(state.resolve.ProductList); expect(oc.Me.ListProducts).toHaveBeenCalled(); })); }); describe('Controller: ProductSearchController', function(){ var productSearchCtrl; beforeEach(inject(function($state, $controller){ var state = $state; productSearchCtrl = $controller('ProductSearchCtrl', { $state: state, ocParameters: _ocParameters, $scope: scope, ProductList: mockProductList }); spyOn(_ocParameters, 'Create'); spyOn(state, 'go'); })); describe('filter', function(){ it('should reload state and call ocParameters.Create with any parameters', function(){ productSearchCtrl.parameters = {pageSize: 1}; productSearchCtrl.filter(true); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({pageSize:1}, true); }); }); describe('updateSort', function(){ it('should reload page with value and sort order, if both are defined', function(){ productSearchCtrl.updateSort('!ID'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: null, sortBy: '!ID'}, false); }); it('should reload page with just value, if no order is defined', function(){ productSearchCtrl.updateSort('ID'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: null, sortBy: 'ID'}, false); }); }); describe('updatePageSize', function(){ it('should reload state with the new pageSize', function(){ productSearchCtrl.updatePageSize('25'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: '25', sortBy: null}, true); }); }); describe('pageChanged', function(){ it('should reload state with the new page', function(){ productSearchCtrl.pageChanged('newPage'); expect(state.go).toHaveBeenCalled(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: 'newPage', pageSize: null, sortBy: null}, false); }); }); describe('reverseSort', function(){ it('should reload state with a reverse sort call', function(){ productSearchCtrl.parameters.sortBy = 'ID'; productSearchCtrl.reverseSort(); expect(_ocParameters.Create).toHaveBeenCalledWith({searchTerm: null, page: null, pageSize: null, sortBy: '!ID'}, false); }); }); }); describe('Component Directive: ordercloudProductSearch', function(){ var productSearchComponentCtrl, timeout ; beforeEach(inject(function($componentController, $timeout){ timeout = $timeout; productSearchComponentCtrl = $componentController('ordercloudProductSearch', { $state:state, $timeout: timeout, $scope: scope, OrderCloud:oc }); spyOn(state, 'go'); })); describe('getSearchResults', function(){ beforeEach(function(){ var defer = q.defer(); defer.resolve(); spyOn(oc.Me, 'ListProducts').and.returnValue(defer.promise); }); it('should call Me.ListProducts with given search term and max products', function(){ productSearchComponentCtrl.searchTerm = 'Product1'; productSearchComponentCtrl.maxProducts = 12; productSearchComponentCtrl.getSearchResults(); expect(oc.Me.ListProducts).toHaveBeenCalledWith('Product1', 1, 12); }); it('should default max products to five, if none is provided', function(){ productSearchComponentCtrl.searchTerm = 'Product1'; productSearchComponentCtrl.getSearchResults(); expect(oc.Me.ListProducts).toHaveBeenCalledWith('Product1', 1, 5); }); }); describe('onSelect', function(){ it('should route user to productDetail state for the selected product id', function(){ productSearchComponentCtrl.onSelect(12); expect(state.go).toHaveBeenCalledWith('productDetail', {productid:12}); }); }); describe('onHardEnter', function(){ it('should route user to search results page for the provided search term', function(){ productSearchComponentCtrl.onHardEnter('bikes'); expect(state.go).toHaveBeenCalledWith('productSearchResults', {searchTerm: 'bikes'}); }); }); }); });
Java
(function () { 'use strict'; angular.module('common') .directive('svLumxUsersDropdown', function () { return { templateUrl: 'scripts/common/directives/sv-lumx-users-dropdown.html', scope: { btnTitle: '@', actionCounter: '@', userAvatar: '@', userName: '@', userFirstName: '@', userLastName: '@', iconType: '@', iconName: '@' }, link: function ($scope, el, attrs) { } }; }); })();
Java
--- title: Perjalanan Ke Roma date: 22/09/2018 --- ### Untuk Pelajaran Pekan Ini Bacalah: Kisah 27, 28; Roma 1:18–20. > <p>Ayat Hafalan</p> > “ ‘Jangan takut, Paulus! Engkau harus menghadap Kaisar...’ ” (Kisah 27:24). Paulus sudah lama merindukan untuk mengunjungi Roma, tetapi penahanannya di Yerusalem mengubah semuanya. Dengan menyerah pada tekanan legalistik para pemimpin gereja Yerusalem, ia berakhir di penahanan Roma selama hampir lima tahun, termasuk waktu yang digunakan dalam perjalanan laut ke Italia. Perubahan ini merupakan suatu terpaan dahsyat pada rencana-rencana misionarisnya. Walaupun dengan langkah mundur, Yesus sendiri menjanjikan bahwa rasul itu masih akan bersaksi tentang Dia di Roma (Kis. 23:11) Sekalipun kita gagal, Allah masih dapat memberikan kita kesempatan lain, wakau Ia tidak selalu meluputkan kita dari akibat tindakan-tindakan kita. Paulus bukan hanya dibawa ke Roma sebagai tawanan, tetapi tidak ada bukti-bukti Alkitab bahwa ia pernah pergi ke Spanyol, seperti yang telah ia harapkan (Rm. 15:24). Setelah dilepaskan dari apa yang dikenal sebagai pemenjaraan pertama di Roma, Paulus akan ditangkap lagi, kali ini untuk mati sebagai martir (2 Tim. 4:6-8) dibawah kekuasaan Nero pada tahun 67 M. Benar, Paulus sampai ke Roma, dan sedang menanti di penjara-rumahnya untuk diadili di hadapan kaisar, ia berbicara walaupun dengan rantai-rantainya (Ef. 6:20; Flp. 1:13), tanpa halangan kepada siapa saja yang mengunjunginya (Kis. 28:30, 31), termasuk tokoh penting dari istana Kaisar (Flp. 4:22) _*Pelajari pelajaran pekan ini untuk persiapan Sabat, 29 September._
Java
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Xml; using FluentAssertions; using Microsoft.OData.Edm; using Microsoft.OData.Edm.Csdl; using Microsoft.OData.Edm.Library; using Microsoft.OData.Edm.Library.Values; using Microsoft.OData.Edm.Validation; using Microsoft.OData.Edm.Values; using Xunit; using Vipr.Reader.OData.v4; using Vipr.Core.CodeModel; using Vipr.Core.CodeModel.Vocabularies.Capabilities; namespace ODataReader.v4UnitTests { public class Given_An_ODataVocabularyParser { public Given_An_ODataVocabularyParser() { } [Xunit.Fact] public void Boolean_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> booleanConstantPredicate = o => new EdmBooleanConstant((bool) o); ConstantValueShouldRoundtrip(true, booleanConstantPredicate); ConstantValueShouldRoundtrip(false, booleanConstantPredicate); } [Fact] public void String_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> stringPredicate = o => new EdmStringConstant((string) o); ConstantValueShouldRoundtrip("♪♪ unicode test string ♪♪", stringPredicate); } [Fact] public void Guid_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> guidConstantPredicate = o => new EdmGuidConstant((Guid) o); ConstantValueShouldRoundtrip(Guid.NewGuid(), guidConstantPredicate); } [Fact] public void Binary_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> binaryConstantPredicate = o => new EdmBinaryConstant((byte[]) o); ConstantValueShouldRoundtrip(new byte[] {1, 3, 3, 7}, binaryConstantPredicate); } [Fact] public void Date_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> dateConstantPredicate = o => new EdmDateConstant((Date) o); ConstantValueShouldRoundtrip(Date.Now, dateConstantPredicate); } [Fact] public void DateOffset_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> dateTimeOffsetConstantPredicate = o => new EdmDateTimeOffsetConstant((DateTimeOffset) o); ConstantValueShouldRoundtrip(DateTimeOffset.Now, dateTimeOffsetConstantPredicate); ConstantValueShouldRoundtrip(DateTimeOffset.UtcNow, dateTimeOffsetConstantPredicate); } [Fact] public void Decimal_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> decimalConstantValuePredicate = o => new EdmDecimalConstant((decimal) o); ConstantValueShouldRoundtrip((decimal) 1.234, decimalConstantValuePredicate); } [Fact] public void Floating_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> floatingConstantValuePredicate = o => new EdmFloatingConstant((double) o); ConstantValueShouldRoundtrip(1.234d, floatingConstantValuePredicate); } [Fact] public void Integer_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> integerConstantValuePredicate = o => new EdmIntegerConstant((long) o); ConstantValueShouldRoundtrip(123400L, integerConstantValuePredicate); } [Fact] public void Duration_constant_values_map_to_their_clr_values() { Func<object, IEdmValue> durationConstantValuePredicate = o => new EdmDurationConstant((TimeSpan) o); ConstantValueShouldRoundtrip(new TimeSpan(1, 2, 3, 4), durationConstantValuePredicate); } [Fact] public void TimeOfDay_contant_values_map_to_their_clr_values() { Func<object, IEdmValue> timeOfDayConstantValuePredicate = o => new EdmTimeOfDayConstant((TimeOfDay) o); ConstantValueShouldRoundtrip(TimeOfDay.Now, timeOfDayConstantValuePredicate); } private void ConstantValueShouldRoundtrip(object originalValue, Func<object, IEdmValue> valuePredicate) { // Map our original value to an IEdmValue with the supplied predicate var iEdmValue = valuePredicate(originalValue); var result = ODataVocabularyReader.MapToClr(iEdmValue); result.Should() .Be(originalValue, "because a given clr value should roundtrip through its appropriate edm value "); } [Fact] public void Validly_annotated_Edm_will_correctly_parse_insert_restrictions() { var annotations = GetAnnotationsFromOneNoteSampleEntitySet("sections"); annotations.Should().HaveCount(4, "because sections have four annotations"); annotations.Should().Contain(x => x.Name == "InsertRestrictions"); var insertRestrictions = annotations.First(x => x.Name == "InsertRestrictions"); insertRestrictions.Namespace.Should().Be("Org.OData.Capabilities.V1"); insertRestrictions.Value.Should().BeOfType<InsertRestrictionsType>(); var insertValue = insertRestrictions.Value as InsertRestrictionsType; insertValue.Insertable.Should().BeFalse(); insertValue.NonInsertableNavigationProperties.Should().HaveCount(2); insertValue.NonInsertableNavigationProperties.Should().Contain("parentNotebook"); insertValue.NonInsertableNavigationProperties.Should().Contain("parentSectionGroup"); } [Fact] public void Validly_annotated_edm_will_correctly_parse_update_restrictions() { var annotations = GetAnnotationsFromOneNoteSampleEntitySet("sections"); annotations.Should().Contain(x => x.Name == "UpdateRestrictions"); var update = annotations.First(x => x.Name == "UpdateRestrictions"); update.Namespace.Should().Be("Org.OData.Capabilities.V1"); update.Value.Should().BeOfType<UpdateRestrictionsType>(); var updateValue = update.Value as UpdateRestrictionsType; updateValue.Updatable.Should().BeFalse(); updateValue.NonUpdatableNavigationProperties.Should().HaveCount(3); updateValue.NonUpdatableNavigationProperties.Should().Contain("pages"); updateValue.NonUpdatableNavigationProperties.Should().Contain("parentNotebook"); updateValue.NonUpdatableNavigationProperties.Should().Contain("parentSectionGroup"); } [Fact] public void Validly_annotated_edm_will_correctly_parse_delete_restrictions() { var annotations = GetAnnotationsFromOneNoteSampleEntitySet("sections"); annotations.Should().Contain(x => x.Name == "DeleteRestrictions"); var delete = annotations.First(x => x.Name == "DeleteRestrictions"); delete.Namespace.Should().Be("Org.OData.Capabilities.V1"); delete.Value.Should().BeOfType<DeleteRestrictionsType>(); var deleteValue = delete.Value as DeleteRestrictionsType; deleteValue.Deletable.Should().BeFalse(); deleteValue.NonDeletableNavigationProperties.Should().HaveCount(3); deleteValue.NonDeletableNavigationProperties.Should().Contain("pages"); deleteValue.NonDeletableNavigationProperties.Should().Contain("parentNotebook"); deleteValue.NonDeletableNavigationProperties.Should().Contain("parentSectionGroup"); } [Fact] public void Validly_annotated_edm_will_correctly_parse_annotations_with_primitive_values() { var annotations = GetAnnotationsFromOneNoteSampleEntityContainer(); annotations.Should().HaveCount(3); annotations.Should().Contain(x => x.Name == "BatchSupported"); annotations.Should().Contain(x => x.Name == "AsynchronousRequestsSupported"); annotations.Should().Contain(x => x.Name == "BatchContinueOnErrorSupported"); // In this case, all of the value and namespaces for these annotaion are the same // We'll loop over them for brevity. foreach (var annotation in annotations) { annotation.Namespace.Should().Be("Org.OData.Capabilities.V1"); annotation.Value.Should().BeOfType<bool>(); ((bool) annotation.Value).Should().BeFalse(); } } private List<OdcmVocabularyAnnotation> GetAnnotationsFromOneNoteSampleEntitySet(string entitySet) { IEdmModel model = SampleParsedEdmModel; IEdmEntitySet sampleEntitySet = model.FindEntityContainer("OneNoteApi").FindEntitySet(entitySet); return ODataVocabularyReader.GetOdcmAnnotations(model, sampleEntitySet).ToList(); } private List<OdcmVocabularyAnnotation> GetAnnotationsFromOneNoteSampleEntityContainer() { IEdmModel model = SampleParsedEdmModel; var sampleContainer = model.FindEntityContainer("OneNoteApi"); return ODataVocabularyReader.GetOdcmAnnotations(model, sampleContainer).ToList(); } #region Helper methods private static readonly IEdmModel SampleParsedEdmModel = GetSampleParsedEdmModel(); private static IEdmModel GetSampleParsedEdmModel() { IEdmModel edmModel; IEnumerable<EdmError> errors; if (!EdmxReader.TryParse(XmlReader.Create(new StringReader(ODataReader.v4UnitTests.Properties.Resources.OneNoteExampleEdmx)), out edmModel, out errors)) { throw new InvalidOperationException("Failed to parse Edm model"); } return edmModel; } } #endregion }
Java
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://[email protected] class: com.tencent.mm.sdk.openapi.SendAuth ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_COM_TENCENT_MM_SDK_OPENAPI_SENDAUTH_HPP_DECL #define J2CPP_COM_TENCENT_MM_SDK_OPENAPI_SENDAUTH_HPP_DECL namespace j2cpp { namespace android { namespace os { class Bundle; } } } namespace j2cpp { namespace java { namespace lang { class String; } } } namespace j2cpp { namespace java { namespace lang { class Object; } } } namespace j2cpp { namespace com { namespace tencent { namespace mm { namespace sdk { namespace openapi { class BaseReq; } } } } } } namespace j2cpp { namespace com { namespace tencent { namespace mm { namespace sdk { namespace openapi { class BaseResp; } } } } } } #include <android/os/Bundle.hpp> #include <com/tencent/mm/sdk/openapi/BaseReq.hpp> #include <com/tencent/mm/sdk/openapi/BaseResp.hpp> #include <java/lang/Object.hpp> #include <java/lang/String.hpp> namespace j2cpp { namespace com { namespace tencent { namespace mm { namespace sdk { namespace openapi { class SendAuth; namespace SendAuth_ { class Req; class Req : public object<Req> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_METHOD(3) J2CPP_DECLARE_METHOD(4) J2CPP_DECLARE_METHOD(5) J2CPP_DECLARE_FIELD(0) J2CPP_DECLARE_FIELD(1) explicit Req(jobject jobj) : object<Req>(jobj) , scope(jobj) , state(jobj) { } operator local_ref<java::lang::Object>() const; operator local_ref<com::tencent::mm::sdk::openapi::BaseReq>() const; Req(); Req(local_ref< android::os::Bundle > const&); jint getType(); void fromBundle(local_ref< android::os::Bundle > const&); void toBundle(local_ref< android::os::Bundle > const&); field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(0), J2CPP_FIELD_SIGNATURE(0), local_ref< java::lang::String > > scope; field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(1), J2CPP_FIELD_SIGNATURE(1), local_ref< java::lang::String > > state; }; //class Req class Resp; class Resp : public object<Resp> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_METHOD(3) J2CPP_DECLARE_METHOD(4) J2CPP_DECLARE_METHOD(5) J2CPP_DECLARE_FIELD(0) J2CPP_DECLARE_FIELD(1) J2CPP_DECLARE_FIELD(2) J2CPP_DECLARE_FIELD(3) J2CPP_DECLARE_FIELD(4) explicit Resp(jobject jobj) : object<Resp>(jobj) , userName(jobj) , token(jobj) , expireDate(jobj) , state(jobj) , resultUrl(jobj) { } operator local_ref<java::lang::Object>() const; operator local_ref<com::tencent::mm::sdk::openapi::BaseResp>() const; Resp(); Resp(local_ref< android::os::Bundle > const&); jint getType(); void fromBundle(local_ref< android::os::Bundle > const&); void toBundle(local_ref< android::os::Bundle > const&); field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(0), J2CPP_FIELD_SIGNATURE(0), local_ref< java::lang::String > > userName; field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(1), J2CPP_FIELD_SIGNATURE(1), local_ref< java::lang::String > > token; field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(2), J2CPP_FIELD_SIGNATURE(2), jint > expireDate; field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(3), J2CPP_FIELD_SIGNATURE(3), local_ref< java::lang::String > > state; field< J2CPP_CLASS_NAME, J2CPP_FIELD_NAME(4), J2CPP_FIELD_SIGNATURE(4), local_ref< java::lang::String > > resultUrl; }; //class Resp } //namespace SendAuth_ class SendAuth : public object<SendAuth> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) typedef SendAuth_::Req Req; typedef SendAuth_::Resp Resp; explicit SendAuth(jobject jobj) : object<SendAuth>(jobj) { } operator local_ref<java::lang::Object>() const; }; //class SendAuth } //namespace openapi } //namespace sdk } //namespace mm } //namespace tencent } //namespace com } //namespace j2cpp #endif //J2CPP_COM_TENCENT_MM_SDK_OPENAPI_SENDAUTH_HPP_DECL #else //J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_COM_TENCENT_MM_SDK_OPENAPI_SENDAUTH_HPP_IMPL #define J2CPP_COM_TENCENT_MM_SDK_OPENAPI_SENDAUTH_HPP_IMPL namespace j2cpp { com::tencent::mm::sdk::openapi::SendAuth_::Req::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } com::tencent::mm::sdk::openapi::SendAuth_::Req::operator local_ref<com::tencent::mm::sdk::openapi::BaseReq>() const { return local_ref<com::tencent::mm::sdk::openapi::BaseReq>(get_jobject()); } com::tencent::mm::sdk::openapi::SendAuth_::Req::Req() : object<com::tencent::mm::sdk::openapi::SendAuth_::Req>( call_new_object< com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_NAME(0), com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_SIGNATURE(0) >() ) , scope(get_jobject()) , state(get_jobject()) { } com::tencent::mm::sdk::openapi::SendAuth_::Req::Req(local_ref< android::os::Bundle > const &a0) : object<com::tencent::mm::sdk::openapi::SendAuth_::Req>( call_new_object< com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_NAME(1), com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_SIGNATURE(1) >(a0) ) , scope(get_jobject()) , state(get_jobject()) { } jint com::tencent::mm::sdk::openapi::SendAuth_::Req::getType() { return call_method< com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_NAME(2), com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_SIGNATURE(2), jint >(get_jobject()); } void com::tencent::mm::sdk::openapi::SendAuth_::Req::fromBundle(local_ref< android::os::Bundle > const &a0) { return call_method< com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_NAME(3), com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_SIGNATURE(3), void >(get_jobject(), a0); } void com::tencent::mm::sdk::openapi::SendAuth_::Req::toBundle(local_ref< android::os::Bundle > const &a0) { return call_method< com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_NAME(4), com::tencent::mm::sdk::openapi::SendAuth_::Req::J2CPP_METHOD_SIGNATURE(4), void >(get_jobject(), a0); } J2CPP_DEFINE_CLASS(com::tencent::mm::sdk::openapi::SendAuth_::Req,"com/tencent/mm/sdk/openapi/SendAuth$Req") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Req,0,"<init>","()V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Req,1,"<init>","(Landroid/os/Bundle;)V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Req,2,"getType","()I") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Req,3,"fromBundle","(Landroid/os/Bundle;)V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Req,4,"toBundle","(Landroid/os/Bundle;)V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Req,5,"checkArgs","()Z") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Req,0,"scope","Ljava/lang/String;") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Req,1,"state","Ljava/lang/String;") com::tencent::mm::sdk::openapi::SendAuth_::Resp::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } com::tencent::mm::sdk::openapi::SendAuth_::Resp::operator local_ref<com::tencent::mm::sdk::openapi::BaseResp>() const { return local_ref<com::tencent::mm::sdk::openapi::BaseResp>(get_jobject()); } com::tencent::mm::sdk::openapi::SendAuth_::Resp::Resp() : object<com::tencent::mm::sdk::openapi::SendAuth_::Resp>( call_new_object< com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_NAME(0), com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_SIGNATURE(0) >() ) , userName(get_jobject()) , token(get_jobject()) , expireDate(get_jobject()) , state(get_jobject()) , resultUrl(get_jobject()) { } com::tencent::mm::sdk::openapi::SendAuth_::Resp::Resp(local_ref< android::os::Bundle > const &a0) : object<com::tencent::mm::sdk::openapi::SendAuth_::Resp>( call_new_object< com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_NAME(1), com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_SIGNATURE(1) >(a0) ) , userName(get_jobject()) , token(get_jobject()) , expireDate(get_jobject()) , state(get_jobject()) , resultUrl(get_jobject()) { } jint com::tencent::mm::sdk::openapi::SendAuth_::Resp::getType() { return call_method< com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_NAME(2), com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_SIGNATURE(2), jint >(get_jobject()); } void com::tencent::mm::sdk::openapi::SendAuth_::Resp::fromBundle(local_ref< android::os::Bundle > const &a0) { return call_method< com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_NAME(3), com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_SIGNATURE(3), void >(get_jobject(), a0); } void com::tencent::mm::sdk::openapi::SendAuth_::Resp::toBundle(local_ref< android::os::Bundle > const &a0) { return call_method< com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_CLASS_NAME, com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_NAME(4), com::tencent::mm::sdk::openapi::SendAuth_::Resp::J2CPP_METHOD_SIGNATURE(4), void >(get_jobject(), a0); } J2CPP_DEFINE_CLASS(com::tencent::mm::sdk::openapi::SendAuth_::Resp,"com/tencent/mm/sdk/openapi/SendAuth$Resp") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,0,"<init>","()V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,1,"<init>","(Landroid/os/Bundle;)V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,2,"getType","()I") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,3,"fromBundle","(Landroid/os/Bundle;)V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,4,"toBundle","(Landroid/os/Bundle;)V") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,5,"checkArgs","()Z") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,0,"userName","Ljava/lang/String;") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,1,"token","Ljava/lang/String;") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,2,"expireDate","I") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,3,"state","Ljava/lang/String;") J2CPP_DEFINE_FIELD(com::tencent::mm::sdk::openapi::SendAuth_::Resp,4,"resultUrl","Ljava/lang/String;") com::tencent::mm::sdk::openapi::SendAuth::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } J2CPP_DEFINE_CLASS(com::tencent::mm::sdk::openapi::SendAuth,"com/tencent/mm/sdk/openapi/SendAuth") J2CPP_DEFINE_METHOD(com::tencent::mm::sdk::openapi::SendAuth,0,"<init>","()V") } //namespace j2cpp #endif //J2CPP_COM_TENCENT_MM_SDK_OPENAPI_SENDAUTH_HPP_IMPL #endif //J2CPP_INCLUDE_IMPLEMENTATION
Java
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18051 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace BrightstarDB.Polaris { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Strings { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Strings() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BrightstarDB.Polaris.Strings", typeof(Strings).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized string similar to Polaris Management Tool for BrightstarDB. /// </summary> internal static string AboutHeading { get { return ResourceManager.GetString("AboutHeading", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Release: {0}, Build: {1} /// ///Copyright (c) 2013 Khalil Ahmed, Graham Moore. /// ///Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the &quot;Software&quot;), 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: /// [rest of string was truncated]&quot;;. /// </summary> internal static string AboutInfo { get { return ResourceManager.GetString("AboutInfo", resourceCulture); } } /// <summary> /// Looks up a localized string similar to This application makes use of the following open-source components: /// ///dotNetRDF (http://www.dotnetrdf.org/) ///------------------------------------------ ///Copyright (c) 2011 Rob Vesse /// ///Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the &quot;Software&quot;), 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 Softwa [rest of string was truncated]&quot;;. /// </summary> internal static string Acknowledgements { get { return ResourceManager.GetString("Acknowledgements", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Are you sure you want to delete the store &apos;{0}&apos; from the server ? ///This operation cannot be undone!. /// </summary> internal static string DeleteStoreDialogContent { get { return ResourceManager.GetString("DeleteStoreDialogContent", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Delete Store ?. /// </summary> internal static string DeleteStoreDialogTitle { get { return ResourceManager.GetString("DeleteStoreDialogTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Select the root folder for the Brightstar service. This folder will contain a subfolder for each store created within the service.. /// </summary> internal static string DirectorySelectorDescription { get { return ResourceManager.GetString("DirectorySelectorDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Are you sure you want to permanently remove the server connection &apos;{0}&apos; from the server list ?. /// </summary> internal static string DisconnectServerDialogContent { get { return ResourceManager.GetString("DisconnectServerDialogContent", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Remove Server from Server List ?. /// </summary> internal static string DisconnectServerDialogTitle { get { return ResourceManager.GetString("DisconnectServerDialogTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The export of data from store &apos;{0}&apos; has completed successfully. The data can be found on the BrightstarDB server under the import directory.. /// </summary> internal static string ExportCompletedDialogMsg { get { return ResourceManager.GetString("ExportCompletedDialogMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Export Completed. /// </summary> internal static string ExportCompletedDialogTitle { get { return ResourceManager.GetString("ExportCompletedDialogTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The export of data from store &apos;{0}&apos; failed. Check the export tab for details.. /// </summary> internal static string ExportFailedDialogMsg { get { return ResourceManager.GetString("ExportFailedDialogMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Export Failed. /// </summary> internal static string ExportFailedDialogTitle { get { return ResourceManager.GetString("ExportFailedDialogTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} Export. /// </summary> internal static string ExportTabDefaultTitle { get { return ResourceManager.GetString("ExportTabDefaultTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to An unexpected error prevented the export job from running.. /// </summary> internal static string ExportUnexpectedErrorMsg { get { return ResourceManager.GetString("ExportUnexpectedErrorMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to NTriples (*.nt)|*.nt;*.nt.gz|NQuads (*.nq)|*.nq;*.nq.gz|RDF/XML (*.rdf)|*.rdf;*.rdf.gz|RDF/JSON (*.rj;*.json)|*.rj;*.json;*.rj.gz;*.json.gz|Notation3 (*.n3)|*.n3;*.n3.gz|Turtle (*.ttl)|*.ttl;*.ttl.gz|All Files(*.*)|*.*. /// </summary> internal static string FileSelectorOptions { get { return ResourceManager.GetString("FileSelectorOptions", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} History. /// </summary> internal static string HistoryTabDefaultTitle { get { return ResourceManager.GetString("HistoryTabDefaultTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The import of data into store &apos;{0}&apos; has completed successfully.. /// </summary> internal static string ImportCompletedDialogMsg { get { return ResourceManager.GetString("ImportCompletedDialogMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Import Completed. /// </summary> internal static string ImportCompletedDialogTitle { get { return ResourceManager.GetString("ImportCompletedDialogTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The import of data into store &apos;{0}&apos; failed. Check the import tab for details.. /// </summary> internal static string ImportFailedDialogMsg { get { return ResourceManager.GetString("ImportFailedDialogMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Import Failed. /// </summary> internal static string ImportFailedDialogTitle { get { return ResourceManager.GetString("ImportFailedDialogTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Cannot find import file &apos;{0}&apos;.. /// </summary> internal static string ImportFileNotFound { get { return ResourceManager.GetString("ImportFileNotFound", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The file &apos;{0}&apos; is quite large (over 50MB). /// ///A local import may require a large amount of memory on this machine as well as a fast network connection to the server. ///If possible consider copying the file to the BrightstarDB server&apos;s import folder and using a Remote import job instead. /// ///Are you sure you want to attempt to import this file with a Local import job ?. /// </summary> internal static string ImportFileSizeWarningMsg { get { return ResourceManager.GetString("ImportFileSizeWarningMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to File Size Warning. /// </summary> internal static string ImportFileSizeWarningTitle { get { return ResourceManager.GetString("ImportFileSizeWarningTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The import file is too large to be processed in memory on the client. Please copy this file to the server and use a Remote import instead.. /// </summary> internal static string ImportFileTooLarge { get { return ResourceManager.GetString("ImportFileTooLarge", resourceCulture); } } /// <summary> /// Looks up a localized string similar to An older Polaris configuration file has been found. Do you want to import this existing configuration ? If you choose No, a new empty configuration will be created for you.. /// </summary> internal static string ImportLegacyConfigurationMessage { get { return ResourceManager.GetString("ImportLegacyConfigurationMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Import Old Configuration. /// </summary> internal static string ImportLegacyConfigurationTitle { get { return ResourceManager.GetString("ImportLegacyConfigurationTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} Import. /// </summary> internal static string ImportTabDefaultTitle { get { return ResourceManager.GetString("ImportTabDefaultTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to An unexpected error prevented the import job from running.. /// </summary> internal static string ImportUnexpectedErrorMsg { get { return ResourceManager.GetString("ImportUnexpectedErrorMsg", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A Connection specifies how Polaris should connect to a BrightstarDB store. This may be either a direct connection to the directory or (recommended) a connection to a BrightstarDB server. /// ///You currently have no connections defined. Would you like to create a new connection now ?. /// </summary> internal static string NoConnectionsMessage { get { return ResourceManager.GetString("NoConnectionsMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to No Connections Defined. /// </summary> internal static string NoConnectionsTitle { get { return ResourceManager.GetString("NoConnectionsTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to An error occurred when parsing the content of the file {0}. Cause: {1}. /// </summary> internal static string ParseErrorDescription { get { return ResourceManager.GetString("ParseErrorDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Error Parsing RDF File. /// </summary> internal static string ParseErrorTitle { get { return ResourceManager.GetString("ParseErrorTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to New Query. /// </summary> internal static string QueryTabDefaultTitle { get { return ResourceManager.GetString("QueryTabDefaultTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} Statistics. /// </summary> internal static string StatisticsTabDefaultTitle { get { return ResourceManager.GetString("StatisticsTabDefaultTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Failed to create new store. {0}. /// </summary> internal static string StoreCreateFailed { get { return ResourceManager.GetString("StoreCreateFailed", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Store Creation Failed. /// </summary> internal static string StoreCreateFailedTitle { get { return ResourceManager.GetString("StoreCreateFailedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Transaction failed.. /// </summary> internal static string TransactionFailed { get { return ResourceManager.GetString("TransactionFailed", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The transaction completed successfully.. /// </summary> internal static string TransactionSuccess { get { return ResourceManager.GetString("TransactionSuccess", resourceCulture); } } /// <summary> /// Looks up a localized string similar to New Transaction. /// </summary> internal static string TransactionTabDefaultTitle { get { return ResourceManager.GetString("TransactionTabDefaultTitle", resourceCulture); } } } }
Java
# -*- coding: utf-8 -*- """ Various i18n functions. Helper functions for both the internal translation system and for TranslateWiki-based translations. By default messages are assumed to reside in a package called 'scripts.i18n'. In pywikibot 2.0, that package is not packaged with pywikibot, and pywikibot 2.0 does not have a hard dependency on any i18n messages. However, there are three user input questions in pagegenerators which will use i18 messages if they can be loaded. The default message location may be changed by calling L{set_message_package} with a package name. The package must contain an __init__.py, and a message bundle called 'pywikibot' containing messages. See L{twntranslate} for more information on the messages. """ # # (C) Pywikibot team, 2004-2015 # # Distributed under the terms of the MIT license. # from __future__ import unicode_literals __version__ = '$Id$' # import sys import re import locale import json import os import pkgutil from collections import defaultdict from pywikibot import Error from .plural import plural_rules import pywikibot from . import config2 as config if sys.version_info[0] > 2: basestring = (str, ) PLURAL_PATTERN = r'{{PLURAL:(?:%\()?([^\)]*?)(?:\)d)?\|(.*?)}}' # Package name for the translation messages. The messages data must loaded # relative to that package name. In the top of this package should be # directories named after for each script/message bundle, and each directory # should contain JSON files called <lang>.json _messages_package_name = 'scripts.i18n' # Flag to indicate whether translation messages are available _messages_available = None # Cache of translated messages _cache = defaultdict(dict) def set_messages_package(package_name): """Set the package name where i18n messages are located.""" global _messages_package_name global _messages_available _messages_package_name = package_name _messages_available = None def messages_available(): """ Return False if there are no i18n messages available. To determine if messages are available, it looks for the package name set using L{set_messages_package} for a message bundle called 'pywikibot' containing messages. @rtype: bool """ global _messages_available if _messages_available is not None: return _messages_available try: __import__(_messages_package_name) except ImportError: _messages_available = False return False _messages_available = True return True def _altlang(code): """Define fallback languages for particular languages. If no translation is available to a specified language, translate() will try each of the specified fallback languages, in order, until it finds one with a translation, with 'en' and '_default' as a last resort. For example, if for language 'xx', you want the preference of languages to be: xx > fr > ru > en, you let this method return ['fr', 'ru']. This code is used by other translating methods below. @param code: The language code @type code: string @return: language codes @rtype: list of str """ # Akan if code in ['ak', 'tw']: return ['ak', 'tw'] # Amharic if code in ['aa', 'ti']: return ['am'] # Arab if code in ['arc', 'arz', 'so']: return ['ar'] if code == 'kab': return ['ar', 'fr'] # Bulgarian if code in ['cu', 'mk']: return ['bg', 'sr', 'sh'] # Czech if code in ['cs', 'sk']: return ['cs', 'sk'] # German if code in ['bar', 'frr', 'ksh', 'pdc', 'pfl']: return ['de'] if code == 'lb': return ['de', 'fr'] if code in ['als', 'gsw']: return ['als', 'gsw', 'de'] if code == 'nds': return ['nds-nl', 'de'] if code in ['dsb', 'hsb']: return ['hsb', 'dsb', 'de'] if code == 'sli': return ['de', 'pl'] if code == 'rm': return ['de', 'it'] if code == 'stq': return ['nds', 'de'] # Greek if code in ['grc', 'pnt']: return ['el'] # Esperanto if code in ['io', 'nov']: return ['eo'] # Spanish if code in ['an', 'arn', 'ast', 'ay', 'ca', 'ext', 'lad', 'nah', 'nv', 'qu', 'yua']: return ['es'] if code in ['gl', 'gn']: return ['es', 'pt'] if code == 'eu': return ['es', 'fr'] if code == 'cbk-zam': return ['es', 'tl'] # Estonian if code in ['fiu-vro', 'vro']: return ['fiu-vro', 'vro', 'et'] if code == 'liv': return ['et', 'lv'] # Persian (Farsi) if code == 'ps': return ['fa'] if code in ['glk', 'mzn']: return ['glk', 'mzn', 'fa', 'ar'] # Finnish if code == 'vep': return ['fi', 'ru'] if code == 'fit': return ['fi', 'sv'] # French if code in ['bm', 'br', 'ht', 'kg', 'ln', 'mg', 'nrm', 'pcd', 'rw', 'sg', 'ty', 'wa']: return ['fr'] if code == 'oc': return ['fr', 'ca', 'es'] if code in ['co', 'frp']: return ['fr', 'it'] # Hindi if code in ['sa']: return ['hi'] if code in ['ne', 'new']: return ['ne', 'new', 'hi'] if code in ['bh', 'bho']: return ['bh', 'bho'] # Indonesian and Malay if code in ['ace', 'bug', 'bjn', 'id', 'jv', 'ms', 'su']: return ['id', 'ms', 'jv'] if code == 'map-bms': return ['jv', 'id', 'ms'] # Inuit languages if code in ['ik', 'iu']: return ['iu', 'kl'] if code == 'kl': return ['da', 'iu', 'no', 'nb'] # Italian if code in ['eml', 'fur', 'lij', 'lmo', 'nap', 'pms', 'roa-tara', 'sc', 'scn', 'vec']: return ['it'] # Lithuanian if code in ['bat-smg', 'sgs']: return ['bat-smg', 'sgs', 'lt'] # Latvian if code == 'ltg': return ['lv'] # Dutch if code in ['af', 'fy', 'li', 'pap', 'srn', 'vls', 'zea']: return ['nl'] if code == ['nds-nl']: return ['nds', 'nl'] # Polish if code in ['csb', 'szl']: return ['pl'] # Portuguese if code in ['fab', 'mwl', 'tet']: return ['pt'] # Romanian if code in ['roa-rup', 'rup']: return ['roa-rup', 'rup', 'ro'] if code == 'mo': return ['ro'] # Russian and Belarusian if code in ['ab', 'av', 'ba', 'bxr', 'ce', 'cv', 'inh', 'kk', 'koi', 'krc', 'kv', 'ky', 'lbe', 'lez', 'mdf', 'mhr', 'mn', 'mrj', 'myv', 'os', 'sah', 'tg', 'udm', 'uk', 'xal']: return ['ru'] if code in ['kbd', 'ady']: return ['kbd', 'ady', 'ru'] if code == 'tt': return ['tt-cyrl', 'ru'] if code in ['be', 'be-x-old', 'be-tarask']: return ['be', 'be-x-old', 'be-tarask', 'ru'] if code == 'kaa': return ['uz', 'ru'] # Serbocroatian if code in ['bs', 'hr', 'sh']: return ['sh', 'hr', 'bs', 'sr', 'sr-el'] if code == 'sr': return ['sr-el', 'sh', 'hr', 'bs'] # Tagalog if code in ['bcl', 'ceb', 'ilo', 'pag', 'pam', 'war']: return ['tl'] # Turkish and Kurdish if code in ['diq', 'ku']: return ['ku', 'ku-latn', 'tr'] if code == 'gag': return ['tr'] if code == 'ckb': return ['ku'] # Ukrainian if code in ['crh', 'crh-latn']: return ['crh', 'crh-latn', 'uk', 'ru'] if code in ['rue']: return ['uk', 'ru'] # Chinese if code in ['zh-classical', 'lzh', 'minnan', 'zh-min-nan', 'nan', 'zh-tw', 'zh', 'zh-hans']: return ['zh', 'zh-hans', 'zh-tw', 'zh-cn', 'zh-classical', 'lzh'] if code in ['cdo', 'gan', 'hak', 'ii', 'wuu', 'za', 'zh-classical', 'lzh', 'zh-cn', 'zh-yue', 'yue']: return ['zh', 'zh-hans' 'zh-cn', 'zh-tw', 'zh-classical', 'lzh'] # Scandinavian languages if code in ['da', 'sv']: return ['da', 'no', 'nb', 'sv', 'nn'] if code in ['fo', 'is']: return ['da', 'no', 'nb', 'nn', 'sv'] if code == 'nn': return ['no', 'nb', 'sv', 'da'] if code in ['no', 'nb']: return ['no', 'nb', 'da', 'nn', 'sv'] if code == 'se': return ['sv', 'no', 'nb', 'nn', 'fi'] # Other languages if code in ['bi', 'tpi']: return ['bi', 'tpi'] if code == 'yi': return ['he', 'de'] if code in ['ia', 'ie']: return ['ia', 'la', 'it', 'fr', 'es'] if code == 'xmf': return ['ka'] if code in ['nso', 'st']: return ['st', 'nso'] if code in ['kj', 'ng']: return ['kj', 'ng'] if code in ['meu', 'hmo']: return ['meu', 'hmo'] if code == ['as']: return ['bn'] # Default value return [] class TranslationError(Error, ImportError): """Raised when no correct translation could be found.""" # Inherits from ImportError, as this exception is now used # where previously an ImportError would have been raised, # and may have been caught by scripts as such. pass def _get_translation(lang, twtitle): """ Return message of certain twtitle if exists. For internal use, don't use it directly. """ if twtitle in _cache[lang]: return _cache[lang][twtitle] message_bundle = twtitle.split('-')[0] trans_text = None filename = '%s/%s.json' % (message_bundle, lang) try: trans_text = pkgutil.get_data( _messages_package_name, filename).decode('utf-8') except (OSError, IOError): # file open can cause several exceptions _cache[lang][twtitle] = None return transdict = json.loads(trans_text) _cache[lang].update(transdict) try: return transdict[twtitle] except KeyError: return def _extract_plural(code, message, parameters): """Check for the plural variants in message and replace them. @param message: the message to be replaced @type message: unicode string @param parameters: plural parameters passed from other methods @type parameters: int, basestring, tuple, list, dict """ plural_items = re.findall(PLURAL_PATTERN, message) if plural_items: # we found PLURAL patterns, process it if len(plural_items) > 1 and isinstance(parameters, (tuple, list)) and \ len(plural_items) != len(parameters): raise ValueError("Length of parameter does not match PLURAL " "occurrences.") i = 0 for selector, variants in plural_items: if isinstance(parameters, dict): num = int(parameters[selector]) elif isinstance(parameters, basestring): num = int(parameters) elif isinstance(parameters, (tuple, list)): num = int(parameters[i]) i += 1 else: num = parameters # TODO: check against plural_rules[code]['nplurals'] try: index = plural_rules[code]['plural'](num) except KeyError: index = plural_rules['_default']['plural'](num) except TypeError: # we got an int, not a function index = plural_rules[code]['plural'] repl = variants.split('|')[index] message = re.sub(PLURAL_PATTERN, repl, message, count=1) return message DEFAULT_FALLBACK = ('_default', ) def translate(code, xdict, parameters=None, fallback=False): """Return the most appropriate translation from a translation dict. Given a language code and a dictionary, returns the dictionary's value for key 'code' if this key exists; otherwise tries to return a value for an alternative language that is most applicable to use on the wiki in language 'code' except fallback is False. The language itself is always checked first, then languages that have been defined to be alternatives, and finally English. If none of the options gives result, we just take the one language from xdict which may not be always the same. When fallback is iterable it'll return None if no code applies (instead of returning one). For PLURAL support have a look at the twntranslate method @param code: The language code @type code: string or Site object @param xdict: dictionary with language codes as keys or extended dictionary with family names as keys containing language dictionaries or a single (unicode) string. May contain PLURAL tags as described in twntranslate @type xdict: dict, string, unicode @param parameters: For passing (plural) parameters @type parameters: dict, string, unicode, int @param fallback: Try an alternate language code. If it's iterable it'll also try those entries and choose the first match. @type fallback: boolean or iterable """ family = pywikibot.config.family # If a site is given instead of a code, use its language if hasattr(code, 'code'): family = code.family.name code = code.code # Check whether xdict has multiple projects if isinstance(xdict, dict): if family in xdict: xdict = xdict[family] elif 'wikipedia' in xdict: xdict = xdict['wikipedia'] # Get the translated string if not isinstance(xdict, dict): trans = xdict elif not xdict: trans = None else: codes = [code] if fallback is True: codes += _altlang(code) + ['_default', 'en'] elif fallback is not False: codes += list(fallback) for code in codes: if code in xdict: trans = xdict[code] break else: if fallback is not True: # this shouldn't simply return "any one" code but when fallback # was True before 65518573d2b0, it did just that. When False it # did just return None. It's now also returning None in the new # iterable mode. return code = list(xdict.keys())[0] trans = xdict[code] if trans is None: return # return None if we have no translation found if parameters is None: return trans # else we check for PLURAL variants trans = _extract_plural(code, trans, parameters) if parameters: try: return trans % parameters except (KeyError, TypeError): # parameter is for PLURAL variants only, don't change the string pass return trans def twtranslate(code, twtitle, parameters=None, fallback=True): """ Translate a message. The translations are retrieved from json files in messages_package_name. fallback parameter must be True for i18n and False for L10N or testing purposes. @param code: The language code @param twtitle: The TranslateWiki string title, in <package>-<key> format @param parameters: For passing parameters. @param fallback: Try an alternate language code @type fallback: boolean """ if not messages_available(): raise TranslationError( 'Unable to load messages package %s for bundle %s' '\nIt can happen due to lack of i18n submodule or files. ' 'Read https://mediawiki.org/wiki/PWB/i18n' % (_messages_package_name, twtitle)) code_needed = False # If a site is given instead of a code, use its language if hasattr(code, 'code'): lang = code.code # check whether we need the language code back elif isinstance(code, list): lang = code.pop() code_needed = True else: lang = code # There are two possible failure modes: the translation dict might not have # the language altogether, or a specific key could be untranslated. Both # modes are caught with the KeyError. langs = [lang] if fallback: langs += _altlang(lang) + ['en'] for alt in langs: trans = _get_translation(alt, twtitle) if trans: break else: raise TranslationError( 'No English translation has been defined for TranslateWiki key' ' %r\nIt can happen due to lack of i18n submodule or files. ' 'Read https://mediawiki.org/wiki/PWB/i18n' % twtitle) # send the language code back via the given list if code_needed: code.append(alt) if parameters: return trans % parameters else: return trans # Maybe this function should be merged with twtranslate def twntranslate(code, twtitle, parameters=None): r"""Translate a message with plural support. Support is implemented like in MediaWiki extension. If the TranslateWiki message contains a plural tag inside which looks like:: {{PLURAL:<number>|<variant1>|<variant2>[|<variantn>]}} it takes that variant calculated by the plural_rules depending on the number value. Multiple plurals are allowed. As an examples, if we had several json dictionaries in test folder like: en.json: { "test-plural": "Bot: Changing %(num)s {{PLURAL:%(num)d|page|pages}}.", } fr.json: { "test-plural": "Robot: Changer %(descr)s {{PLURAL:num|une page|quelques pages}}.", } and so on. >>> from pywikibot import i18n >>> i18n.set_messages_package('tests.i18n') >>> # use a number >>> str(i18n.twntranslate('en', 'test-plural', 0) % {'num': 'no'}) 'Bot: Changing no pages.' >>> # use a string >>> str(i18n.twntranslate('en', 'test-plural', '1') % {'num': 'one'}) 'Bot: Changing one page.' >>> # use a dictionary >>> str(i18n.twntranslate('en', 'test-plural', {'num':2})) 'Bot: Changing 2 pages.' >>> # use additional format strings >>> str(i18n.twntranslate('fr', 'test-plural', {'num': 1, 'descr': 'seulement'})) 'Robot: Changer seulement une page.' >>> # use format strings also outside >>> str(i18n.twntranslate('fr', 'test-plural', 10) % {'descr': 'seulement'}) 'Robot: Changer seulement quelques pages.' The translations are retrieved from i18n.<package>, based on the callers import table. @param code: The language code @param twtitle: The TranslateWiki string title, in <package>-<key> format @param parameters: For passing (plural) parameters. """ # If a site is given instead of a code, use its language if hasattr(code, 'code'): code = code.code # we send the code via list and get the alternate code back code = [code] trans = twtranslate(code, twtitle) # get the alternate language code modified by twtranslate lang = code.pop() # check for PLURAL variants trans = _extract_plural(lang, trans, parameters) # we always have a dict for replacement of translatewiki messages if parameters and isinstance(parameters, dict): try: return trans % parameters except KeyError: # parameter is for PLURAL variants only, don't change the string pass return trans def twhas_key(code, twtitle): """ Check if a message has a translation in the specified language code. The translations are retrieved from i18n.<package>, based on the callers import table. No code fallback is made. @param code: The language code @param twtitle: The TranslateWiki string title, in <package>-<key> format """ # If a site is given instead of a code, use its language if hasattr(code, 'code'): code = code.code transdict = _get_translation(code, twtitle) if transdict is None: return False return True def twget_keys(twtitle): """ Return all language codes for a special message. @param twtitle: The TranslateWiki string title, in <package>-<key> format """ # obtain the directory containing all the json files for this package package = twtitle.split("-")[0] mod = __import__(_messages_package_name, fromlist=[str('__file__')]) pathname = os.path.join(os.path.dirname(mod.__file__), package) # build a list of languages in that directory langs = [filename.partition('.')[0] for filename in sorted(os.listdir(pathname)) if filename.endswith('.json')] # exclude languages does not have this specific message in that package # i.e. an incomplete set of translated messages. return [lang for lang in langs if lang != 'qqq' and _get_translation(lang, twtitle)] def input(twtitle, parameters=None, password=False, fallback_prompt=None): """ Ask the user a question, return the user's answer. The prompt message is retrieved via L{twtranslate} and either uses the config variable 'userinterface_lang' or the default locale as the language code. @param twtitle: The TranslateWiki string title, in <package>-<key> format @param parameters: The values which will be applied to the translated text @param password: Hides the user's input (for password entry) @param fallback_prompt: The English prompt if i18n is not available. @rtype: unicode string """ if not messages_available(): if not fallback_prompt: raise TranslationError( 'Unable to load messages package %s for bundle %s' % (_messages_package_name, twtitle)) else: prompt = fallback_prompt else: code = config.userinterface_lang or \ locale.getdefaultlocale()[0].split('_')[0] prompt = twtranslate(code, twtitle, parameters) return pywikibot.input(prompt, password)
Java
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * sisane: The stunning micro-library that helps you to develop easily * AJAX web applications by using Angular.js 1.x & sisane-server * sisane is distributed under the MIT License (MIT) * Sources at https://github.com/rafaelaznar/ * * 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. * */ 'use strict'; moduloEpisodio.controller('EpisodioViewpopController', ['$scope', '$routeParams', 'serverService', 'episodioService', '$location', '$uibModalInstance', 'id', function ($scope, $routeParams, serverService, episodioService, $location, $uibModalInstance, id) { $scope.fields = episodioService.getFields(); $scope.obtitle = episodioService.getObTitle(); $scope.icon = episodioService.getIcon(); $scope.ob = episodioService.getTitle(); $scope.title = "Vista de " + $scope.obtitle; $scope.id = id; $scope.status = null; $scope.debugging = serverService.debugging(); serverService.promise_getOne($scope.ob, $scope.id).then(function (response) { if (response.status == 200) { if (response.data.status == 200) { $scope.status = null; $scope.bean = response.data.message; var filter = "and,id_medico,equa," + $scope.bean.obj_medico.id; serverService.promise_getPage("usuario", 1, 1, filter).then(function (data) { if (data.data.message.length > 0) $scope.medico = data.data.message[0]; }); } else { $scope.status = "Error en la recepción de datos del servidor"; } } else { $scope.status = "Error en la recepción de datos del servidor"; } }).catch(function (data) { $scope.status = "Error en la recepción de datos del servidor"; }); $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); } }]);
Java
# Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_moj_peoplefinder_session'
Java
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var browserSync = require('browser-sync'); function isOnlyChange(event) { return event.type === 'changed'; } gulp.task('watch', ['inject'], function () { gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower.json'], ['inject']); gulp.watch([ path.join(conf.paths.src, '/assets/styles/css/**/*.css'), path.join(conf.paths.src, '/assets/styles/less/**/*.less') ], function(event) { if(isOnlyChange(event)) { gulp.start('own-styles'); } else { gulp.start('inject'); } }); gulp.watch([ path.join(conf.paths.src, '/app/**/*.css'), path.join(conf.paths.src, '/app/**/*.less') ], function(event) { if(isOnlyChange(event)) { gulp.start('styles'); } else { gulp.start('inject'); } }); gulp.watch(path.join(conf.paths.src, '/app/**/*.js'), function(event) { if(isOnlyChange(event)) { gulp.start('scripts'); } else { gulp.start('inject'); } }); gulp.watch(path.join(conf.paths.src, '/app/**/*.html'), function(event) { browserSync.reload(event.path); }); });
Java
/* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* $Header$ */ #include <ctype.h> #include <stdlib.h> /* We do not use strtol here for backwards compatibility in behaviour on overflow. */ long atol(register const char *nptr) { long total = 0; int minus = 0; while (isspace(*nptr)) nptr++; if (*nptr == '+') nptr++; else if (*nptr == '-') { minus = 1; nptr++; } while (isdigit(*nptr)) { total *= 10; total += (*nptr++ - '0'); } return minus ? -total : total; }
Java
.model-icon { min-width: 20px !important; display: inline-block !important; margin-left: 2px; } .table a { display: block; } /*------------------ Admin ------------------*/ .controller-admin .plugin-list { list-style: none; margin: 0; padding: 0; } .controller-admin .plugin-list a { display: block; padding: 5px 15px; } .controller-admin .plugin-list a.float-right { display: none; } .controller-admin .plugin-list li:hover a.float-right { display: block; color: #fff; } .controller-admin .plugin-list a:hover { background: #45c5eb; color: #fff; border-radius: .3rem; } .controller-admin .plugin-list a:hover .model-icon { color: #fff; } .controller-admin .plugin-list a:hover .text-muted { color: #dbf1fa; } /*------------------ CRUD ------------------*/ .controller-crud .associations { margin: 2rem 0; } .controller-crud .associations h3 { margin-bottom: 1rem; } /*------------------ ACL ------------------*/ .controller-acl .table { width: auto; } .controller-acl .table td { padding: 0; } .controller-acl .table a { display: block; padding: 1rem; color: #000; } .controller-acl .table a span { opacity: .2; } .controller-acl .table a:hover { text-decoration: none; } .controller-acl .table a:hover span { opacity: 1; } .controller-acl .table .permission a { text-align: center; } .controller-acl .table .permission .action.allow { background-color: #e7f2dd; } .controller-acl .table .permission .action.inherit { background-color: #dbf1fa; } .controller-acl .table .permission .action.deny { background-color: #fdc5c1; } .controller-acl .matrix-head { background: #1d1f21 !important; border-color: #52555a !important; color: #fff; } .controller-acl .matrix-head a { color: #E5E5E5; } .controller-acl .matrix-head a:hover { color: #fff; } .controller-acl .matrix-head.matrix-y { min-width: 150px; } /*------------------ Logs ------------------*/ .controller-logs table tbody a { display: inline-block; } /*------------------ Reports ------------------*/ .controller-reports .reported-item { margin: 2rem 0 1rem 0; } .controller-reports .reported-item h3 { margin-bottom: 1rem; } /*------------------ Upload ------------------*/ .controller-upload .field .col.span-2 { margin-right: 1.5rem; } .controller-upload .field .field-col .checkbox label { margin-left: 5px; } .controller-upload .field .field-help { vertical-align: middle; margin: 8px 0 0 10px; display: inline-block; } .controller-upload .field textarea { min-height: 100px; } .controller-upload .splash { padding: 100px; text-align: center; border: 1px solid #e5e5e5; background: #fbfbfb; border-radius: .3em; } .controller-upload .splash h2 { margin-bottom: 25px; } /*----------------- Form -----------------*/ .field-null { display: inline-block; margin-left: 10px; } .field-null label { margin-left: 5px; font-weight: normal; } .field-null input { top: 1px; position: relative; } /*----------------- Table -----------------*/ .type-integer, .type-boolean, .type-enum, .type-float { text-align: center !important; } .type-datetime { text-align: right !important; } .col-checkbox { width: 15px; } .col-actions { width: 15px; padding: .5rem !important; } .col-actions .button { display: inline-block; padding: 3px 4px; float: none; font-size: .8rem; }
Java
<?php /** * @copyright Copyright (c) 2018 Robin Appelman <[email protected]> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ namespace Icewind\SMB; use Icewind\SMB\Exception\DependencyException; use Icewind\SMB\Exception\Exception; /** * Use existing kerberos ticket to authenticate and reuse the apache ticket cache (mod_auth_kerb) */ class KerberosApacheAuth extends KerberosAuth implements IAuth { /** @var string */ private $ticketPath = ""; /** @var bool */ private $init = false; /** @var string|false */ private $ticketName; public function __construct() { $this->ticketName = getenv("KRB5CCNAME"); } /** * Copy the ticket to a temporary location and use that ticket for authentication * * @return void */ public function copyTicket(): void { if (!$this->checkTicket()) { return; } $krb5 = new \KRB5CCache(); $krb5->open($this->ticketName); $tmpFilename = tempnam("/tmp", "krb5cc_php_"); $tmpCacheFile = "FILE:" . $tmpFilename; $krb5->save($tmpCacheFile); $this->ticketPath = $tmpFilename; $this->ticketName = $tmpCacheFile; } /** * Pass the ticket to smbclient by memory instead of path * * @return void */ public function passTicketFromMemory(): void { if (!$this->checkTicket()) { return; } $krb5 = new \KRB5CCache(); $krb5->open($this->ticketName); $this->ticketName = (string)$krb5->getName(); } /** * Check if a valid kerberos ticket is present * * @return bool * @psalm-assert-if-true string $this->ticketName */ public function checkTicket(): bool { //read apache kerberos ticket cache if (!$this->ticketName) { return false; } $krb5 = new \KRB5CCache(); $krb5->open($this->ticketName); /** @psalm-suppress MixedArgument */ return count($krb5->getEntries()) > 0; } private function init(): void { if ($this->init) { return; } $this->init = true; // inspired by https://git.typo3.org/TYPO3CMS/Extensions/fal_cifs.git if (!extension_loaded("krb5")) { // https://pecl.php.net/package/krb5 throw new DependencyException('Ensure php-krb5 is installed.'); } //read apache kerberos ticket cache if (!$this->checkTicket()) { throw new Exception('No kerberos ticket cache environment variable (KRB5CCNAME) found.'); } // note that even if the ticketname is the value we got from `getenv("KRB5CCNAME")` we still need to set the env variable ourselves // this is because `getenv` also reads the variables passed from the SAPI (apache-php) and we need to set the variable in the OS's env putenv("KRB5CCNAME=" . $this->ticketName); } public function getExtraCommandLineArguments(): string { $this->init(); return parent::getExtraCommandLineArguments(); } public function setExtraSmbClientOptions($smbClientState): void { $this->init(); try { parent::setExtraSmbClientOptions($smbClientState); } catch (Exception $e) { // suppress } } public function __destruct() { if (!empty($this->ticketPath) && file_exists($this->ticketPath) && is_file($this->ticketPath)) { unlink($this->ticketPath); } } }
Java
/* adddma.c */ #include <lib.h> #define adddma _adddma #include <unistd.h> #include <stdarg.h> int adddma(proc_e, start, size) endpoint_t proc_e; phys_bytes start; phys_bytes size; { message m; m.m2_i1= proc_e; m.m2_l1= start; m.m2_l2= size; return _syscall(MM, ADDDMA, &m); }
Java
module Trinidad module Extensions class BarOptionsExtension < OptionsExtension def configure(parser, default_options) default_options ||= {} default_options[:bar] = true end end end end
Java
require "heroku/command/base" require "base64" require "excon" # manage organization accounts # class Heroku::Command::Orgs < Heroku::Command::Base # orgs # # lists the orgs that you are a member of. # # def index response = org_api.get_orgs.body orgs = [] response.fetch('organizations', []).each do |org| orgs << org org.fetch('child_orgs', []).each do |child| orgs << child end end default = response['user']['default_organization'] || "" orgs.map! do |org| name = org["organization_name"] t = [] t << org["role"] t << 'default' if name == default [name, t.join(', ')] end if orgs.empty? display("You are not a member of any organizations.") else styled_array(orgs) end end # orgs:open --org ORG # # opens the org interface in a browser # # def open launchy("Opening web interface for #{org}", "https://dashboard.heroku.com/orgs/#{org}/apps") end # orgs:default [TARGET] # # sets the default org. # TARGET can be an org you belong to or it can be "personal" # for your personal account. If no argument or option is given, # the default org is displayed # # def default options[:ignore_no_org] = true if target = shift_argument options[:org] = target end if org == "personal" || options[:personal] action("Setting personal account as default") do org_api.remove_default_org end elsif org && !options[:using_default_org] action("Setting #{org} as the default organization") do org_api.set_default_org(org) end elsif org display("#{org} is the default organization.") else display("Personal account is default.") end end end
Java
var assert = require('assert'); var _ = require('@sailshq/lodash'); var SchemaBuilder = require('../lib/waterline-schema'); describe('Has Many Through :: ', function() { describe('Junction Tables', function() { var schema; before(function() { var fixtures = [ { identity: 'user', primaryKey: 'id', attributes: { id: { type: 'number' }, cars: { collection: 'car', through: 'drive', via: 'user' } } }, { identity: 'drive', primaryKey: 'id', attributes: { id: { type: 'number' }, car: { model: 'car' }, user: { model: 'user' } } }, { identity: 'car', primaryKey: 'id', attributes: { id: { type: 'number' }, drivers: { collection: 'user', through: 'drive', via: 'car' } } } ]; var collections = _.map(fixtures, function(obj) { var collection = function() {}; collection.prototype = obj; return collection; }); // Build the schema schema = SchemaBuilder(collections); }); it('should flag the "through" table and not mark it as a junction table', function() { assert(schema.drive); assert(!schema.drive.junctionTable); assert(schema.drive.throughTable); }); }); describe('Reference Mapping', function() { var schema; before(function() { var fixtures = [ { identity: 'foo', primaryKey: 'id', attributes: { id: { type: 'number' }, bars: { collection: 'bar', through: 'foobar', via: 'foo' } } }, { identity: 'foobar', primaryKey: 'id', attributes: { id: { type: 'number' }, type: { type: 'string' }, foo: { model: 'foo', columnName: 'foo_id' }, bar: { model: 'bar', columnName: 'bar_id' } } }, { identity: 'bar', primaryKey: 'id', attributes: { id: { type: 'number' }, foo: { collection: 'foo', through: 'foobar', via: 'bar' } } } ]; var collections = _.map(fixtures, function(obj) { var collection = function() {}; collection.prototype = obj; return collection; }); // Build the schema schema = SchemaBuilder(collections); }); it('should update the parent collection to point to the join table', function() { assert.equal(schema.foo.schema.bars.references, 'foobar'); assert.equal(schema.foo.schema.bars.on, 'foo_id'); }); }); });
Java
package sacloud // IPv6Addr IPアドレス(IPv6) type IPv6Addr struct { HostName string `json:",omitempty"` // ホスト名 IPv6Addr string `json:",omitempty"` // IPv6アドレス Interface *Interface `json:",omitempty"` // インターフェース IPv6Net *IPv6Net `json:",omitempty"` // IPv6サブネット } // GetIPv6NetID IPv6アドレスが所属するIPv6NetのIDを取得 func (a *IPv6Addr) GetIPv6NetID() int64 { if a.IPv6Net != nil { return a.IPv6Net.ID } return 0 } // GetInternetID IPv6アドレスを所有するルータ+スイッチ(Internet)のIDを取得 func (a *IPv6Addr) GetInternetID() int64 { if a.IPv6Net != nil && a.IPv6Net.Switch != nil && a.IPv6Net.Switch.Internet != nil { return a.IPv6Net.Switch.Internet.ID } return 0 } // CreateNewIPv6Addr IPv6アドレス作成 func CreateNewIPv6Addr() *IPv6Addr { return &IPv6Addr{ IPv6Net: &IPv6Net{ Resource: &Resource{}, }, } }
Java
using System; using System.Runtime.InteropServices; using Duality; using Duality.Drawing; using Duality.Resources; namespace DynamicLighting { [StructLayout(LayoutKind.Sequential)] public struct VertexC1P3T2A4 : IVertexData { public static readonly VertexDeclaration Declaration = VertexDeclaration.Get<VertexC1P3T2A4>(); [VertexElement(VertexElementRole.Color)] public ColorRgba Color; [VertexElement(VertexElementRole.Position)] public Vector3 Pos; [VertexElement(VertexElementRole.TexCoord)] public Vector2 TexCoord; public Vector4 Attrib; // Add Vector3 for lighting world position, see note in Light.cs Vector3 IVertexData.Pos { get { return this.Pos; } set { this.Pos = value; } } ColorRgba IVertexData.Color { get { return this.Color; } set { this.Color = value; } } VertexDeclaration IVertexData.Declaration { get { return Declaration; } } } }
Java
package engine.actions; import engine.gameObject.GameObject; import authoring.model.collections.GameObjectsCollection; public class FixedCollisionTypeAction extends PhysicsTypeAction { public FixedCollisionTypeAction (String type, String secondType, Double value) { super(type, secondType, value); // TODO Auto-generated constructor stub } @Override public void applyPhysics (GameObjectsCollection myObjects) { GameObject firstCollisionObject = null; GameObject secondCollisionObject = null; for (GameObject g : myObjects){ if (g.getIdentifier().getType().equals(myType) && g.isCollisionEnabled()){ firstCollisionObject = g; } if (g.getIdentifier().getType().equals(mySecondType) && g.isCollisionEnabled()){ secondCollisionObject = g; } } myCollision.fixedCollision(firstCollisionObject, secondCollisionObject); } }
Java
<?php phpinfo();
Java
## ember-cli [![Build Status](https://travis-ci.org/stefanpenner/ember-cli.png?branch=master)](https://travis-ci.org/stefanpenner/ember-cli) [![Dependency Status](https://david-dm.org/stefanpenner/ember-cli.svg)](https://david-dm.org/stefanpenner/ember-cli) An ember command line utility. Supports node 0.10.5 and npm 1.4.6. ## Community * irc: #ember-cli on freenode * issues: [ember-cli/issues](https://github.com/stefanpenner/ember-cli/issues) * website: [iamstef.net/ember-cli](http://iamstef.net/ember-cli) [![ScreenShot](http://static.iamstef.net/ember-conf-2014-video.jpg)](https://www.youtube.com/watch?v=4D8z3972h64) ## Warning Although potentially exciting, this is still really a WIP, use at your own risk. ## Project Elements Additional components of this project which are used runtime in your application: * [ember-jj-abrams-resolver](https://github.com/stefanpenner/ember-jj-abrams-resolver) * [loader](https://github.com/stefanpenner/loader.js) * [ember-cli-shims](https://github.com/stefanpenner/ember-cli-shims) * [ember-load-initializers](https://github.com/stefanpenner/ember-load-initializers) ## Development Hints ### Working with master ``` sh git clone https://github.com/stefanpenner/ember-cli.git cd ember-cli npm link ``` `npm link` is very similar to `npm install -g` except that instead of downloading the package from the repo the just cloned `ember-cli/` folder becomes the global package. Any changes to the files in the `ember-cli/` folder will immediately affect the global ember-cli package. Now you can use `ember-cli` via the command line: ``` sh ember new foo cd foo npm link ember-cli ember server ``` `npm link ember-cli` is needed because by default the globally installed `ember-cli` just loads the local `ember-cli` from the project. `npm link ember-cli` symlinks the global `ember-cli` package to the local `ember-cli` package. Now the `ember-cli` you cloned before is in three places: The folder you cloned it into, npm's folder where it stores global packages and the `ember-cli` project you just created. If you upgrade an app running against Ember CLI master you will need to re-link to your checkout of Ember CLI by running `npm link ember-cli` in your project again. Please read the official [npm-link documentation](https://www.npmjs.org/doc/cli/npm-link.html) and the [npm-link cheatsheet](https://blog.nodejitsu.com/npm-cheatsheet/#Linking_any_npm_package_locally) for more information. ### Working with the tests Use `npm run-script autotest` to run the tests after every file change (Runs only fast tests). Use `npm test` to run them once. For a full test run which includes some very slow acceptance tests, please run: `npm run-script test-all`. Please note, this is what travis runs. To exclude a test or test suite append a `.skip` to `it()` or `describe()` respectively (e.g. `it.skip(...)`). To focus on a certain test or test suite append `.only`. Please read the official [mocha documentation](http://visionmedia.github.io/mocha) for more information. ## Contribution [See `CONTRIBUTING.md`](https://github.com/stefanpenner/ember-cli/blob/master/CONTRIBUTING.md) ## Donating All donations will support this project and treats for contributors. [![Support via Gittip](https://rawgithub.com/twolfson/gittip-badge/0.2.0/dist/gittip.png)](https://www.gittip.com/stefanpenner/) ## License ember-cli is [MIT Licensed](https://github.com/stefanpenner/ember-cli/blob/master/LICENSE.md).
Java
module('lively.ide.DirectoryWatcher').requires('lively.Network').toRun(function() { // depends on the DirectoryWatcherServer Object.extend(lively.ide.DirectoryWatcher, { watchServerURL: new URL(Config.nodeJSURL+'/DirectoryWatchServer/'), dirs: {}, reset: function() { // lively.ide.DirectoryWatcher.reset() this.dirs = {}; this.watchServerURL.withFilename('reset').asWebResource().post(); }, request: function(url, thenDo) { return url.asWebResource().beAsync().withJSONWhenDone(function(json, status) { thenDo(!json || json.error, json); }).get(); }, getFiles: function(dir, thenDo) { this.request(this.watchServerURL.withFilename('files').withQuery({dir: dir}), thenDo); }, getChanges: function(dir, since, startWatchTime, thenDo) { this.request(this.watchServerURL.withFilename('changes').withQuery({ startWatchTime: startWatchTime, since: since, dir: dir}), thenDo); }, withFilesOfDir: function(dir, doFunc) { // Retrieves efficiently the files of dir. Uses a server side watcher that // sends infos about file changes, deletions, creations. // This methods synchs those with the cached state held in this object // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // dir = lively.shell.exec('pwd', {sync:true}).resultString() // lively.ide.DirectoryWatcher.dirs // lively.ide.DirectoryWatcher.withFilesOfDir(dir, function(files) { show(Object.keys(files).length); }) // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var watchState = this.dirs[dir] || (this.dirs[dir] = {updateInProgress: false, callbacks: []}); doFunc && watchState.callbacks.push(doFunc); if (watchState.updateInProgress) { return; } watchState.updateInProgress = true; // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- if (!watchState.files) { // first time called this.getFiles(dir, function(err, result) { if (err) show("dir watch error: %s", err); result.files && Properties.forEachOwn(result.files, function(path, stat) { extend(stat); }) Object.extend(watchState, { files: result.files, lastUpdated: result.startTime, startTime: result.startTime }); whenDone(); }); return; } // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- var timeSinceLastUpdate = Date.now() - (watchState.lastUpdated || 0); if (timeSinceLastUpdate < 10 * 1000) { whenDone(); } // recently updated // get updates this.getChanges(dir, watchState.lastUpdated, watchState.startTime, function(err, result) { if (!result.changes || result.changes.length === 0) { whenDone(); return; } watchState.lastUpdated = result.changes[0].time; console.log('%s files changed in %s: %s', result.changes.length, dir, result.changes.pluck('path').join('\n')); result.changes.forEach(function(change) { switch (change.type) { case 'removal': delete watchState.files[change.path]; break; case 'creation': case 'change': watchState.files[change.path] = extend(change.stat); break; } }); whenDone(); }); // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- function whenDone() { watchState.updateInProgress = false; var cb; while ((cb = watchState.callbacks.shift())) cb(watchState.files); } function extend(statObj) { // convert date string into a date object if (!statObj) statObj = {}; statObj.isDirectory = !!(statObj.mode & 0x4000); ['atime', 'mtime', 'ctime'].forEach(function(field) { if (statObj[field]) statObj[field] = new Date(statObj[field]); }); return statObj; } } }); }) // end of module
Java
<html> <head> <title>Popcorn processing unit Tests</title> <link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen"> <script src="../../test/qunit/qunit.js"></script> <script src="../../popcorn.js"></script> <script src="popcorn.processing.js"></script> <script src="popcorn.processing.unit.js"></script> </head> <body> <h1 id="qunit-header">Popcorn processing Plug-in Demo</h1> <h2 id="qunit-banner"></h2> <div id="qunit-testrunner-toolbar"></div> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> <div id="qunit-fixture"> </div> <div> <video id="video" controls preload="none" width="250px" poster="../../test/poster.png"> <source id="mp4" src="../../test/trailer.mp4" type='video/mp4; codecs="avc1, mp4a"'> <source id="ogv" src="../../test/trailer.ogv" type='video/ogg; codecs="theora, vorbis"'> <source id='webm' src="../../test/trailer.webm" type='video/webm; codecs="vp8, vorbis"'> <p>Your user agent does not support the HTML5 Video element.</p> </video> </div> <div id="processing-div-1" width="50%" height="50%"></div> <div id="processing-div-2" width="50%" height="50%"></div> <div id="processing-div-3" width="50%" height="50%"></div> <div id="processing-div-4" width="50%" height="50%"></div> </html>
Java
/* ======================================================================== * TABLE OF CONTENTS * ======================================================================== * ======================================================================== * LAYOUT * ======================================================================== 01. HEADER 02. SIDEBAR LEFT & RIGHT 03. PAGE CONTENT * ======================================================================== * ======================================================================== * PAGES * ======================================================================== 01. SIGN 02. ERROR 03. INVOICE * ======================================================================== * ======================================================================== * COMPONENT * ======================================================================== 01. RESET 02. PANEL 03. MEDIA MANAGER 04. PAGINATION 05. RATING STAR 06. DROPDOWN 07. LIST GROUP 08. FORM 09. TABLE 10. BUTTON 11. MISC * ======================================================================== * ======================================================================== * PLUGINS * ======================================================================== 01. CHOSEN 02. DROPZONE 03. JPRELOADER 04. DATEPICKER 05. ION SLIDER * ======================================================================== */ /* ======================================================================== * HEADER * ======================================================================== */ body.page-sidebar-minimize #header .navbar-minimize > a { background-color: #8d8d6e; color: #ffffff; } body.page-sidebar-minimize #header .navbar-minimize:hover > a { background-color: #7f7f63; } #header .navbar-header { background-color: #8d8d6e; } /* ======================================================================== * SIDEBAR LEFT & RIGHT * ======================================================================== */ .sidebar-content img { border: 2px solid #8d8d6e; } #sidebar-left.sidebar-box .sidebar-menu > li.active > a > .icon i, #sidebar-left.sidebar-rounded .sidebar-menu > li.active > a > .icon i, #sidebar-left.sidebar-circle .sidebar-menu > li.active > a > .icon i { background-color: #8d8d6e; } #sidebar-left.sidebar-box .sidebar-menu > li > ul > li:hover:after, #sidebar-left.sidebar-rounded .sidebar-menu > li > ul > li:hover:after, #sidebar-left.sidebar-circle .sidebar-menu > li > ul > li:hover:after { -webkit-box-shadow: 0 0 0 5px #707058; -moz-box-shadow: 0 0 0 5px #707058; box-shadow: 0 0 0 5px #707058; } #sidebar-left .sidebar-menu ul li:hover:after { background-color: #8d8d6e; } #sidebar-left .sidebar-menu ul li:hover a:before { color: #8d8d6e; } #sidebar-left .sidebar-menu ul li.active:after { background-color: #8d8d6e; } #sidebar-left .sidebar-menu ul li.active > ul > li.active a:before { color: #8d8d6e; } /* ======================================================================== * PAGE CONTENT * ======================================================================== */ body.page-sidebar-minimize .navbar-minimize, body.page-sidebar-minimize-auto .navbar-minimize { border-right: 1px solid #8d8d6e !important; } body.page-sidebar-minimize .navbar-minimize a, body.page-sidebar-minimize-auto .navbar-minimize a { background-color: #8d8d6e; border-bottom: 1px solid #8d8d6e; } body.page-sidebar-minimize .navbar-minimize a:hover, body.page-sidebar-minimize-auto .navbar-minimize a:hover { background-color: #7f7f63; border-bottom: 1px solid #7f7f63; } body.page-sidebar-minimize .navbar-minimize a i, body.page-sidebar-minimize-auto .navbar-minimize a i { color: #ffffff; } .navbar-minimize-mobile { background-color: #8d8d6e; } .navbar-minimize-mobile:hover { background-color: #7f7f63; } @media (max-width: 768px) { body.page-sidebar-left-show .navbar-minimize-mobile, body.page-sidebar-right-show .navbar-minimize-mobile { background-color: #707058; } body.page-sidebar-left-show .navbar-minimize-mobile:hover, body.page-sidebar-right-show .navbar-minimize-mobile:hover { background-color: #7f7f63; } } .navbar-toolbar .navbar-form input:focus { border: 1px solid #8d8d6e; } .navbar-toolbar .navbar-form .btn-focus { background-color: #8d8d6e; box-shadow: none; border: none; color: #ffffff; } .navbar-toolbar .navbar-right .dropdown > a:focus > i { color: #8d8d6e; } /* ======================================================================== * SIGN * ======================================================================== */ .sign-wrapper a { color: #8d8d6e; } .sign-wrapper a:hover, .sign-wrapper a:focus, .sign-wrapper a:active { color: #8a8a6c; } .sign-text:before { background-color: #a4a48a; } .sign-header { background-color: #8d8d6e; border-bottom: 10px solid #79795e; } .sign-text span { background-color: #8d8d6e; } .sign-text img { border: 7px solid #8d8d6e; } /* ======================================================================== * ERROR * ======================================================================== */ .error-wrapper h1 { color: #8d8d6e; } /* ======================================================================== * INVOICE * ======================================================================== */ .product-num { background-color: #8d8d6e; } /* ======================================================================== * RESET * ======================================================================== */ a { color: #8d8d6e; } a:hover, a:active, a:focus { color: #707058; } input.no-border-left:focus, textarea.no-border-left:focus { border-top: 1px solid #8d8d6e !important; border-right: 1px solid #8d8d6e !important; border-bottom: 1px solid #8d8d6e !important; border-left: none !important; } input.no-border-right:focus, textarea.no-border-right:focus { border-top: 1px solid #8d8d6e !important; border-none: 1px solid #8d8d6e !important; border-bottom: 1px solid #8d8d6e !important; border-right: none !important; } input:focus, textarea:focus { border: 1px solid #8d8d6e !important; } /* ======================================================================== * PANEL * ======================================================================== */ .panel-tab .panel-heading ul li.active a i { color: #8d8d6e; } .panel-tab .panel-heading ul li a:hover i { color: #8d8d6e; } /* ======================================================================== * MEDIA MANAGER * ======================================================================== */ .media-manager .media-manager-options .filter-type a.active { color: #8d8d6e; } /* ======================================================================== * PAGINATION * ======================================================================== */ .pagination > li > a { color: #707058; } .pagination > .active > a, .pagination > .active > span { background-color: #707058; border: 1px solid #707058; } .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { background-color: #8d8d6e; border: 1px solid #8d8d6e; } .pager > li > a { color: #707058; } /* ======================================================================== * RATING STAR * ======================================================================== */ .rating .star:hover:before { color: #8d8d6e; } .rating .star.active:before { color: #8d8d6e; } .rating .star.active ~ .star:before { color: #8d8d6e; } /* ======================================================================== * DROPDOWN * ======================================================================== */ .dropdown-menu li { position: relative; } .dropdown-menu li.active a { background-color: #8d8d6e; } .dropdown-menu li.active:hover a, .dropdown-menu li.active:focus a, .dropdown-menu li.active:active a { background-color: #8d8d6e; cursor: default; } .dropdown-menu li > a:hover:before { display: block; content: ""; position: absolute; left: 0px; top: 0px; bottom: 0px; border-left: 3px solid #7f7f63; } /* ======================================================================== * LIST GROUP * ======================================================================== */ a.list-group-item.active { background-color: #8d8d6e; border-color: #8d8d6e; } a.list-group-item.active:hover, a.list-group-item.active:focus { background-color: #8d8d6e; border-color: #8d8d6e; } /* ======================================================================== * FORM * ======================================================================== */ .ckbox-theme input[type=checkbox]:checked + label::after { border-color: #8d8d6e; background-color: #8d8d6e; } .ckbox-theme input[type=checkbox][disabled]:checked + label::after { border-color: #8d8d6e; opacity: .5; } .rdio-theme input[type=radio]:checked + label::after { border-color: #8d8d6e; background-color: #8d8d6e; } .rdio-theme input[type=radio][disabled]:checked + label::after { border-color: #8d8d6e; opacity: .5; } .form-control:focus { border: 1px solid #8d8d6e; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .form-focus { border: 1px solid #8d8d6e; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } /* ======================================================================== * TABLE * ======================================================================== */ .table-theme thead tr th { background-color: #8d8d6e !important; border-color: #99997c #99997c #79795e !important; color: #fff; } .table-theme tbody tr td.sorting_1 { background: #abab93 !important; color: white; border-bottom: 1px solid #babaa7 !important; } .table-theme tfoot tr th { background-color: #8d8d6e !important; border-color: #79795e #99997c #99997c !important; color: #fff; } .table-theme.table-bordered { border: 1px solid #8d8d6e; } .table-theme.table-bordered thead tr th:first-child, .table-theme.table-bordered tfoot tr th:first-child, .table-theme.table-bordered thead tr th:last-child, .table-theme.table-bordered tfoot tr th:last-child { -webkit-border-radius: 0px !important; -moz-border-radius: 0px !important; border-radius: 0px !important; } .table-theme.table-bordered tbody tr td.sorting_1 { border-right: 1px solid #babaa7 !important; } .table-theme table.has-columns-hidden > tbody > tr > td > span.responsiveExpander:before { color: white; } .table-theme table.has-columns-hidden > tbody > tr.detail-show > td span.responsiveExpander:before { color: white; } /* ======================================================================== * BUTTON * ======================================================================== */ .btn-theme { background-color: #8d8d6e; border-color: #8d8d6e; color: white; } .btn-theme:hover, .btn-theme:focus, .btn-theme:active, .btn-theme.active, .btn-theme[disabled], .btn-theme.disabled { background-color: #7f7f63; border-color: transparent; color: white; } .btn-theme.dropdown-toggle.btn-theme { background-color: #8d8d6e; border-color: #7f7f63; color: white; } .btn-theme.btn-alt { background-color: #7f7f63; border: 1px solid #8d8d6e; } .btn-theme.btn-alt:hover { background-color: #707058; } .btn-theme.btn-stroke { border: 1px double #8d8d6e; background-color: transparent; color: #999; } .btn-theme.btn-stroke:hover { background-color: #7f7f63; border-color: transparent; color: white; } .btn-theme.btn-solid { border: 1px solid #8d8d6e; } .btn-theme.btn-dashed { border: 1px dashed #8d8d6e; } .btn-theme.btn-dotted { border: 1px dotted #8d8d6e; } .btn-theme.btn-double { border: 4px double #8d8d6e; } .btn-theme.btn-inset { border: 4px inset #8d8d6e; } .btn-theme.btn-circle { padding-left: 0; padding-right: 0; width: 34px; -webkit-border-radius: 50% 50% 50% 50%; -moz-border-radius: 50% 50% 50% 50%; border-radius: 50% 50% 50% 50%; } .btn-theme.btn-slidedown:after { width: 100%; height: 0; top: 0; left: 0; background-color: #707058; z-index: -1; } .btn-theme.btn-slidedown:hover, .btn-theme.btn-slidedown:active { color: white; } .btn-theme.btn-slidedown:hover:after, .btn-theme.btn-slidedown:active:after { height: 100%; } .btn-theme.btn-slideright:after { width: 0%; height: 100%; top: 0; left: 0; background-color: #707058; z-index: -1; } .btn-theme.btn-slideright:hover, .btn-theme.btn-slideright:active { color: white; } .btn-theme.btn-slideright:hover:after, .btn-theme.btn-slideright:active:after { width: 100%; } .btn-theme.btn-expand:after { width: 0; height: 103%; top: 50%; left: 50%; background-color: #707058; opacity: 0; -webkit-transform: translateX(-50%) translateY(-50%); -moz-transform: translateX(-50%) translateY(-50%); -ms-transform: translateX(-50%) translateY(-50%); -o-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); } .btn-theme.btn-expand:hover:after { width: 90%; opacity: 1; } .btn-theme.btn-expand:active:after { width: 101%; opacity: 1; } .btn-theme.btn-rotate { overflow: hidden; } .btn-theme.btn-rotate:after { width: 100%; height: 0; top: 50%; left: 50%; background-color: #707058; opacity: 0; -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); -moz-transform: translateX(-50%) translateY(-50%) rotate(45deg); -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg); -o-transform: translateX(-50%) translateY(-50%) rotate(45deg); transform: translateX(-50%) translateY(-50%) rotate(45deg); } .btn-theme.btn-rotate:hover:after { height: 260%; opacity: 1; } .btn-theme.btn-rotate:active:after { height: 400%; opacity: 1; } .btn-theme.btn-open { overflow: hidden; } .btn-theme.btn-open:after { width: 101%; height: 0; top: 50%; left: 50%; background-color: #707058; opacity: 0; -webkit-transform: translateX(-50%) translateY(-50%); -moz-transform: translateX(-50%) translateY(-50%); -ms-transform: translateX(-50%) translateY(-50%); -o-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); } .btn-theme.btn-open:hover:after { height: 75%; opacity: 1; } .btn-theme.btn-open:active:after { height: 130%; opacity: 1; } .btn-theme.btn-push { background: #8d8d6e; box-shadow: 0 6px #707058; -webkit-transition: none; -moz-transition: none; transition: none; } .btn-theme.btn-push:hover { box-shadow: 0 4px #707058; top: 2px; } .btn-theme.btn-push:active { box-shadow: 0 0 #707058; top: 6px; } .btn-theme.btn-pushright { background: #8d8d6e; box-shadow: 6px 0 #707058; -webkit-transition: none; -moz-transition: none; transition: none; } .btn-theme.btn-pushright:hover { box-shadow: 4px 0 #707058; left: 2px; } .btn-theme.btn-pushright:active { box-shadow: 0 0 #707058; left: 6px; } /* ======================================================================== * PANEL * ======================================================================== */ .panel-theme .panel-heading { background-color: #8d8d6e; border: 1px solid #8a8a6c; color: white; } .panel-theme .panel-heading .option .btn:hover { background-color: #7f7f63; color: white; } .panel-theme .panel-heading .option .btn i { color: white; } .panel-bg-theme .panel-body { background-color: #8d8d6e; color: white; } .panel-bg-theme .panel-body .text-muted { color: #f2f2f2; } /* ======================================================================== * MISC * ======================================================================== */ .img-bordered-theme { border: 2px solid #8d8d6e; } .progress-bar-theme { background-color: #8d8d6e; } .fg-theme { color: #8d8d6e !important; } .nicescroll-rails div { background-color: #8d8d6e !important; } .sidebar .nicescroll-rails div { background-color: #323232 !important; } .cal-month-box { border-top: 7px solid #79795e !important; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; } .cal-row-head [class*="cal-cell1"], .cal-row-head [class*="cal-cell"] { background-color: #8d8d6e; color: #ffffff; border-width: 0px 1px 0px !important; border-style: solid; border-color: #99997c #99997c #79795e !important; border-left: none !important; } .cal-row-head [class*="cal-cell1"]:hover, .cal-row-head [class*="cal-cell"]:hover { background-color: #8d8d6e !important; } .cal-row-head [class*="cal-cell1"]:first-child, .cal-row-head [class*="cal-cell"]:first-child { border-width: 0px 1px 0px !important; border-style: solid; border-color: #99997c #99997c #79795e !important; } .cal-row-head [class*="cal-cell1"]:last-child, .cal-row-head [class*="cal-cell"]:last-child { border-right: none !important; } #cal-day-panel { border-top: 7px solid #79795e !important; background-color: rgba(255, 255, 255, 0.28); } .cal-day-today { background-color: #8d8d6e !important; } .cal-row-head + .cal-day-hour { background-color: #79795e !important; color: #ffffff; } .bg-theme { background-color: #8d8d6e !important; border: 1px solid #8d8d6e; color: white; } .bg-theme a, .bg-theme i, .bg-theme span, .bg-theme small, .bg-theme p { color: white; } .bg-theme .flot-tick-label.tickLabel { color: rgba(255, 255, 255, 0.5) !important; } .bg-theme .morris-hover-row-label { background-color: #707058; } #back-top:hover { background: #8d8d6e; box-shadow: 0 0 0 6px #ffffff; } .jqvmap-zoomin, .jqvmap-zoomout { background: #8d8d6e !important; } .jqvmap-zoomin:hover, .jqvmap-zoomout:hover { background: #707058 !important; } /* ======================================================================== * CHOSEN * ======================================================================== */ .chosen-container .chosen-results li.highlighted { background-color: #8d8d6e !important; background-image: none !important; } /* ======================================================================== * DROPZONE * ======================================================================== */ .dz-file-preview .dz-details:before { color: #8d8d6e; } /* ======================================================================== * JPRELOADER * ======================================================================== */ #jpreBar { background-color: #8d8d6e; } /* ======================================================================== * DATEPICKER * ======================================================================== */ .datepicker table thead tr:first-child { background-color: #8d8d6e; } .datepicker table thead tr:last-child { background-color: #707058; } .datepicker table thead tr th { background-color: #8d8d6e; border-color: #7f7f63 #7f7f63 #79795e; } .datepicker table thead tr .prev:hover, .datepicker table thead tr .switch:hover, .datepicker table thead tr .next:hover { background-color: #7f7f63 !important; } .datepicker table tbody tr td.active, .datepicker table tbody tr td.active:hover, .datepicker table tbody tr td.active:disabled, .datepicker table tbody tr td.active.disabled:hover { background-color: #8d8d6e; } .datepicker table tbody tr td.active.active { background-color: #8d8d6e; border-top: 1px solid #8d8d6e; border-bottom: 1px solid #8d8d6e; } .datepicker table tbody tr td.active.active:hover { background-color: #707058; } .datepicker .icon-arrow-left:before { font-family: "FontAwesome"; content: "\f104"; } .datepicker .icon-arrow-right:before { font-family: "FontAwesome"; content: "\f105"; } .datepicker-dropdown:after { border-bottom: 6px solid #8d8d6e; } /* ======================================================================== * ION SLIDER * ======================================================================== */ .slider-theme .irs-diapason { background-color: #99997c !important; } .slider-theme .irs-slider { background-color: #8d8d6e !important; } .slider-theme #irs-active-slider, .slider-theme .irs-slider:hover { background-color: #8d8d6e !important; } .slider-theme .irs-from, .slider-theme .irs-to, .slider-theme .irs-single { background-color: #8d8d6e !important; } .slider-theme .irs-from:after, .slider-theme .irs-to:after, .slider-theme .irs-single:after { border-top-color: #8d8d6e !important; } .slider-theme.circle .irs-slider { top: 21px; width: 20px; height: 20px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; } .slider-theme.donut .irs-slider { background: #e1e4e9 !important; top: 21px; width: 20px; height: 20px; -webkit-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%; border: 4px solid #8d8d6e; margin-left: -3px; }
Java
// Generated by CoffeeScript 1.3.1
Java
package com.jvm_bloggers.core.data_fetching.blog_posts; import akka.actor.ActorRef; import akka.actor.ActorSystem; import akka.routing.RoundRobinPool; import com.jvm_bloggers.core.data_fetching.blogs.PreventConcurrentExecutionSafeguard; import com.jvm_bloggers.core.rss.SyndFeedProducer; import com.jvm_bloggers.entities.blog.Blog; import com.jvm_bloggers.entities.blog.BlogRepository; import com.jvm_bloggers.entities.metadata.Metadata; import com.jvm_bloggers.entities.metadata.MetadataKeys; import com.jvm_bloggers.entities.metadata.MetadataRepository; import com.jvm_bloggers.utils.NowProvider; import lombok.NoArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; @Component @NoArgsConstructor public class BlogPostsFetcher { private BlogRepository blogRepository; private ActorRef rssCheckingActor; private MetadataRepository metadataRepository; private NowProvider nowProvider; private PreventConcurrentExecutionSafeguard concurrentExecutionSafeguard = new PreventConcurrentExecutionSafeguard(); @Autowired public BlogPostsFetcher(ActorSystem actorSystem, BlogRepository blogRepository, BlogPostService blogPostService, SyndFeedProducer syndFeedFactory, MetadataRepository metadataRepository, NowProvider nowProvider) { this.blogRepository = blogRepository; final ActorRef blogPostStoringActor = actorSystem .actorOf(NewBlogPostStoringActor.props(blogPostService)); rssCheckingActor = actorSystem.actorOf(new RoundRobinPool(10) .props(RssCheckingActor.props(blogPostStoringActor, syndFeedFactory)), "rss-checkers"); this.metadataRepository = metadataRepository; this.nowProvider = nowProvider; } void refreshPosts() { concurrentExecutionSafeguard.preventConcurrentExecution(this::startFetchingProcess); } @Async("singleThreadExecutor") public void refreshPostsAsynchronously() { refreshPosts(); } private Void startFetchingProcess() { blogRepository.findAllActiveBlogs() .filter(Blog::isActive) .forEach(person -> rssCheckingActor.tell(new RssLink(person), ActorRef.noSender())); final Metadata dateOfLastFetch = metadataRepository .findByName(MetadataKeys.DATE_OF_LAST_FETCHING_BLOG_POSTS); dateOfLastFetch.setValue(nowProvider.now().toString()); metadataRepository.save(dateOfLastFetch); return null; } public boolean isFetchingProcessInProgress() { return concurrentExecutionSafeguard.isExecuting(); } }
Java
--- summary: In our first month of operation, we hired our first two developers, and accomplished a record amount of work on both Bundler and RubyGems.org. --- <% title "April 2015 Monthly Update" %> Hello, everyone! This is the Ruby Together monthly update for April, 2015. This was our first month in operation, and we were able to make a huge amount of progress this month. ## New hires This month, Ruby Together hired André Arko (that's me!) to work on Bundler, which led to the release of several significant new features, detailed in the "New releases" section below. We also hired David Radcliffe, starting to pay him for his work on the RubyGems.org servers and infrastructure. David has worked tirelessly for years to ensure that RubyGems.org stays up to serve gems to the world. As a volunteer, David has spent countless nights and weekends donating his time and expertise to the Ruby community, and he richly deserves to be paid a fair rate for his work that benefits every person and company using Ruby. ## New projects As planned, Ruby Together hired André Arko to continue ongoing maintenance and feature work on Bundler. Next, shortly after our public launch, we were able to form [The RubyGems Partnership](https://rubytogether.org/rubygems) together with [Ruby Central](http://rubycentral.org). As part of that partnership, we have hired [David Radcliffe](http://github.com/dwradcliffe) to support his ongoing maintenance and development work on RubyGems.org. In addition to Bundler and RubyGems, we were able to start supporting the RubyBench.org project by funding the dedicated server that the benchmark suite runs on. Since RubyBench is a benchmarking project, it is vital that the test suite run on its own hardware, and that the hardware always be exactly the same. In the future, we plan to support active development of RubyBench as a valuable community resource. ## Bundler work log The last month included a record number of Bundler releases: we released versions 1.7.14, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, and 1.9.4. The 1.7.14 fix addressed a couple of small bugs and one regression, and we have since wound down ongoing support work for the 1.7.x release branch. The 1.8.6 and 1.8.7 releases fixed edge cases when installing multiple compiled gems in parallel, updating only the requested gem when multiple gems came from a specific gem server, and fixed a regression that could suppress errors that occurred while Bundler required a gem. The big news, though, was the 1.9 release! Bundler 1.9 is the first version to feature the shiny new dependency resolver Molinillo, written by CocoaPods team member Samuel Giddins. For three months, Ruby Together member Stripe sponsored Samuel to develop a dependency resolver from scratch in Ruby. That project was a rousing success, and the resulting resolver has now shipped in both CocoaPods and Bundler. It's even been [submitted to RubyGems as a pull request](https://github.com/rubygems/rubygems/pull/1189). As a result of this cooperation between all three Ruby projects that manage dependencies, any improvements or bugfixes to the dependency resolver in one of the projects can be shared among all of them. You can [read more about the 1.9 release](http://bundler.io/blog/2015/03/21/hello-bundler-19.html) on the Bundler blog. ## RubyGems.org work log RubyGems.org maintenance this month included several security upgrades, including an upgrade to Ruby version 2.1.6. We also started work on a centralized logging service for all the systems that keep RubyGems.org running, which will be a big help when work needs to be done in the future. Development work included several small fixes and upgrades, while the primary focus was on designing and implementing an upcoming policy change: soon, yanked gems will be deleted rather than simply removed from the main gem index. This change should significantly reduce the number of support tickets that the RubyGems.org team has to answer, and make the entire yanking process act the way that users expect it to. ## Meet the team! This upcoming week, André, David, and several Ruby Together board members will all be attending RailsConf 2015 in Atlanta, GA. As well as attending, André will be giving a talk titled "How Does Bundler Work, Anyway?" on Tuesday, April 21 at 11am in room 204 CDE. If you'll be at the conference, say hello to us—we'll have Ruby Together stickers for you! ## Coming up… During May, the Bundler team will be working on finishing the 1.10 and 1.11 releases, which will include several useful new features and a major optimization to how long it takes to run `bundle install`. Keep an eye out for more about those changes in next month's newsletter. The RubyGems.org team will be working to finish the consolidated logging changes that were started in April, and starting work on revamping the worldwide gem mirrors to use the same automation infrastructure that was just finished for the main site. They'll also be working on implementing the server-side changes that are required for Bundler 1.10 and 1.11. ## New members In the last month, Stripe and Engine Yard joined Ruby Together as founding corporate members. Cloud City Development and Bleacher Report also joined as corporate members. 66 individual members also joined Ruby Together, including Tony Pitale, Mark Turner, Pat Allan, Becker, Sean Linsley, Carol (Nichols || Goulding), Youssef Chaker, Todd Eichel, John Wulff, Fred Jean, Zee Spencer, Luis Lavena, George Sheppard, David Hill, Josh Kaufman, Chris McGrath, Christopher Eckhardt, Derik Olsson, Henrik Hodne, Corey Csuhta, Jeremy Hinegardner, Philip Arndt, Andy Croll, Piotr Solnica, Andrew Broman, Justin Etheredge, Piotr Szotkowski, Tiago Amaro, Andrew White, Ezekiel Templin, Matt Jones, Garrett Dimon, Alexey Mogilnikov, Joe James, Mykola Kyryk, Mariusz Droździel, Dan Wagner, David Elliott, Ender Ahmet Yurt, Dan Fockler, Jason Waldrip, Ryan Clark, Joel Watson, Ching-Yen Ricky Pai, Badri Janakiraman, Matt Pruitt, and Jeremy Green. Thanks for the support, everyone! If your company hasn't joined Ruby Together yet, let them know about it! Ruby Together is both [good and good for companies](https://rubytogether.org/companies), and we'll be able to do more for the community as more companies join us. Until next time, André & the Ruby Together team
Java
'use strict'; require('../common'); // This test ensures that zlib throws a RangeError if the final buffer needs to // be larger than kMaxLength and concatenation fails. // https://github.com/nodejs/node/pull/1811 const assert = require('assert'); // Change kMaxLength for zlib to trigger the error without having to allocate // large Buffers. const buffer = require('buffer'); const oldkMaxLength = buffer.kMaxLength; buffer.kMaxLength = 64; const zlib = require('zlib'); buffer.kMaxLength = oldkMaxLength; const encoded = Buffer.from('G38A+CXCIrFAIAM=', 'base64'); // Async zlib.brotliDecompress(encoded, function(err) { assert.ok(err instanceof RangeError); }); // Sync assert.throws(function() { zlib.brotliDecompressSync(encoded); }, RangeError);
Java
const {createAddColumnMigration} = require('../../utils'); module.exports = createAddColumnMigration('posts_meta', 'email_only', { type: 'bool', nullable: false, defaultTo: false });
Java
import { EventsKey } from '../events'; import BaseEvent from '../events/Event'; import { Extent } from '../extent'; import Feature from '../Feature'; import Geometry from '../geom/Geometry'; import Point from '../geom/Point'; import { ObjectEvent } from '../Object'; import Projection from '../proj/Projection'; import { AttributionLike } from './Source'; import VectorSource, { VectorSourceEvent } from './Vector'; export interface Options { attributions?: AttributionLike; distance?: number; geometryFunction?: (p0: Feature<Geometry>) => Point; source?: VectorSource<Geometry>; wrapX?: boolean; } export default class Cluster extends VectorSource { constructor(options: Options); protected distance: number; protected features: Feature<Geometry>[]; protected geometryFunction: (feature: Feature<Geometry>) => Point; protected resolution: number; protected cluster(): void; protected createCluster(features: Feature<Geometry>[]): Feature<Geometry>; /** * Remove all features from the source. */ clear(opt_fast?: boolean): void; /** * Get the distance in pixels between clusters. */ getDistance(): number; getResolutions(): number[] | undefined; /** * Get a reference to the wrapped source. */ getSource(): VectorSource<Geometry>; loadFeatures(extent: Extent, resolution: number, projection: Projection): void; /** * Handle the source changing. */ refresh(): void; /** * Set the distance in pixels between clusters. */ setDistance(distance: number): void; /** * Replace the wrapped source. */ setSource(source: VectorSource<Geometry>): void; on(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[]; once(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[]; un(type: string | string[], listener: (p0: any) => any): void; on(type: 'addfeature', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'addfeature', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'addfeature', listener: (evt: VectorSourceEvent<Geometry>) => void): void; on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey; once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey; un(type: 'change', listener: (evt: BaseEvent) => void): void; on(type: 'changefeature', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'changefeature', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'changefeature', listener: (evt: VectorSourceEvent<Geometry>) => void): void; on(type: 'clear', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'clear', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'clear', listener: (evt: VectorSourceEvent<Geometry>) => void): void; on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey; once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey; un(type: 'error', listener: (evt: BaseEvent) => void): void; on(type: 'featuresloadend', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'featuresloadend', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'featuresloadend', listener: (evt: VectorSourceEvent<Geometry>) => void): void; on(type: 'featuresloaderror', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'featuresloaderror', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'featuresloaderror', listener: (evt: VectorSourceEvent<Geometry>) => void): void; on(type: 'featuresloadstart', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'featuresloadstart', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'featuresloadstart', listener: (evt: VectorSourceEvent<Geometry>) => void): void; on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey; once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey; un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void; on(type: 'removefeature', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; once(type: 'removefeature', listener: (evt: VectorSourceEvent<Geometry>) => void): EventsKey; un(type: 'removefeature', listener: (evt: VectorSourceEvent<Geometry>) => void): void; }
Java
<?php require_once($argv[1]); // type.php require_once($argv[2]); // program.php $file_prefix = $argv[3]; ?> [apps..default] run = true count = 1 network.server.0.RPC_CHANNEL_TCP = NET_HDR_HTTP, dsn::tools::asio_network_provider, 65536 [apps.server] name = server type = server arguments = ports = 27001 run = true pools = THREAD_POOL_DEFAULT [apps.client] name = client type = client arguments = localhost 27001 count = 0 run = true pools = THREAD_POOL_DEFAULT <?php foreach ($_PROG->services as $svc) { ?> [apps.client.perf.<?=$svc->name?>] name = client.perf.<?=$svc->name?> type = client.perf.<?=$svc->name?> arguments = localhost 27001 count = 1 run = false <?php } ?> [core] ;tool = simulator tool = nativerun ;toollets = tracer ;toollets = tracer, profiler, fault_injector pause_on_start = false logging_factory_name = dsn::tools::screen_logger [tools.simulator] random_seed = 0 [network] ; how many network threads for network library(used by asio) io_service_worker_count = 2 ; specification for each thread pool [threadpool..default] [threadpool.THREAD_POOL_DEFAULT] name = default partitioned = false worker_count = 1 max_input_queue_length = 1024 worker_priority = THREAD_xPRIORITY_NORMAL [task..default] is_trace = true is_profile = true allow_inline = false rpc_call_channel = RPC_CHANNEL_TCP fast_execution_in_network_thread = false rpc_call_header_format_name = dsn rpc_timeout_milliseconds = 5000 perf_test_rounds = 10000 rpc_call_header_format = NET_HDR_HTTP [task.LPC_AIO_IMMEDIATE_CALLBACK] is_trace = false is_profile = false allow_inline = false [task.LPC_RPC_TIMEOUT] is_trace = false is_profile = false
Java
package tenant import ( "context" "testing" "github.com/google/go-cmp/cmp" "github.com/influxdata/influxdb/v2" influxdbcontext "github.com/influxdata/influxdb/v2/context" "github.com/influxdata/influxdb/v2/kit/feature" "github.com/influxdata/influxdb/v2/kit/platform" "github.com/influxdata/influxdb/v2/kit/platform/errors" kithttp "github.com/influxdata/influxdb/v2/kit/transport/http" "github.com/influxdata/influxdb/v2/mock" influxdbtesting "github.com/influxdata/influxdb/v2/testing" ) var idOne platform.ID = 1 var idTwo platform.ID = 2 var idThree platform.ID = 3 func TestURMService_FindUserResourceMappings(t *testing.T) { type fields struct { UserResourceMappingService influxdb.UserResourceMappingService OrgService influxdb.OrganizationService } type args struct { permissions []influxdb.Permission } type wants struct { err error urms []*influxdb.UserResourceMapping } tests := []struct { name string fields fields args args wants wants }{ { name: "authorized to see all users", fields: fields{ UserResourceMappingService: &mock.UserResourceMappingService{ FindMappingsFn: func(ctx context.Context, filter influxdb.UserResourceMappingFilter) ([]*influxdb.UserResourceMapping, int, error) { return []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 2, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 3, ResourceType: influxdb.BucketsResourceType, }, }, 3, nil }, }, }, args: args{ permissions: []influxdb.Permission{ { Action: "read", Resource: influxdb.Resource{ Type: influxdb.OrgsResourceType, ID: influxdbtesting.IDPtr(10), }, }, { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, // ID: &idOne, OrgID: influxdbtesting.IDPtr(10), }, }, { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, OrgID: influxdbtesting.IDPtr(10), }, }, { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, OrgID: influxdbtesting.IDPtr(10), }, }, }, }, wants: wants{ urms: []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 2, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 3, ResourceType: influxdb.BucketsResourceType, }, }, }, }, { name: "authorized to see all users by org auth", fields: fields{ UserResourceMappingService: &mock.UserResourceMappingService{ FindMappingsFn: func(ctx context.Context, filter influxdb.UserResourceMappingFilter) ([]*influxdb.UserResourceMapping, int, error) { return []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 2, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 3, ResourceType: influxdb.BucketsResourceType, }, }, 3, nil }, }, }, args: args{ permissions: []influxdb.Permission{ { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, OrgID: influxdbtesting.IDPtr(10), }, }, }, }, wants: wants{ err: ErrNotFound, }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { s := NewAuthedURMService(tt.fields.OrgService, tt.fields.UserResourceMappingService) orgID := influxdbtesting.IDPtr(10) ctx := context.WithValue(context.Background(), kithttp.CtxOrgKey, *orgID) ctx = influxdbcontext.SetAuthorizer(ctx, mock.NewMockAuthorizer(false, tt.args.permissions)) ctx, _ = feature.Annotate(ctx, feature.DefaultFlagger(), feature.MakeBoolFlag("Org Only Member list", "orgOnlyMemberList", "Compute Team", true, feature.Temporary, false, )) urms, _, err := s.FindUserResourceMappings(ctx, influxdb.UserResourceMappingFilter{}) influxdbtesting.ErrorsEqual(t, err, tt.wants.err) if diff := cmp.Diff(urms, tt.wants.urms); diff != "" { t.Errorf("urms are different -got/+want\ndiff %s", diff) } }) } } func TestURMService_FindUserResourceMappingsBucketAuth(t *testing.T) { type fields struct { UserResourceMappingService influxdb.UserResourceMappingService OrgService influxdb.OrganizationService } type args struct { permissions []influxdb.Permission } type wants struct { err error urms []*influxdb.UserResourceMapping } tests := []struct { name string fields fields args args wants wants }{ { name: "authorized to see all users by bucket auth", fields: fields{ UserResourceMappingService: &mock.UserResourceMappingService{ FindMappingsFn: func(ctx context.Context, filter influxdb.UserResourceMappingFilter) ([]*influxdb.UserResourceMapping, int, error) { return []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 2, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 3, ResourceType: influxdb.BucketsResourceType, }, }, 3, nil }, }, }, args: args{ permissions: []influxdb.Permission{ { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, ID: &idOne, }, }, { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, ID: &idTwo, }, }, { Action: "read", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, ID: &idThree, }, }, }, }, wants: wants{ urms: []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 2, ResourceType: influxdb.BucketsResourceType, }, { ResourceID: 3, ResourceType: influxdb.BucketsResourceType, }, }, }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { s := NewAuthedURMService(tt.fields.OrgService, tt.fields.UserResourceMappingService) ctx := context.Background() ctx = influxdbcontext.SetAuthorizer(ctx, mock.NewMockAuthorizer(false, tt.args.permissions)) urms, _, err := s.FindUserResourceMappings(ctx, influxdb.UserResourceMappingFilter{}) influxdbtesting.ErrorsEqual(t, err, tt.wants.err) if diff := cmp.Diff(urms, tt.wants.urms); diff != "" { t.Errorf("urms are different -got/+want\ndiff %s", diff) } }) } } func TestURMService_WriteUserResourceMapping(t *testing.T) { type fields struct { UserResourceMappingService influxdb.UserResourceMappingService OrgService influxdb.OrganizationService } type args struct { permission influxdb.Permission } type wants struct { err error } tests := []struct { name string fields fields args args wants wants }{ { name: "authorized to write urm", fields: fields{ UserResourceMappingService: &mock.UserResourceMappingService{ CreateMappingFn: func(ctx context.Context, m *influxdb.UserResourceMapping) error { return nil }, DeleteMappingFn: func(ctx context.Context, rid, uid platform.ID) error { return nil }, FindMappingsFn: func(ctx context.Context, filter influxdb.UserResourceMappingFilter) ([]*influxdb.UserResourceMapping, int, error) { return []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, UserID: 100, }, }, 3, nil }, }, }, args: args{ permission: influxdb.Permission{ Action: "write", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, ID: &idOne, OrgID: influxdbtesting.IDPtr(10), }, }, }, wants: wants{ err: nil, }, }, { name: "unauthorized to write urm", fields: fields{ UserResourceMappingService: &mock.UserResourceMappingService{ CreateMappingFn: func(ctx context.Context, m *influxdb.UserResourceMapping) error { return nil }, DeleteMappingFn: func(ctx context.Context, rid, uid platform.ID) error { return nil }, FindMappingsFn: func(ctx context.Context, filter influxdb.UserResourceMappingFilter) ([]*influxdb.UserResourceMapping, int, error) { return []*influxdb.UserResourceMapping{ { ResourceID: 1, ResourceType: influxdb.BucketsResourceType, UserID: 100, }, }, 3, nil }, }, }, args: args{ permission: influxdb.Permission{ Action: "write", Resource: influxdb.Resource{ Type: influxdb.BucketsResourceType, OrgID: influxdbtesting.IDPtr(11), }, }, }, wants: wants{ err: &errors.Error{ Msg: "write:buckets/0000000000000001 is unauthorized", Code: errors.EUnauthorized, }, }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { s := NewAuthedURMService(tt.fields.OrgService, tt.fields.UserResourceMappingService) ctx := context.Background() ctx = influxdbcontext.SetAuthorizer(ctx, mock.NewMockAuthorizer(false, []influxdb.Permission{tt.args.permission})) t.Run("create urm", func(t *testing.T) { err := s.CreateUserResourceMapping(ctx, &influxdb.UserResourceMapping{ResourceType: influxdb.BucketsResourceType, ResourceID: 1}) influxdbtesting.ErrorsEqual(t, err, tt.wants.err) }) t.Run("delete urm", func(t *testing.T) { err := s.DeleteUserResourceMapping(ctx, 1, 100) influxdbtesting.ErrorsEqual(t, err, tt.wants.err) }) }) } }
Java
package com.lichkin.framework.springboot.controllers.impl; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import com.lichkin.framework.bases.LKDatas; import com.lichkin.framework.bases.annotations.WithOutLogin; import com.lichkin.framework.springboot.controllers.LKController; /** * 页面跳转逻辑 * @author SuZhou LichKin Information Technology Co., Ltd. */ @Controller @RequestMapping(value = "/demo") public class LKDemoController extends LKController { /** * 页面跳转 * @param requestDatas 请求参数,由框架自动解析请求的参数并注入。 * @param subUrl 子路径 * @return 页面路径,附带了请求参数及请求路径的相关信息。 */ @WithOutLogin @RequestMapping(value = "/{subUrl}.html", method = RequestMethod.GET) public ModelAndView toGo(final LKDatas requestDatas, @PathVariable(value = "subUrl") final String subUrl) { return getModelAndView(requestDatas); } }
Java
//currently commented out as TokenTester is causing a OOG error due to the Factory being too big //Not fully needed as factory & separate tests cover token creation. /*contract("TokenTester", function(accounts) { it("creates 10000 initial tokens", function(done) { var tester = TokenTester.at(TokenTester.deployed_address); tester.tokenContractAddress.call() .then(function(tokenContractAddr) { var tokenContract = HumanStandardToken.at(tokenContractAddr); return tokenContract.balanceOf.call(TokenTester.deployed_address); }).then(function (result) { assert.strictEqual(result.toNumber(), 10000); // 10000 as specified in TokenTester.sol done(); }).catch(done); }); //todo:add test on retrieving addresses });*/
Java
module.exports = { "extends": "airbnb", "parser": "babel-eslint", "plugins": [ "react" ], "rules": { "react/prop-types": 0, "react/jsx-boolean-value": 0, "consistent-return": 0, "guard-for-in": 0, "no-use-before-define": 0, "space-before-function-paren": [2, { "anonymous": "never", "named": "always" }] } };
Java
package au.com.codeka.planetrender; import java.util.Random; import au.com.codeka.common.PerlinNoise; import au.com.codeka.common.Vector2; import au.com.codeka.common.Vector3; /** * This class takes a ray that's going in a certain direction and warps it based on a noise pattern. This is used * to generate misshapen asteroid images, for example. */ public class RayWarper { private NoiseGenerator mNoiseGenerator; private double mWarpFactor; public RayWarper(Template.WarpTemplate tmpl, Random rand) { if (tmpl.getNoiseGenerator() == Template.WarpTemplate.NoiseGenerator.Perlin) { mNoiseGenerator = new PerlinGenerator(tmpl, rand); } else if (tmpl.getNoiseGenerator() == Template.WarpTemplate.NoiseGenerator.Spiral) { mNoiseGenerator = new SpiralGenerator(tmpl, rand); } mWarpFactor = tmpl.getWarpFactor(); } public void warp(Vector3 vec, double u, double v) { mNoiseGenerator.warp(vec, u, v, mWarpFactor); } static abstract class NoiseGenerator { protected double getNoise(double u, double v) { return 0.0; } protected Vector3 getValue(double u, double v) { double x = getNoise(u * 0.25, v * 0.25); double y = getNoise(0.25 + u * 0.25, v * 0.25); double z = getNoise(u * 0.25, 0.25 + v * 0.25); return Vector3.pool.borrow().reset(x, y, z); } protected void warp(Vector3 vec, double u, double v, double factor) { Vector3 warpVector = getValue(u, v); warpVector.reset(warpVector.x * factor + (1.0 - factor), warpVector.y * factor + (1.0 - factor), warpVector.z * factor + (1.0 - factor)); vec.reset(vec.x * warpVector.x, vec.y * warpVector.y, vec.z * warpVector.z); Vector3.pool.release(warpVector); } } static class PerlinGenerator extends NoiseGenerator { private PerlinNoise mNoise; public PerlinGenerator(Template.WarpTemplate tmpl, Random rand) { mNoise = new TemplatedPerlinNoise(tmpl.getParameter(Template.PerlinNoiseTemplate.class), rand); } @Override public double getNoise(double u, double v) { return mNoise.getNoise(u, v); } } static class SpiralGenerator extends NoiseGenerator { public SpiralGenerator(Template.WarpTemplate tmpl, Random rand) { } @Override protected void warp(Vector3 vec, double u, double v, double factor) { Vector2 uv = Vector2.pool.borrow().reset(u, v); uv.rotate(factor * uv.length() * 2.0 * Math.PI * 2.0 / 360.0); vec.reset(uv.x, -uv.y, 1.0); Vector2.pool.release(uv); } } }
Java
body { overflow-x: hidden; font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif } .text-muted { color: #777 } .text-primary { color: #fed136 } p { font-size: 14px; line-height: 1.75 } p.large { font-size: 16px } a, a:hover, a:focus, a:active, a.active { outline: 0 } a { color: #fed136 } a:hover, a:focus, a:active, a.active { color: #fec503 } h1, h2, h3, h4, h5, h6 { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700 } .img-centered { margin: 0 auto } .bg-light-gray { background-color: #f7f7f7 } .bg-darkest-gray { background-color: #222 } .btn-primary { color: #fff; background-color: #fed136; border-color: #fed136; font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700 } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #fff; background-color: #fec503; border-color: #f6bf01 } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #fed136; border-color: #fed136 } .btn-primary .badge { color: #fed136; background-color: #fff } .btn-xl { color: #fff; background-color: #fed136; border-color: #fed136; font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700; border-radius: 3px; font-size: 18px; padding: 20px 40px; margin-top: 110px } .btn-xl:hover, .btn-xl:focus, .btn-xl:active, .btn-xl.active, .open .dropdown-toggle.btn-xl { color: #fff; background-color: #fec503; border-color: #f6bf01 } .btn-xl:active, .btn-xl.active, .open .dropdown-toggle.btn-xl { background-image: none } .btn-xl.disabled, .btn-xl[disabled], fieldset[disabled] .btn-xl, .btn-xl.disabled:hover, .btn-xl[disabled]:hover, fieldset[disabled] .btn-xl:hover, .btn-xl.disabled:focus, .btn-xl[disabled]:focus, fieldset[disabled] .btn-xl:focus, .btn-xl.disabled:active, .btn-xl[disabled]:active, fieldset[disabled] .btn-xl:active, .btn-xl.disabled.active, .btn-xl[disabled].active, fieldset[disabled] .btn-xl.active { background-color: #fed136; border-color: #fed136 } .btn-xl .badge { color: #fed136; background-color: #fff } .navbar-default { background-color: #222; border-color: transparent } .navbar-default .navbar-brand { color: #fed136; font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus, .navbar-default .navbar-brand:active, .navbar-default .navbar-brand.active { color: #fec503 } .navbar-default .navbar-collapse { border-color: rgba(255, 255, 255, .02) } .navbar-default .navbar-toggle { background-color: #fed136; border-color: #fed136 } .navbar-default .navbar-toggle .icon-bar { background-color: #fff } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #fed136 } .navbar-default .nav li a { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 400; letter-spacing: 1px; color: #fff } .navbar-default .nav li a:hover, .navbar-default .nav li a:focus { color: #fed136; outline: 0 } .navbar-default .navbar-nav>.active>a { border-radius: 0; color: #fff; background-color: #fed136 } .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus { color: #fff; background-color: #fec503 } @media (min-width:768px) { .navbar-default { background-color: transparent; padding: 25px 0; -webkit-transition: padding .3s; -moz-transition: padding .3s; transition: padding .3s; border: 0 } .navbar-default .navbar-brand { font-size: 2em; -webkit-transition: all .3s; -moz-transition: all .3s; transition: all .3s } .navbar-default .navbar-nav>.active>a { border-radius: 3px } .navbar-default.navbar-shrink { background-color: #51749a; padding: 10px 0 } .navbar-default.navbar-shrink .navbar-brand { font-size: 1.5em } } header { background-image: url(../img/header-bg.jpg); background-repeat: none; background-attachment: scroll; background-position: center center; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; text-align: center; color: #fff } header .intro-text { padding-top: 100px; padding-bottom: 50px } header .intro-text .intro-lead-in { font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: italic; font-size: 22px; line-height: 22px; margin-bottom: 25px } header .intro-text .intro-heading { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 20px; line-height: 20px; margin-bottom: 15px } @media (min-width:768px) { header .intro-text { padding-top: 300px; padding-bottom: 200px } header .intro-text .intro-lead-in { font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: italic; font-size: 40px; line-height: 40px; margin-bottom: 25px } header .intro-text .intro-heading { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 200; font-size: 20px; line-height: 20px; margin-bottom: 15px } } section { padding: 50px 0 } section h2.section-heading { font-size: 40px; margin-top: 50px; margin-bottom: 15px } section h3.section-subheading { font-size: 16px; font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; font-style: italic; font-weight: 400; margin-bottom: 75px } @media (min-width:768px) { section { padding: 50px 0 } } .service-heading { margin: 15px 0; text-transform: none } .services-text-color { color: #fec503; font-style: bold; font-weight: 700;} #portfolio .portfolio-item { margin: 0 0 15px; right: 0 } #portfolio .portfolio-item .portfolio-link { display: block; position: relative; max-width: 400px; margin: 0 auto } #portfolio .portfolio-item .portfolio-link .portfolio-hover { background: rgba(254, 209, 54, .9); position: absolute; width: 100%; height: 100%; opacity: 0; transition: all ease .5s; -webkit-transition: all ease .5s; -moz-transition: all ease .5s } #portfolio .portfolio-item .portfolio-link .portfolio-hover:hover { opacity: 1 } #portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content { position: absolute; width: 100%; height: 20px; font-size: 20px; text-align: center; top: 50%; margin-top: -12px; color: #fff } #portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content i { margin-top: -12px } #portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content h3, #portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content h4 { margin: 0 } #portfolio .portfolio-item .portfolio-caption { max-width: 400px; margin: 0 auto; background-color: #fff; text-align: center; padding: 25px } #portfolio .portfolio-item .portfolio-caption h4 { text-transform: none; margin: 0 } #portfolio .portfolio-item .portfolio-caption p { font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: italic; font-size: 16px; margin: 0 } #portfolio * { z-index: 2 } @media (min-width:767px) { #portfolio .portfolio-item { margin: 0 0 30px } } .timeline { list-style: none; padding: 0; position: relative } .timeline:before { top: 0; bottom: 0; position: absolute; content: ""; width: 2px; background-color: #f1f1f1; left: 40px; margin-left: -1.5px } .timeline>li { margin-bottom: 50px; position: relative; min-height: 50px } .timeline>li:before, .timeline>li:after { content: " "; display: table } .timeline>li:after { clear: both } .timeline>li .timeline-panel { width: 100%; float: right; padding: 0 20px 0 100px; position: relative; text-align: left } .timeline>li .timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto } .timeline>li .timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto } .timeline>li .timeline-image { left: 0; margin-left: 0; width: 80px; height: 80px; position: absolute; z-index: 100; background-color: #fed136; color: #fff; border-radius: 100%; border: 7px solid #f1f1f1; text-align: center } .timeline>li .timeline-image h4 { font-size: 10px; margin-top: 12px; line-height: 14px } .timeline>li.timeline-inverted>.timeline-panel { float: right; text-align: left; padding: 0 20px 0 100px } .timeline>li.timeline-inverted>.timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto } .timeline>li.timeline-inverted>.timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto } .timeline>li:last-child { margin-bottom: 0 } .timeline .timeline-heading h4 { margin-top: 0; color: inherit } .timeline .timeline-heading h4.subheading { text-transform: none } .timeline .timeline-body>p, .timeline .timeline-body>ul { margin-bottom: 0 } @media (min-width:768px) { .timeline:before { left: 50% } .timeline>li { margin-bottom: 100px; min-height: 100px } .timeline>li .timeline-panel { width: 41%; float: left; padding: 0 20px 20px 30px; text-align: right } .timeline>li .timeline-image { width: 100px; height: 100px; left: 50%; margin-left: -50px } .timeline>li .timeline-image h4 { font-size: 13px; margin-top: 16px; line-height: 18px } .timeline>li.timeline-inverted>.timeline-panel { float: right; text-align: left; padding: 0 30px 20px 20px } } @media (min-width:992px) { .timeline>li { min-height: 150px } .timeline>li .timeline-panel { padding: 0 20px 20px } .timeline>li .timeline-image { width: 150px; height: 150px; margin-left: -75px } .timeline>li .timeline-image h4 { font-size: 18px; margin-top: 30px; line-height: 26px } .timeline>li.timeline-inverted>.timeline-panel { padding: 0 20px 20px } } @media (min-width:1200px) { .timeline>li { min-height: 170px } .timeline>li .timeline-panel { padding: 0 20px 20px 100px } .timeline>li .timeline-image { width: 170px; height: 170px; margin-left: -85px } .timeline>li .timeline-image h4 { margin-top: 40px } .timeline>li.timeline-inverted>.timeline-panel { padding: 0 100px 20px 20px } } .team-member { text-align: center; margin-bottom: 50px } .team-member img { margin: 0 auto; border: 7px solid #fff } .team-member h4 { margin-top: 25px; margin-bottom: 0; text-transform: none } .team-member p { margin-top: 0 } aside.clients img { margin: 50px auto } section#contact { background-color: #374e68; } section#contact .section-heading { color: #fff } section#contact .form-group { margin-bottom: 25px } section#contact .form-group input, section#contact .form-group textarea { padding: 20px; } section#contact .form-group input.form-control { height: auto } section#contact .form-group textarea.form-control { height: 236px } section#contact .form-control:focus { border-color: #fed136; box-shadow: none } section#contact::-webkit-input-placeholder { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700; color: #bbb } section#contact:-moz-placeholder { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700; color: #bbb } section#contact::-moz-placeholder { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700; color: #bbb } section#contact:-ms-input-placeholder { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; font-weight: 700; color: #bbb } section#contact .text-danger { color: #e74c3c } footer { padding: 25px 0; text-align: center } footer span.copyright { line-height: 40px; font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; text-transform: none } footer ul.quicklinks { margin-bottom: 0; line-height: 40px; font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; text-transform: none } ul.social-buttons { margin-bottom: 0 } ul.social-buttons li a { display: block; background-color: #222; height: 40px; width: 40px; border-radius: 100%; font-size: 20px; line-height: 40px; color: #fff; outline: 0; -webkit-transition: all .3s; -moz-transition: all .3s; transition: all .3s } ul.social-buttons li a:hover, ul.social-buttons li a:focus, ul.social-buttons li a:active { background-color: #fed136 } .btn:focus, .btn:active, .btn.active, .btn:active:focus { outline: 0 } .portfolio-modal .modal-content {border-radius:0;background-clip:border-box;-webkit-box-shadow:none;box-shadow:none;border:0;min-height:100%;padding:100px 0;text-align:center} .portfolio-modal .modal-content h2{margin-bottom:15px;font-size:3em} .portfolio-modal .modal-content p{margin-bottom:30px} .portfolio-modal .modal-content p.item-intro { margin: 20px 0 30px; font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: italic; font-size: 16px } .portfolio-modal .modal-content ul.list-inline { margin-bottom: 30px; margin-top: 0 } .portfolio-modal .modal-content img { margin-bottom: 30px } .portfolio-modal .close-modal { position: absolute; width: 75px; height: 75px; background-color: transparent; top: 25px; right: 25px; cursor: pointer } .portfolio-modal .close-modal:hover { opacity: .3 } .portfolio-modal .close-modal .lr { height: 75px; width: 1px; margin-left: 35px; background-color: #222; transform: rotate(45deg); -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); z-index: 1051 } .portfolio-modal .close-modal .lr .rl { height: 75px; width: 1px; background-color: #222; transform: rotate(90deg); -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); z-index: 1052 } .portfolio-modal .modal-backdrop { opacity: 0; display: none } ::-moz-selection { text-shadow: none; background: #fed136 } ::selection { text-shadow: none; background: #fed136 } img::selection { background: 0 0 } img::-moz-selection { background: 0 0 } body { webkit-tap-highlight-color: #fed136 } .spacer { margin-top: 20px; } @media (min-width:768px) { .spacer { margin-top: 120px; } } .alert { font-size: 18px; font-weight: bold; } section img { max-width: 100%; } a.sponsor img { margin: 15px; } .up { color: #33CC00; } .down { color: #FF6600; } .has-error { color: #FF6600; }
Java
$demoPath = 'C:\Dropbox\GitRepos\MIcrosoftVIrtualAcademy\Testing PowerShell with Pester\Demos' ## Ensure no functions were just copied/pasted into session Remove-Item Function:\Start-ClusterTest,Function:\Restart-Cluster,Function:\Test-ClusterProblem -ErrorAction Ignore ## Import the ClusterTest module into the session Import-Module "$demoPath\Introduction\Project 1 - PowerShell Project\ClusterTest.psd1" ## Notice only a single function is exported Get-Command -Module ClusterTest ## One test from the Start-ClusterTest describe block above. ## Not all of the functions that are referenced inside of Start-ClusterTest are exported. ## FAIL! describe 'Start-ClusterTest' { ## Create mocks to simply let the function execute and essentially do nothing mock 'Write-Host' mock 'Test-ClusterProblem' { $true } mock 'Restart-Cluster' ## Null it 'tests the correct cluster' { $assMParams = @{ CommandName = 'Test-ClusterProblem' Times = 1 Exactly = $true ParameterFilter = { $ClusterName -eq 'DOESNOTMATTER' } } Assert-MockCalled @assMParams } } ## Mocks must be able to access functions to work. Use InModuleScope InModuleScope 'ClusterTest' { describe 'Start-ClusterTest' { ## Create mocks to simply let the function execute and essentially do nothing mock 'Write-Host' mock 'Test-ClusterProblem' { $true } mock 'Restart-Cluster' $result = Start-ClusterTest -ClusterName 'DOESNOTMATTER' it 'tests the correct cluster' { $assMParams = @{ CommandName = 'Test-ClusterProblem' Times = 1 Exactly = $true ParameterFilter = { $ClusterName -eq 'DOESNOTMATTER' } } Assert-MockCalled @assMParams } } }
Java
// // QNFormUpload.h // QiniuSDK // // Created by bailong on 15/1/4. // Copyright (c) 2015年 Qiniu. All rights reserved. // #import "QNHttpDelegate.h" #import "QNUpToken.h" #import "QNUploadManager.h" #import <Foundation/Foundation.h> @interface QNFormUpload : NSObject - (instancetype)initWithData:(NSData *)data withKey:(NSString *)key withFileName:(NSString *)fileName withToken:(QNUpToken *)token withCompletionHandler:(QNUpCompletionHandler)block withOption:(QNUploadOption *)option withHttpManager:(id<QNHttpDelegate>)http withConfiguration:(QNConfiguration *)config; - (void)put; @end
Java
## AzureResourceSchema These settings apply only when `--azureresourceschema` is specified on the command line. ### AzureResourceSchema multi-api ``` yaml $(azureresourceschema) && $(multiapi) batch: - tag: schema-kubernetes-2021-04-01-preview - tag: schema-kubernetes-2021-03-01 - tag: schema-kubernetes-2020-01-01-preview ``` Please also specify `--azureresourceschema-folder=<path to the root directory of your azure-resource-manager-schemas clone>`. ### Tag: schema-kubernetes-2021-04-01-preview and azureresourceschema ``` yaml $(tag) == 'schema-kubernetes-2021-04-01-preview' && $(azureresourceschema) output-folder: $(azureresourceschema-folder)/schemas # all the input files in this apiVersion input-file: - Microsoft.Kubernetes/preview/2021-04-01-preview/connectedClusters.json ``` ### Tag: schema-kubernetes-2021-03-01 and azureresourceschema ``` yaml $(tag) == 'schema-kubernetes-2021-03-01' && $(azureresourceschema) output-folder: $(azureresourceschema-folder)/schemas # all the input files in this apiVersion input-file: - Microsoft.Kubernetes/stable/2021-03-01/connectedClusters.json ``` ### Tag: schema-kubernetes-2020-01-01-preview and azureresourceschema ``` yaml $(tag) == 'schema-kubernetes-2020-01-01-preview' && $(azureresourceschema) output-folder: $(azureresourceschema-folder)/schemas # all the input files in this apiVersion input-file: - Microsoft.Kubernetes/preview/2020-01-01-preview/connectedClusters.json ```
Java
<?php defined('SYSPATH') or die('No direct script access.'); class Jelly_Meta extends Jelly_Core_Meta {}
Java
//>>built define("clipart/SpinInput",["dojo/_base/declare","clipart/_clipart"],function(_1,_2){ return _1("clipart.SpinInput",[_2],{}); });
Java
// // RMMultipleViewsController.h // RMMultipleViewsController-Demo // // Created by Roland Moers on 29.08.13. // Copyright (c) 2013 Roland Moers // // Fade animation and arrow navigation strategy are based on: // AAMultiViewController.h // AAMultiViewController.m // Created by Richard Aurbach on 11/21/2013. // Copyright (c) 2013 Aurbach & Associates, Inc. // // 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. // #import <UIKit/UIKit.h> @class RMMultipleViewsController; /** * `UIViewController(RMMultipleViewsController)` is a category of `UIViewController` for providing mandatory properties and implementations so that a UIViewController can be used as a child view of `RMMultipleViewsController`. */ @interface UIViewController (RMMultipleViewsController) /** * When contained as a child in a `RMMultipleViewsController` this property contains a reference to the parent `RMMultipleViewsController`. If the `UIViewController` is not a child of any `RMMultipleViewsController` this property is nil. */ @property (nonatomic, weak) RMMultipleViewsController *multipleViewsController; /** * This method is called when a `RMMultipleViewsController` is about to show the called instance of `UIViewController`. The called `UIViewController` can use the parameters to update it's content such that no content will disappear below a toolbar. * * @param newInsets The new edge insets. */ - (void)adaptToEdgeInsets:(UIEdgeInsets)newInsets; @end /** * This is an enumeration of the supported animation types. */ typedef enum { RMMultipleViewsControllerAnimationSlideIn, RMMultipleViewsControllerAnimationFlip, RMMultipleViewsControllerAnimationFade, RMMultipleViewsControllerAnimationNone } RMMultipleViewsControllerAnimation; /** * This is an enumeration of the supported automated navigation strategies */ typedef enum { RMMultipleViewsControllerNavigationStrategySegmentedControl, RMMultipleViewsControllerNavigationStrategyArrows, RMMultipleViewsControllerNavigationStrategyNone } RMMultipleViewsControllerNavigationStrategy; /** * `RMMultipleViewsController` is an iOS control for showing multiple view controller in one view controller and selecting one with a segmented control. Every `RMMultipleViewsController` should be pushed into a `UINavigationController`. */ @interface RMMultipleViewsController : UIViewController /** * Provides access to the child view controllers. */ @property (nonatomic, strong) NSArray *viewController; /** * Used to change the animation type when switching from one view controller to another. */ @property (nonatomic, assign) RMMultipleViewsControllerAnimation animationStyle; /** * Used to control whether or not the `RMMultipleViewsController` will also show the left and right navigation bar button item of the currently shown child view controller. */ @property (nonatomic, assign) BOOL useNavigationBarButtonItemsOfCurrentViewController; /** * Used to control whether or not the `RMMultipleViewsController` will also show the toolbar items of the currently shown child view controller. */ @property (nonatomic, assign) BOOL useToolbarItemsOfCurrentViewController; /** * Used to control whether AAMultiViewController will auto-create, auto-display, and use a segmented control for navigation. */ @property (nonatomic, assign) RMMultipleViewsControllerNavigationStrategy navigationStrategy; /** * Used to initialize a new `RMMultipleViewsController`. * * @param someViewControllers An array of child view controllers. * * @return A new `RMMultipleViewsController`. */ - (instancetype)initWithViewControllers:(NSArray *)someViewControllers; /** * Call this method if you want to display a certain child view controller. * * @param aViewController The view controller you want to show. This view controller must be an element of the viewController array. * @param animated Used to enable or disable animations for this change. */ - (void)showViewController:(UIViewController *)aViewController animated:(BOOL)animated; @end
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="zh"> <head> <!-- Generated by javadoc (1.8.0_171) on Mon Apr 22 17:36:00 CST 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>cn.jpush.im.android.api.exceptions 类分层结构 (android API)</title> <meta name="date" content="2019-04-22"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="cn.jpush.im.android.api.exceptions \u7C7B\u5206\u5C42\u7ED3\u6784 (android API)"; } } catch(err) { } //--> </script> <noscript> <div>您的浏览器已禁用 JavaScript。</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="导航"> <li><a href="../../../../../../overview-summary.html">概览</a></li> <li><a href="package-summary.html">程序包</a></li> <li>类</li> <li class="navBarCell1Rev">树</li> <li><a href="../../../../../../deprecated-list.html">已过时</a></li> <li><a href="../../../../../../index-files/index-1.html">索引</a></li> <li><a href="../../../../../../help-doc.html">帮助</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../cn/jpush/im/android/api/event/package-tree.html">上一个</a></li> <li><a href="../../../../../../cn/jpush/im/android/api/jmrtc/package-tree.html">下一个</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?cn/jpush/im/android/api/exceptions/package-tree.html" target="_top">框架</a></li> <li><a href="package-tree.html" target="_top">无框架</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">所有类</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h1 class="title">程序包cn.jpush.im.android.api.exceptions的分层结构</h1> <span class="packageHierarchyLabel">程序包分层结构:</span> <ul class="horizontal"> <li><a href="../../../../../../overview-tree.html">所有程序包</a></li> </ul> </div> <div class="contentContainer"> <h2 title="类分层结构">类分层结构</h2> <ul> <li type="circle">java.lang.Object <ul> <li type="circle">java.lang.Throwable (implements java.io.Serializable) <ul> <li type="circle">java.lang.Exception <ul> <li type="circle">cn.jpush.im.android.api.exceptions.<a href="../../../../../../cn/jpush/im/android/api/exceptions/JMessageException.html" title="cn.jpush.im.android.api.exceptions中的类"><span class="typeNameLink">JMessageException</span></a> <ul> <li type="circle">cn.jpush.im.android.api.exceptions.<a href="../../../../../../cn/jpush/im/android/api/exceptions/JMFileSizeExceedException.html" title="cn.jpush.im.android.api.exceptions中的类"><span class="typeNameLink">JMFileSizeExceedException</span></a></li> </ul> </li> </ul> </li> </ul> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="导航"> <li><a href="../../../../../../overview-summary.html">概览</a></li> <li><a href="package-summary.html">程序包</a></li> <li>类</li> <li class="navBarCell1Rev">树</li> <li><a href="../../../../../../deprecated-list.html">已过时</a></li> <li><a href="../../../../../../index-files/index-1.html">索引</a></li> <li><a href="../../../../../../help-doc.html">帮助</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../cn/jpush/im/android/api/event/package-tree.html">上一个</a></li> <li><a href="../../../../../../cn/jpush/im/android/api/jmrtc/package-tree.html">下一个</a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?cn/jpush/im/android/api/exceptions/package-tree.html" target="_top">框架</a></li> <li><a href="package-tree.html" target="_top">无框架</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">所有类</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
Java
## www.pubnub.com - PubNub Real-time push service in the cloud. # coding=utf8 ## PubNub Real-time Push APIs and Notifications Framework ## Copyright (c) 2010 Stephen Blum ## http://www.pubnub.com/ import sys from pubnub import PubnubTornado as Pubnub publish_key = len(sys.argv) > 1 and sys.argv[1] or 'demo' subscribe_key = len(sys.argv) > 2 and sys.argv[2] or 'demo' secret_key = len(sys.argv) > 3 and sys.argv[3] or 'demo' cipher_key = len(sys.argv) > 4 and sys.argv[4] or '' ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False ## ----------------------------------------------------------------------- ## Initiate Pubnub State ## ----------------------------------------------------------------------- pubnub = Pubnub(publish_key=publish_key, subscribe_key=subscribe_key, secret_key=secret_key, cipher_key=cipher_key, ssl_on=ssl_on) channel = 'hello_world' # Asynchronous usage def callback(message): print(message) pubnub.here_now(channel, callback=callback, error=callback) pubnub.start()
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Concurrent; using System.Net; using System.Threading; using System.Threading.Tasks; using Microsoft.Common.Core; using Microsoft.Common.Core.Logging; using Microsoft.R.Common.Core.Output; using static System.FormattableString; namespace Microsoft.R.Host.Client.BrokerServices { public class WebServer { private static ConcurrentDictionary<int, WebServer> Servers { get; } = new ConcurrentDictionary<int, WebServer>(); private static object _serverLock = new object(); private readonly IRemoteUriWebService _remoteUriService; private readonly string _baseAddress; private readonly IActionLog _log; private readonly IConsole _console; private readonly string _name; private HttpListener _listener; public string LocalHost { get; } public int LocalPort { get; private set; } public string RemoteHost { get; } public int RemotePort { get; } private WebServer(string remoteHostIp, int remotePort, string baseAddress, string name, IActionLog log, IConsole console) { _name = name.ToUpperInvariant(); _baseAddress = baseAddress; _log = log; _console = console; LocalHost = IPAddress.Loopback.ToString(); RemoteHost = remoteHostIp; RemotePort = remotePort; _remoteUriService = new RemoteUriWebService(baseAddress, log, console); } public void Initialize(CancellationToken ct) { Random r = new Random(); // if remote port is between 10000 and 32000, select a port in the same range. // R Help uses ports in that range. int localPortMin = (RemotePort >= 10000 && RemotePort <= 32000) ? 10000 : 49152; int localPortMax = (RemotePort >= 10000 && RemotePort <= 32000) ? 32000 : 65535; _console.WriteErrorLine(Resources.Info_RemoteWebServerStarting.FormatInvariant(_name)); while (true) { ct.ThrowIfCancellationRequested(); _listener = new HttpListener(); LocalPort = r.Next(localPortMin, localPortMax); _listener.Prefixes.Add(Invariant($"http://{LocalHost}:{LocalPort}/")); try { _listener.Start(); } catch (HttpListenerException) { _listener.Close(); continue; } catch (ObjectDisposedException) { // Socket got closed _log.WriteLine(LogVerbosity.Minimal, MessageCategory.Error, Resources.Error_RemoteWebServerCreationFailed.FormatInvariant(_name)); _console.WriteErrorLine(Resources.Error_RemoteWebServerCreationFailed.FormatInvariant(_name)); throw new OperationCanceledException(); } break; } try { _log.WriteLine(LogVerbosity.Minimal, MessageCategory.General, Resources.Info_RemoteWebServerStarted.FormatInvariant(_name, LocalHost, LocalPort)); _console.WriteErrorLine(Resources.Info_RemoteWebServerStarted.FormatInvariant(_name, LocalHost, LocalPort)); _console.WriteErrorLine(Resources.Info_RemoteWebServerDetails.FormatInvariant(Environment.MachineName, LocalHost, LocalPort, _name, _baseAddress)); } catch { } } private void Stop() { try { if (_listener.IsListening) { _listener.Stop(); } _listener.Close(); _log.WriteLine(LogVerbosity.Minimal, MessageCategory.General, Resources.Info_RemoteWebServerStopped.FormatInvariant(_name)); _console.WriteErrorLine(Resources.Info_RemoteWebServerStopped.FormatInvariant(_name)); } catch (Exception ex) when (!ex.IsCriticalException()) { } } public static void Stop(int port) { if (Servers.TryRemove(port, out WebServer server)) { server.Stop(); } } public static void StopAll() { var ports = Servers.Keys.AsArray(); foreach (var port in ports) { Stop(port); } } private async Task DoWorkAsync(CancellationToken ct = default(CancellationToken)) { try { while (_listener.IsListening) { if (ct.IsCancellationRequested) { _listener.Stop(); break; } HttpListenerContext context = await _listener.GetContextAsync(); string localUrl = $"{LocalHost}:{LocalPort}"; string remoteUrl = $"{RemoteHost}:{RemotePort}"; _remoteUriService.GetResponseAsync(context, localUrl, remoteUrl, ct).DoNotWait(); } } catch(Exception ex) { if (Servers.ContainsKey(RemotePort)) { // Log only if we expect this web server to be running and it fails. _log.WriteLine(LogVerbosity.Minimal, MessageCategory.Error, Resources.Error_RemoteWebServerFailed.FormatInvariant(_name, ex.Message)); _console.WriteErrorLine(Resources.Error_RemoteWebServerFailed.FormatInvariant(_name, ex.Message)); } } finally { Stop(RemotePort); } } public static Task<string> CreateWebServerAndHandleUrlAsync(string remoteUrl, string baseAddress, string name, IActionLog log, IConsole console, CancellationToken ct = default(CancellationToken)) { var remoteUri = new Uri(remoteUrl); var localUri = new UriBuilder(remoteUri); WebServer server; lock (_serverLock) { if (!Servers.TryGetValue(remoteUri.Port, out server)) { server = new WebServer(remoteUri.Host, remoteUri.Port, baseAddress, name, log, console); server.Initialize(ct); Servers.TryAdd(remoteUri.Port, server); } } server.DoWorkAsync(ct).DoNotWait(); localUri.Host = server.LocalHost; localUri.Port = server.LocalPort; return Task.FromResult(localUri.Uri.ToString()); } } }
Java
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); /** * A blank storage class, for cases where caching is not * required. */ class Google_Cache_Null extends Google_Cache_Abstract { public function __construct(Google_Client $client) { } /** * @inheritDoc */ public function get($key, $expiration = false) { return false; } /** * @inheritDoc */ public function set($key, $value) { // Nop. } /** * @inheritDoc * @param String $key */ public function delete($key) { // Nop. } }
Java
/** * Created by jiangli on 15/1/6. */ "use strict"; var request = require('request'); var iconv = require('iconv-lite'); var crypto = require('crypto'); var Buffer = require('buffer').Buffer; /** * [_parseYouku 解析优酷网] * @param [type] $url [description] * @return [type] [description] */ module.exports = function($url,callback){ var $matches = $url.match(/id\_([\w=]+)/); if ($matches&&$matches.length>1){ return _getYouku($matches[1].trim(),callback); }else{ return null; } } function _getYouku($vid,callback){ var $base = "http://v.youku.com/player/getPlaylist/VideoIDS/"; var $blink = $base+$vid; var $link = $blink+"/Pf/4/ctype/12/ev/1"; request($link, function(er, response,body) { if (er) return callback(er); var $retval = body; if($retval){ var $rs = JSON.parse($retval); request($blink, function(er, response,body) { if (er) return callback(er); var $data = { '1080Phd3':[], '超清hd2':[], '高清mp4':[], '高清flvhd':[], '标清flv':[], '高清3gphd':[], '3gp':[] }; var $bretval = body; var $brs = JSON.parse($bretval); var $rs_data = $rs.data[0]; var $brs_data = $brs.data[0]; if($rs_data.error){ return callback(null, $data['error'] = $rs_data.error); } var $streamtypes = $rs_data.streamtypes; //可以输出的视频清晰度 var $streamfileids = $rs_data.streamfileids; var $seed = $rs_data.seed; var $segs = $rs_data.segs; var $ip = $rs_data.ip; var $bsegs = $brs_data.segs; var yk_e_result = yk_e('becaf9be', yk_na($rs_data.ep)).split('_'); var $sid = yk_e_result[0], $token = yk_e_result[1]; for(var $key in $segs){ if(in_array($key,$streamtypes)){ var $segs_key_val = $segs[$key]; for(var kk=0;kk<$segs_key_val.length;kk++){ var $v = $segs_key_val[kk]; var $no = $v.no.toString(16).toUpperCase(); //转换为16进制 大写 if($no.length == 1){ $no ="0"+$no; //no 为每段视频序号 } //构建视频地址K值 var $_k = $v.k; if ((!$_k || $_k == '') || $_k == '-1') { $_k = $bsegs[$key][kk].k; } var $fileId = getFileid($streamfileids[$key],$seed); $fileId = $fileId.substr(0,8)+$no+$fileId.substr(10); var m0 = yk_e('bf7e5f01', $sid + '_' + $fileId + '_' + $token); var m1 = yk_d(m0); var iconv_result = iconv.decode(new Buffer(m1), 'UTF-8'); if(iconv_result!=""){ var $ep = urlencode(iconv_result); var $typeArray = []; $typeArray['flv']= 'flv'; $typeArray['mp4']= 'mp4'; $typeArray['hd2']= 'flv'; $typeArray['3gphd']= 'mp4'; $typeArray['3gp']= 'flv'; $typeArray['hd3']= 'flv'; //判断视频清晰度 var $sharpness = []; //清晰度 数组 $sharpness['flv']= '标清flv'; $sharpness['flvhd']= '高清flvhd'; $sharpness['mp4']= '高清mp4'; $sharpness['hd2']= '超清hd2'; $sharpness['3gphd']= '高清3gphd'; $sharpness['3gp']= '3gp'; $sharpness['hd3']= '1080Phd3'; var $fileType = $typeArray[$key]; $data[$sharpness[$key]][kk] = "http://k.youku.com/player/getFlvPath/sid/"+$sid+"_00/st/"+$fileType+"/fileid/"+$fileId+"?K="+$_k+"&hd=1&myp=0&ts="+((((($v['seconds']+'&ypp=0&ctype=12&ev=1&token=')+$token)+'&oip=')+$ip)+'&ep=')+$ep; } } } } //返回 图片 标题 链接 时长 视频地址 $data['coverImg'] = $rs['data'][0]['logo']; $data['title'] = $rs['data'][0]['title']; $data['seconds'] = $rs['data'][0]['seconds']; return callback(null,$data); }); }else{ return callback(null,null); } }) } function urlencode(str) { str = (str + '').toString(); return encodeURIComponent(str) .replace(/!/g, '%21') .replace(/'/g, '%27') .replace(/\(/g, '%28') .replace(/\)/g, '%29') .replace(/\*/g, '%2A') .replace(/%20/g, '+'); }; function in_array(needle, haystack, argStrict) { var key = '', strict = !! argStrict; if (strict) { for (key in haystack) { if (haystack[key] === needle) { return true; } } } else { for (key in haystack) { if (haystack[key] == needle) { return true; } } } return false; }; //start 获得优酷视频需要用到的方法 function getSid(){ var $sid = new Date().getTime()+(Math.random() * 9001+10000); return $sid; } function getKey($key1,$key2){ var $a = parseInt($key1,16); var $b = $a ^0xA55AA5A5; var $b = $b.toString(16); return $key2+$b; } function getFileid($fileId,$seed){ var $mixed = getMixString($seed); var $ids = $fileId.replace(/(\**$)/g, "").split('*'); //去掉末尾的*号分割为数组 var $realId = ""; for (var $i=0;$i<$ids.length;$i++){ var $idx = $ids[$i]; $realId += $mixed.substr($idx,1); } return $realId; } function getMixString($seed){ var $mixed = ""; var $source = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/\\:._-1234567890"; var $len = $source.length; for(var $i=0;$i<$len;$i++){ $seed = ($seed * 211 + 30031)%65536; var $index = ($seed / 65536 * $source.length); var $c = $source.substr($index,1); $mixed += $c; $source = $source.replace($c,""); } return $mixed; } function yk_d($a){ if (!$a) { return ''; } var $f = $a.length; var $b = 0; var $str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; for (var $c = ''; $b < $f;) { var $e = charCodeAt($a, $b++) & 255; if ($b == $f) { $c += charAt($str, $e >> 2); $c += charAt($str, ($e & 3) << 4); $c += '=='; break; } var $g = charCodeAt($a, $b++); if ($b == $f) { $c += charAt($str, $e >> 2); $c += charAt($str, ($e & 3) << 4 | ($g & 240) >> 4); $c += charAt($str, ($g & 15) << 2); $c += '='; break; } var $h = charCodeAt($a, $b++); $c += charAt($str, $e >> 2); $c += charAt($str, ($e & 3) << 4 | ($g & 240) >> 4); $c += charAt($str, ($g & 15) << 2 | ($h & 192) >> 6); $c += charAt($str, $h & 63); } return $c; } function yk_na($a){ if (!$a) { return ''; } var $sz = '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1'; var $h = $sz.split(','); var $i = $a.length; var $f = 0; for (var $e = ''; $f < $i;) { var $c; do { $c = $h[charCodeAt($a, $f++) & 255]; } while ($f < $i && -1 == $c); if (-1 == $c) { break; } var $b; do { $b = $h[charCodeAt($a, $f++) & 255]; } while ($f < $i && -1 == $b); if (-1 == $b) { break; } $e += String.fromCharCode($c << 2 | ($b & 48) >> 4); do { $c = charCodeAt($a, $f++) & 255; if (61 == $c) { return $e; } $c = $h[$c]; } while ($f < $i && -1 == $c); if (-1 == $c) { break; } $e += String.fromCharCode(($b & 15) << 4 | ($c & 60) >> 2); do { $b = charCodeAt($a, $f++) & 255; if (61 == $b) { return $e; } $b = $h[$b]; } while ($f < $i && -1 == $b); if (-1 == $b) { break; } $e += String.fromCharCode(($c & 3) << 6 | $b); } return $e; } function yk_e($a, $c){ var $b = []; for (var $f = 0, $i, $e = '', $h = 0; 256 > $h; $h++) { $b[$h] = $h; } for ($h = 0; 256 > $h; $h++) { $f = (($f + $b[$h]) + charCodeAt($a, $h % $a.length)) % 256; $i = $b[$h]; $b[$h] = $b[$f]; $b[$f] = $i; } for (var $q = ($f = ($h = 0)); $q < $c.length; $q++) { $h = ($h + 1) % 256; $f = ($f + $b[$h]) % 256; $i = $b[$h]; $b[$h] = $b[$f]; $b[$f] = $i; $e += String.fromCharCode(charCodeAt($c, $q) ^ $b[($b[$h] + $b[$f]) % 256]); } return $e; } function md5(str){ var shasum = crypto.createHash('md5'); shasum.update(str); return shasum.digest('hex'); } function charCodeAt($str, $index){ var $charCode = []; var $key = md5($str); $index = $index + 1; if ($charCode[$key]) { return $charCode[$key][$index]; } $charCode[$key] = unpack('C*', $str); return $charCode[$key][$index]; } function charAt($str, $index){ return $str.substr($index, 1); } function unpack(format, data) { var formatPointer = 0, dataPointer = 0, result = {}, instruction = '', quantifier = '', label = '', currentData = '', i = 0, j = 0, word = '', fbits = 0, ebits = 0, dataByteLength = 0; var fromIEEE754 = function(bytes, ebits, fbits) { // Bytes to bits var bits = []; for (var i = bytes.length; i; i -= 1) { var m_byte = bytes[i - 1]; for (var j = 8; j; j -= 1) { bits.push(m_byte % 2 ? 1 : 0); m_byte = m_byte >> 1; } } bits.reverse(); var str = bits.join(''); // Unpack sign, exponent, fraction var bias = (1 << (ebits - 1)) - 1; var s = parseInt(str.substring(0, 1), 2) ? -1 : 1; var e = parseInt(str.substring(1, 1 + ebits), 2); var f = parseInt(str.substring(1 + ebits), 2); // Produce number if (e === (1 << ebits) - 1) { return f !== 0 ? NaN : s * Infinity; } else if (e > 0) { return s * Math.pow(2, e - bias) * (1 + f / Math.pow(2, fbits)); } else if (f !== 0) { return s * Math.pow(2, -(bias-1)) * (f / Math.pow(2, fbits)); } else { return s * 0; } } while (formatPointer < format.length) { instruction = format.charAt(formatPointer); // Start reading 'quantifier' quantifier = ''; formatPointer++; while ((formatPointer < format.length) && (format.charAt(formatPointer).match(/[\d\*]/) !== null)) { quantifier += format.charAt(formatPointer); formatPointer++; } if (quantifier === '') { quantifier = '1'; } // Start reading label label = ''; while ((formatPointer < format.length) && (format.charAt(formatPointer) !== '/')) { label += format.charAt(formatPointer); formatPointer++; } if (format.charAt(formatPointer) === '/') { formatPointer++; } // Process given instruction switch (instruction) { case 'a': // NUL-padded string case 'A': // SPACE-padded string if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier); dataPointer += quantifier; var currentResult; if (instruction === 'a') { currentResult = currentData.replace(/\0+$/, ''); } else { currentResult = currentData.replace(/ +$/, ''); } result[label] = currentResult; break; case 'h': // Hex string, low nibble first case 'H': // Hex string, high nibble first if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier); dataPointer += quantifier; if (quantifier > currentData.length) { throw new Error('Warning: unpack(): Type ' + instruction + ': not enough input, need ' + quantifier); } currentResult = ''; for (i = 0; i < currentData.length; i++) { word = currentData.charCodeAt(i).toString(16); if (instruction === 'h') { word = word[1] + word[0]; } currentResult += word; } result[label] = currentResult; break; case 'c': // signed char case 'C': // unsigned c if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier); dataPointer += quantifier; for (i = 0; i < currentData.length; i++) { currentResult = currentData.charCodeAt(i); if ((instruction === 'c') && (currentResult >= 128)) { currentResult -= 256; } result[label + (quantifier > 1 ? (i + 1) : '')] = currentResult; } break; case 'S': // unsigned short (always 16 bit, machine byte order) case 's': // signed short (always 16 bit, machine byte order) case 'v': // unsigned short (always 16 bit, little endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 2; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 2); dataPointer += quantifier * 2; for (i = 0; i < currentData.length; i += 2) { // sum per word; currentResult = ((currentData.charCodeAt(i + 1) & 0xFF) << 8) + (currentData.charCodeAt(i) & 0xFF); if ((instruction === 's') && (currentResult >= 32768)) { currentResult -= 65536; } result[label + (quantifier > 1 ? ((i / 2) + 1) : '')] = currentResult; } break; case 'n': // unsigned short (always 16 bit, big endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 2; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 2); dataPointer += quantifier * 2; for (i = 0; i < currentData.length; i += 2) { // sum per word; currentResult = ((currentData.charCodeAt(i) & 0xFF) << 8) + (currentData.charCodeAt(i + 1) & 0xFF); result[label + (quantifier > 1 ? ((i / 2) + 1) : '')] = currentResult; } break; case 'i': // signed integer (machine dependent size and byte order) case 'I': // unsigned integer (machine dependent size & byte order) case 'l': // signed long (always 32 bit, machine byte order) case 'L': // unsigned long (always 32 bit, machine byte order) case 'V': // unsigned long (always 32 bit, little endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 4; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 4); dataPointer += quantifier * 4; for (i = 0; i < currentData.length; i += 4) { currentResult = ((currentData.charCodeAt(i + 3) & 0xFF) << 24) + ((currentData.charCodeAt(i + 2) & 0xFF) << 16) + ((currentData.charCodeAt(i + 1) & 0xFF) << 8) + ((currentData.charCodeAt(i) & 0xFF)); result[label + (quantifier > 1 ? ((i / 4) + 1) : '')] = currentResult; } break; case 'N': // unsigned long (always 32 bit, little endian byte order) if (quantifier === '*') { quantifier = (data.length - dataPointer) / 4; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * 4); dataPointer += quantifier * 4; for (i = 0; i < currentData.length; i += 4) { currentResult = ((currentData.charCodeAt(i) & 0xFF) << 24) + ((currentData.charCodeAt(i + 1) & 0xFF) << 16) + ((currentData.charCodeAt(i + 2) & 0xFF) << 8) + ((currentData.charCodeAt(i + 3) & 0xFF)); result[label + (quantifier > 1 ? ((i / 4) + 1) : '')] = currentResult; } break; case 'f': //float case 'd': //double ebits = 8; fbits = (instruction === 'f') ? 23 : 52; dataByteLength = 4; if (instruction === 'd') { ebits = 11; dataByteLength = 8; } if (quantifier === '*') { quantifier = (data.length - dataPointer) / dataByteLength; } else { quantifier = parseInt(quantifier, 10); } currentData = data.substr(dataPointer, quantifier * dataByteLength); dataPointer += quantifier * dataByteLength; for (i = 0; i < currentData.length; i += dataByteLength) { data = currentData.substr(i, dataByteLength); var bytes = []; for (j = data.length - 1; j >= 0; --j) { bytes.push(data.charCodeAt(j)); } result[label + (quantifier > 1 ? ((i / 4) + 1) : '')] = fromIEEE754(bytes, ebits, fbits); } break; case 'x': // NUL byte case 'X': // Back up one byte case '@': // NUL byte if (quantifier === '*') { quantifier = data.length - dataPointer; } else { quantifier = parseInt(quantifier, 10); } if (quantifier > 0) { if (instruction === 'X') { dataPointer -= quantifier; } else { if (instruction === 'x') { dataPointer += quantifier; } else { dataPointer = quantifier; } } } break; default: throw new Error('Warning: unpack() Type ' + instruction + ': unknown format code'); } } return result; }
Java
/* * Copyright (c) 2011 Stephen A. Pratt * * 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. */ namespace org.critterai.interop { /// <summary> /// Indicates how an object's unmanaged resources have been allocated and are managed. /// </summary> public enum AllocType : byte { /// <summary> /// Unmanaged resources were allocated locally and must be freed locally. /// </summary> Local = 0, /// <summary> /// Unmanaged resources were allocated by an external library and a call must be made /// to the library to free them. /// </summary> External = 1, /// <summary> /// Unmanaged resources were allocated and are managed by an external library. There is /// no local responsiblity to directly free the resources. /// </summary> /// <remarks> /// <para> /// Objects of this type are usually allocated and owned by another unmanaged object. So /// its resources are freed by its owner when its owner is freed. /// </para> /// </remarks> ExternallyManaged = 2 } }
Java
package cn.mutils.app.alipay; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
Java
class Post < ActiveRecord::Base validates :title, presence: true validates :slug, presence: true, uniqueness: true acts_as_url :title, :url_attribute => :slug default_scope order('created_at desc') def to_param slug end def external? !url.blank? end end
Java
--- title: Împlinirea Legii în totalitate date: 07/09/2017 --- `Cum împăcăm comentariul dezaprobator al lui Pavel, cu privire la datoria de a împlini „toată Legea” (Galateni 5:3), cu alte declaraţii ale sale despre împlinirea Legii? Compară Romani 10:5; Galateni 3:10,12; 5:3 cu Romani 8:4; 13:8; Galateni 5:14.` Mulţi consideră că afirmaţiile lui Pavel sunt contradictorii. Dar lucrurile nu stau aşa. Soluţia este dată de distincţia importantă pe care el o face între două moduri diferite de definire a comportamentului creştin în relaţie cu Legea. Pe de o parte, este comportamentul greşit al celor care trăiesc sub Lege, îndeplinind cerinţele ei în speranţa de a câştiga astfel aprobarea lui Dumnezeu. De cealaltă parte, este ascultarea celor care au găsit mântuirea în Hristos, a căror preocupare nu este de a bifa toate cerinţele pe care le-au îndeplinit. Comportamentul creştin merge dincolo de ascultarea formală de Lege; el trece la împlinirea Legii. Acest tip de ascultare a fost ilustrat de Isus: „Să nu credeţi că am venit să stric Legea sau Prorocii; am venit nu să stric, ci să împlinesc” (Matei 5:17). Aşadar, recomandarea lui Pavel nu este aceea de a minimaliza Legea. Dimpotrivă, prin cunoaşterea lui Hristos, credinciosul va cunoaşte adevăratul scop şi adevărata semnificaţie a întregii Legi! `Potrivit lui Pavel, la ce poruncă se poate rezuma întreaga Lege? Galateni 5:14; Leviticul 19:18; Marcu 12:31,33; Matei 19:19; Romani 13:9; Iacov 2:8.` Deşi citează din Leviticul, declaraţia lui Pavel din Galateni se bazează pe modul în care a citat Isus Leviticul 19:18. Totuşi Isus nu a fost singurul învăţător iudeu care a afirmat că acest text este un rezumat al întregii Legi. Rabinul Hillel, care a trăit cu aproape o generaţie înainte de Isus, a spus: „Nu îi face semenului tău ceea ce nu îţi place să ţi se facă; în aceasta stă toată Legea.” Însă perspectiva lui Isus a fost radical diferită: „Tot ce voiţi să vă facă vouă oamenii, faceţi-le şi voi la fel; căci în aceasta sunt cuprinse Legea şi Prorocii” (Matei 7:12). Nu numai că este o perspectivă pozitivă, ci ea demonstrează totodată faptul că Legea şi dragostea sunt compatibile. Fără dragoste, Legea este fără conţinut şi rece; fără Lege, dragostea nu are nicio direcţie. `Explicaţi în cuvinte proprii de ce dragostea pentru aproapele înseamnă împlinirea în totalitate a Legii!`
Java
# -*- coding: utf-8 -*- import numbers import numpy as np from ..constants import BOLTZMANN_IN_MEV_K from ..energy import Energy class Analysis(object): r"""Class containing methods for the Data class Attributes ---------- detailed_balance_factor Methods ------- integrate position width scattering_function dynamic_susceptibility estimate_background get_keys get_bounds """ @property def detailed_balance_factor(self): r"""Returns the detailed balance factor (sometimes called the Bose factor) Parameters ---------- None Returns ------- dbf : ndarray The detailed balance factor (temperature correction) """ return 1. - np.exp(-self.Q[:, 3] / BOLTZMANN_IN_MEV_K / self.temp) def integrate(self, bounds=None, background=None, hkle=True): r"""Returns the integrated intensity within given bounds Parameters ---------- bounds : bool, optional A boolean expression representing the bounds inside which the calculation will be performed background : float or dict, optional Default: None hkle : bool, optional If True, integrates only over h, k, l, e dimensions, otherwise integrates over all dimensions in :py:attr:`.Data.data` Returns ------- result : float The integrated intensity either over all data, or within specified boundaries """ result = 0 for key in self.get_keys(hkle): result += np.trapz(self.intensity[self.get_bounds(bounds)] - self.estimate_background(background), np.squeeze(self.data[key][self.get_bounds(bounds)])) return result def position(self, bounds=None, background=None, hkle=True): r"""Returns the position of a peak within the given bounds Parameters ---------- bounds : bool, optional A boolean expression representing the bounds inside which the calculation will be performed background : float or dict, optional Default: None hkle : bool, optional If True, integrates only over h, k, l, e dimensions, otherwise integrates over all dimensions in :py:attr:`.Data.data` Returns ------- result : tup The result is a tuple with position in each dimension of Q, (h, k, l, e) """ result = () for key in self.get_keys(hkle): _result = 0 for key_integrate in self.get_keys(hkle): _result += np.trapz(self.data[key][self.get_bounds(bounds)] * (self.intensity[self.get_bounds(bounds)] - self.estimate_background(background)), self.data[key_integrate][self.get_bounds(bounds)]) / self.integrate(bounds, background) result += (np.squeeze(_result),) if hkle: return result else: return dict((key, value) for key, value in zip(self.get_keys(hkle), result)) def width(self, bounds=None, background=None, fwhm=False, hkle=True): r"""Returns the mean-squared width of a peak within the given bounds Parameters ---------- bounds : bool, optional A boolean expression representing the bounds inside which the calculation will be performed background : float or dict, optional Default: None fwhm : bool, optional If True, returns width in fwhm, otherwise in mean-squared width. Default: False hkle : bool, optional If True, integrates only over h, k, l, e dimensions, otherwise integrates over all dimensions in :py:attr:`.Data.data` Returns ------- result : tup The result is a tuple with the width in each dimension of Q, (h, k, l, e) """ result = () for key in self.get_keys(hkle): _result = 0 for key_integrate in self.get_keys(hkle): _result += np.trapz((self.data[key][self.get_bounds(bounds)] - self.position(bounds, background, hkle=False)[key]) ** 2 * (self.intensity[self.get_bounds(bounds)] - self.estimate_background(background)), self.data[key_integrate][self.get_bounds(bounds)]) / self.integrate(bounds, background) if fwhm: result += (np.sqrt(np.squeeze(_result)) * 2. * np.sqrt(2. * np.log(2.)),) else: result += (np.squeeze(_result),) if hkle: return result else: return dict((key, value) for key, value in zip(self.get_keys(hkle), result)) def scattering_function(self, material, ei): r"""Returns the neutron scattering function, i.e. the detector counts scaled by :math:`4 \pi / \sigma_{\mathrm{tot}} * k_i/k_f`. Parameters ---------- material : object Definition of the material given by the :py:class:`.Material` class ei : float Incident energy in meV Returns ------- counts : ndarray The detector counts scaled by the total scattering cross section and ki/kf """ ki = Energy(energy=ei).wavevector kf = Energy(energy=ei - self.e).wavevector return 4 * np.pi / material.total_scattering_cross_section * ki / kf * self.detector def dynamic_susceptibility(self, material, ei): r"""Returns the dynamic susceptibility :math:`\chi^{\prime\prime}(\mathbf{Q},\hbar\omega)` Parameters ---------- material : object Definition of the material given by the :py:class:`.Material` class ei : float Incident energy in meV Returns ------- counts : ndarray The detector counts turned into the scattering function multiplied by the detailed balance factor """ return self.scattering_function(material, ei) * self.detailed_balance_factor def estimate_background(self, bg_params): r"""Estimate the background according to ``type`` specified. Parameters ---------- bg_params : dict Input dictionary has keys 'type' and 'value'. Types are * 'constant' : background is the constant given by 'value' * 'percent' : background is estimated by the bottom x%, where x is value * 'minimum' : background is estimated as the detector counts Returns ------- background : float or ndarray Value determined to be the background. Will return ndarray only if `'type'` is `'constant'` and `'value'` is an ndarray """ if isinstance(bg_params, type(None)): return 0 elif isinstance(bg_params, numbers.Number): return bg_params elif bg_params['type'] == 'constant': return bg_params['value'] elif bg_params['type'] == 'percent': inten = self.intensity[self.intensity >= 0.] Npts = int(inten.size * (bg_params['value'] / 100.)) min_vals = inten[np.argsort(inten)[:Npts]] background = np.average(min_vals) return background elif bg_params['type'] == 'minimum': return min(self.intensity) else: return 0 def get_bounds(self, bounds): r"""Generates a to_fit tuple if bounds is present in kwargs Parameters ---------- bounds : dict Returns ------- to_fit : tuple Tuple of indices """ if bounds is not None: return np.where(bounds) else: return np.where(self.Q[:, 0]) def get_keys(self, hkle): r"""Returns all of the Dictionary key names Parameters ---------- hkle : bool If True only returns keys for h,k,l,e, otherwise returns all keys Returns ------- keys : list :py:attr:`.Data.data` dictionary keys """ if hkle: return [key for key in self.data if key in self.Q_keys.values()] else: return [key for key in self.data if key not in self.data_keys.values()]
Java
deal
Java
--- title: 'Два големи хора за благодарствени песни' date: 03/12/2019 --- `Прочетете Неемия 12:31-42. Защо музиката е толкова важна част от празника?` Част от богослужението по времето на Неемия е създаването на два хора за благодарствени песни, обикалящи из Йерусалим и пеещи под съпровод на музикални инструменти. Те тръгват от едно и също място, а след това се разделят, като всеки тръгва в различна посока покрай стените на града. Едната група се води от Ездра, който върви начело, а другата завършва с Неемия най-отзад. Двата хора отново се срещат при Портата на долината и оттам продължават към храма. Свещеници с тръби придружават и двете процесии. Щом хоровете влизат в храма, застават един срещу друг. Това е отлично организирана процесия и храмова служба. За да отговорим защо музиката е толкова важна част от празника и богослужението, трябва да разгледаме нейното значение в контекста на храма. Музиката в храма не е концерт за радост на хората, като концерт на Четвъртата симфония от Бетовен, изпълнявана в концертна зала. По-скоро, когато музикантите пеят и свирят с инструментите, народът коленичи за молитва. Това е част от тяхното поклонение. Централно място в храма и поклонението заема принасянето на жертвите, което само по себе си е неприятно действие. Всъщност те просто прерязват гърлата на невинни животни, нали? Красивата музика, освен че издига мислите на хората към небето, прави и цялото богослужение по-приятно. `Намерете примери от Библията, в които музиката е важен аспект от поклонението. Разгледайте Изход 15:1; 2 Летописи 20:21,22; Откровение 15:2-4.` Както на небето, така и на земята музиката е част от поклонението. Забележете, че в горепосочените стихове песните отразяват какво е направил Господ за Своя народ, включително да им помогне да победят „звяра“ (а как иначе щяха да постигнат победа?). Те прославят Бога за Неговите спасителни действия. `Назовете някои от нещата, които е сторил Бог за вас и които са добри основания да Го хвалите с песни?`
Java
--- title: Moderador date: 06/01/2017 --- **Texto-Chave**: II Pedro 1:19-21 #### **Com o Estudo desta Lição, o Membro da unidade de ação Vai:** - **Aprender**: A compreender que a Bíblia é a vontade revelada de Deus, inspirada pelo Espírito Santo. É uma salvaguarda para a sua fé e um padrão pelo qual deve ser testado todo o ensino e experiência. - **Sentir**: A experiência de uma atitude de completa submissão à orientação do Espírito Santo através da Palavra de Deus, em vez de uma atitude de juízo independente e de orgulho humano. - **Fazer**: A escolha de deixar que o Espírito Santo molde o seu pensamento através da Palavra de Deus e através do poder e do impulso do Espírito, levando o membro a submeter quaisquer atitudes e atos não em harmonia com a inspirada Palavra de Deus. #### **Esboço da Aprendizagem:** 1. Aprender: A Compreender o Papel do Espírito Santo na Revelação e na Inspiração. + **A** Qual é a diferença entre os termos "revelação" e "inspiração"? + **B** Dado que o Espírito Santo atua através dos agentes humanos que escreveram a Bíblia, como podemos ter a certeza de que ela é a revelação confiável de Deus para nós? + **C** Como é que a inspiração molda o que Deus revela através dos autores bíblicos? 2. Sentir: Abordar a Bíblia com uma Atitude de Humildade. + **A** Como é que a atitude que temos ao abordar a Bíblia determina a capacidade do Espírito Santo para mudar-nos através dos textos das Escrituras? + **B** Por que razão é tão fácil substituir o que a Bíblia realmente diz por opiniões humanas acerca da Bíblia? 3. Fazer: Experimentar o Poder da Palavra. + **A** Porque é tão importante deixar que o Espírito Santo molde a nossa compreensão da Palavra de Deus? + **B** Que passos está Deus a levá-lo a dar na sua vida espiritual de maneira a poder apreciar mais a Bíblia e experimentar o seu poder transformador de maneira mais plena? **Sumário:** Quando decidimos responder à direção do Espírito Santo e humildemente aceitamos a instrução divina dada na Bíblia, a nossa vida é mudada pela graça de Deus e a nossa mente é protegida contra os enganos do diabo. #### **CICLO DA APRENDIZAGEM** ------ #### PASSO 1—MOTIVAR! **Realce da Escritura**: 2 Timóteo 3:16 e 17. **Conceito-Chave para Crescimento Espiritual**: A Bíblia é mais do que uma simples coleção de escritos inspiradores. É a Palavra de Deus, que tem autoridade e que muda vidas. Quando é lida com oração e com uma atitude humilde e disposta a aprender sob a influência do Espírito Santo, ela transforma a nossa vida. **Só para o Dinamizador**: A lição desta semana abre o estudo deste trimestre sobre o ministério do Espírito Santo. O Espírito Santo falou através da Palavra. Deus tem-Se revelado nas Escrituras. As verdades da Bíblia contam a história de Quem Deus é e de como Ele trabalha na vida dos seres humanos. Sem a ação do Espírito através da Palavra, seríamos deixados à mercê da nossa errada compreensão humana da verdade. Saliente o facto de que, sem a orientação do Espírito Santo, conhecer a vontade de Deus e compreender a Sua verdade seria uma questão de conjeturas que nos deixaria inseguros e confusos. A Palavra de Deus providencia clareza e certeza relativamente a conhecermos e entendermos a Sua vontade. **Atividade de Abertura**: Vamos supor que a irmã Joana frequenta a vossa Unidade de Ação pela primeira vez. A meio da discussão, ela levanta a mão e diz: “O Espírito Santo impressionou-me com a ideia de que estamos a viver no tempo do fim.” Você responde: “Bem, sim, irmã, certamente acreditamos nisso.” Ela continua: “Não, quero dizer que estamos mesmo perto. Foi-me mostrado que a economia vai cair, que os filhos de Deus não deveriam ter dívidas de espécie alguma e que deveríamos todos ir viver imediatamente para o campo, cultivando os nossos próprios alimentos. O fim pode acontecer dentro de dois ou três anos. Bom, eu não estou a pôr uma data para a volta de Jesus, porque sei que a Escritura diz: ‘O dia e a hora da sua vinda ninguém sabe’, mas deixem-me dizer-vos uma coisa, foi-me revelado que ela está mais próxima do que pensamos.” **PERGUNTAS PARA ANÁLISE**: 1. À luz da lição de hoje, como responderia à irmã Joana? Que ideias podem partilhar que sejam úteis para ela e para a Unidade? 2. Como é que a lição desta semana vos dá orientação na vossa resposta? Que princípios da Palavra de Deus seriam úteis para a irmã Joana? 3. Porque é que a Palavra de Deus é uma salvaguarda contra as ideias especulativas? #### 2 PASSO – ANALISAR! **Só para o Dinamizador**: Há uma diferença entre “revelação” e “inspiração”. “Revelação” tem que ver com o desvendar ou o revelar da verdade imutável de Deus. A verdade de Deus não depende, de modo algum, do pensamento nem da atividade humanos. Verdade é verdade, quer os seres humanos a aceitem e creiam nela ou não. A verdade de Deus é eterna e universal. É eterna, no sentido de que se aplica a todas as gerações em todos os tempos. É universal, no sentido de que se aplica a todas as pessoas em todas as culturas. A verdade de Deus, como a lei da gravidade, aplica-se em todos os tempos e em todos os lugares. A cultura não molda nem altera a verdade. A verdade modela e altera a cultura. “Inspiração”, por seu lado, é a ação de Deus através do Seu Espírito Santo para comunicar a Sua verdade por meio de agentes humanos. O mesmo Deus que revelou a verdade guiou os autores da Bíblia quando a escreveram. Deus não ditou cada palavra da Bíblia aos escritores bíblicos. Ele dirigiu os seus pensamentos, inspirou a sua mente e guiou os instrumentos com que escreviam. Eles escreveram nas suas próprias palavras, com vocabulários que lhes eram acessíveis, sob a inspiração do Espírito Santo, para comunicarem a infalível Palavra de Deus. ### **Comentário Bíblico** **I. O Espírito Santo: O Ensinador de Toda a Verdade** (Recapitule com a sua Unidade de Ação João 16:13.) Uma das funções do Espírito Santo é guiar-nos para a verdade. Reparem que o Espírito Santo não nos força a seguir a verdade. Não nos impõe a verdade. Não nos força a obedecer. Ele “guia-nos” em “toda a verdade”. Amavelmente, Ele leva-nos a compreender que o caminho de Deus, revelado na Sua Palavra, é o melhor. Quando o Espírito Santo nos guia, descobrimos que as palavras de Jesus – “Vim para que tenham vida, e a tenham em abundância” (João 10:10) – são verdadeiras na nossa vida. Qual é a verdade em que o Espírito Santo nos guia? É a verdade acerca de Deus. Cada doutrina da Bíblia revela alguma coisa da beleza da verdade acerca do Deus que nos ama e que deseja que estejamos salvos no Seu reino. À luz do grande conflito entre o bem e o mal, o propósito da Palavra Inspirada é revelar a verdade acerca do caráter de Deus, do Seu amor altruísta em contraste com o caráter de Satanás, de orgulho egoísta. Há, pelo menos, mais dois aspetos na orientação do Espírito ao levar-nos a toda a verdade. Primeiro, o Espírito Santo leva-nos a compreender as verdades doutrinais da Bíblia, para nos proteger dos enganos do maligno, enganos que distorcem o caráter de Deus. Jesus declara: “Santifica-os na verdade. A tua palavra é a verdade” (João 17:17). Ele também declara: “Conhecereis a verdade, e a verdade vos libertará” (João 8:32). A verdade liberta-nos dos erros teológicos que tanto têm escravizado o mundo religioso. Segundo, o Espírito Santo também nos guia à verdade acerca de nós mesmos. Quando vamos a Jesus, a nossa culpa desapareceu (I João 1:9; Rom. 8:1). Somos filhos e filhas de Deus, membros da Sua família (João 12:12; Efé. 2:19). Apesar dos nossos sentimentos pessoais de indignidade, de culpa ou de vergonha, o Espírito Santo guia-nos à verdade da Palavra. Fomos criados por Deus, redimidos por Cristo e transformados pelo Espírito Santo. A Palavra de Deus, soberana e infalível, não mente. Somos Seus filhos, sempre seguros no Seu amor e na Sua graça. **PERGUNTAS PARA ANÁLISE**: 1. Uma das funções do Espírito Santo é levar-nos, ou guiar-nos, a toda a verdade, por oposição a forçar-nos. Definam as duas palavras: guiar e forçar. Qual é a diferença entre as duas? O que revela essa diferença acerca da maneira como o Espírito nos guia? 2. A que verdade nos guia o Espírito? 3. De que nos liberta a verdade? Como é que ela faz isso? #### 3 PASSO – PRATICAR! **Só para o Dinamizador**: O mundo religioso está cheio de inúmeros supostos “Cristãos”, que têm uma experiência cristã muito superficial. Analise com a sua Unidade como evitar a armadilha da superficialidade religiosa. Falem sobre a razão pela qual tantos Cristãos passam tão pouco tempo a analisar a Palavra de Deus. **Perguntas para Reflexão:** 1. O que impede algumas pessoas de entenderem as verdades da Palavra de Deus? 2. Porque é que mesmo alguns Cristãos Adventistas não conseguem sentir a alegria de serem filhos e filhas redimidos de Deus? 3. De que maneira podemos entender melhor a Palavra e receber a bênção plena que Deus nos quer conceder? **PERGUNTA DE APLICAÇÃO**: Quais são algumas das coisas que nos impedem de ter uma experiência profunda e duradoura com Cristo através da Sua Palavra inspirada pelo Espírito? #### 4 PASSO – APLICAR! **Só para o Dinamizador**: O apóstolo Pedro resume bem os pensamentos-chave da nossa lição nestas palavras: “Sendo de novo gerados, não de semente corruptível, mas da incorruptível, pela palavra de Deus, viva, e que permanece para sempre” (I Pedro 1:23). O foco da nossa lição é duplo: Primeiro, a Palavra de Deus tem autoridade e revela a Sua verdade. Segundo, a Palavra de Deus muda a vida. Ajude cada membro da sua Unidade a ver que a verdade não é uma questão de opinião pessoal. A verdade encontra-se na Palavra de Deus. Leve os membros da sua Unidade a perceber que, ao estudarem a Palavra de Deus com um coração submisso e com oração, a sua vida será completamente transformada. **Atividade de Encerramento**: 1. Convide cada membro da Unidade a voltar-se para a pessoa que tem ao seu lado e a partilhar o pensamento-chave da lição de hoje que vai levar para casa. 2. Depois dessa partilha, convide os membros a partilharem com o grupo todo a coisa mais importante para a sua vida espiritual que descobriram pessoalmente na lição desta semana.
Java
# Strict mode When you create a new workspace or an application you have an option to create them in a strict mode using the `--strict` flag. Enabling this flag initializes your new workspace or application with a few new settings that improve maintainability, help you catch bugs ahead of time. Additionally, applications that use these stricter settings are easier to statically analyze, which can help the `ng update` command refactor code more safely and precisely when you are updating to future versions of Angular. Specifically, the `strict` flag does the following: * Enables [`strict` mode in TypeScript](https://www.typescriptlang.org/tsconfig#strict), as well as other strictness flags recommended by the TypeScript team. Specifically, `forceConsistentCasingInFileNames`, `noImplicitReturns`, `noFallthroughCasesInSwitch`. * Turns on strict Angular compiler flags [`strictTemplates`](guide/angular-compiler-options#stricttemplates), [`strictInjectionParameters`](guide/angular-compiler-options#strictinjectionparameters) and [`strictInputAccessModifiers`](guide/template-typecheck#troubleshooting-template-errors). * [Bundle size budgets](guide/build#configuring-size-budgets) have been reduced by ~75%. You can apply these settings at the workspace and project level. To create a new workspace and application using the strict mode, run the following command: <code-example language="sh" class="code-shell"> ng new [project-name] --strict </code-example> To create a new application in the strict mode within an existing non-strict workspace, run the following command: <code-example language="sh" class="code-shell"> ng generate application [project-name] --strict </code-example>
Java
pre { display: none; } table { font-family: inherit; font-size: inherit; border: inherit; } #groupparts { width: 100% !important; margin-left: auto; margin-right: auto; } #groupparts th { width: auto !important; } table.pgrouptable { background-color: inherit !important; } table.pgrouptable td { background-color: inherit !important; border: 0px; } table.pgrouptable thead th { background-color: inherit !important; border: 0px; }
Java
using System.IO; using Aspose.Cells; using System; namespace Aspose.Cells.Examples.CSharp.Data.Handling { public class AddingDataToCells { public static void Run() { // ExStart:1 // The path to the documents directory. string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); // Create directory if it is not already present. bool IsExists = System.IO.Directory.Exists(dataDir); if (!IsExists) System.IO.Directory.CreateDirectory(dataDir); // Instantiating a Workbook object Workbook workbook = new Workbook(); // Obtaining the reference of the first worksheet Worksheet worksheet = workbook.Worksheets[0]; // Adding a string value to the cell worksheet.Cells["A1"].PutValue("Hello World"); // Adding a double value to the cell worksheet.Cells["A2"].PutValue(20.5); // Adding an integer value to the cell worksheet.Cells["A3"].PutValue(15); // Adding a boolean value to the cell worksheet.Cells["A4"].PutValue(true); // Adding a date/time value to the cell worksheet.Cells["A5"].PutValue(DateTime.Now); // Setting the display format of the date Style style = worksheet.Cells["A5"].GetStyle(); style.Number = 15; worksheet.Cells["A5"].SetStyle(style); // Saving the Excel file workbook.Save(dataDir + "output.out.xls"); // ExEnd:1 } } }
Java
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * LICENSE: * 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/>. * * * @categories Games/Entertainment, Systems Administration * @package Bright Game Panel * @author warhawk3407 <[email protected]> @NOSPAM * @copyleft 2013 * @license GNU General Public License version 3.0 (GPLv3) * @version (Release 0) DEVELOPER BETA 8 * @link http://www.bgpanel.net/ */ $page = 'boxgamefile'; $tab = 3; $isSummary = TRUE; ### if (isset($_GET['id']) && is_numeric($_GET['id'])) { $boxid = $_GET['id']; } else { exit('Error: BoxID error.'); } ### $return = 'boxgamefile.php?id='.urlencode($boxid); require("../configuration.php"); require("./include.php"); require_once("../includes/func.ssh2.inc.php"); require_once("../libs/phpseclib/Crypt/AES.php"); require_once("../libs/gameinstaller/gameinstaller.php"); $title = T_('Box Game File Repositories'); if (query_numrows( "SELECT `name` FROM `".DBPREFIX."box` WHERE `boxid` = '".$boxid."'" ) == 0) { exit('Error: BoxID is invalid.'); } $rows = query_fetch_assoc( "SELECT * FROM `".DBPREFIX."box` WHERE `boxid` = '".$boxid."' LIMIT 1" ); $games = mysql_query( "SELECT * FROM `".DBPREFIX."game` ORDER BY `game`" ); $aes = new Crypt_AES(); $aes->setKeyLength(256); $aes->setKey(CRYPT_KEY); // Get SSH2 Object OR ERROR String $ssh = newNetSSH2($rows['ip'], $rows['sshport'], $rows['login'], $aes->decrypt($rows['password'])); if (!is_object($ssh)) { $_SESSION['msg1'] = T_('Connection Error!'); $_SESSION['msg2'] = $ssh; $_SESSION['msg-type'] = 'error'; } $gameInstaller = new GameInstaller( $ssh ); include("./bootstrap/header.php"); /** * Notifications */ include("./bootstrap/notifications.php"); ?> <ul class="nav nav-tabs"> <li><a href="boxsummary.php?id=<?php echo $boxid; ?>"><?php echo T_('Summary'); ?></a></li> <li><a href="boxprofile.php?id=<?php echo $boxid; ?>"><?php echo T_('Profile'); ?></a></li> <li><a href="boxip.php?id=<?php echo $boxid; ?>"><?php echo T_('IP Addresses'); ?></a></li> <li><a href="boxserver.php?id=<?php echo $boxid; ?>"><?php echo T_('Servers'); ?></a></li> <li><a href="boxchart.php?id=<?php echo $boxid; ?>"><?php echo T_('Charts'); ?></a></li> <li class="active"><a href="boxgamefile.php?id=<?php echo $boxid; ?>"><?php echo T_('Game File Repositories'); ?></a></li> <li><a href="boxlog.php?id=<?php echo $boxid; ?>"><?php echo T_('Activity Logs'); ?></a></li> </ul> <div class="well"> <table id="gamefiles" class="zebra-striped"> <thead> <tr> <th><?php echo T_('Game'); ?></th> <th><?php echo T_('Cache Directory'); ?></th> <th><?php echo T_('Disk Usage'); ?></th> <th><?php echo T_('Last Modification'); ?></th> <th><?php echo T_('Status'); ?></th> <th></th> <th></th> </tr> </thead> <tbody> <?php while ($rowsGames = mysql_fetch_assoc($games)) { $repoCacheInfo = $gameInstaller->getCacheInfo( $rowsGames['cachedir'] ); $gameExists = $gameInstaller->gameExists( $rowsGames['game'] ); ?> <tr> <td><?php echo htmlspecialchars($rowsGames['game'], ENT_QUOTES); ?></td> <td><?php echo htmlspecialchars($rowsGames['cachedir'], ENT_QUOTES); ?></td> <td><?php if ($repoCacheInfo != FALSE) { echo htmlspecialchars($repoCacheInfo['size'], ENT_QUOTES); } else { echo T_('None'); } ?></td> <td><?php if ($repoCacheInfo != FALSE) { echo @date('l | F j, Y | H:i', $repoCacheInfo['mtime']); } else { echo T_('Never'); } ?></td> <td><?php if ($gameExists == FALSE) { echo "<span class=\"label\">".T_('Game Not Supported')."</span>"; } else if ($repoCacheInfo == FALSE) { echo "<span class=\"label label-warning\">".T_('No Cache')."</span>"; } else if ($repoCacheInfo['status'] == 'Ready') { echo "<span class=\"label label-success\">Ready</span>"; } else if ($repoCacheInfo['status'] == 'Aborted') { echo "<span class=\"label label-important\">Aborted</span>"; } else { echo "<span class=\"label label-info\">".htmlspecialchars($repoCacheInfo['status'], ENT_QUOTES)."</span>"; } ?></td> <td> <!-- Actions --> <div style="text-align: center;"> <?php if ($gameExists) { if ( ($repoCacheInfo == FALSE) || ($repoCacheInfo['status'] == 'Aborted') ) { // No repo OR repo not ready ?> <a class="btn btn-small" href="#" onclick="doRepoAction('<?php echo $boxid; ?>', '<?php echo $rowsGames['gameid']; ?>', 'makeRepo', '<?php echo T_('create a new cache repository for'); ?>', '<?php echo htmlspecialchars($rowsGames['game'], ENT_QUOTES); ?>')"> <i class="icon-download-alt <?php echo formatIcon(); ?>"></i> </a> <?php } if ( ($repoCacheInfo != FALSE) && ($repoCacheInfo['status'] != 'Aborted') && ($repoCacheInfo['status'] != 'Ready') ) { // Operation in progress ?> <a class="btn btn-small" href="#" onclick="doRepoAction('<?php echo $boxid; ?>', '<?php echo $rowsGames['gameid']; ?>', 'abortOperation', '<?php echo T_('abort current operation for repository'); ?>', '<?php echo htmlspecialchars($rowsGames['game'], ENT_QUOTES); ?>')"> <i class="icon-stop <?php echo formatIcon(); ?>"></i> </a> <?php } if ( $repoCacheInfo['status'] == 'Ready') { // Cache Ready ?> <a class="btn btn-small" href="#" onclick="doRepoAction('<?php echo $boxid; ?>', '<?php echo $rowsGames['gameid']; ?>', 'makeRepo', '<?php echo T_('refresh repository contents for'); ?>', '<?php echo htmlspecialchars($rowsGames['game'], ENT_QUOTES); ?>')"> <i class="icon-repeat <?php echo formatIcon(); ?>"></i> </a> <?php } } ?> </div> </td> <td> <!-- Drop Action --> <div style="text-align: center;"> <?php if ($gameExists) { if ( ($repoCacheInfo != FALSE) && ( ($repoCacheInfo['status'] == 'Aborted') || ($repoCacheInfo['status'] == 'Ready') ) ) { // Repo exists AND no operation in progress ?> <a class="btn btn-small" href="#" onclick="doRepoAction('<?php echo $boxid; ?>', '<?php echo $rowsGames['gameid']; ?>', 'deleteRepo', '<?php echo T_('remove cache repository for'); ?>', '<?php echo htmlspecialchars($rowsGames['game'], ENT_QUOTES); ?>')"> <i class="icon-trash <?php echo formatIcon(); ?>"></i> </a> <?php } } ?> </div> </td> </tr> <?php } ?> </tbody> </table> <?php if (mysql_num_rows($games) != 0) { ?> <script type="text/javascript"> $(document).ready(function() { $("#gamefiles").tablesorter({ headers: { 5: { sorter: false }, 6: { sorter: false } }, sortList: [[0,0]] }); }); <!-- --> function doRepoAction(boxid, gameid, task, action, game) { if (confirm('<?php echo T_('Are you sure you want to'); ?> '+action+' '+game+' ?')) { window.location='boxprocess.php?boxid='+boxid+'&gameid='+gameid+'&task='+task; } } </script> <?php } unset($games); ?> </div> <?php include("./bootstrap/footer.php"); ?>
Java
// // FKFlickrAuthOauthGetAccessToken.h // FlickrKit // // Generated by FKAPIBuilder on 19 Sep, 2014 at 10:49. // Copyright (c) 2013 DevedUp Ltd. All rights reserved. http://www.devedup.com // // DO NOT MODIFY THIS FILE - IT IS MACHINE GENERATED #import "FKFlickrAPIMethod.h" typedef enum { FKFlickrAuthOauthGetAccessTokenError_InvalidSignature = 96, /* The passed signature was invalid. */ FKFlickrAuthOauthGetAccessTokenError_MissingSignature = 97, /* The call required signing but no signature was sent. */ FKFlickrAuthOauthGetAccessTokenError_InvalidAPIKey = 100, /* The API key passed was not valid or has expired. */ FKFlickrAuthOauthGetAccessTokenError_ServiceCurrentlyUnavailable = 105, /* The requested service is temporarily unavailable. */ FKFlickrAuthOauthGetAccessTokenError_WriteOperationFailed = 106, /* The requested operation failed due to a temporary issue. */ FKFlickrAuthOauthGetAccessTokenError_FormatXXXNotFound = 111, /* The requested response format was not found. */ FKFlickrAuthOauthGetAccessTokenError_MethodXXXNotFound = 112, /* The requested method was not found. */ FKFlickrAuthOauthGetAccessTokenError_InvalidSOAPEnvelope = 114, /* The SOAP envelope send in the request could not be parsed. */ FKFlickrAuthOauthGetAccessTokenError_InvalidXMLRPCMethodCall = 115, /* The XML-RPC request document could not be parsed. */ FKFlickrAuthOauthGetAccessTokenError_BadURLFound = 116, /* One or more arguments contained a URL that has been used for abuse on Flickr. */ } FKFlickrAuthOauthGetAccessTokenError; /* Exchange an auth token from the old Authentication API, to an OAuth access token. Calling this method will delete the auth token used to make the request. Response: <auth> <access_token oauth_token="72157607082540144-8d5d7ea7696629bf" oauth_token_secret="f38bf58b2d95bc8b" /> </auth> */ @interface FKFlickrAuthOauthGetAccessToken : NSObject <FKFlickrAPIMethod> @end
Java
/** * * \file * * \brief This module contains NMC1000 SPI protocol bus APIs implementation. * * Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. * It is your responsibility to comply with third party license terms applicable * to your use of third party software (including open source software) that * may accompany Microchip software. * * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE FULLEST EXTENT * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY, * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE. * * \asf_license_stop * */ #ifndef _NMSPI_H_ #define _NMSPI_H_ #include "common/include/nm_common.h" #ifdef __cplusplus extern "C" { #endif /** * @fn nm_spi_init * @brief Initialize the SPI * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_init(void); /** * @fn nm_spi_reset * @brief reset the SPI * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_reset(void); /** * @fn nm_spi_deinit * @brief DeInitialize the SPI * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_deinit(void); /** * @fn nm_spi_read_reg * @brief Read register * @param [in] u32Addr * Register address * @return Register value */ uint32 nm_spi_read_reg(uint32 u32Addr); /** * @fn nm_spi_read_reg_with_ret * @brief Read register with error code return * @param [in] u32Addr * Register address * @param [out] pu32RetVal * Pointer to u32 variable used to return the read value * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_read_reg_with_ret(uint32 u32Addr, uint32* pu32RetVal); /** * @fn nm_spi_write_reg * @brief write register * @param [in] u32Addr * Register address * @param [in] u32Val * Value to be written to the register * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_write_reg(uint32 u32Addr, uint32 u32Val); /** * @fn nm_spi_read_block * @brief Read block of data * @param [in] u32Addr * Start address * @param [out] puBuf * Pointer to a buffer used to return the read data * @param [in] u16Sz * Number of bytes to read. The buffer size must be >= u16Sz * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_read_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz); /** * @fn nm_spi_write_block * @brief Write block of data * @param [in] u32Addr * Start address * @param [in] puBuf * Pointer to the buffer holding the data to be written * @param [in] u16Sz * Number of bytes to write. The buffer size must be >= u16Sz * @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure */ sint8 nm_spi_write_block(uint32 u32Addr, uint8 *puBuf, uint16 u16Sz); #ifdef __cplusplus } #endif #endif /* _NMSPI_H_ */
Java
/*plugin styles*/ .visualize { border: 1px solid #ccc; position: relative; background: #fafafa; margin:0 auto 30px auto; } .visualize canvas { position: absolute; } .visualize ul, .visualize li { margin: 0; padding: 0; } /*table title, key elements*/ .visualize .visualize-info { padding: 3px 5px; background: #fafafa; border: 1px solid #ccc; position: absolute; top: -20px; right: 10px; opacity: .8; } .visualize .visualize-title { display: block; color: #333; margin-bottom: 3px; font-size: 1.1em; } .visualize ul.visualize-key { list-style: none; } .visualize ul.visualize-key li { list-style: none; float: left; margin-right: 10px; padding-left: 10px; position: relative; background:none; } .visualize ul.visualize-key .visualize-key-color { width: 6px; height: 6px; left: 0; position: absolute; top: 50%; margin-top: -3px; } .visualize ul.visualize-key .visualize-key-label { color: #000; } /*pie labels*/ .visualize-pie .visualize-labels { list-style: none; } .visualize-pie .visualize-label-pos, .visualize-pie .visualize-label { position: absolute; margin: 0; padding:0; } .visualize-pie .visualize-label { display: block; color: #fff; font-weight: bold; font-size: 1em; } .visualize-pie-outside .visualize-label { color: #000; font-weight: normal; } /*line,bar, area labels*/ .visualize-labels-x,.visualize-labels-y { position: absolute; left: 0; top: 0; list-style: none; } .visualize-labels-x li, .visualize-labels-y li { position: absolute; bottom: 0; background:none; } .visualize-labels-x li span.label, .visualize-labels-y li span.label { position: absolute; color: #555; } .visualize-labels-x li span.line, .visualize-labels-y li span.line { position: absolute; border: 0 solid #ccc; } .visualize-labels-x li { height: 100%; } .visualize-labels-x li span.label { top: 100%; margin-top: 5px; } .visualize-labels-x li span.line { border-left-width: 1px; height: 100%; display: block; } .visualize-labels-x li span.line { border: 0;} /*hide vertical lines on area, line, bar*/ .visualize-labels-y li { width: 100%; } .visualize-labels-y li span.label { right: 100%; margin-right: 5px; display: block; width: 100px; text-align: right; } .visualize-labels-y li span.line { border-top-width: 1px; width: 100%; } .visualize-bar .visualize-labels-x li span.label { width: 100%; text-align: center; } .ie8 .visualize-interaction-tracker { margin-top:0 !important; } /*tooltips*/ .visualize .chart_tooltip { padding:6px 7px; background:#000; background:url(../img/jquery/visualize_tooltip.png) 0 0 repeat; margin:3px 4px 0; -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; color:#fff; font-size:10px; line-height:normal; }
Java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Collections.Generic; using System.Text.Json; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { public partial class ShopifySource : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); if (Optional.IsDefined(Query)) { writer.WritePropertyName("query"); writer.WriteObjectValue(Query); } if (Optional.IsDefined(QueryTimeout)) { writer.WritePropertyName("queryTimeout"); writer.WriteObjectValue(QueryTimeout); } writer.WritePropertyName("type"); writer.WriteStringValue(Type); if (Optional.IsDefined(SourceRetryCount)) { writer.WritePropertyName("sourceRetryCount"); writer.WriteObjectValue(SourceRetryCount); } if (Optional.IsDefined(SourceRetryWait)) { writer.WritePropertyName("sourceRetryWait"); writer.WriteObjectValue(SourceRetryWait); } if (Optional.IsDefined(MaxConcurrentConnections)) { writer.WritePropertyName("maxConcurrentConnections"); writer.WriteObjectValue(MaxConcurrentConnections); } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); writer.WriteObjectValue(item.Value); } writer.WriteEndObject(); } internal static ShopifySource DeserializeShopifySource(JsonElement element) { Optional<object> query = default; Optional<object> queryTimeout = default; string type = default; Optional<object> sourceRetryCount = default; Optional<object> sourceRetryWait = default; Optional<object> maxConcurrentConnections = default; IDictionary<string, object> additionalProperties = default; Dictionary<string, object> additionalPropertiesDictionary = new Dictionary<string, object>(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("query")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } query = property.Value.GetObject(); continue; } if (property.NameEquals("queryTimeout")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } queryTimeout = property.Value.GetObject(); continue; } if (property.NameEquals("type")) { type = property.Value.GetString(); continue; } if (property.NameEquals("sourceRetryCount")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } sourceRetryCount = property.Value.GetObject(); continue; } if (property.NameEquals("sourceRetryWait")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } sourceRetryWait = property.Value.GetObject(); continue; } if (property.NameEquals("maxConcurrentConnections")) { if (property.Value.ValueKind == JsonValueKind.Null) { property.ThrowNonNullablePropertyIsNull(); continue; } maxConcurrentConnections = property.Value.GetObject(); continue; } additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; return new ShopifySource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, query.Value); } } }
Java
// This file has been autogenerated. exports.setEnvironment = function() { process.env['AZURE_SUBSCRIPTION_ID'] = 'e0b81f36-36ba-44f7-b550-7c9344a35893'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub/eventHubEndpoints/events/ConsumerGroups/testconsumergroup?api-version=2017-07-01') .reply(200, "{\"tags\":null,\"id\":\"/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub\",\"name\":\"testconsumergroup\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '173', 'content-type': 'application/json; charset=utf-8', expires: '-1', server: 'Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14953', 'x-ms-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-correlation-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-routing-request-id': 'WESTUS:20170502T195224Z:be4cc550-e523-4bc7-898a-9c2a5aa64725', 'strict-transport-security': 'max-age=31536000; includeSubDomains', date: 'Tue, 02 May 2017 19:52:23 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .get('/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub/eventHubEndpoints/events/ConsumerGroups/testconsumergroup?api-version=2017-07-01') .reply(200, "{\"tags\":null,\"id\":\"/subscriptions/e0b81f36-36ba-44f7-b550-7c9344a35893/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub\",\"name\":\"testconsumergroup\"}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '173', 'content-type': 'application/json; charset=utf-8', expires: '-1', server: 'Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14953', 'x-ms-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-correlation-request-id': 'be4cc550-e523-4bc7-898a-9c2a5aa64725', 'x-ms-routing-request-id': 'WESTUS:20170502T195224Z:be4cc550-e523-4bc7-898a-9c2a5aa64725', 'strict-transport-security': 'max-age=31536000; includeSubDomains', date: 'Tue, 02 May 2017 19:52:23 GMT', connection: 'close' }); return result; }]];
Java