code stringlengths 4 1.01M | language stringclasses 2 values |
|---|---|
package org.zezutom.schematic.model.json;
import org.zezutom.schematic.service.generator.json.StringGenerator;
public class StringNodeTest extends NodeTestCase<String, StringGenerator, StringNode> {
@Override
StringNode newInstance(String name, StringGenerator generator) {
return new StringNode(name, generator);
}
@Override
Class<StringGenerator> getGeneratorClass() {
return StringGenerator.class;
}
@Override
String getTestValue() {
return "test";
}
}
| Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SassApp</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/sass-app.css">
{{content-for "head-footer"}}
</head>
<body>
{{content-for "body"}}
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/sass-app.js"></script>
{{content-for "body-footer"}}
</body>
</html>
| Java |
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Reservation's</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-lg-12">
<?php if($this->session->flashdata('approved_success')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("approved_success"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('approved_failed')): ?>
<?= "<div class='alert alert-danger'>". $this->session->flashdata("approved_failed"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('reject_success')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("reject_success"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('invoice_ok')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("invoice_ok"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('invoice_cancel')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("invoice_cancel"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('reject_failed')): ?>
<?= "<div class='alert alert-danger'>". $this->session->flashdata("reject_failed"). "</div>"; ?>
<?php endif; ?>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
User Appointement's
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>SNo</th>
<th>Invoice</th>
<th>Appartment</th>
<th>Owner</th>
<th>Buy User</th>
<th>Appointment Ok</th>
<th>Appointemnt Cencel</th>
<th>Invoice Date</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<?php foreach($book as $app): ?>
<?php $app->invoice_date;
?>
<?php
$current = strtotime(date('m/d/Y'));
$invoice_date = strtotime($app->invoice_date);
$sub = $invoice_date-$current;
$days = floor($sub/(60*60*24));
$result = explode("-",$days);
?>
<tr>
<td><?php echo $i++; ?></td>
<td><?= $app->invoice; ?></td>
<td><a href="<?php echo base_url('admin/admin_controller/appartment_details/'.$app->appartement_id.'');?>">Appartment Details</a></td>
<td><a href="<?php echo base_url('admin/admin_controller/user_details/'.$app->owner_id.'');?>">Owner Details</a></td>
<td><a href="<?php echo base_url('admin/admin_controller/user_details/'.$app->buy_user_id.'');?>">Buy User Details</a></td>
<td><a href="<?php echo base_url('admin/admin_controller/invoice_ok/'.$app->appartement_id.'');?>" class="btn btn-success"><span class="glyphicon glyphicon-ok"></span></a></td>
<td><a href="<?php echo base_url('admin/admin_controller/invoice_cancel/'.$app->appartement_id.'');?>" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span></a></td>
<?php if($days == 1): ?>
<td><?php echo "Today"; ?></td>
<?php else: ?>
<td><?php echo $result[1]." Days"; ?></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<!-- /.table-responsive -->
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div> | Java |
module.exports = require('eden-class').extend(function() {
/* Require
-------------------------------*/
/* Constants
-------------------------------*/
/* Public.Properties
-------------------------------*/
/* Protected Properties
-------------------------------*/
this._table = null;
this._where = [];
/* Private Properties
-------------------------------*/
/* Magic
-------------------------------*/
this.___construct = function(table) {
this.argument().test(1, 'string', 'undef');
if(typeof table === 'string') {
this.setTable(table);
}
};
/* Public.Methods
-------------------------------*/
/**
* Set the table name in which you want to delete from
*
* @param string name
* @return this
*/
this.setTable = function(table) {
//argument test
this.argument().test(1, 'string');
this._table = table;
return this;
};
/**
* Returns the string version of the query
*
* @param bool
* @return string
* @notes returns the query based on the registry
*/
this.getQuery = function() {
return 'DELETE FROM {TABLE} WHERE {WHERE};'
.replace('{TABLE}' , this._table)
.replace('{WHERE}' , this._where.join(' AND '));
};
/**
* Where clause
*
* @param array|string where
* @return this
* @notes loads a where phrase into registry
*/
this.where = function(where) {
//Argument 1 must be a string or array
this.argument().test(1, 'string', 'array');
if(typeof where === 'string') {
where = [where];
}
this._where = this._where.concat(where);
return this;
};
/* Protected Methods
-------------------------------*/
/* Private Methods
-------------------------------*/
}).register('eden/mysql/delete'); | Java |
# A short history
## < v0.2
- node was event based
| Java |
<HTML><HEAD>
<TITLE>Review for Ed Wood (1994)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0109707">Ed Wood (1994)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Eric+Grossman">Eric Grossman</A></H3><HR WIDTH="40%" SIZE="4">
<PRE> ED WOOD
A film review by Eric Grossman
Copyright 1994 LOS ANGELES INDEPENDENT</PRE>
<P> Transvestites, flying-saucers, and alien grave-robbers, how could
anyone ask for more? Director Tim Burton's latest effort, ED WOOD
offers all of this and yes, far, far more. Burton (BATMAN, EDWARD
SCISSORHANDS) has always been a director who is long on mood and
atmosphere but short on story skills. For ED WOOD, Burton comes in
swinging not only with his usual arsenal of visuals but also with a
strong narrative to tell this story of a cross-dressing B, or make that
C-movie filmmaker.</P>
<P> Johnny Depp, a good actor who does not mind risky roles, plays Ed
Wood, the director who is remembered for making one of the best, worst
films of all time, PLAN 9 FROM OUTER SPACE. Depp's performance is a
caricature but he is successful in bringing out a deeper emotionalism
that makes us genuinely like Ed. Struggling to make it in Hollywood as
an actor/writer and director, just like his idol Orson Wells, Ed is
able to convince a B-movie producer to allow him to make a film about
a man who becomes a woman. Ed believes he is the best for the job
because he himself likes to wear women's clothing, especially angora
sweaters. Ed makes his first film, GLEN OR GLENDA?, in which he
stars with his girlfriend Dolores Fuller (Sara Jessica Parker). After
giving Dolores the script, Ed confesses to her that he has an affinity
for wearing women's garments. Shocked and confused, Dolores is at
least comforted when she learns why her angora sweaters always seemed
to be mysteriously stretched out. As much as she tries, Dolores can
never accept Ed's non-conformist behavior and ultimately their
relationship does not survive. However, Ed does meet Kathy O'Hara
(Patricia Arquette), a quiet, sweet woman who understands that Ed's
desire to cross-dress is not a perversion, but is instead a way for him
to express his deep love for women.</P>
<P> The true treat of the film is Martin Landau who plays famous
DRACULA star, Bela Lugosi. Delivering a performance full of warmth,
humor and sorrow, Landau once again proves that he is one of the best
character actors working today. Long forgotten by the Hollywood
machine that "chews you up and spits you out," Lugosi's career and life
is on the rocks. In a chance encounter, Ed meets Lugosi and a deep
friendship begins. Their relationship is the backbone of the story as
they inspire and aid each other in times of need. In addition to his
charm and other endearing qualities, screenwriters Scott Alexander and
Larry Karaszewski do not gloss over the fact that Lugosi was hooked on
morphine. It is more than once that he calls Ed up in the middle of
the night, in a semi-conscious voice, begging for help. For Ed, Lugosi
validates his "art" as well as being an important element in getting
his pictures made. The friendship is a father/son relationship where
they each take turns being the father and the son.</P>
<P> As we watch Ed try desperately to get his films made, we find
ourselves both laughing at him and admiring him for his courage.
It takes guts to make "your" film, especially when everyone thinks
it is garbage. As bizarre and funny as it is, it takes guts to
admit you like to wear women's clothing and then walk out on the
set in a skirt, heels, and a wig while yelling "okay, everyone,
let's make this movie." Finally, Ed is a portrait of pure
determination. He is able to get PLAN 9 made by promising a Beverly
Hills Baptist church that their investment in a sci-fi/horror film
would bring enough profits to finance religious films. As Bill
Murray's silly Bunny Beckinridge asks Ed, "How do you do it? How do
you convince all your friends to get baptized just so you can make a
monster movie?" The answer, charm and persistence.</P>
<P> Like all of Burton's films, ED WOOD is pure eye-candy. The
black-and-white cinematography is by Stefan Czapsky and the atmospheric
production design was created by Tom Duffield. The serio-comic score
was composed by Howard Shore and the film was edited by Chris
Lebenzon. Ed's angora sweaters and pumps as well as the other
character's outfits were put together by costume designer Colleen
Atwood. Other cast members include Jeffrey Jones and Vincent D'Onofrio
in a small part as Orson Wells.</P>
<P> As endearing as it is bizarre, ED WOOD is a very entertaining
movie that achieves what it aspires to be, an unconventional film about
an unconventional man.</P>
<PRE>.
</PRE>
<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>
| Java |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Olympus;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class WBGLevel extends AbstractTag
{
protected $Id = 287;
protected $Name = 'WB_GLevel';
protected $FullName = 'Olympus::ImageProcessing';
protected $GroupName = 'Olympus';
protected $g0 = 'MakerNotes';
protected $g1 = 'Olympus';
protected $g2 = 'Camera';
protected $Type = 'int16u';
protected $Writable = true;
protected $Description = 'WB G Level';
protected $flag_Permanent = true;
}
| Java |
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=python -msphinx
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=Bot-Chucky
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
echo.then set the SPHINXBUILD environment variable to point to the full
echo.path of the 'sphinx-build' executable. Alternatively you may add the
echo.Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd
| Java |
const path = require('path');
const { expect } = require('chai');
const delay = require('../../../../lib/utils/delay');
describe('Compiler service', () => {
it('Should execute a basic test', async () => {
await runTests('testcafe-fixtures/basic-test.js', 'Basic test');
});
it('Should handle an error', async () => {
try {
await runTests('testcafe-fixtures/error-test.js', 'Throw an error', { shouldFail: true });
}
catch (err) {
expect(err[0].startsWith([
`The specified selector does not match any element in the DOM tree. ` +
` > | Selector('#not-exists') ` +
` [[user-agent]] ` +
` 1 |fixture \`Compiler service\`;` +
` 2 |` +
` 3 |test(\`Throw an error\`, async t => {` +
` > 4 | await t.click('#not-exists');` +
` 5 |});` +
` 6 | at <anonymous> (${path.join(__dirname, 'testcafe-fixtures/error-test.js')}:4:13)`
])).to.be.true;
}
});
it('Should allow using ClientFunction in assertions', async () => {
await runTests('testcafe-fixtures/client-function-in-assertions.js', 'ClientFunction in assertions');
});
it('Should execute Selectors in sync mode', async () => {
await runTests('testcafe-fixtures/synchronous-selectors.js');
});
it('debug', async () => {
let resolver = null;
const result = new Promise(resolve => {
resolver = resolve;
});
runTests('testcafe-fixtures/debug.js')
.then(() => resolver());
setTimeout(async () => {
const client = global.testCafe.runner.compilerService.cdp;
await client.Debugger.resume();
await delay(1000);
await client.Debugger.resume();
}, 10000);
return result;
});
});
| Java |
package rd2wgs84
import (
"testing"
)
var parseTests = []struct {
in RD
out *WGS84
}{
{RD{163835.370083, 446830.763585}, &WGS84{52.00977421758342, 5.515894213047998}},
}
func TestConvert(t *testing.T) {
for i, tt := range parseTests {
wgs := Convert(tt.in.X, tt.in.Y)
if wgs.Latitude != tt.out.Latitude || wgs.Longitude != tt.out.Longitude {
t.Errorf("%d. Convert(%f, %f) => %+v returned, expected %+v", i, tt.in.X, tt.in.Y, wgs, tt.out)
}
}
}
| Java |
body,html,p{
padding:0px;
margin:0px;
overflow:hidden;
}
a{
color:white;
}
.infoBox{
position:absolute;
top: 10px;
left: 10px;
}
.play,.stop{
margin:5px;
color:black;
width:100px;
height:50px;
background-color:white;
}
.title{
font-family:arial;
color:white;
}
.debug{
font-family:arial;
color:white;
}
.small{
font-size:8px;
} | Java |
FRTMProDesigner
===============
3D Surveillance Designer
========================
- 3D rendering developed with modern OpenGL including vertex & fragment shaders
- Makes use of projective texture mapping
- Developed software using OOP principles and design patterns
- Doxygen documentation: http://jaybird19.github.io/FRTMProDesign/
- Technologies: Qt, C++11, STL, OpenGL, GLSL, GLM
- Demo video: https://www.youtube.com/watch?v=G1GyezFv3XE
-
Usage
=====
- Run FRTM3DProDesign
- Load the .obj file: File --> Load OBJ Model or Ctrl+N
- Open the sample model found in ./assets/models/OfficeModel.obj
- Move around the 3D model using your mouse and WASD keys
- Drag and Drop the Camera logo into the desired location in the 3D world
- The green frustum represents the camera's field of coverage
- Provide a more relevant name for the Camera on the left pane
- On the left pane you can modify the Camera's FOVx (default 60) and Aspect Ratio (default 1.33)
- Toggle the Show Full Coverage on the left pane to see the full view of a PTZ camera
- The bottom left window displays the Camera's view, use the mouse to adjust the selected camera's angle
- The Camera View Window can be popped by double-clicking its top bar
- Right click and use the mouse to move the slected camera around the 3D model
- Double-click the camera's name or click the camera's logo in the 3D world to select a camera and display its view in the Camera View Window
- Undo button is provided to undo any changes made to the state of the world
- Use the Delete button to delete the selected camera from the world
Screenshots
===========
Main Window (Drag and Drop Cameras)

Enhanced Camera View

Tested Platforms
================
- Windows 7 (x86-64)
- Windows 10 (x86-64)
- Ubuntu 15.10 (x86-64) (TODO: Not complete yet)
Dependencies
============
- Minimum supported OpenGL version 3.3
- Qt5 (Open Source and freely available http://www.qt.io/)
- MSVC/nmake for Windows
- make/gcc for Linux
- libglew for Linux (sudo apt-get install libglew-dev)
Building Instructions
=====================
- Windows
```bash
git clone https://github.com/jaybird19/FRTMProDesign.git
cd FRTMProDesign
qmake
nmake release
nmake debug
nmake install
```
- To generate a Visual Studio Solution:
```bash
qmake -r -tp vc
```
- Linux (Port to Linux is still not complete)
```bash
git clone https://github.com/jaybird19/FRTMProDesign.git
cd FRTMProDesign
qmake
make release
make debug
```
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>color: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.0 / color - 1.3.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
color
<small>
1.3.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-08 16:59:48 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-08 16:59:48 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.5.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
maintainer: "frederic.blanqui@inria.fr"
authors: [
"Frédéric Blanqui"
"Adam Koprowski"
"Sébastien Hinderer"
"Pierre-Yves Strub"
"Sidi Ould Biha"
"Solange Coupet-Grimal"
"William Delobel"
"Hans Zantema"
"Stéphane Leroux"
"Léo Ducas"
"Johannes Waldmann"
"Qiand Wang"
"Lianyi Zhang"
"Sorin Stratulat"
]
license: "CeCILL"
homepage: "http://color.inria.fr/"
bug-reports: "color@inria.fr"
build: [
[make "-j%{jobs}%"]
]
install: [make "-f" "Makefile.coq" "install"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [
"date:2017-01-11"
"logpath:CoLoR"
"category:Computer Science/Algorithms/Correctness proofs of algorithms"
"category:Computer Science/Data Types and Data Structures"
"category:Computer Science/Lambda Calculi"
"category:Mathematics/Algebra"
"category:Mathematics/Combinatorics and Graph Theory"
"category:Mathematics/Logic/Type theory"
"category:Miscellaneous/Extracted Programs/Type checking unification and normalization"
"keyword:rewriting"
"keyword:termination"
"keyword:lambda calculus"
"keyword:list"
"keyword:multiset"
"keyword:polynomial"
"keyword:vectors"
"keyword:matrices"
"keyword:FSet"
"keyword:FMap"
"keyword:term"
"keyword:context"
"keyword:substitution"
"keyword:universal algebra"
"keyword:varyadic term"
"keyword:string"
"keyword:alpha-equivalence"
"keyword:de Bruijn indices"
"keyword:simple types"
"keyword:matching"
"keyword:unification"
"keyword:relation"
"keyword:ordering"
"keyword:quasi-ordering"
"keyword:lexicographic ordering"
"keyword:ring"
"keyword:semiring"
"keyword:well-foundedness"
"keyword:noetherian"
"keyword:finitely branching"
"keyword:dependent choice"
"keyword:infinite sequences"
"keyword:non-termination"
"keyword:loop"
"keyword:graph"
"keyword:path"
"keyword:transitive closure"
"keyword:strongly connected component"
"keyword:topological ordering"
"keyword:rpo"
"keyword:horpo"
"keyword:dependency pair"
"keyword:dependency graph"
"keyword:semantic labeling"
"keyword:reducibility"
"keyword:Girard"
"keyword:fixpoint theorem"
"keyword:Tarski"
"keyword:pigeon-hole principle"
"keyword:Ramsey theorem"
]
synopsis: "A library on rewriting theory and termination"
url {
src: "http://files.inria.fr/blanqui/color/color.1.3.0.tar.gz"
checksum: "md5=f02aa2ff0545df6884f0ad71de7c2a21"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-color.1.3.0 coq.8.5.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0).
The following dependencies couldn't be met:
- coq-color -> coq >= 8.6 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-color.1.3.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lemma-overloading: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+2 / lemma-overloading - 8.11.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
lemma-overloading
<small>
8.11.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-08-02 19:48:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-02 19:48:15 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.12 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.7.1+2 Formal proof management system.
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "palmskog@gmail.com"
homepage: "https://github.com/coq-community/lemma-overloading"
dev-repo: "git+https://github.com/coq-community/lemma-overloading.git"
bug-reports: "https://github.com/coq-community/lemma-overloading/issues"
doc: "https://coq-community.github.io/lemma-overloading/"
license: "GPL-3.0-or-later"
synopsis: "Libraries demonstrating design patterns for programming and proving with canonical structures in Coq"
description: """
This project contains Hoare Type Theory libraries which
demonstrate a series of design patterns for programming
with canonical structures that enable one to carefully
and predictably coax Coq's type inference engine into triggering
the execution of user-supplied algorithms during unification, and
illustrates these patterns through several realistic examples drawn
from Hoare Type Theory. The project also contains typeclass-based
re-implementations for comparison."""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"coq" {(>= "8.10" & < "8.12~") | (= "dev")}
"coq-mathcomp-ssreflect" {(>= "1.7" & < "1.12~") | (= "dev")}
]
tags: [
"category:Computer Science/Data Types and Data Structures"
"keyword:canonical structures"
"keyword:proof automation"
"keyword:hoare type theory"
"keyword:lemma overloading"
"logpath:LemmaOverloading"
"date:2020-02-01"
]
authors: [
"Georges Gonthier"
"Beta Ziliani"
"Aleksandar Nanevski"
"Derek Dreyer"
]
url {
src: "https://github.com/coq-community/lemma-overloading/archive/v8.11.0.tar.gz"
checksum: "sha512=58df76ccd7a76da1ca5460d6fc6f8a99fa7f450678098fa45c2e2b92c2cb658586b9abd6c0e3c56177578a28343c287b232ebc07448078f2a218c37db130b3d7"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-lemma-overloading.8.11.0 coq.8.7.1+2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2).
The following dependencies couldn't be met:
- coq-lemma-overloading -> coq >= dev
no matching version
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lemma-overloading.8.11.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ltac2: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.10.2 / ltac2 - 0.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ltac2
<small>
0.1
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-07-11 07:20:54 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-11 07:20:54 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.10.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
name: "coq-ltac2"
maintainer: "Pierre-Marie Pédrot <pierre-marie.pedrot@irif.fr>"
license: "LGPL 2.1"
homepage: "https://github.com/coq/ltac2"
dev-repo: "git+https://github.com/coq/ltac2.git"
bug-reports: "https://github.com/coq/ltac2/issues"
build: [
[make "COQBIN=\"\"" "-j%{jobs}%"]
]
install: [make "install"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
synopsis: "A tactic language for Coq"
authors: "Pierre-Marie Pédrot <pierre-marie.pedrot@irif.fr>"
url {
src: "https://github.com/coq/ltac2/archive/0.1.tar.gz"
checksum: "sha256=f03d81d0cf9f28bfb82bbf3c371fbab5878d0923952459739282f173dea816a8"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ltac2.0.1 coq.8.10.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.2).
The following dependencies couldn't be met:
- coq-ltac2 -> coq < 8.9~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ltac2.0.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| Java |
<?php
return array (
'id' => 'mot_v3i_ver1_sub080305r',
'fallback' => 'mot_v3i_ver1',
'capabilities' =>
array (
),
);
| Java |
---
layout: page
title: Orr Dart Tech Conference
date: 2016-05-24
author: Jack Blankenship
tags: weekly links, java
status: published
summary: Sed molestie molestie dignissim. Pellentesque hendrerit ac.
banner: images/banner/meeting-01.jpg
booking:
startDate: 09/07/2016
endDate: 09/09/2016
ctyhocn: ONTNPHX
groupCode: ODTC
published: true
---
Morbi ipsum metus, porttitor a felis et, porta porta sem. Pellentesque sit amet nulla ullamcorper, suscipit risus ac, feugiat nunc. Nunc ornare odio at orci gravida maximus. Vestibulum sed sapien velit. Suspendisse justo orci, porta non ex mollis, dictum porta dolor. Suspendisse potenti. Mauris tristique, ipsum sit amet porta dignissim, urna nunc faucibus quam, a dapibus nunc urna eu ante. Duis porta mi in lectus feugiat venenatis. Aliquam arcu lacus, dictum at rutrum ac, elementum ac elit. Nulla at efficitur velit, quis ornare felis. Quisque ullamcorper mi arcu, ac aliquam enim efficitur eget. Ut eros nibh, congue et rutrum non, pretium at ipsum. Nullam ultrices augue tristique, rhoncus odio vitae, ullamcorper sapien.
* Maecenas vehicula ipsum in orci consectetur sodales
* Nam blandit quam at tempus tristique
* Ut in quam a nisi rhoncus ultricies ut sed risus.
Vestibulum aliquet metus elit. Cras condimentum ante ac est volutpat rhoncus. Etiam pulvinar ac justo sed pretium. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent dictum ultricies libero, eu porta diam porttitor quis. Duis sed purus euismod, varius sem nec, suscipit ante. Vestibulum malesuada eu metus in elementum. Vestibulum leo nisi, pellentesque sit amet iaculis vitae, dignissim ac ligula. Pellentesque venenatis rhoncus orci ut pellentesque. Proin ac imperdiet quam. Aliquam condimentum non enim ut bibendum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
| Java |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GoobyCoin</source>
<translation>Про GoobyCoin</translation>
</message>
<message>
<location line="+39"/>
<source><b>GoobyCoin</b> version</source>
<translation>Версія <b>GoobyCoin'a<b></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://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>
Це програмне забезпечення є експериментальним.
Поширюється за ліцензією MIT/X11, додаткова інформація міститься у файлі COPYING, а також за адресою http://www.opensource.org/licenses/mit-license.php.
Цей продукт включає в себе програмне забезпечення, розроблене в рамках проекту OpenSSL (http://www.openssl.org/), криптографічне програмне забезпечення, написане Еріком Янгом (eay@cryptsoft.com), та функції для роботи з UPnP, написані Томасом Бернардом.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation>Авторське право</translation>
</message>
<message>
<location line="+0"/>
<source>The GoobyCoin 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 GoobyCoin 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>Це ваші адреси для отримання платежів. Ви можете давати різні адреси різним людям, таким чином маючи можливість відслідкувати хто конкретно і скільки вам заплатив.</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 GoobyCoin address</source>
<translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</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 GoobyCoin address</source>
<translation>Перевірте повідомлення для впевненості, що воно підписано вказаною GoobyCoin-адресою</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 GoobyCoin 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="+265"/>
<source>Export Address Book Data</source>
<translation>Експортувати адресну книгу</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Файли відділені комами (*.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>Діалог введення паролю</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>Введіть новий пароль для гаманця.<br/>Будь ласка, використовуйте паролі що містять <b>як мінімум 10 випадкових символів</b>, або <b>як мінімум 8 слів</b>.</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 BITCOINS</b>!</source>
<translation>УВАГА: Якщо ви зашифруєте гаманець і забудете пароль, ви <b>ВТРАТИТЕ ВСІ СВОЇ БІТКОІНИ</b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Ви дійсно хочете зашифрувати свій гаманець?</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!</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Гаманець зашифровано</translation>
</message>
<message>
<location line="-56"/>
<source>GoobyCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your goobycoins from being stolen by malware infecting your computer.</source>
<translation>Біткоін-клієнт буде закрито для завершення процесу шифрування. Пам'ятайте, що шифрування гаманця не може повністю захистити ваші біткоіни від крадіжки, у випадку якщо ваш комп'ютер буде інфіковано шкідливими програмами.</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>Пароль було успішно змінено.</translation>
</message>
</context>
<context>
<name>GoobyCoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+254"/>
<source>Sign &message...</source>
<translation>&Підписати повідомлення...</translation>
</message>
<message>
<location line="+246"/>
<source>Synchronizing with network...</source>
<translation>Синхронізація з мережею...</translation>
</message>
<message>
<location line="-321"/>
<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="+7"/>
<source>Show information about GoobyCoin</source>
<translation>Показати інформацію про GoobyCoin</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="+9"/>
<source>&Encrypt Wallet...</source>
<translation>&Шифрування гаманця...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Резервне копіювання гаманця...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>Змінити парол&ь...</translation>
</message>
<message>
<location line="+251"/>
<source>Importing blocks from disk...</source>
<translation>Імпорт блоків з диску...</translation>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-319"/>
<source>Send coins to a GoobyCoin address</source>
<translation>Відправити монети на вказану адресу</translation>
</message>
<message>
<location line="+52"/>
<source>Modify configuration options for GoobyCoin</source>
<translation>Редагувати параметри</translation>
</message>
<message>
<location line="+12"/>
<source>Backup wallet to another location</source>
<translation>Резервне копіювання гаманця в інше місце</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="-183"/>
<location line="+6"/>
<location line="+508"/>
<source>GoobyCoin</source>
<translation>GoobyCoin</translation>
</message>
<message>
<location line="-514"/>
<location line="+6"/>
<source>Wallet</source>
<translation>Гаманець</translation>
</message>
<message>
<location line="+107"/>
<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="+23"/>
<location line="+2"/>
<source>&About GoobyCoin</source>
<translation>&Про GoobyCoin</translation>
</message>
<message>
<location line="+10"/>
<location line="+2"/>
<source>&Show / Hide</source>
<translation>Показати / Приховати</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation>Показує або приховує головне вікно</translation>
</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 GoobyCoin addresses to prove you own them</source>
<translation>Підтвердіть, що Ви є власником повідомлення підписавши його Вашою GoobyCoin-адресою </translation>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified GoobyCoin addresses</source>
<translation>Перевірте повідомлення для впевненості, що воно підписано вказаною GoobyCoin-адресою</translation>
</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="-228"/>
<location line="+288"/>
<source>[testnet]</source>
<translation>[тестова мережа]</translation>
</message>
<message>
<location line="-5"/>
<location line="+5"/>
<source>GoobyCoin client</source>
<translation>GoobyCoin-клієнт</translation>
</message>
<message numerus="yes">
<location line="+121"/>
<source>%n active connection(s) to GoobyCoin network</source>
<translation><numerusform>%n активне з'єднання з мережею</numerusform><numerusform>%n активні з'єднання з мережею</numerusform><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>Оброблено %1 блоків історії транзакцій.</translation>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><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>Помилка</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>Увага</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>Інформація</translation>
</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 GoobyCoin address or malformed URI parameters.</source>
<translation>Неможливо обробити URI! Це може бути викликано неправильною GoobyCoin-адресою, чи невірними параметрами URI.</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation><b>Зашифрований</b> гаманець <b>розблоковано</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation><b>Зашифрований</b> гаманець <b>заблоковано</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+110"/>
<source>A fatal error occurred. GoobyCoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+105"/>
<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 GoobyCoin address.</source>
<translation>Введена адреса «%1» не є коректною адресою в мережі GoobyCoin.</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>FreespaceChecker</name>
<message>
<location filename="../intro.cpp" line="+61"/>
<source>A new data directory will be created.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Directory already exists. Add %1 if you intend to create a new directory here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Path already exists, and is not a directory.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Cannot create data directory here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+517"/>
<location line="+13"/>
<source>GoobyCoin-Qt</source>
<translation>GoobyCoin-Qt</translation>
</message>
<message>
<location line="-13"/>
<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>параметри командного рядка</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>Параметри інтерфейсу</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Встановлення мови, наприклад "de_DE" (типово: системна)</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>Показувати заставку під час запуску (типово: 1)</translation>
</message>
<message>
<location line="+1"/>
<source>Choose data directory on startup (default: 0)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Intro</name>
<message>
<location filename="../forms/intro.ui" line="+14"/>
<source>Welcome</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Welcome to GoobyCoin-Qt.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>As this is the first time the program is launched, you can choose where GoobyCoin-Qt will store its data.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>GoobyCoin-Qt will download and store a copy of the GoobyCoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Use the default data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use a custom data directory:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../intro.cpp" line="+100"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>GB of free space available</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>(of %1GB needed)</source>
<translation type="unfinished"/>
</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 GoobyCoin after logging in to the system.</source>
<translation>Автоматично запускати гаманець при вході до системи.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start GoobyCoin on system login</source>
<translation>&Запускати гаманець при вході в систему</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation>Скинути всі параметри клієнта на типові.</translation>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation>Скинути параметри</translation>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Мережа</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the GoobyCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Автоматично відкривати порт для клієнту біткоін на роутері. Працює лише якщо ваш роутер підтримує UPnP і ця функція увімкнена.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Відображення порту через &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the GoobyCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>Підключатись до мережі GoobyCoin через SOCKS-проксі (наприклад при використанні 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>&IP проксі:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>IP-адреса проксі-сервера (наприклад 127.0.0.1)</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>Показувати лише іконку в треї після згортання вікна.</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 GoobyCoin.</source>
<translation>Встановлює мову інтерфейсу. Зміни набудуть чинності після перезапуску GoobyCoin.</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 GoobyCoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</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="+54"/>
<source>default</source>
<translation>типово</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation>Підтвердження скидання параметрів</translation>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation>Деякі параметри потребують перезапуск клієнта для набуття чинності.</translation>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation>Продовжувати?</translation>
</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 GoobyCoin.</source>
<translation>Цей параметр набуде чинності після перезапуску GoobyCoin.</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="+202"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the GoobyCoin network after a connection is established, but this process has not completed yet.</source>
<translation>Показана інформація вже може бути застарілою. Ваш гаманець буде автоматично синхронізовано з мережею GoobyCoin після встановлення підключення, але цей процес ще не завершено.</translation>
</message>
<message>
<location line="-131"/>
<source>Unconfirmed:</source>
<translation>Непідтверджені:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Гаманець</translation>
</message>
<message>
<location line="+49"/>
<source>Confirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source><b>Recent transactions</b></source>
<translation><b>Недавні транзакції</b></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="+108"/>
<source>Cannot start goobycoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QObject</name>
<message>
<location filename="../bitcoin.cpp" line="+92"/>
<location filename="../intro.cpp" line="-32"/>
<source>GoobyCoin</source>
<translation>GoobyCoin</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Specified data directory "%1" does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../intro.cpp" line="+1"/>
<source>Error: Specified data directory "%1" can not be created.</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-коду</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="+64"/>
<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="+345"/>
<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 type="unfinished"/>
</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>В тестовій мережі</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Поточне число блоків</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>Відкрити</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>Параметри командного рядка</translation>
</message>
<message>
<location line="+7"/>
<source>Show the GoobyCoin-Qt help message to get a list with possible GoobyCoin command-line options.</source>
<translation>Показати довідку GoobyCoin-Qt для отримання переліку можливих параметрів командного рядка.</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>GoobyCoin - Debug window</source>
<translation>GoobyCoin - Вікно зневадження</translation>
</message>
<message>
<location line="+25"/>
<source>GoobyCoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Файл звіту зневадження</translation>
</message>
<message>
<location line="+7"/>
<source>Open the GoobyCoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Очистити консоль</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the GoobyCoin RPC console.</source>
<translation>Вітаємо у консолі GoobyCoin 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>Використовуйте стрілки вгору вниз для навігації по історії, і <b>Ctrl-L</b> для очищення екрана.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Наберіть <b>help</b> для перегляду доступних команд.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+128"/>
<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 ABC</source>
<translation>123.456 ABC</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="-62"/>
<location line="+2"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> адресату %2 (%3)</translation>
</message>
<message>
<location line="+6"/>
<source>Confirm send coins</source>
<translation>Підтвердіть відправлення</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Ви впевнені що хочете відправити %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>Помилка: Не вдалося створити транзакцію!</translation>
</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.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>&Кількість:</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. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</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 GoobyCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.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 type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</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>Підпис</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Копіювати поточну сигнатуру до системного буферу обміну</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this GoobyCoin address</source>
<translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>&Підписати повідомлення</translation>
</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 type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified GoobyCoin address</source>
<translation>Перевірте повідомлення для впевненості, що воно підписано вказаною GoobyCoin-адресою</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation>Перевірити повідомлення</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>Скинути всі поля перевірки повідомлення</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a GoobyCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Натисніть кнопку «Підписати повідомлення», для отримання підпису</translation>
</message>
<message>
<location line="+3"/>
<source>Enter GoobyCoin signature</source>
<translation>Введіть сигнатуру GoobyCoin</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 type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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 GoobyCoin 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 type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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 type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></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>ID транзакції</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 10 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>Після генерації монет, потрібно зачекати 10 блоків, перш ніж їх можна буде використати. Коли ви згенерували цей блок, його було відправлено в мережу для того, щоб він був доданий до ланцюжка блоків. Якщо ця процедура не вдасться, статус буде змінено на «не підтверджено» і ви не зможете потратити згенеровані монету. Таке може статись, якщо хтось інший згенерував блок на декілька секунд раніше.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Транзакція</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Кількість</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>true</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>false</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><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>невідомий</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.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>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.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><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Відкрити до %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 type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></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="+143"/>
<source>Export Transaction Data</source>
<translation>Експортувати дані транзакцій</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Файли, розділені комою (*.csv)</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="+46"/>
<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="+197"/>
<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>Виникла помилка при спробі зберегти гаманець в новому місці.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation>Успішне створення резервної копії</translation>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation>Данні гаманця успішно збережено в новому місці призначення.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+98"/>
<source>GoobyCoin version</source>
<translation>Версія</translation>
</message>
<message>
<location line="+104"/>
<source>Usage:</source>
<translation>Використання:</translation>
</message>
<message>
<location line="-30"/>
<source>Send command to -server or goobycoind</source>
<translation>Відправити команду серверу -server чи демону</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>Список команд</translation>
</message>
<message>
<location line="-13"/>
<source>Get help for a command</source>
<translation>Отримати довідку по команді</translation>
</message>
<message>
<location line="+25"/>
<source>Options:</source>
<translation>Параметри:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: goobycoin.conf)</source>
<translation>Вкажіть файл конфігурації (типово: goobycoin.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: goobycoind.pid)</source>
<translation>Вкажіть pid-файл (типово: goobycoind.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: 10221 or testnet: 20221)</source>
<translation>Чекати на з'єднання на <port> (типово: 10221 або тестова мережа: 20221)</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="-49"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+84"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Поріг відключення неправильно під'єднаних пірів (типово: 100)</translation>
</message>
<message>
<location line="-136"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Максимальній розмір вхідного буферу на одне з'єднання (типово: 86400)</translation>
</message>
<message>
<location line="-33"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Listen for JSON-RPC connections on <port> (default: 10222 or testnet: 20222)</source>
<translation>Прослуховувати <port> для JSON-RPC-з'єднань (типово: 10222 або тестова мережа: 20222)</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Приймати команди із командного рядка та команди JSON-RPC</translation>
</message>
<message>
<location line="+77"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Запустити в фоновому режимі (як демон) та приймати команди</translation>
</message>
<message>
<location line="+38"/>
<source>Use the test network</source>
<translation>Використовувати тестову мережу</translation>
</message>
<message>
<location line="-114"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=goobycoinrpc
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 "GoobyCoin 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. GoobyCoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<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.dat), а монети були використані з іншої копії, але не позначені як використані в цій.</translation>
</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 type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong GoobyCoin will not work properly.</source>
<translation>Увага: будь ласка, перевірте дату і час на своєму комп'ютері. Якщо ваш годинник йде неправильно, GoobyCoin може працювати некоректно.</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>Увага: помилка читання wallet.dat! Всі ключі прочитано коректно, але дані транзакцій чи записи адресної книги можуть бути пропущені, або пошкоджені.</translation>
</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>Увага: файл wallet.dat пошкоджено, дані врятовано! Оригінальний wallet.dat збережено як wallet.{timestamp}.bak до %s; якщо Ваш баланс чи транзакції неправильні, Ви можете відновити їх з резервної копії. </translation>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Спроба відновити закриті ключі з пошкодженого wallet.dat</translation>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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>Помилка ініціалізації бази даних блоків</translation>
</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>Помилка завантаження бази даних блоків</translation>
</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>Помилка: Мало вільного місця на диску!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation>Помилка: Гаманець заблокований, неможливо створити транзакцію!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation>Помилка: системна помилка: </translation>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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>Скільки блоків перевіряти під час запуску (типово: 288, 0 = всі)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<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="+7"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet %s resides outside data directory %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>You need to rebuild the database using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation>Імпорт блоків з зовнішнього файлу blk000??.dat</translation>
</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="+78"/>
<source>Information</source>
<translation>Інформація</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>Помилка в адресі -tor: «%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 type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>Виводити більше налагоджувальної інформації. Мається на увазі всі шнші -debug* параметри</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>Доповнювати налагоджувальний вивід відміткою часу</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the GoobyCoin Wiki for SSL setup instructions)</source>
<translation>Параметри SSL: (див. GoobyCoin Wiki для налаштування SSL)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>Вибір версії socks-проксі для використання (4-5, типово: 5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Відсилати налагоджувальну інформацію на консоль, а не у файл debug.log</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 під час старту клієнта (типово: 1 коли відсутутній параметр -debug)</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>Вказати тайм-аут підключення у мілісекундах (типово: 5000)</translation>
</message>
<message>
<location line="+5"/>
<source>System error: </source>
<translation>Системна помилка: </translation>
</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 для відображення порту, що прослуховується на роутері (default: 0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Намагатись використовувати UPnP для відображення порту, що прослуховується на роутері (default: 1 when listening)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>Ім'я користувача для JSON-RPC-з'єднань</translation>
</message>
<message>
<location line="+5"/>
<source>Warning</source>
<translation>Попередження</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Увага: Поточна версія застаріла, необхідне оновлення!</translation>
</message>
<message>
<location line="+2"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat пошкоджено, відновлення не вдалося</translation>
</message>
<message>
<location line="-52"/>
<source>Password for JSON-RPC connections</source>
<translation>Пароль для JSON-RPC-з'єднань</translation>
</message>
<message>
<location line="-68"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Дозволити JSON-RPC-з'єднання з вказаної IP-адреси</translation>
</message>
<message>
<location line="+77"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Відправляти команди на вузол, запущений на <ip> (типово: 127.0.0.1)</translation>
</message>
<message>
<location line="-121"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+149"/>
<source>Upgrade wallet to latest format</source>
<translation>Модернізувати гаманець до останнього формату</translation>
</message>
<message>
<location line="-22"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Встановити розмір пулу ключів <n> (типово: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Пересканувати ланцюжок блоків, в пошуку втрачених транзакцій</translation>
</message>
<message>
<location line="+36"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Використовувати OpenSSL (https) для JSON-RPC-з'єднань</translation>
</message>
<message>
<location line="-27"/>
<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="-156"/>
<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="+171"/>
<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="-93"/>
<source>Connect through socks proxy</source>
<translation>Підключитись через SOCKS-проксі</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Дозволити пошук в DNS для команд -addnode, -seednode та -connect</translation>
</message>
<message>
<location line="+56"/>
<source>Loading addresses...</source>
<translation>Завантаження адрес...</translation>
</message>
<message>
<location line="-36"/>
<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 GoobyCoin</source>
<translation>Помилка при завантаженні wallet.dat: Гаманець потребує новішої версії Біткоін-клієнта</translation>
</message>
<message>
<location line="+96"/>
<source>Wallet needed to be rewritten: restart GoobyCoin to complete</source>
<translation>Потрібно перезаписати гаманець: перезапустіть Біткоін-клієнт для завершення</translation>
</message>
<message>
<location line="-98"/>
<source>Error loading wallet.dat</source>
<translation>Помилка при завантаженні wallet.dat</translation>
</message>
<message>
<location line="+29"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Помилка в адресі проксі-сервера: «%s»</translation>
</message>
<message>
<location line="+57"/>
<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 type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Помилка у величині комісії -paytxfee=<amount>: «%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="-58"/>
<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. GoobyCoin is probably already running.</source>
<translation>Неможливо прив'язати до порту %s на цьому комп'ютері. Можливо гаманець вже запущено.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Комісія за КБ</translation>
</message>
<message>
<location line="+20"/>
<source>Loading wallet...</source>
<translation>Завантаження гаманця...</translation>
</message>
<message>
<location line="-53"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>Неможливо записати типову адресу</translation>
</message>
<message>
<location line="+65"/>
<source>Rescanning...</source>
<translation>Сканування...</translation>
</message>
<message>
<location line="-58"/>
<source>Done loading</source>
<translation>Завантаження завершене</translation>
</message>
<message>
<location line="+84"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<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>Ви мусите встановити rpcpassword=<password> в файлі конфігурації:
%s
Якщо файл не існує, створіть його із правами тільки для читання власником (owner-readable-only).</translation>
</message>
</context>
</TS> | Java |
package bimg
import (
"io/ioutil"
"os"
"path"
"testing"
)
func TestSize(t *testing.T) {
files := []struct {
name string
width int
height int
}{
{"test.jpg", 1680, 1050},
{"test.png", 400, 300},
{"test.webp", 550, 368},
}
for _, file := range files {
size, err := Size(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %#v", err)
}
if size.Width != file.width || size.Height != file.height {
t.Fatalf("Unexpected image size: %dx%d", size.Width, size.Height)
}
}
}
func TestMetadata(t *testing.T) {
files := []struct {
name string
format string
orientation int
alpha bool
profile bool
space string
}{
{"test.jpg", "jpeg", 0, false, false, "srgb"},
{"test_icc_prophoto.jpg", "jpeg", 0, false, true, "srgb"},
{"test.png", "png", 0, true, false, "srgb"},
{"test.webp", "webp", 0, false, false, "srgb"},
{"test.avif", "avif", 0, false, false, "srgb"},
}
for _, file := range files {
metadata, err := Metadata(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", file.name, err)
}
if metadata.Type != file.format {
t.Fatalf("Unexpected image format: %s", file.format)
}
if metadata.Orientation != file.orientation {
t.Fatalf("Unexpected image orientation: %d != %d", metadata.Orientation, file.orientation)
}
if metadata.Alpha != file.alpha {
t.Fatalf("Unexpected image alpha: %t != %t", metadata.Alpha, file.alpha)
}
if metadata.Profile != file.profile {
t.Fatalf("Unexpected image profile: %t != %t", metadata.Profile, file.profile)
}
if metadata.Space != file.space {
t.Fatalf("Unexpected image profile: %t != %t", metadata.Profile, file.profile)
}
}
}
func TestImageInterpretation(t *testing.T) {
files := []struct {
name string
interpretation Interpretation
}{
{"test.jpg", InterpretationSRGB},
{"test.png", InterpretationSRGB},
{"test.webp", InterpretationSRGB},
}
for _, file := range files {
interpretation, err := ImageInterpretation(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", file.name, err)
}
if interpretation != file.interpretation {
t.Fatalf("Unexpected image interpretation")
}
}
}
func TestEXIF(t *testing.T) {
if VipsMajorVersion <= 8 && VipsMinorVersion < 10 {
t.Skip("Skip test in libvips < 8.10")
return
}
files := map[string]EXIF{
"test.jpg": {},
"exif/Landscape_1.jpg": {
Orientation: 1,
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
YCbCrPositioning: 1,
ExifVersion: "Exif Version 2.1",
ColorSpace: 65535,
},
"test_exif.jpg": {
Make: "Jolla",
Model: "Jolla",
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
Orientation: 1,
Datetime: "2014:09:21 16:00:56",
ExposureTime: "1/25",
FNumber: "12/5",
ISOSpeedRatings: 320,
ExifVersion: "Exif Version 2.3",
DateTimeOriginal: "2014:09:21 16:00:56",
ShutterSpeedValue: "205447286/44240665",
ApertureValue: "334328577/132351334",
ExposureBiasValue: "0/1",
MeteringMode: 1,
Flash: 0,
FocalLength: "4/1",
WhiteBalance: 1,
ColorSpace: 65535,
},
"test_exif_canon.jpg": {
Make: "Canon",
Model: "Canon EOS 40D",
Orientation: 1,
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
Software: "GIMP 2.4.5",
Datetime: "2008:07:31 10:38:11",
YCbCrPositioning: 2,
Compression: 6,
ExposureTime: "1/160",
FNumber: "71/10",
ExposureProgram: 1,
ISOSpeedRatings: 100,
ExifVersion: "Exif Version 2.21",
DateTimeOriginal: "2008:05:30 15:56:01",
DateTimeDigitized: "2008:05:30 15:56:01",
ComponentsConfiguration: "Y Cb Cr -",
ShutterSpeedValue: "483328/65536",
ApertureValue: "368640/65536",
ExposureBiasValue: "0/1",
MeteringMode: 5,
Flash: 9,
FocalLength: "135/1",
SubSecTimeOriginal: "00",
SubSecTimeDigitized: "00",
ColorSpace: 1,
PixelXDimension: 100,
PixelYDimension: 68,
ExposureMode: 1,
WhiteBalance: 0,
SceneCaptureType: 0,
},
"test_exif_full.jpg": {
Make: "Apple",
Model: "iPhone XS",
Orientation: 6,
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
Software: "13.3.1",
Datetime: "2020:07:28 19:18:49",
YCbCrPositioning: 1,
Compression: 6,
ExposureTime: "1/835",
FNumber: "9/5",
ExposureProgram: 2,
ISOSpeedRatings: 25,
ExifVersion: "Unknown Exif Version",
DateTimeOriginal: "2020:07:28 19:18:49",
DateTimeDigitized: "2020:07:28 19:18:49",
ComponentsConfiguration: "Y Cb Cr -",
ShutterSpeedValue: "77515/7986",
ApertureValue: "54823/32325",
BrightnessValue: "77160/8623",
ExposureBiasValue: "0/1",
MeteringMode: 5,
Flash: 16,
FocalLength: "17/4",
SubjectArea: "2013 1511 2217 1330",
MakerNote: "1110 bytes undefined data",
SubSecTimeOriginal: "777",
SubSecTimeDigitized: "777",
ColorSpace: 65535,
PixelXDimension: 4032,
PixelYDimension: 3024,
SensingMethod: 2,
SceneType: "Directly photographed",
ExposureMode: 0,
WhiteBalance: 0,
FocalLengthIn35mmFilm: 26,
SceneCaptureType: 0,
GPSLatitudeRef: "N",
GPSLatitude: "55/1 43/1 5287/100",
GPSLongitudeRef: "E",
GPSLongitude: "37/1 35/1 5571/100",
GPSAltitudeRef: "Sea level",
GPSAltitude: "90514/693",
GPSSpeedRef: "K",
GPSSpeed: "114272/41081",
GPSImgDirectionRef: "M",
GPSImgDirection: "192127/921",
GPSDestBearingRef: "M",
GPSDestBearing: "192127/921",
GPSDateStamp: "2020:07:28",
},
}
for name, file := range files {
metadata, err := Metadata(readFile(name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", name, err)
}
if metadata.EXIF.Make != file.Make {
t.Fatalf("Unexpected image exif Make: %s != %s", metadata.EXIF.Make, file.Make)
}
if metadata.EXIF.Model != file.Model {
t.Fatalf("Unexpected image exif Model: %s != %s", metadata.EXIF.Model, file.Model)
}
if metadata.EXIF.Orientation != file.Orientation {
t.Fatalf("Unexpected image exif Orientation: %d != %d", metadata.EXIF.Orientation, file.Orientation)
}
if metadata.EXIF.XResolution != file.XResolution {
t.Fatalf("Unexpected image exif XResolution: %s != %s", metadata.EXIF.XResolution, file.XResolution)
}
if metadata.EXIF.YResolution != file.YResolution {
t.Fatalf("Unexpected image exif YResolution: %s != %s", metadata.EXIF.YResolution, file.YResolution)
}
if metadata.EXIF.ResolutionUnit != file.ResolutionUnit {
t.Fatalf("Unexpected image exif ResolutionUnit: %d != %d", metadata.EXIF.ResolutionUnit, file.ResolutionUnit)
}
if metadata.EXIF.Software != file.Software {
t.Fatalf("Unexpected image exif Software: %s != %s", metadata.EXIF.Software, file.Software)
}
if metadata.EXIF.Datetime != file.Datetime {
t.Fatalf("Unexpected image exif Datetime: %s != %s", metadata.EXIF.Datetime, file.Datetime)
}
if metadata.EXIF.YCbCrPositioning != file.YCbCrPositioning {
t.Fatalf("Unexpected image exif YCbCrPositioning: %d != %d", metadata.EXIF.YCbCrPositioning, file.YCbCrPositioning)
}
if metadata.EXIF.Compression != file.Compression {
t.Fatalf("Unexpected image exif Compression: %d != %d", metadata.EXIF.Compression, file.Compression)
}
if metadata.EXIF.ExposureTime != file.ExposureTime {
t.Fatalf("Unexpected image exif ExposureTime: %s != %s", metadata.EXIF.ExposureTime, file.ExposureTime)
}
if metadata.EXIF.FNumber != file.FNumber {
t.Fatalf("Unexpected image exif FNumber: %s != %s", metadata.EXIF.FNumber, file.FNumber)
}
if metadata.EXIF.ExposureProgram != file.ExposureProgram {
t.Fatalf("Unexpected image exif ExposureProgram: %d != %d", metadata.EXIF.ExposureProgram, file.ExposureProgram)
}
if metadata.EXIF.ISOSpeedRatings != file.ISOSpeedRatings {
t.Fatalf("Unexpected image exif ISOSpeedRatings: %d != %d", metadata.EXIF.ISOSpeedRatings, file.ISOSpeedRatings)
}
if metadata.EXIF.ExifVersion != file.ExifVersion {
t.Fatalf("Unexpected image exif ExifVersion: %s != %s", metadata.EXIF.ExifVersion, file.ExifVersion)
}
if metadata.EXIF.DateTimeOriginal != file.DateTimeOriginal {
t.Fatalf("Unexpected image exif DateTimeOriginal: %s != %s", metadata.EXIF.DateTimeOriginal, file.DateTimeOriginal)
}
if metadata.EXIF.DateTimeDigitized != file.DateTimeDigitized {
t.Fatalf("Unexpected image exif DateTimeDigitized: %s != %s", metadata.EXIF.DateTimeDigitized, file.DateTimeDigitized)
}
if metadata.EXIF.ComponentsConfiguration != file.ComponentsConfiguration {
t.Fatalf("Unexpected image exif ComponentsConfiguration: %s != %s", metadata.EXIF.ComponentsConfiguration, file.ComponentsConfiguration)
}
if metadata.EXIF.ShutterSpeedValue != file.ShutterSpeedValue {
t.Fatalf("Unexpected image exif ShutterSpeedValue: %s != %s", metadata.EXIF.ShutterSpeedValue, file.ShutterSpeedValue)
}
if metadata.EXIF.ApertureValue != file.ApertureValue {
t.Fatalf("Unexpected image exif ApertureValue: %s != %s", metadata.EXIF.ApertureValue, file.ApertureValue)
}
if metadata.EXIF.BrightnessValue != file.BrightnessValue {
t.Fatalf("Unexpected image exif BrightnessValue: %s != %s", metadata.EXIF.BrightnessValue, file.BrightnessValue)
}
if metadata.EXIF.ExposureBiasValue != file.ExposureBiasValue {
t.Fatalf("Unexpected image exif ExposureBiasValue: %s != %s", metadata.EXIF.ExposureBiasValue, file.ExposureBiasValue)
}
if metadata.EXIF.MeteringMode != file.MeteringMode {
t.Fatalf("Unexpected image exif MeteringMode: %d != %d", metadata.EXIF.MeteringMode, file.MeteringMode)
}
if metadata.EXIF.Flash != file.Flash {
t.Fatalf("Unexpected image exif Flash: %d != %d", metadata.EXIF.Flash, file.Flash)
}
if metadata.EXIF.FocalLength != file.FocalLength {
t.Fatalf("Unexpected image exif FocalLength: %s != %s", metadata.EXIF.FocalLength, file.FocalLength)
}
if metadata.EXIF.SubjectArea != file.SubjectArea {
t.Fatalf("Unexpected image exif SubjectArea: %s != %s", metadata.EXIF.SubjectArea, file.SubjectArea)
}
if metadata.EXIF.MakerNote != file.MakerNote {
t.Fatalf("Unexpected image exif MakerNote: %s != %s", metadata.EXIF.MakerNote, file.MakerNote)
}
if metadata.EXIF.SubSecTimeOriginal != file.SubSecTimeOriginal {
t.Fatalf("Unexpected image exif SubSecTimeOriginal: %s != %s", metadata.EXIF.SubSecTimeOriginal, file.SubSecTimeOriginal)
}
if metadata.EXIF.SubSecTimeDigitized != file.SubSecTimeDigitized {
t.Fatalf("Unexpected image exif SubSecTimeDigitized: %s != %s", metadata.EXIF.SubSecTimeDigitized, file.SubSecTimeDigitized)
}
if metadata.EXIF.ColorSpace != file.ColorSpace {
t.Fatalf("Unexpected image exif ColorSpace: %d != %d", metadata.EXIF.ColorSpace, file.ColorSpace)
}
if metadata.EXIF.PixelXDimension != file.PixelXDimension {
t.Fatalf("Unexpected image exif PixelXDimension: %d != %d", metadata.EXIF.PixelXDimension, file.PixelXDimension)
}
if metadata.EXIF.PixelYDimension != file.PixelYDimension {
t.Fatalf("Unexpected image exif PixelYDimension: %d != %d", metadata.EXIF.PixelYDimension, file.PixelYDimension)
}
if metadata.EXIF.SensingMethod != file.SensingMethod {
t.Fatalf("Unexpected image exif SensingMethod: %d != %d", metadata.EXIF.SensingMethod, file.SensingMethod)
}
if metadata.EXIF.SceneType != file.SceneType {
t.Fatalf("Unexpected image exif SceneType: %s != %s", metadata.EXIF.SceneType, file.SceneType)
}
if metadata.EXIF.ExposureMode != file.ExposureMode {
t.Fatalf("Unexpected image exif ExposureMode: %d != %d", metadata.EXIF.ExposureMode, file.ExposureMode)
}
if metadata.EXIF.WhiteBalance != file.WhiteBalance {
t.Fatalf("Unexpected image exif WhiteBalance: %d != %d", metadata.EXIF.WhiteBalance, file.WhiteBalance)
}
if metadata.EXIF.FocalLengthIn35mmFilm != file.FocalLengthIn35mmFilm {
t.Fatalf("Unexpected image exif FocalLengthIn35mmFilm: %d != %d", metadata.EXIF.FocalLengthIn35mmFilm, file.FocalLengthIn35mmFilm)
}
if metadata.EXIF.SceneCaptureType != file.SceneCaptureType {
t.Fatalf("Unexpected image exif SceneCaptureType: %d != %d", metadata.EXIF.SceneCaptureType, file.SceneCaptureType)
}
if metadata.EXIF.GPSLongitudeRef != file.GPSLongitudeRef {
t.Fatalf("Unexpected image exif GPSLongitudeRef: %s != %s", metadata.EXIF.GPSLongitudeRef, file.GPSLongitudeRef)
}
if metadata.EXIF.GPSLongitude != file.GPSLongitude {
t.Fatalf("Unexpected image exif GPSLongitude: %s != %s", metadata.EXIF.GPSLongitude, file.GPSLongitude)
}
if metadata.EXIF.GPSAltitudeRef != file.GPSAltitudeRef {
t.Fatalf("Unexpected image exif GPSAltitudeRef: %s != %s", metadata.EXIF.GPSAltitudeRef, file.GPSAltitudeRef)
}
if metadata.EXIF.GPSAltitude != file.GPSAltitude {
t.Fatalf("Unexpected image exif GPSAltitude: %s != %s", metadata.EXIF.GPSAltitude, file.GPSAltitude)
}
if metadata.EXIF.GPSSpeedRef != file.GPSSpeedRef {
t.Fatalf("Unexpected image exif GPSSpeedRef: %s != %s", metadata.EXIF.GPSSpeedRef, file.GPSSpeedRef)
}
if metadata.EXIF.GPSSpeed != file.GPSSpeed {
t.Fatalf("Unexpected image exif GPSSpeed: %s != %s", metadata.EXIF.GPSSpeed, file.GPSSpeed)
}
if metadata.EXIF.GPSImgDirectionRef != file.GPSImgDirectionRef {
t.Fatalf("Unexpected image exif GPSImgDirectionRef: %s != %s", metadata.EXIF.GPSImgDirectionRef, file.GPSImgDirectionRef)
}
if metadata.EXIF.GPSImgDirection != file.GPSImgDirection {
t.Fatalf("Unexpected image exif GPSImgDirection: %s != %s", metadata.EXIF.GPSImgDirection, file.GPSImgDirection)
}
if metadata.EXIF.GPSDestBearingRef != file.GPSDestBearingRef {
t.Fatalf("Unexpected image exif GPSDestBearingRef: %s != %s", metadata.EXIF.GPSDestBearingRef, file.GPSDestBearingRef)
}
if metadata.EXIF.GPSDestBearing != file.GPSDestBearing {
t.Fatalf("Unexpected image exif GPSDestBearing: %s != %s", metadata.EXIF.GPSDestBearing, file.GPSDestBearing)
}
if metadata.EXIF.GPSDateStamp != file.GPSDateStamp {
t.Fatalf("Unexpected image exif GPSDateStamp: %s != %s", metadata.EXIF.GPSDateStamp, file.GPSDateStamp)
}
}
}
func TestColourspaceIsSupported(t *testing.T) {
files := []struct {
name string
}{
{"test.jpg"},
{"test.png"},
{"test.webp"},
}
for _, file := range files {
supported, err := ColourspaceIsSupported(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", file.name, err)
}
if supported != true {
t.Fatalf("Unsupported image colourspace")
}
}
supported, err := initImage("test.jpg").ColourspaceIsSupported()
if err != nil {
t.Errorf("Cannot process the image: %#v", err)
}
if supported != true {
t.Errorf("Non-supported colourspace")
}
}
func readFile(file string) []byte {
data, _ := os.Open(path.Join("testdata", file))
buf, _ := ioutil.ReadAll(data)
return buf
}
| Java |
// ===========================================================================
//
// PUBLIC DOMAIN NOTICE
// Agricultural Research Service
// United States Department of Agriculture
//
// This software/database is a "United States Government Work" under the
// terms of the United States Copyright Act. It was written as part of
// the author's official duties as a United States Government employee
// and thus cannot be copyrighted. This software/database is freely
// available to the public for use. The Department of Agriculture (USDA)
// and the U.S. Government have not placed any restriction on its use or
// reproduction.
//
// Although all reasonable efforts have been taken to ensure the accuracy
// and reliability of the software and data, the USDA and the U.S.
// Government do not and cannot warrant the performance or results that
// may be obtained by using this software or data. The USDA and the U.S.
// Government disclaim all warranties, express or implied, including
// warranties of performance, merchantability or fitness for any
// particular purpose.
//
// Please cite the author in any work or product based on this material.
//
// =========================================================================
#ifndef _PARTIAL_CORE_MATRIX_H_
#define _PARTIAL_CORE_MATRIX_H_ 1
#include <memory>
#include <map>
#include <exception>
#include "logging.hpp"
#include "distributions.hpp"
#include "continuous_dynamics.hpp"
namespace afidd
{
namespace smv
{
template<typename GSPN, typename State, typename RNG>
class PartialCoreMatrix
{
public:
// Re-advertise the transition key.
typedef typename GSPN::TransitionKey TransitionKey;
typedef ContinuousPropagator<TransitionKey,RNG> Propagator;
using PropagatorVector=std::vector<Propagator*>;
typedef GSPN PetriNet;
PartialCoreMatrix(GSPN& gspn, PropagatorVector pv)
: gspn_(gspn), propagator_{pv} {}
void set_state(State* s) {
state_=s;
}
void MakeCurrent(RNG& rng) {
if (state_->marking.Modified().size()==0) return;
// Check all neighbors of a place to see if they were enabled.
auto lm=state_->marking.GetLocalMarking();
NeighborsOfPlaces(gspn_, state_->marking.Modified(),
[&] (TransitionKey neighbor_id) {
// Was this transition enabled? When?
double enabling_time=0.0;
Propagator* previous_propagator=nullptr;
for (const auto& enable_prop : propagator_) {
double previously_enabled=false;
std::tie(previously_enabled, enabling_time)
=enable_prop->Enabled(neighbor_id);
if (previously_enabled) {
previous_propagator=enable_prop;
break;
}
}
if (previous_propagator==nullptr) enabling_time=state_->CurrentTime();
// Set up the local marking.
auto neighboring_places=
InputsOfTransition(gspn_, neighbor_id);
state_->marking.InitLocal(lm, neighboring_places);
bool isEnabled=false;
std::unique_ptr<TransitionDistribution<RNG>> dist;
try {
std::tie(isEnabled, dist)=
Enabled(gspn_, neighbor_id, state_->user, lm,
enabling_time, state_->CurrentTime(), rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enabled new of "
<< neighbor_id <<": " << e.what();
throw;
}
if (isEnabled) {
Propagator* appropriate=nullptr;
for (const auto& prop_ptr : propagator_) {
if (prop_ptr->Include(*dist)) {
appropriate=prop_ptr;
}
}
BOOST_ASSERT_MSG(appropriate!=nullptr, "No propagator willing to "
"accept this distribution");
// Even if it was already enabled, take the new distribution
// in case it has changed.
if (dist!=nullptr) {
bool was_enabled=previous_propagator!=nullptr;
if (was_enabled) {
if (previous_propagator==appropriate) {
try {
appropriate->Enable(neighbor_id, dist, state_->CurrentTime(),
was_enabled, rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enabled previous of "
<< neighbor_id <<": " << e.what();
throw;
}
} else {
try {
previous_propagator->Disable(neighbor_id,
state_->CurrentTime());
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Disable of "
<< neighbor_id <<": " << e.what();
throw;
}
try {
appropriate->Enable(neighbor_id, dist, state_->CurrentTime(),
was_enabled, rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enable wasn't "
<< "noprev of " << neighbor_id <<": " << e.what();
throw;
}
}
} else {
try {
appropriate->Enable(neighbor_id, dist, state_->CurrentTime(),
was_enabled, rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enable wasn't of "
<< neighbor_id <<": " << e.what();
throw;
}
}
} else {
BOOST_ASSERT_MSG(previous_propagator!=nullptr, "Transition didn't "
"return a distribution, so it thinks it was enabled, but it "
"isn't listed as enabled in any propagator");
}
} else if (!isEnabled && previous_propagator!=nullptr) {
previous_propagator->Disable(neighbor_id, state_->CurrentTime());
} else {
; // not enabled, not becoming enabled.
}
});
SMVLOG(BOOST_LOG_TRIVIAL(trace) << "Marking modified cnt: "<<
state_->marking.Modified().size());
state_->marking.Clear();
}
void Trigger(TransitionKey trans_id, double when, RNG& rng) {
if (when-state_->CurrentTime()<-1e-4) {
BOOST_LOG_TRIVIAL(error) << "Firing negative time "<<when <<
" given current time "<<state_->CurrentTime() <<" for transition "
<<trans_id;
}
auto neighboring_places=NeighborsOfTransition(gspn_, trans_id);
auto lm=state_->marking.GetLocalMarking();
state_->marking.InitLocal(lm, neighboring_places);
Fire(gspn_, trans_id, state_->user, lm, when, rng);
state_->marking.ReadLocal(lm, neighboring_places);
SMVLOG(BOOST_LOG_TRIVIAL(trace) << "Fire "<<trans_id <<" neighbors: "<<
neighboring_places.size() << " modifies "
<< state_->marking.Modified().size() << " places.");
state_->SetTime(when);
bool enabled=false;
double previous_when;
for (auto& prop_ptr : propagator_) {
std::tie(enabled, previous_when)=prop_ptr->Enabled(trans_id);
if (enabled) {
prop_ptr->Fire(trans_id, state_->CurrentTime(), rng);
break;
}
}
BOOST_ASSERT_MSG(enabled, "The transition that fired wasn't enabled?");
}
PropagatorVector& Propagators() { return propagator_; }
private:
GSPN& gspn_;
State* state_;
PropagatorVector propagator_;
};
} // smv
} // afidd
#endif // _PARTIAL_CORE_MATRIX_H_
| Java |
using System;
using Xamarin.Forms;
namespace TextSpeaker.Views
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private async void Button_OnClicked(object sender, EventArgs e)
{
var result = await DisplayAlert("確認", "Text Speech画面へ遷移しますか?", "OK", "Cancel");
if (result)
{
await Navigation.PushAsync(new TextSpeechPage());
}
}
}
}
| Java |
var fans=require('../../modules/blog/fans');
var User=require('../../modules/resume/user');
var async = require('asyncawait/async');
var await = require('asyncawait/await');
module.exports=(async(function(method,req,res){
var result;
if(method==='get'){
}
else if(method==='post'){
var userId=req.session.uid;
var targetId=req.body.targetId;
if(userId){
if(userId==targetId){
result={
status:-1,
msg:"你咋可以自己关注自己呢?自恋!"
}
}else{
//已登录才能关注,查询是否已关注过
var isFansDate=await(fans.findOne({
where:{
userId:userId,
targetId:targetId
}
}))
if(isFansDate){
result={
status:-1,
msg:"已关注"
}
}
else{
var fansDate=await(fans.create({
userId:userId,
targetId:targetId
}))
if(fansDate){
result={
status:0,
msg:"关注成功"
}
}else{
result={
status:-1,
msg:"关注失败"
}
}
}
}
}else{
result={
status:-1,
msg:"未登录"
}
}
}
else if(method==='delete'){
var targetId=req.query.targetId;
var userId=req.session.uid;
if(userId){
//已登录才能取消关注,查询是否已关注过
var isFansDate=await(fans.findOne({
where:{
userId:userId,
targetId:targetId
}
}))
if(isFansDate){
var fansDate=await(fans.destroy({
where:{
userId:userId,
targetId:targetId
}
}))
if(fansDate){
result={
status:0,
msg:"取消关注成功"
}
}else{
result={
status:-1,
msg:"取消关注失败"
}
}
}
else{
result={
status:-1,
msg:"未关注"
}
}
}else{
result={
status:-1,
msg:"未登录"
}
}
}
res.writeHead(200,{"Content-Type":"text/html;charset=utf-8"});
res.end(JSON.stringify(result))
})) | Java |
<?php
namespace Guardian\User\Caller;
use Assert\Assertion;
use Guardian\Caller\HasLoginToken;
use Guardian\User\Caller;
/**
* Simple user caller
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
class User implements Caller, HasLoginToken, \ArrayAccess
{
/**
* @var string|integer
*/
protected $id;
/**
* @var array
*/
protected $data;
/**
* @param string|integer $id
* @param array $data
*/
public function __construct($id, $data)
{
// TODO: check for id's type
Assertion::choicesNotEmpty($data, ['username', 'password']);
$this->id = $id;
$this->data = $data;
}
/**
* {@inheritdoc}
*/
public function getId()
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function getLoginToken()
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function getUsername()
{
return $this->data['username'];
}
/**
* {@inheritdoc}
*/
public function getPassword()
{
return $this->data['password'];
}
/**
* Returns dynamic properties passed to the object
*
* Notice: property names should be camelCased
*
* @param string $method
* @param array $arguments
*
* @return mixed
*
* @throws BadMethodCallException If $method is not a property
*/
public function __call($method, array $arguments)
{
if (substr($method, 0, 3) === 'get' and $property = substr($method, 3)) {
$property = lcfirst($property);
Assertion::notEmptyKey($this->data, $property, 'User does not have a(n) "%s" property');
return $this->data[$property];
}
throw new \BadMethodCallException(sprintf('Method "%s" does not exists', $method));
}
/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->data[] = $value;
} else {
$this->data[$offset] = $value;
}
}
/**
* {@inheritdoc}
*/
public function offsetExists($offset)
{
return isset($this->data[$offset]);
}
/**
* {@inheritdoc}
*/
public function offsetUnset($offset)
{
if (isset($this->data[$offset])) {
unset($this->data[$offset]);
}
}
/**
* {@inheritdoc}
*/
public function offsetGet($offset)
{
if (isset($this->data[$offset])) {
return $this->data[$offset];
}
}
}
| Java |
module HashRollup
extend self
def rollup data, into
raise ArgumentError, "arguments must be Hashes" unless data.is_a?(Hash) && into.is_a?(Hash)
into.merge(data) do |key, current_val, new_val|
if current_val.class.name != new_val.class.name
raise "Mismatch in types detected! Key = #{key}, current value type = #{current_val.class.name}, new value type = #{new_val.class.name}"
end
if current_val.is_a?(Hash)
rollup new_val, current_val
elsif current_val.is_a?(String)
new_val
else
current_val + new_val
end
end
end
end
| Java |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
namespace Noesis
{
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct Sizei {
[MarshalAs(UnmanagedType.U4)]
private uint _w;
[MarshalAs(UnmanagedType.U4)]
private uint _h;
public uint Width {
get { return this._w; }
set { this._w = value; }
}
public uint Height {
get { return this._h; }
set { this._h = value; }
}
public static Sizei Zero {
get { return new Sizei(0, 0); }
}
public static Sizei Infinite {
get { return new Sizei(System.UInt32.MaxValue, System.UInt32.MaxValue); }
}
public Sizei(uint w, uint h) {
this._w = w;
this._h = h;
}
public Sizei(Size size) : this((uint)size.Width, (uint)size.Height) {
}
public Sizei(Pointi point) : this((uint)point.X, (uint)point.Y) {
}
public static Sizei operator+(Sizei v0, Sizei v1) {
return new Sizei(v0.Width + v1.Width, v0.Height + v1.Height);
}
public static Sizei operator-(Sizei v0, Sizei v1) {
return new Sizei(v0.Width - v1.Width, v0.Height - v1.Height);
}
public static Sizei operator*(Sizei v, uint f) {
return new Sizei(v.Width * f, v.Height * f);
}
public static Sizei operator*(uint f, Sizei v) {
return v * f;
}
public static Sizei operator/(Sizei v, uint f) {
if (f == 0) { throw new System.DivideByZeroException(); }
return new Sizei(v.Width / f, v.Height / f);
}
public static bool operator==(Sizei v0, Sizei v1) {
return v0.Width == v1.Width && v0.Height == v1.Height;
}
public static bool operator!=(Sizei v0, Sizei v1) {
return !(v0 == v1);
}
public override bool Equals(System.Object obj) {
return obj is Sizei && this == (Sizei)obj;
}
public bool Equals(Sizei v) {
return this == v;
}
public override int GetHashCode() {
return (int)Width ^ (int)Height;
}
public override string ToString() {
return System.String.Format("{0},{1}", Width, Height);
}
public void Expand(Sizei size) {
Width = System.Math.Max(Width, size.Width);
Height = System.Math.Max(Height, size.Height);
}
public void Scale(uint scaleX, uint scaleY) {
Width *= scaleX;
Height *= scaleY;
}
public static Sizei Parse(string str) {
Sizei size;
if (Sizei.TryParse(str, out size)) {
return size;
}
throw new ArgumentException("Cannot create Sizei from '" + str + "'");
}
public static bool TryParse(string str, out Sizei result) {
bool ret = NoesisGUI_PINVOKE.Sizei_TryParse(str != null ? str : string.Empty, out result);
#if UNITY_EDITOR || NOESIS_API
if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
#endif
return ret;
}
}
}
| Java |
"""
.. module:: mlpy.auxiliary.datastructs
:platform: Unix, Windows
:synopsis: Provides data structure implementations.
.. moduleauthor:: Astrid Jackson <ajackson@eecs.ucf.edu>
"""
from __future__ import division, print_function, absolute_import
import heapq
import numpy as np
from abc import ABCMeta, abstractmethod
class Array(object):
"""The managed array class.
The managed array class pre-allocates memory to the given size
automatically resizing as needed.
Parameters
----------
size : int
The size of the array.
Examples
--------
>>> a = Array(5)
>>> a[0] = 3
>>> a[1] = 6
Retrieving an elements:
>>> a[0]
3
>>> a[2]
0
Finding the length of the array:
>>> len(a)
2
"""
def __init__(self, size):
self._data = np.zeros((size,))
self._capacity = size
self._size = 0
def __setitem__(self, index, value):
"""Set the the array at the index to the given value.
Parameters
----------
index : int
The index into the array.
value :
The value to set the array to.
"""
if index >= self._size:
if self._size == self._capacity:
self._capacity *= 2
new_data = np.zeros((self._capacity,))
new_data[:self._size] = self._data
self._data = new_data
self._size += 1
self._data[index] = value
def __getitem__(self, index):
"""Get the value at the given index.
Parameters
----------
index : int
The index into the array.
"""
return self._data[index]
def __len__(self):
"""The length of the array.
Returns
-------
int :
The size of the array
"""
return self._size
class Point2D(object):
"""The 2d-point class.
The 2d-point class is a container for positions
in a 2d-coordinate system.
Parameters
----------
x : float, optional
The x-position in a 2d-coordinate system. Default is 0.0.
y : float, optional
The y-position in a 2d-coordinate system. Default is 0.0.
Attributes
----------
x : float
The x-position in a 2d-coordinate system.
y : float
The y-position in a 2d-coordinate system.
"""
__slots__ = ['x', 'y']
def __init__(self, x=0.0, y=0.0):
self.x = x
self.y = y
class Point3D(object):
"""
The 3d-point class.
The 3d-point class is a container for positions
in a 3d-coordinate system.
Parameters
----------
x : float, optional
The x-position in a 2d-coordinate system. Default is 0.0.
y : float, optional
The y-position in a 2d-coordinate system. Default is 0.0.
z : float, optional
The z-position in a 3d-coordinate system. Default is 0.0.
Attributes
----------
x : float
The x-position in a 2d-coordinate system.
y : float
The y-position in a 2d-coordinate system.
z : float
The z-position in a 3d-coordinate system.
"""
__slots__ = ['x', 'y', 'z']
def __init__(self, x=0.0, y=0.0, z=0.0):
self.x = x
self.y = y
self.z = z
class Vector3D(Point3D):
"""The 3d-vector class.
.. todo::
Implement vector functionality.
Parameters
----------
x : float, optional
The x-position in a 2d-coordinate system. Default is 0.0.
y : float, optional
The y-position in a 2d-coordinate system. Default is 0.0.
z : float, optional
The z-position in a 3d-coordinate system. Default is 0.0.
Attributes
----------
x : float
The x-position in a 2d-coordinate system.
y : float
The y-position in a 2d-coordinate system.
z : float
The z-position in a 3d-coordinate system.
"""
def __init__(self, x=0.0, y=0.0, z=0.0):
super(Vector3D, self).__init__(x, y, z)
class Queue(object):
"""The abstract queue base class.
The queue class handles core functionality common for
any type of queue. All queues inherit from the queue
base class.
See Also
--------
:class:`FIFOQueue`, :class:`PriorityQueue`
"""
__metaclass__ = ABCMeta
def __init__(self):
self._queue = []
def __len__(self):
return len(self._queue)
def __contains__(self, item):
try:
self._queue.index(item)
return True
except Exception:
return False
def __iter__(self):
return iter(self._queue)
def __str__(self):
return '[' + ', '.join('{}'.format(el) for el in self._queue) + ']'
def __repr__(self):
return ', '.join('{}'.format(el) for el in self._queue)
@abstractmethod
def push(self, item):
"""Push a new element on the queue
Parameters
----------
item :
The element to push on the queue
"""
raise NotImplementedError
@abstractmethod
def pop(self):
"""Pop an element from the queue."""
raise NotImplementedError
def empty(self):
"""Check if the queue is empty.
Returns
-------
bool :
Whether the queue is empty.
"""
return len(self._queue) <= 0
def extend(self, items):
"""Extend the queue by a number of elements.
Parameters
----------
items : list
A list of items.
"""
for item in items:
self.push(item)
def get(self, item):
"""Return the element in the queue identical to `item`.
Parameters
----------
item :
The element to search for.
Returns
-------
The element in the queue identical to `item`. If the element
was not found, None is returned.
"""
try:
index = self._queue.index(item)
return self._queue[index]
except Exception:
return None
def remove(self, item):
"""Remove an element from the queue.
Parameters
----------
item :
The element to remove.
"""
self._queue.remove(item)
class FIFOQueue(Queue):
"""The first-in-first-out (FIFO) queue.
In a FIFO queue the first element added to the queue
is the first element to be removed.
Examples
--------
>>> q = FIFOQueue()
>>> q.push(5)
>>> q.extend([1, 3, 7])
>>> print q
[5, 1, 3, 7]
Retrieving an element:
>>> q.pop()
5
Removing an element:
>>> q.remove(3)
>>> print q
[1, 7]
Get the element in the queue identical to the given item:
>>> q.get(7)
7
Check if the queue is empty:
>>> q.empty()
False
Loop over the elements in the queue:
>>> for x in q:
>>> print x
1
7
Check if an element is in the queue:
>>> if 7 in q:
>>> print "yes"
yes
See Also
--------
:class:`PriorityQueue`
"""
def __init__(self):
super(FIFOQueue, self).__init__()
def push(self, item):
"""Push an element to the end of the queue.
Parameters
----------
item :
The element to append.
"""
self._queue.append(item)
def pop(self):
"""Return the element at the front of the queue.
Returns
-------
The first element in the queue.
"""
return self._queue.pop(0)
def extend(self, items):
"""Append a list of elements at the end of the queue.
Parameters
----------
items : list
List of elements.
"""
self._queue.extend(items)
class PriorityQueue(Queue):
"""
The priority queue.
In a priority queue each element has a priority associated with it. An element
with high priority (i.e., smallest value) is served before an element with low priority
(i.e., largest value). The priority queue is implemented with a heap.
Parameters
----------
func : callable
A callback function handling the priority. By default the priority
is the value of the element.
Examples
--------
>>> q = PriorityQueue()
>>> q.push(5)
>>> q.extend([1, 3, 7])
>>> print q
[(1,1), (5,5), (3,3), (7,7)]
Retrieving the element with highest priority:
>>> q.pop()
1
Removing an element:
>>> q.remove((3, 3))
>>> print q
[(5,5), (7,7)]
Get the element in the queue identical to the given item:
>>> q.get(7)
7
Check if the queue is empty:
>>> q.empty()
False
Loop over the elements in the queue:
>>> for x in q:
>>> print x
(5, 5)
(7, 7)
Check if an element is in the queue:
>>> if 7 in q:
>>> print "yes"
yes
See Also
--------
:class:`FIFOQueue`
"""
def __init__(self, func=lambda x: x):
super(PriorityQueue, self).__init__()
self.func = func
def __contains__(self, item):
for _, element in self._queue:
if item == element:
return True
return False
def __str__(self):
return '[' + ', '.join('({},{})'.format(*el) for el in self._queue) + ']'
def push(self, item):
"""Push an element on the priority queue.
The element is pushed on the priority queue according
to its priority.
Parameters
----------
item :
The element to push on the queue.
"""
heapq.heappush(self._queue, (self.func(item), item))
def pop(self):
"""Get the element with the highest priority.
Get the element with the highest priority (i.e., smallest value).
Returns
-------
The element with the highest priority.
"""
return heapq.heappop(self._queue)[1]
def get(self, item):
"""Return the element in the queue identical to `item`.
Parameters
----------
item :
The element to search for.
Returns
-------
The element in the queue identical to `item`. If the element
was not found, None is returned.
"""
for _, element in self._queue:
if item == element:
return element
return None
def remove(self, item):
"""Remove an element from the queue.
Parameters
----------
item :
The element to remove.
"""
super(PriorityQueue, self).remove(item)
heapq.heapify(self._queue)
| Java |
import unittest
import numpy as np
from bayesnet.image.util import img2patch, patch2img
class TestImg2Patch(unittest.TestCase):
def test_img2patch(self):
img = np.arange(16).reshape(1, 4, 4, 1)
patch = img2patch(img, size=3, step=1)
expected = np.asarray([
[img[0, 0:3, 0:3, 0], img[0, 0:3, 1:4, 0]],
[img[0, 1:4, 0:3, 0], img[0, 1:4, 1:4, 0]]
])
expected = expected[None, ..., None]
self.assertTrue((patch == expected).all())
imgs = [
np.random.randn(2, 5, 6, 3),
np.random.randn(3, 10, 10, 2),
np.random.randn(1, 23, 17, 5)
]
sizes = [
(1, 1),
2,
(3, 4)
]
steps = [
(1, 2),
(3, 1),
3
]
shapes = [
(2, 5, 3, 1, 1, 3),
(3, 3, 9, 2, 2, 2),
(1, 7, 5, 3, 4, 5)
]
for img, size, step, shape in zip(imgs, sizes, steps, shapes):
self.assertEqual(shape, img2patch(img, size, step).shape)
class TestPatch2Img(unittest.TestCase):
def test_patch2img(self):
img = np.arange(16).reshape(1, 4, 4, 1)
patch = img2patch(img, size=2, step=2)
self.assertTrue((img == patch2img(patch, (2, 2), (1, 4, 4, 1))).all())
patch = img2patch(img, size=3, step=1)
expected = np.arange(0, 32, 2).reshape(1, 4, 4, 1)
expected[0, 0, 0, 0] /= 2
expected[0, 0, -1, 0] /= 2
expected[0, -1, 0, 0] /= 2
expected[0, -1, -1, 0] /= 2
expected[0, 1:3, 1:3, 0] *= 2
self.assertTrue((expected == patch2img(patch, (1, 1), (1, 4, 4, 1))).all())
if __name__ == '__main__':
unittest.main()
| Java |
<?php
/**
* Created by PhpStorm.
* User: gseidel
* Date: 16.10.18
* Time: 23:45
*/
namespace Enhavo\Bundle\FormBundle\Form\Type;
use Enhavo\Bundle\FormBundle\Form\Helper\EntityTreeChoiceBuilder;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EntityTreeType extends AbstractType
{
public function buildView(FormView $view, FormInterface $form, array $options)
{
$choices = $view->vars['choices'];
$builder = new EntityTreeChoiceBuilder($options['parent_property']);
$builder->build($choices);
$view->vars['choice_tree_builder'] = $builder;
$view->vars['children_container_class'] = $options['children_container_class'];
}
public function finishView(FormView $view, FormInterface $form, array $options)
{
$builder = $view->vars['choice_tree_builder'];
if($builder instanceof EntityTreeChoiceBuilder) {
$builder->map($view);
}
if(!$options['expanded']) {
$view->vars['choices'] = $builder->getChoiceViews();
}
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'parent_property' => 'parent',
'children_container_class' => 'entity-tree-children',
]);
}
public function getBlockPrefix()
{
return 'entity_tree';
}
public function getParent()
{
return EntityType::class;
}
}
| Java |
/****************************************************************/
/* 1. IMPORTED STYLESHEETS */
/****************************************************************/
/* Import the basic setup styles */
@import url(imports/base.css);
/* Import the colour scheme */
@import url(imports/Radium_cs.css);
/****************************************************************/
/* 2. TEXT SETTINGS */
/****************************************************************/
/* 2.1 This sets the default Font Group */
.pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP {
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
.pun {FONT-SIZE: 11px; LINE-HEIGHT: normal}
/* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/
* HTML .pun {FONT-SIZE: 68.75%}
/* End IE Win Font Size */
/* Set font size for tables because IE requires it */
.pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em}
/* 2.2 Set the font-size for preformatted text i.e in code boxes */
.pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace}
/* 2.3 Font size for headers */
.pun H2, .pun H4 {FONT-SIZE: 1em}
.pun H3 {FONT-SIZE: 1.1em}
#brdtitle H1 {FONT-SIZE: 1.4em}
/* 2.4 Larger text for particular items */
DIV.postmsg P {LINE-HEIGHT: 1.4}
DIV.postleft DT {FONT-SIZE: 1.1em}
.pun PRE {FONT-SIZE: 1.2em}
/* 2.5 Bold text */
DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI,
DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold}
/****************************************************************/
/* 3. LINKS */
/****************************************************************/
/* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */
#brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link,
.blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited,
.blockmenu A:link, .blockmenu A:visited {
TEXT-DECORATION: none
}
/* 3.2 Underline on hover for links in headers and main menu */
#brdmenu A:hover, .blockpost H2 A:hover {TEXT-DECORATION: underline}
/****************************************************************/
/* 4. BORDER WIDTH AND STYLE */
/****************************************************************/
/* 4.1 By default borders are 1px solid */
DIV.box, .pun TD, .pun TH, .pun BLOCKQUOTE, DIV.codebox, DIV.forminfo, DIV.blockpost LABEL {
BORDER-STYLE: solid;
BORDER-WIDTH: 1px
}
/* 4.2 Special settings for the board header. */
#brdheader DIV.box {BORDER-TOP-WIDTH: 4px}
/* 4.3 Borders for table cells */
.pun TD, .pun TH {
BORDER-BOTTOM: none;
BORDER-RIGHT: none
}
.pun .tcl {BORDER-LEFT: none}
/* 4.4 Special setting for fieldsets to preserve IE defaults */
DIV>FIELDSET {
BORDER-STYLE: solid;
BORDER-WIDTH: 1px
}
/****************************************************************/
/* 5. VERTICAL AND PAGE SPACING */
/****************************************************************/
/* 5.1 Page margins */
HTML, BODY {MARGIN: 0; PADDING: 0}
#punwrap {margin:12px 20px}
/* 5.2 Creates vertical space between main board elements (Margins) */
DIV.blocktable, DIV.block, DIV.blockform, DIV.block2col, #postreview {MARGIN-BOTTOM: 12px}
#punindex DIV.blocktable, DIV.blockpost {MARGIN-BOTTOM: 6px}
DIV.block2col DIV.blockform, DIV.block2col DIV.block {MARGIN-BOTTOM: 0px}
/* 5.3 Remove space above breadcrumbs, postlinks and pagelinks with a negative top margin */
DIV.linkst, DIV.linksb {MARGIN-TOP: -12px}
DIV.postlinksb {MARGIN-TOP: -6px}
/* 5.4 Put a 12px gap above the board information box in index because the category tables only
have a 6px space beneath them */
#brdstats {MARGIN-TOP: 12px}
/****************************************************************/
/* 6. SPACING AROUND CONTENT */
/****************************************************************/
/* 6.1 Default padding for main items */
DIV.block DIV.inbox, DIV.blockmenu DIV.inbox {PADDING: 3px 6px}
.pun P, .pun UL, .pun DL, DIV.blockmenu LI, .pun LABEL, #announce DIV.inbox DIV {PADDING: 3px 0}
.pun H2 {PADDING: 4px 6px}
/* 6.2 Special spacing for various elements */
.pun H1 {PADDING: 3px 0px 0px 0}
#brdtitle P {PADDING-TOP: 0px}
DIV.linkst {PADDING: 8px 6px 3px 6px}
DIV.linksb, DIV.postlinksb {PADDING: 3px 6px 8px 6px}
#brdwelcome, #brdfooter DL A, DIV.blockmenu LI, DIV.rbox INPUT {LINE-HEIGHT: 1.4em}
#viewprofile DT, #viewprofile DD {PADDING: 0 3px; LINE-HEIGHT: 2em}
/* 6.4 Create some horizontal spacing for various elements */
#brdmenu LI, DIV.rbox INPUT, DIV.blockform P INPUT {MARGIN-RIGHT: 12px}
/****************************************************************/
/* 7. SPACING FOR TABLES */
/****************************************************************/
.pun TH, .pun TD {PADDING: 4px 6px}
.pun TD P {PADDING: 5px 0 0 0}
/****************************************************************/
/* 8. SPACING FOR POSTS */
/****************************************************************/
/* 8.1 Padding around left and right columns in viewtopic */
DIV.postleft DL, DIV.postright {PADDING: 6px}
/* 8.2 Extra spacing for poster contact details and avatar */
DD.usercontacts, DD.postavatar {MARGIN-TOP: 5px}
DD.postavatar {MARGIN-BOTTOM: 5px}
/* 8.3 Extra top spacing for signatures and edited by */
DIV.postsignature, DIV.postmsg P.postedit {PADDING-TOP: 15px}
/* 8.4 Spacing for code and quote boxes */
DIV.postmsg H4 {MARGIN-BOTTOM: 10px}
.pun BLOCKQUOTE, DIV.codebox {MARGIN: 5px 15px 15px 15px; PADDING: 8px}
/* 8.5 Padding for the action links and online indicator in viewtopic */
DIV.postfootleft P, DIV.postfootright UL, DIV.postfootright DIV {PADDING: 10px 6px 5px 6px}
/* 8.6 This is the input on moderators multi-delete view */
DIV.blockpost INPUT, DIV.blockpost LABEL {
PADDING: 3px;
DISPLAY: inline
}
P.multidelete {
PADDING-TOP: 15px;
PADDING-BOTTOM: 5px
}
/* 8.7 Make sure paragraphs in posts don't get any padding */
DIV.postmsg P {PADDING: 0}
/****************************************************************/
/* 9. SPECIAL SPACING FOR FORMS */
/****************************************************************/
/* 9.1 Padding around fieldsets */
DIV.blockform FORM, DIV.fakeform {PADDING: 20px 20px 15px 20px}
DIV.inform {PADDING-BOTTOM: 12px}
/* 9.2 Padding inside fieldsets */
.pun FIELDSET {PADDING: 0px 12px 0px 12px}
DIV.infldset {PADDING: 9px 0px 12px 0}
.pun LEGEND {PADDING: 0px 6px}
/* 9.3 The information box at the top of the registration form and elsewhere */
DIV.forminfo {
MARGIN-BOTTOM: 12px;
PADDING: 9px 10px
}
/* 9.4 BBCode help links in post forms */
UL.bblinks LI {PADDING-RIGHT: 20px}
UL.bblinks {PADDING-BOTTOM: 10px; PADDING-LEFT: 4px}
/* 9.5 Horizontal positioning for the submit button on forms */
DIV.blockform P INPUT {MARGIN-LEFT: 12px}
/****************************************************************/
/* 10. POST STATUS INDICATORS */
/****************************************************************/
/* 10.1 These are the post status indicators which appear at the left of some tables.
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
.isticky = sticky topics. By default only .inew is different from the default.*/
DIV.icon {
FLOAT: left;
MARGIN-TOP: 0.1em;
MARGIN-LEFT: 0.2em;
DISPLAY: block;
BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em;
BORDER-STYLE: solid
}
DIV.searchposts DIV.icon {MARGIN-LEFT: 0}
/* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The
margin creates space for the post status indicator */
TD DIV.tclcon {MARGIN-LEFT: 2.3em}
| Java |
// @flow
import React, { Component } from 'react'
import { Helmet } from 'react-helmet'
import AlternativeMedia from './AlternativeMedia'
import ImageViewer from './ImageViewer'
import { Code, CodeBlock, Title } from '../components'
const propFn = k => {
const style = { display: 'inline-block', marginBottom: 4, marginRight: 4 }
return (
<span key={k} style={style}>
<Code>{k}</Code>
</span>
)
}
const commonProps = [
'carouselProps',
'currentIndex',
'currentView',
'frameProps',
'getStyles',
'isFullscreen',
'isModal',
'modalProps',
'interactionIsIdle',
'trackProps',
'views',
]
export default class CustomComponents extends Component<*> {
render() {
return (
<div>
<Helmet>
<title>Components - React Images</title>
<meta
name="description"
content="React Images allows you to augment layout and functionality by
replacing the default components with your own."
/>
</Helmet>
<Title>Components</Title>
<p>
The main feature of this library is providing consumers with the building blocks necessary to create <em>their</em> component.
</p>
<h3>Replacing Components</h3>
<p>
React-Images allows you to augment layout and functionality by replacing the default components with your own, using the <Code>components</Code>{' '}
property. These components are given all the current props and state letting you achieve anything you dream up.
</p>
<h3>Inner Props</h3>
<p>
All functional properties that the component needs are provided in <Code>innerProps</Code> which you must spread.
</p>
<h3>Common Props</h3>
<p>
Every component receives <Code>commonProps</Code> which are spread onto the component. These include:
</p>
<p>{commonProps.map(propFn)}</p>
<CodeBlock>
{`import React from 'react';
import Carousel from 'react-images';
const CustomHeader = ({ innerProps, isModal }) => isModal ? (
<div {...innerProps}>
// your component internals
</div>
) : null;
class Component extends React.Component {
render() {
return <Carousel components={{ Header: CustomHeader }} />;
}
}`}
</CodeBlock>
<h2>Component API</h2>
<h3>{'<Container />'}</h3>
<p>Wrapper for the carousel. Attachment point for mouse and touch event listeners.</p>
<h3>{'<Footer />'}</h3>
<p>
Element displayed beneath the views. Renders <Code>FooterCaption</Code> and <Code>FooterCount</Code> by default.
</p>
<h3>{'<FooterCaption />'}</h3>
<p>
Text associated with the current view. Renders <Code>{'{viewData.caption}'}</Code> by default.
</p>
<h3>{'<FooterCount />'}</h3>
<p>
How far through the carousel the user is. Renders{' '}
<Code>
{'{currentIndex}'} of {'{totalViews}'}
</Code>{' '}
by default
</p>
<h3>{'<Header />'}</h3>
<p>
Element displayed above the views. Renders <Code>FullscreenButton</Code> and <Code>CloseButton</Code> by default.
</p>
<h3>{'<HeaderClose />'}</h3>
<p>
The button to close the modal. Accepts the <Code>onClose</Code> function.
</p>
<h3>{'<HeaderFullscreen />'}</h3>
<p>
The button to fullscreen the modal. Accepts the <Code>toggleFullscreen</Code> function.
</p>
<h3>{'<Navigation />'}</h3>
<p>
Wrapper for the <Code>{'<NavigationNext />'}</Code> and <Code>{'<NavigationPrev />'}</Code> buttons.
</p>
<h3>{'<NavigationPrev />'}</h3>
<p>
Button allowing the user to navigate to the previous view. Accepts an <Code>onClick</Code> function.
</p>
<h3>{'<NavigationNext />'}</h3>
<p>
Button allowing the user to navigate to the next view. Accepts an <Code>onClick</Code> function.
</p>
<h3>{'<View />'}</h3>
<p>
The view component renders your media to the user. Receives the current view object as the <Code>data</Code> property.
</p>
<h2>Examples</h2>
<ImageViewer {...this.props} />
<AlternativeMedia />
</div>
)
}
}
| Java |
JAMAccurateSlider
===========
A UISlider subclass that enables much more accurate value selection.

JAMAccurateSlider is a drop-in replacement for UISlider. It behaves exactly the same as UISlider with the following awesome differences:
1. When the user begins tracking, two small "calipers" appear at the extents of the track.
2. When the user tracks their finger up (or down) past a certain threshold (~twice the height of the slider), the calipers move in towards the thumb and the thumb (and corresponding slider value) begins to move more slowly and accurately.
3. The calipers are a visual indication of how accurate the slider is, and is a great way for users to intuitively grasp the interaction mechanism.
4. The further the user moves their finger vertically from the slider, the greater the possibility of accuracy.
This behavior is completely automatic. There is nothing to configure. We think you'll love it.
| Java |
'''
logger_setup.py customizes the app's logging module. Each time an event is
logged the logger checks the level of the event (eg. debug, warning, info...).
If the event is above the approved threshold then it goes through. The handlers
do the same thing; they output to a file/shell if the event level is above their
threshold.
:Example:
>> from website import logger
>> logger.info('event', foo='bar')
**Levels**:
- logger.debug('For debugging purposes')
- logger.info('An event occured, for example a database update')
- logger.warning('Rare situation')
- logger.error('Something went wrong')
- logger.critical('Very very bad')
You can build a log incrementally as so:
>> log = logger.new(date='now')
>> log = log.bind(weather='rainy')
>> log.info('user logged in', user='John')
'''
import datetime as dt
import logging
from logging.handlers import RotatingFileHandler
import pytz
from flask import request, session
from structlog import wrap_logger
from structlog.processors import JSONRenderer
from app import app
# Set the logging level
app.logger.setLevel(app.config['LOG_LEVEL'])
# Remove the stdout handler
app.logger.removeHandler(app.logger.handlers[0])
TZ = pytz.timezone(app.config['TIMEZONE'])
def add_fields(_, level, event_dict):
''' Add custom fields to each record. '''
now = dt.datetime.now()
#event_dict['timestamp'] = TZ.localize(now, True).astimezone(pytz.utc).isoformat()
event_dict['timestamp'] = TZ.localize(now, True).astimezone\
(pytz.timezone(app.config['TIMEZONE'])).strftime(app.config['TIME_FMT'])
event_dict['level'] = level
if request:
try:
#event_dict['ip_address'] = request.headers['X-Forwarded-For'].split(',')[0].strip()
event_dict['ip_address'] = request.headers.get('X-Forwarded-For', request.remote_addr)
#event_dict['ip_address'] = request.header.get('X-Real-IP')
except:
event_dict['ip_address'] = 'unknown'
return event_dict
# Add a handler to write log messages to a file
if app.config.get('LOG_FILE'):
file_handler = RotatingFileHandler(filename=app.config['LOG_FILENAME'],
maxBytes=app.config['LOG_MAXBYTES'],
backupCount=app.config['LOG_BACKUPS'],
mode='a',
encoding='utf-8')
file_handler.setLevel(logging.DEBUG)
app.logger.addHandler(file_handler)
# Wrap the application logger with structlog to format the output
logger = wrap_logger(
app.logger,
processors=[
add_fields,
JSONRenderer(indent=None)
]
) | Java |
import { TurbolinksTestCase } from "./helpers/turbolinks_test_case"
import { get } from "http"
export class VisitTests extends TurbolinksTestCase {
async setup() {
this.goToLocation("/fixtures/visit.html")
}
async "test programmatically visiting a same-origin location"() {
const urlBeforeVisit = await this.location
await this.visitLocation("/fixtures/one.html")
const urlAfterVisit = await this.location
this.assert.notEqual(urlBeforeVisit, urlAfterVisit)
this.assert.equal(await this.visitAction, "advance")
const { url: urlFromBeforeVisitEvent } = await this.nextEventNamed("turbolinks:before-visit")
this.assert.equal(urlFromBeforeVisitEvent, urlAfterVisit)
const { url: urlFromVisitEvent } = await this.nextEventNamed("turbolinks:visit")
this.assert.equal(urlFromVisitEvent, urlAfterVisit)
const { timing } = await this.nextEventNamed("turbolinks:load")
this.assert.ok(timing)
}
async "test programmatically visiting a cross-origin location falls back to window.location"() {
const urlBeforeVisit = await this.location
await this.visitLocation("about:blank")
const urlAfterVisit = await this.location
this.assert.notEqual(urlBeforeVisit, urlAfterVisit)
this.assert.equal(await this.visitAction, "load")
}
async "test visiting a location served with a non-HTML content type"() {
const urlBeforeVisit = await this.location
await this.visitLocation("/fixtures/svg")
const url = await this.remote.getCurrentUrl()
const contentType = await contentTypeOfURL(url)
this.assert.equal(contentType, "image/svg+xml")
const urlAfterVisit = await this.location
this.assert.notEqual(urlBeforeVisit, urlAfterVisit)
this.assert.equal(await this.visitAction, "load")
}
async "test canceling a before-visit event prevents navigation"() {
this.cancelNextVisit()
const urlBeforeVisit = await this.location
this.clickSelector("#same-origin-link")
await this.nextBeat
this.assert(!await this.changedBody)
const urlAfterVisit = await this.location
this.assert.equal(urlAfterVisit, urlBeforeVisit)
}
async "test navigation by history is not cancelable"() {
this.clickSelector("#same-origin-link")
await this.drainEventLog()
await this.nextBeat
await this.goBack()
this.assert(await this.changedBody)
}
async visitLocation(location: string) {
this.remote.execute((location: string) => window.Turbolinks.visit(location), [location])
}
async cancelNextVisit() {
this.remote.execute(() => addEventListener("turbolinks:before-visit", function eventListener(event) {
removeEventListener("turbolinks:before-visit", eventListener, false)
event.preventDefault()
}, false))
}
}
function contentTypeOfURL(url: string): Promise<string | undefined> {
return new Promise(resolve => {
get(url, ({ headers }) => resolve(headers["content-type"]))
})
}
VisitTests.registerSuite()
| Java |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Ensure input parameters
/// </summary>
[DebuggerStepThrough]
internal static class Ensure
{
/// <summary>
/// Checks an argument to ensure it isn't null.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentNotNull(object argumentValue, string argumentName)
{
if (argumentValue == null)
{
throw new ArgumentNullException(argumentName);
}
}
/// <summary>
/// Checks an array argument to ensure it isn't null or empty.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentNotNullOrEmptyEnumerable<T>(IEnumerable<T> argumentValue, string argumentName)
{
ArgumentNotNull(argumentValue, argumentName);
if (!argumentValue.Any())
{
throw new ArgumentException("Enumerable cannot be empty", argumentName);
}
}
/// <summary>
/// Checks a string argument to ensure it isn't null or empty.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentNotNullOrEmptyString(string argumentValue, string argumentName)
{
ArgumentNotNull(argumentValue, argumentName);
if (String.IsNullOrWhiteSpace (argumentValue))
{
throw new ArgumentException("String cannot be empty", argumentName);
}
}
/// <summary>
/// Checks a string argument to ensure it doesn't contain a zero byte.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentDoesNotContainZeroByte(string argumentValue, string argumentName)
{
if (string.IsNullOrEmpty(argumentValue))
{
return;
}
int zeroPos = -1;
for (var i = 0; i < argumentValue.Length; i++)
{
if (argumentValue[i] == '\0')
{
zeroPos = i;
break;
}
}
if (zeroPos == -1)
{
return;
}
throw new ArgumentException(
string.Format(CultureInfo.InvariantCulture,
"Zero bytes ('\\0') are not allowed. A zero byte has been found at position {0}.", zeroPos), argumentName);
}
private static readonly Dictionary<GitErrorCode, Func<string, GitErrorCode, GitErrorCategory, LibGit2SharpException>>
GitErrorsToLibGit2SharpExceptions =
new Dictionary<GitErrorCode, Func<string, GitErrorCode, GitErrorCategory, LibGit2SharpException>>
{
{ GitErrorCode.User, (m, r, c) => new UserCancelledException(m, r, c) },
{ GitErrorCode.BareRepo, (m, r, c) => new BareRepositoryException(m, r, c) },
{ GitErrorCode.Exists, (m, r, c) => new NameConflictException(m, r, c) },
{ GitErrorCode.InvalidSpecification, (m, r, c) => new InvalidSpecificationException(m, r, c) },
{ GitErrorCode.UnmergedEntries, (m, r, c) => new UnmergedIndexEntriesException(m, r, c) },
{ GitErrorCode.NonFastForward, (m, r, c) => new NonFastForwardException(m, r, c) },
{ GitErrorCode.MergeConflict, (m, r, c) => new MergeConflictException(m, r, c) },
{ GitErrorCode.LockedFile, (m, r, c) => new LockedFileException(m, r, c) },
{ GitErrorCode.NotFound, (m, r, c) => new NotFoundException(m, r, c) },
{ GitErrorCode.Peel, (m, r, c) => new PeelException(m, r, c) },
};
private static void HandleError(int result)
{
string errorMessage;
GitError error = NativeMethods.giterr_last().MarshalAsGitError();
if (error == null)
{
error = new GitError { Category = GitErrorCategory.Unknown, Message = IntPtr.Zero };
errorMessage = "No error message has been provided by the native library";
}
else
{
errorMessage = LaxUtf8Marshaler.FromNative(error.Message);
}
Func<string, GitErrorCode, GitErrorCategory, LibGit2SharpException> exceptionBuilder;
if (!GitErrorsToLibGit2SharpExceptions.TryGetValue((GitErrorCode)result, out exceptionBuilder))
{
exceptionBuilder = (m, r, c) => new LibGit2SharpException(m, r, c);
}
throw exceptionBuilder(errorMessage, (GitErrorCode)result, error.Category);
}
/// <summary>
/// Check that the result of a C call was successful
/// <para>
/// The native function is expected to return strictly 0 for
/// success or a negative value in the case of failure.
/// </para>
/// </summary>
/// <param name="result">The result to examine.</param>
public static void ZeroResult(int result)
{
if (result == (int)GitErrorCode.Ok)
{
return;
}
HandleError(result);
}
/// <summary>
/// Check that the result of a C call returns a boolean value.
/// <para>
/// The native function is expected to return strictly 0 or 1.
/// </para>
/// </summary>
/// <param name="result">The result to examine.</param>
public static void BooleanResult(int result)
{
if (result == 0 || result == 1)
{
return;
}
HandleError(result);
}
/// <summary>
/// Check that the result of a C call that returns an integer
/// value was successful.
/// <para>
/// The native function is expected to return 0 or a positive
/// value for success or a negative value in the case of failure.
/// </para>
/// </summary>
/// <param name="result">The result to examine.</param>
public static void Int32Result(int result)
{
if (result >= (int)GitErrorCode.Ok)
{
return;
}
HandleError(result);
}
/// <summary>
/// Checks an argument by applying provided checker.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="checker">The predicate which has to be satisfied</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentConformsTo<T>(T argumentValue, Func<T, bool> checker, string argumentName)
{
if (checker(argumentValue))
{
return;
}
throw new ArgumentException(argumentName);
}
/// <summary>
/// Checks an argument is a positive integer.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentPositiveInt32(long argumentValue, string argumentName)
{
if (argumentValue >= 0 && argumentValue <= uint.MaxValue)
{
return;
}
throw new ArgumentException(argumentName);
}
/// <summary>
/// Check that the result of a C call that returns a non-null GitObject
/// using the default exception builder.
/// <para>
/// The native function is expected to return a valid object value.
/// </para>
/// </summary>
/// <param name="gitObject">The <see cref="GitObject"/> to examine.</param>
/// <param name="identifier">The <see cref="GitObject"/> identifier to examine.</param>
public static void GitObjectIsNotNull(GitObject gitObject, string identifier)
{
Func<string, LibGit2SharpException> exceptionBuilder;
if (string.Equals("HEAD", identifier, StringComparison.Ordinal))
{
exceptionBuilder = m => new UnbornBranchException(m);
}
else
{
exceptionBuilder = m => new NotFoundException(m);
}
GitObjectIsNotNull(gitObject, identifier, exceptionBuilder);
}
/// <summary>
/// Check that the result of a C call that returns a non-null GitObject
/// using the default exception builder.
/// <para>
/// The native function is expected to return a valid object value.
/// </para>
/// </summary>
/// <param name="gitObject">The <see cref="GitObject"/> to examine.</param>
/// <param name="identifier">The <see cref="GitObject"/> identifier to examine.</param>
/// <param name="exceptionBuilder">The builder which constructs an <see cref="LibGit2SharpException"/> from a message.</param>
public static void GitObjectIsNotNull(
GitObject gitObject,
string identifier,
Func<string, LibGit2SharpException> exceptionBuilder)
{
if (gitObject != null)
{
return;
}
throw exceptionBuilder(string.Format(CultureInfo.InvariantCulture,
"No valid git object identified by '{0}' exists in the repository.",
identifier));
}
}
}
| Java |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Graphics;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mods
{
public abstract class ModPerfect : ModSuddenDeath
{
public override string Name => "Perfect";
public override string Acronym => "PF";
public override FontAwesome Icon => FontAwesome.fa_osu_mod_perfect;
public override string Description => "SS or quit.";
protected override bool FailCondition(ScoreProcessor scoreProcessor) => scoreProcessor.Accuracy.Value != 1;
}
}
| Java |
var gulp = require('gulp');
var browserify = require('browserify');
//transform jsx to js
var reactify = require('reactify');
//convert to stream
var source = require('vinyl-source-stream');
var nodemon = require('gulp-nodemon');
gulp.task('browserify', function() {
//source
browserify('./src/js/main.js')
//convert jsx to js
.transform('reactify')
//creates a bundle
.bundle()
.pipe(source('main.js'))
.pipe(gulp.dest('dist/js'))
});
gulp.task('copy', function() {
gulp.src('src/index.html')
.pipe(gulp.dest('dist'));
gulp.src('src/assets/**/*.*')
.pipe(gulp.dest('dist/assets'));
});
gulp.task('nodemon', function(cb) {
var called = false;
return nodemon({
script: 'server.js'
}).on('start', function() {
if (!called) {
called = true;
cb();
}
});
});
gulp.task('default', ['browserify', 'copy', 'nodemon'], function() {
return gulp.watch('src/**/*.*', ['browserify', 'copy']);
});
| Java |
<?php
namespace TodoListBundle\Repository;
use TodoListBundle\Entity\Todo;
use TodoListBundle\Google\Client;
use Google_Service_Tasks;
use Google_Service_Tasks_Task;
class GTaskApiTodoRepository implements ITodoRepository
{
/**
* @var Google_Service_Tasks
*/
private $taskService;
private $todoRepository;
private function convertTask2Todo(Google_Service_Tasks_Task $task) {
$todo = new Todo();
$todo->setId($task->getId());
$todo->setDescription($task->getTitle());
$todo->setDone($task->getStatus() === 'completed');
$todo->setList($this->todoRepository->getById('@default'));
return $todo;
}
private function convertTodo2Task(Todo $todo) {
$task = new Google_Service_Tasks_Task();
$task->setKind('tasks#task');
$date = new \DateTime();
$date->format(\DateTime::RFC3339);
if ($todo->getId() == null) {
$task->setId($todo->getId());
}
$task->setTitle($todo->getDescription());
$task->setDue($date);
$task->setNotes($todo->getDescription());
$task->setDeleted(false);
$task->setHidden(false);
$task->setParent('@default');
$task->setUpdated($date);
$task->setStatus($todo->getDone() ? 'completed' : 'needsAction');
$task->setCompleted($date);
return $task;
}
public function __construct(Client $googleClient, ITodoListRepository $todoListRepository, $tokenStorage)
{
$googleClient->setAccessToken(json_decode($tokenStorage->getToken()->getUser(), true));
$this->taskService = $googleClient->getTaskService();
$this->todoRepository = $todoListRepository;
}
/**
* Gives all entities.
*/
public function findAll($offset = 0, $limit = null) {
$tasks = $this->taskService->tasks->listTasks('@default');
$result = [];
foreach ($tasks as $task) {
$result[] = $this->convertTask2Todo($task);
}
return $result;
}
/**
* Gives entity corresponding to the given identifier if it exists
* and null otherwise.
*
* @param $id int
*/
public function getById($id, $taskListId = null) {
$task = $this->taskService->tasks->get($taskListId, $id);
return $this->convertTask2Todo($task);
}
/**
* Save or update an entity.
*
* @param $entity
*/
public function persist($entity) {
$task = $this->convertTodo2Task($entity);
if ($entity->getId() == null) {
$task = $this->taskService->tasks->insert($task->getParent(), $task);
$entity->setId($task->getId());
} else {
$this->taskService->tasks->update($task->getParent(), $task->getId(), $task);
}
}
/**
* Delete the given entity.
*
* @param $entity
*/
public function delete($entity) {
$this->taskService->tasks->delete($entity->getList()->getId(), $entity->getId());
}
} | Java |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>ExceptionEvaluator.IsTriggeringEvent Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">log4net SDK Documentation - Microsoft .NET Framework 4.0</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">ExceptionEvaluator.IsTriggeringEvent Method </h1>
</div>
</div>
<div id="nstext">
<p> Is this <i>loggingEvent</i> the triggering event? </p>
<div class="syntax">
<span class="lang">[Visual Basic]</span>
<br />NotOverridable Public Function IsTriggeringEvent( _<br /> ByVal <i>loggingEvent</i> As <a href="log4net.Core.LoggingEvent.html">LoggingEvent</a> _<br />) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a> _<div> Implements <a href="log4net.Core.ITriggeringEventEvaluator.IsTriggeringEvent.html">ITriggeringEventEvaluator.IsTriggeringEvent</a></div></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">bool</a> IsTriggeringEvent(<br /> <a href="log4net.Core.LoggingEvent.html">LoggingEvent</a> <i>loggingEvent</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>loggingEvent</i>
</dt>
<dd>The event to check</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p>This method returns <code>true</code>, if the logging event Exception Type is <a href="log4net.Core.ExceptionEvaluator.ExceptionType.html">ExceptionType</a>. Otherwise it returns <code>false</code></p>
<h4 class="dtH4">Implements</h4>
<p>
<a href="log4net.Core.ITriggeringEventEvaluator.IsTriggeringEvent.html">ITriggeringEventEvaluator.IsTriggeringEvent</a>
</p>
<h4 class="dtH4">Remarks</h4>
<p> This evaluator will trigger if the Exception Type of the event passed to <b>IsTriggeringEvent</b> is <a href="log4net.Core.ExceptionEvaluator.ExceptionType.html">ExceptionType</a>. </p>
<h4 class="dtH4">See Also</h4><p><a href="log4net.Core.ExceptionEvaluator.html">ExceptionEvaluator Class</a> | <a href="log4net.Core.html">log4net.Core Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="IsTriggeringEvent method"></param><param name="Keyword" value="IsTriggeringEvent method, ExceptionEvaluator class"></param><param name="Keyword" value="ExceptionEvaluator.IsTriggeringEvent method"></param></object><hr /><div id="footer"><p><a href="http://logging.apache.org/log4net">Copyright 2004-2011 The Apache Software Foundation.</a></p><p></p></div></div>
</body>
</html> | Java |
/*!
* Diaphanous
* https://github.com/Jonic/Diaphanous
* @author Jonic Linley <jonic@100yen.co.uk>
* @version 0.0.1
* Copyright 2013 Jonic Linley MIT licensed.
*/
address:before,
article:before,
aside:before,
blockquote:before,
body:before,
div:before,
dl:before,
fieldset:before,
figcaption:before,
figure:before,
footer:before,
form:before,
h1:before,
h2:before,
h3:before,
h4:before,
h5:before,
h6:before,
header:before,
html:before,
li:before,
main:before,
ol:before,
p:before,
section:before,
nav:before,
ul:before, address:after,
article:after,
aside:after,
blockquote:after,
body:after,
div:after,
dl:after,
fieldset:after,
figcaption:after,
figure:after,
footer:after,
form:after,
h1:after,
h2:after,
h3:after,
h4:after,
h5:after,
h6:after,
header:after,
html:after,
li:after,
main:after,
ol:after,
p:after,
section:after,
nav:after,
ul:after {
content: '';
display: table;
}
address:after,
article:after,
aside:after,
blockquote:after,
body:after,
div:after,
dl:after,
fieldset:after,
figcaption:after,
figure:after,
footer:after,
form:after,
h1:after,
h2:after,
h3:after,
h4:after,
h5:after,
h6:after,
header:after,
html:after,
li:after,
main:after,
ol:after,
p:after,
section:after,
nav:after,
ul:after {
clear: both;
}
body {
-webkit-text-rendering: optimizeLegibility;
-moz-text-rendering: optimizeLegibility;
-ms-text-rendering: optimizeLegibility;
-o-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
}
body {
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-o-text-size-adjust: 100%;
text-size-adjust: 100%;
}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
background: #fbfcfc;
min-height: 100%;
}
body {
color: #6b6f74;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
font-weight: 400;
line-height: 28px;
min-height: 100%;
min-width: 320;
}
a {
color: #00b5eb;
cursor: pointer;
text-decoration: none;
-webkit-transition: color 300ms ease-in-out;
-moz-transition: color 300ms ease-in-out;
transition: color 300ms ease-in-out;
}
a:active, a:focus, a:hover {
color: #00b5eb;
text-decoration: underline;
}
address {
font-style: normal;
}
b {
font-weight: 700;
}
blockquote {
margin-bottom: 28;
}
blockquote p:before,
blockquote p:after {
display: inline-block;
font-size: 20px;
line-height: 0;
}
blockquote p:first-child:before {
content: '\201C';
}
blockquote p:last-of-type {
margin: 0;
}
blockquote p:last-of-type:after {
content: '\201D';
}
button {
border: none;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
cite {
display: block;
text-align: right;
}
code {
background: #9c9fa2;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 0 7;
}
dl {
margin-bottom: 28px;
}
dl dd {
margin-left: 28px;
}
dl dt {
margin: 0;
}
em {
font-style: italic;
}
figure {
display: block;
margin-bottom: 28px;
}
figure img {
display: block;
width: 100%;
}
figure figcaption {
color: #9c9fa2;
font-style: italic;
}
i {
font-style: italic;
}
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1, .h1,
h2, .h2,
h3, .h3 {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
margin: 0;
margin-bottom: 28px;
}
h1, .h1 {
font-size: 26px;
}
h2, .h2 {
font-size: 24px;
}
h3, .h3 {
font-size: 22px;
}
label {
margin: 0;
}
ol li {
list-style: decimal;
}
ol ol, ol ul {
margin-bottom: 0;
}
blockquote, code, dl, ol, p, pre, td, th, ul {
margin: 0;
margin-bottom: 28px;
}
.standfirst {
font-size: 20px;
}
select {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
strong {
font-weight: 700;
}
table {
border-collapse: collapse;
margin-bottom: 28px;
}
table td, table th {
margin: 0;
}
textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
time {
display: inline-block;
font-size: 14px;
}
ul li {
list-style: disc;
}
ul ol, ul ul {
margin-bottom: 0;
}
| Java |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// Template Source: Templates\CSharp\Requests\MethodRequestBuilder.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
/// <summary>
/// The type WorkbookFunctionsNetworkDaysRequestBuilder.
/// </summary>
public partial class WorkbookFunctionsNetworkDaysRequestBuilder : BaseActionMethodRequestBuilder<IWorkbookFunctionsNetworkDaysRequest>, IWorkbookFunctionsNetworkDaysRequestBuilder
{
/// <summary>
/// Constructs a new <see cref="WorkbookFunctionsNetworkDaysRequestBuilder"/>.
/// </summary>
/// <param name="requestUrl">The URL for the request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="startDate">A startDate parameter for the OData method call.</param>
/// <param name="endDate">A endDate parameter for the OData method call.</param>
/// <param name="holidays">A holidays parameter for the OData method call.</param>
public WorkbookFunctionsNetworkDaysRequestBuilder(
string requestUrl,
IBaseClient client,
Newtonsoft.Json.Linq.JToken startDate,
Newtonsoft.Json.Linq.JToken endDate,
Newtonsoft.Json.Linq.JToken holidays)
: base(requestUrl, client)
{
this.SetParameter("startDate", startDate, true);
this.SetParameter("endDate", endDate, true);
this.SetParameter("holidays", holidays, true);
}
/// <summary>
/// A method used by the base class to construct a request class instance.
/// </summary>
/// <param name="functionUrl">The request URL to </param>
/// <param name="options">The query and header options for the request.</param>
/// <returns>An instance of a specific request class.</returns>
protected override IWorkbookFunctionsNetworkDaysRequest CreateRequest(string functionUrl, IEnumerable<Option> options)
{
var request = new WorkbookFunctionsNetworkDaysRequest(functionUrl, this.Client, options);
if (this.HasParameter("startDate"))
{
request.RequestBody.StartDate = this.GetParameter<Newtonsoft.Json.Linq.JToken>("startDate");
}
if (this.HasParameter("endDate"))
{
request.RequestBody.EndDate = this.GetParameter<Newtonsoft.Json.Linq.JToken>("endDate");
}
if (this.HasParameter("holidays"))
{
request.RequestBody.Holidays = this.GetParameter<Newtonsoft.Json.Linq.JToken>("holidays");
}
return request;
}
}
}
| Java |
---
layout: post
status: publish
published: true
title: "$100 to spend on WF"
author:
display_name: Tomas Restrepo
login: tomasr
email: tomas@winterdom.com
url: http://winterdom.com/
author_login: tomasr
author_email: tomas@winterdom.com
author_url: http://winterdom.com/
wordpress_id: 137
wordpress_url: http://winterdom.com/2006/08/100tospendonwf
date: '2006-08-22 10:58:43 +0000'
date_gmt: '2006-08-22 10:58:43 +0000'
categories:
- XML
- Workflow
tags: []
comments:
- id: 83
author: Simon Ince
author_email: ''
author_url: http://www.dotnetblogs.co.uk/Default.aspx?tabid=137&BlogID=19
date: '2006-08-23 03:16:42 +0000'
date_gmt: '2006-08-23 03:16:42 +0000'
content: |
I totally agree with the focus you put on guidance (and design time experience nearly fits in the same category for me)... and I think you've got some really solid thoughts about what areas would be good for focusing on. What do you think about consolidating this into a factory/guidance automation approach? See my blog for my thoughts...
- id: 84
author: Tomas Restrepo
author_email: tomasr@mvps.org
author_url: http://www.winterdom.com/weblog/
date: '2006-08-23 06:17:19 +0000'
date_gmt: '2006-08-23 06:17:19 +0000'
content: |
Simon, Yes, that's certainly an interesting idea, I like it!
---
<p><!--start_raw-->
<p><a href="http://blogs.msdn.com/mwinkle/">Matt Winkler</a> asks <a href="http://blogs.msdn.com/mwinkle/archive/2006/08/22/712823.aspx">here</a> on feedback as to what we'd like to see on Windows Workflow Foundation that might help reduce the complexity and/or improve the WF experience for developer: spend a $100 bucks on what you'd like to see. Here's my take on it:</p>
<p>$10: Out of the Box hosting scenarios. This is a cool idea, and could be really complemented with:<br>$40: Guidance, Guidance, Guidance. We need to have good guidance in place on topics such as: WF Runtime Hosting Scenarios and Requirements; Long-running workflows; Workflow Versioning Strategies; Communication Options, Scalability options and more.<br>$20: Programming-model refinements. Things like the complexity introduced by spawned-contexts and the like cannot be 100% solved by tooling; the underlying programming model has to guide you towards writing correct code right from the start. I'll agree I don't have a good proposal as to how to fix it right now, though :-) <br>$30: Better design time experience: </p>
<ul>
<li>Improved designer</li>
<li>Improved Design-time validation. This could either be done by providing more compile-time validation, or, perhaps even better, through a WfCop-kind of tool. One idea I think would mix well with the superb extensibility model in WF and the Guidance idea would be to make it scenario based: You select the kind of scenario you expect your workflows/activities to run under, and extensive validation is done to see if it will work. For example, you might select the "Long-Running Transactional Workflow" escenario, and the tool would validate that things like serializability requirements are met by the workflow itself and all activities used. </li></ul><!--end_raw--></p>
| Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Tell the browser to be responsive to screen width -->
<title>SI Administrasi Desa</title>
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="<?=base_url()?>assets/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!-- DataTables -->
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.2.2/css/buttons.dataTables.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="<?=base_url()?>assets/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?=base_url()?>assets/dist/css/skins/_all-skins.min.css">
<!-- Select2 -->
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/select2/select2.min.css">
<!-- simple line icon -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.css">
<link rel="manifest" href="<?=base_url()?>assets/manifest.json">
<!-- jQuery 2.2.0 -->
<script src="<?=base_url()?>assets/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- DataTables -->
<script src="<?=base_url()?>assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?=base_url()?>assets/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition skin-red sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="<?=site_url('dashboard')?>" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SI</b>ADMINISTRASI</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img class="img-circle" src="<?=base_url()?>assets/dist/img/no-image-user.jpg" alt="User profile picture">
</div>
<div class="pull-left info">
<input name='id' id='id' value='".$id."' type='hidden'>
<p><a href="#">User</a></p>
<a><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header"> MENU</li>
<li id="home"><a href="<?=site_url('dashboard')?>"><i class="fa fa-home"></i> <span> Home</span></a></li>
<li id="data_penduduk" class="treeview">
<a href="#">
<i class="fa icon-wallet"></i> <span> Data Penduduk</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li id="penduduk"><a href="<?=site_url('penduduk')?>"><i class="fa icon-arrow-right"></i> Data Penduduk</a></li>
<li id="kelahiran"><a href="<?=site_url('kelahiran')?>"><i class="fa icon-arrow-right"></i> Data Kelahiran</a></li>
<li id="pendatang"><a href="<?=site_url('pendatang')?>"><i class="fa icon-arrow-right"></i> Data Pendatang</a></li>
<li id="kematian"><a href="<?=site_url('kematian')?>"><i class="fa icon-arrow-right"></i> Data Penduduk Meninggal</a></li>
<li id="pindah"><a href="<?=site_url('pindah')?>"><i class="fa icon-arrow-right"></i> Data Penduduk Pindah</a></li>
</ul>
</li>
<li id="surat" class="treeview">
<a href="#">
<i class="fa icon-wallet"></i> <span> Surat</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li id="surat_kelahiran"><a href="<?=site_url('surat_kelahiran')?>"><i class="fa icon-arrow-right"></i> SK Kelahiran</a></li>
<li id="surat_pendatang"><a href="#"><i class="fa icon-arrow-right"></i> SK Pendatang</a></li>
<li id="surat_kematian"><a href="#"><i class="fa icon-arrow-right"></i> SK Kematian</a></li>
<li id="surat_pindah"><a href="#"><i class="fa icon-arrow-right"></i> SK Pindah</a></li>
<li id="surat_kelakuan_baik"><a href="#"><i class="fa icon-arrow-right"></i> SK Kelakuan Baik</a></li>
<li id="surat_usaha"><a href="#"><i class="fa icon-arrow-right"></i> SK Usaha</a></li>
<li id="surat_tidak_mampu"><a href="#"><i class="fa icon-arrow-right"></i> SK Tidak Mampu</a></li>
<li id="surat_belum_kawin"><a href="#"><i class="fa icon-arrow-right"></i> SK Belum Pernah Kawin</a></li>
<li id="surat_perkawinan_hindu"><a href="#"><i class="fa icon-arrow-right"></i> SK Perkawinan Umat Hindu</a></li>
<li id="surat_permohonan_ktp"><a href="#"><i class="fa icon-arrow-right"></i> SK Permohonan KTP</a></li>
</ul>
</li>
<li id="potensi"><a href="#"><i class="fa icon-basket"></i> <span> Potensi Daerah</span></a></li>
<li class="header"> LOGOUT</li>
<li><a onclick="return confirm('Pilih OK untuk melanjutkan.')" href="<?=site_url('login/logout')?>"><i class="fa fa-power-off text-red"></i> <span> Logout</span></a></li>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<?=$body?>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 1.0.0
</div>
<strong>Copyright © 2017 <a href="#">SI Administrasi Desa</a>.</strong> All rights
reserved.
</footer>
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<!-- Bootstrap 3.3.6 -->
<script src="<?=base_url()?>assets/bootstrap/js/bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="<?=base_url()?>assets/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="<?=base_url()?>assets/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="<?=base_url()?>assets/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?=base_url()?>assets/dist/js/demo.js"></script>
<!-- bootstrap datepicker -->
<script src="<?=base_url()?>assets/plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- Select2 -->
<script src="<?=base_url()?>assets/plugins/select2/select2.full.min.js"></script>
<!-- excel -->
<script src="https://rawgithub.com/eligrey/FileSaver.js/master/FileSaver.js" type="text/javascript"></script>
<script>
function export() {
var blob = new Blob([document.getElementById('exportable').innerHTML], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
});
saveAs(blob, "report.xls");
}
</script>
<!-- page script -->
<script src="https://cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
<script>
$(document).ready(function() {
//Initialize Select2 Elements
$(".select2").select2();
$('#example2').DataTable( {
"paging": false,
"lengthChange": true,
"searching": false,
"ordering": true,
"scrollX": true,
dom: 'Bfrtip',
buttons: [
'copyHtml5',
'excelHtml5',
'csvHtml5',
'pdfHtml5'
]
});
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
//Date picker
$('#datepicker').datepicker({
autoclose: true,
format: 'dd-mm-yyyy'
});
$('#kedatangan_datepicker').datepicker({
autoclose: true,
format: 'dd-mm-yyyy'
});
$('#datepicker2').datepicker({
autoclose: true,
format: 'dd-mm-yyyy'
});
} );
</script>
</body>
</body>
</html> | Java |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms;
public final class R {
public static final class attr {
public static final int adSize = 0x7f01006a;
public static final int adSizes = 0x7f01006b;
public static final int adUnitId = 0x7f01006c;
public static final int buyButtonAppearance = 0x7f010082;
public static final int buyButtonHeight = 0x7f01007f;
public static final int buyButtonText = 0x7f010081;
public static final int buyButtonWidth = 0x7f010080;
public static final int cameraBearing = 0x7f01006e;
public static final int cameraTargetLat = 0x7f01006f;
public static final int cameraTargetLng = 0x7f010070;
public static final int cameraTilt = 0x7f010071;
public static final int cameraZoom = 0x7f010072;
public static final int environment = 0x7f01007c;
public static final int fragmentMode = 0x7f01007e;
public static final int fragmentStyle = 0x7f01007d;
public static final int mapType = 0x7f01006d;
public static final int maskedWalletDetailsBackground = 0x7f010085;
public static final int maskedWalletDetailsButtonBackground = 0x7f010087;
public static final int maskedWalletDetailsButtonTextAppearance = 0x7f010086;
public static final int maskedWalletDetailsHeaderTextAppearance = 0x7f010084;
public static final int maskedWalletDetailsLogoImageType = 0x7f010089;
public static final int maskedWalletDetailsLogoTextColor = 0x7f010088;
public static final int maskedWalletDetailsTextAppearance = 0x7f010083;
public static final int theme = 0x7f01007b;
public static final int uiCompass = 0x7f010073;
public static final int uiRotateGestures = 0x7f010074;
public static final int uiScrollGestures = 0x7f010075;
public static final int uiTiltGestures = 0x7f010076;
public static final int uiZoomControls = 0x7f010077;
public static final int uiZoomGestures = 0x7f010078;
public static final int useViewLifecycle = 0x7f010079;
public static final int zOrderOnTop = 0x7f01007a;
}
public static final class color {
public static final int common_action_bar_splitter = 0x7f07000c;
public static final int common_signin_btn_dark_text_default = 0x7f070003;
public static final int common_signin_btn_dark_text_disabled = 0x7f070005;
public static final int common_signin_btn_dark_text_focused = 0x7f070006;
public static final int common_signin_btn_dark_text_pressed = 0x7f070004;
public static final int common_signin_btn_default_background = 0x7f07000b;
public static final int common_signin_btn_light_text_default = 0x7f070007;
public static final int common_signin_btn_light_text_disabled = 0x7f070009;
public static final int common_signin_btn_light_text_focused = 0x7f07000a;
public static final int common_signin_btn_light_text_pressed = 0x7f070008;
public static final int common_signin_btn_text_dark = 0x7f070020;
public static final int common_signin_btn_text_light = 0x7f070021;
public static final int wallet_bright_foreground_disabled_holo_light = 0x7f070012;
public static final int wallet_bright_foreground_holo_dark = 0x7f07000d;
public static final int wallet_bright_foreground_holo_light = 0x7f070013;
public static final int wallet_dim_foreground_disabled_holo_dark = 0x7f07000f;
public static final int wallet_dim_foreground_holo_dark = 0x7f07000e;
public static final int wallet_dim_foreground_inverse_disabled_holo_dark = 0x7f070011;
public static final int wallet_dim_foreground_inverse_holo_dark = 0x7f070010;
public static final int wallet_highlighted_text_holo_dark = 0x7f070017;
public static final int wallet_highlighted_text_holo_light = 0x7f070016;
public static final int wallet_hint_foreground_holo_dark = 0x7f070015;
public static final int wallet_hint_foreground_holo_light = 0x7f070014;
public static final int wallet_holo_blue_light = 0x7f070018;
public static final int wallet_link_text_light = 0x7f070019;
public static final int wallet_primary_text_holo_light = 0x7f070022;
public static final int wallet_secondary_text_holo_dark = 0x7f070023;
}
public static final class drawable {
public static final int common_signin_btn_icon_dark = 0x7f02006c;
public static final int common_signin_btn_icon_disabled_dark = 0x7f02006d;
public static final int common_signin_btn_icon_disabled_focus_dark = 0x7f02006e;
public static final int common_signin_btn_icon_disabled_focus_light = 0x7f02006f;
public static final int common_signin_btn_icon_disabled_light = 0x7f020070;
public static final int common_signin_btn_icon_focus_dark = 0x7f020071;
public static final int common_signin_btn_icon_focus_light = 0x7f020072;
public static final int common_signin_btn_icon_light = 0x7f020073;
public static final int common_signin_btn_icon_normal_dark = 0x7f020074;
public static final int common_signin_btn_icon_normal_light = 0x7f020075;
public static final int common_signin_btn_icon_pressed_dark = 0x7f020076;
public static final int common_signin_btn_icon_pressed_light = 0x7f020077;
public static final int common_signin_btn_text_dark = 0x7f020078;
public static final int common_signin_btn_text_disabled_dark = 0x7f020079;
public static final int common_signin_btn_text_disabled_focus_dark = 0x7f02007a;
public static final int common_signin_btn_text_disabled_focus_light = 0x7f02007b;
public static final int common_signin_btn_text_disabled_light = 0x7f02007c;
public static final int common_signin_btn_text_focus_dark = 0x7f02007d;
public static final int common_signin_btn_text_focus_light = 0x7f02007e;
public static final int common_signin_btn_text_light = 0x7f02007f;
public static final int common_signin_btn_text_normal_dark = 0x7f020080;
public static final int common_signin_btn_text_normal_light = 0x7f020081;
public static final int common_signin_btn_text_pressed_dark = 0x7f020082;
public static final int common_signin_btn_text_pressed_light = 0x7f020083;
public static final int ic_plusone_medium_off_client = 0x7f02008d;
public static final int ic_plusone_small_off_client = 0x7f02008e;
public static final int ic_plusone_standard_off_client = 0x7f02008f;
public static final int ic_plusone_tall_off_client = 0x7f020090;
public static final int powered_by_google_dark = 0x7f02009f;
public static final int powered_by_google_light = 0x7f0200a0;
}
public static final class id {
public static final int book_now = 0x7f050026;
public static final int buyButton = 0x7f050020;
public static final int buy_now = 0x7f050025;
public static final int buy_with_google = 0x7f050024;
public static final int classic = 0x7f050027;
public static final int grayscale = 0x7f050028;
public static final int holo_dark = 0x7f05001b;
public static final int holo_light = 0x7f05001c;
public static final int hybrid = 0x7f05001a;
public static final int match_parent = 0x7f050022;
public static final int monochrome = 0x7f050029;
public static final int none = 0x7f050010;
public static final int normal = 0x7f050000;
public static final int production = 0x7f05001d;
public static final int sandbox = 0x7f05001e;
public static final int satellite = 0x7f050018;
public static final int selectionDetails = 0x7f050021;
public static final int strict_sandbox = 0x7f05001f;
public static final int terrain = 0x7f050019;
public static final int wrap_content = 0x7f050023;
}
public static final class integer {
public static final int google_play_services_version = 0x7f090001;
}
public static final class string {
public static final int auth_client_needs_enabling_title = 0x7f0a000e;
public static final int auth_client_needs_installation_title = 0x7f0a000f;
public static final int auth_client_needs_update_title = 0x7f0a0010;
public static final int auth_client_play_services_err_notification_msg = 0x7f0a0011;
public static final int auth_client_requested_by_msg = 0x7f0a0012;
public static final int auth_client_using_bad_version_title = 0x7f0a000d;
public static final int common_google_play_services_enable_button = 0x7f0a001e;
public static final int common_google_play_services_enable_text = 0x7f0a001d;
public static final int common_google_play_services_enable_title = 0x7f0a001c;
public static final int common_google_play_services_error_notification_requested_by_msg = 0x7f0a0017;
public static final int common_google_play_services_install_button = 0x7f0a001b;
public static final int common_google_play_services_install_text_phone = 0x7f0a0019;
public static final int common_google_play_services_install_text_tablet = 0x7f0a001a;
public static final int common_google_play_services_install_title = 0x7f0a0018;
public static final int common_google_play_services_invalid_account_text = 0x7f0a0024;
public static final int common_google_play_services_invalid_account_title = 0x7f0a0023;
public static final int common_google_play_services_needs_enabling_title = 0x7f0a0016;
public static final int common_google_play_services_network_error_text = 0x7f0a0022;
public static final int common_google_play_services_network_error_title = 0x7f0a0021;
public static final int common_google_play_services_notification_needs_installation_title = 0x7f0a0014;
public static final int common_google_play_services_notification_needs_update_title = 0x7f0a0015;
public static final int common_google_play_services_notification_ticker = 0x7f0a0013;
public static final int common_google_play_services_unknown_issue = 0x7f0a0025;
public static final int common_google_play_services_unsupported_date_text = 0x7f0a0028;
public static final int common_google_play_services_unsupported_text = 0x7f0a0027;
public static final int common_google_play_services_unsupported_title = 0x7f0a0026;
public static final int common_google_play_services_update_button = 0x7f0a0029;
public static final int common_google_play_services_update_text = 0x7f0a0020;
public static final int common_google_play_services_update_title = 0x7f0a001f;
public static final int common_signin_button_text = 0x7f0a002a;
public static final int common_signin_button_text_long = 0x7f0a002b;
public static final int wallet_buy_button_place_holder = 0x7f0a002c;
}
public static final class style {
public static final int Theme_IAPTheme = 0x7f0b007f;
public static final int WalletFragmentDefaultButtonTextAppearance = 0x7f0b0082;
public static final int WalletFragmentDefaultDetailsHeaderTextAppearance = 0x7f0b0081;
public static final int WalletFragmentDefaultDetailsTextAppearance = 0x7f0b0080;
public static final int WalletFragmentDefaultStyle = 0x7f0b0083;
}
public static final class styleable {
public static final int[] AdsAttrs = { 0x7f01006a, 0x7f01006b, 0x7f01006c };
public static final int AdsAttrs_adSize = 0;
public static final int AdsAttrs_adSizes = 1;
public static final int AdsAttrs_adUnitId = 2;
public static final int[] MapAttrs = { 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a };
public static final int MapAttrs_cameraBearing = 1;
public static final int MapAttrs_cameraTargetLat = 2;
public static final int MapAttrs_cameraTargetLng = 3;
public static final int MapAttrs_cameraTilt = 4;
public static final int MapAttrs_cameraZoom = 5;
public static final int MapAttrs_mapType = 0;
public static final int MapAttrs_uiCompass = 6;
public static final int MapAttrs_uiRotateGestures = 7;
public static final int MapAttrs_uiScrollGestures = 8;
public static final int MapAttrs_uiTiltGestures = 9;
public static final int MapAttrs_uiZoomControls = 10;
public static final int MapAttrs_uiZoomGestures = 11;
public static final int MapAttrs_useViewLifecycle = 12;
public static final int MapAttrs_zOrderOnTop = 13;
public static final int[] WalletFragmentOptions = { 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e };
public static final int WalletFragmentOptions_environment = 1;
public static final int WalletFragmentOptions_fragmentMode = 3;
public static final int WalletFragmentOptions_fragmentStyle = 2;
public static final int WalletFragmentOptions_theme = 0;
public static final int[] WalletFragmentStyle = { 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089 };
public static final int WalletFragmentStyle_buyButtonAppearance = 3;
public static final int WalletFragmentStyle_buyButtonHeight = 0;
public static final int WalletFragmentStyle_buyButtonText = 2;
public static final int WalletFragmentStyle_buyButtonWidth = 1;
public static final int WalletFragmentStyle_maskedWalletDetailsBackground = 6;
public static final int WalletFragmentStyle_maskedWalletDetailsButtonBackground = 8;
public static final int WalletFragmentStyle_maskedWalletDetailsButtonTextAppearance = 7;
public static final int WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance = 5;
public static final int WalletFragmentStyle_maskedWalletDetailsLogoImageType = 10;
public static final int WalletFragmentStyle_maskedWalletDetailsLogoTextColor = 9;
public static final int WalletFragmentStyle_maskedWalletDetailsTextAppearance = 4;
}
}
| Java |
#!/usr/bin/env bash
PATH=/opt/usao/moodle3/bin:/usr/local/bin:/usr/bin:/bin:/sbin:$PATH
## Require arguments
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then
cat <<USAGE
moodle3_migrate.sh migrates a site between hosts.
Usage: moodle3_migrate.sh \$dest_moodledir \$src_moodlehost \$src_cfgdir
\$dest_moodledir local dir for Moodle site (eg. /srv/example).
\$src_moodlehost host of site to migrate
\$src_cfgdir remote dir of site to migrate on \$src_moodlehost
USAGE
exit 1;
fi
source /opt/usao/moodle3/etc/moodle3_conf.sh
dest_moodledir=${1}
src_moodlehost=${2}
src_cfgdir=${3}
dest_basename=$(basename "$dest_moodledir")
# Read src config file
src_cfg=$(ssh ${src_moodlehost} cat ${src_cfgdir}/config.php)
# Set vars from it.
src_dbhost=`echo "${src_cfg}" | grep '^$CFG->dbhost' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dbname=`echo "${src_cfg}" | grep '^$CFG->dbname' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dbuser=`echo "${src_cfg}" | grep '^$CFG->dbuser' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dbpass=`echo "${src_cfg}" | grep '^$CFG->dbpass' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_wwwroot=`echo "${src_cfg}" | grep '^$CFG->wwwroot' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dataroot=`echo "${src_cfg}" | grep '^$CFG->dataroot' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
# Sync over the moodledata
rsync -avz ${src_moodlehost}:${src_dataroot}/ ${dest_moodledir}/moodledata/
# Dump src db to local file in dest_moodledir
ssh ${src_moodlehost} mysqldump --single-transaction --lock-tables=false --allow-keywords --opt -h${src_dbhost} -u${src_dbuser} -p${src_dbpass} ${src_dbname} >${dest_moodledir}/db/moodle3_${src_moodlehost}_dump.sql
# change sitename in db dump.
sed -e "s#${src_wwwroot}#${moodle3wwwroot}#g" ${dest_moodledir}/db/moodle3_${src_moodlehost}_dump.sql > ${dest_moodledir}/db/moodle3_${dest_basename}_dump.sql
# Import our newly munged database
/opt/usao/moodle3/bin/moodle3_importdb.sh ${dest_moodledir}
# Upgrade our db to the installed codebase
/opt/usao/moodle3/bin/moodle3_upgrade.sh ${dest_moodledir}
| Java |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
using System.Security;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.
[assembly: AssemblyTitle("mko")]
[assembly: AssemblyDescription("mko: Klassen zur Organisiation von Fehler- und Statusmeldungen (LogServer). Diverse Hilfsklassen für Debugging und Serialisierung;")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("www.mkoit.de")]
[assembly: AssemblyProduct("mko")]
[assembly: AssemblyCopyright("Copyright © Martin Korneffel, Stuttgart 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("04255517-3840-4f51-a09b-a41c68fe2f0d")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern
// übernehmen, indem Sie "*" eingeben:
[assembly: AssemblyVersion("7.4.1.0")]
[assembly: AssemblyFileVersion("7.4.1.0")]
[assembly: NeutralResourcesLanguageAttribute("de-DE")]
[assembly: AllowPartiallyTrustedCallers]
| Java |
---
layout: post
title: Home Lab 2016 (2015)
category: homework
tag: imported
author: adricnet
---
*draft post, no images, end notes, links yet*
Revamped and reconfigured post-SEC511 and SOC Augusta 2015, with some input from GSE studies Google group, plus some good stuff for file analysis that I'm currently neglecting ...
Gear
====
The physical hardware of the lab is two Shuttle mini servers, a extra switch or two, and the tap on the cable modem.
Hyper
-----
One of the Shuttles is an ESXi hyper with a few internal drives:
* a tiny SSD (mSATA) ~8 GB for ESX boot and key ISO install media
* a pair of 1 TB hybrid SATA3 drives as VM storage
The hyper server has some extra network ports from a PCI card that we put to good use. Its physical network connections are to the primary switch for the the X network and to the tap on the cable modem.
For simplicity and ease of NSM both these virtual networks (and their vSwitches) are fully opened up in VMWare for promiscuous mode (sniffing). This is not a good production configuration but it is great for the lab.
Sandbox
-------
The other Shuttle server is a Linux install with REMnux 6 for malware analysis including a Cuckoo Sandbox server for automated malware analysis against configured VirtualBox virtual machines.
Tap
---
I have an inexpensive tap between the cable modem and the primary router. Its only good for a slow network and combines duplex onto one port, which is all great for my Internet connection ( ~20 Mbps downstream ) which isn't capable of more than 100 Mbps total anyway.
{need graphic}
Networks
========
Eschewing a more sophisticated network architecture for now we have one production network for everything. Most of the non-lab gear is on wireless anyway. We'll call this network 192.168.X.0/24.
The hyper has a few vSwitches including for the production X network (labelled "Lab"), the tap coming in from the cable modem (labelled "Loose") . As noted both a fully unsecured in VMWare so we can sniff them.
Security Onion for NSM
==============
We have two SO virtual machines monitoring all of this to get the coverage we need with acceptable performance. The main SO install is on SOSIFT, a Security Onion 12.04 with the SIFT3 packages added. The cable modem tap gets its own sensor in this build.
SOSIFT has separate management and monitoring interfaces (both on Lab vSwitch and X network) and is configured in SO advanced setup as an Standalone server with Bro, Suricata, ELSA listening on that last interface with full pcap, file extraction enabled.
cablesensor is also SO 12.04 configured in advanced mode to be a sensor (only) and is connected up to SOSIFT as master for Suricata, ELSA with full pcap, file extraction enabled.
Kali for event source
=====
A Kali Linux 1 virtual machine on the hyper serves as the source of all our attack traffic in this model. Following the tutorials I have OpenVAS/gbsa and Metasploit framework all ready to go. Both the OpenVAS scans as well as any db_nmap scans from *msfconsole* are visible to the Security Onion systems because the Lab network they use is fully monitored by SOSIFT.
Testing
====
While I was still setting everything up I used some simple network utilities to keep an eye on my network configs. It was easy to have a ping with a silly pattern running on the Kali scanner system and a matching tcpdump on the sensor interfaces, before moving on testmyids.com, and then the OpenVAS and nmap scans.
1. Ping (from kali) to some target system on X network, continuously, with a pattern, and watch for those pings where you should see them (sensor interface):
* <pre>ping -p '0xdeadbeef' 192.168.X.250 #ping SOSIFT mgmt IP</pre>
* <pre>tcpdump -nni eth1 -v -x 'host 192.168.X.241' #kali's IP</pre>
2. Then try the same with Internet DNS. This should be visible in two places in the sensor net: the lab network and the cable modem tap.
* <pre>dig @8.8.4.4 adric.net TXT #from kali ask GDNS for my SPF records</pre>
* <pre>tcpdump -nni eth1 -v -X 'port 53 and host 192.168.x.241' #lab sensor shoudl see kali's request</pre>
* <pre>tcpdump -nni eth2 -v -X 'port 53 and host 8.8.4.4' #will show DNS request outbound and response</pre>
* this proves we have sensor coverage for the lab and the Internet link!
3. Then we can use testmyids.com, a handy site that causes an alert in one of the default Snort/Suricata rules from Emerging Threats GPL. We should be able to see LAN and WAN for Kali activity, as well as WAN for all systems on X network (cable modem tap). Log on into sguil interactively via console and monitor the cablemodem monitoring and lab monitoring interfaces (for me that's sosift-eth2 and cablesensor-eth1) and then generate some events, alerts:
* <pre>curl www.testmyids.com # from a Mac on production network</pre>
* <pre>curl www.testmyids.com # from Kali VM </pre>
* should all alert via the appropriate sensor interface in Sguil, ELSA
4. After that I was confident than some discovery scans in OpenVAS and msfconsole would populate, and they did.
Working!
=====
Events generated from Kali aimed anywhere on X network populate nicely into sguil on SOSIFT (via remote console) and into ELSA (web UI). OpenVAS security was relaxed (/etc/default/ ) to allow non-localhost connections to the management and admin Web UI (Greenbone Security Assistant) and the self-signed certificate for ELSA needs to be trusted for any browser to let you use it. I have hosts file all over for the servers, sensors, kali so I can use hostnames when I want to.
Refs
=====
* SEC511 "Security Operations and Continuous Monitoring" : https://www.sans.org/course/continuous-monitoring-security-operations, for GMON : http://www.giac.org/certification/continuous-monitoring-certification-gmon
* GSE, study group: https://www.giac.org/certification/security-expert-gse , https://groups.google.com/forum/#!forum/giac-study
* *#SOCAugusta2015, @securityonion*
* VMWare vSwitches for sniffing: "Configuring promiscuous mode on a virtual switch or portgroup (KB 1004099)" http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004099
* for SO, start here:
https://github.com/Security-Onion-Solutions/security-onion/wiki/Installation
and then keep reading about Hardware requirements, production setups and testing:
https://github.com/Security-Onion-Solutions/security-onion/wiki/PostInstallation
* Googled up some examples of working ping patterns (must be hex bytes):
http://www.tutorialspoint.com/unix_commands/ping.htm
* Test My IDS history: http://blog.testmyids.com/2015/01/8-years-of-testmyids.html
* Needed some help from this awesome reference to get db_connect in Kali 1, since Kali2 does this automagically with *msfdb init*:
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment
* To dig into this excellent resource:
https://www.offensive-security.com/metasploit-unleashed/
| Java |
module.exports = function(config) {
config.set({
basePath: '../../',
frameworks: ['jasmine', 'requirejs'],
files: [
{pattern: 'test/unit/require.conf.js', included: true},
{pattern: 'test/unit/tests/global.js', included: true},
{pattern: 'src/client/**/*.*', included: false},
{pattern: 'test/unit/tests/**/*.*', included: false},
],
plugins: [
'karma-jasmine',
'karma-requirejs',
'karma-coverage',
'karma-html-reporter',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-safari-launcher',
'karma-ie-launcher'
],
reporters: ['coverage', 'html', 'progress'],
preprocessors: {
'src/client/component/**/*.js': ['coverage'],
'src/client/service/**/*.js': ['coverage']
},
coverageReporter: {
type: 'html',
dir: 'test/unit/coverage/',
includeAllSources: true
},
htmlReporter: {
outputDir: 'results' //it is annoying that this file path isn't from basePath :(
},
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['Chrome'/*, 'PhantomJS', 'Firefox', 'IE', 'Safari'*/],
captureTimeout: 5000,
singleRun: true
});
}; | Java |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
#import "IDEProvisioningSigningIdentity-Protocol.h"
@class NSDate, NSString;
@interface IDEProvisioningSigningIdentityPrototype : NSObject <IDEProvisioningSigningIdentity>
{
BOOL _distribution;
NSString *_certificateKind;
}
@property(nonatomic, getter=isDistribution) BOOL distribution; // @synthesize distribution=_distribution;
@property(copy, nonatomic) NSString *certificateKind; // @synthesize certificateKind=_certificateKind;
@property(readonly, copy) NSString *description;
@property(readonly, copy, nonatomic) NSDate *expirationDate;
@property(readonly, copy, nonatomic) NSString *teamMemberID;
@property(readonly, nonatomic) NSString *serialNumber;
- (id)enhancedSigningIdentityWithState:(unsigned long long)arg1;
- (BOOL)matchesSigningIdentity:(id)arg1;
// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;
@end
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FSharpDeclarationListItem - F# Compiler Services</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Microsoft Corporation, Dave Thomas, Anh-Dung Phan, Tomas Petricek">
<script src="https://code.jquery.com/jquery-1.8.0.js"></script>
<script src="https://code.jquery.com/ui/1.8.23/jquery-ui.js"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="./content/style.css" />
<link type="text/css" rel="stylesheet" href="./content/fcs.css" />
<script type="text/javascript" src="./content/tips.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li><a href="http://fsharp.org">fsharp.org</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service">github page</a></li>
</ul>
<h3 class="muted">F# Compiler Services</h3>
</div>
<hr />
<div class="row">
<div class="span9" id="main">
<h1>FSharpDeclarationListItem</h1>
<p>
<span>Namespace: Microsoft.FSharp.Compiler.SourceCodeServices</span><br />
</p>
<div class="xmldoc">
<p>Represents a declaration in F# source code, with information attached ready for display by an editor.
Returned by GetDeclarations.</p>
</div>
<h3>Instance members</h3>
<table class="table table-bordered member-list">
<thead>
<tr><td>Instance member</td><td>Description</td></tr>
</thead>
<tbody>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2893', 2893)" onmouseover="showTip(event, '2893', 2893)">
Accessibility
</code>
<div class="tip" id="2893">
<strong>Signature:</strong> FSharpAccessibility option<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L548-548" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_Accessibility</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2894', 2894)" onmouseover="showTip(event, '2894', 2894)">
DescriptionText
</code>
<div class="tip" id="2894">
<strong>Signature:</strong> FSharpToolTipText<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L546-546" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_DescriptionText</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2895', 2895)" onmouseover="showTip(event, '2895', 2895)">
DescriptionTextAsync
</code>
<div class="tip" id="2895">
<strong>Signature:</strong> Async<FSharpToolTipText><br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L515-515" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_DescriptionTextAsync</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2896', 2896)" onmouseover="showTip(event, '2896', 2896)">
FullName
</code>
<div class="tip" id="2896">
<strong>Signature:</strong> string<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L552-552" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_FullName</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2897', 2897)" onmouseover="showTip(event, '2897', 2897)">
Glyph
</code>
<div class="tip" id="2897">
<strong>Signature:</strong> FSharpGlyph<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L547-547" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_Glyph</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2898', 2898)" onmouseover="showTip(event, '2898', 2898)">
IsOwnMember
</code>
<div class="tip" id="2898">
<strong>Signature:</strong> bool<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L550-550" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_IsOwnMember</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2899', 2899)" onmouseover="showTip(event, '2899', 2899)">
IsResolved
</code>
<div class="tip" id="2899">
<strong>Signature:</strong> bool<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L553-553" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_IsResolved</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2900', 2900)" onmouseover="showTip(event, '2900', 2900)">
Kind
</code>
<div class="tip" id="2900">
<strong>Signature:</strong> CompletionItemKind<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L549-549" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_Kind</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2901', 2901)" onmouseover="showTip(event, '2901', 2901)">
MinorPriority
</code>
<div class="tip" id="2901">
<strong>Signature:</strong> int<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L551-551" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_MinorPriority</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2902', 2902)" onmouseover="showTip(event, '2902', 2902)">
Name
</code>
<div class="tip" id="2902">
<strong>Signature:</strong> string<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L493-493" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the display name for the declaration.</p>
<p>CompiledName: <code>get_Name</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2903', 2903)" onmouseover="showTip(event, '2903', 2903)">
NameInCode
</code>
<div class="tip" id="2903">
<strong>Signature:</strong> string<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L494-494" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the name for the declaration as it's presented in source code.</p>
<p>CompiledName: <code>get_NameInCode</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2904', 2904)" onmouseover="showTip(event, '2904', 2904)">
NamespaceToOpen
</code>
<div class="tip" id="2904">
<strong>Signature:</strong> string option<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L554-554" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_NamespaceToOpen</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2905', 2905)" onmouseover="showTip(event, '2905', 2905)">
StructuredDescriptionText
</code>
<div class="tip" id="2905">
<strong>Signature:</strong> FSharpStructuredToolTipText<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L519-519" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the description text for the declaration. Computing this property may require using compiler
resources and may trigger execution of a type provider method to retrieve documentation.</p>
<p>May return "Loading..." if timeout occurs</p>
<p>CompiledName: <code>get_StructuredDescriptionText</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2906', 2906)" onmouseover="showTip(event, '2906', 2906)">
StructuredDescriptionTextAsync
</code>
<div class="tip" id="2906">
<strong>Signature:</strong> Async<FSharpStructuredToolTipText><br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L496-496" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the description text, asynchronously. Never returns "Loading...".</p>
<p>CompiledName: <code>get_StructuredDescriptionTextAsync</code></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="span3">
<a href="https://nuget.org/packages/FSharp.Compiler.Service">
<img src="./images/logo.png" style="width:140px;height:140px;margin:10px 0px 0px 35px;border-style:none;" />
</a>
<ul class="nav nav-list" id="menu">
<li class="nav-header">
<a href="./ja/index.html" class="nflag"><img src="./images/ja.png" /></a>
<a href="./index.html" class="nflag nflag2"><img src="./images/en.png" /></a>
F# Compiler Services
</li>
<li><a href="./index.html">Home page</a></li>
<li class="divider"></li>
<li><a href="https://www.nuget.org/packages/FSharp.Compiler.Service">Get Library via NuGet</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service">Source Code on GitHub</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service/blob/master/LICENSE">License</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service/blob/master/RELEASE_NOTES.md">Release Notes</a></li>
<li class="nav-header">Getting started</li>
<li><a href="./index.html">Home page</a></li>
<li><a href="./devnotes.html">Developer notes</a></li>
<li><a href="./fsharp-readme.html">F# compiler readme</a></li>
<li class="nav-header">Available services</li>
<li><a href="./tokenizer.html">F# Language tokenizer</a></li>
<li><a href="./untypedtree.html">Processing untyped AST</a></li>
<li><a href="./editor.html">Using editor (IDE) services</a></li>
<li><a href="./symbols.html">Using resolved symbols</a></li>
<li><a href="./typedtree.html">Using resolved expressions</a></li>
<li><a href="./project.html">Whole-project analysis</a></li>
<li><a href="./interactive.html">Embedding F# interactive</a></li>
<li><a href="./compiler.html">Embedding F# compiler</a></li>
<li><a href="./filesystem.html">Virtualized file system</a></li>
<li class="nav-header">Design Notes</li>
<li><a href="./queue.html">The FSharpChecker operations queue</a></li>
<li><a href="./caches.html">The FSharpChecker caches</a></li>
<li><a href="./corelib.html">Notes on FSharp.Core.dll</a></li>
<li class="nav-header">Documentation</li>
<li><a href="./reference/index.html">API Reference</a>
</li>
</ul>
</div>
</div>
</div>
<a href="http://github.com/fsharp/FSharp.Compiler.Service"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</body>
</html>
| Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.11.10: v8::Boolean Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.11.10
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_boolean.html">Boolean</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classv8_1_1_boolean-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">v8::Boolean Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <<a class="el" href="v8_8h_source.html">v8.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for v8::Boolean:</div>
<div class="dyncontent">
<div class="center">
<img src="classv8_1_1_boolean.png" usemap="#v8::Boolean_map" alt=""/>
<map id="v8::Boolean_map" name="v8::Boolean_map">
<area href="classv8_1_1_primitive.html" alt="v8::Primitive" shape="rect" coords="0,112,80,136"/>
<area href="classv8_1_1_value.html" alt="v8::Value" shape="rect" coords="0,56,80,80"/>
<area href="classv8_1_1_data.html" alt="v8::Data" shape="rect" coords="0,0,80,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa493d54eb43afc64ab796e1cf66ff910"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa493d54eb43afc64ab796e1cf66ff910"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Value</b> () const </td></tr>
<tr class="separator:aa493d54eb43afc64ab796e1cf66ff910"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classv8_1_1_value"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classv8_1_1_value')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classv8_1_1_value.html">v8::Value</a></td></tr>
<tr class="memitem:aea287b745656baa8a12a2ae1d69744b6 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">V8_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aea287b745656baa8a12a2ae1d69744b6">IsUndefined</a> () const </td></tr>
<tr class="separator:aea287b745656baa8a12a2ae1d69744b6 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa2c6ed8ef832223a7e2cd81e6ac61c78 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">V8_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aa2c6ed8ef832223a7e2cd81e6ac61c78">IsNull</a> () const </td></tr>
<tr class="separator:aa2c6ed8ef832223a7e2cd81e6ac61c78 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8f27462322186b295195eecb3e81d6d7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a8f27462322186b295195eecb3e81d6d7">IsTrue</a> () const </td></tr>
<tr class="separator:a8f27462322186b295195eecb3e81d6d7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68c0296071d01ca899825d7643cf495a inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a68c0296071d01ca899825d7643cf495a">IsFalse</a> () const </td></tr>
<tr class="separator:a68c0296071d01ca899825d7643cf495a inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab23a34b7df62806808e01b0908bf5f00 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">V8_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ab23a34b7df62806808e01b0908bf5f00">IsString</a> () const </td></tr>
<tr class="separator:ab23a34b7df62806808e01b0908bf5f00 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af3e6081c22d09a7bbc0a2aff59ed60a5 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#af3e6081c22d09a7bbc0a2aff59ed60a5">IsSymbol</a> () const </td></tr>
<tr class="separator:af3e6081c22d09a7bbc0a2aff59ed60a5 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a05532a34cdd215f273163830ed8b77e7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a05532a34cdd215f273163830ed8b77e7">IsFunction</a> () const </td></tr>
<tr class="separator:a05532a34cdd215f273163830ed8b77e7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaee0b144087d20eae02314c9393ff80f inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aaee0b144087d20eae02314c9393ff80f">IsArray</a> () const </td></tr>
<tr class="separator:aaee0b144087d20eae02314c9393ff80f inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a355b7991c5c978c0341f6f961b63c5a2 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a355b7991c5c978c0341f6f961b63c5a2">IsObject</a> () const </td></tr>
<tr class="separator:a355b7991c5c978c0341f6f961b63c5a2 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0aceb7645e71b096df5cd73d1252b1b0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a0aceb7645e71b096df5cd73d1252b1b0">IsBoolean</a> () const </td></tr>
<tr class="separator:a0aceb7645e71b096df5cd73d1252b1b0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1bd51e3e55f67c65b9a8f587fbffb7c7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a1bd51e3e55f67c65b9a8f587fbffb7c7">IsNumber</a> () const </td></tr>
<tr class="separator:a1bd51e3e55f67c65b9a8f587fbffb7c7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ac61a325c18af8dcb6d7d5bf47d2503 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a7ac61a325c18af8dcb6d7d5bf47d2503">IsExternal</a> () const </td></tr>
<tr class="separator:a7ac61a325c18af8dcb6d7d5bf47d2503 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a01e1db51c65b2feace248b7acbf71a2c inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a01e1db51c65b2feace248b7acbf71a2c">IsInt32</a> () const </td></tr>
<tr class="separator:a01e1db51c65b2feace248b7acbf71a2c inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a783c89631bac4ef3c4b909f40cc2b8d8 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a783c89631bac4ef3c4b909f40cc2b8d8">IsUint32</a> () const </td></tr>
<tr class="separator:a783c89631bac4ef3c4b909f40cc2b8d8 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8bc11fab0aded4a805722ab6df173cae inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a8bc11fab0aded4a805722ab6df173cae">IsDate</a> () const </td></tr>
<tr class="separator:a8bc11fab0aded4a805722ab6df173cae inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe7bc06283e5e66013f2f056a943168b inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#abe7bc06283e5e66013f2f056a943168b">IsBooleanObject</a> () const </td></tr>
<tr class="separator:abe7bc06283e5e66013f2f056a943168b inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5f4aa9504a6d8fc3af9489330179fe14 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a5f4aa9504a6d8fc3af9489330179fe14">IsNumberObject</a> () const </td></tr>
<tr class="separator:a5f4aa9504a6d8fc3af9489330179fe14 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3e0f2727455fd01a39a60b92f77e28e0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a3e0f2727455fd01a39a60b92f77e28e0">IsStringObject</a> () const </td></tr>
<tr class="separator:a3e0f2727455fd01a39a60b92f77e28e0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a867baa94cb8f1069452359e6cef6751e inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a867baa94cb8f1069452359e6cef6751e">IsSymbolObject</a> () const </td></tr>
<tr class="separator:a867baa94cb8f1069452359e6cef6751e inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a579fb52e893cdc24f8b77e5acc77d06d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a579fb52e893cdc24f8b77e5acc77d06d">IsNativeError</a> () const </td></tr>
<tr class="separator:a579fb52e893cdc24f8b77e5acc77d06d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae41e43486937d6122c297a0d43ac0b8 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aae41e43486937d6122c297a0d43ac0b8">IsRegExp</a> () const </td></tr>
<tr class="separator:aae41e43486937d6122c297a0d43ac0b8 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a65f9dad740f2468b44dc16349611c351 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a65f9dad740f2468b44dc16349611c351">IsArrayBuffer</a> () const </td></tr>
<tr class="separator:a65f9dad740f2468b44dc16349611c351 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad54475d15b7e6b6e17fc80fb4570cdf2 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ad54475d15b7e6b6e17fc80fb4570cdf2">IsArrayBufferView</a> () const </td></tr>
<tr class="separator:ad54475d15b7e6b6e17fc80fb4570cdf2 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2f2f6c39f14a39fbb5b43577125dfe4 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ac2f2f6c39f14a39fbb5b43577125dfe4">IsTypedArray</a> () const </td></tr>
<tr class="separator:ac2f2f6c39f14a39fbb5b43577125dfe4 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acbe2cd9c9cce96ee498677ba37c8466d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#acbe2cd9c9cce96ee498677ba37c8466d">IsUint8Array</a> () const </td></tr>
<tr class="separator:acbe2cd9c9cce96ee498677ba37c8466d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad3cb464ab5ef0215bd2cbdd4eb2b7e3d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ad3cb464ab5ef0215bd2cbdd4eb2b7e3d">IsUint8ClampedArray</a> () const </td></tr>
<tr class="separator:ad3cb464ab5ef0215bd2cbdd4eb2b7e3d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10a88a2794271dfcd9c3abd565e8f28a inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a10a88a2794271dfcd9c3abd565e8f28a">IsInt8Array</a> () const </td></tr>
<tr class="separator:a10a88a2794271dfcd9c3abd565e8f28a inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a45fabf58b241f5de3086a3dd0a09ae inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a4a45fabf58b241f5de3086a3dd0a09ae">IsUint16Array</a> () const </td></tr>
<tr class="separator:a4a45fabf58b241f5de3086a3dd0a09ae inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a928c586639dd75ae4efdaa66b1fc4d50 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a928c586639dd75ae4efdaa66b1fc4d50">IsInt16Array</a> () const </td></tr>
<tr class="separator:a928c586639dd75ae4efdaa66b1fc4d50 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e39229dc74d534835cf4ceba10676f4 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a5e39229dc74d534835cf4ceba10676f4">IsUint32Array</a> () const </td></tr>
<tr class="separator:a5e39229dc74d534835cf4ceba10676f4 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a48eac78a49c8b42d9f8cf05c514b3750 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a48eac78a49c8b42d9f8cf05c514b3750">IsInt32Array</a> () const </td></tr>
<tr class="separator:a48eac78a49c8b42d9f8cf05c514b3750 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4effc7ca1a221dd8c1e23c0f28145ef0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a4effc7ca1a221dd8c1e23c0f28145ef0">IsFloat32Array</a> () const </td></tr>
<tr class="separator:a4effc7ca1a221dd8c1e23c0f28145ef0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a293f140b81b0219d1497e937ed948b1e inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a293f140b81b0219d1497e937ed948b1e">IsFloat64Array</a> () const </td></tr>
<tr class="separator:a293f140b81b0219d1497e937ed948b1e inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd20ab51e79658acc405c12dad2260ab inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#afd20ab51e79658acc405c12dad2260ab">IsDataView</a> () const </td></tr>
<tr class="separator:afd20ab51e79658acc405c12dad2260ab inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73d653dc4a4999ce7258b40a4d8a1510 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73d653dc4a4999ce7258b40a4d8a1510"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_boolean.html">Boolean</a> > </td><td class="memItemRight" valign="bottom"><b>ToBoolean</b> () const </td></tr>
<tr class="separator:a73d653dc4a4999ce7258b40a4d8a1510 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2706d2c0cf684a5179e76e8e404b3a5d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2706d2c0cf684a5179e76e8e404b3a5d"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_number.html">Number</a> > </td><td class="memItemRight" valign="bottom"><b>ToNumber</b> () const </td></tr>
<tr class="separator:a2706d2c0cf684a5179e76e8e404b3a5d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef5739280886eb7a98ae0e98371dae39 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef5739280886eb7a98ae0e98371dae39"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_string.html">String</a> > </td><td class="memItemRight" valign="bottom"><b>ToString</b> () const </td></tr>
<tr class="separator:aef5739280886eb7a98ae0e98371dae39 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acff61b07d724079dc3a90d3e3fd57cb3 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acff61b07d724079dc3a90d3e3fd57cb3"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_string.html">String</a> > </td><td class="memItemRight" valign="bottom"><b>ToDetailString</b> () const </td></tr>
<tr class="separator:acff61b07d724079dc3a90d3e3fd57cb3 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af40feaf010e829f2cdb787eb975b941d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af40feaf010e829f2cdb787eb975b941d"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_object.html">Object</a> > </td><td class="memItemRight" valign="bottom"><b>ToObject</b> () const </td></tr>
<tr class="separator:af40feaf010e829f2cdb787eb975b941d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3941f80b54b0707c6153657cc688ac93 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3941f80b54b0707c6153657cc688ac93"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_integer.html">Integer</a> > </td><td class="memItemRight" valign="bottom"><b>ToInteger</b> () const </td></tr>
<tr class="separator:a3941f80b54b0707c6153657cc688ac93 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aed71590ec8bd5ef7972d7a0d844b2cd7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed71590ec8bd5ef7972d7a0d844b2cd7"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_uint32.html">Uint32</a> > </td><td class="memItemRight" valign="bottom"><b>ToUint32</b> () const </td></tr>
<tr class="separator:aed71590ec8bd5ef7972d7a0d844b2cd7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adf5d2c0c0bf58d60f2401d8437df26b0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf5d2c0c0bf58d60f2401d8437df26b0"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_int32.html">Int32</a> > </td><td class="memItemRight" valign="bottom"><b>ToInt32</b> () const </td></tr>
<tr class="separator:adf5d2c0c0bf58d60f2401d8437df26b0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae810be0ae81a87f677592d0176daac48 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_uint32.html">Uint32</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ae810be0ae81a87f677592d0176daac48">ToArrayIndex</a> () const </td></tr>
<tr class="separator:ae810be0ae81a87f677592d0176daac48 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a392d60e0ab58b5b13c0ac1e5b4b9f04b inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a392d60e0ab58b5b13c0ac1e5b4b9f04b"></a>
bool </td><td class="memItemRight" valign="bottom"><b>BooleanValue</b> () const </td></tr>
<tr class="separator:a392d60e0ab58b5b13c0ac1e5b4b9f04b inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4634d525bae654cdc50c398bfaee11aa inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4634d525bae654cdc50c398bfaee11aa"></a>
double </td><td class="memItemRight" valign="bottom"><b>NumberValue</b> () const </td></tr>
<tr class="separator:a4634d525bae654cdc50c398bfaee11aa inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac61c74a94dea10f48a64f5906b6dd43d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac61c74a94dea10f48a64f5906b6dd43d"></a>
int64_t </td><td class="memItemRight" valign="bottom"><b>IntegerValue</b> () const </td></tr>
<tr class="separator:ac61c74a94dea10f48a64f5906b6dd43d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af25557359e6bb79436ed60df18703d66 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af25557359e6bb79436ed60df18703d66"></a>
uint32_t </td><td class="memItemRight" valign="bottom"><b>Uint32Value</b> () const </td></tr>
<tr class="separator:af25557359e6bb79436ed60df18703d66 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24daae9d99d02ff2e24b60287dcd4d95 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24daae9d99d02ff2e24b60287dcd4d95"></a>
int32_t </td><td class="memItemRight" valign="bottom"><b>Int32Value</b> () const </td></tr>
<tr class="separator:a24daae9d99d02ff2e24b60287dcd4d95 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adc2a7a92a120675bbd4c992163a20869 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#adc2a7a92a120675bbd4c992163a20869">Equals</a> (<a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_value.html">Value</a> > that) const </td></tr>
<tr class="separator:adc2a7a92a120675bbd4c992163a20869 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb564818715b818957adc97716a076ba inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb564818715b818957adc97716a076ba"></a>
bool </td><td class="memItemRight" valign="bottom"><b>StrictEquals</b> (<a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_value.html">Value</a> > that) const </td></tr>
<tr class="separator:abb564818715b818957adc97716a076ba inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7e49ca617f5d1773a81bae18a8062084 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e49ca617f5d1773a81bae18a8062084"></a>
bool </td><td class="memItemRight" valign="bottom"><b>SameValue</b> (<a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_value.html">Value</a> > that) const </td></tr>
<tr class="separator:a7e49ca617f5d1773a81bae18a8062084 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2142bb3ec6527633c4f9133e80cdc19 inherit pub_methods_classv8_1_1_value"><td class="memTemplParams" colspan="2"><a class="anchor" id="ac2142bb3ec6527633c4f9133e80cdc19"></a>
template<class T > </td></tr>
<tr class="memitem:ac2142bb3ec6527633c4f9133e80cdc19 inherit pub_methods_classv8_1_1_value"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classv8_1_1_value.html">Value</a> * </td><td class="memTemplItemRight" valign="bottom"><b>Cast</b> (T *value)</td></tr>
<tr class="separator:ac2142bb3ec6527633c4f9133e80cdc19 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ade49000b88ac4ae8ea3c13cf10067132"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade49000b88ac4ae8ea3c13cf10067132"></a>
static V8_INLINE <a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_boolean.html">Boolean</a> > </td><td class="memItemRight" valign="bottom"><b>New</b> (bool value)</td></tr>
<tr class="separator:ade49000b88ac4ae8ea3c13cf10067132"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_classv8_1_1_value"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classv8_1_1_value')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classv8_1_1_value.html">v8::Value</a></td></tr>
<tr class="memitem:ae5aa9b54ebed55819c3a4b2a3eb5fe12 inherit pub_static_methods_classv8_1_1_value"><td class="memTemplParams" colspan="2"><a class="anchor" id="ae5aa9b54ebed55819c3a4b2a3eb5fe12"></a>
template<class T > </td></tr>
<tr class="memitem:ae5aa9b54ebed55819c3a4b2a3eb5fe12 inherit pub_static_methods_classv8_1_1_value"><td class="memTemplItemLeft" align="right" valign="top">static V8_INLINE <a class="el" href="classv8_1_1_value.html">Value</a> * </td><td class="memTemplItemRight" valign="bottom"><b>Cast</b> (T *value)</td></tr>
<tr class="separator:ae5aa9b54ebed55819c3a4b2a3eb5fe12 inherit pub_static_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A primitive boolean value (ECMA-262, 4.3.14). Either the true or false value. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>deps/v8/include/<a class="el" href="v8_8h_source.html">v8.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:45:38 for V8 API Reference Guide for node.js v0.11.10 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| Java |
ROLES = {
-- WORRIER: Close-combat specialist
worrier = {
name = "Worrier",
description = "A powerful fighter who might be\na bit too kind for their own good.",
level_cap = 20,
hp = 24,
hp_growth = 0.52,
mp = 11,
mp_growth = 0.32,
str = 18,
int = 9,
dex = 12,
con = 13,
exp_to_2 = 4,
exp_modifier = 0.92,
pts_per_lv = 2,
spellbooks = { SPBOOKS.divine },
spell_lv_table = {
0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3
},
skillsets = { "Alchemy", "Pugilism" },
skill_lv_table = {
1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5
},
special = false
}
}
--[[
[ROLES]
Roles represent the different possible jobs, classes, etc. available to your
players. Each role can have different base statistics, growth rates,
spellbooks, and skillsets.
--DETAILS--
* name
Represents the role's name, and how it is referred to in-game
* description
How the role is described in flavor text
* level_cap
The maximum level this role can reach
* hp, mp
The level 1 values for this class' health and mana pools
* hp_growth, mp_growth
The modifiers that increase health and mana every levelup. The default in
actors.lua for the formula is:
base pool + ((base pool * base pool growth) * (level - 1))
* str, int, dex, con
The initial values for each of the base statistics. These do not grow
automatically like health or mana, but instead are raised manually by the
player with stat points.
* exp_to_2
The amount of experience that would be needed to reach level 2. This is
used in algorithms to determine exp to next level
* exp_modifier
Used with exp_to_2 and the character's level to determine the exp needed
to reach the next level
* pts_per_lv
The amount of stat points the character obtains every level that can
be spent raising statistics.
* spellbooks
Table of spellbooks available to this role. This role will have access to
all spells in these spellbooks of their current spell level, unless they are
one of the spell's restricted roles.
* spell_lv_table
Table that represents a role's spell level at a given character level.
Characters can only cast spells at a level at or below their spell level,
and this also modifies their competency with spells in general. Make sure
that this table is as long as the role's level cap.
* skillsets
Table of skillsets available to this role. This role will be able to use
any skills in these skillsets of their current skill level, unless they are
one of the skill's restricted roles.
* skill_lv_table
Table that represents a role's skill level at a given character level.
Characters can only use skills at a level at or below their skill level,
and this also modifies their competency with skills in general. Make sure
that this table is as long as the role's level cap.
* special
Boolean flag that represents whether this role is restricted during
character creation. Useful for "prestige" roles, or those you want to be
unique to a character.
--]]
| Java |
/**
* @namespace http
*
* The C<http> namespace groups functions and classes used while making
* HTTP Requests.
*
*/
ECMAScript.Extend('http', function (ecma) {
// Intentionally private
var _documentLocation = null
function _getDocumentLocation () {
if (!_documentLocation) _documentLocation = new ecma.http.Location();
return _documentLocation;
}
/**
* @constant HTTP_STATUS_NAMES
* HTTP/1.1 Status Code Definitions
*
* Taken from, RFC 2616 Section 10:
* L<http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html>
*
* These names are used in conjuction with L<ecma.http.Request> for
* indicating callback functions. The name is prepended with C<on> such
* that
* onMethodNotAllowed
* corresponds to the callback triggered when a 405 status is received.
*
# Names
*
* 100 Continue
* 101 SwitchingProtocols
* 200 Ok
* 201 Created
* 202 Accepted
* 203 NonAuthoritativeInformation
* 204 NoContent
* 205 ResetContent
* 206 PartialContent
* 300 MultipleChoices
* 301 MovedPermanently
* 302 Found
* 303 SeeOther
* 304 NotModified
* 305 UseProxy
* 306 Unused
* 307 TemporaryRedirect
* 400 BadRequest
* 401 Unauthorized
* 402 PaymentRequired
* 403 Forbidden
* 404 NotFound
* 405 MethodNotAllowed
* 406 NotAcceptable
* 407 ProxyAuthenticationRequired
* 408 RequestTimeout
* 409 Conflict
* 410 Gone
* 411 LengthRequired
* 412 PreconditionFailed
* 413 RequestEntityTooLarge
* 414 RequestURITooLong
* 415 UnsupportedMediaType
* 416 RequestedRangeNotSatisfiable
* 417 ExpectationFailed
* 500 InternalServerError
* 501 NotImplemented
* 502 BadGateway
* 503 ServiceUnavailable
* 504 GatewayTimeout
* 505 HTTPVersionNotSupported
*/
this.HTTP_STATUS_NAMES = {
100: 'Continue',
101: 'SwitchingProtocols',
200: 'Ok',
201: 'Created',
202: 'Accepted',
203: 'NonAuthoritativeInformation',
204: 'NoContent',
205: 'ResetContent',
206: 'PartialContent',
300: 'MultipleChoices',
301: 'MovedPermanently',
302: 'Found',
303: 'SeeOther',
304: 'NotModified',
305: 'UseProxy',
306: 'Unused',
307: 'TemporaryRedirect',
400: 'BadRequest',
401: 'Unauthorized',
402: 'PaymentRequired',
403: 'Forbidden',
404: 'NotFound',
405: 'MethodNotAllowed',
406: 'NotAcceptable',
407: 'ProxyAuthenticationRequired',
408: 'RequestTimeout',
409: 'Conflict',
410: 'Gone',
411: 'LengthRequired',
412: 'PreconditionFailed',
413: 'RequestEntityTooLarge',
414: 'RequestURITooLong',
415: 'UnsupportedMediaType',
416: 'RequestedRangeNotSatisfiable',
417: 'ExpectationFailed',
500: 'InternalServerError',
501: 'NotImplemented',
502: 'BadGateway',
503: 'ServiceUnavailable',
504: 'GatewayTimeout',
505: 'HTTPVersionNotSupported'
};
/**
* @function isSameOrigin
*
* Compare originating servers.
*
* var bool = ecma.http.isSameOrigin(uri);
* var bool = ecma.http.isSameOrigin(uri, uri);
*
* Is the resource located on the server at the port using the same protocol
* which served the document.
*
* var bool = ecma.http.isSameOrigin('http://www.example.com');
*
* Are the two URI's served from the same origin
*
* var bool = ecma.http.isSameOrigin('http://www.example.com', 'https://www.example.com');
*
*/
this.isSameOrigin = function(uri1, uri2) {
if (!(uri1)) return false;
var loc1 = uri1 instanceof ecma.http.Location
? uri1 : new ecma.http.Location(uri1);
var loc2 = uri2 || _getDocumentLocation();
return loc1.isSameOrigin(loc2);
};
});
| Java |
#//////////////////////////////////////////////////////////////////////////////
# -- clMAGMA (version 1.0.0) --
# Univ. of Tennessee, Knoxville
# Univ. of California, Berkeley
# Univ. of Colorado, Denver
# April 2012
#//////////////////////////////////////////////////////////////////////////////
MAGMA_DIR = .
include ./Makefile.internal
.PHONY: lib
all: lib test
lib: libmagma libmagmablas
libmagma:
( cd control && $(MAKE) )
( cd src && $(MAKE) )
( cd interface_opencl && $(MAKE) ) # last, clcompiler depends on libmagma
libmagmablas:
( cd magmablas && $(MAKE) )
#lapacktest:
# ( cd testing/lin && $(MAKE) )
test: lib
( cd testing && $(MAKE) )
clean:
( cd control && $(MAKE) clean )
( cd interface_opencl && $(MAKE) clean )
( cd src && $(MAKE) clean )
( cd magmablas && $(MAKE) clean )
( cd testing && $(MAKE) clean )
#( cd testing/lin && $(MAKE) clean )
-rm -f $(LIBMAGMA) $(LIBMAGMABLAS)
cleangen:
( cd control && $(MAKE) cleangen )
( cd interface_opencl && $(MAKE) cleangen )
( cd src && $(MAKE) cleangen )
( cd magmablas && $(MAKE) cleangen )
( cd testing && $(MAKE) cleangen )
cleanall:
( cd control && $(MAKE) cleanall )
( cd interface_opencl && $(MAKE) cleanall )
( cd src && $(MAKE) cleanall )
( cd magmablas && $(MAKE) cleanall )
( cd testing && $(MAKE) cleanall )
#( cd testing/lin && $(MAKE) cleanall )
$(MAKE) cleanall2
rm -f core.*
# cleanall2 is a dummy rule to run cleangen at the *end* of make cleanall, so
# .Makefile.gen files aren't deleted and immediately re-created. see Makefile.gen
cleanall2:
@echo
dir:
mkdir -p $(prefix)
mkdir -p $(prefix)/include
mkdir -p $(prefix)/lib
mkdir -p $(prefix)/lib/pkgconfig
install: lib dir
# MAGMA
cp $(MAGMA_DIR)/include/*.h $(prefix)/include
cp $(LIBMAGMA) $(prefix)/lib
cp $(LIBMAGMABLAS) $(prefix)/lib
cat $(MAGMA_DIR)/lib/pkgconfig/magma.pc | \
sed -e s:\__PREFIX:"$(prefix)": | \
sed -e s:\__LIBEXT:"$(LIBEXT)": \
> $(prefix)/lib/pkgconfig/magma.pc
| Java |
<?php
namespace Anax\Questions;
/**
* A controller for question-related pages
*
*/
class QuestionsController implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectable;
public function initialize()
{
$this->questions = new \Anax\Questions\Question();
$this->questions->setDI($this->di);
$this->textFilter = new \Anax\Utils\CTextFilter();
$this->comments = new \Anax\Questions\Comments();
$this->comments->setDI($this->di);
}
public function listAction($tagId = null)
{
$all = $this->questions->getQuestionsWithAuthor($tagId);
$title = ($tagId) ? $this->questions->getTagName($tagId) : "Senaste frågorna";
foreach ($all as $q) {
$q->tags = $this->questions->getTagsForQuestion($q->ID);
}
$this->theme->setTitle("List all questions");
$this->views->add('question/list', [
'questions' => $all,
'title' => $title
]);
$this->views->add('question/list-sidebar', [], 'sidebar');
}
public function viewAction($id = null) {
$question = $this->questions->findQuestionWithAuthor($id);
$qComments = $this->comments->getCommentsForQuestion($id);
$tags = $this->questions->getTagsForQuestion($id);
$answers = $this->questions->getAnswersForQuestions($id);
foreach ($qComments as $c) {
$c->content = $this->textFilter->doFilter($c->content, 'markdown');
}
foreach($answers AS $a) {
$a->comments = $this->comments->getCommentsForAnswer($a->ID);
$a->content = $this->textFilter->doFilter($a->content, 'markdown');
foreach ($a->comments as $c) {
$c->content = $this->textFilter->doFilter($c->content, 'markdown');
}
}
$question->content = $this->textFilter->doFilter($question->content, 'markdown');
$this->theme->setTitle("Fråga");
$this->views->add('question/view', [
'question' => $question,
'questionComments' => $qComments,
"tags" => $tags,
'answers' => $answers,
]);
}
public function newAction() {
$tags = $this->questions->getTags();
$this->theme->setTitle("Skapa ny fråga");
$this->views->add('question/create', ["tags" => $tags], 'main');
$this->views->add('question/create-sidebar', [], 'sidebar');
}
public function createAction() {
$tags = array();
$dbTagCount = $this->questions->getTagCount();
for ($i=1; $i <= $dbTagCount; $i++) {
$tag = $this->request->getPost('tag'.$i);
if($tag) {
$tags[] = $i;
}
}
$question = array(
"title" => $this->request->getPost('title'),
"content" => $this->request->getPost('content'),
"author" => $this->session->get("user")->id
);
if($this->questions->createQuestion($question, $tags)) {
$url = $this->url->create('questions/list');
$this->response->redirect($url);
} else {
die("Ett fel uppstod. Var god försök att lägga till din fråga igen!");
}
}
public function tagsAction() {
$tags = $this->questions->getTags();
$this->theme->setTitle("Taggar");
$this->views->add('question/tags', ["tags" => $tags]);
}
public function answerAction() {
$answer = array();
$answer["author"] = $this->session->get("user")->id;
$answer["content"] = $this->request->getPost('content');
$answer["question"] = $this->request->getPost('questionId');
$this->questions->createAnswer($answer);
$url = $this->url->create('questions/view/'.$answer["question"]);
$this->response->redirect($url);
}
public function commentAction() {
$type = addslashes($this->request->getPost('type'));
$id = $this->request->getPost('ID');
$question = $type == 'question' ? $id : 0;
$answer = ($type == 'answer') ? $id : 0;
$author = $this->session->get('user')->id;
$now = date("Y-m-d H:i:s");
$comment = array(
"content" => addslashes($this->request->getPost('content')),
"question" => $question,
"answer" => $answer,
"author" => $author,
"created" => $now
);
$this->comments->create($comment);
$questionId = $this->request->getPost('questionId');
$url = $this->url->create('questions/view/'.$questionId);
$this->response->redirect($url);
}
}
?> | Java |
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
class ReservationExtension < Radiant::Extension
version "0.1"
description "Small Reservation System"
url "http://github.com/simerom/radiant-reservation-extension"
define_routes do |map|
map.namespace :admin, :member => { :remove => :get } do |admin|
admin.resources :reservations, :reservation_items, :reservation_subscribers
end
end
def activate
admin.tabs.add "Reservations", "/admin/reservations", :after => "Layouts", :visibility => [:all]
end
def deactivate
admin.tabs.remove "Reservations"
end
end
| Java |
//
// DZTextFieldStyle.h
// DZStyle
//
// Created by baidu on 15/7/23.
// Copyright (c) 2015年 dzpqzb. All rights reserved.
//
#import "DZViewStyle.h"
#import "DZTextStyle.h"
#define DZTextFiledStyleMake(initCode) DZStyleMake(initCode, DZTextFieldStyle)
#define IMP_SHARE_TEXTFIELD_STYLE(name , initCode) IMP_SHARE_STYLE(name , initCode, DZTextFieldStyle)
#define EXTERN_SHARE_TEXTFIELD_STYLE(name) EXTERN_SHARE_STYLE(name, DZTextFieldStyle);
@interface DZTextFieldStyle : DZViewStyle
@property (nonatomic, copy) DZTextStyle* textStyle;
@end
| Java |
<?php
/**
* Routes - all standard routes are defined here.
*/
/** Create alias for Router. */
use Core\Router;
use Helpers\Hooks;
/* Force user to login unless running cron */
if(!isset($_SESSION['user']) && $_SERVER['REDIRECT_URL'] != "/reminders/run") {
$c = new Controllers\Users();
$c->login();
exit();
}
/** Define routes. */
// Router::any('', 'Controllers\FoodProducts@index');
Router::any('', function() {
header("Location: /food-products");
exit();
});
Router::any('food-products', 'Controllers\FoodProducts@index');
Router::any('food-products/add', 'Controllers\FoodProducts@addProduct');
Router::any('food-products/delete', 'Controllers\FoodProducts@deleteProduct');
Router::any('food-products/view', 'Controllers\FoodProducts@viewProduct');
Router::any('food-products/edit', 'Controllers\FoodProducts@editProduct');
Router::any('food-products/addIngredient', 'Controllers\FoodProducts@addIngredient');
Router::any('food-products/editIngredient', 'Controllers\FoodProducts@editIngredient');
Router::any('food-products/deleteIngredient', 'Controllers\FoodProducts@deleteIngredient');
Router::any('employees', 'Controllers\Employees@index');
Router::any('employees/view', 'Controllers\Employees@view');
Router::any('employees/add', 'Controllers\Employees@add');
Router::any('employees/add-new-start', 'Controllers\Employees@addNewStart');
Router::any('employees/edit', 'Controllers\Employees@edit');
Router::any('employees/delete', 'Controllers\Employees@delete');
Router::any('employees/qualification/edit', 'Controllers\Employees@editQualification');
Router::any('employees/qualification/add', 'Controllers\Employees@addQualification');
Router::any('employees/qualification/delete','Controllers\Employees@deleteQualification');
Router::any('employees/new-start-item/complete','Controllers\Employees@markNewStartComplete');
Router::any('employees/new-start-item/incomplete','Controllers\Employees@markNewStartIncomplete');
Router::any('employees/new-start-item/delete','Controllers\Employees@deleteNewStart');
Router::any('employees/new-start-item/edit','Controllers\Employees@editNewStart');
Router::any('health-and-safety','Controllers\HealthSafety@index');
Router::any('health-and-safety/add','Controllers\HealthSafety@add');
Router::any('health-and-safety/edit','Controllers\HealthSafety@edit');
Router::any('health-and-safety/delete','Controllers\HealthSafety@delete');
Router::any('health-and-safety/viewdocs','Controllers\HealthSafety@viewdocs');
Router::any('health-and-safety/uploadDocument','Controllers\HealthSafety@uploadDocument');
Router::any('health-and-safety/deleteDocument','Controllers\HealthSafety@deleteDocument');
Router::any('operating-procedures','Controllers\OperatingProcedures@index');
Router::any('operating-procedures/edit','Controllers\OperatingProcedures@edit');
Router::any('operating-procedures/view','Controllers\OperatingProcedures@view');
Router::any('operating-procedures/add','Controllers\OperatingProcedures@add');
Router::any('operating-procedures/delete','Controllers\OperatingProcedures@delete');
Router::any('operating-procedures/print','Controllers\OperatingProcedures@print_pdf');
Router::any('operating-procedures/email','Controllers\OperatingProcedures@email');
Router::any('monitor','Controllers\Monitor@index');
Router::any('reminders/run', 'Controllers\Reminders@reminders');
Router::any('/health-and-safety/categories/manage', 'Controllers\HealthSafety@manageCategories');
Router::any('/health-and-safety/categories/add', 'Controllers\HealthSafety@addCategory');
Router::any('/health-and-safety/categories/delete', 'Controllers\HealthSafety@deleteCategory');
Router::any('/health-and-safety/categories/edit', 'Controllers\HealthSafety@editCategory');
Router::any('/users', 'Controllers\Users@index');
Router::any('/users/add', 'Controllers\Users@add');
Router::any('/users/edit', 'Controllers\Users@edit');
Router::any('/users/delete', 'Controllers\Users@delete');
Router::any('/users/delete', 'Controllers\Users@delete');
Router::any('/users/logout', 'Controllers\Users@logout');
/** Module routes. */
$hooks = Hooks::get();
$hooks->run('routes');
/** If no route found. */
Router::error('Core\Error@index');
/** Turn on old style routing. */
Router::$fallback = false;
/** Execute matched routes. */
Router::dispatch();
| Java |
// Copyright Johannes Falk
// example for directed percolation
// one can choose the probability in the main
// critical-value = 0.68
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include "../xcbwin.h"
double get_rand() {
return static_cast<double>(rand()) / RAND_MAX;
}
// this function does the percolation steps
// since google-c++-style does not allow references
// for out-parameters, we use a pointer
void doPercolationStep(vector<int>* sites, const double PROP, int time) {
int size = sites->size();
int even = time%2;
for (int i = even; i < size; i += 2) {
if (sites->at(i)) {
if (get_rand() < PROP) sites->at((i+size-1)%size) = 1;
if (get_rand() < PROP) sites->at((i+1)%size) = 1;
sites->at(i) = 0;
}
}
}
int main() {
srand(time(NULL)); // initialize the random-generator
const int HEIGHT = 600;
const int WIDTH = 800;
// modify here
const double PROP = 0.68; // probability for bond to be open
Xcbwin Window;
vector<int> sites(WIDTH, 1);
Window.Open(WIDTH, HEIGHT);
for (int y = 0; y < HEIGHT; ++y) {
for (int x = 0; x < WIDTH; ++x) {
if (sites[x]) {
Window.Black();
Window.DrawPoint(x, y);
}
}
doPercolationStep(&sites, PROP, y);
}
Window.Screenshot();
Window.WaitForKeypress();
}
| Java |
package ee.shy.cli;
import ee.shy.Builder;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Class for building help text with preset format
*/
public class HelptextBuilder implements Builder<String> {
/**
* Data structure that contains command's argument and its corresponding description.
*/
private final Map<String, String> commandWithArgs = new LinkedHashMap<>();
/**
* List that provides information about executing the command without arguments.
*/
private final List<String> commandWithoutArgs = new ArrayList<>();
/**
* List containing additional information about the command.
*/
private final List<String> descriptions = new ArrayList<>();
public HelptextBuilder addWithArgs(String command, String description) {
commandWithArgs.put(command, description);
return this;
}
public HelptextBuilder addWithoutArgs(String description) {
commandWithoutArgs.add(description);
return this;
}
public HelptextBuilder addDescription(String description) {
descriptions.add(description);
return this;
}
/**
* Create a StringBuilder object to create a formatted help text.
*
* @return formatted help text
*/
@Override
public String create() {
StringBuilder helptext = new StringBuilder();
if (!commandWithArgs.isEmpty()) {
helptext.append("Usage with arguments:\n");
for (Map.Entry<String, String> entry : commandWithArgs.entrySet()) {
helptext.append("\t").append(entry.getKey()).append("\n");
helptext.append("\t\t- ").append(entry.getValue()).append("\n");
}
helptext.append("\n");
}
if (!commandWithoutArgs.isEmpty()) {
helptext.append("Usage without arguments:\n");
for (String commandWithoutArg : commandWithoutArgs) {
helptext.append("\t").append(commandWithoutArg).append("\n");
}
helptext.append("\n");
}
if (!descriptions.isEmpty()) {
helptext.append("Description:\n");
for (String description : descriptions) {
helptext.append("\t").append(description).append("\n");
}
helptext.append("\n");
}
return helptext.toString();
}
}
| Java |
package org.asciicerebrum.neocortexengine.domain.events;
/**
*
* @author species8472
*/
public enum EventType {
/**
* Event thrown directly after the initialization of a new combat round.
*/
COMBATROUND_POSTINIT,
/**
* Event thrown before the initialization of a new combat round.
*/
COMBATROUND_PREINIT,
/**
* The event of gaining a new condition.
*/
CONDITION_GAIN,
/**
* The event of losing a condition.
*/
CONDITION_LOSE,
/**
* The event of applying the inflicted damage.
*/
DAMAGE_APPLICATION,
/**
* The event of inflicting damage.
*/
DAMAGE_INFLICTED,
/**
* The event of some character ending its turn.
*/
END_TURN_END,
/**
* The event of some character starting its turn after the end turn of the
* previous character.
*/
END_TURN_START,
/**
* The event thrown when the single attack hits normally.
*/
SINGLE_ATTACK_HIT,
/**
* The event thrown when the single attack hits critically.
*/
SINGLE_ATTACK_HIT_CRITICAL,
/**
* The event thrown when the single attack misses.
*/
SINGLE_ATTACK_MISS,
/**
* The event thrown before a single attack is performed.
*/
SINGLE_ATTACK_PRE,
}
| Java |
---
title: Bible now available for Mobile Phones
author: TQuizzle
layout: post
permalink: /archive/bible-now-available-for-mobile-phones/
bitly_url:
- http://bit.ly/11zS2uE
bitly_hash:
- 11zS2uE
bitly_long_url:
- http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/
categories:
- Asides
---
Hopefully this spreads to the US allowing more and more Christians the ability to always take the “Good Book” with them.
> South African Christians seeking a quick spiritual boost will be able to download the entire bible on to their mobile telephones phones from Wednesday as part of a drive to modernize the scriptures.
<span class="bqcite"><a rel="nofollow" target="_blank" href="http://go.reuters.com/newsArticle.jhtml?type=oddlyEnoughNews&storyID=13547291&src=rss/oddlyEnoughNews">Reuters</a></span>
<div class="sharedaddy sd-sharing-enabled">
<div class="robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing">
<h3 class="sd-title">
Share this:
</h3>
<div class="sd-content">
<ul>
<li class="share-twitter">
<a rel="nofollow" class="share-twitter sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=twitter" title="Click to share on Twitter" id="sharing-twitter-22"><span>Twitter</span></a>
</li>
<li class="share-google-plus-1">
<a rel="nofollow" class="share-google-plus-1 sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=google-plus-1" title="Click to share on Google+" id="sharing-google-22"><span>Google</span></a>
</li>
<li class="share-facebook">
<a rel="nofollow" class="share-facebook sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=facebook" title="Share on Facebook" id="sharing-facebook-22"><span>Facebook</span></a>
</li>
<li class="share-custom">
<a rel="nofollow" class="share-custom sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=custom-1371173110" title="Click to share"><span style="background-image:url("http://www.repost.us/wp-content/themes/repost-beta/repost-site/favicon.ico");">repost</span></a>
</li>
<li>
<a href="#" class="sharing-anchor sd-button share-more"><span>More</span></a>
</li>
<li class="share-end">
</li>
</ul>
<div class="sharing-hidden">
<div class="inner" style="display: none;">
<ul>
<li class="share-linkedin">
<a rel="nofollow" class="share-linkedin sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=linkedin" title="Click to share on LinkedIn" id="sharing-linkedin-22"><span>LinkedIn</span></a>
</li>
<li class="share-reddit">
<a rel="nofollow" class="share-reddit sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=reddit" title="Click to share on Reddit"><span>Reddit</span></a>
</li>
<li class="share-end">
</li>
<li class="share-digg">
<a rel="nofollow" class="share-digg sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=digg" title="Click to Digg this post"><span>Digg</span></a>
</li>
<li class="share-stumbleupon">
<a rel="nofollow" class="share-stumbleupon sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=stumbleupon" title="Click to share on StumbleUpon"><span>StumbleUpon</span></a>
</li>
<li class="share-end">
</li>
<li class="share-email">
<a rel="nofollow" class="share-email sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/?share=email" title="Click to email this to a friend"><span>Email</span></a>
</li>
<li class="share-print">
<a rel="nofollow" class="share-print sd-button share-icon" href="http://www.tquizzle.com/archive/bible-now-available-for-mobile-phones/" title="Click to print"><span>Print</span></a>
</li>
<li class="share-end">
</li>
<li class="share-end">
</li>
</ul>
</div>
</div>
</div>
</div>
</div> | Java |
package shadows;
import java.util.List;
import java.util.Map;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;
import entities.Camera;
import entities.Entity;
import entities.Light;
import entities.Player;
import models.TexturedModel;
public class ShadowMapMasterRenderer {
private static final int SHADOW_MAP_SIZE = 5200;
private ShadowFrameBuffer shadowFbo;
private ShadowShader shader;
private ShadowBox shadowBox;
private Matrix4f projectionMatrix = new Matrix4f();
private Matrix4f lightViewMatrix = new Matrix4f();
private Matrix4f projectionViewMatrix = new Matrix4f();
private Matrix4f offset = createOffset();
private ShadowMapEntityRenderer entityRenderer;
/**
* Creates instances of the important objects needed for rendering the scene
* to the shadow map. This includes the {@link ShadowBox} which calculates
* the position and size of the "view cuboid", the simple renderer and
* shader program that are used to render objects to the shadow map, and the
* {@link ShadowFrameBuffer} to which the scene is rendered. The size of the
* shadow map is determined here.
*
* @param camera
* - the camera being used in the scene.
*/
public ShadowMapMasterRenderer(Camera camera) {
shader = new ShadowShader();
shadowBox = new ShadowBox(lightViewMatrix, camera);
shadowFbo = new ShadowFrameBuffer(SHADOW_MAP_SIZE, SHADOW_MAP_SIZE);
entityRenderer = new ShadowMapEntityRenderer(shader, projectionViewMatrix);
}
/**
* Carries out the shadow render pass. This renders the entities to the
* shadow map. First the shadow box is updated to calculate the size and
* position of the "view cuboid". The light direction is assumed to be
* "-lightPosition" which will be fairly accurate assuming that the light is
* very far from the scene. It then prepares to render, renders the entities
* to the shadow map, and finishes rendering.
*
* @param entities
* - the lists of entities to be rendered. Each list is
* associated with the {@link TexturedModel} that all of the
* entities in that list use.
* @param sun
* - the light acting as the sun in the scene.
*/
public void render(Map<TexturedModel, List<Entity>> entities, Light sun) {
shadowBox.update();
Vector3f sunPosition = sun.getPosition();
Vector3f lightDirection = new Vector3f(-sunPosition.x, -sunPosition.y, -sunPosition.z);
prepare(lightDirection, shadowBox);
entityRenderer.render(entities);
finish();
}
/**
* This biased projection-view matrix is used to convert fragments into
* "shadow map space" when rendering the main render pass. It converts a
* world space position into a 2D coordinate on the shadow map. This is
* needed for the second part of shadow mapping.
*
* @return The to-shadow-map-space matrix.
*/
public Matrix4f getToShadowMapSpaceMatrix() {
return Matrix4f.mul(offset, projectionViewMatrix, null);
}
/**
* Clean up the shader and FBO on closing.
*/
public void cleanUp() {
shader.cleanUp();
shadowFbo.cleanUp();
}
/**
* @return The ID of the shadow map texture. The ID will always stay the
* same, even when the contents of the shadow map texture change
* each frame.
*/
public int getShadowMap() {
return shadowFbo.getShadowMap();
}
/**
* @return The light's "view" matrix.
*/
protected Matrix4f getLightSpaceTransform() {
return lightViewMatrix;
}
/**
* Prepare for the shadow render pass. This first updates the dimensions of
* the orthographic "view cuboid" based on the information that was
* calculated in the {@link SHadowBox} class. The light's "view" matrix is
* also calculated based on the light's direction and the center position of
* the "view cuboid" which was also calculated in the {@link ShadowBox}
* class. These two matrices are multiplied together to create the
* projection-view matrix. This matrix determines the size, position, and
* orientation of the "view cuboid" in the world. This method also binds the
* shadows FBO so that everything rendered after this gets rendered to the
* FBO. It also enables depth testing, and clears any data that is in the
* FBOs depth attachment from last frame. The simple shader program is also
* started.
*
* @param lightDirection
* - the direction of the light rays coming from the sun.
* @param box
* - the shadow box, which contains all the info about the
* "view cuboid".
*/
private void prepare(Vector3f lightDirection, ShadowBox box) {
updateOrthoProjectionMatrix(box.getWidth(), box.getHeight(), box.getLength());
updateLightViewMatrix(lightDirection, box.getCenter());
Matrix4f.mul(projectionMatrix, lightViewMatrix, projectionViewMatrix);
shadowFbo.bindFrameBuffer();
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glClear(GL11.GL_DEPTH_BUFFER_BIT);
shader.start();
}
/**
* Finish the shadow render pass. Stops the shader and unbinds the shadow
* FBO, so everything rendered after this point is rendered to the screen,
* rather than to the shadow FBO.
*/
private void finish() {
shader.stop();
shadowFbo.unbindFrameBuffer();
}
/**
* Updates the "view" matrix of the light. This creates a view matrix which
* will line up the direction of the "view cuboid" with the direction of the
* light. The light itself has no position, so the "view" matrix is centered
* at the center of the "view cuboid". The created view matrix determines
* where and how the "view cuboid" is positioned in the world. The size of
* the view cuboid, however, is determined by the projection matrix.
*
* @param direction
* - the light direction, and therefore the direction that the
* "view cuboid" should be pointing.
* @param center
* - the center of the "view cuboid" in world space.
*/
private void updateLightViewMatrix(Vector3f direction, Vector3f center) {
direction.normalise();
center.negate();
lightViewMatrix.setIdentity();
float pitch = (float) Math.acos(new Vector2f(direction.x, direction.z).length());
Matrix4f.rotate(pitch, new Vector3f(1, 0, 0), lightViewMatrix, lightViewMatrix);
float yaw = (float) Math.toDegrees(((float) Math.atan(direction.x / direction.z)));
yaw = direction.z > 0 ? yaw - 180 : yaw;
Matrix4f.rotate((float) -Math.toRadians(yaw), new Vector3f(0, 1, 0), lightViewMatrix,
lightViewMatrix);
Matrix4f.translate(center, lightViewMatrix, lightViewMatrix);
}
/**
* Creates the orthographic projection matrix. This projection matrix
* basically sets the width, length and height of the "view cuboid", based
* on the values that were calculated in the {@link ShadowBox} class.
*
* @param width
* - shadow box width.
* @param height
* - shadow box height.
* @param length
* - shadow box length.
*/
private void updateOrthoProjectionMatrix(float width, float height, float length) {
projectionMatrix.setIdentity();
projectionMatrix.m00 = 2f / width;
projectionMatrix.m11 = 2f / height;
projectionMatrix.m22 = -2f / length;
projectionMatrix.m33 = 1;
}
/**
* Create the offset for part of the conversion to shadow map space. This
* conversion is necessary to convert from one coordinate system to the
* coordinate system that we can use to sample to shadow map.
*
* @return The offset as a matrix (so that it's easy to apply to other matrices).
*/
private static Matrix4f createOffset() {
Matrix4f offset = new Matrix4f();
offset.translate(new Vector3f(0.5f, 0.5f, 0.5f));
offset.scale(new Vector3f(0.5f, 0.5f, 0.5f));
return offset;
}
}
| Java |
<div ng-controller="lessonCtrl as vm">
<div class="row" style="margin-bottom: 10px">
<div class="col-xs-12">
<progress-bar lessons="vm.lessonSvc.lessons" lesson="vm.lesson"></progress-bar>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<div class="row">
<div class="col-xs-8">
<h3>Headings</h3>
</div>
<div class="col-xs-4">
<nav-list lesson="vm.lesson" lessons="vm.lessonSvc.lessons"></nav-list>
</div>
</div>
<p>
HTML supports headings using tags like <code>h1</code> and <code>h2</code> where <code>h1</code> is a level-1 heading and <code>h2</code> is a level-2 heading.
You can create these headings by adding one or more <code>#</code> symbols before your heading text. The number of <code>#</code> you
use will determine the size of the heading.
</p>
<pre>
<p>
# This is an h1 tag
</p>
<p>
## This is an h2 tag
</p>
</pre>
<h3>Example</h3>
<hr/>
<h1>This is an h1 tag</h1>
<h2>This is an h2 tag</h2>
</div>
<div class="col-sm-4">
<editor text="vm.lesson.text" lesson="vm.lesson"></editor>
</div>
<div class="col-sm-4">
<result text="vm.lesson.text"></result>
</div>
</div>
<md-footer number="vm.state.next"></md-footer>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61916780-1', 'auto');
ga('send', 'pageview');
</script> | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="Craig McClellan" name="author">
<title>Craig McClellan - T398514607721316352 </title>
<link href="/assets/css/style.css" rel="stylesheet">
<link href="/assets/css/highlight.css" rel="stylesheet">
<link rel="stylesheet" href="/custom.css">
<link rel="shortcut icon" href="https://micro.blog/craigmcclellan/favicon.png" type="image/x-icon" />
<link rel="alternate" type="application/rss+xml" title="Craig McClellan" href="http://craigmcclellan.com/feed.xml" />
<link rel="alternate" type="application/json" title="Craig McClellan" href="http://craigmcclellan.com/feed.json" />
<link rel="EditURI" type="application/rsd+xml" href="/rsd.xml" />
<link rel="me" href="https://micro.blog/craigmcclellan" />
<link rel="me" href="https://twitter.com/craigmcclellan" />
<link rel="me" href="https://github.com/craigwmcclellan" />
<link rel="authorization_endpoint" href="https://micro.blog/indieauth/auth" />
<link rel="token_endpoint" href="https://micro.blog/indieauth/token" />
<link rel="micropub" href="https://micro.blog/micropub" />
<link rel="webmention" href="https://micro.blog/webmention" />
<link rel="subscribe" href="https://micro.blog/users/follow" />
</head>
<body>
<nav class="main-nav">
<a class="normal" href="/"> <span class="arrow">←</span> Home</a>
<a href="/archive/">Archive</a>
<a href="/about/">About</a>
<a href="/tools-of-choice/">Tools of Choice</a>
<a class="cta" href="https://micro.blog/craigmcclellan" rel="me">Also on Micro.blog</a>
</nav>
<section id="wrapper">
<article class="h-entry post">
<header>
<h2 class="headline">
<time class="dt-published" datetime="2013-11-07 12:17:41 -0600">
<a class="u-url dates" href="/2013/11/07/t398514607721316352.html">November 7, 2013</a>
</time>
</h2>
</header>
<section class="e-content post-body">
<p>Doctor Who is winning at social media promotion for the 50th anniversary special. <a href="http://t.co/yCVbu9ZcXE">t.co/yCVbu9ZcX…</a> #savetheday</p>
</section>
</article>
<section id="post-meta" class="clearfix">
<a href="/">
<img class="u-photo avatar" src="https://micro.blog/craigmcclellan/avatar.jpg">
<div>
<span class="p-author h-card dark">Craig McClellan</span>
<span><a href="https://micro.blog/craigmcclellan">@craigmcclellan</a></span>
</div>
</a>
</section>
</section>
<footer id="footer">
<section id="wrapper">
<ul>
<li><a href="/feed.xml">RSS</a></li>
<li><a href="/feed.json">JSON Feed</a></li>
<li><a href="https://micro.blog/craigmcclellan" rel="me">Micro.blog</a></li>
<!-- <li><a class="u-email" href="mailto:" rel="me">Email</a></li> -->
</ul>
<form method="get" id="search" action="https://duckduckgo.com/">
<input type="hidden" name="sites" value="http://craigmcclellan.com"/>
<input type="hidden" name="k8" value="#444444"/>
<input type="hidden" name="k9" value="#ee4792"/>
<input type="hidden" name="kt" value="h"/>
<input class="field" type="text" name="q" maxlength="255" placeholder="To search, type and hit Enter…"/>
<input type="submit" value="Search" style="display: none;" />
</form>
</section>
</footer>
</body>
</html>
| Java |
import debounce from 'debounce';
import $ from 'jquery';
const groupElementsByTop = (groups, element) => {
const top = $(element).offset().top;
groups[top] = groups[top] || [];
groups[top].push(element);
return groups;
};
const groupElementsByZero = (groups, element) => {
groups[0] = groups[0] || [];
groups[0].push(element);
return groups;
};
const clearHeight = elements => $(elements).css('height', 'auto');
const getHeight = element => $(element).height();
const applyMaxHeight = (elements) => {
const heights = elements.map(getHeight);
const maxHeight = Math.max.apply(null, heights);
$(elements).height(maxHeight);
};
const equalizeHeights = (elements, groupByTop) => {
// Sort into groups.
const groups = groupByTop ?
elements.reduce(groupElementsByTop, {}) :
elements.reduce(groupElementsByZero, {});
// Convert to arrays.
const groupsAsArray = Object.keys(groups).map((key) => {
return groups[key];
});
// Apply max height.
groupsAsArray.forEach(clearHeight);
groupsAsArray.forEach(applyMaxHeight);
};
$.fn.equalHeight = function ({
groupByTop = false,
resizeTimeout = 20,
updateOnDOMReady = true,
updateOnDOMLoad = false
} = {}) {
// Convert to native array.
const elements = this.toArray();
// Handle resize event.
$(window).on('resize', debounce(() => {
equalizeHeights(elements, groupByTop);
}, resizeTimeout));
// Handle load event.
$(window).on('load', () => {
if (updateOnDOMLoad) {
equalizeHeights(elements, groupByTop);
}
});
// Handle ready event.
$(document).on('ready', () => {
if (updateOnDOMReady) {
equalizeHeights(elements, groupByTop);
}
});
return this;
};
| Java |
toalien-site
============
| Java |
/// <reference path="typings/tsd.d.ts" />
var plugins = {
beautylog: require("beautylog")("os"),
gulp: require("gulp"),
jade: require("gulp-jade"),
util: require("gulp-util"),
vinylFile: require("vinyl-file"),
jsonjade: require("./index.js"),
gulpInspect: require("gulp-inspect")
};
var jadeTemplate = plugins.vinylFile.readSync("./test/test.jade");
var noJadeTemplate = {}
plugins.gulp.task("check1",function(){
var stream = plugins.gulp.src("./test/test.json")
.pipe(plugins.jsonjade(jadeTemplate))
.pipe(plugins.jade({ //let jade do its magic
pretty: true,
basedir: '/'
})).on("error",plugins.util.log)
.pipe(plugins.gulpInspect(true))
.pipe(plugins.gulp.dest("./test/result/"));
return stream;
});
plugins.gulp.task("check2",function(){
var stream = plugins.gulp.src("./test/test.json")
.pipe(plugins.jsonjade(noJadeTemplate));
});
plugins.gulp.task("default",["check1","check2"],function(){
plugins.beautylog.success("Test passed");
});
plugins.gulp.start.apply(plugins.gulp, ['default']); | Java |
#include "mesh_adapt.h"
#include "mesh_adj.h"
#include "mesh_mod.h"
#include "cavity_op.h"
static void find_best_edge_split(mesh* m, split* s, ment e, ment v[2])
{
double mq;
double q;
unsigned ne;
unsigned i;
ment v_[2];
ne = simplex_ndown[e.t][EDGE];
mq = -1;
for (i = 0; i < ne; ++i) {
mesh_down(m, e, EDGE, i, v_);
split_start(s, EDGE, v_, ment_null);
q = split_quality(s);
if (q > mq) {
mq = q;
v[0] = v_[0];
v[1] = v_[1];
}
split_cancel(s);
}
}
static split* the_split;
static void refine_op(mesh* m, ment e)
{
ment v[2];
find_best_edge_split(m, the_split, e, v);
split_edge(the_split, v);
}
void mesh_refine(mesh* m, mflag* f)
{
the_split = split_new(m);
cavity_exec_flagged(m, f, refine_op, mesh_elem(m));
split_free(the_split);
}
void mesh_refine_all(mesh* m)
{
mflag* f = mflag_new_all(m, mesh_elem(m));
mesh_refine(m, f);
mflag_free(f);
}
| Java |
# Ancient Projects
While "Ancient" would be an interesting name for a project, it's used literally: This is old code I wrote way back; some from 2009, some from later, possibly some from even earlier.
I'm currently going through my files and cleaning up; as part of this I'm putting it in this Git repo, mostly to archive it. I don't really intend to do anything with it.
| Java |
// Structure to represent a proof
class ProofTree {
constructor({equation, rule, newScope=false }) {
this.equation = equation;
this.rule = rule;
this.newScope = newScope;
this.parent = null;
this.children = [];
this.isSound = !newScope;
}
isAssumption() {
return this.newScope;
}
isEmpty() {
return this.parent === null && this.children === [];
}
size() {
if (this.isEmpty()) return 0;
if (this.children.length)
return 1 + this.children.map(c=>c.size()).reduce((acc, c)=>acc+c);
return 1;
}
lastNumber() {
return this.size();
}
walk(fn) {
fn(this);
this.children.forEach(child => {
child.walk(fn);
});
}
last() {
if (this.children.length === 0) return this;
var last = this;
this.children.forEach(child => {
if (!child.isAssumption()) {
last = child.last();
}
});
return last;
}
setLines() {
var count = 1;
this.walk((child) => {
child.lineNumber = count;
count ++;
});
}
root() {
if (this.parent === null) return this;
return this.parent.root();
}
inScope(target) {
if (this.lineNumber === target) {
return true;
} else {
if (this.parent === null) return false;
var child = null;
var anySiblings = this.parent.children.some(child => {
return !child.isAssumption() && (child.lineNumber === target)
})
if (anySiblings) {
return true;
}
return this.parent.inScope(target);
}
}
// inScope(line1, line2, context=this.root()) {
//
// if (line1 === line2) return true;
// if (line1 > line2) return false;
// var line1Obj = context.line(line1);
// var line2Obj = context.line(line2);
// return this.inScope(line1Obj.lineNumber, line2Obj.parent.lineNumber, context);
// }
line(lineNumber) {
var line = null;
var count = 1;
this.walk(child => {
if (lineNumber === count) line = child;
count ++;
});
return line;
}
addLine(line) {
line.parent = this.last();
line.parent.children.push(line);
this.root().setLines();
}
closeBox() {
this.isSound = true;
}
addLineTo(line, lineNumber) {
// line.parent = this.line()
}
addLineNewScope({equation, rule}) {
var line = new ProofTree({
equation,
rule,
newScope: true
});
line.parent = this.last();
this.children.push(line);
line.root().setLines();
}
}
// Synonym as it reads better sometimes
ProofTree.prototype.scope = ProofTree.prototype.line;
export default ProofTree;
| Java |
package me.puras.common.controller;
import me.puras.common.domain.DomainModel;
import me.puras.common.error.BaseErrCode;
import me.puras.common.json.Response;
import me.puras.common.json.ResponseHelper;
import me.puras.common.service.CrudService;
import me.puras.common.util.ClientListSlice;
import me.puras.common.util.ListSlice;
import me.puras.common.util.Pagination;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
public abstract class CrudController<T> extends BaseController {
public abstract CrudService<T> getService();
protected boolean beforeCheck(T t) {
return true;
}
protected void doCreateBefore(T t) {}
protected void doUpdateBefore(T t) {}
@GetMapping("")
public Response<ClientListSlice<T>> list(Pagination pagination) {
ListSlice<T> slice = getService().findAll(getBounds(pagination));
return updateResultResponse(pagination, slice);
}
@GetMapping("{id}")
public Response<T> detail(@PathVariable("id") Long id) {
T t = getService().findById(id);
notFoundIfNull(t);
return ResponseHelper.createSuccessResponse(t);
}
@PostMapping("")
public Response<T> create(@Valid @RequestBody T t, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResponseHelper.createResponse(BaseErrCode.DATA_BIND_ERR.getCode(), BaseErrCode.DATA_BIND_ERR.getDesc());
}
if (!beforeCheck(t)) {
return ResponseHelper.createResponse(BaseErrCode.DATA_ALREADY_EXIST.getCode(), BaseErrCode.DATA_ALREADY_EXIST.getDesc());
}
doCreateBefore(t);
getService().create(t);
return ResponseHelper.createSuccessResponse(t);
}
@PutMapping("{id}")
public Response<T> update(@PathVariable("id") Long id, @RequestBody T t) {
T oldT = getService().findById(id);
notFoundIfNull(oldT);
if (t instanceof DomainModel) {
((DomainModel)t).setId(id);
}
if (!beforeCheck(t)) {
return ResponseHelper.createResponse(BaseErrCode.DATA_ALREADY_EXIST.getCode(), BaseErrCode.DATA_ALREADY_EXIST.getDesc());
}
doUpdateBefore(t);
getService().update(t);
return ResponseHelper.createSuccessResponse(t);
}
@DeleteMapping("{id}")
public Response<Boolean> delete(@PathVariable("id") Long id) {
T t = getService().findById(id);
notFoundIfNull(t);
int result = getService().delete(id);
return ResponseHelper.createSuccessResponse(result > 0 ? true : false);
}
} | Java |
# Recapping IPFS in Q4 2019 🎉
We’ve put together a very special issue looking back on all that you, the InterPlanetary File System (IPFS) community, accomplished so far, in 2019. From milestones like releases, projects like ProtoSchool, to the many new (and awesome) contributors who have joined us, and what’s to come for the rest of this year, we hope you enjoy this quarterly recap.
Thanks for being part of our community, we truly couldn’t make IPFS what is without you. ❤️
## Milestones
*As far as shipping goes, yeah we did that.*
### IPFS Browser Update
Read about [the ongoing collaborations with Firefox, Brave, Opera, and other browsers](https://blog.ipfs.io/2019-10-08-ipfs-browsers-update/) we have going on, and learn about our progress so far.
### Loads of IPFS Camp content to catch up on!
From [the keynotes to the developer interviews](https://blog.ipfs.io/2019-10-14-ipfs-camp-keynotes-interviews/), to [the Sci-Fi Fair videos](https://blog.ipfs.io/2019-10-03-ipfs-camp-sci-fi-fair-videos/), there’s a ton of great IPFS Camp videos to watch!
### js-ipfs 0.39.0 and 0.40.0 released
The js-ipfs team has been hard at work figuring out the foundations to switch to a hash format in the future, and much, much more. Check out the updates from both [version 0.39.0](https://blog.ipfs.io/071-js-ipfs-0-39/) and [0.40.0](https://blog.ipfs.io/2019-12-02-js-ipfs-0-40/).
### Learn how to use go-ipfs as a library
The title says it all! Learn how to use [go-ipfs as a library](https://blog.ipfs.io/073-go-ipfs-as-a-library/) with the new tutorial and take full advantage of the go-ipfs core API.
### Explore the Files API on ProtoSchool
This new tutorial [explores the methods at the top-level of js-ipfs](https://blog.ipfs.io/2019-11-06-explore-the-files-api-on-protoschool/) (add, get, cat, etc.) that are custom-built for working with files. Check it out!
### Presenting on IPFS? We got you
Feel free to [use these materials](https://github.com/ipfs/community#ipfs-event-materials), like How IPFS Works and IPFS Deep Dive Workshops, to make your event(s) awesome!
## Q4 by the names and numbers
All told **83 contributors** produced approximately **1607 commits across 91 repositories** in the IPFS project this past quarter. Thanks to the following folks for helping make this such an amazing end to a fantastic year. 👏
@0x6431346e
@aarshkshah1992
@achingbrain
@agowu338
@alanshaw
@alexander255
@Alexey-N-Chernyshov
@AliabbasMerchant
@alzuri
@andrewxhill
@aschmahmann
@AuHau
@autonome
@ay2306
@carsonfarmer
@csuwildcat
@cwaring
@daviddias
@dirkmc
@djdv
@doctorrobinson
@dreamski21
@ericronne
@erlend-sh
@Frijol
@frrist
@fulldecent
@gjeanmart
@hacdias
@hannahhoward
@hcg1314
@hinshun
@hsanjuan
@hueg
@hugomrdias
@ianopolous
@iiska
@jacobheun
@jessicaschilling
@jimpick
@jkosem
@johnnymatthews
@Jorropo
@jsoares
@kaczmarj
@khinsen
@kishansagathiya
@kpp
@Kubuxu
@lanzafame
@lidel
@martin-seeman
@mboperator
@meiqimichelle
@MichaelMure
@mikeal
@mikedotexe
@mkg200001
@momack2
@moul
@moyid
@nijynot
@nonsense
@olizilla
@parkan
@PedroMiguelSS
@pranjalv9
@raulk
@reasv
@renrutnnej
@sarthak0906
@Seenivasanseeni
@serejandmyself
@starmanontesla
@Stebalien
@stongo
@tapaswenipathak
@terichadbourne
@TheBinitGhimire
@vasco-santos
@vincepmartin
@whyrusleeping
@xiegeo
@yiannisbot
## Please help us in welcoming these new contributors 👋
IPFS wouldn’t be the same without your help! We’re so grateful to have you onboard. Thank you.
@0x6431346e
@aarshkshah1992
@Alexey-N-Chernyshov
@alzuri
@ay2306
@csuwildcat
@dreamski21
@erlend-sh
@Frijol
@fulldecent
@hcg1314
@iiska
@jkosem
@johnnymatthews
@jsoares
@kaczmarj
@kpp
@mboperator
@mikedotexe
@mkg200001
@moul
@nijynot
@nonsense
@pranjalv9
@reasv
@sarthak0906
@Seenivasanseeni
@serejandmyself
@starmanontesla
@stongo
@TheBinitGhimire
@vincepmartin
@xiegeo
@yiannisbot
## Contributors by the numbers
Here are the 10 contributors who touched the most repos in the project so this quarter:
* @Stebalien
* @achingbrain
* @aschmahmann
* @lidel
* @alanshaw
* @MichaelMure
* @hugomrdias
* @jessicaschilling
* @hacdias
Once again, thanks for all of your hard work and contributions in 2019. Keep up the great job!
## Awesome content
### The Decentralized Web Is Coming
Amazon, Google, Facebook, and Twitter are in the federal government’s crosshairs, but the technology necessary to undermine their dominance may already exist. [See how IPFS plays a role](https://www.youtube.com/watch?v=R1ccwyP6fjc&feature=youtu.be) in the internet of the future.
### IPFS + ENS Everywhere: Introducing EthDNS
[EthDNS](https://medium.com/the-ethereum-name-service/ethdns-9d56298fa38a) bridges the traditional web world to the new universe of ENS-named, IPFS-backed decentralized sites and dapps through the ancient, yet indispensable, 🧙♂️ Domain Name System 🧙♂️.
### Exploding IPFS data
Enabling single use links, expiring links and more through [a simple link shortening service](https://blog.textile.io/ipfs-experiments-creating-ipfs-links-that-you-can-delete/).
### Presenting Building Web3 at Web3 Summit 2019
Catch up on [Juan Benet’s talk from Web3 Summit 2019](https://www.youtube.com/watch?v=pJOG5Ql7ZD0) on Building Web3.
### Tim Berners-Lee seems to be a fan of IPFS and libp2p,
OMG senpai noticed [us](https://twitter.com/sgrasmann/status/1189194596544200708/photo/1)!
### Brave Browser in 2020: New Ad-Blocks, Filters, SDK, and IPFS
Back in November, [Brave announced plans](https://u.today/brave-browser-in-2020-new-ad-blocks-filters-sdk-and-ipfs) to launch and implement IPFS, a cutting edge approach to decentralization. 💁♀️
### GeoHot hacks on IPFS during “Simple Skills Sunday”
Recently George Hotz, or GeoHot, got the chance to [hack on some IPFS](https://www.youtube.com/watch?v=EecfVsdQMcM) while creating Tic Tac Toe in React for Simple Skills Sunday. Check out the full video, or skip to 2:45:00 to get straight to the IPFS bit.
### DAppNode’s IPFS Pinner Package Demo
In case you missed it, DAppNode created an IPFS-pinner! [Watch this demo](https://www.youtube.com/watch?time_continue=1&v=I2MuNFlVnHo&feature=emb_logo) on the creative combo of IPFS Cluster, ENS, and IPFS for collaborative community mirrors of your favorite package registry.
## Coming up in 2020
+ We celebrate 2019 in style 🎉
+ The IPFS docs get a brand new look
+ Check out [the goals we’ve outlined so far for 2020](https://github.com/ipfs/roadmap#2020-goals)
## Thanks for reading ☺️
That’s it for this special edition of the IPFS Weekly. If we missed something, reply to this email and let us know! We’ll return with all the ecosystem news you love to read about on January 7, 2020.
If this is your first time reading the IPFS Weekly, you can learn more or get involved by checking out [the project on GitHub](https://github.com/ipfs), or joining us [in chat](https://riot.im/app/#/room/#ipfs:matrix.org).
See you next year! 👋
| Java |
version https://git-lfs.github.com/spec/v1
oid sha256:20e35c5c96301564881e3f892b8c5e38c98b131ea58889ed9889b15874e39cbe
size 8394
| Java |
The MIT License (MIT)
Copyright (c) 2016 Adrian Tsumanu Woźniak
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.
| Java |
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% assign page_title = '' %}
{% if page.title == "Home" %}
{% capture page_title %}
{{ site.title }}{{ site.title2 }} | {{ site.description }}
{%if paginator and paginator.page != 1 %} - {{ paginator.page }}{% endif %}
{% endcapture %}
{% else %}
{% capture page_title %}
{%if page.slug == 'category' %}Category: {% endif %}
{%if page.slug == 'tag' %}Tag: {% endif %} {{ page.title }} | {{ site.title }}{{ site.title2}}
{% endcapture %}
{% endif %}
{% capture page_title %}
{{ page_title | strip | rstrip | lstrip | escape | strip_newlines }}
{% endcapture %}
<title>{{ page_title }}</title>
{% assign page_description = '' %}
{% capture page_description %}
{% if page.description %}
{{ page.description | strip_html | strip | rstrip | strip_newlines | truncate: 160 }}
{% else %}
{{ site.description }}
{% endif %}
{%if paginator and paginator.page != 1 %} - {{ paginator.page }} {% endif %}
{%if page.slug == 'category' %} Category: {{ page.title }}{% endif %}
{%if page.slug == 'tag' %} Tag: {{ page.title }}{% endif %}
{% endcapture %}
{% capture page_description %}
{{ page_description | strip | rstrip | lstrip | escape | strip_newlines }}
{% endcapture %}
<meta name="description" content="{{ page_description }}">
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords }}{% else %}{{ site.keywords }}{% endif %}">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
{% assign page_image = '' %}
{% capture page_image %}
{% if page.cover %}
{{ page.cover | prepend: site.baseurl | prepend: site.url }}
{% else %}
{{ site.cover | prepend: site.baseurl | prepend: site.url }}
{% endif %}
{% endcapture %}
{% capture page_image %}{{ page_image | strip | rstrip | lstrip | escape | strip_newlines }}{% endcapture %}
<!-- Social: Facebook / Open Graph -->
{% if page.id %}
<meta property="og:type" content="article">
<meta property="article:author" content="{{ site.author.name }}">
<meta property="article:section" content="{{ page.categories | join: ', ' }}">
<meta property="article:tag" content="{{ page.keywords }}">
<meta property="article:published_time" content="{{ page.date }}">
{% else%}
<meta property="og:type" content="website">
{% endif %}
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<meta property="og:title" content="{{ page_title }}">
<meta property="og:image" content="{{ page_image }}">
<meta property="og:description" content="{{ page_description }}">
<meta property="og:site_name" content="{{ site.author.name }}">
<meta property="og:locale" content="{{ site.og_locale }}">
<!-- Social: Twitter -->
<meta name="twitter:card" content="{{ site.twitter_card }}">
<meta name="twitter:site" content="{{ site.twitter_site }}">
<meta name="twitter:title" content="{{ page_title }}">
<meta name="twitter:description" content="{{ page_description }}">
<meta name="twitter:image:src" content="{{ page_image }}">
<!-- Social: Google+ / Schema.org -->
<meta itemprop="name" content="{{ page_title }}">
<meta itemprop="description" content="{{ page_description }}">
<meta itemprop="image" content="{{ page_image }}">
<!-- rel prev and next -->
{% if paginator.previous_page %}
<link rel="prev" href="{{ paginator.previous_page_path | prepend: site.baseurl | prepend: site.url }}">
{% endif %}
{% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | prepend: site.url }}">
{% endif %}
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
<link rel="stylesheet" href="{{ "/assets/css/font-awesome.min.css" | prepend: site.baseurl }}">
<!-- Canonical link tag -->
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}{{ site.title2 }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
<script type="text/javascript">
var disqus_shortname = '{{ site.disqus_shortname }}';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.google_analytics }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
| Java |
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using AgileSqlClub.MergeUi.DacServices;
using AgileSqlClub.MergeUi.Merge;
using AgileSqlClub.MergeUi.Metadata;
using AgileSqlClub.MergeUi.PackagePlumbing;
using AgileSqlClub.MergeUi.VSServices;
using MessageBox = System.Windows.Forms.MessageBox;
namespace AgileSqlClub.MergeUi.UI
{
public static class DebugLogging
{
public static bool Enable = true;
}
public partial class MyControl : UserControl, IStatus
{
private bool _currentDataGridDirty;
private VsProject _currentProject;
private ISchema _currentSchema;
private ITable _currentTable;
private ISolution _solution;
public MyControl()
{
InitializeComponent();
//Refresh();
}
public void SetStatus(string message)
{
Dispatcher.InvokeAsync(() => { LastStatusMessage.Text = message; });
}
private void Refresh()
{
Task.Run(() => DoRefresh());
}
private void DoRefresh()
{
Dispatcher.Invoke(() => { DebugLogging.Enable = Logging.IsChecked.Value; });
try
{
if (_currentDataGridDirty)
{
if (!CheckSaveChanges())
{
return;
}
}
var cursor = Cursors.Arrow;
Dispatcher.Invoke(() =>
{
cursor = Cursor;
RefreshButton.IsEnabled = false;
Projects.ItemsSource = null;
Schemas.ItemsSource = null;
Tables.ItemsSource = null;
DataGrid.DataContext = null;
Cursor = Cursors.Wait;
});
_solution = new SolutionParser(new ProjectEnumerator(), new DacParserBuilder(), this);
Dispatcher.Invoke(() =>
{
Projects.ItemsSource = _solution.GetProjects();
Cursor = cursor;
RefreshButton.IsEnabled = true;
});
}
catch (Exception e)
{
Dispatcher.Invoke(() => { LastStatusMessage.Text = "Error see output window"; });
OutputWindowMessage.WriteMessage("Error Enumerating projects:");
OutputWindowMessage.WriteMessage(e.Message);
}
}
[SuppressMessage("Microsoft.Globalization", "CA1300:SpecifyMessageBoxOptions")]
private void button1_Click(object sender, RoutedEventArgs e)
{
Refresh();
}
private void Projects_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
try
{
if (null == Projects.SelectedValue)
return;
var projectName = Projects.SelectedValue.ToString();
if (String.IsNullOrEmpty(projectName))
return;
Schemas.ItemsSource = null;
Tables.ItemsSource = null;
_currentProject = _solution.GetProject(projectName);
if (string.IsNullOrEmpty(_currentProject.GetScript(ScriptType.PreDeploy)) &&
string.IsNullOrEmpty(_currentProject.GetScript(ScriptType.PostDeploy)))
{
MessageBox.Show(
"The project needs a post deploy script - add one anywhere in the project and refresh", "MergeUi");
return;
}
LastBuildTime.Text = string.Format("Last Dacpac Build Time: {0}", _currentProject.GetLastBuildTime());
Schemas.ItemsSource = _currentProject.GetSchemas();
}
catch (Exception ex)
{
Dispatcher.Invoke(() => { LastStatusMessage.Text = "Error see output window "; });
OutputWindowMessage.WriteMessage("Error reading project: {0}", ex.Message);
}
}
private void Schemas_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
try
{
if (null == Schemas.SelectedValue)
return;
var schemaName = Schemas.SelectedValue.ToString();
if (String.IsNullOrEmpty(schemaName))
return;
_currentSchema = _currentProject.GetSchema(schemaName);
Tables.ItemsSource = _currentSchema.GetTables();
}
catch (Exception ex)
{
Dispatcher.Invoke(() => { LastStatusMessage.Text = "Error see output window"; });
OutputWindowMessage.WriteMessage("Error selecting schema:");
OutputWindowMessage.WriteMessage(ex.Message);
}
}
private void Tables_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
try
{
if (null == Tables.SelectedValue)
return;
var tableName = Tables.SelectedValue.ToString();
if (String.IsNullOrEmpty(tableName))
return;
_currentTable = _currentSchema.GetTable(tableName);
if (_currentTable.Data == null)
{
_currentTable.Data = new DataTableBuilder(tableName, _currentTable.Columns).Get();
}
DataGrid.DataContext = _currentTable.Data.DefaultView;
//TODO -= check for null and start adding a datatable when building the table (maybe need a lazy loading)
//we also need a repository of merge statements which is the on disk representation so we can grab those
//if they exist or just create a new one - then save them back and
}
catch (Exception ex)
{
Dispatcher.Invoke(() => { LastStatusMessage.Text = "Error Enumerating projects: " + ex.Message; });
OutputWindowMessage.WriteMessage("Error selecting table ({0}-):",
_currentTable == null ? "null" : _currentTable.Name,
Tables.SelectedValue == null ? "selected = null" : Tables.SelectedValue.ToString());
OutputWindowMessage.WriteMessage(ex.Message);
}
}
private bool CheckSaveChanges()
{
return true;
}
private void DataGrid_OnRowEditEnding(object sender, DataGridRowEditEndingEventArgs e)
{
_currentDataGridDirty = true;
}
private void button1_Save(object sender, RoutedEventArgs e)
{
//need to finish off saving back to the files (need a radio button with pre/post deploy (not changeable when read from file) - futrue feature
//need a check to write files on window closing
//need lots of tests
try
{
_solution.Save();
}
catch (Exception ex)
{
Dispatcher.Invoke(() => { LastStatusMessage.Text = "Error see output window"; });
OutputWindowMessage.WriteMessage("Error saving solution files:");
OutputWindowMessage.WriteMessage(ex.Message);
}
}
private void ImportTable(object sender, RoutedEventArgs e)
{
if (_currentTable == null)
{
MessageBox.Show("Please choose a table in the drop down list", "MergeUi");
return;
}
try
{
new Importer().GetData(_currentTable);
}
catch (Exception ex)
{
Dispatcher.Invoke(() => { LastStatusMessage.Text = "Error see output window"; });
OutputWindowMessage.WriteMessage("Error importing data (table={0}):", _currentTable.Name);
OutputWindowMessage.WriteMessage(ex.Message);
}
DataGrid.DataContext = _currentTable.Data.DefaultView;
}
private void Logging_OnChecked(object sender, RoutedEventArgs e)
{
DebugLogging.Enable = Logging.IsChecked.Value;
}
}
public interface IStatus
{
void SetStatus(string message);
}
} | Java |
<?php
namespace Neutral\BlockBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('neutral_block');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}
| Java |
<!DOCTYPE HTML>
<!--
Strata by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Leticia Wright · Kevin Li</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="Kevin Li">
<meta name="description" content="Personal Website, Portfolio, and Blog">
<meta http-equiv="content-language" content="en-us" />
<meta name="og:site_name" content="Kevin Li">
<meta name="og:title" content="Leticia Wright">
<meta name="og:url" content="http://kevinwli.com/tags/leticia-wright/">
<meta name="og:image" content="http://kevinwli.com/images/https://res.cloudinary.com/lilingkai/image/upload/s--tB1TDmk3--/c_scale,q_jpegmini:1,w_1600/v1492638792/Kevin_vk8jrp.jpg">
<meta name="generator" content="Hugo 0.54.0" />
<!--[if lte IE 8]><script src='http://kevinwli.com/js/ie/html5shiv.js'></script><![endif]-->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://kevinwli.com/css/main.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://kevinwli.com//css/ie8.css"><![endif]-->
<link href="http://kevinwli.com/tags/leticia-wright/index.xml" rel="alternate" type="application/rss+xml" title="Kevin Li" />
<link href="http://kevinwli.com/tags/leticia-wright/index.xml" rel="feed" type="application/rss+xml" title="Kevin Li" />
<link rel="favicon" href="http://res.cloudinary.com/lilingkai/image/upload/v1480470082/favicon_v0tkdd.png">
</head>
<body id="top">
<!-- Header -->
<header id="header">
<a href="http://kevinwli.com/" class="image avatar"><img src="https://res.cloudinary.com/lilingkai/image/upload/s--tB1TDmk3--/c_scale,q_jpegmini:1,w_1600/v1492638792/Kevin_vk8jrp.jpg" alt="" /></a>
<h1><strong>Kevin Li</strong> <br> Creator, Developer, Musician</h1>
<nav id="sidebar">
<ul>
<li><a href="http://kevinwli.com/">Home</a></li>
<li><a href="http://kevinwli.com/KevinLiResume.pdf">Resume</a></li>
<li><a href="http://kevinwli.com/post/">Blog</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<div id="main">
<span>
<h1>
<a href="http://kevinwli.com/post/2019-05-08-guava-island-review/">Guava Island</a>
</h1>
<i class="fa fa-calendar"></i>
<time datetime="2019-05-08 00:00:00 +0000 UTC">2019-05-08</time>
<i class="fa fa-folder"></i>
<a class="article-category-link" href="http://kevinwli.com/categories/film-review">Film Review</a>
<i class="fa fa-tags"></i>
<a class="article-category-link" href="http://kevinwli.com/tags/guava-island">Guava Island</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/hiro-murai">Hiro Murai</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/donald-glover">Donald Glover</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/rihanna">Rihanna</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/leticia-wright">Leticia Wright</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/nonso-anozie">Nonso Anozie</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/tv-ma">TV-MA</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/2019">2019</a>
·
<a class="article-category-link" href="http://kevinwli.com/tags/project-film-52">PROJECT-FILM-52</a>
</span>
<p><p>Donald Glover released his latest artistic endeavor last month on Amazon Prime, and this time it’s a short film by the name of “Guava Island”. Most art that Donald churns out is of high quality, and for the most part, “Guava Island” is no exception. Yet, there is a feeling of squandered opportunities here that make it feel less like a powerful short film and more like a long, self-glorifying music video.</p></p>
<hr>
</div>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="//github.com/lilingkai" target="_blank" class="icon fa-github"><span class="label">GitHub</span></a></li>
<li><a href="https://www.linkedin.com/in/kevin-li-09591474/" target="_blank" class="icon fa-linkedin-square"><span class="label">Linkedin</span></a></li>
<li><a href="https://www.youtube.com/user/lilingkai" target="_blank" class="icon fa-youtube"><span class="label">YouTube</span></a></li>
<li><a href="http://kevinwli.com/#contact-form" class="icon fa-envelope-o"><span class="label">Email</span></a></li>
<li><a href="http://kevinwli.com/tags/leticia-wright/index.xml" class="icon fa-rss" type="application/rss+xml"><span class="label">RSS</span></a></li>
</ul>
<ul class="copyright">
<li>© Kevin Li</li>
<li>Design: <a href="//html5up.net">HTML5 UP</a></li>
</ul>
</footer>
<!-- Scripts -->
<script src="http://kevinwli.com/js/jquery.min.js"></script>
<script src="http://kevinwli.com/js/jquery.poptrox.min.js"></script>
<script src="http://kevinwli.com/js/skel.min.js"></script>
<script src="http://kevinwli.com/js/util.js"></script>
<script src="http://kevinwli.com/js/main.js"></script>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-71563316-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</body>
</html>
| Java |
<?php
namespace Aquicore\API\PHP\Common;
class BatteryLevelModule
{
/* Battery range: 6000 ... 3600 */
const BATTERY_LEVEL_0 = 5500;/*full*/
const BATTERY_LEVEL_1 = 5000;/*high*/
const BATTERY_LEVEL_2 = 4500;/*medium*/
const BATTERY_LEVEL_3 = 4000;/*low*/
/* below 4000: very low */
}
| Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using ZitaAsteria;
using ZitaAsteria.World;
namespace ZAsteroids.World.HUD
{
class HUDSheilds : HUDComponent
{
public SpriteFont Font { get; set; }
public Texture2D SheildTexture { get; set; }
public Texture2D ActiveTexture { get; set; }
public Texture2D DamageTexture { get; set; }
private RelativeTexture SheildInfo;
private RelativeTexture WorkingValue;
private bool enabled;
private bool update = false;
private Vector2 safePositionTopRight;
private Color color;
public HUDSheilds()
{
}
public override void Initialize()
{
// Must initialize base to get safe draw area
base.Initialize();
SheildTexture = WorldContent.hudContent.sheilds;
ActiveTexture = WorldContent.hudContent.active;
DamageTexture = WorldContent.hudContent.damage;
SheildInfo = new RelativeTexture(SheildTexture);
SheildInfo.Children.Add("Base01", new RelativeTexture(ActiveTexture) { Position = new Vector2(129, 203), EnableDraw = true });
SheildInfo.Children.Add("Base02", new RelativeTexture(ActiveTexture) { Position = new Vector2(164.5f, 182.5f), EnableDraw = true });
SheildInfo.Children.Add("Base03", new RelativeTexture(ActiveTexture) { Position = new Vector2(129.5f, 123), EnableDraw = true });
SheildInfo.Children.Add("Base04", new RelativeTexture(ActiveTexture) { Position = new Vector2(147, 92.5f), EnableDraw = true });
SheildInfo.Children.Add("Base05", new RelativeTexture(ActiveTexture) { Position = new Vector2(199.5f, 42), EnableDraw = true });
SheildInfo.Children.Add("Base06", new RelativeTexture(ActiveTexture) { Position = new Vector2(234.5f, 102), EnableDraw = true });
SheildInfo.Children.Add("Damage01", new RelativeTexture(DamageTexture) { Position = new Vector2(94.5f, 143) });
SheildInfo.Children.Add("Damage02", new RelativeTexture(DamageTexture) { Position = new Vector2(112, 153) });
SheildInfo.Children.Add("Damage03", new RelativeTexture(DamageTexture) { Position = new Vector2(112, 133) });
SheildInfo.Children.Add("Damage04", new RelativeTexture(DamageTexture) { Position = new Vector2(112, 113) });
SheildInfo.Children.Add("Damage05", new RelativeTexture(DamageTexture) { Position = new Vector2(129.5f, 143) });
SheildInfo.Children.Add("Damage06", new RelativeTexture(DamageTexture) { Position = new Vector2(129.5f, 103) });
SheildInfo.Children.Add("Damage07", new RelativeTexture(DamageTexture) { Position = new Vector2(129.5f, 83) });
SheildInfo.Children.Add("Damage08", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 173) });
SheildInfo.Children.Add("Damage09", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 153) });
SheildInfo.Children.Add("Damage10", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 133) });
SheildInfo.Children.Add("Damage11", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 113) });
SheildInfo.Children.Add("Damage12", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 73) });
SheildInfo.Children.Add("Damage13", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 53) });
SheildInfo.Children.Add("Damage14", new RelativeTexture(DamageTexture) { Position = new Vector2(147, 12) });
SheildInfo.Children.Add("Damage15", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 162.5f) });
SheildInfo.Children.Add("Damage16", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 142.5f) });
SheildInfo.Children.Add("Damage17", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 122.5f) });
SheildInfo.Children.Add("Damage18", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 102.5f) });
SheildInfo.Children.Add("Damage19", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 82.5f) });
SheildInfo.Children.Add("Damage20", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 62.5f) });
SheildInfo.Children.Add("Damage21", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 42.5f) });
SheildInfo.Children.Add("Damage22", new RelativeTexture(DamageTexture) { Position = new Vector2(164.5f, 22.5f) });
SheildInfo.Children.Add("Damage23", new RelativeTexture(DamageTexture) { Position = new Vector2(182.5f, 173) });
SheildInfo.Children.Add("Damage24", new RelativeTexture(DamageTexture) { Position = new Vector2(182.5f, 153) });
SheildInfo.Children.Add("Damage25", new RelativeTexture(DamageTexture) { Position = new Vector2(182.5f, 133) });
SheildInfo.Children.Add("Damage26", new RelativeTexture(DamageTexture) { Position = new Vector2(182.5f, 113) });
SheildInfo.Children.Add("Damage27", new RelativeTexture(DamageTexture) { Position = new Vector2(182.5f, 73) });
SheildInfo.Children.Add("Damage28", new RelativeTexture(DamageTexture) { Position = new Vector2(182.5f, 53) });
SheildInfo.Children.Add("Damage29", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 62) });
SheildInfo.Children.Add("Damage30", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 82) });
SheildInfo.Children.Add("Damage31", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 102) });
SheildInfo.Children.Add("Damage32", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 122) });
SheildInfo.Children.Add("Damage33", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 142) });
SheildInfo.Children.Add("Damage34", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 162) });
SheildInfo.Children.Add("Damage35", new RelativeTexture(DamageTexture) { Position = new Vector2(199.5f, 182) });
SheildInfo.Children.Add("Damage36", new RelativeTexture(DamageTexture) { Position = new Vector2(217.5f, 112.5f) });
SheildInfo.Children.Add("Damage37", new RelativeTexture(DamageTexture) { Position = new Vector2(217.5f, 92.5f) });
SheildInfo.Children.Add("Damage38", new RelativeTexture(DamageTexture) { Position = new Vector2(217.5f, 72.5f) });
SheildInfo.Children.Add("Damage39", new RelativeTexture(DamageTexture) { Position = new Vector2(235, 122) });
SheildInfo.EnableDraw = true;
SheildInfo.Position = new Vector2(HUDDrawSafeArea.Right - (SheildTexture.Width / 2), HUDDrawSafeArea.Top + (SheildTexture.Height / 2));
safePositionTopRight = new Vector2(HUDDrawSafeArea.Right, HUDDrawSafeArea.Top);
Font = WorldContent.fontAL15pt;
}
public override void Update(GameTime gameTime)
{
//base.Update(gameTime);
// Fuck this sucks, but doing it at work, so will fix later
//DUUUUUUUUUDE, holy crap! 10 points for effort :) [GearsAD]
if (update)
{
if (HUDProperties.HealthAmount <= 97.0f)
{
SheildInfo.Children.TryGetValue("Damage32", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage32", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 95.0f)
{
SheildInfo.Children.TryGetValue("Damage39", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage39", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 93.0f)
{
SheildInfo.Children.TryGetValue("Damage02", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage02", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 90.0f)
{
SheildInfo.Children.TryGetValue("Damage38", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage38", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 87.0f)
{
SheildInfo.Children.TryGetValue("Damage03", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage03", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 85.0f)
{
SheildInfo.Children.TryGetValue("Damage37", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage37", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 83.0f)
{
SheildInfo.Children.TryGetValue("Damage04", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage04", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 80.0f)
{
SheildInfo.Children.TryGetValue("Damage36", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage36", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 77.0f)
{
SheildInfo.Children.TryGetValue("Damage05", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage05", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 75.0f)
{
SheildInfo.Children.TryGetValue("Damage35", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage35", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 73.0f)
{
SheildInfo.Children.TryGetValue("Damage06", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage06", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 70.0f)
{
SheildInfo.Children.TryGetValue("Damage34", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage34", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 67.0f)
{
SheildInfo.Children.TryGetValue("Damage07", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage07", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 65.0f)
{
SheildInfo.Children.TryGetValue("Damage33", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage33", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 63.0f)
{
SheildInfo.Children.TryGetValue("Damage22", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage22", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 60.0f)
{
SheildInfo.Children.TryGetValue("Damage01", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage01", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 57.0f)
{
SheildInfo.Children.TryGetValue("Damage09", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage09", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 55.0f)
{
SheildInfo.Children.TryGetValue("Damage31", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage31", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 53.0f)
{
SheildInfo.Children.TryGetValue("Damage10", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage10", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 50.0f)
{
SheildInfo.Children.TryGetValue("Damage30", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage30", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 47.0f)
{
SheildInfo.Children.TryGetValue("Damage11", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage11", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 45.0f)
{
SheildInfo.Children.TryGetValue("Damage29", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage29", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 43.0f)
{
SheildInfo.Children.TryGetValue("Damage12", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage12", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 40.0f)
{
SheildInfo.Children.TryGetValue("Damage28", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage28", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 37.0f)
{
SheildInfo.Children.TryGetValue("Damage13", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage13", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 35.0f)
{
SheildInfo.Children.TryGetValue("Damage27", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage27", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 33.0f)
{
SheildInfo.Children.TryGetValue("Damage14", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage14", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 30.0f)
{
SheildInfo.Children.TryGetValue("Damage26", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage26", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 27.0f)
{
SheildInfo.Children.TryGetValue("Damage15", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage15", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 25.0f)
{
SheildInfo.Children.TryGetValue("Damage25", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage25", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 23.0f)
{
SheildInfo.Children.TryGetValue("Damage16", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage16", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 20.0f)
{
SheildInfo.Children.TryGetValue("Damage24", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage24", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 17.0f)
{
SheildInfo.Children.TryGetValue("Damage17", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage17", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 15.0f)
{
SheildInfo.Children.TryGetValue("Damage23", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage23", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 13.0f)
{
SheildInfo.Children.TryGetValue("Damage18", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage18", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 10.0f)
{
SheildInfo.Children.TryGetValue("Damage08", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage08", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 7.0f)
{
SheildInfo.Children.TryGetValue("Damage19", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage19", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 5.0f)
{
SheildInfo.Children.TryGetValue("Damage21", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage21", out WorkingValue);
WorkingValue.EnableDraw = false;
}
if (HUDProperties.HealthAmount <= 0.0f)
{
SheildInfo.Children.TryGetValue("Damage20", out WorkingValue);
WorkingValue.EnableDraw = true;
}
else
{
SheildInfo.Children.TryGetValue("Damage20", out WorkingValue);
WorkingValue.EnableDraw = false;
}
}
update = !update;
}
public override void Draw()
{
if (enabled)
{
HUDSpriteBatch.Begin();
SheildInfo.Draw(HUDSpriteBatch);
string health = HUDProperties.HealthAmount.ToString();
if (HUDProperties.HealthAmount <= 80)
{
color = Color.Orange;
}
else if (HUDProperties.HealthAmount <= 40)
{
color = Color.Red;
}
else
{
color = WorldContent.hudContent.hudTextColor;
}
HUDSpriteBatch.DrawString(Font, health, safePositionTopRight + new Vector2(-SheildTexture.Width + 45, 22), color);
HUDSpriteBatch.End();
}
}
/// <summary>
/// Sets whether the component should be drawn.
/// </summary>
/// <param name="enabled">enable the component</param>
public void Enable(bool enabled)
{
this.enabled = enabled;
}
}
}
| Java |
---
layout: post
date: 2016-03-19
title: "Anne Barge Promenade 2016 Spring Sleeveless Floor-Length Aline/Princess"
category: Anne Barge
tags: [Anne Barge,Aline/Princess ,Illusion,Floor-Length,Sleeveless,2016,Spring]
---
### Anne Barge Promenade
Just **$299.99**
### 2016 Spring Sleeveless Floor-Length Aline/Princess
<table><tr><td>BRANDS</td><td>Anne Barge</td></tr><tr><td>Silhouette</td><td>Aline/Princess </td></tr><tr><td>Neckline</td><td>Illusion</td></tr><tr><td>Hemline/Train</td><td>Floor-Length</td></tr><tr><td>Sleeve</td><td>Sleeveless</td></tr><tr><td>Years</td><td>2016</td></tr><tr><td>Season</td><td>Spring</td></tr></table>
<a href="https://www.readybrides.com/en/anne-barge/5898-anne-barge-promenade.html"><img src="//img.readybrides.com/12955/anne-barge-promenade.jpg" alt="Anne Barge Promenade" style="width:100%;" /></a>
<!-- break -->
Buy it: [https://www.readybrides.com/en/anne-barge/5898-anne-barge-promenade.html](https://www.readybrides.com/en/anne-barge/5898-anne-barge-promenade.html)
| Java |
namespace Miruken.Callback
{
using System;
[AttributeUsage(AttributeTargets.Parameter)]
public class KeyAttribute : Attribute
{
public KeyAttribute(object key)
{
Key = key;
}
public KeyAttribute(string key, StringComparison comparison)
{
Key = new StringKey(key, comparison);
}
public object Key { get; }
}
}
| Java |
module Cubic
module Generator
# Config stores data needed throughout the generation process.
class Config
@settings = {}
class << self
def all
@settings
end
def [](key)
all[key] || defaults(key)
end
def root_path(path)
@settings[:root_path] = path
end
# Name of the application
def name(name)
@settings[:name] = name
end
# Prefered testing framework.
def test_type(type)
@settings[:test_type] = type || 'Rspec'
end
def orm(orm)
@settings[:orm] = orm || 'Sequel'
end
def db(db)
@settings[:db] = db || 'sqlite3'
end
# Consider renaming to 'template engine'
def html_type(type)
@settings[:html_type] = type || 'haml'
end
def css_type(type)
@settings[:css_type] = type || 'css'
end
# Gems to be added to Gemfile
def gems(gems)
@settings[:gems] = gems
end
# Default options.
def defaults(name)
{ root_path: Dir.getwd,
name: 'No Name',
test_type: 'rspec',
orm: 'Sequel',
db: 'sqlite3',
html_type: 'haml',
css_type: 'css' }[name]
end
end
end
end
end
| Java |
namespace OpenProtocolInterpreter.IOInterface
{
/// <summary>
/// IO interface message category. Every IO interface mid must implement <see cref="IIOInterface"/>.
/// </summary>
public interface IIOInterface
{
}
}
| Java |
import { HMR_PATH } from '../config/constants';
function webpackMiddleware(): object[] {
const middleware: object[] = [];
if (BalmJS.webpackCompiler) {
middleware.push(
require('webpack-dev-middleware')(
BalmJS.webpackCompiler,
Object.assign({}, BalmJS.config.server.devOptions, {
publicPath: BalmJS.file.publicUrlOrPath,
stats: false
})
)
);
if (BalmJS.config.server.useHMR) {
middleware.push(
require('webpack-hot-middleware')(BalmJS.webpackCompiler, {
log: false,
path: HMR_PATH
})
);
}
} else {
BalmJS.logger.warn('webpack middleware', 'Webpack compiler is not ready');
}
return middleware;
}
export default webpackMiddleware;
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./dab721f0a9fe4d47eb683c33bbdbce2f653fbfb8bc93a607e7a7ad30636c7061.html">Teleport</a>
<hr>
<a href="./../../about.md">About</a> (Spoilers! )
<script src="./../../assets/md5.js"></script>
<script>
window.currentLevel = 7;
</script>
<script src="./../../assets/script.js"></script>
</body>
</html> | Java |
require 'RMagick'
class MemesController < ApplicationController
before_action :check_meme_destroy_permission, only: [:destroy]
before_action :check_meme_group_permissions, only: [:show]
# GET /memes
# GET /memes.json
def index
@memes = Meme.where(:group_id => nil).order("created_at DESC")
@group = nil
if params[:sort] and params[:sort] == "popular"
@memes = @memes.sort{|m1, m2| m2.popularity <=> m1.popularity }
@memes = Kaminari.paginate_array(@memes)
end
@memes = @memes.page(params[:page]).per($MEMES_PER_PAGE)
end
# GET /memes/1
# GET /memes/1.json
def show
if @meme.user_id
@author = User.find(@meme.user_id)
if @author.username
@author_name = @author.username
end
end
end
# GET /memes/new
def new
@meme = Meme.new
@group = Group.find_by_key(params[:group_id])
if current_user.try(:groups)
@groups = current_user.groups
elsif @group
@groups = [@group]
else
@groups = []
end
@templates = Template.all
end
# POST /memes
# POST /memes.json
def create
# TODO(juarez): Add security, sanitize input. Check if template is actually present.
@meme = Meme.new(meme_params.merge({:key => UUID.new().generate, :user_id => current_user}))
if user_signed_in?
@meme.user_id = current_user.id
end
if !params[:images][:bg].empty?
# Set result to background image.
result = Magick::Image.read_inline(params[:images][:bg]).first
result.format = "JPEG"
end
if !params[:images][:top].empty?
image_top = Magick::Image.read_inline(params[:images][:top]).first
result = result.composite!(image_top, Magick::CenterGravity, Magick::OverCompositeOp)
end
if !params[:images][:bottom].empty?
image_bottom = Magick::Image.read_inline(params[:images][:bottom]).first
result = result.composite!(image_bottom, Magick::CenterGravity, Magick::OverCompositeOp)
end
respond_to do |format|
if @meme.save
s3 = AWS::S3.new
begin
obj = s3.buckets[ENV['S3_BUCKET_NAME']].objects[@meme.id.to_s + ".jpg"]
obj.write(result.to_blob, {:acl => :public_read, :cache_control => "max-age=14400"})
rescue Exception => ex
# Upload failed, try again.
puts 'Error uploading meme to S3, retrying.'
puts ex.message
begin
obj = s3.buckets[ENV['S3_BUCKET_NAME']].objects[@meme.id.to_s + ".jpg"]
obj.write(result.to_blob, {:acl => :public_read, :cache_control => "max-age=14400"})
rescue Exception => ex
# Upload failed, alert the user and return to the previous page.
puts 'Error uploading meme to S3 on 2nd and final attempt.'
puts ex.message
flash[:error] = "Oh noes! There was an error saving your meme, please try again."
@meme.destroy
redirect_to :back
return
end
else
# Upload completed.
if user_signed_in?
# If the user is signed in then auto add an upvote from them.
Vote.new(user: current_user, meme: @meme, value: :up).save
end
if @meme.group
redirect_path = group_meme_path(@meme.group, @meme)
else
redirect_path = meme_path(@meme)
end
end
format.html { redirect_to redirect_path, notice: 'Meme was successfully created.' }
format.json { render action: 'show', status: :created, location: @meme }
else
format.html { render action: 'new' }
format.json { render json: @meme.errors, status: :unprocessable_entity }
end
end
end
# DELETE /memes/1
# DELETE /memes/1.json
def destroy
@meme.destroy
respond_to do |format|
format.html { redirect_to memes_url, notice: 'Meme was successfully deleted.' }
format.json { head :no_content }
end
end
private
# Use callbacks to share common setup or constraints between actions.
def set_meme
@meme = Meme.find_by_key(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def meme_params
if params[:meme][:group_id] == "0" or params[:meme][:group_id] == 0
# The meme is to be public.
params[:meme].delete(:group_id)
end
params.require(:meme).permit(:context, :group_id)
end
def vote_params
params.require(:vote).permit(:meme, :user_id, :value)
end
def check_meme_group_permissions
@meme = Meme.find_by_key(params[:id])
@group = @meme.group
if !@group.nil? and (@group.visibility == "private") and (!current_user or (current_user and !current_user.groups.include?(@group)))
not_found_error
end
end
def check_meme_destroy_permission
@meme = Meme.find_by_key(params[:id])
if !current_user or (@meme.user_id != current_user.id and !current_user.admin)
forbidden_access_error
end
end
end
| Java |
<html>
<head>
<title>Docs For Class PHPExcel_Writer_Excel2007_ContentTypes</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr>
<td class="header_top">PHPExcel_Writer_Excel2007</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
<tr>
<td class="header_menu">
[ <a href="../classtrees_PHPExcel_Writer_Excel2007.html" class="menu">class tree: PHPExcel_Writer_Excel2007</a> ]
[ <a href="../elementindex_PHPExcel_Writer_Excel2007.html" class="menu">index: PHPExcel_Writer_Excel2007</a> ]
[ <a href="../elementindex.html" class="menu">all elements</a> ]
</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="200" class="menu">
<div id="todolist">
<p><a href="../todolist.html">Todo List</a></p>
</div>
<b>Packages:</b><br />
<a href="../li_PHPExcel.html">PHPExcel</a><br />
<a href="../li_com-tecnick-tcpdf.html">com-tecnick-tcpdf</a><br />
<a href="../li_JAMA.html">JAMA</a><br />
<a href="../li_Math_Stats.html">Math_Stats</a><br />
<a href="../li_PHPExcel_CachedObjectStorage.html">PHPExcel_CachedObjectStorage</a><br />
<a href="../li_PHPExcel_Calculation.html">PHPExcel_Calculation</a><br />
<a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br />
<a href="../li_PHPExcel_Reader.html">PHPExcel_Reader</a><br />
<a href="../li_PHPExcel_Reader_Excel5.html">PHPExcel_Reader_Excel5</a><br />
<a href="../li_PHPExcel_RichText.html">PHPExcel_RichText</a><br />
<a href="../li_PHPExcel_Settings.html">PHPExcel_Settings</a><br />
<a href="../li_PHPExcel_Shared.html">PHPExcel_Shared</a><br />
<a href="../li_PHPExcel_Shared_Best_Fit.html">PHPExcel_Shared_Best_Fit</a><br />
<a href="../li_PHPExcel_Shared_Escher.html">PHPExcel_Shared_Escher</a><br />
<a href="../li_PHPExcel_Shared_OLE.html">PHPExcel_Shared_OLE</a><br />
<a href="../li_PHPExcel_Style.html">PHPExcel_Style</a><br />
<a href="../li_PHPExcel_Worksheet.html">PHPExcel_Worksheet</a><br />
<a href="../li_PHPExcel_Worksheet_Drawing.html">PHPExcel_Worksheet_Drawing</a><br />
<a href="../li_PHPExcel_Writer.html">PHPExcel_Writer</a><br />
<a href="../li_PHPExcel_Writer_Excel5.html">PHPExcel_Writer_Excel5</a><br />
<a href="../li_PHPExcel_Writer_Excel2007.html">PHPExcel_Writer_Excel2007</a><br />
<br /><br />
<b>Files:</b><br />
<div class="package">
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Comments.php.html"> Comments.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---ContentTypes.php.html"> ContentTypes.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---DocProps.php.html"> DocProps.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Drawing.php.html"> Drawing.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007.php.html"> Excel2007.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Rels.php.html"> Rels.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---StringTable.php.html"> StringTable.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Style.php.html"> Style.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Theme.php.html"> Theme.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Workbook.php.html"> Workbook.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---Worksheet.php.html"> Worksheet.php
</a><br>
<a href="../PHPExcel_Writer_Excel2007/_PHPExcel---Writer---Excel2007---WriterPart.php.html"> WriterPart.php
</a><br>
</div><br />
<b>Classes:</b><br />
<div class="package">
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007.html">PHPExcel_Writer_Excel2007</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Comments.html">PHPExcel_Writer_Excel2007_Comments</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_ContentTypes.html">PHPExcel_Writer_Excel2007_ContentTypes</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_DocProps.html">PHPExcel_Writer_Excel2007_DocProps</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Drawing.html">PHPExcel_Writer_Excel2007_Drawing</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Rels.html">PHPExcel_Writer_Excel2007_Rels</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_StringTable.html">PHPExcel_Writer_Excel2007_StringTable</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Style.html">PHPExcel_Writer_Excel2007_Style</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Theme.html">PHPExcel_Writer_Excel2007_Theme</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Workbook.html">PHPExcel_Writer_Excel2007_Workbook</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_Worksheet.html">PHPExcel_Writer_Excel2007_Worksheet</a><br />
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_WriterPart.html">PHPExcel_Writer_Excel2007_WriterPart</a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1>Class: PHPExcel_Writer_Excel2007_ContentTypes</h1>
Source Location: /PHPExcel/Writer/Excel2007/ContentTypes.php<br /><br />
<table width="100%" border="0">
<tr><td valign="top">
<h3><a href="#class_details">Class Overview</a></h3>
<pre><a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_WriterPart.html">PHPExcel_Writer_Excel2007_WriterPart</a>
|
--PHPExcel_Writer_Excel2007_ContentTypes</pre><br />
<div class="description">PHPExcel_Writer_Excel2007_ContentTypes</div><br /><br />
<h4>Author(s):</h4>
<ul>
</ul>
<h4>Copyright:</h4>
<ul>
<li>Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)</li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_ContentTypes.html#methodwriteContentTypes">writeContentTypes</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_WriterPart.html">PHPExcel_Writer_Excel2007_WriterPart</a></h4>
<dl>
<dt>
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_WriterPart.html#methodgetParentWriter">PHPExcel_Writer_Excel2007_WriterPart::getParentWriter()</a>
</dt>
<dd>
Get parent IWriter object
</dd>
<dt>
<a href="../PHPExcel_Writer_Excel2007/PHPExcel_Writer_Excel2007_WriterPart.html#methodsetParentWriter">PHPExcel_Writer_Excel2007_WriterPart::setParentWriter()</a>
</dt>
<dd>
Set parent IWriter object
</dd>
</dl>
</div>
</td>
</tr></table>
<hr />
<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="../__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007ContentTypes.php.html#a36">36</a>]<br />
PHPExcel_Writer_Excel2007_ContentTypes<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>copyright:</b> </td><td>Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)</td>
</tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="methodwriteContentTypes"></a>
<h3>method writeContentTypes <span class="smalllinenumber">[line <a href="../__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007ContentTypes.php.html#a45">45</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>string writeContentTypes(
[
$pPHPExcel = null])</code>
</td></tr></table>
</td></tr></table><br />
Write content types to XML format<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>XML Output</td>
</tr>
<tr>
<td><b>throws:</b> </td><td>Exception</td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type"><a href="../PHPExcel/PHPExcel.html">PHPExcel</a> </td>
<td><b>$pPHPExcel</b> </td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
</div><br />
<div class="credit">
<hr />
Documentation generated on Thu, 26 Aug 2010 17:41:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html> | Java |
/**
* Javascript file for Category Show.
* It requires jQuery.
*/
function wpcs_gen_tag() {
// Category Show searches for term_id since 0.4.1 and not term slug.
// There is a need to add the id%% tag to be compatible with other versions
$("#wpcs_gen_tag").val("%%wpcs-"+$("#wpcs_term_dropdown").val()+"%%"+$("#wpcs_order_type").val()+$("#wpcs_order_by").val()+"%%id%%");
$("#wpcs_gen_tag").select();
$("#wpcs_gen_tag").focus();
} | Java |
# funkin-gonuts
http://youtu.be/BpJ26Q21y3g?t=1m50s
An attempt at a Go IRC Bot.
| Java |
//
// TextViewController.h
// Galary
//
// Created by joshuali on 16/6/24.
// Copyright © 2016年 joshuali. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TextViewController : UIViewController
@end
| Java |
# YNRefreshController
RefreshController in swift
| Java |
function mathGame(){
var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.auto, 'math', {
preload: onPreload,
create: onCreate,
// resize:onResize
});
WebFontConfig = {
active: function() { game.time.events.add(Phaser.Timer.SECOND, createText, this); },
google: {
families: ['Fredericka the Great']
}
};
var sumsArray = [];
var questionText;
var randomSum;
var timeTween;
var numberTimer;
var buttonMask;
var replay;
var score=0;
var scoreText;
var isGameOver = false;
var topScore;
var numbersArray = [-3,-2,-1,1,2,3];
function buildThrees(initialNummber,currentIndex,limit,currentString){
for(var i=0;i<numbersArray.length;i++){
var sum = initialNummber+numbersArray[i];
var outputString = currentString+(numbersArray[i]<0?"":"+")+numbersArray[i];
if(sum>0 && sum<4 && currentIndex==limit){
sumsArray[limit][sum-1].push(outputString);
}
if(currentIndex<limit){
buildThrees(sum,currentIndex+1,limit,outputString);
}
}
}
function onPreload() {
// responsiveScale();
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
game.load.image("timebar", "/images/math/timebar.png");
game.load.image("buttonmask", "/images/math/buttonmask.png");
game.load.spritesheet("buttons", "/images/math/buttons.png",400,50);
game.load.spritesheet('myguy', '/images/math/dance.png', 70, 120);
game.load.image("background", "/images/math/board2.png");
game.load.image("replay", "images/math/replay.png");
game.load.image("home", "images/home.png");
}
function onCreate() {
topScore = localStorage.getItem("topScore")==null?0:localStorage.getItem("topScore");
// game.stage.backgroundColor = "#cccccc";
chalkBoard = game.add.sprite(1100, 850,"background");
chalkBoard.x = 0;
chalkBoard.y = 0;
chalkBoard.height = game.height;
chalkBoard.width = game.width;
game.stage.disableVisibilityChange = true;
gameOverSprite = this.game.add.sprite(600, 300, 'myguy');
gameOverSprite.visible = false;
gameOverSprite.frame = 0;
gameOverSprite.animations.add('left', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13], 10, true);
replay = game.add.button(game.width*.6, game.height*.1,"replay",replay,this);
replay.visable = false;
home = game.add.button(game.width*.75, game.height*.1, 'home', function onClick(){window.location.href ="/home"});
home.scale.setTo(0.2,0.2);
for(var i=1;i<5;i++){
sumsArray[i]=[[],[],[]];
for(var j=1;j<=3;j++){
buildThrees(j,1,i,j);
}
}
questionText = game.add.text(game.width*.5,game.height*.3,"-");
questionText.anchor.set(0.5);
scoreText = game.add.text(game.width*.1,game.height*.10,"-");
for(var i=0;i<3;i++){
var numberButton = game.add.button(game.width*.3,game.height*.4+i*75,"buttons",checkAnswer,this).frame=i;
}
numberTimer = game.add.sprite(game.width*.3,game.height*.4,"timebar");
nextNumber();
}
function createText() {
questionText.font = 'Fredericka the Great';
questionText.fontSize = 37;
questionText.addColor('#edf0f3',0);
scoreText.font = 'Fredericka the Great';
scoreText.fontSize = 37;
scoreText.addColor('#edf0f3',0);
};
function gameOver(gameOverString){
// game.stage.backgroundColor = "#ff0000";
console.log(gameOverString)
questionText.text = "Wrong Answer!";
questionText.addColor('#ff471a',0);
isGameOver = true;
localStorage.setItem("topScore",Math.max(score,topScore));
numberTimer.destroy();
buttonMask.destroy();
replay.visible = true;
// gameOverSprite.visible = true;
// gameOverSprite.animations.play('left');
}
function checkAnswer(button){
var correctAnswer;
if(!isGameOver){
if(button.frame==randomSum){
score+=Math.floor((buttonMask.x+350)/4);
nextNumber();
}
else{
if(score>0) {
timeTween.stop();
}
correctAnswer = randomSum;
gameOver(correctAnswer);
}
}
}
function replay(){
$("#math").html("");
mathGame();
}
function nextNumber(){
scoreText.text = "Score: "+score.toString()+"\nBest Score: "+topScore.toString();
if(buttonMask){
buttonMask.destroy();
game.tweens.removeAll();
}
buttonMask = game.add.graphics(game.width*.3,game.height*.4);
buttonMask.beginFill(0xffffff);
buttonMask.drawRect(0, 0, 400, 200);
buttonMask.endFill();
numberTimer.mask = buttonMask;
if(score>0){
timeTween=game.add.tween(buttonMask);
timeTween.to({
x: -350
}, 9000, "Linear",true);
timeTween.onComplete.addOnce(function(){
gameOver("?");
}, this);
}
randomSum = game.rnd.between(0,2);
questionText.text = sumsArray[Math.min(Math.round((score-100)/400)+1,4)][randomSum][game.rnd.between(0,sumsArray[Math.min(Math.round((score-100)/400)+1,4)][randomSum].length-1)];
}
}
// }
| Java |
package com.javarush.test.level14.lesson08.bonus03;
/**
* Created by Алексей on 12.04.2014.
*/
public class Singleton
{
private static Singleton instance;
private Singleton()
{
}
public static Singleton getInstance()
{
if ( instance == null )
{
instance = new Singleton();
}
return instance;
}
}
| Java |
// Copyright (c) Rotorz Limited. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root.
namespace Rotorz.Games.Collections
{
/// <summary>
/// Can be implemented along with <see cref="IReorderableListAdaptor"/> when drop
/// insertion or ordering is desired.
/// </summary>
/// <remarks>
/// <para>This type of "drop" functionality can occur when the "drag" phase of the
/// drag and drop operation was initiated elsewhere. For example, a custom
/// <see cref="IReorderableListAdaptor"/> could insert entirely new items by
/// dragging and dropping from the Unity "Project" window.</para>
/// </remarks>
/// <see cref="IReorderableListAdaptor"/>
public interface IReorderableListDropTarget
{
/// <summary>
/// Determines whether an item is being dragged and that it can be inserted
/// or moved by dropping somewhere into the reorderable list control.
/// </summary>
/// <remarks>
/// <para>This method is always called whilst drawing an editor GUI.</para>
/// </remarks>
/// <param name="insertionIndex">Zero-based index of insertion.</param>
/// <returns>
/// A value of <c>true</c> if item can be dropped; otherwise <c>false</c>.
/// </returns>
/// <see cref="UnityEditor.DragAndDrop"/>
bool CanDropInsert(int insertionIndex);
/// <summary>
/// Processes the current drop insertion operation when <see cref="CanDropInsert(int)"/>
/// returns a value of <c>true</c> to process, accept or cancel.
/// </summary>
/// <remarks>
/// <para>This method is always called whilst drawing an editor GUI.</para>
/// <para>This method is only called when <see cref="CanDropInsert(int)"/>
/// returns a value of <c>true</c>.</para>
/// </remarks>
/// <param name="insertionIndex">Zero-based index of insertion.</param>
/// <see cref="ReorderableListGUI.CurrentListControlID"/>
/// <see cref="UnityEditor.DragAndDrop"/>
void ProcessDropInsertion(int insertionIndex);
}
}
| Java |
# Rspec Thinking Sphinx matchers
[](https://travis-ci.org/Govinda-Fichtner/rspec-thinking-sphinx-matchers)
Test your Thinking Sphinx 3 index defintions with the custom rspec matchers of this gem.
If you are still using Thinking Sphinx 2 have a look at https://github.com/fuzzyalej/thinking-sphinx-rspec-matchers
I would appreciate feedback very much, in the form of comments, code and/or beer! :-)
# Installation
To install the matchers you only have to add the gem to your test group in `Gemfile`:
group :test do
gem 'rspec-thinking-sphinx-matchers'
end
And then execute:
$ bundle
# Use
describe "fields" do
it { should index :name, :from => :client, :as => :client_name }
it { should index :content }
end
describe "attributes" do
it { should have_attribute :user_id, :as => :users }
end
Field options
:from
:as
:facet
:sortable
Attribute Field options
:from
:as
:facet
# Testing
If you are feeling brave and want to test the gem, simply issue a `bundle exec rspec`. Contributions and enhancements and mostly welcomed!
# References
[1] https://github.com/fuzzyalej/thinking-sphinx-rspec-matchers
[2] http://openmonkey.com/2009/07/19/thinking-sphinx-rspec-matchers/
[3] https://gist.github.com/21755
# Credits
Thanks to Pal Allan from http://freelancing-gods.com/ for creating Thinking Sphinx!
Thanks to Alejandro Andrés for the rspec matchers for ThinkingSphinx v2.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
| Java |
'use strict';exports.__esModule = true;var _stringify = require('babel-runtime/core-js/json/stringify');var _stringify2 = _interopRequireDefault(_stringify);var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);var _inherits2 = require('babel-runtime/helpers/inherits');var _inherits3 = _interopRequireDefault(_inherits2);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _class = function (_think$controller$bas) {(0, _inherits3.default)(_class, _think$controller$bas);function _class() {(0, _classCallCheck3.default)(this, _class);return (0, _possibleConstructorReturn3.default)(this, _think$controller$bas.apply(this, arguments));}
/**
* some base method in here
*/_class.prototype.
get = function get(key) {
if (key == undefined) {
return this.http._get;
}
return this.http._get[key];
};_class.prototype.
post = function post(key) {
if (key == undefined) {
return this.http._post;
}
return this.http._post[key];
};_class.prototype.
getCookie = function getCookie(key) {
if (key == undefined) {
return '';
}
return this.http._cookie;
};_class.prototype.
setCookie = function setCookie(key, val) {
if (typeof val !== 'string') {
val = (0, _stringify2.default)(val);
}
return this.http._cookie[key] = val;
};_class.prototype.
apiErrorHandle = function apiErrorHandle(errno) {
var API_ERROR_MSG_TABLE = {
// user
'101': '用户未登录',
'102': '用户密码错误',
'111': '密码不一致',
// category
'3000': 'Category name is empty' };
var msg = API_ERROR_MSG_TABLE[errno] || 'system error';
console.log(msg);
this.fail(errno, msg);
};return _class;}(think.controller.base);exports.default = _class; | Java |
# Die Class 2: Arbitrary Symbols
# I worked on this challenge [by myself, with: ].
# I spent [#] hours on this challenge.
# Pseudocode
# Input: array of strings
# Output: random selection from the array
# Steps: initialize the die with a non-empty array
# define a method that finds the number of sides (strings in the array)
# define a method that rolls and returns a random string from the die array
# Initial Solution
class Die
def initialize(labels)
if labels == []
raise ArgumentError.new("Please enter a valid array of strings to set up the die")
end
@sides = labels.length
@labels = labels
end
def sides
@sides
end
def roll
p @labels[rand(@sides)]
end
end
# dice = Die.new(["3"])
# #p dice
# #p dice.sides
# #dice.roll
# Refactored Solution
#nothing to refactor
# # Reflection
# What were the main differences between this die class and the last one you created in terms of implementation? Did you need to change much logic to get this to work?
# # Very similiar in implementation, the biggest things that changed were:
# 1) the syntax for the error check in intialize now looking for an empty string instead of a particular value
# 2) needing to declare another instance variable for the labels themselves so we could call them again later during the roll
# 3) changing the roll method to run rand instead the index call for the @labels array
# What does this exercise teach you about making code that is easily changeable or modifiable?
# super helpful that the solution from the last exercise was easily changeable as it took far less time this week to just build on top of it.
# What new methods did you learn when working on this challenge, if any? none
# What concepts about classes were you able to solidify in this challenge? usage of the instance variables to make available information to class methods. | Java |
// +build !windows
package native
import "github.com/itchio/butler/endpoints/launch"
func handleUE4Prereqs(params launch.LauncherParams) error {
// nothing to worry about on non-windows platforms
return nil
}
| Java |
package com.ntlx.exception;
public class BoardNotFoundException extends KanbanException {
private static final long serialVersionUID = 1L;
private int boardId;
public BoardNotFoundException (int boardId) {
this.boardId = boardId;
}
public String getMessage() {
return "Board not found. (ID: " + boardId + ")";
}
}
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.