answer
stringlengths 15
1.25M
|
|---|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Hisabo – Borker dot co</title>
<meta name="description" content="A note about my involvement with Hisabo">
<meta name="keywords" content="Hisabo">
<link rel="canonical" href="http://borker.co/project-hisabo/">
<!-- Twitter Cards -->
<meta name="twitter:title" content="Hisabo">
<meta name="<TwitterConsumerkey>" content="A note about my involvement with Hisabo">
<meta name="twitter:site" content="@borker">
<meta name="twitter:creator" content="@borker">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://borker.co/assets/img/logo-new.png">
<!-- Open Graph -->
<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="Hisabo">
<meta property="og:description" content="A note about my involvement with Hisabo">
<meta property="og:url" content="http://borker.co/project-hisabo/">
<meta property="og:site_name" content="Borker dot co">
<meta property="og:image" content="http://borker.co/assets/img/logo-new.png">
<!-- Handheld -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicons -->
<link rel="<API key>" sizes="57x57" href="http://borker.co/assets/img/favicon/<API key>.png">
<link rel="<API key>" sizes="114x114" href="http://borker.co/assets/img/favicon/<API key>.png">
<link rel="<API key>" sizes="72x72" href="http://borker.co/assets/img/favicon/<API key>.png">
<link rel="<API key>" sizes="144x144" href="http://borker.co/assets/img/favicon/<API key>.png">
<link rel="icon" type="image/png" href="http://borker.co/assets/img/favicon/favicon.png">
<link rel="shortcut icon" href="http://borker.co/assets/img/favicon/favicon.ico">
<!-- Feed -->
<link rel="alternate" type="application/rss+xml" title="Borker dot co" href="http://borker.co/feed.xml" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="http://borker.co/assets/css/main.css">
<script>
(function(i,s,o,g,r,a,m){i['<API key>']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https:
ga('create', 'UA-86377416-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<nav class="nav">
<ul class="list">
<li class="item"><a class="link" href="http://borker.co/" >Home</a></li>
<li class="item"><a class="link" href="http://borker.co/projects" >Projects</a></li>
<li class="item"><a class="link" href="http://borker.co/about" >About</a></li>
<li class="item"><a class="link" href="http://borker.co/writing" >Writing</a></li>
<li class="item"><a class="link" href="http://borker.co/thoughts" >Thoughts</a></li>
<li class="item"><a class="link" href="http://borker.co/design" >Design</a></li>
</ul>
</nav>
<div class="wrapper">
<div class="title">
<h1>Hisabo</h1>
<h4>23 Jul 2015</h4>
</div>
<div class="article">
<h2 id="hisabo">Hisabo</h2>
<p>I founded and ran <a href="http:
<p>Through Hisabo, we sold hard to find or unique teas to a list of email subscribers (similar to Garagiste for wines).</p>
<p>We sourced each tea through a network of connections in Japan, Taiwan, China and Nepal.</p>
<p>I stopped working on Hisabo to focus exclusively on Shortlist.</p>
</div>
</div>
<div class="footer">
Borker dot co © 2019 <a href="http://borker.co/feed.xml" target="_blank"><i class="fa fa-fw fa-feed"></i></a>
</div>
<script src="http://borker.co/assets/js/jquery-1.12.2.min.js"></script>
<script src="http://borker.co/assets/js/jquery.goup.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.goup({
trigger: 500,
bottomOffset: 10,
locationOffset: 20,
containerRadius: 0,
containerColor: '#fff',
arrowColor: '#000',
goupSpeed: 'normal'
});
});
</script>
<!-- Asynchronous Google Analytics snippet -->
<script>
var _gaq = _gaq || [];
var pluginUrl =
'
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-86377416-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https:
var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
|
title: <API key> - Rules
layout: doc
<!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. -->
# Require or disallow padding lines between statements (<API key>)
(fixable) The `--fix` option on the [command line](../user-guide/<API key>#fix) can automatically fix some of the problems reported by this rule.
This rule requires or disallows blank lines between the given 2 kinds of statements.
Properly blank lines help developers to understand the code.
For example, the following configuration requires a blank line between a variable declaration and a `return` statement.
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: "var", next: "return" }
]*/
function foo() {
var a = 1;
return a;
}
## Rule Details
This rule does nothing if no configuration.
A configuration is an object which has 3 properties; `blankLine`, `prev` and `next`. For example, `{ blankLine: "always", prev: "var", next: "return" }` is meaning "it requires one or more blank lines between a variable declaration and a `return` statement."
You can supply any number of configurations. If an statement pair matches multiple configurations, the last matched configuration will be used.
json
{
"<API key>": [
"error",
{ "blankLine": LINEBREAK_TYPE, "prev": STATEMENT_TYPE, "next": STATEMENT_TYPE },
{ "blankLine": LINEBREAK_TYPE, "prev": STATEMENT_TYPE, "next": STATEMENT_TYPE },
{ "blankLine": LINEBREAK_TYPE, "prev": STATEMENT_TYPE, "next": STATEMENT_TYPE },
{ "blankLine": LINEBREAK_TYPE, "prev": STATEMENT_TYPE, "next": STATEMENT_TYPE },
]
}
- `LINEBREAK_TYPE` is one of the following.
- `"any"` just ignores the statement pair.
- `"never"` disallows blank lines.
- `"always"` requires one or more blank lines. Note it does not count lines that comments exist as blank lines.
- `STATEMENT_TYPE` is one of the following, or an array of the following.
- `"*"` is wildcard. This matches any statements.
- `"block"` is lonely blocks.
- `"block-like"` is block like statements. This matches statements that the last token is the closing brace of blocks; e.g. `{ }`, `if (a) { }`, and `while (a) { }`.
- `"break"` is `break` statements.
- `"case"` is `case` labels.
- `"cjs-export"` is `export` statements of CommonJS; e.g. `module.exports = 0`, `module.exports.foo = 1`, and `exports.foo = 2`. This is the special cases of assignment.
- `"cjs-import"` is `import` statements of CommonJS; e.g. `const foo = require("foo")`. This is the special cases of variable declarations.
- `"class"` is `class` declarations.
- `"const"` is `const` variable declarations.
- `"continue"` is `continue` statements.
- `"debugger"` is `debugger` statements.
- `"default"` is `default` labels.
- `"directive"` is directive prologues. This matches directives; e.g. `"use strict"`.
- `"do"` is `do-while` statements. This matches all statements that the first token is `do` keyword.
- `"empty"` is empty statements.
- `"export"` is `export` declarations.
- `"expression"` is expression statements.
- `"for"` is `for` loop families. This matches all statements that the first token is `for` keyword.
- `"function"` is function declarations.
- `"if"` is `if` statements.
- `"import"` is `import` declarations.
- `"let"` is `let` variable declarations.
- `"<API key>"` is block like statements. This is the same as `block-like` type, but only the block is multiline.
- `"return"` is `return` statements.
- `"switch"` is `switch` statements.
- `"throw"` is `throw` statements.
- `"try"` is `try` statements.
- `"var"` is `var` variable declarations.
- `"while"` is `while` loop statements.
- `"with"` is `with` statements.
## Examples
This configuration would require blank lines before all `return` statements, like the [<API key>] rule.
Examples of **incorrect** code for the `[{ blankLine: "always", prev: "*", next: "return" }]` configuration:
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: "*", next: "return" }
]*/
function foo() {
bar();
return;
}
Examples of **correct** code for the `[{ blankLine: "always", prev: "*", next: "return" }]` configuration:
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: "*", next: "return" }
]*/
function foo() {
bar();
return;
}
function foo() {
return;
}
-
This configuration would require blank lines after every sequence of variable declarations, like the [newline-after-var] rule.
Examples of **incorrect** code for the `[{ blankLine: "always", prev: ["const", "let", "var"], next: "*"}, { blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]}]` configuration:
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: ["const", "let", "var"], next: "*"},
{ blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]}
]*/
function foo() {
var a = 0;
bar();
}
function foo() {
let a = 0;
bar();
}
function foo() {
const a = 0;
bar();
}
Examples of **correct** code for the `[{ blankLine: "always", prev: ["const", "let", "var"], next: "*"}, { blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]}]` configuration:
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: ["const", "let", "var"], next: "*"},
{ blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"]}
]*/
function foo() {
var a = 0;
var b = 0;
bar();
}
function foo() {
let a = 0;
const b = 0;
bar();
}
function foo() {
const a = 0;
const b = 0;
bar();
}
-
This configuration would require blank lines after all directive prologues, like the [<API key>] rule.
Examples of **incorrect** code for the `[{ blankLine: "always", prev: "directive", next: "*" }, { blankLine: "any", prev: "directive", next: "directive" }]` configuration:
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: "directive", next: "*" },
{ blankLine: "any", prev: "directive", next: "directive" }
]*/
"use strict";
foo();
Examples of **correct** code for the `[{ blankLine: "always", prev: "directive", next: "*" }, { blankLine: "any", prev: "directive", next: "directive" }]` configuration:
js
/*eslint <API key>: [
"error",
{ blankLine: "always", prev: "directive", next: "*" },
{ blankLine: "any", prev: "directive", next: "directive" }
]*/
"use strict";
"use asm";
foo();
## Compatibility
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
- **JSCS:** [<API key>]
## When Not To Use It
If you don't want to notify warnings about linebreaks, then it's safe to disable this rule.
[<API key>]: http://eslint.org/docs/rules/<API key>
[newline-after-var]: http://eslint.org/docs/rules/newline-after-var
[<API key>]: http://eslint.org/docs/rules/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
[<API key>]: http://jscs.info/rule/<API key>
## Version
This rule was introduced in ESLint 4.0.0-beta.0.
## Resources
* [Rule source](https://github.com/eslint/eslint/tree/master/lib/rules/<API key>.js)
* [Documentation source](https://github.com/eslint/eslint/tree/master/docs/rules/<API key>.md)
|
[;
//Express example.js
app.configure(function() {
app.use(express.logger(logger));
});
## Screenshort
[](http://demijs.enytc.com)
## Contributing
Please submit all issues and pull requests to the [chrisenytc/demi-logger](http://github.com/chrisenytc/demi-logger) repository!
## Support
If you have any problem or suggestion please open an issue [here](https://github.com/chrisenytc/demi-logger/issues).
The MIT License
Copyright (c) 2014 Christopher EnyTC
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.
|
## Prerequisites
[Node.js](http://nodejs.org/) >= 6 must be installed.
## Installation
- Running `npm install` in the component's root directory will install everything you need for development.
## Demo Development Server
- `npm start` will run a development server with the component's demo app at [http:
## Running Tests
- `npm test` will run the tests once.
- `npm run test:coverage` will run the tests and produce a coverage report in `coverage/`.
- `npm run test:watch` will run the tests on every change.
## Building
- `npm run build` will build the component for publishing to npm and also bundle the demo app.
- `npm run clean` will delete built resources.
|
<?php
declare(strict_types=1);
namespace <API key>\Fixture\C;
class FixtureC846
{
public function __construct(FixtureC845 $dependency)
{
}
}
|
var five = require("../lib/johnny-five.js");
var board = new five.Board();
board.on("ready", function() {
var gyro = new five.Gyroscope({
pins: ["I0", "I1"],
freq: 200,
extent: 4
});
gyro.on("acceleration", function(data) {
console.log(data.position);
});
});
|
// "horizontalaxis" : {
// "id" : STRING, "type" : DATATYPE(number), "length" : RELLEN(1.0), "base" : POINT(-1,1), "anchor" : DOUBLE(-1), "position" : POINT(0,0),
// "min" : DATAVALUEORAUTO(auto), "max" : DATAVALUEORAUTO(auto), "minposition" : RELPOS(-1.0), "maxposition" : RELPOS(1.0), "color" : COLOR(black), "linewidth" : INTEGER(1),
// "tickmin" : INTEGER(-3), "tickmax" : INTEGER(3), "tickcolor" : COLOR(black),
// "labels" : {
// "format" : STRING, "start" : DATAVALUE(0), "angle" : DOUBLE(0), "position" : POINT,
// "anchor" : POINT, "color" : COLOR(black), "spacing" : STRING, "densityfactor" : DOUBLE(1.0),
// "label" : [
// { "format" : STRING, "start" : STRING, "angle" : DOUBLE, "position" : POINT, "anchor" : POINT, "spacing" : STRING, "densityfactor" : DOUBLE },
// { "format" : STRING, "start" : STRING, "angle" : DOUBLE, "position" : POINT, "anchor" : POINT, "spacing" : STRING, "densityfactor" : DOUBLE },
// "title" : { "base" : DOUBLE(0), "anchor" : POINT, "position" : POINT, "angle" : DOUBLE(0), "text" : "TITLETEXT", "font": STRING },
// "grid" : { "color" : COLOR(0xeeeeee), "visible" : BOOLEAN(false) },
// "pan" : { "allowed" : BOOLEAN(yes), "min" : DATAVALUE, "max" : DATAVALUE },
// "zoom" : { "allowed" : BOOLEAN(yes), "min" : DATAMEASURE, "max" : DATAMEASURE, "anchor" : DATAVALUE },
// "binding" : { "id" : STRING!, "min" : DATAVALUE!, "max" : DATAVALUE! }
// "visible" : BOOLEAN(true)
// these are needed so that their .parseJSON methods will be defined when called below:
require('./labeler.js');
require('./axis_title.js');
require('./grid.js');
require('./pan.js');
require('./zoom.js');
var Axis = require('../../core/axis.js'),
pF = require('../../util/parsingFunctions.js'),
vF = require('../../util/validationFunctions.js'),
uF = require('../../util/utilityFunctions.js');
var parseLabels = function (json, axis) {
var spacings,
labelers = axis.labelers(),
Labeler = require('../../core/labeler.js'),
DataValue = require('../../core/data_value.js'),
i;
spacings = [];
if (json !== undefined) {
if (json.spacing !== undefined) {
spacings = vF.typeOf(json.spacing) === 'array' ? json.spacing : [ json.spacing ];
}
}
if (spacings.length > 0) {
// If there was a spacing attr on the <labels> tag, create a new labeler for
// each spacing present in it, using the other values from the <labels> tag
for (i = 0; i < spacings.length; ++i) {
labelers.add(Labeler.parseJSON(json, axis, undefined, spacings[i]));
}
} else if (json !== undefined && json.label !== undefined && json.label.length > 0) {
// If there are <label> tags, parse the <labels> tag to get default values
var defaults = Labeler.parseJSON(json, axis, undefined, null);
// And loop over each <label> tag, creating labelers for each, splitting multiple
// spacings on the same <label> tag into multiple labelers:
json.label.forEach(function(e) {
var spacing = [];
if (e.spacing !== undefined) {
spacing = vF.typeOf(e.spacing) === 'array' ? e.spacing : [ e.spacing ];
}
spacing.forEach(function(s) {
labelers.add( Labeler.parseJSON(e, axis, defaults, s) );
});
});
} else {
// Otherwise create labelers using the default spacing, with the other values
// from the <labels> tag
var defaultValues = (uF.<API key>()).horizontalaxis.labels;
var defaultSpacings = axis.type() === DataValue.NUMBER ?
defaultValues.<API key> :
defaultValues.<API key>;
for (i = 0; i < defaultSpacings.length; ++i) {
labelers.add(Labeler.parseJSON(json, axis, undefined, defaultSpacings[i]));
}
}
};
Axis.parseJSON = function (json, orientation, messageHandler, multigraph) {
var DataValue = require('../../core/data_value.js'),
Point = require('../../math/point.js'),
RGBColor = require('../../math/rgb_color.js'),
Displacement = require('../../math/displacement.js'),
AxisTitle = require('../../core/axis_title.js'),
Grid = require('../../core/grid.js'),
Pan = require('../../core/pan.js'),
Zoom = require('../../core/zoom.js'),
AxisBinding = require('../../core/axis_binding.js'),
axis = new Axis(orientation),
parseAttribute = pF.parseAttribute,
parseDisplacement = Displacement.parse,
parseJSONPoint = function(p) { return new Point(p[0], p[1]); },
parseRGBColor = RGBColor.parse,
attr, child,
value;
if (json) {
parseAttribute(json.id, axis.id);
parseAttribute(json.type, axis.type, DataValue.parseType);
parseAttribute(json.length, axis.length, parseDisplacement);
// The following provides support for the deprecated "positionbase" axis attribute;
// MUGL files should use the "base" attribute instead. When we're ready to remove
// support for the deprecated attribute, delete this block of code:
(function () {
var positionbase = json.positionbase;
if (positionbase) {
messageHandler.warning('Use of deprecated axis attribute "positionbase"; use "base" attribute instead');
if ((positionbase === "left") || (positionbase === "bottom")) {
axis.base(new Point(-1, -1));
} else if (positionbase === "right") {
axis.base(new Point(1, -1));
} else if (positionbase === "top") {
axis.base(new Point(-1, 1));
}
}
}());
// End of code to delete when removing support for deprecated "positionbase"
// attribute.
attr = json.position;
if (attr !== undefined) {
if (vF.typeOf(attr) === 'array') {
axis.position(parseJSONPoint(attr));
} else {
// If position is not an array, and if it can be interpreted
// as a number, construct the position point by interpreting that
// number as an offset from the 0 location along the perpendicular
// direction.
if (vF.isNumberNotNaN(attr)) {
if (orientation === Axis.HORIZONTAL) {
axis.position(new Point(0, attr));
} else {
axis.position(new Point(attr, 0));
}
} else {
throw new Error("axis position '"+attr+"' is of the wrong type; it should be a number or a point");
}
}
}
// Note: we coerce the min and max values to strings here, because the "min" and "max" attrs
// of the Axis object require strings. See the comments about these properties in src/core/axis.js
// for a discussion of why this is the case.
if ("min" in json) {
axis.min(uF.coerceToString(json.min));
}
if (axis.min() !== "auto") {
axis.dataMin(DataValue.parse(axis.type(), axis.min()));
}
if ("max" in json) {
axis.max(uF.coerceToString(json.max));
}
if (axis.max() !== "auto") {
axis.dataMax(DataValue.parse(axis.type(), axis.max()));
}
parseAttribute(json.pregap, axis.pregap);
parseAttribute(json.postgap, axis.postgap);
parseAttribute(json.anchor, axis.anchor);
parseAttribute(json.base, axis.base, parseJSONPoint);
parseAttribute(json.minposition, axis.minposition, parseDisplacement);
parseAttribute(json.maxposition, axis.maxposition, parseDisplacement);
parseAttribute(json.minoffset, axis.minoffset);
parseAttribute(json.maxoffset, axis.maxoffset);
parseAttribute(json.color, axis.color, parseRGBColor);
parseAttribute(json.tickcolor, axis.tickcolor, parseRGBColor);
parseAttribute(json.tickwidth, axis.tickwidth);
parseAttribute(json.tickmin, axis.tickmin);
parseAttribute(json.tickmax, axis.tickmax);
parseAttribute(json.highlightstyle, axis.highlightstyle);
parseAttribute(json.linewidth, axis.linewidth);
if ("title" in json) {
if (typeof(json.title) === 'boolean') {
if (json.title) {
axis.title(new AxisTitle(axis));
} else {
axis.title(AxisTitle.parseJSON({}, axis));
}
} else {
axis.title(AxisTitle.parseJSON(json.title, axis));
}
} else {
axis.title(new AxisTitle(axis));
}
if (json.grid) {
axis.grid(Grid.parseJSON(json.grid));
}
if (json.visible !== undefined) {
axis.visible(json.visible);
}
if ("pan" in json) {
axis.pan(Pan.parseJSON(json.pan, axis.type()));
}
if ("zoom" in json) {
axis.zoom(Zoom.parseJSON(json.zoom, axis.type()));
}
if (json.labels) {
parseLabels(json.labels, axis);
}
if (json.binding) {
var bindingMinDataValue = DataValue.parse(axis.type(), json.binding.min),
bindingMaxDataValue = DataValue.parse(axis.type(), json.binding.max);
if (typeof(json.binding.id) !== "string") {
throw new Error("invalid axis binding id: '" + json.binding.id + "'");
}
if (! DataValue.isInstance(bindingMinDataValue)) {
throw new Error("invalid axis binding min: '" + json.binding.min + "'");
}
if (! DataValue.isInstance(bindingMaxDataValue)) {
throw new Error("invalid axis binding max: '" + json.binding.max + "'");
}
AxisBinding.findByIdOrCreateNew(json.binding.id).addAxis(axis, bindingMinDataValue, bindingMaxDataValue, multigraph);
}
}
return axis;
};
module.exports = Axis;
|
namespace Todo.ViewModel
{
public sealed class NewTodoItem
{
public string Text { get; set; }
}
}
|
<?xml version="1.0" encoding="utf-8"?>
<!-- This comment will force IE7 to go into quirks mode. -->
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<link rel="stylesheet" type="text/css" href="../../CSS/Contents.css"></link>
<script type="text/javascript" src="../../JS/Common.js"></script>
<title>Zips.Zip<T, U, V> Method</title>
</head>
<body>
<div id="Header">
<div id="ProjectTitle">Documentation Project</div>
<div id="PageTitle">Zips.Zip<T, U, V> Method</div>
<div id="HeaderShortcuts">
<a href="#SectionHeader0" onclick="javascript: <API key>(0, true); <API key>();">Overload List</a>
</div>
<div class="DarkLine"></div>
<div class="LightLine"></div>
<div id="HeaderToolbar">
<img id="<API key>" src="../../GFX/SmallSquareExpanded.gif" alt="" style="vertical-align: top;" onclick="javascript: <API key>();" />
<span id="<API key>" onclick="javascript: <API key>();">Collapse All</span>
</div>
</div>
<div id="Contents">
<a id="ContentsAnchor"> </a>
Zip a paired stream with a third stream.
<div id="ItemLocation">
<b>Declaring type:</b> <a href="../../Contents/2/287.html">Zips</a><br />
<b>Namespace:</b> <a href="../../Contents/1/212.html">Sasa.Linq</a><br />
<b>Assembly:</b> <a href="../../Contents/1/1.html">Sasa</a>
</div>
<div id="SectionHeader0" class="SectionHeader">
<img id="SectionExpanderImg0" src="../../GFX/BigSquareExpanded.gif" alt="Collapse/Expand" onclick="javascript: <API key>(0);" />
<span class="SectionHeader">
<span class="ArrowCursor" onclick="javascript: <API key>(0);">
Overload List
</span>
</span>
</div>
<div id="<API key>" class="SectionContainer">
<table class="MembersTable">
<col width="7%" />
<col width="38%" />
<col width="55%" />
<tr>
<th> </th>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td class="IconColumn">
<img src="../../GFX/PublicMethod.gif" alt="Public Method" /> <img src="../../GFX/Static.gif" alt="Static" /></td>
<td><a href="../../Contents/2/316.html">Zips.Zip<T, U, V> (IEnumerable<T>, IEnumerable<U>, IEnumerable<V>)</a></td>
<td>Zip the elements of three streams.</td>
</tr>
<tr>
<td class="IconColumn">
<img src="../../GFX/PublicMethod.gif" alt="Public Method" /> <img src="../../GFX/Static.gif" alt="Static" /></td>
<td><a href="../../Contents/2/317.html">Zips.Zip<T, U, V> (IEnumerable<Pair<T, U>>, IEnumerable<V>)</a></td>
<td>Zip a paired stream with a third stream.</td>
</tr>
</table>
<div class="TopLink"><a href="#ContentsAnchor">Top</a></div></div>
</div>
<div id="Footer">
<span class="Footer">Generated by <a href="http://immdocnet.codeplex.com/" target="_blank">ImmDoc .NET</a></span>.
</div>
</body>
</html>
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$lang = array(
'img_module_name' =>
'Img',
'<API key>' =>
'PHPImageWorkshop for EE',
'module_home' => 'Img Home',
// Start inserting custom language keys/values here
);
/* End of file lang.img.php */
/* Location: /system/expressionengine/third_party/img/language/english/lang.img.php */
|
module WoopleTheme
class Configuration
attr_accessor :profile_helper, :menu_helper, :<API key>, :layout_javascript
def profile_helper
@profile_helper || :profile_helper
end
def menu_helper
@menu_helper || :menu_helper
end
def <API key>
@<API key> || :<API key>
end
end
class << self
attr_accessor :configuration
end
def self.configure
self.configuration ||= Configuration.new
yield(configuration)
end
end
|
export * from './about';
export * from './no-content';
export * from './home';
|
<!--conf
<sample>
<product version="2.6" edition="std"/>
<modifications>
<modified date="100609"/>
</modifications>
</sample>
<!DOCTYPE html PUBLIC "-
<html>
<head>
<title>Series</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
<script src="../../../codebase/dhtmlx.js"></script>
<script src="../common/testdata.js"></script>
</head>
<body>
<div id="chart1" style="width:900px;height:250px;border:1px solid #A4BED4;"></div>
<script>
var barChart1 = new dhtmlXChart({
view:"bar",
container:"chart1",
value:"#sales#",
color: "#58dccd",
gradient:"rising",
tooltip:{
template:"#sales#"
},
width:60,
tooltip:{
template:"#sales#"
},
xAxis:{
template:"'#year#"
},
yAxis:{
start:0,
step:10,
end:100
},
legend:{
values:[{text:"Type A",color:"#58dccd"},{text:"Type B",color:"#a7ee70"},{text:"Type C",color:"#36abee"}],
valign:"middle",
align:"right",
width:90,
layout:"y"
}
});
barChart1.addSeries({
value:"#sales2#",
color:"#a7ee70",
tooltip:{
template:"#sales2#"
}
});
barChart1.addSeries({
value:"#sales3#",
color:"#36abee",
tooltip:{
template:"#sales3#"
}
});
barChart1.parse(multiple_dataset,"json");
</script>
</body>
</html>
|
/**
* Filtering sensitive information
*/
const _ = require('lodash');
/**
* reset option
* @param {string|object|array} opt filter option
* @param {array} filterKeys filter keys
* @param {string|function} replaceChat replace chat or function
* @param {boolean} recursion whether recursive , true of false
*/
const setOption = (option) => {
let filterKeys = ['password', 'token', 'authorization'];
let replaceChat = '*';
let recursion = false;
if (option !== undefined) {
if (typeof option === 'string') {
filterKeys = [option];
} else if (option instanceof Array && option.length > 0) {
filterKeys = option.filter(item => typeof item === 'string');
} else if (_.isPlainObject(option)) {
const { filterKeys: fks, recursion: rcs, replaceChat: rpc } = option;
recursion = !!rcs;
if (fks instanceof Array && fks.length > 0) {
filterKeys = fks.filter(item => typeof item === 'string');
}
if (typeof rpc === 'string') {
replaceChat = rpc;
} else {
replaceChat = '*';
}
} else {
console.error(new Error(`option.filter do not support ${typeof option} type !`));
}
}
return { filterKeys, recursion, replaceChat };
};
/**
* replace by replaceChat
* @param {string} param content to replace
* @param {string|function} replaceChat replace chat or function
*/
const replace = (param, replaceChat) => {
if (typeof replaceChat === 'function') {
return replaceChat(param);
}
return param.replace(/\S/g, '*');
};
/**
* filter log message by option
* @param {*} message logger message
* @param {object} opt filter option
* @param {boolean} hit hit the fileterkeys , default false
*/
const filter = (message, opt, hit = false) => {
const result = message;
const { filterKeys, replaceChat } = opt;
if (_.isPlainObject(result)) {
Object.keys(result).forEach((key) => {
const dHit = hit || filterKeys.indexOf(key) > -1;
result[key] = filter(result[key], opt, dHit);
// if (recursion) {
// result[key] = filter(param, opt, true);
// } else {
// result[key] = replaceChat;
// // replace the value of hit key
// // <API key> no-return-assign
// Object.keys(param).forEach(pk => (filterKeys.indexOf(pk) !== -1 ? result[key] = replaceChat : ''));
});
return result;
} else if (typeof result === 'number') {
return replace(result.toString(), replaceChat);
} else if (result instanceof Array && result.length > 0) {
return result.map(param => filter(param, opt, hit));
}
return replace(result, replaceChat);
};
/**
* filter log message by option do not recursion
* @param {*} message logger message
* @param {object} opt filter option
* @param {array} opt.filterKeys filter keys
* @param {string} opt.replaceChat replace chat or function
*/
const filterNoRecursion = (message, opt) => {
const result = message;
const { filterKeys, replaceChat } = opt;
if (_.isPlainObject(result)) {
Object.keys(result).forEach((key) => {
if (filterKeys.indexOf(key) === -1) {
result[key] = filterNoRecursion(result[key], opt);
} else {
result[key] = replaceChat;
}
});
return result;
} else if (typeof result === 'number') {
return result;
} else if (result instanceof Array && result.length > 0) {
return result;
}
return result;
};
/**
* filter sensitive information
* @param {object} message log message
* @param {*} option filter option
*/
const <API key> = (message, option = false) => {
if (!option) {
return message;
}
if (typeof option === 'function') {
return option(message);
}
return filterNoRecursion(message, setOption(option));
};
module.exports = {
<API key>,
setOption,
};
|
from slm_lab.env.vec_env import make_gym_venv
import numpy as np
import pytest
@pytest.mark.parametrize('name,state_shape,reward_scale', [
('PongNoFrameskip-v4', (1, 84, 84), 'sign'),
('LunarLander-v2', (8,), None),
('CartPole-v0', (4,), None),
])
@pytest.mark.parametrize('num_envs', (1, 4))
def <API key>(name, num_envs, state_shape, reward_scale):
seed = 0
frame_op = None
frame_op_len = None
venv = make_gym_venv(name, num_envs, seed, frame_op=frame_op, frame_op_len=frame_op_len, reward_scale=reward_scale)
venv.reset()
for i in range(5):
state, reward, done, info = venv.step([venv.action_space.sample()] * num_envs)
assert isinstance(state, np.ndarray)
assert state.shape == (num_envs,) + state_shape
assert isinstance(reward, np.ndarray)
assert reward.shape == (num_envs,)
assert isinstance(done, np.ndarray)
assert done.shape == (num_envs,)
assert len(info) == num_envs
venv.close()
@pytest.mark.parametrize('name,state_shape, reward_scale', [
('PongNoFrameskip-v4', (1, 84, 84), 'sign'),
('LunarLander-v2', (8,), None),
('CartPole-v0', (4,), None),
])
@pytest.mark.parametrize('num_envs', (1, 4))
def <API key>(name, num_envs, state_shape, reward_scale):
seed = 0
frame_op = 'concat' # used for image, or for concat vector
frame_op_len = 4
venv = make_gym_venv(name, num_envs, seed, frame_op=frame_op, frame_op_len=frame_op_len, reward_scale=reward_scale)
venv.reset()
for i in range(5):
state, reward, done, info = venv.step([venv.action_space.sample()] * num_envs)
assert isinstance(state, np.ndarray)
stack_shape = (num_envs, frame_op_len * state_shape[0],) + state_shape[1:]
assert state.shape == stack_shape
assert isinstance(reward, np.ndarray)
assert reward.shape == (num_envs,)
assert isinstance(done, np.ndarray)
assert done.shape == (num_envs,)
assert len(info) == num_envs
venv.close()
@pytest.mark.skip(reason='Not implemented yet')
@pytest.mark.parametrize('name,state_shape,reward_scale', [
('LunarLander-v2', (8,), None),
('CartPole-v0', (4,), None),
])
@pytest.mark.parametrize('num_envs', (1, 4))
def test_make_gym_stack(name, num_envs, state_shape, reward_scale):
seed = 0
frame_op = 'stack' # used for rnn
frame_op_len = 4
venv = make_gym_venv(name, num_envs, seed, frame_op=frame_op, frame_op_len=frame_op_len, reward_scale=reward_scale)
venv.reset()
for i in range(5):
state, reward, done, info = venv.step([venv.action_space.sample()] * num_envs)
assert isinstance(state, np.ndarray)
stack_shape = (num_envs, frame_op_len,) + state_shape
assert state.shape == stack_shape
assert isinstance(reward, np.ndarray)
assert reward.shape == (num_envs,)
assert isinstance(done, np.ndarray)
assert done.shape == (num_envs,)
assert len(info) == num_envs
venv.close()
@pytest.mark.parametrize('name,state_shape,image_downsize', [
('PongNoFrameskip-v4', (1, 84, 84), (84, 84)),
('PongNoFrameskip-v4', (1, 64, 64), (64, 64)),
])
@pytest.mark.parametrize('num_envs', (1, 4))
def <API key>(name, num_envs, state_shape, image_downsize):
seed = 0
frame_op = None
frame_op_len = None
venv = make_gym_venv(name, num_envs, seed, frame_op=frame_op, frame_op_len=frame_op_len, image_downsize=image_downsize)
venv.reset()
for i in range(5):
state, reward, done, info = venv.step([venv.action_space.sample()] * num_envs)
assert isinstance(state, np.ndarray)
assert state.shape == (num_envs,) + state_shape
assert isinstance(reward, np.ndarray)
assert reward.shape == (num_envs,)
assert isinstance(done, np.ndarray)
assert done.shape == (num_envs,)
assert len(info) == num_envs
venv.close()
|
package com.github.pineasaurusrex.inference_engine;
import java.util.HashMap;
/**
* Partially or fully assigned model
* A model represents a possible representation of the propositional symbol states in the KB
*/
public class Model {
private HashMap<PropositionalSymbol, Boolean> symbolValues = new HashMap<>();
public boolean holdsTrue(Sentence sentence) {
if (sentence.isPropositionSymbol()) {
return symbolValues.get(sentence);
} else {
switch(sentence.getConnective()) {
case NOT:
return !holdsTrue(sentence.getOperand(0));
case AND:
return holdsTrue(sentence.getOperand(0)) && holdsTrue(sentence.getOperand(1));
case OR:
return holdsTrue(sentence.getOperand(0)) || holdsTrue(sentence.getOperand(1));
case IMPLICATION:
return !holdsTrue(sentence.getOperand(0)) || holdsTrue(sentence.getOperand(1));
case BICONDITIONAL:
return holdsTrue(sentence.getOperand(0)) == holdsTrue(sentence.getOperand(1));
}
}
return false;
}
public boolean holdsTrue(KnowledgeBase kb) {
return kb.getSentences().parallelStream()
.map(this::holdsTrue)
.allMatch(Boolean::booleanValue);
}
/**
* Returns a new model, with the union of the results of the old model and the result passed in
* @param symbol the symbol to merge in
* @param b the value to set
* @return a new Model object
*/
public Model union(PropositionalSymbol symbol, boolean b) {
Model m = new Model();
m.symbolValues.putAll(this.symbolValues);
m.symbolValues.put(symbol, b);
return m;
}
}
|
describe("The ot object has a forEach method, which allows you: ", function () {
it("To iterate over an array", function () {
var array = [1, 2, 4, 8, 16];
var sum = 0;
var sumIndex = 0;
ot.forEach(array, function (value, index) {
sum += value;
sumIndex += index;
expect(this.context).toBe(true);
}, {context: true});
expect(sum).toBe(1 + 2 + 4 + 8 + 16);
expect(sumIndex).toBe(1 + 2 + 3 + 4);
});
it("To iterate over an object's properties", function () {
var obj = {
prop1: false,
prop2: false,
prop3: false
};
ot.forEach(obj, function (value, key) {
obj[key] = !value;
expect(this.context).toBe(true);
}, {context: true});
expect(obj.prop1).toBe(true);
expect(obj.prop2).toBe(true);
expect(obj.prop3).toBe(true);
});
it("To iterate over user set function properties", function () {
var fnWithProps = function aName() {
};
fnWithProps.prop1 = false;
fnWithProps.prop2 = false;
fnWithProps.prop3 = false;
ot.forEach(fnWithProps, function (value, key) {
fnWithProps[key] = !value;
expect(this.context).toBe(true);
}, {context: true});
expect(fnWithProps.prop1).toBe(true);
expect(fnWithProps.prop2).toBe(true);
expect(fnWithProps.prop3).toBe(true);
});
it("To iterate over an object with a forEach method", function () {
var objectWithForEach = {
forEach: function (iterator, context) {
iterator.call(context, true);
}
};
ot.forEach(objectWithForEach, function(calledFromForEach) {
expect(calledFromForEach).toBe(true);
expect(this.context).toBe(true);
}, {context: true});
});
});
|
#ifndef LWEXML_H
#define LWEXML_H
#include <LWCore/LWText.h>
#include <functional>
#include "LWETypes.h"
#define LWEXMLMAXNAMELEN 32
#define LWEXMLMAXVALUELEN 256
#define LWEXMLMAXTEXTLEN 1024
struct LWXMLAttribute {
char m_Name[LWEXMLMAXNAMELEN];
char m_Value[LWEXMLMAXVALUELEN];
};
struct LWEXMLNode {
enum {
MaxAttributes = 32
};
LWXMLAttribute m_Attributes[MaxAttributes];
char m_Text[LWEXMLMAXTEXTLEN];
char m_Name[LWEXMLMAXNAMELEN];
uint32_t m_AttributeCount;
LWEXMLNode *m_Parent;
LWEXMLNode *m_Next;
LWEXMLNode *m_FirstChild;
LWEXMLNode *m_LastChild;
bool PushAttribute(const char *Name, const char *Value);
bool PushAttributef(const char *Name, const char *ValueFmt, ...);
bool RemoveAttribute(uint32_t i);
bool RemoveAttribute(LWXMLAttribute *Attr);
LWEXMLNode &SetName(const char *Name);
LWEXMLNode &SetText(const char *Text);
LWEXMLNode &SetTextf(const char *TextFmt, ...);
LWXMLAttribute *FindAttribute(const LWText &Name);
};
struct LWEXMLParser {
char m_Name[LWEXMLMAXNAMELEN];
std::function<bool(LWEXMLNode *, void *, LWEXML *)> m_Callback;
void *m_UserData;
};
class LWEXML {
public:
enum {
NodePoolSize = 256,
MaxParsers = 32
};
static bool LoadFile(LWEXML &XML, LWAllocator &Allocator, const LWText &Path, bool StripFormatting, LWEXMLNode *Parent, LWEXMLNode *Prev, LWFileStream *ExistingStream = nullptr);
static bool LoadFile(LWEXML &XML, LWAllocator &Allocator, const LWText &Path, bool StripFormatting, LWFileStream *ExistingStream = nullptr);
static bool ParseBuffer(LWEXML &XML, LWAllocator &Allocator, const char *Buffer, bool StripFormatting, LWEXMLNode *Parent, LWEXMLNode *Prev);
static bool ParseBuffer(LWEXML &XML, LWAllocator &Allocator, const char *Buffer, bool StripFormatting);
static uint32_t ConstructBuffer(LWEXML &XML, char *Buffer, uint32_t BufferLen, bool Format);
LWEXMLNode *NextNode(LWEXMLNode *Current, bool SkipChildren=false);
LWEXMLNode *NextNode(LWEXMLNode *Current, LWEXMLNode *Top, bool SkipChildren = false);
LWEXMLNode *NextNodeWithName(LWEXMLNode *Current, const LWText &Name, bool SkipChildren =false);
template<class Method, class Obj>
LWEXML &PushMethodParser(const LWText &XMLNodeName, Method CB, Obj *O, void *UserData) {
return PushParser(XMLNodeName, std::bind(CB, O, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), UserData);
}
LWEXML &PushParser(const LWText &XMLNodeName, std::function<bool(LWEXMLNode*, void*, LWEXML*)> Callback, void *UserData);
LWEXML &Process(void);
LWEXMLNode *<API key>(LWEXMLNode *Parent, LWEXMLNode *Prev, LWAllocator &Allocator);
LWEXMLNode *GetFirstNode(void);
LWEXMLNode *GetLastNode(void);
LWEXML();
~LWEXML();
private:
LWEXMLNode **m_NodePool;
LWEXMLParser m_Parsers[MaxParsers];
uint32_t m_NodeCount;
uint32_t m_ParserCount;
LWEXMLNode *m_FirstNode;
LWEXMLNode *m_LastNode;
};
#endif
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CycleCycleCycle.Services
{
public interface IRideService
{
bool Create(int accountId, int routeId, DateTime dateRidden, int? hours, int? minutes, int? seconds);
}
}
|
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
class <API key> extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
Phpfox::isUser(true);
$bIsInLegacyView = false;
if (Phpfox::getParam('mail.<API key>') && $this->request()->get('legacy'))
{
Phpfox::getLib('setting')->setParam('mail.<API key>', false);
$bIsInLegacyView = true;
}
$this->setParam('bIsInLegacyView', $bIsInLegacyView);
if (($aItemModerate = $this->request()->get('item_moderate')))
{
$sFile = Phpfox::getService('mail')->getThreadsForExport($aItemModerate);
Phpfox::getLib('file')->forceDownload($sFile, 'mail.xml');
}
$iPage = $this->request()->getInt('page');
$iPageSize = 10;
$bIsSentbox = ($this->request()->get('view') == 'sent' ? true : false);
$bIsTrash = ($this->request()->get('view') == 'trash' ? true : false);
$iPrivateBox = ($this->request()->get('view') == 'box' ? $this->request()->getInt('id') : false);
$bIs = $this->getParam('bIsSentbox');
if ($this->request()->get('action') == 'archive')
{
Phpfox::getService('mail.process')->archiveThread($this->request()->getInt('id'), 1);
$this->url()->send('mail.trash', null, Phpfox::getPhrase('mail.<API key>'));
}
if ($this->request()->get('action') == 'unarchive')
{
Phpfox::getService('mail.process')->archiveThread($this->request()->getInt('id'), 0);
$this->url()->send('mail', null, Phpfox::getPhrase('mail.<API key>'));
}
if ($this->request()->get('action') == 'delete')
{
$iMailId = $this->request()->getInt('id');
if (!is_int($iMailId) || empty($iMailId))
{
Phpfox_Error::set(Phpfox::getPhrase('mail.no_mail_specified'));
}
else
{
$bTrash = $this->getParam('bIsTrash');
if (!isset($bTrash) || !is_bool($bTrash))
{
$bIsTrash = Phpfox::getService('mail')->isDeleted($iMailId);
}
if ($bIsTrash)
{
if (Phpfox::getService('mail.process')->deleteTrash($iMailId))
{
$this->url()->send('mail.trash', null, Phpfox::getPhrase('mail.<API key>'));
}
else
{
Phpfox_Error::set(Phpfox::getPhrase('mail.<API key>'));
}
}
else
{
$bIsSent = $this->getParam('bIsSentbox');
if (!isset($bIsSent) || !is_bool($bIsSent))
{
$bIsSentbox = Phpfox::getService('mail')->isSent($iMailId);
}
if (Phpfox::getService('mail.process')->delete($iMailId, $bIsSentbox))
{
$this->url()->send($bIsSentbox == true ? 'mail.sentbox' : 'mail', null, Phpfox::getPhrase('mail.<API key>'));
}
else
{
Phpfox_Error::set(Phpfox::getPhrase('mail.<API key>'));
}
}
}
}
if (($aVals = $this->request()->getArray('val')) && isset($aVals['action']))
{
if (isset($aVals['id']))
{ //make sure there is at least one selected
$oMailProcess = Phpfox::getService('mail.process');
switch ($aVals['action'])
{
case 'unread':
case 'read':
foreach ($aVals['id'] as $iId)
{
$oMailProcess->toggleView($iId, ($aVals['action'] == 'unread' ? true : false));
}
$sMessage = Phpfox::getPhrase('mail.messages_updated');
break;
case 'delete':
if (isset($aVals['select']) && $aVals['select'] == 'every')
{
$aMail = Phpfox::getService('mail')-><API key>(Phpfox::getUserId(),(int)$aVals['folder'], $bIsSentbox, $bIsTrash);
$aVals['id'] = $aMail;
}
foreach ($aVals['id'] as $iId)
{
($bIsTrash ? $oMailProcess->deleteTrash($iId) : $oMailProcess->delete($iId, $bIsSentbox));
}
$sMessage = Phpfox::getPhrase('mail.messages_deleted');
break;
case 'undelete':
foreach ($aVals['id'] as $iId)
{
$oMailProcess->undelete($iId);
}
$sMessage = Phpfox::getPhrase('mail.messages_updated');
break;
}
}
else
{ // didnt select any message
$sMessage = Phpfox::getPhrase('mail.<API key>');
}
// define the mail box that the user was looking at
$mSend = null;
if ($bIsSentbox)
{
$mSend = array('sentbox');
}
elseif ($bIsTrash)
{
$mSend = array('trash');
}
elseif ($iPrivateBox)
{
$mSend = array('box', 'id' => $iPrivateBox);
}
// send the user to that folder with the message
$this->url()->send('mail', $mSend, $sMessage);
}
$this->search()->set(array(
'type' => 'mail',
'field' => 'mail.mail_id',
'search_tool' => array(
'table_alias' => 'm',
'search' => array(
'action' => $this->url()->makeUrl('mail', array('view' => $this->request()->get('view'), 'id' => $this->request()->get('id'))),
'default_value' => Phpfox::getPhrase('mail.search_messages'),
'name' => 'search',
'field' => array('m.subject', 'm.preview')
),
'sort' => array(
'latest' => array('m.time_stamp', Phpfox::getPhrase('mail.latest')),
'most-viewed' => array('m.viewer_is_new', Phpfox::getPhrase('mail.unread_first'))
),
'show' => array(10, 15, 20)
)
)
);
$iPageSize = $this->search()->getDisplay();
$aFolders = Phpfox::getService('mail.folder')->get();
$sUrl = '';
$sFolder = '';
if (Phpfox::getParam('mail.<API key>'))
{
if ($bIsTrash)
{
$sUrl = $this->url()->makeUrl('mail.trash');
$this->search()->setCondition('AND m.owner_user_id = ' . Phpfox::getUserId() . ' AND m.is_archive = 1');
}
else
{
if ($bIsSentbox)
{
$sUrl = $this->url()->makeUrl('mail.sentbox');
}
else
{
$sUrl = $this->url()->makeUrl('mail');
}
$this->search()->setCondition('AND m.viewer_user_id = ' . Phpfox::getUserId() . ' AND m.is_archive = 0');
}
}
else
{
if ($bIsTrash)
{
$sFolder = Phpfox::getPhrase('mail.trash');
$sUrl = $this->url()->makeUrl('mail.trash');
$this->search()->setCondition('AND (m.viewer_user_id = ' . Phpfox::getUserId() . ' AND m.viewer_type_id = 1) OR (m.owner_user_id = ' . Phpfox::getUserId() . ' AND m.owner_type_id = 1)');
// $this->search()->setCondition('AND m.viewer_user_id = ' . Phpfox::getUserId() . ' AND m.viewer_type_id = 1');
}
elseif ($iPrivateBox)
{
if (isset($aFolders[$iPrivateBox]))
{
$sFolder = $aFolders[$iPrivateBox]['name'];
$sUrl = $this->url()->makeUrl('mail.box', array('id' => (int) $iPrivateBox));
$this->search()->setCondition('AND m.viewer_folder_id = ' . (int) $iPrivateBox . ' AND m.viewer_user_id = ' . Phpfox::getUserId() . ' AND m.viewer_type_id = 0');
}
else
{
$this->url()->send('mail', null, Phpfox::getPhrase('mail.<API key>'));
}
}
else
{
if ($bIsSentbox)
{
$sFolder = Phpfox::getPhrase('mail.sent_messages');
$sUrl = $this->url()->makeUrl('mail.sentbox');
$this->search()->setCondition('AND m.owner_user_id = ' . Phpfox::getUserId() . ' AND m.owner_type_id = 0');
}
else
{
$sFolder = Phpfox::getPhrase('mail.inbox');
$sUrl = $this->url()->makeUrl('mail');
$this->search()->setCondition('AND m.viewer_folder_id = 0 AND m.viewer_user_id = ' . Phpfox::getUserId() . ' AND m.viewer_type_id = 0');
}
}
}
list($iCnt, $aRows, $aInputs) = Phpfox::getService('mail')->get($this->search()->getConditions(), $this->search()->getSort(), $this->search()->getPage(), $iPageSize, $bIsSentbox, $bIsTrash);
Phpfox::getLib('pager')->set(array(
'page' => $iPage,
'size' => $iPageSize,
'count' => $iCnt
)
);
Phpfox::getService('mail')->buildMenu();
$aActions = array();
$aActions[] = array(
'phrase' => Phpfox::getPhrase('mail.delete'),
'action' => 'delete'
);
if (!$bIsSentbox)
{
$aActions[] = array(
'phrase' => Phpfox::getPhrase('mail.move'),
'action' => 'move'
);
}
$aModeration = array(
'name' => 'mail',
'ajax' => 'mail.moderation',
'menu' => $aActions
);
if ($bIsSentbox)
{
$aModeration['custom_fields'] = '<div><input type="hidden" name="sent" value="1" /></div>';
}
elseif ($bIsTrash)
{
$aModeration['custom_fields'] = '<div><input type="hidden" name="trash" value="1" /></div>';
}
if (Phpfox::getParam('mail.<API key>'))
{
$aModeration['ajax'] = 'mail.archive';
$aMenuOptions = array();
if ($bIsTrash)
{
$aMenuOptions = array(
'phrase' => Phpfox::getPhrase('mail.un_archive'),
'action' => 'un-archive'
);
}
else
{
$aMenuOptions = array(
'phrase' => Phpfox::getPhrase('mail.archive'),
'action' => 'archive'
);
}
$aModeration['menu'] = array($aMenuOptions,
array(
'phrase' => Phpfox::getPhrase('mail.export'),
'action' => 'export'
)
);
}
$this->setParam('global_moderation', $aModeration);
if (empty($sFolder))
{
$sFolder = Phpfox::getPhrase('mail.mail');
}
$iMailSpaceUsed = 0;
if ((!Phpfox::getUserParam('mail.<API key>') && Phpfox::getParam('mail.<API key>')))
{
$iMailSpaceUsed = Phpfox::getService('mail')->getSpaceUsed(Phpfox::getUserId());
}
$this->template()->setTitle($sFolder)
->setBreadcrumb(Phpfox::getPhrase('mail.mail'), $this->url()->makeUrl('mail'))
->setPhrase(array(
'mail.add_new_folder',
'mail.adding_new_folder',
'mail.view_folders',
'mail.edit_folders',
'mail.<API key>',
'mail.updating'
)
)
->setHeader('cache', array(
'jquery/plugin/jquery.highlightFade.js' => 'static_script',
'quick_edit.js' => 'static_script',
'selector.js' => 'static_script',
'mail.js' => 'module_mail',
'pager.css' => 'style_css',
'mail.css' => 'style_css'
)
)
->assign(array(
'aMails' => $aRows,
'bIsSentbox' => $bIsSentbox,
'bIsTrash' => $bIsTrash,
'aInputs' => $aInputs,
'aFolders' => $aFolders,
'iMailSpaceUsed' => $iMailSpaceUsed,
'iMessageAge' => Phpfox::getParam('mail.<API key>'),
'sUrl' => $sUrl,
'iFolder' => (isset($aFolders[$iPrivateBox]['folder_id']) ? $aFolders[$iPrivateBox]['folder_id'] : 0),
'iTotalMessages' => $iCnt,
'sSiteName' => Phpfox::getParam('core.site_title'),
'bIsInLegacyView' => $bIsInLegacyView
)
);
}
/**
* Garbage collector. Is executed after this class has completed
* its job and the template has also been displayed.
*/
public function clean()
{
(($sPlugin = Phpfox_Plugin::get('mail.<API key>')) ? eval($sPlugin) : false);
}
}
?>
|
<?php
namespace Vin\FrontOfficeBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* MessageRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class MessageRepository extends EntityRepository
{
public function countMessages()
{
$query = $this -> getEntityManager()->createQuery('
SELECT COUNT(m.id)
FROM <API key>:Message m');
return $query -><API key>();
}
}
|
#export pid=`ps aux | grep python | grep hello_gevent.py | awk 'NR==1{print $2}' | cut -d' ' -f1`;kill -9 $pid
for KILLPID in `ps aux | grep 'python' | grep 'server01' | awk ' { print $2;}'`; do
kill -9 $KILLPID;
done
#ps aux | grep python | grep -v grep | awk '{print $2}' | xargs kill -9
|
<?php
class kml_Overlay extends kml_Feature {
protected $tagName = 'Overlay';
var $color;
var $drawOrder;
var $Icon;
/* Constructor */
function kml_Overlay() {
parent::kml_Feature();
}
/* Assignments */
function set_color($color) { $this->color = $color; }
function set_drawOrder($drawOrder) { $this->drawOrder = $drawOrder; }
function set_Icon($Icon) { $this->Icon = $Icon; }
/* Render */
function render($doc) {
$X = parent::render($doc);
if (isset($this->color)) $X->appendChild(<API key>($doc, 'color', $this->color));
if (isset($this->drawOrder)) $X->appendChild(<API key>($doc, 'drawOrder', $this->drawOrder));
if (isset($this->Icon)) $X->appendChild($this->Icon->render($doc));
return $X;
}
}
/*
$a = new kml_Overlay();
$a->set_id('1');
$a->dump(false);
*/
|
Simple CMS written in python3 bottle framework
by default, project is configured to work on openshift cloud: https://openshift.redhat.com.
You only need to add mongodb cartridge and restart app.
If you want to deploy app on your own server, you have to configure ```DB_CREDENTIALS``` variable
in ```config/__init__.py```
DB_CREDENTIALS = {
'creds': {
'username': 'database username',
'password': 'database password',
'host': 'database host name',
'port': database port #must be integer
},
'db': 'database name'
}
When application is deployed default user is created for admin interface.
username: admin
password: admin
**It is strongly recomended to change password after deployment.**
|
require "importeer_plan/version"
require 'importeer_plan/configuration'
module ImporteerPlan
class Importeer
attr_accessor :path, :name, :dir, :size_batch, :sep, :initial, :options
#call importeer("filename") to import the file in batches of 1000, optional importeer("filename", size_)
def initialize(name, options={})
@options = options
@name = name
@path = Importeer.dir.join( @name )
@size_batch = options[:size_batch]||1000
@sep = options[:sep]|| ";"
@initial = options[:initial]|| false
end
def self.dir
# Rails.root.join('public/imports/')
ImporteerPlan.configuration.dir
end
def bron
end
def sweep
end
def importeer
sweep
bron.each{|batch| importeer_batch batch}
end
def commaf(str) # comma-float; "1,234"
('%.2f' % str.gsub(',', '.') ).to_f
end
def pointf(str) # point-float; "1.234"
('%.2f' % str.gsub(',', '.') ).to_f
end
end
class MyXls < Importeer
require 'spreadsheet'
def initialize(*)
super
end
def bron
Spreadsheet.open(@path).worksheet(0).to_a.tap{|x| x.shift}.each_slice(size_batch).each
end
end
class MyCsv< Importeer
require 'csv'
def initialize(*)
super
# @sep = options[:sep]
end
def bron
CSV.read(path, { :col_sep => @sep , :encoding => "ISO-8859-1"}).tap{|x| x.shift}.each_slice(@size_batch)
end
end
class MyTxt< Importeer
def initialize(*)
super
end
def bron
# Csv.open(@path).worksheet(0).to_a.tap{|x| x.shift}.each_slice(size_batch).each
end
end
end
|
from collections import namedtuple
Resolution = namedtuple('Resolution', ['x', 'y'])
class Resolutions(object):
resolutions = [
(1920, 1200),
(1920, 1080),
(1680, 1050),
(1440, 900),
(1360, 768),
(1280, 800),
(1024, 640)
]
@classmethod
def parse(self, x, y):
if (x,y) not in self.resolutions:
resolutions = ', '.join(['%sx%s' % (a, b) for a,b in self.resolutions])
raise Exception('Resolution %s x %s not supported. Available resolutions: %s' % (x,y, resolutions) )
return Resolution(x, y)
class Color(object):
gray = (0.15, 0.15, 0.13, 1.0)
black = (0.0, 0.0, 0.0, 1.0)
white = (1.0, 1.0, 1.0, 1.0)
red = (1.0, 0.2, 0.0, 1.0)
orange = (1.0, 0.4, 0.0, 1.0)
yellow = (1.0, 0.9, 0.0, 1.0)
light_green = (0.4, 1.0, 0.0, 1.0)
green = (0.0, 1.0, 0.2, 1.0)
cyan = (0.0, 1.0, 0.4, 1.0)
light_blue = (0.0, 0.6, 1.0, 1.0)
blue = (0.0, 0.2, 1.0, 1.0)
purple = (0.4, 0.0, 1.0, 1.0)
pink = (1.0, 0.0, 0.8, 1.0)
@classmethod
def __colors(self):
return [key for key in self.__dict__.keys() if not key.startswith('_') and key != 'named']
@classmethod
def named(self, name):
if not hasattr(self, name):
colors = ', '.join(self.__colors())
raise Exception('Unknown color %s. Available colors are: %s' % (name, colors))
return getattr(self, name)
def try_parse(value):
try: return int(value)
except: return { 'true': True, 'false': False }.get(value.lower(), value)
def read_config():
with open('config.cfg', 'r') as cfg_file:
lines = cfg_file.readlines()
lines = [
line.strip().replace(' ', '').split('=')
for line in lines
if line.strip() and '=' in line
]
cfg = {key:try_parse(value) for key,value in lines}
return cfg
cfg = read_config()
NUM_CELLS = cfg.get('CELLS', 100)
RESOLUTION = Resolutions.parse(cfg.get('WINDOW_WIDTH', 1280), cfg.get('WINDOW_HEIGHT', 800))
limit = min(RESOLUTION)
PIXEL_PER_CELL = limit / NUM_CELLS
OFFSET_X = (RESOLUTION.x - (NUM_CELLS * PIXEL_PER_CELL)) / 2
OFFSET_Y = (RESOLUTION.y - (NUM_CELLS * PIXEL_PER_CELL)) / 2
SHOW_FULLSCREEN = cfg.get('FULLSCREEN', False)
SHOW_GRID = cfg.get('SHOW_GRID', True)
BACKGROUND_COLOR = Color.named(cfg.get('BACKGROUND_COLOR', 'black'))
GRID_BACKDROP_COLOR = Color.named(cfg.get('GRID_BACKDROP_COLOR', 'gray'))
GRID_LINE_COLOR = Color.named(cfg.get('GRID_LINE_COLOR', 'black'))
CELL_COLOR = Color.named(cfg.get('CELL_COLOR', 'green'))
CURSOR_COLOR = Color.named(cfg.get('CURSOR_COLOR', 'red'))
|
namespace Dapper.SimpleSave.Tests.Dto {
[Table("dbo.<API key>")]
[ReferenceData(true)]
public class <API key> : <API key> {
}
}
|
using System.Diagnostics;
namespace AdventOfCode.Day07.SignalProviders
{
[DebuggerDisplay("{DebuggerDisplay}")]
public class Wire : SignalProvider
{
#region | Properties & fields
private readonly Circut _parentCircut;
private readonly string _rawProvider;
public string ID { get; }
private SignalProvider Connection { get; set; }
public string DebuggerDisplay => $"{ID}{_rawProvider}";
#endregion
#region | ctors
public Wire(Circut circut, string wireId, string rawSignalProvider)
{
_parentCircut = circut;
ID = wireId;
_rawProvider = rawSignalProvider;
}
#endregion
#region | Non-public members
private void ResolveProvider()
{
Connection = ProviderParser.ParseProviderType(_rawProvider, _parentCircut);
}
#endregion
#region | Overrides
public override ushort GetValue()
{
if (!IsResolved) // cache the value
{
ResolveProvider();
Value = Connection.GetValue();
IsResolved = true;
}
return Value;
}
#endregion
}
}
|
// <API key>.h
#import "<API key>.h"
@interface <API key> : <API key>
@end
|
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Wrappers are used by the form builder to generate a
# complete input. You can remove any component from the
# wrapper, change the order or even add your own to the
# stack. The options given below are used to wrap the
# whole input.
config.wrappers :default, class: :input,
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
## Extensions enabled by default
# Any of these extensions can be disabled for a
# given input by passing: `f.input EXTENSION_NAME => false`.
# You can make any of these extensions optional by
# renaming `b.use` to `b.optional`.
# Determines whether to use HTML5 (:email, :url, ...)
# and required attributes
b.use :html5
# Calculates placeholders automatically from I18n
# You can also pass a string as f.input placeholder: "Placeholder"
b.use :placeholder
## Optional extensions
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
# to the input. If so, they will retrieve the values from the model
# if any exists. If you want to enable any of those
# extensions by default, you can change `b.optional` to `b.use`.
# Calculates maxlength from length validations for string inputs
b.optional :maxlength
# Calculates pattern from format validations for string inputs
b.optional :pattern
# Calculates min and max from length validations for numeric inputs
b.optional :min_max
# Calculates readonly automatically from readonly attributes
b.optional :readonly
## Inputs
b.use :label_input
b.use :hint, wrap_with: { tag: :span, class: :hint }
b.use :error, wrap_with: { tag: :span, class: :error }
## full_messages_for
# If you want to display the full error message for the attribute, you can
# use the component :full_error, like:
# b.use :full_error, wrap_with: { tag: :span, class: :error }
end
# The default wrapper to be used by the FormBuilder.
config.default_wrapper = :default
# Define the way to render check boxes / radio buttons with labels.
# Defaults to :nested for bootstrap config.
# inline: input + label
# nested: label > input
config.boolean_style = :nested
# Default class for buttons
config.button_class = 'btn'
# Method used to tidy up errors. Specify any Rails Array method.
# :first lists the first message for each field.
# Use :to_sentence to list all errors for each field.
# config.error_method = :first
# Default tag used for error notification helper.
config.<API key> = :div
# CSS class to add for error notification helper.
config.<API key> = 'error_notification'
# ID to add for error notification helper.
# config.<API key> = nil
# Series of attempts to detect a default label method for collection.
# config.<API key> = [ :to_label, :name, :title, :to_s ]
# Series of attempts to detect a default value method for collection.
# config.<API key> = [ :id, :to_s ]
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
# config.<API key> = nil
# You can define the class to use on all collection wrappers. Defaulting to none.
# config.<API key> = nil
# You can wrap each item in a collection of radio/check boxes with a tag,
# defaulting to :span. Please note that when using :boolean_style = :nested,
# SimpleForm will force this option to be a label.
# config.item_wrapper_tag = :span
# You can define a class to use in all item wrappers. Defaulting to none.
# config.item_wrapper_class = nil
# How the label text should be generated altogether with the required text.
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
# You can define the class to use on all labels. Default is nil.
# config.label_class = nil
# You can define the default class to be used on forms. Can be overriden
# with `html: { :class }`. Defaulting to none.
# config.default_form_class = nil
# You can define which elements should obtain additional classes
# config.<API key> = [:wrapper, :label, :input]
# Whether attributes are required by default (or not). Default is true.
# config.required_by_default = true
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
# These validations are enabled in SimpleForm's internal config but disabled by default
# in this configuration, which is recommended due to some quirks from different browsers.
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
# change this configuration to true.
config.browser_validations = false
# Collection of methods to detect if a file type was given.
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
# Custom mappings for input types. This should be a hash containing a regexp
# to match as key, and the input type that will be used when the field name
# matches the regexp as value.
# config.input_mappings = { /count/ => :integer }
# Custom wrappers for input types. This should be a hash containing an input
# type as key and the wrapper that will be used for all inputs with specified type.
# config.wrapper_mappings = { string: :prepend }
# Namespaces where SimpleForm should look for custom input classes that
# override default inputs.
# config.<API key> << "CustomInputs"
# Default priority for time_zone inputs.
# config.time_zone_priority = nil
# Default priority for country inputs.
# config.country_priority = nil
# When false, do not use translations for labels.
# config.translate_labels = true
# Automatically discover new inputs in Rails' autoload path.
# config.inputs_discovery = true
# Cache SimpleForm inputs discovery
# config.cache_discovery = !Rails.env.development?
# Default class for inputs
# config.input_class = nil
# Define the default class of the input wrapper of the boolean input.
config.boolean_label_class = 'checkbox'
# Defines if the default input wrapper class should be included in radio
# collection wrappers.
# config.<API key> = true
# Defines which i18n scope will be used in Simple Form.
# config.i18n_scope = 'simple_form'
end
|
<?php
namespace Craft\UserBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CraftUserBundle extends Bundle
{
}
|
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class TestModel extends CI_Model {
public function popular_merchants(){
//include total reviews, sum of reviews, mp_id, unit, building, street, city name, region name, merchant name, merchant image, date and time of application approval, sub category
$sql = "(SELECT
SUM(gr.rev_rate) AS sum_rev, COUNT(gr.rev_rate) AS total_rev, gr.mp_id AS ref_id,mp.mp_unit AS unit_add,mp.mp_building AS building_add,mp.mp_street AS street_add,ac.city_name AS merchant_city_name,ar.region_name AS <API key>,ma.ma_merchant_name AS merchant_name,ma.<API key> AS datetime_approve, cs.cs_description AS merchant_sub_cat, gml.logo_name AS merchant_image
FROM
gl_review gr
INNER JOIN gl_merchant_profile mp ON gr.mp_id = mp.mp_id
INNER JOIN <API key> ma ON mp.ma_id = ma.ma_id
INNER JOIN gl_address_city ac ON mp.city_id = ac.city_id
INNER JOIN gl_address_region ar ON mp.region_id = ar.region_id
INNER JOIN gl_category_sub cs ON ma.cs_id = cs.cs_id
INNER JOIN gl_merchant_logo gml ON gml.mp_id = mp.mp_id
AND ma.pub_id= 1
GROUP BY ref_id
ORDER BY sum_rev DESC, datetime_approve ASC
LIMIT 12)";
$q = $this->db->query($sql);
return ($q->num_rows() > 0) ? $q->result() : false;
}
public function insert_lang($lang_name,$lang_flag){
$this->db->set('lang_name', $lang_name);
$this->db->set('lang_flag', $lang_flag);
$this->db->insert('language');
return ($this->db->affected_rows() > 0) ? true : false;
}
public function check_lang($lang_name){
$this->db->where('lang_name', $lang_name);
$q = $this->db->get('language');
return ($q->num_rows() > 0) ? true : false;
}
public function list_lang(){
$q = $this->db->get('language');
return ($q->num_rows() > 0) ? $q->result_array() : false;
}
public function delete_lang($lang_id){
$this->db->where('lang_id', $lang_id);
$this->db->delete('language');
return ($this->db->affected_rows() > 0) ? true : false;
}
public function bookmarks($ui_id){
$sql = "SELECT
CONCAT_WS('-', REPLACE(`ma`.`ma_merchant_name`, ' ', '-'), REPLACE(`ac`.`city_name`, ' ', '-')) AS `merchant_linkname`,
`mp`.`mp_id` AS `merchant_prof_id`, `ma`.`ma_id` AS `merchant_app_id`, `ma`.`ma_merchant_name` AS `merchant_name`, `ma`.`cm_id` AS `<API key>`,
`cm`.`cm_category` AS `<API key>`, `ma`.`cs_id` AS `merchant_sub_cat_id`, `cs`.`cs_description` AS `<API key>`,
`ma`.`ma_email` AS `merchant_email`, `ma`.`ma_contact_number` AS `<API key>`, `ma`.`ma_status` AS `merchant_status`,
`bk`.book_id AS `book_id`
FROM `gl_bookmark` `bk`
LEFT JOIN `gl_merchant_profile` `mp` ON `mp`.`mp_id` = `bk`.`mp_id`
LEFT JOIN `<API key>` `ma` ON `ma`.`ma_id` = `mp`.`ma_id`
LEFT JOIN `gl_address_city` `ac` ON `ac`.`city_id` = `mp`.`city_id`
LEFT JOIN `gl_category_main` `cm` ON `cm`.`cm_id` = `ma`.`cm_id`
LEFT JOIN `gl_category_sub` `cs` ON `cs`.`cs_id` = `ma`.`cs_id`
LEFT JOIN `gl_address_region` `ar` ON `ar`.`region_id` = `mp`.`region_id`
WHERE `bk`.`ui_id` = '".$ui_id."' ";
$q = $this->db->query($sql);
return ($q->num_rows() > 0) ? $q->result() : false;
}
public function check_bookmark($ui_id , $mp_id){
$sql = "SELECT * FROM `gl_bookmark`
WHERE `ui_id` = '".$ui_id."' AND `mp_id` = '".$mp_id."'";
$q = $this->db->query($sql);
return ($q->num_rows() > 0) ? true : false;
}
public function add_bookmark($data) {
return ($this->db->insert('gl_bookmark',$data))?$this->db->insert_id():false;
}
public function delete_bookmark($ui_id , $book_id){
$sql = "DELETE FROM `gl_bookmark`
WHERE `ui_id` = '".$ui_id."' AND `book_id` = '".$book_id."'";
$q = $this->db->query($sql);
return ($this->db->affected_rows() > 0) ? true : false;
}
}
|
package afk.ge.tokyo.ems.nodes;
import afk.ge.ems.Node;
import afk.ge.tokyo.ems.components.Life;
/**
*
* @author Daniel
*/
public class LifeNode extends Node
{
public Life life;
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Documentation Module: DBConnector</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="stylesheet" href="styles/site.flatly.css">
</head>
<body>
<div class="container-fluid">
<div class="navbar navbar-fixed-top ">
<div class="navbar-inner">
<a class="brand" href="index.html">Documentation</a>
<ul class="nav">
<li class="dropdown">
<a href="modules.list.html" class="dropdown-toggle" data-toggle="dropdown">Modules<b
class="caret"></b></a>
<ul class="dropdown-menu ">
<li>
<a href="module-Dashboard.html">Dashboard</a>
</li>
<li>
<a href="module-DBConnector.html">DBConnector</a>
</li>
<li>
<a href="<API key>.html">MessageCenter</a>
</li>
<li>
<a href="module-Mocks.html">Mocks</a>
</li>
<li>
<a href="module-Widget.html">Widget</a>
</li>
<li>
<a href="module-WidgetMap.html">WidgetMap</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b
class="caret"></b></a>
<ul class="dropdown-menu ">
<li>
<a href="<API key>.html">Dashboard</a>
</li>
<li>
<a href="<API key>.html">Widget</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span8">
<div id="main">
<h1 class="page-title">Module: DBConnector</h1>
<section>
<header>
<h2>
DBConnector
</h2>
</header>
<article>
<div class="container-overview">
<div class="description">Database connector module<br>
Implements ajax data fetching from Cache back-end</div>
<dl class="details">
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<dl>
<dt>
<h4 class="name" id="defaults"><span class="type-signature"><private> </span>defaults<code><span class="type-signature"> :Object</span></code></h4>
</dt>
<dd>
<div class="description">
Default settings for DBConnector
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<h5 class="subsection-title">Properties:</h5>
<dl>
<table class="props table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>username</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">Username to connect to DB</td>
</tr>
<tr>
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">Password to connect to DB</td>
</tr>
</tbody>
</table>
</dl>
</dl>
</dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<table class="table table-stripped">
<tr>
<td>
<h4 class="name" id="acquireData"><span class="type-signature"></span>acquireData<span class="signature">()</span><span class="type-signature"></span></h4>
</td>
<td>
<div class="description">
Does ajax request for data from server
</div>
<dl class="details">
</dl>
<h5>Fires:</h5>
<ul>
<li>module:MessageCenter#event:*_data_acquired</li>
</ul>
<h5>Listens to Events:</h5>
<ul>
<li>module:MessageCenter#event:data_requested</li>
</ul>
</td>
</tr>
<tr>
<td>
<h4 class="name" id="acquireFilters"><span class="type-signature"></span>acquireFilters<span class="signature">()</span><span class="type-signature"></span></h4>
</td>
<td>
<div class="description">
Acquires filter list for cube from server
</div>
<dl class="details">
</dl>
<h5>Fires:</h5>
<ul>
<li>module:MessageCenter#event:filters_acquired</li>
</ul>
<h5>Listens to Events:</h5>
<ul>
<li>module:MessageCenter#event:filters_requested</li>
</ul>
</td>
</tr>
<tr>
<td>
<h4 class="name" id="acquireFilterValues"><span class="type-signature"></span>acquireFilterValues<span class="signature">()</span><span class="type-signature"></span></h4>
</td>
<td>
<div class="description">
Acquire possible values for selected filter
</div>
<dl class="details">
</dl>
<h5>Fires:</h5>
<ul>
<li>module:MessageCenter#event:<API key>[path]</li>
</ul>
<h5>Listens to Events:</h5>
<ul>
<li>module:MessageCenter#event:<API key></li>
</ul>
</td>
</tr>
<tr>
<td>
<h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> → {String}</span></h4>
</td>
<td>
<dl class="details">
</dl>
<h5>Returns:</h5>
<div class="param-desc">
Module name
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
</td>
</tr>
</table>
</article>
</section>
</div>
<div class="clearfix"></div>
<footer>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha8</a>
on 2014-09-11T04:54:51+04:00 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
</div>
<div class="span3">
<div id="toc"></div>
</div>
<br clear="both">
</div>
</div>
<!--<script src="scripts/sunlight.js"></script>-->
<script src="scripts/docstrap.lib.js"></script>
<script src="scripts/bootstrap-dropdown.js"></script>
<script src="scripts/toc.js"></script>
<script>
$( function () {
$( "#toc" ).toc( {
anchorName : function ( i, heading, prefix ) {
return $( heading ).attr( "id" ) || ( prefix + i );
},
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
$('.dropdown-toggle').dropdown();
// $( ".tutorial-section pre, .readme-section pre" ).addClass( "<API key>" ).addClass( "linenums" );
$( ".tutorial-section pre, .readme-section pre" ).each( function () {
var $this = $( this );
var example = $this.find("code" );
exampleText = example.html();
var lang = /{@lang (.*?)}/.exec( exampleText );
if ( lang && lang[1] ) {
exampleText = exampleText.replace( lang[0], "" );
example.html(exampleText);
lang = lang[1];
} else {
lang = "javascript";
}
if ( lang ) {
$this
.addClass( "sunlight-highlight-" + lang )
.addClass( "linenums" )
.html( example.html() );
}
} );
Sunlight.highlightAll( {
lineNumbers : false,
showMenu:true,
enableDoclinks:true
} );
} );
</script>
<!--Google Analytics
<!--Navigation and Symbol Display
</body>
</html>
|
import * as types from '../actions/types';
const search = (state = [], action) => {
switch(action.type) {
case types.<API key>:
return action.data;
case types.SEARCH_INPUT_FAILED:
return action.error.message;
default:
return state;
}
};
export default search;
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Light.Data.Mysql.Test
{
class <API key>
{
#region "Data Property"
private int id;
<summary>
Id
</summary>
<value></value>
public int Id {
get {
return this.id;
}
set {
this.id = value;
}
}
private bool? boolFieldNull;
<summary>
BoolField
</summary>
<value></value>
public bool? BoolFieldNull {
get {
return this.boolFieldNull;
}
set {
this.boolFieldNull = value;
}
}
private sbyte? sbyteFieldNull;
<summary>
SbyteField
</summary>
<value></value>
public sbyte? SbyteFieldNull {
get {
return this.sbyteFieldNull;
}
set {
this.sbyteFieldNull = value;
}
}
private byte? byteFieldNull;
<summary>
ByteField
</summary>
<value></value>
public byte? ByteFieldNull {
get {
return this.byteFieldNull;
}
set {
this.byteFieldNull = value;
}
}
private short? int16FieldNull;
<summary>
Int16Field
</summary>
<value></value>
public short? Int16FieldNull {
get {
return this.int16FieldNull;
}
set {
this.int16FieldNull = value;
}
}
private ushort? uInt16FieldNull;
<summary>
UInt16Field
</summary>
<value></value>
public ushort? UInt16FieldNull {
get {
return this.uInt16FieldNull;
}
set {
this.uInt16FieldNull = value;
}
}
private int? int32FieldNull;
<summary>
Int32Field
</summary>
<value></value>
public int? Int32FieldNull {
get {
return this.int32FieldNull;
}
set {
this.int32FieldNull = value;
}
}
private uint? uInt32FieldNull;
<summary>
UInt32Field
</summary>
<value></value>
public uint? UInt32FieldNull {
get {
return this.uInt32FieldNull;
}
set {
this.uInt32FieldNull = value;
}
}
private long? int64FieldNull;
<summary>
Int64Field
</summary>
<value></value>
public long? Int64FieldNull {
get {
return this.int64FieldNull;
}
set {
this.int64FieldNull = value;
}
}
private ulong? uInt64FieldNull;
<summary>
UInt64Field
</summary>
<value></value>
public ulong? UInt64FieldNull {
get {
return this.uInt64FieldNull;
}
set {
this.uInt64FieldNull = value;
}
}
private float? floatFieldNull;
<summary>
FloatField
</summary>
<value></value>
public float? FloatFieldNull {
get {
return this.floatFieldNull;
}
set {
this.floatFieldNull = value;
}
}
private double? doubleFieldNull;
<summary>
DoubleField
</summary>
<value></value>
public double? DoubleFieldNull {
get {
return this.doubleFieldNull;
}
set {
this.doubleFieldNull = value;
}
}
private decimal? decimalFieldNull;
<summary>
DecimalField
</summary>
<value></value>
public decimal? DecimalFieldNull {
get {
return this.decimalFieldNull;
}
set {
this.decimalFieldNull = value;
}
}
private DateTime? dateTimeFieldNull;
<summary>
DateTimeField
</summary>
<value></value>
public DateTime? DateTimeFieldNull {
get {
return this.dateTimeFieldNull;
}
set {
this.dateTimeFieldNull = value;
}
}
private string varcharFieldNull;
<summary>
VarcharField
</summary>
<value></value>
public string VarcharFieldNull {
get {
return this.varcharFieldNull;
}
set {
this.varcharFieldNull = value;
}
}
private string textFieldNull;
<summary>
TextField
</summary>
<value></value>
public string TextFieldNull {
get {
return this.textFieldNull;
}
set {
this.textFieldNull = value;
}
}
private byte[] bigDataFieldNull;
<summary>
BigDataField
</summary>
<value></value>
public byte[] BigDataFieldNull {
get {
return this.bigDataFieldNull;
}
set {
this.bigDataFieldNull = value;
}
}
private EnumInt32Type enumInt32FieldNull;
<summary>
EnumInt32Field
</summary>
<value></value>
public EnumInt32Type EnumInt32FieldNull {
get {
return this.enumInt32FieldNull;
}
set {
this.enumInt32FieldNull = value;
}
}
private EnumInt64Type enumInt64FieldNull;
<summary>
EnumInt64Field
</summary>
<value></value>
public EnumInt64Type EnumInt64FieldNull {
get {
return this.enumInt64FieldNull;
}
set {
this.enumInt64FieldNull = value;
}
}
#endregion
}
}
|
// YWPayViewController.h
// YuWa
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,PayCategory){
<API key>=0,
PayCategoryWritePay
};
@interface YWPayViewController : UIViewController
@property(nonatomic,assign)PayCategory whichPay;
@property(nonatomic,strong)NSString*shopID;
@property(nonatomic,strong)NSString*shopName;
@property(nonatomic,assign)CGFloat shopZhekou;
@property(nonatomic,assign)CGFloat payAllMoney;
@property(nonatomic,assign)CGFloat NOZheMoney;
+(instancetype)<API key>:(NSString*)shopName andShopID:(NSString*)shopID andZhekou:(CGFloat)shopZhekou;
+(instancetype)<API key>:(NSString*)shopName andShopID:(NSString*)shopID andZhekou:(CGFloat)shopZhekou andpayAllMoney:(CGFloat)payAllMoney andNOZheMoney:(CGFloat)NOZheMoney;
@end
|
.ui.video{position:relative;max-width:100%}.ui.video .placeholder{background-color:#333;display:block;width:100%;height:100%}.ui.video .embed,.ui.video.active .placeholder,.ui.video.active .play{display:none}.ui.video .play{cursor:pointer;position:absolute;top:0;left:0;z-index:10;width:100%;height:100%;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";filter:alpha(opacity=60);opacity:.6;-webkit-transition:opacity .3s;-moz-transition:opacity .3s;transition:opacity .3s}.ui.video .play.icon:before{position:absolute;top:50%;left:50%;z-index:11;font-size:6rem;margin:-3rem 0 0 -3rem;color:#FFF;text-shadow:0 3px 3px rgba(0,0,0,.4)}.ui.video .play:hover{opacity:1}.ui.video.active .embed{display:block}
|
<?php
use PHPUnit\Framework\TestCase;
use voku\helper\HtmlDomHelper;
use voku\helper\HtmlDomParser;
/**
* @internal
*/
final class <API key> extends TestCase
{
public function <API key>()
{
$result = HtmlDomHelper::mergeHtmlAttributes(
'<div class="foo" id="bar" data-foo="bar"></div>',
'class="foo2" data-lall="foo"',
'#bar'
);
self::assertSame('<div class="foo foo2" id="bar" data-foo="bar" data-lall="foo"></div>', $result);
}
}
|
<?php
namespace Youshido\CommentsBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Youshido\CommentsBundle\DependencyInjection\CompilerPass\<API key>;
/**
* Class CommentsBundle
*/
class CommentsBundle extends Bundle
{
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new <API key>());
}
}
|
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="<API key>"><table class="ztable"><tr><th class="ztd1"><b> </b></th><td class="ztd2"></td></tr>
<tr><th class="ztd1"><b> </b></th><td class="ztd2"> </font></td></tr>
</td></tr></table></div> <!-- <API key> --><div class="<API key>"></div> <!-- <API key> --></div> <!-- layoutclass_pic --></td></tr></table>
|
#include <stdio.h>
#include <set>
#include <utility>
#include <vector>
using namespace std;
const int MAXN = 1e+2;
int n, x0, y0;
typedef pair<int, int> point;
set<point> s;
int cross(int x0, int y0, const point &a, const point &b) {
return (a.first - x0) * (b.second - y0) - (a.second - y0) * (b.first - x0);
}
int main() {
scanf("%d %d %d", &n, &x0, &y0);
int x, y;
for (int i = 0; i < n; i++) {
scanf("%d %d", &x, &y);
s.emplace(x, y);
}
int n = s.size();
vector<point> v(s.begin(), s.end());
vector<bool> dead(n);
int count = 0;
for (int i = 0; i < n; i++) {
if (dead[i]) {
continue;
}
dead[i] = true;
count++;
for (int j = i + 1; j < n; j++) {
if (dead[j]) {
continue;
}
if (!cross(x0, y0, v[i], v[j])) {
dead[j] = true;
}
}
}
printf("%d\n", count);
}
|
// 1000.
#include <iostream>
using namespace std;
int unionFind[100001];
int find(int val) {
if (val == unionFind[val]) return val;
unionFind[val] = find(unionFind[val]);
return unionFind[val];
}
int main() {
int a, b;
for (int i = 0; i < 100001; i++) {
unionFind[i] = i;
}
while (cin >> a >> b) {
if (find(a) != find(b)) {
cout << a << ' ' << b << endl;
unionFind[find(a)] = unionFind[find(b)];
}
}
}
|
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
# spec/fixtures/responses/whois.nic.pw/status_available
# and regenerate the tests with the following script
# $ scripts/generate_tests.py
from nose.tools import *
from dateutil.parser import parse as time_parse
import yawhois
class <API key>(object):
def setUp(self):
fixture_path = "spec/fixtures/responses/whois.nic.pw/status_available.txt"
host = "whois.nic.pw"
part = yawhois.record.Part(open(fixture_path, "r").read(), host)
self.record = yawhois.record.Record(None, [part])
def test_status(self):
eq_(self.record.status, [])
def test_available(self):
eq_(self.record.available, True)
def test_domain(self):
eq_(self.record.domain, None)
def test_nameservers(self):
eq_(self.record.nameservers.__class__.__name__, 'list')
eq_(self.record.nameservers, [])
def test_admin_contacts(self):
eq_(self.record.admin_contacts.__class__.__name__, 'list')
eq_(self.record.admin_contacts, [])
def test_registered(self):
eq_(self.record.registered, False)
def test_created_on(self):
eq_(self.record.created_on, None)
def test_registrar(self):
eq_(self.record.registrar, None)
def <API key>(self):
eq_(self.record.registrant_contacts.__class__.__name__, 'list')
eq_(self.record.registrant_contacts, [])
def <API key>(self):
eq_(self.record.technical_contacts.__class__.__name__, 'list')
eq_(self.record.technical_contacts, [])
def test_updated_on(self):
eq_(self.record.updated_on, None)
def test_domain_id(self):
eq_(self.record.domain_id, None)
def test_expires_on(self):
eq_(self.record.expires_on, None)
def test_disclaimer(self):
eq_(self.record.disclaimer, None)
|
<?php
class ProvinceModel extends CI_Model
{
function __construct()
{
parent::__construct();
}
/**
*
* @param $insertRows
* @return mixed
*/
function insert_entry($insertRows)
{
foreach ($insertRows as $key => $val)
{
$this->$key = $val;
}
$res = $this->db->insert('province', $this);
return $res;
}
/**
*
* @param $updateRows
* @return mixed
*/
function update_entry($updateRows)
{
foreach ($updateRows as $key => $val)
{
if ($key !== 'id')
{
$this->$key = $val;
}
}
$res = $this->db->update('province', $this, array('id' => $updateRows['id']));
return $res;
}
/**
*
* @param string $field
* @param $where
* @param int $offset
* @param int $count
* @return mixed
*/
function getData($field = '*', $where = '', $offset = 0, $count = 20)
{
$this->db->select($field);
if (!empty($where) && is_array($where))
{
foreach ($where as $key => $val)
{
$this->db->where($key, $val);
}
}
$query = $this->db->get('province', $count, $offset);
return $query->result();
}
/**
*
* @return mixed
*/
function getCount()
{
return $this->db->count_all('province');
}
}
|
.sidenav {
height: 100%;
width: 0;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
transition: 0.5s;
padding-top: 60px;
}
.sidenav a {
padding: 8px 8px 8px 32px;
text-decoration: none;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
}
.sidenav a:hover, .offcanvas a:focus{
color: #f1f1f1;
}
.sidenav .closebtn {
position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About KCz</source>
<translation>در مورد KCz</translation>
</message>
<message>
<location line="+39"/>
<source><b>KCz</b> version</source>
<translation>نسخه KCz</translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http:
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http:
<translation>⏎ ⏎ این نسخه نرم افزار آزمایشی است⏎ ⏎ نرم افزار تحت لیسانس MIT/X11 منتشر شده است. به فایل coping یا آدرس http:
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The KCz developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>فهرست آدرس</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>برای ویرایش آدرس یا بر چسب دو بار کلیک کنید</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>آدرس جدید ایجاد کنید</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>آدرس انتخاب شده در سیستم تخته رسم گیره دار کپی کنید</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>آدرس جدید</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your KCz addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation>این آدرسها، آدرسهای KCz شما برای دریافت وجوه هستند. شما ممکن است آدرسهای متفاوت را به هر گیرنده اختصاص دهید که بتوانید مواردی که پرداخت می کنید را پیگیری نمایید</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>کپی آدرس</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>نمایش &کد QR</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a KCz address</source>
<translation>پیام را برای اثبات آدرس KCz خود امضا کنید</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>امضا و پیام</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>آدرس انتخاب شده در سیستم تخته رسم گیره دا حذف</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>داده ها نوارِ جاری را به فایل انتقال دهید</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified KCz address</source>
<translation>یک پیام را برای حصول اطمینان از ورود به سیستم با آدرس KCz مشخص، شناسایی کنید</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>شناسایی پیام</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>حذف</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your KCz addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>کپی و برچسب گذاری</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>ویرایش</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>آدرس انتخاب شده در سیستم تخته رسم گیره دار کپی کنید</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Comma separated file (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>خطای صدور</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>تا فایل %1 نمی شود نوشت</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>بر چسب</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>آدرس</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>بدون برچسب</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>دیالوگ Passphrase </translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>وارد عبارت عبور</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>عبارت عبور نو</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>تکرار عبارت عبور نو</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>وارد کنید..&lt;br/&gt عبارت عبور نو در پنجره
10 یا بیشتر کاراکتورهای تصادفی استفاده کنید &lt;b&gt لطفا عبارت عبور</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>رمز بندی پنجره</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>این عملیت نیاز عبارت عبور پنجره شما دارد برای رمز گشایی آن</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>تکرار عبارت عبور نو</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>این عملیت نیاز عبارت عبور شما دارد برای رمز بندی آن</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>رمز بندی پنجره</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>تغییر عبارت عبور</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>عبارت عبور نو و قدیم در پنجره وارد کنید</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>تایید رمز گذاری</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOMMODITIZ</b>!</source>
<translation>هشدار: اگر wallet رمزگذاری شود و شما passphrase را گم کنید شما همه اطلاعات KCz را از دست خواهید داد.</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>آیا اطمینان دارید که می خواهید wallet رمزگذاری شود؟</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>هشدار: Caps lock key روشن است</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>تغییر عبارت عبور</translation>
</message>
<message>
<location line="-56"/>
<source>KCz will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your KCzs from being stolen by malware infecting your computer.</source>
<translation>Biticon هم اکنون بسته میشود تا فرایند رمزگذاری را تمام کند. به خاطر داشته باشید که رمزگذاری کیف پولتان نمیتواند به طور کامل بیتیکونهای شما را در برابر دزدیده شدن توسط بدافزارهایی که رایانه شما را آلوده میکنند، محافظت نماید.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>عبارت عبور نو و قدیم در پنجره وارد کنید</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>تنا موفق رمز بندی پنجره ناشی از خطای داخل شد. پنجره شما مرز بندی نشده است</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>عبارت عبور عرضه تطابق نشد</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>نجره رمز گذار شد</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>اموفق رمز بندی پنجر</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>ناموفق رمز بندی پنجره</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>wallet passphrase با موفقیت تغییر یافت</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>امضا و پیام</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>همگام سازی با شبکه ...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>بررسی اجمالی</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>نمای کلی پنجره نشان بده</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&معاملات</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>نمایش تاریخ معاملات</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>ویرایش لیست آدرسها و بر چسب های ذخیره ای</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>نمایش لیست آدرس ها برای در یافت پر داخت ها</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>خروج</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>خروج از برنامه </translation>
</message>
<message>
<location line="+4"/>
<source>Show information about KCz</source>
<translation>نمایش اطلاعات در مورد بیتکویین</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>درباره &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>نمایش اطلاعات درباره Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>تنظیمات...</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>رمزگذاری wallet</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>پشتیبان گیری از wallet</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>تغییر Passphrase</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-347"/>
<source>Send coins to a KCz address</source>
<translation>سکه ها را به آدرس bitocin ارسال کن</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for KCz</source>
<translation>انتخابهای پیکربندی را برای KCz اصلاح کن</translation>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation>نسخه پیشتیبان wallet را به محل دیگر انتقال دهید</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>عبارت عبور رمز گشایی پنجره تغییر کنید</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>اشکال زدایی از صفحه</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>کنسول اشکال زدایی و تشخیص را باز کنید</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>بازبینی پیام</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>KCz</source>
<translation>یت کویین </translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>wallet</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>&About KCz</source>
<translation>در مورد KCz</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&نمایش/ عدم نمایش</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your KCz addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified KCz addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>فایل</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>تنظیمات</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>کمک</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>نوار ابزار زبانه ها</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>آزمایش شبکه</translation>
</message>
<message>
<location line="+47"/>
<source>KCz client</source>
<translation>مشتری KCz</translation>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to KCz network</source>
<translation><numerusform>در صد ارتباطات فعال بیتکویین با شبکه %n</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>تا تاریخ</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>ابتلا به بالا</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>هزینه تراکنش را تایید کنید</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>معامله ارسال شده</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>معامله در یافت شده</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>تاریخ %1
مبلغ%2
نوع %3
آدرس %4</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation>مدیریت URI</translation>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid KCz address or malformed URI parameters.</source>
<translation>URI قابل تحلیل نیست. این خطا ممکن است به دلیل ادرس LITECOIN اشتباه یا پارامترهای اشتباه URI رخ داده باشد</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>زمایش شبکهه</translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>زمایش شبکه</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. KCz can no longer continue safely and will quit.</source>
<translation>خطا روی داده است. KCz نمی تواند بدون مشکل ادامه دهد و باید بسته شود</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation>پیام شبکه</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>اصلاح آدرس</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>بر چسب</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>بر چسب با دفتر آدرس ورود مرتبط است</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>آدرس</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>آدرس با دفتر آدرس ورودی مرتبط است. این فقط در مورد آدرسهای ارسال شده است</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>آدرس در یافت نو</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>آدرس ارسال نو</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>اصلاح آدرس در یافت</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>اصلاح آدرس ارسال</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>%1آدرس وارد شده دیگر در دفتر آدرس است</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid KCz address.</source>
<translation>آدرس وارد شده %1 یک ادرس صحیح KCz نیست</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>رمز گشایی پنجره امکان پذیر نیست</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>کلید نسل جدید ناموفق است</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>KCz-Qt</source>
<translation>KCz-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>نسخه</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>ستفاده :</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>انتخابها برای خطوط دستور command line</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>انتخابهای UI </translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>زبان را تنظیم کنید برای مثال "de_DE" (پیش فرض: system locale)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>شروع حد اقل</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>نمایش صفحه splash در STARTUP (پیش فرض:1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>اصلی</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>اصلی</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>دستمزد&پر داخت معامله</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start KCz after logging in to the system.</source>
<translation>در زمان ورود به سیستم به صورت خودکار KCz را اجرا کن</translation>
</message>
<message>
<location line="+3"/>
<source>&Start KCz on system login</source>
<translation>اجرای KCz در زمان ورود به سیستم</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>شبکه</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the KCz client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>اتوماتیک باز کردن بندر بیتکویین در روتر . این فقط در مواردی می باشد که روتر با کمک یو پ ن پ کار می کند</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>درگاه با استفاده از</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the KCz network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>اتصال به شبکه LITECOIN از طریق پراکسی ساکس (برای مثال وقتی از طریق نرم افزار TOR متصل می شوید)</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>اتصال با پراکسی SOCKS</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>پراکسی و آی.پی.</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>درس پروکسی</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>درگاه</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>درگاه پراکسی (مثال 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>SOCKS و نسخه</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>نسخه SOCKS از پراکسی (مثال 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>صفحه</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>tray icon را تنها بعد از کوچک کردن صفحه نمایش بده</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>حد اقل رساندن در جای نوار ابزار ها</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>حد اقل رساندن در جای خروج بر نامه وقتیکه پنجره بسته است.وقتیکه این فعال است برنامه خاموش می شود بعد از انتخاب دستور خاموش در منیو</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>کوچک کردن صفحه در زمان بستن</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>نمایش</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>میانجی کاربر و زبان</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting KCz.</source>
<translation>زبان میانجی کاربر می تواند در اینجا تنظیم شود. این تنظیمات بعد از شروع دوباره RESTART در LITECOIN اجرایی خواهند بود.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>واحد برای نمایش میزان وجوه در:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>بخش فرعی پیش فرض را برای نمایش میانجی و زمان ارسال سکه ها مشخص و انتخاب نمایید</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show KCz addresses in the transaction list or not.</source>
<translation>تا آدرسهای bITCOIN در فهرست تراکنش نمایش داده شوند یا نشوند.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>نمایش آدرسها در فهرست تراکنش</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>تایید</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>رد</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>انجام</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation>پیش فرض</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>هشدار</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting KCz.</source>
<translation>این تنظیمات پس از اجرای دوباره KCz اعمال می شوند</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>آدرس پراکسی داده شده صحیح نیست</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>تراز</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the KCz network after a connection is established, but this process has not completed yet.</source>
<translation>اطلاعات نمایش داده شده روزآمد نیستند.wallet شما به صورت خودکار با شبکه KCz بعد از برقراری اتصال روزآمد می شود اما این فرایند هنوز کامل نشده است.</translation>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>راز:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>تایید نشده</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>wallet</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation>نابالغ</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>بالانس/تتمه حساب استخراج شده، نابالغ است /تکمیل نشده است</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation>اخرین معاملات&lt</translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>تزار جاری شما</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>تعداد معاملات که تایید شده ولی هنوز در تزار جاری شما بر شمار نرفته است</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>روزآمد نشده</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start KCz: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>دیالوگ QR CODE</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>درخواست پرداخت</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>مقدار:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>برچسب:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>پیام</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&ذخیره به عنوان...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>خطا در زمان رمزدار کردن URI در کد QR</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>میزان وجه وارد شده صحیح نیست، لطفا بررسی نمایید</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>URI ذکر شده بسیار طولانی است، متن برچسب/پیام را کوتاه کنید</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>ذخیره کد QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>تصاویر با فرمت PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>نام مشتری</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation>-</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>نسخه مشتری</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>اطلاعات</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>استفاده از نسخه OPENSSL</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>زمان آغاز STARTUP</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>شبکه</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>تعداد اتصالات</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>در testnetکها</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>زنجیره بلاک</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>تعداد کنونی بلاکها</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>تعداد تخمینی بلاکها</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>زمان آخرین بلاک</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>باز کردن</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>گزینه های command-line</translation>
</message>
<message>
<location line="+7"/>
<source>Show the KCz-Qt help message to get a list with possible KCz command-line options.</source>
<translation>پیام راهنمای KCz-Qt را برای گرفتن فهرست گزینه های command-line نشان بده</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>نمایش</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>کنسول</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>ساخت تاریخ</translation>
</message>
<message>
<location line="-104"/>
<source>KCz - Debug window</source>
<translation>صفحه اشکال زدایی KCz </translation>
</message>
<message>
<location line="+25"/>
<source>KCz Core</source>
<translation> هسته KCz </translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>فایلِ لاگِ اشکال زدایی</translation>
</message>
<message>
<location line="+7"/>
<source>Open the KCz debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation>فایلِ لاگِ اشکال زدایی KCz را از دایرکتوری جاری داده ها باز کنید. این عملیات ممکن است برای فایلهای لاگِ حجیم طولانی شود.</translation>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>پاکسازی کنسول</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the KCz RPC console.</source>
<translation>به کنسول KCz RPC خوش آمدید</translation>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>دکمه های بالا و پایین برای مرور تاریخچه و Ctrl-L برای پاکسازی صفحه</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>با تایپ عبارت HELP دستورهای در دسترس را مرور خواهید کرد</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>ارسال سکه ها</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>ارسال چندین در یافت ها فورا</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>اضافه کردن دریافت کننده</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>پاک کردن تمام ستونهای تراکنش</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>پاکسازی همه</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>تزار :</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123.456 بتس</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>عملیت دوم تایید کنید</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&;ارسال</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation>(%3) تا <b>%1</b> درصد%2</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>ارسال سکه ها تایید کنید</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation> %1شما متماینید که می خواهید 1% ارسال کنید ؟</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation>و</translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>آدرس گیرنده نادرست است، لطفا دوباره بررسی کنید.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>مبلغ پر داخت باید از 0 بیشتر باشد </translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>میزان وجه از بالانس/تتمه حساب شما بیشتر است</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>کل میزان وجه از بالانس/تتمه حساب شما بیشتر می شود وقتی %1 هزینه تراکنش نیز به ین میزان افزوده می شود</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>آدرس تکراری یافت شده است، در زمان انجام عملیات به هر آدرس تنها یکبار می توانید اطلاعات ارسال کنید</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>خطا: تراکنش تایید نشد. این پیام زمانی روی می دهد که مقداری از سکه های WALLET شما استفاده شده اند برای مثال اگر شما از WALLET.DAT استفاده کرده اید، ممکن است سکه ها استفاده شده باشند اما در اینجا نمایش داده نشوند</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>تراز</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>A&مبلغ :</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>به&پر داخت :</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>برای آدرس بر پسب وارد کنید که در دفتر آدرس اضافه شود</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&بر چسب </translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>اآدرسن ازدفتر آدرس انتخاب کنید</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>آدرس از تخته رسم گیره دار پست کنید </translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation>بر داشتن این در یافت کننده</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a KCz address (e.g. <API key>)</source>
<translation>آدرس بیتکویین وارد کنید (bijvoorbeeld: <API key>)</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>امضا - امضا کردن /شناسایی یک پیام</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&امضای پیام</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>شما می توانید پیامها را با آدرس خودتان امضا نمایید تا ثابت شود متعلق به شما هستند. مواظب باشید تا چیزی که بدان مطمئن نیستنید را امضا نکنید زیرا حملات فیشینگ در زمان ورود شما به سیستم فریبنده هستند. تنها مواردی را که حاوی اطلاعات دقیق و قابل قبول برای شما هستند را امضا کنید</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. <API key>)</source>
<translation>آدرس برای امضا کردن پیام با (برای مثال <API key>)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>یک آدرس را از فهرست آدرسها انتخاب کنید</translation>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>آدرس از تخته رسم گیره دار پست کنید </translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>پیامی را که میخواهید امضا کنید در اینجا وارد کنید</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>این امضا را در system clipboard کپی کن</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this KCz address</source>
<translation>پیام را برای اثبات آدرس LITECOIN خود امضا کنید</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation>تنظیم دوباره تمامی فیلدهای پیام</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>پاکسازی همه</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>تایید پیام</translation>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>آدرس/پیام خود را وارد کنید (مطمئن شوید که فاصله بین خطوط، فاصله ها، تب ها و ... را دقیقا کپی می کنید) و سپس امضا کنید تا پیام تایید شود. مراقب باشید که پیام را بیشتر از مطالب درون امضا مطالعه نمایید تا فریب شخص سوم/دزدان اینترنتی را نخورید.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. <API key>)</source>
<translation>آدرس برای امضا کردن پیام با (برای مثال <API key>)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified KCz address</source>
<translation>پیام را برای اطمنان از ورود به سیستم با آدرس LITECOIN مشخص خود،تایید کنید</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>تنظیم دوباره تمامی فیلدهای پیام تایید شده</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a KCz address (e.g. <API key>)</source>
<translation>آدرس بیتکویین وارد کنید (bijvoorbeeld: <API key>)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>با کلیک بر "امضای پیام" شما یک امضای جدید درست می کنید</translation>
</message>
<message>
<location line="+3"/>
<source>Enter KCz signature</source>
<translation>امضای BITOCOIN خود را وارد کنید</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>آدرس وارد شده صحیح نیست</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>اطفا آدرس را بررسی کرده و دوباره امتحان کنید</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>آدرس وارد شده با کلید وارد شده مرتبط نیست</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>قفل کردن wallet انجام نشد</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>کلید شخصی برای آدرس وارد شده در دسترس نیست</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>پیام امضا کردن انجام نشد</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>پیام امضا شد</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>امضا نمی تواند رمزگشایی شود</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>لطفا امضا را بررسی و دوباره تلاش نمایید</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>امضا با تحلیلِ پیام مطابقت ندارد</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>عملیات شناسایی پیام انجام نشد</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>پیام شناسایی شد</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The KCz developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation>آزمایش شبکه</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>باز کردن تا%1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1 آفلاین</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1 تایید نشده </translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>ایید %1 </translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>وضعیت</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>انتشار از طریق n% گره
انتشار از طریق %n گره</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>تاریخ </translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>منبع</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>تولید شده</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>فرستنده</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>گیرنده</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>آدرس شما</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>برچسب</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>بدهی </translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>بلوغ در n% از بیشتر بلاکها
بلوغ در %n از بیشتر بلاکها</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>غیرقابل قبول</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>اعتبار</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>هزینه تراکنش</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>هزینه خالص</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>پیام</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>نظر</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>شناسه کاربری برای تراکنش</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>سکه های ایجاد شده باید 120 بلاک را قبل از استفاده بالغ کنند. در هنگام ایجاد بلاک، آن بلاک در شبکه منتشر می شود تا به زنجیره بلاکها بپیوندد. اگر در زنجیره قرار نگیرد، پیام وضعیت به غیرقابل قبول تغییر می بپیابد و قابل استفاده نیست. این مورد معمولا زمانی پیش می آید که گره دیگری به طور همزمان بلاکی را با فاصل چند ثانیه ای از شما ایجاد کند.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>اشکال زدایی طلاعات</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>تراکنش</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation>درونداد</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>مبلغ</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>صحیح</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>نادرست</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>هنوز با مو فقیت ارسال نشده</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>مشخص نیست </translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Transaction details</source>
<translation>جزییات معاملات</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>در این قاب شیشه توصیف دقیق معامله نشان می شود</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../<API key>.cpp" line="+225"/>
<source>Date</source>
<translation>تاریخ</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>نوع</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>ایل جدا </translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>مبلغ</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>از شده تا 1%1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>افلایین (%1)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>تایید نشده (%1/%2)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>تایید شده (%1)</translation>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation><numerusform>بالانس/تتمه حساب استخراج شده زمانی که %n از بیشتر بلاکها بالغ شدند در دسترس خواهد بود
بالانس/تتمه حساب استخراج شده زمانی که n% از بیشتر بلاکها بالغ شدند در دسترس خواهد بود</numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>این بلوک از دیگر گره ها در یافت نشده بدین دلیل شاید قابل قابول نیست</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>تولید شده ولی قبول نشده</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>در یافت با :</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>دریافتی از</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>ارسال به :</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>پر داخت به خودتان</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>استخراج</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(کاربرد ندارد)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>وضعیت معالمه . عرصه که تعداد تایید نشان می دهد</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>تاریخ و ساعت در یافت معامله</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>نوع معاملات</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>آدرس مقصود معاملات </translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>مبلغ از تزار شما خارج یا وارد شده</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>همه</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>امروز</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>این هفته</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>این ماه</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>ماه گذشته</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>امسال</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>محدوده </translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>در یافت با</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>ارسال به</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>به خودتان </translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>استخراج</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>یگر </translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>برای جستوجو نشانی یا برچسب را وارد کنید</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>حد اقل مبلغ </translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>کپی آدرس </translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>کپی بر چسب</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>روگرفت مقدار</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>اصلاح بر چسب</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>جزئیات تراکنش را نمایش بده</translation>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation>صادرات تاریخ معامله</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Comma فایل جدا </translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>تایید شده</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>تاریخ </translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>نوع </translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>ر چسب</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>ایل جدا </translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>مبلغ</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>آی دی</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>خطای صادرت</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>تا فایل %1 نمی شود نوشت</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>>محدوده</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>به</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>ارسال سکه ها</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>داده ها نوارِ جاری را به فایل انتقال دهید</translation>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>KCz version</source>
<translation>سخه بیتکویین</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>ستفاده :</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or KCzd</source>
<translation>ارسال فرمان به سرور یا باتکویین</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>لیست فومان ها</translation>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation>کمک برای فرمان </translation>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>تنظیمات</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: KCz.conf)</source>
<translation>(: KCz.confپیش فرض: )فایل تنظیمی خاص </translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: KCzd.pid)</source>
<translation>(KCzd.pidپیش فرض : ) فایل پید خاص</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>دایرکتور اطلاعاتی خاص</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>سایز کَش بانک داده را بر حسب مگابایت تنظیم کنید (پیش فرض:25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 9333 or testnet: 19333)</source>
<translation>برای اتصالات به <port> (پیشفرض: 9333 یا تستنت: 19333) گوش کنید</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>حداکثر <n> اتصال با همکاران برقرار داشته باشید (پیشفرض: 125)</translation>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>اتصال به گره برای دریافت آدرسهای قرینه و قطع اتصال</translation>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation>آدرس عمومی خود را ذکر کنید</translation>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>آستانه برای قطع ارتباط با همکاران بدرفتار (پیشفرض: 100)</translation>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>مدت زمان به ثانیه برای جلوگیری از همکاران بدرفتار برای اتصال دوباره (پیشفرض: 86400)</translation>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>در زمان تنظیم درگاه RPX %u در فهرست کردن %s اشکالی رخ داده است</translation>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9332 or testnet: 19332)</source>
<translation>( 9332پیش فرض :) &lt;poort&gt; JSON-RPC شنوایی برای ارتباطات</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>JSON-RPC قابل فرمانها و</translation>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>اجرای در پس زمینه به عنوان شبح و قبول فرمان ها</translation>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation>استفاده شبکه آزمایش</translation>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>پذیرش اتصالات از بیرون (پیش فرض:1 بدون پراکسی یا اتصال)</translation>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=KCzrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "KCz Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. KCz is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation>حجم حداکثر تراکنشهای با/کم اهمیت را به بایت تنظیم کنید (پیش فرض:27000)</translation>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>هشدار:paytxfee بسیار بالا تعریف شده است! این هزینه تراکنش است که باید در زمان ارسال تراکنش بپردازید</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation>هشدار: تراکنش نمایش داده شده ممکن است صحیح نباشد! شما/یا یکی از گره ها به روزآمد سازی نیاز دارید </translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong KCz will not work properly.</source>
<translation>هشدار: لطفا زمان و تاریخ رایانه خود را تصحیح نمایید! اگر ساعت رایانه شما اشتباه باشد KCz ممکن است صحیح کار نکند</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation>بستن گزینه ایجاد</translation>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation>تنها در گره (های) مشخص شده متصل شوید</translation>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>آدرس آی.پی. خود را شناسایی کنید (پیش فرض:1 در زمان when listening وno -externalip)</translation>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>شنیدن هر گونه درگاه انجام پذیر نیست. ازlisten=0 برای اینکار استفاده کیند.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation>قرینه ها را برای جستجوی DNS بیاب (پیش فرض: 1 مگر در زمان اتصال)</translation>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>آدرس نرم افزار تور غلط است %s</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>حداکثر بافر دریافت شده بر اساس اتصال <n>* 1000 بایت (پیش فرض:5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>حداکثر بافر دریافت شده بر اساس اتصال <n>* 1000 بایت (پیش فرض:1000)</translation>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>تنها =به گره ها در شبکه متصا شوید <net> (IPv4, IPv6 or Tor)</translation>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>برونداد اطلاعات اشکال زدایی اضافی. گزینه های اشکال زدایی دیگر رفع شدند</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation>برونداد اطلاعات اشکال زدایی اضافی برای شبکه</translation>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>به خروجی اشکالزدایی برچسب زمان بزنید</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the KCz Wiki for SSL setup instructions)</source>
<translation>گزینه ssl (به ویکیKCz برای راهنمای راه اندازی ssl مراجعه شود)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>نسخه ای از پراکسی ساکس را برای استفاده انتخاب کنید (4-5 پیش فرض:5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>اطلاعات ردگیری/اشکالزدایی را به جای فایل لاگ اشکالزدایی به کنسول بفرستید</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>اطلاعات ردگیری/اشکالزدایی را به اشکالزدا بفرستید</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>حداکثر سایز بلاک بر اساس بایت تنظیم شود (پیش فرض: 250000)</translation>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>حداقل سایز بلاک بر اساس بایت تنظیم شود (پیش فرض: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>فایل debug.log را در startup مشتری کوچک کن (پیش فرض:1 اگر اشکال زدایی روی نداد)</translation>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>(میلی ثانیه )فاصله ارتباط خاص</translation>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>از UPnP برای شناسایی درگاه شنیداری استفاده کنید (پیش فرض:0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>از UPnP برای شناسایی درگاه شنیداری استفاده کنید (پیش فرض:1 در زمان شنیدن)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation>برای دستیابی به سرویس مخفیانه نرم افزار تور از پراکسی استفاده کنید (پیش فرض:same as -proxy)</translation>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>JSON-RPC شناسه برای ارتباطات</translation>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>هشدار: این نسخه قدیمی است، روزآمدسازی مورد نیاز است</translation>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation>JSON-RPC عبارت عبور برای ارتباطات</translation>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>از آدرس آی پی خاص JSON-RPC قبول ارتباطات</translation>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>(127.0.0.1پیش فرض: ) &lt;ip&gt; دادن فرمانها برای استفاده گره ها روی</translation>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>زمانی که بهترین بلاک تغییر کرد، دستور را اجرا کن (%s در cmd با block hash جایگزین شده است)</translation>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation>wallet را به جدیدترین فرمت روزآمد کنید</translation>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation> (100پیش فرض:)&lt;n&gt; گذاشتن اندازه کلید روی </translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>اسکان مجدد زنجیر بلوکها برای گم والت معامله</translation>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>JSON-RPCبرای ارتباطات استفاده کنید OpenSSL (https)</translation>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation> (server.certپیش فرض: )گواهی نامه سرور</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>(server.pemپیش فرض: ) کلید خصوصی سرور</translation>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>رمز های قابل قبول( TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation>پیام کمکی</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>امکان اتصال به %s از این رایانه وجود ندارد ( bind returned error %d, %s)</translation>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation>اتصال از طریق پراکسی ساکس</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>به DNS اجازه بده تا برای addnode ، seednode و اتصال جستجو کند</translation>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>بار گیری آدرس ها</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>خطا در بارگیری wallet.dat: کیف پول خراب شده است</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of KCz</source>
<translation>خطا در بارگیری wallet.dat: کیف پول به ویرایش جدیدتری از Biticon نیاز دارد</translation>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart KCz to complete</source>
<translation>سلام</translation>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation>خطا در بارگیری wallet.dat</translation>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>آدرس پراکسی اشتباه %s</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>شبکه مشخص شده غیرقابل شناسایی در onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>نسخه پراکسی ساکس غیرقابل شناسایی درخواست شده است: %i</translation>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>آدرس قابل اتصال- شناسایی نیست %s</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>آدرس خارجی قابل اتصال- شناسایی نیست %s</translation>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>میزان وجه اشتباه برای paytxfee=<میزان وجه>: %s</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>میزان وجه اشتباه</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>بود جه نا کافی </translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>بار گیری شاخص بلوک</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>به اتصال یک گره اضافه کنید و اتصال را باز نگاه دارید</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. KCz is probably already running.</source>
<translation>اتصال به %s از این رایانه امکان پذیر نیست. KCz احتمالا در حال اجراست.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>پر داجت برای هر کیلو بیت برای اضافه به معامله ارسال</translation>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>بار گیری والت</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation>امکان تنزل نسخه در wallet وجود ندارد</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>آدرس پیش فرض قابل ذخیره نیست</translation>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>اسکان مجدد</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>بار گیری انجام شده است</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation>برای استفاده از %s از انتخابات</translation>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>خطا</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>%s، شما باید یک rpcpassword را در فایل پیکربندی تنظیم کنید :⏎%s⏎ اگر فایل ایجاد نشد، یک فایل فقط متنی ایجاد کنید.
</translation>
</message>
</context>
</TS>
|
<?php
namespace APP\AppBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use APP\AppBundle\Entity\Cliente;
use APP\AppBundle\Form\ClienteType;
/**
* Cliente controller.
*
*/
class ClienteController extends Controller {
/**
* Lists all Cliente entities.
*
*/
public function indexAction() {
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('AppBundle:Cliente')->findAll();
return $this->render('AppBundle:Cliente:index.html.twig', array(
'entities' => $entities,
));
}
/**
* Creates a new Cliente entity.
*
*/
public function createAction(Request $request) {
$entity = new Cliente();
$form = $this->CreateForm(ClienteType::class, $entity);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$entity->setFechaAlta(new \DateTime());
$entity->setFechaMod(new \DateTime());
$usuario = $this->get('security.token_storage')->getToken()->getUser();
$entity->setUsuarioAlta($usuario);
$entity->setUsuarioMod($usuario);
$em->persist($entity);
$em->flush();
return $this->redirect($this->generateUrl('cliente'));
}
return $this->render('AppBundle:Cliente:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
));
}
public function createAjaxAction(Request $request) {
if ($request->getMethod() == "POST") {
$em = $this->getDoctrine()->getManager();
$name = $request->get('name');
$entity = new Cliente();
$entity->setNombre($name);
$usuarioAlta = $this->get('security.token_storage')->getToken()->getUser();
$entity->setUsuarioAlta($usuarioAlta);
$em->persist($entity);
$em->flush();
}
return $this->render("AppBundle:Default:_newOptionEntity.html.twig", array(
'entity' => $entity
));
}
/**
* Displays a form to create a new Cliente entity.
*
*/
public function newAction() {
$entity = new Cliente();
$form = $this->CreateForm(ClienteType::class, $entity);
return $this->render('AppBundle:Cliente:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
));
}
/**
* Finds and displays a Cliente entity.
*
*/
public function showAction($id) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('AppBundle:Cliente')->find($id);
if (!$entity) {
throw $this-><API key>('Unable to find Cliente entity.');
}
$deleteForm = $this->createForm(ClienteType::class);
return $this->render('AppBundle:Cliente:show.html.twig', array(
'entity' => $entity,
'delete_form' => $deleteForm->createView(),
));
}
/**
* Displays a form to edit an existing Cliente entity.
*
*/
public function editAction($id) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('AppBundle:Cliente')->find($id);
if (!$entity) {
throw $this-><API key>('Unable to find Cliente entity.');
}
$editForm = $this->createForm(ClienteType::class, $entity);
return $this->render('AppBundle:Cliente:edit.html.twig', array(
'entity' => $entity,
'form' => $editForm->createView()
));
}
/**
* Edits an existing Cliente entity.
*
*/
public function updateAction(Request $request, $id) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('AppBundle:Cliente')->find($id);
if (!$entity) {
throw $this-><API key>('Unable to find Cliente entity.');
}
$editForm = $this->createForm(ClienteType::class, $entity);
$editForm->handleRequest($request);
if ($editForm->isValid()) {
/** @var $entity Cliente */
$usuario = $this->get('security.token_storage')->getToken()->getUser();
$entity->setFechaMod(new \DateTime());
$entity->setUsuarioMod($usuario);
$em->persist($entity);
$em->flush();
$this->setFlash('success', 'Los cambios se han realizado con éxito');
return $this->redirect($this->generateUrl('compania_edit', array('id' => $id)));
}
$this->setFlash('error', 'Ha ocurrido un error');
return $this->render('AppBundle:Cliente:edit.html.twig', array(
'entity' => $entity,
'form' => $editForm->createView(),
));
}
/**
* Deletes a Cliente entity.
*
*/
public function deleteAction(Request $request, $id) {
$form = $this->createDeleteForm($id);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('AppBundle:Cliente')->find($id);
if (!$entity) {
throw $this-><API key>('Unable to find Cliente entity.');
}
$em->remove($entity);
$em->flush();
}
return $this->redirect($this->generateUrl('cliente'));
}
/**
* Creates a form to delete a Cliente entity by id.
*
* @param mixed $id The entity id
*
* @return \Symfony\Component\Form\Form The form
*/
private function createDeleteForm($id) {
return $this->createFormBuilder()
->setAction($this->generateUrl('companias_delete', array('id' => $id)))
->setMethod('DELETE')
->add('submit', 'submit', array('label' => 'Delete'))
->getForm()
;
}
private function setFlash($index, $message) {
$this->get('session')->getFlashBag()->clear();
$this->get('session')->getFlashBag()->add($index, $message);
}
}
|
WebsiteOne::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching.
config.<API key> = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send.
config.action_mailer.<API key> = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.<API key> = true
config.action_mailer.smtp_settings = {
:address => 'smtp.gmail.com',
:port => 587,
:domain => '',
:user_name => 'wso.av.test@gmail.com',
:password => 'Wso12345',
:authentication => 'plain',
:<API key> => true }
end
|
# sails.config.models
Your default project-wide **model settings**, conventionally specified in the [config/models.js](http://sailsjs.com/documentation/anatomy/myApp/config/models-js) configuration file.
Most of the settings below can also be overridden on a per-model basis-- just edit the appropriate model definition file. There are also some additional model settings, not listed below, which can _only_ be specified on a per-model basis. For more details, see [Concepts > Model Settings](http://sailsjs.com/documentation/concepts/orm/model-settings).
Properties
Property | Type | Default | Details
:
`attributes` | ((dictionary)) | _see [Attributes](http:
`migrate` | ((string)) | _see [Model Settings](http://sailsjs.com/documentation/concepts/orm/model-settings)_ | The [auto-migration strategy](http://sailsjs.com/documentation/concepts/models-and-orm/model-settings#?migrate) for your Sails app. How & whether Sails will attempt to automatically rebuild the tables/collections/etc. in your schema every time it lifts.
`schema` | ((boolean)) | `false` | Only relevant for models hooked up to a schemaless database like MongoDB. If set to `true`, then the ORM will switch into "schemaful" mode. For example, if properties passed in to `.create()`, `.createEach()`, or `.update()` do not correspond with recognized attributes, then they will be stripped out before saving.
`datastore` | ((string)) | `'default'` | The default [datastore configuration](http://sailsjs.com/documentation/reference/sails-config/<API key>) any given model will use without a configured override. Avoid changing this.
`primaryKey` | ((string)) | `'id'` | The name of the attribute that every model in your app should use as its primary key by default. Can be overridden here, or on a per-model basis-- but there's [usually a better way](http://sailsjs.com/documentation/concepts/models-and-orm/model-settings#?primarykey).
<docmeta name="displayName" value="sails.config.models">
<docmeta name="pageType" value="property">
|
require "presigner/version"
require 'aws-sdk-v1'
class Presigner
DEFAULT_DURATION = 60 * 30
def initialize(options)
@bucket = options[:bucket]
@key = options[:key]
@duration = options[:duration] || DEFAULT_DURATION
@region = options[:region] || "us-east-1"
@base = Time.now.to_i
end
attr_reader :duration, :base, :bucket, :key, :region
def generate
s3 = AWS::S3.new(region: region)
# check if specified bucket and key exist.
begin
target_obj = s3.buckets[bucket].objects[key]
if !target_obj.exists?
$stderr.puts "Specified bucket or key does not exist."
exit 1
end
rescue AWS::S3::Errors::Forbidden
$stderr.puts "Access to the S3 object is denied. Credential or target name might be wrong"
exit 1
end
if !target_obj.exists?
$stderr.puts "Specified bucket or key does not exist."
exit 1
end
presigner = AWS::S3::PresignV4.new(target_obj)
expires = calc_duration
url = presigner.presign(:get, expires: base + duration, secure: true)
url
end
def calc_duration
duration
end
end
|
# <API key>: true
require "administrate/base_dashboard"
module Eve
class StationDashboard < Administrate::BaseDashboard
ATTRIBUTE_TYPES = {
id: Field::Number,
station_id: Field::Number,
name: Field::String,
system: Field::BelongsTo.with_options(class_name: "Eve::System"),
type_id: Field::Number, # TODO: add type dashboard
owner: Field::Number,
race: Field::BelongsTo.with_options(class_name: "Eve::Race"),
<API key>: Field::Number,
office_rental_cost: Field::Number,
<API key>: Field::Number,
<API key>: Field::Number,
# TODO: t.string "services", array: true
# services: Field::String,
created_at: Field::DateTime,
updated_at: Field::DateTime
# position: Field::HasOne
}.freeze
<API key> = [:id, :station_id, :name].freeze
<API key> = [
:id,
:station_id,
:name,
:system,
:type_id,
:owner,
:race,
:<API key>,
:office_rental_cost,
:<API key>,
:<API key>,
# :services,
:created_at,
:updated_at
# :position
].freeze
COLLECTION_FILTERS = {}.freeze
def display_resource(station)
station.name
end
end
end
|
declare namespace jdk {
namespace nashorn {
namespace api {
namespace tree {
interface ModuleTree extends jdk.nashorn.api.tree.Tree {
getImportEntries(): java.util.List<jdk.nashorn.api.tree.ImportEntryTree>
<API key>(): java.util.List<jdk.nashorn.api.tree.ExportEntryTree>
<API key>(): java.util.List<jdk.nashorn.api.tree.ExportEntryTree>
<API key>(): java.util.List<jdk.nashorn.api.tree.ExportEntryTree>
}
}
}
}
}
|
<?php
namespace GL\ProtocolloBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class GLProtocolloBundle extends Bundle
{
}
|
import React, { Component } from 'react';
export default class PlacesItem extends Component {
constructor(props) {
super(props);
this.config = this.config.bind(this);
this.rateStars = this.rateStars.bind(this);
this.startBounce = this.startBounce.bind(this);
this.endBounce = this.endBounce.bind(this);
}
config() {
return {
itemPhotoSize : {
maxWidth: 80,
maxHeight: 91
}
}
}
startBounce() {
this.props.place.marker.setAnimation(google.maps.Animation.BOUNCE);
}
endBounce() {
this.props.place.marker.setAnimation(null);
}
// build rate starts
rateStars(num) {
let stars = [];
for(let i = 0; i < num; i++) {
stars.push(
<span><img key={i} src='./assets/star.png' /></span>
)
}
return stars
}
render() {
const {place} = this.props.place;
const img = place.photos ? place.photos[0].getUrl(this.config().itemPhotoSize) : './assets/no_image.png';
return(
<div className="item-box" onMouseOver = {this.startBounce} onMouseOut={this.endBounce}>
<div className="item-text">
<strong>{place.name}</strong>
{ place.rating ?<p>{this.rateStars(place.rating)}<span> {'$'.repeat(place.price_level)}</span></p> : <p>{'$'.repeat(place.price_level)}</p>
}
<p id="item-address">{place.formatted_address}</p>
<p>{place.opening_hours && place.opening_hours.open_now ? "Open" :"Closed"}</p>
</div>
<img className='item-image' src={img} />
</div>
)
}
}
|
The MIT License (MIT)
Copyright (c) 2015 Jaro Marval
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.
|
class Solution(object):
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
xor = len(nums)
for i, n in enumerate(nums):
xor ^= n
xor ^= i
return xor
inputs = [
[0],
[1],
[3,0,1],
[9,6,4,2,3,5,7,0,1]
]
s = Solution()
for i in inputs:
print s.missingNumber(i)
|
/**
* \file sarea.h
* SAREA definitions.
*
* \author Kevin E. Martin <kevin@precisioninsight.com>
* \author Jens Owen <jens@tungstengraphics.com>
* \author Rickard E. (Rik) Faith <faith@valinux.com>
*/
#ifndef _SAREA_H_
#define _SAREA_H_
#include "xf86drm.h"
/* SAREA area needs to be at least a page */
#if defined(__alpha__)
#define SAREA_MAX 0x2000
#elif defined(__ia64__)
#define SAREA_MAX 0x10000 /* 64kB */
#else
/* Intel 830M driver needs at least 8k SAREA */
#define SAREA_MAX 0x2000
#endif
#define SAREA_MAX_DRAWABLES 256
#define <API key> 0x80000000
/**
* SAREA per drawable information.
*
* \sa _XF86DRISAREA.
*/
typedef struct <API key> {
unsigned int stamp;
unsigned int flags;
} <API key>, *<API key>;
/**
* SAREA frame information.
*
* \sa _XF86DRISAREA.
*/
typedef struct _XF86DRISAREAFrame {
unsigned int x;
unsigned int y;
unsigned int width;
unsigned int height;
unsigned int fullscreen;
} <API key>, *<API key>;
/**
* SAREA definition.
*/
typedef struct _XF86DRISAREA {
/** first thing is always the DRM locking structure */
drmLock lock;
/** \todo Use readers/writer lock for drawable_lock */
drmLock drawable_lock;
<API key> drawableTable[SAREA_MAX_DRAWABLES];
<API key> frame;
drm_context_t dummy_context;
} XF86DRISAREARec, *XF86DRISAREAPtr;
typedef struct _XF86DRILSAREA {
drmLock lock;
drmLock otherLocks[31];
} XF86DRILSAREARec, *XF86DRILSAREAPtr;
#endif
|
<?php
namespace spec\Genesis\API\Constants\Transaction;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class StatesSpec extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('Genesis\API\Constants\Transaction\States');
}
}
|
<div class="row-fluid">{namespace ehrm=Beech\Ehrm\ViewHelpers}
<div class="span1">
<f:render partial="Forms/Buttons/Icon" arguments="{_all}"/>
</div>
<div class="span3"><strong><f:translate id="electronicAddress.<API key>.{electronicAddress.<API key>}">{electronicAddress.<API key>}</f:translate></strong></div>
<div class="span6">{electronicAddress.address}</div>
<div class="span1 primaryIcon"><f:if condition="{electronicAddress.primary}"><i class="icon-check"></i></f:if></div>
<div class="span1">
<div class="btn-group">
<f:render partial="Forms/Buttons/Toggle" arguments="{identifier: electronicAddress.id, action: action, icon: 'icon-pencil', collapsed: collapsed}"/>
<f:if condition="{electronicAddress.primary}">
<f:then>
<f:render partial="Forms/Buttons/Remove" arguments="{class: 'hide'}"/>
</f:then>
<f:else>
<f:render partial="Forms/Buttons/Remove" arguments="{_all}"/>
</f:else>
</f:if>
</div>
</div>
</div>
|
namespace VanillaSample.Core.ViewModels
{
using Screenmedia.Plugin.Vanilla;
using Screenmedia.Plugin.Vanilla.Abstractions;
public class ViewModel
{
private readonly IIceCreamMachine _iceCreamMachine;
public ViewModel()
{
_iceCreamMachine = <API key>.Current;
IceCreamFlavour = _iceCreamMachine.Dispense();
}
public string IceCreamFlavour { get; set; } = "Empty Cone";
}
}
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>DoNotInstrument</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]
<script type="text/javascript" src="../../../../jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DoNotInstrument";
}
}
catch(err) {
}
var pathtoroot = "../../../../";loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="fixedNav">
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><ul class="navList" style="font-size: 1.5em;"><li>Robolectric 4.4 | <a href="/" target="_top"><img src="http://robolectric.org/images/<API key>.png" style="max-height: 18pt; vertical-align: sub;"/></a></li></ul></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/robolectric/annotation/internal/ConfigUtils.html" title="class in org.robolectric.annotation.internal"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/robolectric/annotation/internal/Instrument.html" title="annotation in org.robolectric.annotation.internal"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/robolectric/annotation/internal/DoNotInstrument.html" target="_top">Frames</a></li>
<li><a href="DoNotInstrument.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<ul class="navListSearch">
<li><span>SEARCH: </span>
<input type="text" id="search" value=" " disabled="disabled">
<input type="reset" id="reset" value=" " disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Field | </li>
<li>Required | </li>
<li>Optional</li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Element</li>
</ul>
</div>
<a name="skip.navbar.top">
</a></div>
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
</script>
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="../../../../org/robolectric/annotation/internal/package-summary.html">org.robolectric.annotation.internal</a></div>
<h2 title="Annotation Type DoNotInstrument" class="title">Annotation Type DoNotInstrument</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre><a href="https://developer.android.com/reference/java/lang/annotation/Documented.html?is-external=true" title="class or interface in java.lang.annotation">@Documented</a>
<a href="https://developer.android.com/reference/java/lang/annotation/Retention.html?is-external=true" title="class or interface in java.lang.annotation">@Retention</a>(<a href="https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html?is-external=true#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</a>)
<a href="https://developer.android.com/reference/java/lang/annotation/Target.html?is-external=true" title="class or interface in java.lang.annotation">@Target</a>(<a href="https://developer.android.com/reference/java/lang/annotation/ElementType.html?is-external=true#TYPE" title="class or interface in java.lang.annotation">TYPE</a>)
public @interface <span class="memberNameLabel">DoNotInstrument</span></pre>
<div class="block">Indicates that a class should not be stripped/instrumented under any circumstances.</div>
</li>
</ul>
</div>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><ul class="navList" style="font-size: 1.5em;"><li>Robolectric 4.4 | <a href="/" target="_top"><img src="http://robolectric.org/images/<API key>.png" style="max-height: 18pt; vertical-align: sub;"/></a></li></ul></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/robolectric/annotation/internal/ConfigUtils.html" title="class in org.robolectric.annotation.internal"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/robolectric/annotation/internal/Instrument.html" title="annotation in org.robolectric.annotation.internal"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/robolectric/annotation/internal/DoNotInstrument.html" target="_top">Frames</a></li>
<li><a href="DoNotInstrument.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Field | </li>
<li>Required | </li>
<li>Optional</li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Element</li>
</ul>
</div>
<a name="skip.navbar.bottom">
</a></div>
</body>
</html>
|
@import Foundation;
#import "<API key>.h"
@interface <API key> : NSObject
<
<API key>
>
@end
|
package com.sms4blood.<API key>.util;
import android.content.Intent;
import android.location.Location;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.Toast;
import com.sms4blood.<API key>.Sms;
import com.sms4blood.<API key>.app.EhsApplication;
import java.text.DecimalFormat;
public class AppUtil extends Util {
public static boolean callNumber(String phoneNumber) {
boolean isValidPhoneNumber = checkPhoneNumber(phoneNumber);
if (isValidPhoneNumber) {
String callUri = "tel:" + phoneNumber;
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(callUri));
callIntent.setFlags(Intent.<API key>);
startActivity(callIntent);
} else {
Toast.makeText(EhsApplication.getContext(), "Invalid phone number.", Toast.LENGTH_SHORT).show();
}
return isValidPhoneNumber;
}
public static boolean sendSms(String phoneNumber, String message) {
boolean isValidPhoneNumber = checkPhoneNumber(phoneNumber);
if (isValidPhoneNumber) {
// /*It is better to let the android manage the sms sending task using native messaging app*/
// Intent smsIntent = new Intent(Intent.ACTION_VIEW);
// // Invokes only SMS/MMS clients
// smsIntent.setType("vnd.android-dir/mms-sms");
// // Specify the Phone Number
// smsIntent.putExtra("address", phoneNumber);
// // Specify the Message
// smsIntent.putExtra("sms_body", message);
// smsIntent.setFlags(Intent.<API key>);
// try {
// startActivity(smsIntent);
// } catch (Exception e) {
// e.printStackTrace();
// Toast.makeText(EhsApplication.getContext(), "Unable to send sms to this number.", Toast.LENGTH_SHORT)
// .show();
Intent i=new Intent(EhsApplication.getContext(), Sms.class);
i.setFlags(Intent.<API key>);
Bundle bundle = new Bundle();
bundle.putString("mobileno",phoneNumber);
i.putExtras(bundle);
startActivity(i);
} else {
Toast.makeText(EhsApplication.getContext(), "Invalid phone number.", Toast.LENGTH_SHORT).show();
}
return isValidPhoneNumber;
}
public static boolean showMap(String latitude, String longitude) {
try {
if (!TextUtils.isEmpty(latitude) && (!TextUtils.isEmpty(longitude))) {
Uri gmmIntentUri = Uri.parse("google.navigation:q=" + latitude + "," + longitude);
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
mapIntent.setFlags(Intent.<API key>);
startActivity(mapIntent);
return true;
} else {
Toast.makeText(EhsApplication.getContext(), "Address not available.", Toast.LENGTH_SHORT).show();
}
} catch (Exception e) {
e.printStackTrace();
}
return false;
}
public static boolean showMap(String address) {
try {
if (!TextUtils.isEmpty(address)) {
String encodedAddress = address.replaceAll("\n", " ");
Uri gmmIntentUri = Uri.parse("google.navigation:q=" + encodedAddress);
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
mapIntent.setFlags(Intent.<API key>);
startActivity(mapIntent);
return true;
} else {
Toast.makeText(EhsApplication.getContext(), "Address not available.", Toast.LENGTH_SHORT).show();
}
} catch (Exception e) {
e.printStackTrace();
}
return false;
}
/**
* @param fromLatitude
* @param fromLongitude
* @param toLatitude
* @param toLongitude
* @return distance between the two latitudes and longitudes in kms.
*/
public static double calculateDistance(double fromLatitude,double fromLongitude,double toLatitude,double toLongitude) {
float results[] = new float[1];
try {
Location.distanceBetween(fromLatitude, fromLongitude, toLatitude, toLongitude, results);
} catch (Exception e) {
if (e != null)
e.printStackTrace();
}
int dist = (int) results[0];
if(dist<=0) {
return 0D;
}
DecimalFormat decimalFormat = new DecimalFormat("
results[0]/=1000D;
String distance = decimalFormat.format(results[0]);
double d = Double.parseDouble(distance);
return d;
}
}
|
<?php
namespace App\FrontModule;
use App\AppModule\ErrorPresenter as Presenter;
class ErrorPresenter extends Presenter
{
}
|
<html>
<head>
<title>
ABC 3 : ::
</title>
<style>
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: ' (' attr(href) ')';
}
abbr[title]:after {
content: ' (' attr(title) ')';
}
a[href^='#']:after,
a[href^='javascript:']:after {
content: '';
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
pre,
code {
font-family: Menlo, Monaco, 'Courier New', monospace;
}
pre {
padding: 0.5rem;
line-height: 1.25;
overflow-x: scroll;
}
a,
a:visited {
color: #3498db;
}
a:hover,
a:focus,
a:active {
color: #2980b9;
}
.<API key> {
text-decoration: none;
}
html {
font-size: 12px;
}
@media screen and (min-width: 32rem) and (max-width: 48rem) {
html {
font-size: 15px;
}
}
@media screen and (min-width: 48rem) {
html {
font-size: 16px;
}
}
body {
line-height: 1.85;
}
p,
.modest-p {
font-size: 1rem;
margin-bottom: 1.3rem;
}
h1,
.modest-h1,
h2,
.modest-h2,
h3,
.modest-h3,
h4,
.modest-h4 {
margin: 1.414rem 0 0.5rem;
font-weight: inherit;
line-height: 1.42;
}
h1,
.modest-h1 {
margin-top: 0;
font-size: 3.998rem;
}
h2,
.modest-h2 {
font-size: 2.827rem;
}
h3,
.modest-h3 {
font-size: 1.999rem;
}
h4,
.modest-h4 {
font-size: 1.414rem;
}
h5,
.modest-h5 {
font-size: 1.121rem;
}
h6,
.modest-h6 {
font-size: 0.88rem;
}
small,
.modest-small {
font-size: 0.707em;
}
img,
canvas,
iframe,
video,
svg,
select,
textarea {
max-width: 100%;
}
@import url(
http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,
300italic,
700
);
@import url(http://fonts.googleapis.com/css?family=Arimo:700, 700italic);
html {
font-size: 18px;
max-width: 100%;
}
body {
color: #444;
font-family: 'Open Sans Condensed', sans-serif;
font-weight: 300;
margin: 0 auto;
max-width: 48rem;
line-height: 1.45;
padding: 0.25rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Arimo, Helvetica, sans-serif;
}
h1,
h2,
h3 {
border-bottom: 2px solid #fafafa;
margin-bottom: 1.15rem;
padding-bottom: 0.5rem;
text-align: center;
}
blockquote {
border-left: 8px solid #fafafa;
padding: 1rem;
}
pre,
code {
background-color: #fafafa;
}
</style>
</head>
<body>
<header>
<h2>
<a href="http://leehankyeol.me"></a>
<a href="https://github.com/leehankyeol"></a>
<a href="https:
<a href="https:
</h2>
</header>
<article>
<h1>ABC 3 : </h1>
<ol>
<li>
<p> . . , K . K . . . . .</p>
</li>
<li>
<p> . . K, ( .) . . . , .</p>
</li>
<li>
<p>ABC , , . “1. 2. 3. 4. ” . . . . . 70kg , , . . . .</p>
</li>
<li>
<p> .</p>
</li>
<li>
<p> . ( .) K . ABC . .</p>
</li>
</ol>
</article>
<footer>
Styled by
<a href="https://github.com/markdowncss/modest/blob/master/css/modest.css"
>Modest</a
>
</footer>
</body>
</html>
|
module Perus::Pinger
class Upload < Command
description 'Uploads a file from the client to the server. Valid values
for "path" are contained in the pinger config file.'
option :path, restricted: true
def run
@file = File.new(options.path)
end
def cleanup
@file.close unless @file.nil? || @file.closed?
end
end
end
|
package miwax.java_conf.gr.jp.frugalitycalc.view;
import android.app.AlertDialog;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import miwax.java_conf.gr.jp.frugalitycalc.R;
import miwax.java_conf.gr.jp.frugalitycalc.databinding.ActivityMainBinding;
import miwax.java_conf.gr.jp.frugalitycalc.util.messenger.<API key>;
import miwax.java_conf.gr.jp.frugalitycalc.viewmodel.MainViewModel;
import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;
import rx.subscriptions.<API key>;
public class MainActivity extends AppCompatActivity {
private final String VIEW_MODEL = "VIEW_MODEL";
private ActivityMainBinding binding;
private MainViewModel mainViewModel;
private <API key> subscriptions = new <API key>();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
if (savedInstanceState != null) {
mainViewModel = savedInstanceState.getParcelable(VIEW_MODEL);
} else {
mainViewModel = new MainViewModel();
}
binding.setViewModel(mainViewModel);
subscriptions.add(
mainViewModel.getMessenger().register(<API key>.class)
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<<API key>>() {
@Override
public void call(<API key> message) {
showAlertDialog(message.getTitleId(), message.getTextId());
}
})
);
}
@Override
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putParcelable(VIEW_MODEL, mainViewModel);
}
@Override
protected void onDestroy() {
mainViewModel.unsubscribe();
super.onDestroy();
}
private void showAlertDialog(int titleId, int textId) {
new AlertDialog.Builder(this)
.setTitle(this.getString(titleId))
.setMessage(this.getString(textId))
.setPositiveButton("OK", null)
.show();
}
}
|
<?php
namespace Manialib\Maniacode\Elements;
class ViewReplay extends UrlDownload
{
protected $nodeName = 'view_replay';
}
|
import _plotly_utils.basevalidators
class <API key>(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="minexponent", parent_name="choropleth.colorbar", **kwargs
):
super(<API key>, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "colorbars"),
min=kwargs.pop("min", 0),
**kwargs
)
|
<HTML><HEAD>
<TITLE>Review for Timecode (2000)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0220100">Timecode (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Frankie+Paiva">Frankie Paiva</A></H3><HR WIDTH="40%" SIZE="4">
<PRE>Time Code</PRE>
<PRE>rated R
97 minutes
Screen Gems
starring Jeanne Tripplehorn, Salma Hayek, Stellan Skarsgard, Saffron Burrows,
and Kyle MacLachlan
written and directed by Mike Figgis</PRE>
<PRE>A Review by Frankie Paiva</PRE>
<P>I believe it's unfair to call Time Code an actual movie. The word experience
is a better fit. The Time Code experience involves the screen being split
into four different images, each with a different character focus, as they
all play at the same time. The sound gets turned up on the one Figgis wants
you to watch. One could describe it as watching four different shows on MTV
all at once. The story relies heavily on this split screen factor and this is
a very visual film with little complicated dialog. It has to be. Even with a
slightly complicated plot, this movie would have been even more of a frenzy
of annoying pointless images than it was. Essentially, a frenzy of annoying
images describes the film well. This film is a foray into the different and
the unusual, but carries little meaning. While Figgis has created a
groundbreaking filmmaking approach, he seems concentrated on making sure the
audience can handle it, rather than keep an interesting storyline going. It
has been a long time since a movie has challenged you in such a way as this
one does, but I felt it could have been even more challening if trust was put
in the audience. Time Code dares to go freeform, and encourages the viewer to
look at these characters and their surroundings with lightning fast
comprehension before moving onto the next frame. Like any new method to come
onto the film scene, it will take time to master, but consider Time Code the
beginning of a new era in film.</P>
<P>The movie was shot entirely in one afternoon last November using hand-held
cameras. There are no edits. Everything is real time. There is no set plot
structure either. While Figgis gave his actors basic character outlines, he
decided it would be much more interesting if the film was almost entirely
improvisational. This is both an attraction and a detraction. There are
times when you sense the actors come up with things right off the top of
their heads, and those parts of the film are exciting and fun. Character
reactions are a key part of this movie that centers around Red Mullet
Productions (both the producers and setting for this film) during auditions
for a new movie. In the upper left corner Rose (Wild Wild West recovering
Salma Hayek) is going to the audition with Lauren (Jeanne Tripplehorn). Rose
and Lauren are lovers, and the latter suspects infidelity. In the upper
right, Emma (Saffron Burrows, Figgis's wife) consults her psychiatrist about
her husband Alex (Stellan Skarsgard) whom she suspects is cheating on her.
Alex is indeed cheating on her, and he occupies the lower right frame.
Finally, in the bottom left is an aspiring actress that comes to audition for
the lead role at Red Mullet.</P>
<P>After this basic setup, the camera roams free. Characters pop up in two
different frames at once, or switch frames entirely. It's interesting to see
how this effect gets used. One scene that I found bizarre involved Alex and
an anonymous female having sex behind a movie screen. The screen was being
used to show actresses moaning loudly from sexual pleasure during an audition
for a group of executives. Another common element that unites the characters
is the frequent bothersome earthquakes. Much care must have been taken into
the timing to make the illusion of an earthquake appear in all four parts at
the same time. These tremors that connect the characters continuously
reminded me of the character connecting amphibians from the end of Magnolia.
The ensemble cast that includes Steven Weber, Holly Hunter, Julian Sands,
Leslie Mann, and Laurie Metcalf, as well as the actors mentioned above, have
fun with their roles. It's no surprise though that the movie is inconsistent,
but by the hour mark, I found myself comfortably able to grasp all that was
going on. Time Code is almost interactive. It allows people to get a
different experience of the movie each time they see it. The themes are the
same though. Woe, jealousy, and betrayal all occupy different parts of the
screen often. Everyone is cheating on everyone, and all the women are
lesbians. Late in the film a young female independent filmmaker comes forward
with an idea of new age filmmaking. "The end of editing is upon us!" she
preaches. "Imagine a movie with four different images all running at the same
time." Alex blows this idea off, and cannot control his laughter at the
proposal. He tells her what a load of crap he thinks it is. She takes the
criticism surprisingly well, and replies with a thank you stating he's the
only honest person she has ever met in Los Angeles. By the time it reaches
the conclusion, the facade of quality and honesty in Time Code is gone. It
was then I realized the emptiness that ran through this movie. While Time
Code is definitely worth seeing for the very original concept it presents,
there's no hiding that little actual material lies under its surface.</P>
<PRE>B-</PRE>
<PRE>Frankie Paiva
<A HREF="mailto:SwpStke@aol.com">SwpStke@aol.com</A>
<A HREF="http:
<HR><P CLASS=flush><SMALL>The review above was posted to the
<A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR>
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.<BR>
Please direct comments/criticisms of the review to relevant newsgroups.<BR>
Broken URLs inthe reviews are the responsibility of the author.<BR>
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
</SMALL></P>
<P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P>
</P></BODY></HTML>
|
// YSCMacros.h
// YSCKit
#import <sys/time.h>
// @Description:
// YSCKit
#ifndef YSCMacros_h
#define YSCMacros_h
#define <API key> (<API key>.isDebugModel || [YSCGeneral <API key>])
/** log */
#define IS_NSLOG_AVAILABLE <API key>
#define __NSLog(s, ...) do { \
if (IS_NSLOG_AVAILABLE) { \
NSMutableString *logString = [NSMutableString stringWithFormat:@"[%@(%d)] ",[[NSString <API key>:__FILE__] lastPathComponent], __LINE__]; \
if (s) { \
[logString appendFormat:(s), ##__VA_ARGS__]; \
} \
else { \
[logString appendString:@"(null)"]; \
} \
NSLog(@"%@", logString); \
[YSCLog saveLog:logString]; \
} \
} while (0)
#define NSLog(...) __NSLog(__VA_ARGS__)
#define TRIM_STRING(_string) (\
( ! [_string isKindOfClass:[NSString class]]) ? \
@"" : [_string <API key>:[NSCharacterSet <API key>]] \
)
#define OBJECT_IS_EMPTY(_object) (_object == nil \
|| [_object isKindOfClass:[NSNull class]] \
|| ([_object respondsToSelector:@selector(length)] && [(NSData *)_object length] == 0) \
|| ([_object respondsToSelector:@selector(count)] && [(NSArray *)_object count] == 0))
#define OBJECT_ISNOT_EMPTY(_object) ( ! OBJECT_IS_EMPTY(_object))
#define <API key>(_object) if (OBJECT_IS_EMPTY(_object)) { return ; }
#define <API key>(_object) if (OBJECT_IS_EMPTY(_object)) { return nil; }
#define <API key>(_object) if (OBJECT_IS_EMPTY(_object)) { return @""; }
#define <API key>(_object) if (OBJECT_IS_EMPTY(_object)) { return YES; }
#define <API key>(_object) if (OBJECT_IS_EMPTY(_object)) { return NO; }
#define <API key>(_object) if (OBJECT_IS_EMPTY(_object)) { return 0; }
#ifndef <API key>
#define <API key>(block) \
static dispatch_once_t pred = 0; \
__strong static id _sharedObject = nil; \
dispatch_once(&pred, ^{ \
if (block) { \
_sharedObject = block(); \
} \
}); \
return _sharedObject;
#endif
/**
* @brief swizzling instance method
*
* @usage:
* <API key>(self.class, @selector(viewDidLoad), @selector(ysc_viewDidLoad))
*/
#ifndef <API key>
#define <API key>(clazz, originalSelector, swizzledSelector) { \
Method originalMethod = <API key>(clazz, originalSelector); \
Method swizzledMethod = <API key>(clazz, swizzledSelector); \
BOOL isAddedMethod = class_addMethod(clazz, originalSelector, <API key>(swizzledMethod), <API key>(swizzledMethod)); \
if (isAddedMethod) { \
class_replaceMethod(clazz, swizzledSelector, <API key>(originalMethod), <API key>(originalMethod)); \
} \
else { \
<API key>(originalMethod, swizzledMethod); \
} }
#endif
/**
* @brief swizzling class method
*
* @usage:
* <API key>(object_getClass((id)self), @selector(viewDidLoad), @selector(ysc_viewDidLoad))
*/
#ifndef <API key>
#define <API key>(clazz, originalSelector, swizzledSelector) { \
Method originalMethod = <API key>(clazz, originalSelector); \
Method swizzledMethod = <API key>(clazz, swizzledSelector); \
BOOL isAddedMethod = class_addMethod(clazz, originalSelector, <API key>(swizzledMethod), <API key>(swizzledMethod)); \
if (isAddedMethod) { \
class_replaceMethod(clazz, swizzledSelector, <API key>(originalMethod), <API key>(originalMethod)); \
} \
else { \
<API key>(originalMethod, swizzledMethod); \
} }
#endif
#define RGBA(r, g, b, a) [UIColor colorWithRed:r / 255.0f green:g / 255.0f blue:b / 255.0f alpha:a]
#define RGB(r, g, b) RGBA(r,g,b,1.0f)
#define RGB_GRAY(c) RGBA(c,c,c,1.0f)
#define RANDOM_INT(from,to) ((int)((from) + arc4random() % ((to)-(from) + 1))) // [from,to]
#define GET_NSERROR_MESSAGE(e) ((NSError *)e).userInfo[<API key>] //=e.<API key>
#define KEY_WINDOW [UIApplication sharedApplication].keyWindow
#define FUNCTION_NAME [NSString <API key>:__FUNCTION__]
#define IS_NIB_EXISTS(nib) [[NSFileManager defaultManager] fileExistsAtPath:[[NSBundle mainBundle] pathForResource:nib ofType:@"nib"]]
#define <API key>(c,m) [NSError errorWithDomain:@"YSCKit" code:c userInfo:@{<API key> : m}]
#define CREATE_NSERROR(m) <API key>(0,m)
#define PRINT_DEALLOCING NSLog(@"[%@] is deallocing...",NSStringFromClass(self.class));
#define DEPRECATED_MARK(_instead_msg) NS_DEPRECATED(2_0, 2_0, 2_0, 2_0, _instead_msg)
/**
* 1. if (NSOrderedAscending != COMPARE_VERSION(v1,v2)) { //v1 >= v2 }
* 2. if (NSOrderedDescending == COMPARE_VERSION(v1,v2)) { //v1 > v2 }
* 3. if (NSOrderedAscending == COMPARE_VERSION(v1,v2)) { //v1 < v2 }
*/
#define COMPARE_VERSION(v1,v2) [v1 compare:v2 options:NSNumericSearch]
#define <API key>(v) COMPARE_VERSION([[[NSBundle mainBundle] infoDictionary] objectForKey:@"<API key>"], (v))
#define APP_SKIP_VERSION(v) [NSString stringWithFormat:@"APP_SKIP_VERSION_%@", v]
#define APP_LAUNCH_VERSION(v) [NSString stringWithFormat:@"APP_LAUNCH_VERSION_%@", v]
/**
* @brief performSelectorleak
*
* @usage:
* <API key>(
* [_target performSelector:_action withObject:self]
* );
*
* OR
*
* id result;
* <API key>(
* result = [_target performSelector:_action withObject:self]
* );
*/
#ifndef <API key>
#define <API key>(block) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-<API key>\"") \
if (block) { \
block(); \
} \
_Pragma("clang diagnostic pop") \
} while (0)
#endif
#define <API key>(_selector, _name, _object) \
([[<API key> defaultCenter] addObserver:self selector:_selector name:_name object:_object])
#define ADD_OBSERVER(_selector,_name) \
<API key>(_selector, _name, nil)
#define <API key>(_name, _object, _info) \
([[<API key> defaultCenter] <API key>:_name object:_object userInfo:(_info)])
#define POST_NOTIFICATION(_name) \
<API key>(_name, nil, nil)
#define <API key>(_name, _object) \
<API key>(_name, _object, nil)
#define <API key>(_name, _info) \
<API key>(_name, nil, _info)
#define REMOVE_OBSERVER(_name) \
([[<API key> defaultCenter] removeObserver:self name:_name object:nil])
#define <API key>(_self) \
([[<API key> defaultCenter] removeObserver:_self])
/**
* @usage:
* YSCBenchmark(^{
* // code
* }, ^(double ms) {
* NSLog(@"time cost: %.2f ms",ms);
* });
*/
static inline void YSCBenchmark(void (^block)(void), void (^complete)(double ms)) {
// <QuartzCore/QuartzCore.h> version
/*
extern double CACurrentMediaTime (void);
double begin, end, ms;
begin = CACurrentMediaTime();
block();
end = CACurrentMediaTime();
ms = (end - begin) * 1000.0;
complete(ms);
*/
// <sys/time.h> version
struct timeval t0, t1;
gettimeofday(&t0, NULL);
block();
gettimeofday(&t1, NULL);
double ms = (double)(t1.tv_sec - t0.tv_sec) * 1e3 + (double)(t1.tv_usec - t0.tv_usec) * 1e-3;
complete(ms);
}
/**
* @usage:
* @interface NSObject (MyAdd)
* @property (nonatomic, strong) NSMutableArray *textFields;
* @end
*
* #import <objc/runtime.h>
* @implementation NSObject (MyAdd)
* <API key>(textFields, NSMutableArray *, [NSMutableArray new])
* @end
*/
#ifndef <API key>
#define <API key>(_getter_, _type_, _initObject_) \
- (_type_)_getter_ { \
_type_ target = <API key>(self, _cmd); \
if ( ! target) { \
target = _initObject_; \
<API key>(self, _cmd, target, <API key>); \
} \
return target; \
}
#endif
/**
* usage:
* @interface NSObject (MyAdd)
* @property (nonatomic, assign) BOOL isError;
* @end
*
* #import <objc/runtime.h>
* @implementation NSObject (MyAdd)
* <API key>(isError, setIsError)
* @end
*/
#ifndef <API key>
#define <API key>(_getter_, _setter_) \
- (void)_setter_:(BOOL)value { \
NSNumber *number = [NSNumber numberWithBool:value]; \
[self <API key>:@#_getter_]; \
<API key>(self, _cmd, number, <API key>); \
[self <API key>:@#_getter_]; \
} \
- (BOOL)_getter_ { \
NSNumber *number = <API key>(self, @selector(_setter_:)); \
return [number boolValue]; \
}
#endif
#ifndef <API key>
#define <API key>(_getter_, _setter_, _association_, _type_) \
- (void)_setter_:(_type_)object { \
[self <API key>:@#_getter_]; \
<API key>(self, _cmd, object, OBJC_ASSOCIATION_##_association_); \
[self <API key>:@#_getter_]; \
} \
- (_type_)_getter_ { \
return <API key>(self, @selector(_setter_:)); \
}
#endif
/**
* @usage:
* @interface NSObject (MyAdd)
* @property (nonatomic, retain) CGPoint myPoint;
* @end
*
* #import <objc/runtime.h>
* @implementation NSObject (MyAdd)
* <API key>(myPoint, setMyPoint, CGPoint)
* @end
*/
#ifndef <API key>
#define <API key>(_getter_, _setter_, _type_) \
- (void)_setter_:(_type_)object { \
[self <API key>:@#_getter_]; \
NSValue *value = [NSValue value:&object withObjCType:@encode(_type_)]; \
<API key>(self, _cmd, value, <API key>); \
[self <API key>:@#_getter_]; \
} \
- (_type_)_getter_ { \
_type_ cValue = { 0 }; \
NSValue *value = <API key>(self, @selector(_setter_:)); \
[value getValue:&cValue]; \
return cValue; \
}
#endif
/**
* @usage:
* @weakiy(self)
* [self doSomething^{
* @strongiy(self)
* if (!self) return;
* ...
* }];
*/
#ifndef weakiy
#if DEBUG
#if __has_feature(objc_arc)
#define weakiy(object) autoreleasepool{} __weak __typeof__(object) weak##_##object = object;
#else
#define weakiy(object) autoreleasepool{} __block __typeof__(object) block##_##object = object;
#endif
#else
#if __has_feature(objc_arc)
#define weakiy(object) try{} @finally{} {} __weak __typeof__(object) weak##_##object = object;
#else
#define weakiy(object) try{} @finally{} {} __block __typeof__(object) block##_##object = object;
#endif
#endif
#endif
#ifndef strongiy
#if DEBUG
#if __has_feature(objc_arc)
#define strongiy(object) autoreleasepool{} __typeof__(object) object = weak##_##object;
#else
#define strongiy(object) autoreleasepool{} __typeof__(object) object = block##_##object;
#endif
#else
#if __has_feature(objc_arc)
#define strongiy(object) try{} @finally{} __typeof__(object) object = weak##_##object;
#else
#define strongiy(object) try{} @finally{} __typeof__(object) object = block##_##object;
#endif
#endif
#endif
#endif /* YSCMacros_h */
|
/* eslint import/<API key>: ["error", {"devDependencies": true}] */
import path from 'path';
import webpack from 'webpack';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
export default {
context: __dirname,
entry: './index.jsx',
output: {
path: `${__dirname}/__dev__`,
publicPath: '/',
filename: 'bundle.js',
},
module: {
loaders: [
{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: [
'file?hash=sha512&digest=hex&name=[hash].[ext]',
'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false'
]
},
{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader' },
{ test: /\.json$/, loader: 'json-loader' },
{ test: /\.scss$/, loaders: [
'style-loader',
'css-loader',
'sass-loader?includePaths[]=' + path.resolve(__dirname, './node_modules/compass-mixins/lib')
]},
],
},
resolve: {
extensions: ['.js', '.jsx'],
},
plugins: [
new CopyWebpackPlugin([
{ from: '404.html' },
{ from: 'img', to: 'img' },
{ from: 'fonts', to: 'fonts' }
]),
new HtmlWebpackPlugin({
template: 'index.template.ejs',
inject: 'body'
}),
],
};
|
namespace VoiceWall.Web.ViewModels.Search
{
using System.ComponentModel.DataAnnotations;
public class SearchViewModel
{
[Required]
[MinLength(2, ErrorMessage="Search text must be at least 2 characters")]
[DataType(DataType.Text)]
public string SearchText { get; set; }
}
}
|
using SharpDX;
using SharpDX.Direct3D11;
using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Xml;
using System.IO;
using System.Reflection;
namespace Profiler.DirectX
{
public class TextManager : IDisposable
{
[StructLayout(LayoutKind.Sequential)]
public struct Vertex
{
public Vector2 Position;
public Vector2 UV;
public SharpDX.Color Color;
}
DynamicBuffer<Vertex> VertexBuffer;
DynamicBuffer<int> IndexBuffer;
Mesh TextMesh;
class Font : IDisposable
{
public struct Symbol
{
public RectangleF UV;
public Size2F Size;
public float Advance;
}
public Symbol[] Symbols = new Symbol[256];
public Texture2D Texture;
public ShaderResourceView TextureView;
public double Size { get; set; }
public static Font Create(Device device, String name)
{
Font font = new Font();
Assembly assembly = Assembly.<API key>();
using (Stream stream = assembly.<API key>(String.Format("Profiler.DirectX.Fonts.{0}.fnt", name)))
{
XmlDocument doc = new XmlDocument();
doc.Load(stream);
XmlNode desc = doc.SelectSingleNode("//info");
font.Size = double.Parse(desc.Attributes["size"].Value);
XmlNode info = doc.SelectSingleNode("//common");
float width = float.Parse(info.Attributes["scaleW"].Value);
float height = float.Parse(info.Attributes["scaleH"].Value);
foreach (XmlNode node in doc.SelectNodes("//char"))
{
int id = int.Parse(node.Attributes["id"].Value);
Symbol symbol = new Symbol();
symbol.Size.Width = float.Parse(node.Attributes["width"].Value);
symbol.Size.Height = float.Parse(node.Attributes["height"].Value);
int x = int.Parse(node.Attributes["x"].Value);
int y = int.Parse(node.Attributes["y"].Value);
symbol.UV = new RectangleF(x / width, y / height, symbol.Size.Width / width, symbol.Size.Height / height);
symbol.Advance = float.Parse(node.Attributes["xadvance"].Value);
font.Symbols[id] = symbol;
}
using (Stream textureStream = assembly.<API key>(String.Format("Profiler.DirectX.Fonts.{0}_0.png", name)))
{
font.Texture = TextureLoader.CreateTex2DFromFile(device, textureStream);
}
font.TextureView = new ShaderResourceView(device, font.Texture);
}
return font;
}
public void Dispose()
{
Utilities.Dispose(ref Texture);
Utilities.Dispose(ref TextureView);
}
}
Font SegoeUI;
public TextManager(DirectX.DirectXCanvas canvas)
{
double baseFontSize = 16.0;
int desiredFontSize = (int)(RenderSettings.dpiScaleY * baseFontSize);
int fontSize = 16;
int[] sizes = { 16, 20, 24, 28, 32 };
for (int i = 0; i < sizes.Length; ++i)
{
if (desiredFontSize < sizes[i])
break;
fontSize = sizes[i];
}
SegoeUI = Font.Create(canvas.RenderDevice, String.Format("SegoeUI_{0}_Normal", fontSize));
VertexBuffer = new DynamicBuffer<Vertex>(canvas.RenderDevice, BindFlags.VertexBuffer);
IndexBuffer = new DynamicBuffer<int>(canvas.RenderDevice, BindFlags.IndexBuffer);
TextMesh = canvas.CreateMesh(DirectXCanvas.MeshType.Text);
TextMesh.UseAlpha = true;
}
public void Draw(System.Windows.Point pos, String text, System.Windows.Media.Color color, TextAlignment alignment = TextAlignment.Left, double maxWidth = double.MaxValue)
{
Color textColor = Utils.Convert(color);
char[] str = text.ToCharArray();
switch (alignment)
{
case TextAlignment.Center:
{
double totalWidth = 0.0;
for (int i = 0; i < str.Length; ++i)
totalWidth += SegoeUI.Symbols[str[i]].Advance;
double shift = Math.Max(0.0, (maxWidth - totalWidth) * 0.5);
Vector2 origin = new Vector2((float)(pos.X + shift), (float)pos.Y);
for (int i = 0; i < str.Length; ++i)
{
Font.Symbol symbol = SegoeUI.Symbols[str[i]];
if (symbol.Size.Width > maxWidth)
break;
Draw(origin, symbol, textColor);
origin.X += symbol.Advance;
maxWidth -= symbol.Advance;
}
}
break;
case TextAlignment.Right:
{
Vector2 origin = new Vector2((float)(pos.X + maxWidth), (float)pos.Y);
for (int i = str.Length - 1; i >= 0; --i)
{
Font.Symbol symbol = SegoeUI.Symbols[str[i]];
origin.X -= symbol.Advance;
if (symbol.Size.Width > maxWidth)
break;
Draw(origin, symbol, textColor);
maxWidth -= symbol.Advance;
}
}
break;
default:
{
Vector2 origin = new Vector2((float)pos.X, (float)pos.Y);
for (int i = 0; i < str.Length; ++i)
{
Font.Symbol symbol = SegoeUI.Symbols[str[i]];
if (symbol.Size.Width > maxWidth)
break;
Draw(origin, symbol, textColor);
origin.X += symbol.Advance;
maxWidth -= symbol.Advance;
}
}
break;
}
}
void Draw(Vector2 pos, Font.Symbol symbol, Color color)
{
VertexBuffer.Add(new Vertex()
{
Position = new Vector2(pos.X, pos.Y),
UV = symbol.UV.TopLeft,
Color = color
});
VertexBuffer.Add(new Vertex()
{
Position = new Vector2(pos.X + symbol.Size.Width, pos.Y),
UV = symbol.UV.TopRight,
Color = color
});
VertexBuffer.Add(new Vertex()
{
Position = new Vector2(pos.X + symbol.Size.Width, pos.Y + symbol.Size.Height),
UV = symbol.UV.BottomRight,
Color = color
});
VertexBuffer.Add(new Vertex()
{
Position = new Vector2(pos.X, pos.Y + symbol.Size.Height),
UV = symbol.UV.BottomLeft,
Color = color
});
}
public void Render(DirectX.DirectXCanvas canvas)
{
Freeze(canvas.RenderDevice);
canvas.RenderDevice.ImmediateContext.PixelShader.SetSampler(0, canvas.TextSamplerState);
canvas.RenderDevice.ImmediateContext.PixelShader.SetShaderResource(0, SegoeUI.TextureView);
canvas.Draw(TextMesh);
}
public void Freeze(Device device)
{
TextMesh.PrimitiveCount = VertexBuffer.Count * 2 / 4;
if (IndexBuffer.Count < TextMesh.PrimitiveCount * 6)
{
IndexBuffer.Capacity = TextMesh.PrimitiveCount * 6;
while (IndexBuffer.Count < TextMesh.PrimitiveCount * 6)
{
int baseIndex = (IndexBuffer.Count * 4) / 6;
foreach (int i in DynamicMesh.BoxTriIndices)
IndexBuffer.Add(baseIndex + i);
}
IndexBuffer.Update(device);
}
VertexBuffer.Update(device);
TextMesh.VertexBuffer = VertexBuffer.Buffer;
TextMesh.IndexBuffer = IndexBuffer.Buffer;
TextMesh.VertexBufferBinding = new VertexBufferBinding(TextMesh.VertexBuffer, Utilites.SizeOf<Vertex>(), 0);
}
public void Dispose()
{
SharpDX.Utilities.Dispose(ref SegoeUI);
SharpDX.Utilities.Dispose(ref TextMesh);
}
}
}
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Fri Oct 21 14:35:23 CEST 2016 -->
<title>Uses of Class core.Task</title>
<meta name="date" content="2016-10-21">
<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="Uses of Class core.Task";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../core/Task.html" title="class in core">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?core/class-use/Task.html" target="_top">Frames</a></li>
<li><a href="Task.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class core.Task" class="title">Uses of Class<br>core.Task</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../core/Task.html" title="class in core">Task</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#core">core</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="core">
</a>
<h3>Uses of <a href="../../core/Task.html" title="class in core">Task</a> in <a href="../../core/package-summary.html">core</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subclasses, and an explanation">
<caption><span>Subclasses of <a href="../../core/Task.html" title="class in core">Task</a> in <a href="../../core/package-summary.html">core</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/BasicTask.html" title="class in core">BasicTask</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/ProgrammedEvent.html" title="class in core">ProgrammedEvent</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/SpecialTask.html" title="class in core">SpecialTask</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/TaskSequence.html" title="class in core">TaskSequence</a></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/TimedTask.html" title="class in core">TimedTask</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../core/package-summary.html">core</a> declared as <a href="../../core/Task.html" title="class in core">Task</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">Interval.</span><code><span class="memberNameLink"><a href="../../core/Interval.html#fatherTask">fatherTask</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">TaskSequence.</span><code><span class="memberNameLink"><a href="../../core/TaskSequence.html#nextTask">nextTask</a></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../core/package-summary.html">core</a> that return <a href="../../core/Task.html" title="class in core">Task</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">Interval.</span><code><span class="memberNameLink"><a href="../../core/Interval.html#getFatherTask--">getFatherTask</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">TimedTask.</span><code><span class="memberNameLink"><a href="../../core/TimedTask.html#getNextTask--">getNextTask</a></span>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">TaskSequence.</span><code><span class="memberNameLink"><a href="../../core/TaskSequence.html#getNextTask--">getNextTask</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract <a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">Task.</span><code><span class="memberNameLink"><a href="../../core/Task.html#getNextTask--">getNextTask</a></span>()</code>
<div class="block">Implemented by decorator SpecialTask subclass TaskSequence</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract <a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">SpecialTask.</span><code><span class="memberNameLink"><a href="../../core/SpecialTask.html#getNextTask--">getNextTask</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">ProgrammedEvent.</span><code><span class="memberNameLink"><a href="../../core/ProgrammedEvent.html#getNextTask--">getNextTask</a></span>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../core/Task.html" title="class in core">Task</a></code></td>
<td class="colLast"><span class="typeNameLabel">BasicTask.</span><code><span class="memberNameLink"><a href="../../core/BasicTask.html#getNextTask--">getNextTask</a></span>()</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../core/package-summary.html">core</a> with parameters of type <a href="../../core/Task.html" title="class in core">Task</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><span class="typeNameLabel">Interval.</span><code><span class="memberNameLink"><a href="../../core/Interval.html#setFatherTask-core.Task-">setFatherTask</a></span>(<a href="../../core/Task.html" title="class in core">Task</a> nfatherTask)</code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <a href="../../core/package-summary.html">core</a> with parameters of type <a href="../../core/Task.html" title="class in core">Task</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/Interval.html#Interval-java.lang.String-java.lang.String-core.Task-">Interval</a></span>(java.lang.String name,
java.lang.String description,
<a href="../../core/Task.html" title="class in core">Task</a> fatherTask)</code>
<div class="block">Constructs an interval</div>
</td>
</tr>
<tr class="rowColor">
<td class="colLast"><code><span class="memberNameLink"><a href="../../core/TaskSequence.html#TaskSequence-java.lang.String-java.lang.String-core.Project-java.util.ArrayList-core.Task-">TaskSequence</a></span>(java.lang.String name,
java.lang.String description,
<a href="../../core/Project.html" title="class in core">Project</a> father,
java.util.ArrayList<<a href="../../core/Activity.html" title="class in core">Activity</a>> root,
<a href="../../core/Task.html" title="class in core">Task</a> nnextTask)</code>
<div class="block">Task sequence constructor</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../core/Task.html" title="class in core">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?core/class-use/Task.html" target="_top">Frames</a></li>
<li><a href="Task.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
</body>
</html>
|
#include <iostream>
#include <string>
using namespace std;
int main(){
int n;
string experiment;
for(cin>>n; n>0; n
cin >> experiment;
if (experiment.size() < 3) cout << '+' << endl;
else{
string s = experiment.substr(experiment.size()-2, 2);
string saux;
if(s == "35") cout << '-' << endl;
else{
s = s[1];
saux = experiment[0];
if(saux == "9" && s == "4") cout << '*' << endl;
else{
s = experiment.substr(0,3);
if(s == "190") cout << '?' << endl;
else cout << '?' << endl;
}
}
}
}
return 0;
}
|
import urllib
import urllib2
from bs4 import BeautifulSoup
textToSearch = 'gorillaz'
query = urllib.quote(textToSearch)
url = "https:
response = urllib2.urlopen(url)
html = response.read()
soup = BeautifulSoup(html)
for vid in soup.findAll(attrs={'class':'yt-uix-tile-link'}):
print 'https:
|
"use strict"
var o = require("../../ospec/ospec")
var callAsync = require("../../test-utils/callAsync")
var browserMock = require("../../test-utils/browserMock")
var m = require("../../render/hyperscript")
var callAsync = require("../../test-utils/callAsync")
var coreRenderer = require("../../render/render")
var apiRedraw = require("../../api/redraw")
var apiRouter = require("../../api/router")
var Promise = require("../../promise/promise")
o.spec("route", function() {
void [{protocol: "http:", hostname: "localhost"}, {protocol: "file:", hostname: "/"}].forEach(function(env) {
void ["#", "?", "", "#!", "?!", "/foo"].forEach(function(prefix) {
o.spec("using prefix `" + prefix + "` starting on " + env.protocol + "//" + env.hostname, function() {
var FRAME_BUDGET = Math.floor(1000 / 60)
var $window, root, redrawService, route
o.beforeEach(function() {
$window = browserMock(env)
root = $window.document.body
redrawService = apiRedraw($window)
route = apiRouter($window, redrawService)
route.prefix(prefix)
})
o("throws on invalid `root` DOM node", function() {
var threw = false
try {
route(null, '/', {'/':{view: function() {}}})
} catch (e) {
threw = true
}
o(threw).equals(true)
})
o("renders into `root`", function() {
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
view: function() {
return m("div")
}
}
})
o(root.firstChild.nodeName).equals("DIV")
})
o("routed mount points can redraw synchronously (#1275)", function() {
var view = o.spy()
$window.location.href = prefix + "/"
route(root, "/", {"/":{view:view}})
o(view.callCount).equals(1)
redrawService.redraw()
o(view.callCount).equals(2)
})
o("default route doesn't break back button", function(done) {
$window.location.href = "http://old.com"
$window.location.href = "http://new.com"
route(root, "/a", {
"/a" : {
view: function() {
return m("div")
}
}
})
callAsync(function() {
o(root.firstChild.nodeName).equals("DIV")
o(route.get()).equals("/a")
$window.history.back()
o($window.location.pathname).equals("/")
o($window.location.hostname).equals("old.com")
done()
})
})
o("default route does not inherit params", function(done) {
$window.location.href = "/invalid?foo=bar"
route(root, "/a", {
"/a" : {
oninit: init,
view: function() {
return m("div")
}
}
})
function init(vnode) {
o(vnode.attrs.foo).equals(undefined)
done()
}
})
o("redraws when render function is executed", function() {
var onupdate = o.spy()
var oninit = o.spy()
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
view: function() {
return m("div", {
oninit: oninit,
onupdate: onupdate
})
}
}
})
o(oninit.callCount).equals(1)
redrawService.redraw()
o(onupdate.callCount).equals(1)
})
o("redraws on events", function(done) {
var onupdate = o.spy()
var oninit = o.spy()
var onclick = o.spy()
var e = $window.document.createEvent("MouseEvents")
e.initEvent("click", true, true)
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
view: function() {
return m("div", {
oninit: oninit,
onupdate: onupdate,
onclick: onclick,
})
}
}
})
root.firstChild.dispatchEvent(e)
o(oninit.callCount).equals(1)
o(onclick.callCount).equals(1)
o(onclick.this).equals(root.firstChild)
o(onclick.args[0].type).equals("click")
o(onclick.args[0].target).equals(root.firstChild)
// Wrapped to give time for the rate-limited redraw to fire
callAsync(function() {
o(onupdate.callCount).equals(1)
done()
})
})
o("event handlers can skip redraw", function(done) {
var onupdate = o.spy()
var oninit = o.spy()
var onclick = o.spy()
var e = $window.document.createEvent("MouseEvents")
e.initEvent("click", true, true)
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
view: function() {
return m("div", {
oninit: oninit,
onupdate: onupdate,
onclick: function(e) {
e.redraw = false
},
})
}
}
})
root.firstChild.dispatchEvent(e)
o(oninit.callCount).equals(1)
// Wrapped to ensure no redraw fired
callAsync(function() {
o(onupdate.callCount).equals(0)
done()
})
})
o("changes location on route.link", function() {
var e = $window.document.createEvent("MouseEvents")
e.initEvent("click", true, true)
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
view: function() {
return m("a", {
href: "/test",
oncreate: route.link
})
}
},
"/test" : {
view : function() {
return m("div")
}
}
})
var slash = prefix[0] === "/" ? "" : "/"
o($window.location.href).equals(env.protocol + "
root.firstChild.dispatchEvent(e)
o($window.location.href).equals(env.protocol + "
})
o("accepts RouteResolver with onmatch that returns Component", function(done) {
var matchCount = 0
var renderCount = 0
var Component = {
view: function() {
return m("span")
}
}
var resolver = {
onmatch: function(args, requestedPath) {
matchCount++
o(args.id).equals("abc")
o(requestedPath).equals("/abc")
o(this).equals(resolver)
return Component
},
render: function(vnode) {
renderCount++
o(vnode.attrs.id).equals("abc")
o(this).equals(resolver)
return vnode
},
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id" : resolver
})
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(1)
o(root.firstChild.nodeName).equals("SPAN")
done()
})
})
o("accepts RouteResolver with onmatch that returns Promise<Component>", function(done) {
var matchCount = 0
var renderCount = 0
var Component = {
view: function() {
return m("span")
}
}
var resolver = {
onmatch: function(args, requestedPath) {
matchCount++
o(args.id).equals("abc")
o(requestedPath).equals("/abc")
o(this).equals(resolver)
return Promise.resolve(Component)
},
render: function(vnode) {
renderCount++
o(vnode.attrs.id).equals("abc")
o(this).equals(resolver)
return vnode
},
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id" : resolver
})
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(1)
o(root.firstChild.nodeName).equals("SPAN")
done()
})
})
o("accepts RouteResolver with onmatch that returns Promise<undefined>", function(done) {
var matchCount = 0
var renderCount = 0
var Component = {
view: function() {
return m("span")
}
}
var resolver = {
onmatch: function(args, requestedPath) {
matchCount++
o(args.id).equals("abc")
o(requestedPath).equals("/abc")
o(this).equals(resolver)
return Promise.resolve()
},
render: function(vnode) {
renderCount++
o(vnode.attrs.id).equals("abc")
o(this).equals(resolver)
return vnode
},
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id" : resolver
})
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(1)
o(root.firstChild.nodeName).equals("DIV")
done()
})
})
o("accepts RouteResolver with onmatch that returns Promise<any>", function(done) {
var matchCount = 0
var renderCount = 0
var Component = {
view: function() {
return m("span")
}
}
var resolver = {
onmatch: function(args, requestedPath) {
matchCount++
o(args.id).equals("abc")
o(requestedPath).equals("/abc")
o(this).equals(resolver)
return Promise.resolve([])
},
render: function(vnode) {
renderCount++
o(vnode.attrs.id).equals("abc")
o(this).equals(resolver)
return vnode
},
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id" : resolver
})
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(1)
o(root.firstChild.nodeName).equals("DIV")
done()
})
})
o("accepts RouteResolver with onmatch that returns rejected Promise", function(done) {
var matchCount = 0
var renderCount = 0
var spy = o.spy()
var Component = {
view: function() {
return m("span")
}
}
var resolver = {
onmatch: function(args, requestedPath) {
matchCount++
return Promise.reject(new Error("error"))
},
render: function(vnode) {
renderCount++
return vnode
},
}
$window.location.href = prefix + "/test/1"
route(root, "/default", {
"/default" : {view: spy},
"/test/:id" : resolver
})
callAsync(function() {
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(0)
o(spy.callCount).equals(1)
done()
})
})
})
o("accepts RouteResolver without `render` method as payload", function(done) {
var matchCount = 0
var Component = {
view: function() {
return m("div")
}
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id" : {
onmatch: function(args, requestedPath) {
matchCount++
o(args.id).equals("abc")
o(requestedPath).equals("/abc")
return Component
},
},
})
callAsync(function() {
o(matchCount).equals(1)
o(root.firstChild.nodeName).equals("DIV")
done()
})
})
o("changing `vnode.key` in `render` resets the component", function(done, timeout){
var oninit = o.spy()
var Component = {
oninit: oninit,
view: function() {
return m("div")
}
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id": {render: function(vnode) {
return m(Component, {key: vnode.attrs.id})
}}
})
callAsync(function() {
o(oninit.callCount).equals(1)
route.set("/def")
callAsync(function() {
o(oninit.callCount).equals(2)
done()
})
})
})
o("accepts RouteResolver without `onmatch` method as payload", function() {
var renderCount = 0
var Component = {
view: function() {
return m("div")
}
}
$window.location.href = prefix + "/abc"
route(root, "/abc", {
"/:id" : {
render: function(vnode) {
renderCount++
o(vnode.attrs.id).equals("abc")
return m(Component)
},
},
})
o(root.firstChild.nodeName).equals("DIV")
})
o("RouteResolver `render` does not have component semantics", function(done) {
var renderCount = 0
var A = {
view: function() {
return m("div")
}
}
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
render: function(vnode) {
return m("div")
},
},
"/b" : {
render: function(vnode) {
return m("div")
},
},
})
var dom = root.firstChild
o(root.firstChild.nodeName).equals("DIV")
route.set("/b")
callAsync(function() {
o(root.firstChild).equals(dom)
done()
})
})
o("calls onmatch and view correct number of times", function(done) {
var matchCount = 0
var renderCount = 0
var Component = {
view: function() {
return m("div")
}
}
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
onmatch: function() {
matchCount++
return Component
},
render: function(vnode) {
renderCount++
return vnode
},
},
})
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(1)
redrawService.redraw()
o(matchCount).equals(1)
o(renderCount).equals(2)
done()
})
})
o("calls onmatch and view correct number of times when not onmatch returns undefined", function(done) {
var matchCount = 0
var renderCount = 0
var Component = {
view: function() {
return m("div")
}
}
$window.location.href = prefix + "/"
route(root, "/", {
"/" : {
onmatch: function() {
matchCount++
},
render: function(vnode) {
renderCount++
return {tag: Component}
},
},
})
callAsync(function() {
o(matchCount).equals(1)
o(renderCount).equals(1)
redrawService.redraw()
o(matchCount).equals(1)
o(renderCount).equals(2)
done()
})
})
o("onmatch can redirect to another route", function(done) {
var redirected = false
var render = o.spy()
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
onmatch: function() {
route.set("/b")
},
render: render
},
"/b" : {
view: function() {
redirected = true
}
}
})
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
done()
})
})
o("onmatch can redirect to another route that has RouteResolver w/ only onmatch", function(done) {
var redirected = false
var render = o.spy()
var view = o.spy(function() {return m("div")})
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
onmatch: function() {
route.set("/b")
},
render: render
},
"/b" : {
onmatch: function() {
redirected = true
return {view: view}
}
}
})
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
o(view.callCount).equals(1)
o(root.childNodes.length).equals(1)
o(root.firstChild.nodeName).equals("DIV")
done()
})
})
})
o("onmatch can redirect to another route that has RouteResolver w/ only render", function(done) {
var redirected = false
var render = o.spy()
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
onmatch: function() {
route.set("/b")
},
render: render
},
"/b" : {
render: function(vnode){
redirected = true
}
}
})
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
done()
})
})
o("onmatch can redirect to another route that has RouteResolver whose onmatch resolves asynchronously", function(done) {
var redirected = false
var render = o.spy()
var view = o.spy()
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
onmatch: function() {
route.set("/b")
},
render: render
},
"/b" : {
onmatch: function() {
redirected = true
return new Promise(function(fulfill){
callAsync(function(){
fulfill({view: view})
})
})
}
}
})
callAsync(function() {
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
o(view.callCount).equals(1)
done()
})
})
})
})
o("onmatch can redirect to another route asynchronously", function(done) {
var redirected = false
var render = o.spy()
var view = o.spy()
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
onmatch: function() {
callAsync(function() {route.set("/b")})
return new Promise(function() {})
},
render: render
},
"/b" : {
onmatch: function() {
redirected = true
return {view: view}
}
}
})
callAsync(function() {
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
o(view.callCount).equals(1)
done()
})
})
})
})
o("onmatch can redirect w/ window.history.back()", function(done) {
var render = o.spy()
var component = {view: o.spy()}
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a" : {
onmatch: function() {
return component
},
render: function(vnode) {
return vnode
}
},
"/b" : {
onmatch: function() {
$window.history.back()
return new Promise(function() {})
},
render: render
}
})
callAsync(function() {
route.set('/b')
callAsync(function() {
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(component.view.callCount).equals(2)
done()
})
})
})
})
})
o("onmatch can redirect to a non-existent route that defaults to a RouteResolver w/ onmatch", function(done) {
var redirected = false
var render = o.spy()
$window.location.href = prefix + "/a"
route(root, "/b", {
"/a" : {
onmatch: function() {
route.set("/c")
},
render: render
},
"/b" : {
onmatch: function(vnode){
redirected = true
return {view: function() {}}
}
}
})
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
done()
})
})
})
o("onmatch can redirect to a non-existent route that defaults to a RouteResolver w/ render", function(done) {
var redirected = false
var render = o.spy()
$window.location.href = prefix + "/a"
route(root, "/b", {
"/a" : {
onmatch: function() {
route.set("/c")
},
render: render
},
"/b" : {
render: function(vnode){
redirected = true
}
}
})
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
done()
})
})
})
o("onmatch can redirect to a non-existent route that defaults to a component", function(done) {
var redirected = false
var render = o.spy()
$window.location.href = prefix + "/a"
route(root, "/b", {
"/a" : {
onmatch: function() {
route.set("/c")
},
render: render
},
"/b" : {
view: function(vnode){
redirected = true
}
}
})
callAsync(function() {
callAsync(function() {
o(render.callCount).equals(0)
o(redirected).equals(true)
done()
})
})
})
o("the previous view redraws while onmatch resolution is pending (#1268)", function(done) {
var view = o.spy()
var onmatch = o.spy(function() {
return new Promise(function() {})
})
$window.location.href = prefix + "/a"
route(root, "/", {
"/a": {view: view},
"/b": {onmatch: onmatch}
})
o(view.callCount).equals(1)
o(onmatch.callCount).equals(0)
route.set("/b")
callAsync(function() {
o(view.callCount).equals(1)
o(onmatch.callCount).equals(1)
redrawService.redraw()
o(view.callCount).equals(2)
o(onmatch.callCount).equals(1)
done()
})
})
o("when two async routes are racing, the last one set cancels the finalization of the first", function(done) {
var renderA = o.spy()
var renderB = o.spy()
var onmatchA = o.spy(function(){
return new Promise(function(fulfill) {
setTimeout(function(){
fulfill()
}, 10)
})
})
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a": {
onmatch: onmatchA,
render: renderA
},
"/b": {
onmatch: function(){
var p = new Promise(function(fulfill) {
o(onmatchA.callCount).equals(1)
o(renderA.callCount).equals(0)
o(renderB.callCount).equals(0)
setTimeout(function(){
o(onmatchA.callCount).equals(1)
o(renderA.callCount).equals(0)
o(renderB.callCount).equals(0)
fulfill()
p.then(function(){
o(onmatchA.callCount).equals(1)
o(renderA.callCount).equals(0)
o(renderB.callCount).equals(1)
done()
})
}, 20)
})
return p
},
render: renderB
}
})
callAsync(function() {
o(onmatchA.callCount).equals(1)
o(renderA.callCount).equals(0)
o(renderB.callCount).equals(0)
route.set("/b")
o(onmatchA.callCount).equals(1)
o(renderA.callCount).equals(0)
o(renderB.callCount).equals(0)
})
})
o("m.route.set(m.route.get()) re-runs the resolution logic (#1180)", function(done){
var onmatch = o.spy()
var render = o.spy(function() {return m("div")})
$window.location.href = prefix + "/"
route(root, '/', {
"/": {
onmatch: onmatch,
render: render
}
})
callAsync(function() {
o(onmatch.callCount).equals(1)
o(render.callCount).equals(1)
route.set(route.get())
callAsync(function() {
callAsync(function() {
o(onmatch.callCount).equals(2)
o(render.callCount).equals(2)
done()
})
})
})
})
o("m.route.get() returns the last fully resolved route (#1276)", function(done){
$window.location.href = prefix + "/"
route(root, "/", {
"/": {view: function() {}},
"/2": {
onmatch: function() {
return new Promise(function() {})
}
}
})
o(route.get()).equals("/")
route.set("/2")
callAsync(function() {
o(route.get()).equals("/")
done()
})
})
o("routing with RouteResolver works more than once", function(done) {
$window.location.href = prefix + "/a"
route(root, '/a', {
'/a': {
render: function() {
return m("a", "a")
}
},
'/b': {
render: function() {
return m("b", "b")
}
}
})
route.set('/b')
callAsync(function() {
route.set('/a')
callAsync(function() {
o(root.firstChild.nodeName).equals("A")
done()
})
})
})
o("calling route.set invalidates pending onmatch resolution", function(done) {
var rendered = false
var resolved
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a": {
onmatch: function() {
return new Promise(function(resolve) {
callAsync(function() {
callAsync(function() {
resolve({view: function() {rendered = true}})
})
})
})
},
render: function(vnode) {
rendered = true
resolved = "a"
}
},
"/b": {
view: function() {
resolved = "b"
}
}
})
route.set("/b")
callAsync(function() {
o(rendered).equals(false)
o(resolved).equals("b")
callAsync(function() {
o(rendered).equals(false)
o(resolved).equals("b")
done()
})
})
})
o("route changes activate onbeforeremove", function(done) {
var spy = o.spy()
$window.location.href = prefix + "/a"
route(root, "/a", {
"/a": {
onbeforeremove: spy,
view: function() {}
},
"/b": {
view: function() {}
}
})
route.set("/b")
callAsync(function() {
o(spy.callCount).equals(1)
done()
})
})
o("asynchronous route.set in onmatch works", function(done) {
var rendered = false, resolved
route(root, "/a", {
"/a": {
onmatch: function() {
return Promise.resolve().then(function() {
route.set("/b")
})
},
render: function(vnode) {
rendered = true
resolved = "a"
}
},
"/b": {
view: function() {
resolved = "b"
}
},
})
callAsync(function() { // tick for popstate for /a
callAsync(function() { // tick for promise in onmatch
callAsync(function() { // tick for onpopstate for /b
o(rendered).equals(false)
o(resolved).equals("b")
done()
})
})
})
})
o("throttles", function(done, timeout) {
timeout(200)
var i = 0
$window.location.href = prefix + "/"
route(root, "/", {
"/": {view: function(v) {i++}}
})
var before = i
redrawService.redraw()
redrawService.redraw()
redrawService.redraw()
redrawService.redraw()
var after = i
setTimeout(function() {
o(before).equals(1) // routes synchronously
o(after).equals(2) // redraws synchronously
o(i).equals(3) // throttles rest
done()
}, FRAME_BUDGET * 2)
})
o("m.route.param is available outside of route handlers", function(done) {
$window.location.href = prefix + "/"
route(root, "/1", {
"/:id" : {
view : function() {
o(route.param("id")).equals("1")
return m("div")
}
}
})
o(route.param("id")).equals(undefined);
o(route.param()).deepEquals(undefined);
callAsync(function() {
o(route.param("id")).equals("1")
o(route.param()).deepEquals({id:"1"})
done()
})
})
})
})
})
})
|
// CHECK
vnum = 64;
var x = new Array();
x[0] = 0.<API key>;
x[1] = 0.<API key>;
x[2] = 0.<API key>;
x[3] = 0.<API key>;
x[4] = 1.<API key>;
x[5] = 1.<API key>;
x[6] = 1.<API key>;
x[7] = 1.<API key>;
x[8] = 2.<API key>;
x[9] = 2.<API key>;
x[10] = 2.<API key>;
x[11] = 2.<API key>;
x[12] = 3.<API key>;
x[13] = 3.<API key>;
x[14] = 3.<API key>;
x[15] = 3.<API key>;
x[16] = 4.<API key>;
x[17] = 4.<API key>;
x[18] = 4.<API key>;
x[19] = 4.<API key>;
x[20] = 5.<API key>;
x[21] = 5.<API key>;
x[22] = 5.<API key>;
x[23] = 5.<API key>;
x[24] = 6.<API key>;
x[25] = 6.<API key>;
x[26] = 6.<API key>;
x[27] = 6.<API key>;
x[28] = 7.<API key>;
x[29] = 7.<API key>;
x[30] = 7.<API key>;
x[31] = 7.<API key>;
x[32] = 8.<API key>;
x[33] = 8.<API key>;
x[34] = 8.<API key>;
x[35] = 8.<API key>;
x[36] = 9.<API key>;
x[37] = 9.<API key>;
x[38] = 9.<API key>;
x[39] = 9.<API key>;
x[40] = 10.<API key>;
x[41] = 10.<API key>;
x[42] = 10.<API key>;
x[43] = 10.<API key>;
x[44] = 11.<API key>;
x[45] = 11.<API key>;
x[46] = 11.<API key>;
x[47] = 11.<API key>;
x[48] = 12.<API key>;
x[49] = 12.<API key>;
x[50] = 12.<API key>;
x[51] = 12.<API key>;
x[52] = 13.<API key>;
x[53] = 13.<API key>;
x[54] = 13.<API key>;
x[55] = 13.<API key>;
x[56] = 14.<API key>;
x[57] = 14.<API key>;
x[58] = 14.<API key>;
x[59] = 14.<API key>;
x[60] = 15.<API key>;
x[61] = 15.<API key>;
x[62] = 15.<API key>;
x[63] = 16.<API key>;
var y = new Array();
y[0] = 0.<API key>;
y[1] = 0.<API key>;
y[2] = 0.<API key>;
y[3] = 0.<API key>;
y[4] = 1.<API key>;
y[5] = 1.<API key>;
y[6] = 1.<API key>;
y[7] = 1.<API key>;
y[8] = 1.<API key>;
y[9] = 1.<API key>;
y[10] = 1.<API key>;
y[11] = 1.<API key>;
y[12] = 1.<API key>;
y[13] = 1.<API key>;
y[14] = 1.<API key>;
y[15] = 1.<API key>;
y[16] = 2.<API key>;
y[17] = 2.<API key>;
y[18] = 2.<API key>;
y[19] = 2.<API key>;
y[20] = 2.<API key>;
y[21] = 2.<API key>;
y[22] = 2.<API key>;
y[23] = 2.<API key>;
y[24] = 2.<API key>;
y[25] = 2.<API key>;
y[26] = 2.<API key>;
y[27] = 2.<API key>;
y[28] = 2.<API key>;
y[29] = 2.<API key>;
y[30] = 2.<API key>;
y[31] = 2.<API key>;
y[32] = 2.<API key>;
y[33] = 2.<API key>;
y[34] = 2.<API key>;
y[35] = 2.<API key>;
y[36] = 3.<API key>;
y[37] = 3.<API key>;
y[38] = 3.<API key>;
y[39] = 3.<API key>;
y[40] = 3.<API key>;
y[41] = 3.<API key>;
y[42] = 3.<API key>;
y[43] = 3.<API key>;
y[44] = 3.<API key>;
y[45] = 3.<API key>;
y[46] = 3.<API key>;
y[47] = 3.<API key>;
y[48] = 3.<API key>;
y[49] = 3.<API key>;
y[50] = 3.<API key>;
y[51] = 3.<API key>;
y[52] = 3.<API key>;
y[53] = 3.<API key>;
y[54] = 3.<API key>;
y[55] = 3.<API key>;
y[56] = 3.<API key>;
y[57] = 3.<API key>;
y[58] = 3.<API key>;
y[59] = 3.<API key>;
y[60] = 3.<API key>;
y[61] = 3.<API key>;
y[62] = 3.<API key>;
y[63] = 4.<API key>;
var val;
for (i = 0; i < vnum; i++)
{
val = Math.sqrt(x[i]);
if (!isEqual(val, y[i]))
{
$ERROR("\nx = " + x[i] + "\nlibc.sqrt(x) = " + y[i] + "\nMath.sqrt(x) = " + Math.sqrt(x[i]) + "\nMath.abs(libc.sqrt(x) - Math.sqrt(x)) > " + prec + "\n\n");
}
}
|
// This is generated code.
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
using System;
using System.Collections;
using System.Collections.Generic;
using AdventureWorks.Dal;
using AdventureWorks.Dal.FactoryClasses;
using AdventureWorks.Dal.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace AdventureWorks.Dal.RelationClasses
{
<summary>Implements the relations factory for the entity: WorkOrderRouting. </summary>
public partial class <API key>
{
<summary>CTor</summary>
public <API key>()
{
}
<summary>Gets all relations of the <API key> as a list of IEntityRelation objects.</summary>
<returns>a list of IEntityRelation objects</returns>
public virtual List<IEntityRelation> GetAllRelations()
{
List<IEntityRelation> toReturn = new List<IEntityRelation>();
toReturn.Add(this.<API key>);
toReturn.Add(this.<API key>);
return toReturn;
}
#region Class Property Declarations
<summary>Returns a new IEntityRelation object, between <API key> and LocationEntity over the m:1 relation they have, using the relation between the fields:
WorkOrderRouting.LocationId - Location.LocationId
</summary>
public virtual IEntityRelation <API key>
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "Location", false);
relation.AddEntityFieldPair(LocationFields.LocationId, <API key>.LocationId);
relation.<API key> = <API key>.GetInstance().GetInheritanceInfo("LocationEntity", false);
relation.<API key> = <API key>.GetInstance().GetInheritanceInfo("<API key>", true);
return relation;
}
}
<summary>Returns a new IEntityRelation object, between <API key> and WorkOrderEntity over the m:1 relation they have, using the relation between the fields:
WorkOrderRouting.WorkOrderId - WorkOrder.WorkOrderId
</summary>
public virtual IEntityRelation <API key>
{
get
{
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne, "WorkOrder", false);
relation.AddEntityFieldPair(WorkOrderFields.WorkOrderId, <API key>.WorkOrderId);
relation.<API key> = <API key>.GetInstance().GetInheritanceInfo("WorkOrderEntity", false);
relation.<API key> = <API key>.GetInstance().GetInheritanceInfo("<API key>", true);
return relation;
}
}
<summary>stub, not used in this entity, only for TargetPerEntity entities.</summary>
public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; }
<summary>stub, not used in this entity, only for TargetPerEntity entities.</summary>
public virtual IEntityRelation <API key>() { return null;}
#endregion
#region Included Code
#endregion
}
<summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class <API key>
{
internal static readonly IEntityRelation <API key> = new <API key>().<API key>;
internal static readonly IEntityRelation <API key> = new <API key>().<API key>;
<summary>CTor</summary>
static <API key>()
{
}
}
}
|
'use strict';
export interface IPrint extends ng.resource.IResource<IPrint> {
printOptions: any;
}
export interface IPrintResource extends ng.resource.IResourceClass<IPrint> {}
export class PrintResource {
/* @ngInject */
public static Print($resource: ng.resource.IResourceService): IPrintResource {
var url = '/api/print';
var resource = $resource(url, {});
return <IPrintResource> resource;
}
}
|
<?php
// :default:index.html.twig
return array (
'fe7793f' =>
array (
0 =>
array (
0 => '@bootstrap_css',
1 => '@fontawesome_css_be',
2 => '@<API key>/Resources/public/css/jquery-ui.css',
3 => '@<API key>/Resources/public/css/select2.min.css',
4 => '@<API key>/Resources/public/css/jquery.tagsinput.min.css',
5 => '@<API key>/Resources/public/css/image-picker.css',
6 => '@<API key>/Resources/public/css/style.css',
),
1 =>
array (
),
2 =>
array (
'output' => '_controller/css/fe7793f.css',
'name' => 'fe7793f',
'debug' => NULL,
'combine' => NULL,
'vars' =>
array (
),
),
),
'a56fa94' =>
array (
0 =>
array (
0 => '@jquery',
1 => '@bootstrap_js',
),
1 =>
array (
),
2 =>
array (
'output' => '_controller/js/a56fa94.js',
'name' => 'a56fa94',
'debug' => NULL,
'combine' => NULL,
'vars' =>
array (
),
),
),
);
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "search.h"
#include "marcov.h"
#define ORDER 2
int main(int argc, char **argv) {
int limit = 128;
if(argc > 1) {
limit = atoi(argv[1]);
}
void *strings = NULL;
struct timespec t;
clock_gettime(CLOCK_MONOTONIC, &t);
srand(t.tv_nsec);
marcov_t *m = NULL;
marcov_load(&strings, &m, 0);
char *nl = stringidx(&strings, "\n");
wordlist_t nlstart = (wordlist_t) {.num = 1, .w = &nl};
wordlist_t *wl = NULL;
wl = marcov_randomstart(m, &nlstart);
if(!wl) {
wl = marcov_randomstart(m, NULL);
}
for(int i = 0; i < limit; i++) {
char *line = marcov_getline(m);
if(!line) {
break;
}
printf("%s", line);
free(line);
}
return 0;
}
|
package io.github.jython234.jraklibplus.protocol.raknet;
import static io.github.jython234.jraklibplus.JRakLibPlus.*;
public class NACKPacket extends AcknowledgePacket {
@Override
public byte getPID() {
return NACK;
}
}
|
# Simple.LocalDb
Simple.LocalDb is a simple managed wrapper around the LocalDB API.
This framework has no features. It does not have error checking. It does not do anything smart. It doesn't try to help you in any way. There are no unit tests. There are no integration tests. There are no interfaces, inheritance, coupling, or clever abstractions.
If you're like me and you basically want to call 'CreateInstance' from your test code, this package is your friend.
If you need to automagically deploy a dacpac to a dynamically created test instance, this is not your package.
If you want a smart and robust LocalDb provider that can create different versions of instances, be localized, will clean up cruft localdb files from the filesystem, and will recover from failures, this is not your package.
Try one of these instead:
- [Nicholas Ham's LocalDb NuGet package](https:
- [Martin Costello's LocalDb NuGet package](https:
To use this package:
- You can create an instance of the managed interface, which hides some of the marshaling complexity from you (there's not much).
- You can create an instance of the unmanaged interface and write your own better wrapper around it.
- If you want to use it as a nuget package. Have at it.
- If you want to include the project source in your project. Have at it.
- If you want to copy paste parts of the code into yours. Have at it.
- If you need to target the .Net 3.5 (neee 2.0) runtime and reference a signed assembly. Grab the source and have at it.
- If you want to copy this code and publish a new nuget package from it with a different name and 0..n modifications. Have at it.
Example Managed API usage:
//New up the API.
var api = new ManagedLocalDbApi();
//Get all the instances as a list of strings.
var instanceNames = api.GetInstanceNames().ToList();
//Create a new instance with a random name.
var testInstanceName = Path.GetRandomFileName();
api.CreateInstance(testInstanceName);
//Start the instance and get its connection string (named pipes).
var connection = api.StartInstance(testInstanceName);
//Get a bunch of fun details about the instance.
var testInstance = api.GetInstance(testInstanceName);
//Stop the instance. Timeout if it takes longer than 60 seconds.
api.StopInstance(testInstanceName, TimeSpan.FromSeconds(60));
//Delete the instance.
api.DeleteInstance(testInstanceName);
|
#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
using System.IO;
public class CreateAssetbundle : MonoBehaviour {
[MenuItem("Fineness/Build AssetBundle From Select Resource")]
static void <API key>()
{
UnityEngine.Object[] selecteds = Selection.GetFiltered(typeof(UnityEngine.Object), SelectionMode.DeepAssets);
var count = 0;
var max = selecteds.Length;
var fileNames = new string[max];
var assetBundle = new AssetBundleBuild();
Debug.Log("");
for (var i = 0; i < max; i++)
{
var target = selecteds[i];
string assetPath = AssetDatabase.GetAssetPath(target);
var fileName = assetPath;
assetPath = assetPath.Replace("Assets/", "");
var fileInfo = new FileInfo(assetPath);
if ((fileName.IndexOf('.') != -1) &&
(fileInfo.Extension != "cs") &&
(fileInfo.Extension != "meta"))
{
fileNames[i] = fileName;
count++;
Debug.Log(i + " >> " + fileNames[i]);
}
}
if (count > 0)
{
var activer = Selection.activeObject;
if (activer == null)
{
Debug.Log(" () ...");
return;
}
assetBundle.assetBundleName = activer.name;
assetBundle.assetNames = fileNames;
var outputFileName = Application.streamingAssetsPath + "/AB" + assetBundle.assetBundleName;
if (!Directory.Exists(outputFileName))
Directory.CreateDirectory(outputFileName);
var options = <API key>.None;
var path = "Assets" + outputFileName.Replace(Application.dataPath, "");
BuildPipeline.BuildAssetBundles(path, new[] { assetBundle }, options, <API key>.activeBuildTarget);
AssetDatabase.Refresh();
Debug.Log(" (^∇^*) " + path);
}
else
Debug.Log("");
}
}
public class PlatformPath
{
<summary>
</summary>
<param name="target"></param>
<returns></returns>
public static string GetPlatformFolder(BuildTarget target)
{
switch (target)
{
case BuildTarget.Android:
return "Android";
case BuildTarget.iOS:
return "IOS";
//case BuildTarget.WebPlayer:
// return "WebPlayer";
case BuildTarget.StandaloneWindows:
case BuildTarget.StandaloneWindows64:
return "Windows";
case BuildTarget.StandaloneOSXIntel:
case BuildTarget.<API key>:
case BuildTarget.<API key>:
return "OSX";
default: return null;
}
}
}
#endif
|
import http from "http";
import express from "express";
import cors from "cors";
import morgan from "morgan";
import bodyParser from "body-parser";
import initializeDb from "./db";
import middleware from "./middleware";
import api from "./api";
import config from "config"; //we load the db location from the JSON files
let app = express();
app.server = http.createServer(app);
//don't show the log when it is test
if (process.env.NODE_ENV !== "test") {
// logger
app.use(morgan("dev"));
}
// 3rd party middleware
app.use(
cors({
exposedHeaders: config.corsHeaders
})
);
app.use(
bodyParser.json({
limit: config.bodyLimit
})
);
const dbOptions = {
useMongoClient: true
};
// connect to db
initializeDb(config.dbURI, dbOptions, () => {
// internal middleware
app.use(middleware({ config }));
// api router
app.use("/api", api({ config }));
app.server.listen(process.env.PORT || config.port, () => {
console.log(`Started on port ${app.server.address().port}`);
});
});
export default app;
|
##Generators
<div class="code-extra es6">
js
// Define generators with '*'
function *foo() { }
// halt and output at 'yield'
function *fibonacci() {
let pre = 0, cur = 1;
while(true) {
[ pre, cur ] = [ cur, pre + cur ];
yield cur;
}
}
let fibGen = fibonacci();
fibGen.next(); // { value: 1, done: false }
fibGen.next(); // { value: 2, done: false }
// Can use For..Of on generators
for(let x of fibGen) {
if (x > 1000) {
break;
}
console.log(x);
}
// 1, 2, 3, 5, 8...
Note:
- defined with 'star'
- generators can be halted
- yield outputs value
- yield accepts value
|
'use strict';
var gulp = require('gulp');
var autoprefixer = require('jstransformer')(require('<API key>'));
var autoprefixer = require('autoprefixer-stylus');
var browserSync = require('browser-sync').create();
var changed = require('gulp-changed');
var concat = require('gulp-concat');
var cssbeautify = require('gulp-cssbeautify');
var csscomb = require('gulp-csscomb');
var csso = require('gulp-csso');
var data = require('gulp-data');
var del = require('del');
var filter = require('gulp-filter');
var flatten = require('gulp-flatten');
var gulpZip = require('gulp-zip');
var gulpif = require('gulp-if');
var gutil = require('gulp-util');
var htmlPrettify = require('gulp-prettify');
var imagemin = require('gulp-imagemin');
var imageminPngquant = require('imagemin-pngquant');
var imageminSvgo = require('imagemin-svgo');
var include = require('gulp-include');
var jade = require('gulp-jade');
var jadeInheritance = require('<API key>');
var path = require('path');
var plumber = require('gulp-plumber');
var rename = require('gulp-rename');
var runSequence = require('run-sequence');
var rupture = require('rupture');
var stylus = require('gulp-stylus');
var svgSymbols = require('gulp-svg-symbols');
var uglify = require('gulp-uglify');
var watch = require('gulp-watch');
var gcmq = require('gulp-combine-mq');
// Error handler for gulp-plumber
var errorHandler = function (err) {
gutil.log([(err.name + ' in ' + err.plugin).bold.red, '', err.message, ''].join('\n'));
if (gutil.env.beep) {
gutil.beep();
}
this.emit('end');
};
// Print object in console
var debugObj = function (obj) {
var util = require('util');
console.log(util.inspect(obj, {showHidden: false, depth: null}));
};
// Read file and return object
var getData = function getData (file) {
var dataEntry;
var data;
var dataTmp;
var fs = require('fs');
try {
dataEntry = fs.readFileSync(file, 'utf8');
} catch (er) {
dataEntry = false;
}
dataTmp = '{' + dataEntry + '}';
if (dataEntry) {
// eval('data = {' + dataEntry + '}');
data = JSON.parse(dataTmp);
} else {
data = '{}';
}
return data;
};
var correctNumber = function correctNumber(number) {
return number < 10 ? '0' + number : number;
};
// Return timestamp
var getDateTime = function getDateTime() {
var now = new Date();
var year = now.getFullYear();
var month = correctNumber(now.getMonth() + 1);
var day = correctNumber(now.getDate());
var hours = correctNumber(now.getHours());
var minutes = correctNumber(now.getMinutes());
return year + '-' + month + '-' + day + '-' + hours + minutes;
};
// Plugins options
var options = {
del: [
'dest',
'tmp'
],
plumber: {
errorHandler: errorHandler
},
browserSync: {
server: {
baseDir: './dest'
}
},
stylus: {
use: [
rupture(),
autoprefixer({
browsers: ['last 2 version', '> 1%', 'safari 5', 'ie 8', 'ie 7', 'opera 12.1', 'ios 6', 'android 4'],
cascade: false
})
]
},
cssbeautify: {
indent: '\t',
autosemicolon: true
},
jade: {
pretty: '\t'
},
htmlPrettify: {
"unformatted": ["pre", "code"],
"indent_with_tabs": true,
"preserve_newlines": true,
"brace_style": "expand",
"end_with_newline": true
},
svgSymbols: {
title: false,
id: '%f',
className: '%f',
templates: [
path.join(__dirname, 'source/static/styles/components/icons-template.styl'),
'default-svg'
]
},
imagemin: {
optimizationLevel: 3,
progressive: true,
interlaced: true,
svgoPlugins: [{removeViewBox: false}],
use: [
imageminPngquant(),
imageminSvgo()
]
}
};
gulp.task('cleanup', function (cb) {
return del(options.del, cb);
});
gulp.task('browser-sync', function() {
return browserSync.init(options.browserSync);
});
gulp.task('bs-reload', function (cb) {
browserSync.reload();
});
gulp.task('<API key>', function (cb) {
return gulp.src(['**/*.styl', '!**/_*.styl'], {cwd: 'source/modules'})
.pipe(plumber(options.plumber))
.pipe(concat('modules.styl'))
.pipe(gulp.dest('tmp'));
});
gulp.task('compile-styles', function (cb) {
return gulp.src(['*.styl', '!_*.styl'], {cwd: 'source/static/styles'})
.pipe(plumber(options.plumber))
.pipe(stylus(options.stylus))
.pipe(gcmq({beautify: false}))
.pipe(cssbeautify(options.cssbeautify))
.pipe(csscomb())
.pipe(gulp.dest('dest/css'))
.pipe(csso())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('dest/css'))
.pipe(browserSync.stream());
});
gulp.task('<API key>', function (cb) {
return gulp.src(['**_*.js'], {cwd: 'source/modules/*/data'})
.pipe(plumber(options.plumber))
.pipe(concat('data.js', { newLine: ',\n\n' }))
.pipe(gulp.dest('tmp'));
});
gulp.task('compile-pages', function (cb) {
return gulp.src(['**/*.jade', '!**/_*.jade'], {cwd: 'source/pages'})
.pipe(plumber(options.plumber))
.pipe(data(getData('tmp/data.js')))
.pipe(jade(options.jade))
.pipe(htmlPrettify(options.htmlPrettify))
.pipe(gulp.dest('dest'));
});
gulp.task('copy-modules-img', function (cb) {
return gulp.src('**/*.{jpg,gif,svg,png}', {cwd: 'source/modules/*/assets'})
.pipe(plumber(options.plumber))
.pipe(changed('dest/img'))
.pipe(imagemin(options.imagemin))
.pipe(flatten())
.pipe(gulp.dest('dest/img'));
});
gulp.task('<API key>', function (cb) {
var imageFilter = filter('**/*.{jpg,gif,svg,png}', {restore: true});
var scriptsFilter = filter(['***.min.js'], {restore: true});
var stylesFilter = filter(['**/*.css', '!**/*.min.css'], {restore: true});
return gulp.src(['**_*.*'], {cwd: 'source/static/assets'})
return gulp.src(['**/*.svg', '!**/_*.svg'], {cwd: 'source/static/icons'})
return gulp.src('dest*')
watch('source*.jade', function() {
watch('source/modules/*/data/*.js', function() {
watch('source/static/styles*.styl', function() {
watch('source/modules*.styl', function() {
watch('source/static/scripts*.js', function() {
watch('source/modules/*/*.js', function() {
watch('source/modules/*/assets/**/*.{jpg,gif,svg,png}', function() {
watch('source/static/assets*', function() {
watch('source/static/icons*.svg', function() {
|
#ifndef <API key>
#define <API key>
#include "consensus/consensus.h"
#include "script/interpreter.h"
#include "script/standard.h"
#include <string>
class CCoinsViewCache;
/** Default for -blockmaxsize and -blockminsize, which control the range of sizes the mining code will create **/
// this is now set in chain params
static const unsigned int <API key> = 1000;
static const unsigned int <API key> = 8 * ONE_MEGABYTE;
static const unsigned int <API key> = 2 * ONE_MEGABYTE;
static const unsigned int <API key> = 256 * ONE_MEGABYTE;
// Maximum number of mining candidates that this node will remember simultaneously
static const unsigned int <API key> = 10;
// Send an existing mining candidate if a request comes in within this many seconds of its construction
static const unsigned int <API key> = 30;
/** Default for -blockprioritysize for priority or zero/low-fee transactions **/
static const unsigned int <API key> = 0;
/** The maximum size for transactions we're willing to relay/mine */
static const unsigned int <API key> = 100000;
/**
* Biggest 'standard' txin is a 15-of-15 P2SH multisig with compressed
* keys (remember the 520 byte limit on redeemScript size). That works
* out to a (15*(33+1))+3=513 byte redeemScript, 513+1+15*(73+1)+3=1627
* bytes of scriptSig, which we round off to 1650 bytes for some minor
* future-proofing. That's also enough to spend a 20-of-20 CHECKMULTISIG
* scriptPubKey, though such a scriptPubKey is not considered standard.
*/
static constexpr unsigned int <API key> = 1650;
/** Maximum number of signature check operations in an IsStandard() P2SH script */
static const unsigned int MAX_P2SH_SIGOPS = 15;
/** The maximum number of sigops we're willing to relay/mine in a single tx */
static const unsigned int <API key> = MAX_TX_SIGOPS_COUNT / 5;
/** Default for -maxmempool, maximum megabytes of mempool memory usage */
static const unsigned int <API key> = 300;
/** Dust threshold in satoshis. Historically this value was calculated as
* minRelayTxFee/1000 * 546. However now we just allow the operator to set
* a simple dust threshold independant of any other value or relay fee.
*/
static const unsigned int <API key> = 546;
/**
* Standard script verification flags that standard transactions will comply
* with. However scripts violating these flags may still be present in valid
* blocks and we must accept those blocks.
*/
/* clang-format off */
static const unsigned int <API key> = <API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key> |
<API key>;
/* clang-format on */
/** For convenience, standard but not mandatory verify flags. */
static const unsigned int <API key> =
<API key> & ~<API key>;
/** Used as the flags parameter to sequence and nLocktime checks in non-consensus code. */
static const unsigned int <API key> = <API key> | <API key>;
bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType);
/**
* Check for standard transaction types
* @return True if all outputs (scriptPubKeys) use only standard transaction forms
*/
bool IsStandardTx(const CTransactionRef tx, std::string &reason);
/**
* Check for standard transaction types
* @param[in] mapInputs Map of previous transactions that have outputs we're spending
* @return True if all inputs (scriptSigs) use only standard transaction forms
*/
bool AreInputsStandard(const CTransactionRef tx, const CCoinsViewCache &mapInputs, bool isMay2020Enabled);
#endif // <API key>
|
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace Lab2A.Models.AccountViewModels
{
public class LoginViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
[Display(Name = "Remember me?")]
public bool RememberMe { get; set; }
}
}
|
# Automatically generated, do not edit.
from pyvisdk.thirdparty import Enum
<API key> = Enum(
'enteringMaintenance',
'inMaintenance',
'normal',
)
|
import Ember from 'ember';
import <API key> from 'kowa/mixins/<API key>';
var PaginatedScrollBox = Ember.View.extend(<API key>);
export default PaginatedScrollBox;
|
import <API key> from './actions/<API key>';
import connect from './actions/connect';
import createStore, { withDevTools as <API key> } from './createStore';
import disconnect from './actions/disconnect';
import dismissNotification from './actions/dismissNotification';
import emitTypingIndicator from './actions/emitTypingIndicator';
import markActivity from './actions/markActivity';
import postActivity from './actions/postActivity';
import sendEvent from './actions/sendEvent';
import sendFiles from './actions/sendFiles';
import sendMessage from './actions/sendMessage';
import sendMessageBack from './actions/sendMessageBack';
import sendPostBack from './actions/sendPostBack';
import setDictateInterims from './actions/setDictateInterims';
import setDictateState from './actions/setDictateState';
import setLanguage from './actions/setLanguage';
import setNotification from './actions/setNotification';
import setSendBox from './actions/setSendBox';
import setSendTimeout from './actions/setSendTimeout';
import <API key> from './actions/<API key>';
import startDictate from './actions/startDictate';
import <API key> from './actions/<API key>';
import stopDictate from './actions/stopDictate';
import <API key> from './actions/<API key>';
import submitSendBox from './actions/submitSendBox';
import * as ActivityClientState from './constants/ActivityClientState';
import * as DictateState from './constants/DictateState';
const Constants = { ActivityClientState, DictateState };
const version = process.env.npm_package_version;
export {
<API key>,
connect,
Constants,
createStore,
<API key>,
disconnect,
dismissNotification,
emitTypingIndicator,
markActivity,
postActivity,
sendEvent,
sendFiles,
sendMessage,
sendMessageBack,
sendPostBack,
setDictateInterims,
setDictateState,
setLanguage,
setNotification,
setSendBox,
setSendTimeout,
<API key>,
startDictate,
<API key>,
stopDictate,
<API key>,
submitSendBox,
version
};
|
var assert = require('assert');
var listXf = require('./helpers/listXf');
var R = require('..');
describe('any', function() {
var odd = function(n) {return n % 2 === 1;};
var T = function() {return true;};
var intoArray = R.into([]);
it('returns true if any element satisfies the predicate', function() {
assert.strictEqual(R.any(odd, [2, 4, 6, 8, 10, 11, 12]), true);
});
it('returns false if all elements fails to satisfy the predicate', function() {
assert.strictEqual(R.any(odd, [2, 4, 6, 8, 10, 12]), false);
});
it('returns true into array if any element satisfies the predicate', function() {
assert.deepEqual(intoArray(R.any(odd), [2, 4, 6, 8, 10, 11, 12]), [true]);
});
it('returns false if all elements fails to satisfy the predicate', function() {
assert.deepEqual(intoArray(R.any(odd), [2, 4, 6, 8, 10, 12]), [false]);
});
it('works with more complex objects', function() {
var people = [{first: 'Paul', last: 'Grenier'}, {first:'Mike', last: 'Hurley'}, {first: 'Will', last: 'Klein'}];
var alliterative = function(person) {return person.first.charAt(0) === person.last.charAt(0);};
assert.strictEqual(R.any(alliterative, people), false);
people.push({first: 'Scott', last: 'Sauyet'});
assert.strictEqual(R.any(alliterative, people), true);
});
it('can use a configurable function', function() {
var teens = [{name: 'Alice', age: 14}, {name: 'Betty', age: 18}, {name: 'Cindy', age: 17}];
var atLeast = function(age) {return function(person) {return person.age >= age;};};
assert.strictEqual(R.any(atLeast(16), teens), true, 'Some can legally drive');
assert.strictEqual(R.any(atLeast(21), teens), false, 'None can legally drink');
});
it('returns false for an empty list', function() {
assert.strictEqual(R.any(T, []), false);
});
it('returns false into array for an empty list', function() {
assert.deepEqual(intoArray(R.any(T), []), [false]);
});
it('dispatches when given a transformer in list position', function() {
assert.deepEqual(R.any(odd, listXf), {
any: false,
f: odd,
xf: listXf
});
});
it('is automatically curried', function() {
var count = 0;
var test = function(n) {count++; return odd(n);};
assert(R.any(test)([2, 4, 6, 7, 8, 10]) === true);
});
});
|
<html><body>
<h4>Windows 10 x64 (18362.329)</h4><br>
<h2>_SEGMENT_HEAP</h2>
<font face="arial"> +0x000 EnvHandle : <a href="./RTL_HP_ENV_HANDLE.html">RTL_HP_ENV_HANDLE</a><br>
+0x010 Signature : Uint4B<br>
+0x014 GlobalFlags : Uint4B<br>
+0x018 Interceptor : Uint4B<br>
+0x01c <API key> : Uint2B<br>
+0x01e <API key> : Pos 0, 1 Bit<br>
+0x020 CommitLimitData : <a href="./<API key>.html"><API key></a><br>
+0x020 ReservedMustBeZero1 : Uint8B<br>
+0x028 UserContext : Ptr64 Void<br>
+0x030 ReservedMustBeZero2 : Uint8B<br>
+0x038 Spare : Ptr64 Void<br>
+0x040 LargeMetadataLock : Uint8B<br>
+0x048 LargeAllocMetadata : <a href="./_RTL_RB_TREE.html">_RTL_RB_TREE</a><br>
+0x058 LargeReservedPages : Uint8B<br>
+0x060 LargeCommittedPages : Uint8B<br>
+0x068 StackTraceInitVar : <a href="./_RTL_RUN_ONCE.html">_RTL_RUN_ONCE</a><br>
+0x080 MemStats : <a href="./<API key>.html"><API key></a><br>
+0x0d8 GlobalLockCount : Uint2B<br>
+0x0dc GlobalLockOwner : Uint4B<br>
+0x0e0 ContextExtendLock : Uint8B<br>
+0x0e8 AllocatedBase : Ptr64 UChar<br>
+0x0f0 UncommittedBase : Ptr64 UChar<br>
+0x0f8 ReservedLimit : Ptr64 UChar<br>
+0x100 SegContexts : [2] <a href="./_HEAP_SEG_CONTEXT.html">_HEAP_SEG_CONTEXT</a><br>
+0x280 VsContext : <a href="./_HEAP_VS_CONTEXT.html">_HEAP_VS_CONTEXT</a><br>
+0x340 LfhContext : <a href="./_HEAP_LFH_CONTEXT.html">_HEAP_LFH_CONTEXT</a><br>
</font></body></html>
|
@extends('frontend.layouts.default')
@section('content')
<div class="breadcrumb-wrapper">
<div class="pattern-overlay">
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<h2 class="title">Recent Events</h2>
</div>
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
<div class="breadcrumbs pull-right">
<ul>
<li><a href="{!! URL::to('/') !!}">Home</a></li>
<li><a href="#">Events</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content start-->
<div class="content margin-top60 margin-bottom60">
<div class="container">
<div class="row">
<!-- Blog Posts -->
<div class="posts-block col-lg-8 col-md-8 col-sm-8 col-xs-12">
@foreach($events as $event)
<!-- Blog Post 1 -->
<article class="post hentry">
<div class="post-image">
<a href="{!! asset($event->banner) !!}" data-rel="prettyPhoto">
<span class="img-hover"></span>
<span class="fullscreen"><i class="fa fa-plus"></i></span>
<img src="{!! asset($event->banner) !!}" alt="" width="800px" class="img-responsive">
</a>
</div>
<header class="post-header">
<h2><a href="{!! route('event.details',$event->event_meta_data) !!}" title="dd"> {!! $event->headline !!}</a></h2>
<div class="blog-entry-meta">
<div class="<API key>">
<i class="fa fa-user"></i>
<span class="<API key>">Department: {!! $event->dept->name !!}</span>
</div>
<div class="<API key>">
<i class="fa fa-tags"></i>
<a href="#">Venue: {!! $event->venue !!}</a>,
</div>
<div class="<API key>">
<i class="fa fa-clock-o"></i>
<span class="<API key>">Start Date: {!! $event->start_time !!}</span>
</div>
</div>
</header>
<div class="post-content">
<p>
{!! strip_tags(str_limit($event->description, 350)) !!}
</p>
</div>
<footer class="post-footer">
<a class="btn btn-color" href="{!! route('event.details',$event->event_meta_data) !!}" class="readmore">Read More</a>
</footer>
</article>
<!-- /Blog Post 1 -->
<!-- Star-->
<div class="star">
<div class="row">
<div class="col-md-12">
<div class="star-divider">
<div class="star-divider-icon">
<i class=" fa fa-star"></i>
</div>
</div>
</div>
</div>
</div>
<!-- /Star -->
@endforeach
<!-- /Star -->
<ul class="pager">
{!! $events->render() !!}
</ul>
</div>
<!-- /Blog Posts -->
@include('frontend.includes.rightsidebarEvent')
</div>
</div>
</div>
<!-- /Main Content end-->
@stop
@section('style')
<style>
</style>
@stop
@section('script')
@stop
|
<div layout="row" layout-align="space-between center">
<md-button href="#">Code Challenge for T-Systems</md-button>
<md-button class="acme-navbar-text">Application was created {{ vm.relativeDate }}.</md-button>
</div>
|
{% extends 'layouts/base.html' %}
{% block title %}
{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Question Details</h3>
</div>
<div class="panel-body">
<h5>Lecture: {{ question.lecture }}</h5>
<h5>Text: <blockquote><p>{{ question.text }}</p></blockquote></h5>
<h5>Correct Answer: {{ question.answer.correct_answer.text }}</h5>
<table class="table">
<thead>
<th>
<th>Answer Option</th>
</thead>
{% for option in question.answer.answer_options.all %}
<tbody>
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ option }}</td>
</tr>
</tbody>
{% endfor %}
</table>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Response Summary</h3>
</div>
<div class="panel-body">
<h5>Response Ratio: X/Y </h5>
{% for stat in response_stats %}
{{ stat.0 }} {{ stat.1 }} <br>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Responses</h3>
</div>
<div class="panel-body">
<table class="table table-responsive">
<thead>
<th>
<th>Student</th>
<th>Response</th>
</thead>
<tbody>
{% for response in responses %}
{% if response.is_correct %}
<tr class="success">
{% else %}
<tr class="danger">
{% endif %}
<td>{{ forloop.counter }}</td>
<td>{{ response.student.user.first_name }}, {{ response.student.user.last_name }}</td>
<td>{{ response.answer_option.id }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.