answer
stringlengths 15
1.25M
|
|---|
<?php
namespace YaoiTests\PHPUnit\Storage;
use Yaoi\Storage;
use Yaoi\Storage\Contract\Expire;
use Yaoi\Storage\Contract\ExportImportArray;
use Yaoi\Test\PHPUnit\TestCase;
abstract class TestStorageBasic extends TestCase
{
/**
* @var Storage
*/
protected $storage;
public function testTtl()
{
if (!$this->storage->getDriver() instanceof Expire) {
return;
}
$key = 'test-key';
$value = 'the-value';
$this->storage->set($key, $value, 10);
$this->assertSame($value, $this->storage->get($key));
$this->storage->set($key, $value, 10);
$this->assertSame(true, $this->storage->keyExists($key));
$this->storage->set($key, $value, -1);
$this->assertSame(null, $this->storage->get($key));
$this->storage->set($key, $value, -1);
$this->assertSame(false, $this->storage->keyExists($key));
}
public function testScalar()
{
$key = 'test-key';
$key2 = array('test-key2', 'sub1', 'sub2');
$value = 'the-value';
$value2 = 'the-value-2';
$this->storage->set($key, $value);
$this->assertSame($value, $this->storage->get($key));
$this->storage->set($key, $value2);
$this->assertSame($value2, $this->storage->get($key));
$this->storage->delete($key);
$this->assertSame(null, $this->storage->get($key));
$this->storage->set($key, $value);
$this->storage->set($key2, $value);
$this->assertSame($value, $this->storage->get($key));
$this->assertSame($value, $this->storage->get($key2));
$this->storage->deleteAll();
$this->assertSame(null, $this->storage->get($key));
$this->assertSame(null, $this->storage->get($key2));
}
public function testStrictNumeric()
{
$this->storage->set('test', 123123);
$this->assertSame(123123, $this->storage->get('test'));
$this->storage->set('test', '123123');
$this->assertSame('123123', $this->storage->get('test'));
}
public function testArrayIO()
{
if (!$this->storage->getDriver() instanceof ExportImportArray) {
return;
}
$this->storage->importArray(array('a' => 1, 'b' => 2, 'c' => 3));
$this->storage->set('d', 4);
$this->assertSame(array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4), $this->storage->exportArray());
}
}
|
#include <xc.h>
#include <system.h>
#include <system_config.h>
#include <usb/usb.h>
// PIC24FJ64GB002 Configuration Bit Settings
#include <xc.h>
// CONFIG4
#pragma config DSWDTPS = DSWDTPS3 // DSWDT Postscale Select (1:128 (132 ms))
#pragma config DSWDTOSC = LPRC // Deep Sleep Watchdog Timer Oscillator Select (DSWDT uses Low Power RC Oscillator (LPRC))
#pragma config RTCOSC = SOSC // RTCC Reference Oscillator Select (RTCC uses Secondary Oscillator (SOSC))
#pragma config DSBOREN = OFF // Deep Sleep BOR Enable bit (BOR disabled in Deep Sleep)
#pragma config DSWDTEN = OFF // Deep Sleep Watchdog Timer (DSWDT disabled)
// CONFIG3
#pragma config WPFP = WPFP0 // Write Protection Flash Page Segment Boundary (Page 0 (0x0))
#pragma config SOSCSEL = IO // Secondary Oscillator Pin Mode Select (SOSC pins have digital I/O functions (RA4, RB4))
#pragma config WUTSEL = LEG // Voltage Regulator Wake-up Time Select (Default regulator start-up time used)
#pragma config WPDIS = WPDIS // Segment Write Protection Disable (Segmented code protection disabled)
#pragma config WPCFG = WPCFGDIS // Write Protect Configuration Page Select (Last page and Flash Configuration words are unprotected)
#pragma config WPEND = WPENDMEM // Segment Write Protection End Page Select (Write Protect from WPFP to the last page of memory)
// CONFIG2
#pragma config POSCMOD = XT // Primary Oscillator Select (XT Oscillator mode selected)
#pragma config I2C1SEL = PRI // I2C1 Pin Select bit (Use default SCL1/SDA1 pins for I2C1 )
#pragma config IOL1WAY = OFF // IOLOCK One-Way Set Enable (The IOLOCK bit can be set and cleared using the unlock sequence)
#pragma config OSCIOFNC = ON // OSCO Pin Configuration (OSCO pin functions as port I/O (RA3))
#pragma config FCKSM = CSDCMD // Clock Switching and Fail-Safe Clock Monitor (Sw Disabled, Mon Disabled)
#pragma config FNOSC = PRIPLL // Initial Oscillator Select (Primary Oscillator with PLL module (XTPLL, HSPLL, ECPLL))
#pragma config PLL96MHZ = ON // 96MHz PLL Startup Select (96 MHz PLL Startup is enabled automatically on start-up)
#pragma config PLLDIV = DIV2 // USB 96 MHz PLL Prescaler Select (Oscillator input divided by 2 (8 MHz input))
#pragma config IESO = OFF // Internal External Switchover (IESO mode (Two-Speed Start-up) disabled)
// CONFIG1
#pragma config WDTPS = PS1 // Watchdog Timer Postscaler (1:1)
#pragma config FWPSA = PR32 // WDT Prescaler (Prescaler ratio of 1:32)
#pragma config WINDIS = OFF // Windowed WDT (Standard Watchdog Timer enabled,(Windowed-mode is disabled))
#pragma config FWDTEN = OFF // Watchdog Timer (Watchdog Timer is disabled)
#pragma config ICS = PGx1 // Emulator Pin Placement Select bits (Emulator functions are shared with PGEC1/PGED1)
#pragma config GWRP = OFF // General Segment Write Protect (Writes to program memory are allowed)
#pragma config GCP = OFF // General Segment Code Protect (Code protection is disabled)
#pragma config JTAGEN = OFF // JTAG Port Enable (JTAG port is disabled)
void SYSTEM_Initialize( SYSTEM_STATE state )
{
//On the PIC24FJ64GB004 Family of USB microcontrollers, the PLL will not power up and be enabled
//by default, even if a PLL enabled oscillator configuration is selected (such as HS+PLL).
//This allows the device to power up at a lower initial operating frequency, which can be
//advantageous when powered from a source which is not gauranteed to be adequate for 32MHz
//operation. On these devices, user firmware needs to manually set the CLKDIV<PLLEN> bit to
//power up the PLL.
{
unsigned int pll_startup_counter = 600;
CLKDIVbits.PLLEN = 1;
while(pll_startup_counter
}
switch(state)
{
case <API key>:
<API key>(<API key>);
break;
case <API key>:
LED_Enable(<API key>);
//also setup UART here
<API key>(<API key>);
//timwuu 2015.04.11 LCD_CursorEnable(true);
<API key>(<API key>);
break;
}
}
void __attribute__((interrupt,auto_psv)) _USB1Interrupt()
{
<API key>();
}
|
jQuery(document).ready(function() {
$('.alert-close').bind('click', function() {
$(this).parent().fadeOut(100);
});
function <API key>(selector, delay) {
var alert = $(selector).alert();
window.setTimeout(function() { alert.alert('close') }, delay);
}
<API key>(".alert", 20000);
});
|
<API key>.StepDefinitions.test3(function () {
var And = Given = When = Then = this.defineStep,
runner;
Given(/^test3$/, function(callback) {
callback();
});
When(/^test3$/, function(callback) {
callback();
});
Then(/^test3$/, function(callback) {
callback();
});
});
|
.styleSans721.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 721.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 12pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans204.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 204.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 1.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans67.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 67.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans48.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 48.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans56.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 56.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans38.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 38.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans722.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 722.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans31.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 31.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans789.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 789.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans199.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 199.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans2.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 2.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans22.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 22.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans13.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 13.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans59.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 59.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans240.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 240.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans7.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 7.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans6.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 6.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 8.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans5.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 5.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans4.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 4.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 11.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans558.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 558.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
|
'use strict';
var run = require('./helpers').runMochaJSON;
var assert = require('assert');
describe('.only()', function() {
describe('bdd', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/bdd.fixture.js', ['--ui', 'bdd'], function(err, res) {
if (err) {
done(err);
return;
}
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 11);
assert.equal(res.stats.failures, 0);
assert.equal(res.code, 0);
done();
});
});
});
describe('tdd', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/tdd.fixture.js', ['--ui', 'tdd'], function(err, res) {
if (err) {
done(err);
return;
}
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 8);
assert.equal(res.stats.failures, 0);
assert.equal(res.code, 0);
done();
});
});
});
describe('qunit', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/qunit.fixture.js', ['--ui', 'qunit'], function(
err,
res
) {
if (err) {
done(err);
return;
}
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 5);
assert.equal(res.stats.failures, 0);
assert.equal(res.code, 0);
done();
});
});
});
});
|
# Linux Kernel Module
This is simple kernel linux module:
To compile this module:
***make -C /lib/modules/$(uname -r)/build M=$PWD***
Load module:
***insmod modulo.ko***
Unload module:
***rmmod modulo.ko***
You can run the follow command to see the log messages:
***dmesg***
|
import { ComponentRef, DebugElement } from '@angular/core';
import { ComponentFixture } from '@angular/core/testing';
export function doClassesMatch(resultClasses: DOMTokenList, expectedClasses: string[]): boolean {
let classesMatch = true;
let currentClass: string = null;
for (let i = 0; i < expectedClasses.length; i++) {
currentClass = expectedClasses[i];
classesMatch = resultClasses.contains(currentClass);
if (!classesMatch) {
break;
}
}
return classesMatch;
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Amigoo Secreto - Sorteio</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/principal.css">
<script type="text/javascript" src="js/angular.js"></script>
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/sorteio.js"></script>
</head>
<body ng-app="sorteio">
<div id="container" ng-controller="SorteioController as controller">
<h1>Sorteio</h1>
<a href="{{path}}/static/index.html">Página Inicial</a>
<br><br>
<div id="messages"></div>
<ul>
<li ng-repeat="person in persons">
{{person.name}} saiu com {{person.friendName}}
</li>
</ul>
</div>
</body>
</html>
|
<!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 - T13203775423 </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="<API key> 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="2010-04-30 19:00:00 -0500">
<a class="u-url dates" href="/2010/04/30/t13203775423.html">April 30, 2010</a>
</time>
</h2>
</header>
<section class="e-content post-body">
<p>Life’s tough when you’re 8 months old. <a href="http://yfrog.com/5878fj">yfrog.com/5878fj</a></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>
|
# Configure SSO Integration for Dropbox
The Dropbox [Single Sign-on (SSO)](https:
|
package com.rrajath.orange;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean <API key>(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection <API key>
if (id == R.id.action_settings) {
return true;
}
return super.<API key>(item);
}
}
|
Oct 18, 2013
- Use the default Redis maxmemory policy, volatile-lru instead of volatile-ttl
- Create user activity if failed password match occurs for Basic auth
Oct 17, 2013
- Increment task ID using Redis incr command
Oct 16, 2013
- Basic and Token authentication comply with rfc dealing with realm param.
Oct 13, 2013
- Add categories to tasks
Oct 12, 2013
- Requests now use a Redis connection pool
- Expose server config as global
- Add time to uuid when generating tokens
Oct 09, 2013
- Add device set retrieval handler
- Add activities retrieval handler
- Add handlers to retrieve tasks
- Complete task removal handler
- When removing user remove tasks
- Complete task creation handler
- Complete update task handler
Oct 06, 2013
- Complete remove user handler
- Implement user and device removal
- Complete all device handlers
- Complete user activity logging
Oct 05, 2013
- Complete user create handler
- Complete update user handler
- Complete get user handler
- Token struct to manage tokens
- Remove option to authenticate with query param
- Implement Basic and Token authentications
- Implement user and device retrieval
Oct 04, 2013
- Replace Validate with Validations and add HandlerValidations to manage HTTP
- Add db code to validate and save user data
Oct 03, 2013
- Add code to connect to the Redis db
Sep 24, 2013
- Create routing mechanisms
- Add validation errors
- Add validation function
- Add user create handler that validates data
Sep 21, 2013
- Create upstart scripts for moln and redis
- db directory now data
- log files have .log
- add dev script replacing setup
- add deploy script
- move not found handler calls to main server handler
Sep 19, 2013
- Refactor configurations
- Use Procfiles to run servers
- Setup script should only create log dir if superuser
- Get server config depending on environment
- Add router and basic http server
|
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";
}
}
|
<!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>
|
<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>
|
module.exports = require('eden-class').extend(function() {
this._table = null;
this._where = [];
this.___construct = function(table) {
this.argument().test(1, 'string', 'undef');
if(typeof table === 'string') {
this.setTable(table);
}
};
/**
* 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;
};
}).register('eden/mysql/delete');
|
<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>
|
<?php
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;
}
|
@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
|
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/<API key>.js', 'ClientFunction in assertions');
});
it('Should execute Selectors in sync mode', async () => {
await runTests('testcafe-fixtures/<API key>.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;
});
});
|
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)
}
}
}
|
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;
}
|
<!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 <API key> 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=<API key>"
}
</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:
</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>
|
<!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 <API key> 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")}
"<API key>" {(>= "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 <API key>.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:
- <API key> -> 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 <API key>.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:
</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>
|
<!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=<SHA256-like>"
}
</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:
</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>
|
<?php
return array (
'id' => '<API key>',
'fallback' => 'mot_v3i_ver1',
'capabilities' =>
array (
),
);
|
<?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:
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http:
<translation>
Це програмне забезпечення є експериментальним.
Поширюється за ліцензією MIT/X11, додаткова інформація міститься у файлі COPYING, а також за адресою http:
Цей продукт включає в себе програмне забезпечення, розроблене в рамках проекту OpenSSL (http:
</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. <API key>)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Введіть мітку для цієї адреси для додавання її в адресну книгу</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Мітка:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Вибрати адресу з адресної книги</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Вставити адресу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation>Видалити цього отримувача</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a GoobyCoin address (e.g. <API key>)</source>
<translation>Введіть адресу GoobyCoin (наприклад <API key>)</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Підписи - Підпис / Перевірка повідомлення</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&Підписати повідомлення</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. <API key>)</source>
<translation>Введіть адресу GoobyCoin (наприклад <API key>)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>Вибрати адресу з адресної книги</translation>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>Вставити адресу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Введіть повідомлення, яке ви хочете підписати тут</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>Підпис</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. <API key>)</source>
<translation>Введіть адресу GoobyCoin (наприклад <API key>)</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="../<API key>.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a GoobyCoin address (e.g. <API key>)</source>
<translation>Введіть адресу GoobyCoin (наприклад <API key>)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Натисніть кнопку «Підписати повідомлення», для отримання підпису</translation>
</message>
<message>
<location line="+3"/>
<source>Enter 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><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="+14"/>
<source>Transaction details</source>
<translation>Деталі транзакції</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Даний діалог показує детальну статистику по вибраній транзакції</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../<API key>.cpp" line="+225"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адреса</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Кількість</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><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>
|
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 <API key>(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",
<API key>: "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",
<API key>: "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,
<API key>: 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.<API key> != file.<API key> {
t.Fatalf("Unexpected image exif <API key>: %s != %s", metadata.EXIF.<API key>, file.<API key>)
}
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.<API key> != file.<API key> {
t.Fatalf("Unexpected image exif <API key>: %d != %d", metadata.EXIF.<API key>, file.<API key>)
}
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 <API key>(t *testing.T) {
files := []struct {
name string
}{
{"test.jpg"},
{"test.png"},
{"test.webp"},
}
for _, file := range files {
supported, err := <API key>(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").<API key>()
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
}
|
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());
}
}
}
}
|
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))
}))
|
<?php
namespace Guardian\User\Caller;
use Assert\Assertion;
use Guardian\Caller\HasLoginToken;
use Guardian\User\Caller;
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 <API key> 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 \<API key>(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];
}
}
}
|
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
|
using System;
using System.Runtime.InteropServices;
namespace Noesis
{
[<API key>(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.<API key>(); }
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.<API key>.Pending) throw NoesisGUI_PINVOKE.<API key>.Retrieve();
#endif
return ret;
}
}
}
|
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()
|
<?php
namespace Enhavo\Bundle\FormBundle\Form\Type;
use Enhavo\Bundle\FormBundle\Form\Helper\<API key>;
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 <API key>($options['parent_property']);
$builder->build($choices);
$view->vars['choice_tree_builder'] = $builder;
$view->vars['<API key>'] = $options['<API key>'];
}
public function finishView(FormView $view, FormInterface $form, array $options)
{
$builder = $view->vars['choice_tree_builder'];
if($builder instanceof <API key>) {
$builder->map($view);
}
if(!$options['expanded']) {
$view->vars['choices'] = $builder->getChoiceViews();
}
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'parent_property' => 'parent',
'<API key>' => '<API key>',
]);
}
public function getBlockPrefix()
{
return 'entity_tree';
}
public function getParent()
{
return EntityType::class;
}
}
|
/* 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}
|
// @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>
)
}
}
|
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.
|
'''
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)
]
)
|
import { TurbolinksTestCase } from "./helpers/<API key>"
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: <API key> } = await this.nextEventNamed("turbolinks:before-visit")
this.assert.equal(<API key>, 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()
|
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 <API key>(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 <API key><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 <API key>(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 <API key>(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, <API key>>>
<API key> =
new Dictionary<GitErrorCode, Func<string, GitErrorCode, GitErrorCategory, <API key>>>
{
{ GitErrorCode.User, (m, r, c) => new <API key>(m, r, c) },
{ GitErrorCode.BareRepo, (m, r, c) => new <API key>(m, r, c) },
{ GitErrorCode.Exists, (m, r, c) => new <API key>(m, r, c) },
{ GitErrorCode.<API key>, (m, r, c) => new <API key>(m, r, c) },
{ GitErrorCode.UnmergedEntries, (m, r, c) => new <API key>(m, r, c) },
{ GitErrorCode.NonFastForward, (m, r, c) => new <API key>(m, r, c) },
{ GitErrorCode.MergeConflict, (m, r, c) => new <API key>(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, <API key>> exceptionBuilder;
if (!<API key>.TryGetValue((GitErrorCode)result, out exceptionBuilder))
{
exceptionBuilder = (m, r, c) => new <API key>(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 <API key>(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, <API key>> exceptionBuilder;
if (string.Equals("HEAD", identifier, StringComparison.Ordinal))
{
exceptionBuilder = m => new <API key>(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="<API key>"/> from a message.</param>
public static void GitObjectIsNotNull(
GitObject gitObject,
string identifier,
Func<string, <API key>> exceptionBuilder)
{
if (gitObject != null)
{
return;
}
throw exceptionBuilder(string.Format(CultureInfo.InvariantCulture,
"No valid git object identified by '{0}' exists in the repository.",
identifier));
}
}
}
|
// 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;
}
}
|
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']);
});
|
<?php
namespace TodoListBundle\Repository;
use TodoListBundle\Entity\Todo;
use TodoListBundle\Google\Client;
use <API key>;
use <API key>;
class <API key> implements ITodoRepository
{
/**
* @var <API key>
*/
private $taskService;
private $todoRepository;
private function convertTask2Todo(<API key> $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 <API key>();
$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());
}
}
|
<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/<API key>.htm">Boolean</a> _<div> Implements <a href="log4net.Core.<API key>.IsTriggeringEvent.html"><API key>.IsTriggeringEvent</a></div></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/<API key>.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.<API key>.IsTriggeringEvent.html"><API key>.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:<API key>" 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:
</body>
</html>
|
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 {
-<API key>: optimizeLegibility;
-moz-text-rendering: optimizeLegibility;
-ms-text-rendering: optimizeLegibility;
-o-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
}
body {
-<API key>: 100%;
-<API key>: 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;
}
|
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// Template Source: Templates\CSharp\Requests\<API key>.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
<summary>
The type <API key>.
</summary>
public partial class <API key> : <API key><<API key>>, <API key>
{
<summary>
Constructs a new <see cref="<API key>"/>.
</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 <API key>(
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 <API key> CreateRequest(string functionUrl, IEnumerable<Option> options)
{
var request = new <API key>(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;
}
}
}
|
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:
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:
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>
|
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 <API key> = 0x7f010085;
public static final int <API key> = 0x7f010087;
public static final int <API key> = 0x7f010086;
public static final int <API key> = 0x7f010084;
public static final int <API key> = 0x7f010089;
public static final int <API key> = 0x7f010088;
public static final int <API key> = 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 <API key> = 0x7f07000c;
public static final int <API key> = 0x7f070003;
public static final int <API key> = 0x7f070005;
public static final int <API key> = 0x7f070006;
public static final int <API key> = 0x7f070004;
public static final int <API key> = 0x7f07000b;
public static final int <API key> = 0x7f070007;
public static final int <API key> = 0x7f070009;
public static final int <API key> = 0x7f07000a;
public static final int <API key> = 0x7f070008;
public static final int <API key> = 0x7f070020;
public static final int <API key> = 0x7f070021;
public static final int <API key> = 0x7f070012;
public static final int <API key> = 0x7f07000d;
public static final int <API key> = 0x7f070013;
public static final int <API key> = 0x7f07000f;
public static final int <API key> = 0x7f07000e;
public static final int <API key> = 0x7f070011;
public static final int <API key> = 0x7f070010;
public static final int <API key> = 0x7f070017;
public static final int <API key> = 0x7f070016;
public static final int <API key> = 0x7f070015;
public static final int <API key> = 0x7f070014;
public static final int <API key> = 0x7f070018;
public static final int <API key> = 0x7f070019;
public static final int <API key> = 0x7f070022;
public static final int <API key> = 0x7f070023;
}
public static final class drawable {
public static final int <API key> = 0x7f02006c;
public static final int <API key> = 0x7f02006d;
public static final int <API key> = 0x7f02006e;
public static final int <API key> = 0x7f02006f;
public static final int <API key> = 0x7f020070;
public static final int <API key> = 0x7f020071;
public static final int <API key> = 0x7f020072;
public static final int <API key> = 0x7f020073;
public static final int <API key> = 0x7f020074;
public static final int <API key> = 0x7f020075;
public static final int <API key> = 0x7f020076;
public static final int <API key> = 0x7f020077;
public static final int <API key> = 0x7f020078;
public static final int <API key> = 0x7f020079;
public static final int <API key> = 0x7f02007a;
public static final int <API key> = 0x7f02007b;
public static final int <API key> = 0x7f02007c;
public static final int <API key> = 0x7f02007d;
public static final int <API key> = 0x7f02007e;
public static final int <API key> = 0x7f02007f;
public static final int <API key> = 0x7f020080;
public static final int <API key> = 0x7f020081;
public static final int <API key> = 0x7f020082;
public static final int <API key> = 0x7f020083;
public static final int <API key> = 0x7f02008d;
public static final int <API key> = 0x7f02008e;
public static final int <API key> = 0x7f02008f;
public static final int <API key> = 0x7f020090;
public static final int <API key> = 0x7f02009f;
public static final int <API key> = 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 <API key> = 0x7f090001;
}
public static final class string {
public static final int <API key> = 0x7f0a000e;
public static final int <API key> = 0x7f0a000f;
public static final int <API key> = 0x7f0a0010;
public static final int <API key> = 0x7f0a0011;
public static final int <API key> = 0x7f0a0012;
public static final int <API key> = 0x7f0a000d;
public static final int <API key> = 0x7f0a001e;
public static final int <API key> = 0x7f0a001d;
public static final int <API key> = 0x7f0a001c;
public static final int <API key> = 0x7f0a0017;
public static final int <API key> = 0x7f0a001b;
public static final int <API key> = 0x7f0a0019;
public static final int <API key> = 0x7f0a001a;
public static final int <API key> = 0x7f0a0018;
public static final int <API key> = 0x7f0a0024;
public static final int <API key> = 0x7f0a0023;
public static final int <API key> = 0x7f0a0016;
public static final int <API key> = 0x7f0a0022;
public static final int <API key> = 0x7f0a0021;
public static final int <API key> = 0x7f0a0014;
public static final int <API key> = 0x7f0a0015;
public static final int <API key> = 0x7f0a0013;
public static final int <API key> = 0x7f0a0025;
public static final int <API key> = 0x7f0a0028;
public static final int <API key> = 0x7f0a0027;
public static final int <API key> = 0x7f0a0026;
public static final int <API key> = 0x7f0a0029;
public static final int <API key> = 0x7f0a0020;
public static final int <API key> = 0x7f0a001f;
public static final int <API key> = 0x7f0a002a;
public static final int <API key> = 0x7f0a002b;
public static final int <API key> = 0x7f0a002c;
}
public static final class style {
public static final int Theme_IAPTheme = 0x7f0b007f;
public static final int <API key> = 0x7f0b0082;
public static final int <API key> = 0x7f0b0081;
public static final int <API key> = 0x7f0b0080;
public static final int <API key> = 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 <API key> = 1;
public static final int <API key> = 2;
public static final int <API key> = 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 <API key> = 7;
public static final int <API key> = 8;
public static final int <API key> = 9;
public static final int <API key> = 10;
public static final int <API key> = 11;
public static final int <API key> = 12;
public static final int <API key> = 13;
public static final int[] <API key> = { 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e };
public static final int <API key> = 1;
public static final int <API key> = 3;
public static final int <API key> = 2;
public static final int <API key> = 0;
public static final int[] WalletFragmentStyle = { 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089 };
public static final int <API key> = 3;
public static final int <API key> = 0;
public static final int <API key> = 2;
public static final int <API key> = 1;
public static final int <API key> = 6;
public static final int <API key> = 8;
public static final int <API key> = 7;
public static final int <API key> = 5;
public static final int <API key> = 10;
public static final int <API key> = 9;
public static final int <API key> = 4;
}
}
|
#!/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}
|
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',
'<API key>',
'<API key>',
'<API key>',
'<API key>',
'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
});
};
|
// Generated by class-dump 3.5 (64 bit).
#import "CDStructures.h"
#import "<API key>.h"
@class NSDate, NSString;
@interface <API key> : NSObject <<API key>>
{
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)<API key>:(unsigned long long)arg1;
- (BOOL)<API key>:(id)arg1;
// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;
@end
|
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<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="<API key>">
<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="<API key>.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="<API key>.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:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Value</b> () const </td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><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:<API key> inherit <API key>"><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#<API key>">IsUndefined</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><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#<API key>">IsNull</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsTrue</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsFalse</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><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#<API key>">IsString</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsSymbol</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsFunction</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsArray</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsObject</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsBoolean</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsNumber</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsExternal</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsInt32</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsUint32</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsDate</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsBooleanObject</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsNumberObject</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsStringObject</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsSymbolObject</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsNativeError</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsRegExp</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsArrayBuffer</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsArrayBufferView</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsTypedArray</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsUint8Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsUint8ClampedArray</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsInt8Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsUint16Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsInt16Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsUint32Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsInt32Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsFloat32Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsFloat64Array</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">IsDataView</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><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#<API key>">ToArrayIndex</a> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
bool </td><td class="memItemRight" valign="bottom"><b>BooleanValue</b> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
double </td><td class="memItemRight" valign="bottom"><b>NumberValue</b> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int64_t </td><td class="memItemRight" valign="bottom"><b>IntegerValue</b> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
uint32_t </td><td class="memItemRight" valign="bottom"><b>Uint32Value</b> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int32_t </td><td class="memItemRight" valign="bottom"><b>Int32Value</b> () const </td></tr>
<tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#<API key>">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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key> inherit <API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key> inherit <API key>"><td class="memTemplParams" colspan="2"><a class="anchor" id="<API key>"></a>
template<class T > </td></tr>
<tr class="memitem:<API key> inherit <API key>"><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:<API key> inherit <API key>"><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:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></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:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><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:<API key> inherit <API key>"><td class="memTemplParams" colspan="2"><a class="anchor" id="<API key>"></a>
template<class T > </td></tr>
<tr class="memitem:<API key> inherit <API key>"><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:<API key> inherit <API key>"><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 &
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|
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.
|
/**
* @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 <API key> () {
if (!_documentLocation) _documentLocation = new ecma.http.Location();
return _documentLocation;
}
this.HTTP_STATUS_NAMES = {
100: 'Continue',
101: 'SwitchingProtocols',
200: 'Ok',
201: 'Created',
202: 'Accepted',
203: 'Non<API key>,
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: 'Proxy<API key>,
408: 'RequestTimeout',
409: 'Conflict',
410: 'Gone',
411: 'LengthRequired',
412: 'PreconditionFailed',
413: '<API key>',
414: 'RequestURITooLong',
415: '<API key>',
416: '<API key>',
417: 'ExpectationFailed',
500: 'InternalServerError',
501: 'NotImplemented',
502: 'BadGateway',
503: 'ServiceUnavailable',
504: 'GatewayTimeout',
505: '<API key>'
};
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 || <API key>();
return loc1.isSameOrigin(loc2);
};
});
|
# -- 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
|
<?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-><API key>($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-><API key>($id);
$qComments = $this->comments-><API key>($id);
$tags = $this->questions->getTagsForQuestion($id);
$answers = $this->questions-><API key>($id);
foreach ($qComments as $c) {
$c->content = $this->textFilter->doFilter($c->content, 'markdown');
}
foreach($answers AS $a) {
$a->comments = $this->comments-><API key>($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);
}
}
?>
|
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
class <API key> < Radiant::Extension
version "0.1"
description "Small Reservation System"
url "http://github.com/simerom/<API key>"
define_routes do |map|
map.namespace :admin, :member => { :remove => :get } do |admin|
admin.resources :reservations, :reservation_items, :<API key>
end
end
def activate
admin.tabs.add "Reservations", "/admin/reservations", :after => "Layouts", :visibility => [:all]
end
def deactivate
admin.tabs.remove "Reservations"
end
end
|
// DZTextFieldStyle.h
// DZStyle
#import "DZViewStyle.h"
#import "DZTextStyle.h"
#define <API key>(initCode) DZStyleMake(initCode, DZTextFieldStyle)
#define <API key>(name , initCode) IMP_SHARE_STYLE(name , initCode, DZTextFieldStyle)
#define <API key>(name) EXTERN_SHARE_STYLE(name, DZTextFieldStyle);
@interface DZTextFieldStyle : DZViewStyle
@property (nonatomic, copy) DZTextStyle* textStyle;
@end
|
<?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@<API key>');
Router::any('employees/new-start-item/incomplete','Controllers\Employees@<API key>');
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('<API key>','Controllers\OperatingProcedures@index');
Router::any('<API key>/edit','Controllers\OperatingProcedures@edit');
Router::any('<API key>/view','Controllers\OperatingProcedures@view');
Router::any('<API key>/add','Controllers\OperatingProcedures@add');
Router::any('<API key>/delete','Controllers\OperatingProcedures@delete');
Router::any('<API key>/print','Controllers\OperatingProcedures@print_pdf');
Router::any('<API key>/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();
|
// 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();
}
|
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();
}
}
|
package org.asciicerebrum.neocortexengine.domain.events;
/**
*
* @author species8472
*/
public enum EventType {
/**
* Event thrown directly after the initialization of a new combat round.
*/
<API key>,
/**
* 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.
*/
<API key>,
/**
* The event thrown when the single attack misses.
*/
SINGLE_ATTACK_MISS,
/**
* The event thrown before a single attack is performed.
*/
SINGLE_ATTACK_PRE,
}
|
title: Bible now available for Mobile Phones
author: TQuizzle
layout: post
permalink: /archive/<API key>/
bitly_url:
- http://bit.ly/11zS2uE
bitly_hash:
- 11zS2uE
bitly_long_url:
- http:
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:
</li>
<li class="share-google-plus-1">
<a rel="nofollow" class="share-google-plus-1 sd-button share-icon" href="http:
</li>
<li class="share-facebook">
<a rel="nofollow" class="share-facebook sd-button share-icon" href="http:
</li>
<li class="share-custom">
<a rel="nofollow" class="share-custom sd-button share-icon" href="http:
</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:
</li>
<li class="share-reddit">
<a rel="nofollow" class="share-reddit sd-button share-icon" href="http:
</li>
<li class="share-end">
</li>
<li class="share-digg">
<a rel="nofollow" class="share-digg sd-button share-icon" href="http:
</li>
<li class="share-stumbleupon">
<a rel="nofollow" class="share-stumbleupon sd-button share-icon" href="http:
</li>
<li class="share-end">
</li>
<li class="share-email">
<a rel="nofollow" class="share-email sd-button share-icon" href="http:
</li>
<li class="share-print">
<a rel="nofollow" class="share-print sd-button share-icon" href="http:
</li>
<li class="share-end">
</li>
<li class="share-end">
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
|
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 <API key> {
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 <API key> = new Matrix4f();
private Matrix4f offset = createOffset();
private <API key> 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 <API key>(Camera camera) {
shader = new ShadowShader();
shadowBox = new ShadowBox(lightViewMatrix, camera);
shadowFbo = new ShadowFrameBuffer(SHADOW_MAP_SIZE, SHADOW_MAP_SIZE);
entityRenderer = new <API key>(shader, <API key>);
}
/**
* 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 <API key>() {
return Matrix4f.mul(offset, <API key>, 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 <API key>() {
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) {
<API key>(box.getWidth(), box.getHeight(), box.getLength());
<API key>(lightDirection, box.getCenter());
Matrix4f.mul(projectionMatrix, lightViewMatrix, <API key>);
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 <API key>(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 <API key>(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;
}
}
|
<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['<API key>']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','
ga('create', 'UA-61916780-1', 'auto');
ga('send', 'pageview');
</script>
|
<!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="<API key> 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>
|
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;
};
|
<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']);
|
#include "mesh_adapt.h"
#include "mesh_adj.h"
#include "mesh_mod.h"
#include "cavity_op.h"
static void <API key>(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];
<API key>(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);
}
|
# 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.
|
// 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 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;
|
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 <API key>(pagination, slice);
}
@GetMapping("{id}")
public Response<T> detail(@PathVariable("id") Long id) {
T t = getService().findById(id);
notFoundIfNull(t);
return ResponseHelper.<API key>(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.<API key>(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.<API key>(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.<API key>(result > 0 ? true : false);
}
}
|
<head>
<meta charset="utf-8">
<meta name="<API key>" 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="<TwitterConsumerkey>" 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:
var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
|
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 <API key>;
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 (<API key>)
{
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:<API key>")]
private void button1_Click(object sender, RoutedEventArgs e)
{
Refresh();
}
private void <API key>(object sender, <API key> 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 <API key>(object sender, <API key> 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 <API key>(object sender, <API key> 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 <API key>(object sender, <API key> e)
{
<API key> = 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);
}
}
|
<?php
namespace Neutral\BlockBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\<API key>;
class Configuration implements <API key>
{
/**
* {@inheritDoc}
*/
public function <API key>()
{
$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;
}
}
|
<?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 */
}
|
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 <API key>;
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));
<API key> = 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, <API key> + 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;
}
}
}
|
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:
<!-- break -->
Buy it: [https:
|
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; }
}
}
|
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
|
namespace <API key>.IOInterface
{
<summary>
IO interface message category. Every IO interface mid must implement <see cref="IIOInterface"/>.
</summary>
public interface IIOInterface
{
}
}
|
import { HMR_PATH } from '../config/constants';
function webpackMiddleware(): object[] {
const middleware: object[] = [];
if (BalmJS.webpackCompiler) {
middleware.push(
require('<API key>')(
BalmJS.webpackCompiler,
Object.assign({}, BalmJS.config.server.devOptions, {
publicPath: BalmJS.file.publicUrlOrPath,
stats: false
})
)
);
if (BalmJS.config.server.useHMR) {
middleware.push(
require('<API key>')(BalmJS.webpackCompiler, {
log: false,
path: HMR_PATH
})
);
}
} else {
BalmJS.logger.warn('webpack middleware', 'Webpack compiler is not ready');
}
return middleware;
}
export default webpackMiddleware;
|
require 'RMagick'
class MemesController < <API key>
before_action :<API key>, only: [:destroy]
before_action :<API key>, 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: :<API key> }
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 <API key>
@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 <API key>
@meme = Meme.find_by_key(params[:id])
if !current_user or (@meme.user_id != current_user.id and !current_user.admin)
<API key>
end
end
end
|
<html>
<head>
<title>Docs For Class <API key></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"><API key></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="../<API key>.html" class="menu">class tree: <API key></a> ]
[ <a href="../<API key>.html" class="menu">index: <API key></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="../<API key>.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="../<API key>.html"><API key></a><br />
<a href="../<API key>.html"><API key></a><br />
<a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br />
<a href="../li_PHPExcel_Reader.html">PHPExcel_Reader</a><br />
<a href="../<API key>.html"><API key></a><br />
<a href="../<API key>.html">PHPExcel_RichText</a><br />
<a href="../<API key>.html">PHPExcel_Settings</a><br />
<a href="../li_PHPExcel_Shared.html">PHPExcel_Shared</a><br />
<a href="../<API key>.html"><API key></a><br />
<a href="../<API key>.html"><API key></a><br />
<a href="../<API key>.html">PHPExcel_Shared_OLE</a><br />
<a href="../li_PHPExcel_Style.html">PHPExcel_Style</a><br />
<a href="../<API key>.html">PHPExcel_Worksheet</a><br />
<a href="../<API key>.html"><API key></a><br />
<a href="../li_PHPExcel_Writer.html">PHPExcel_Writer</a><br />
<a href="../<API key>.html"><API key></a><br />
<a href="../<API key>.html"><API key></a><br />
<br /><br />
<b>Files:</b><br />
<div class="package">
<a href="../<API key>/<API key>.php.html"> Comments.php
</a><br>
<a href="../<API key>/<API key>.php.html"> ContentTypes.php
</a><br>
<a href="../<API key>/<API key>.php.html"> DocProps.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Drawing.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Excel2007.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Rels.php
</a><br>
<a href="../<API key>/<API key>.php.html"> StringTable.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Style.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Theme.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Workbook.php
</a><br>
<a href="../<API key>/<API key>.php.html"> Worksheet.php
</a><br>
<a href="../<API key>/<API key>.php.html"> WriterPart.php
</a><br>
</div><br />
<b>Classes:</b><br />
<div class="package">
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
<a href="../<API key>/<API key>.html"><API key></a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1>Class: <API key></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="../<API key>/<API key>.html"><API key></a>
|
--<API key></pre><br />
<div class="description"><API key></div><br /><br />
<h4>Author(s):</h4>
<ul>
</ul>
<h4>Copyright:</h4>
<ul>
<li>Copyright (c) 2006 - 2010 PHPExcel (http:
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../<API key>/<API key>.html#<API key>">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="../<API key>/<API key>.html"><API key></a></h4>
<dl>
<dt>
<a href="../<API key>/<API key>.html#<API key>"><API key>::getParentWriter()</a>
</dt>
<dd>
Get parent IWriter object
</dd>
<dt>
<a href="../<API key>/<API key>.html#<API key>"><API key>::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/<API key>.php.html#a36">36</a>]<br />
<API key><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:
</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="<API key>"></a>
<h3>method writeContentTypes <span class="smalllinenumber">[line <a href="../__filesource/<API key>.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:
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>
|
/**
* 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();
}
|
// TextViewController.h
// Galary
#import <UIKit/UIKit.h>
@interface TextViewController : UIViewController
@end
|
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.<API key> = 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)];
}
}
|
package com.javarush.test.level14.lesson08.bonus03;
public class Singleton
{
private static Singleton instance;
private Singleton()
{
}
public static Singleton getInstance()
{
if ( instance == null )
{
instance = new Singleton();
}
return instance;
}
}
|
namespace Rotorz.Games.Collections
{
<summary>
Can be implemented along with <see cref="<API key>"/> 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="<API key>"/> could insert entirely new items by
dragging and dropping from the Unity "Project" window.</para>
</remarks>
<see cref="<API key>"/>
public interface <API key>
{
<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.<API key>"/>
<see cref="UnityEditor.DragAndDrop"/>
void <API key>(int insertionIndex);
}
}
|
'use strict';exports.__esModule = true;var _stringify = require('babel-runtime/core-js/json/stringify');var _stringify2 = <API key>(_stringify);var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');var _classCallCheck3 = <API key>(_classCallCheck2);var <API key> = require('babel-runtime/helpers/<API key>');var <API key> = <API key>(<API key>);var _inherits2 = require('babel-runtime/helpers/inherits');var _inherits3 = <API key>(_inherits2);function <API key>(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, <API key>.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;
|
# 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.
|
package com.ntlx.exception;
public class <API key> extends KanbanException {
private static final long serialVersionUID = 1L;
private int boardId;
public <API key> (int boardId) {
this.boardId = boardId;
}
public String getMessage() {
return "Board not found. (ID: " + boardId + ")";
}
}
|
# coding: utf-8
require_relative 'wrapper_comparator'
module Comparability
module Comparators
class <API key> < WrapperComparator
def compare(me, other)
reverse(wrapped_compare(me, other))
end
private
def reverse(comparison_result)
if comparison_result.nil? || comparison_result.zero?
comparison_result
else
-comparison_result
end
end
end
end
end
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simon</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/simon.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700|VT323" rel="stylesheet">
</head>
<body>
<h2></h2>
<div id="s_container">
<div id="s_outer">
<div id="s_inner">
<div id="s_button_tl" class="s_button_large"></div>
<div id="s_button_tr" class="s_button_large"></div>
<div id="s_button_bl" class="s_button_large"></div>
<div id="s_button_br" class="s_button_large"></div>
<div id="s_controls_area">
<div id="s_display">
STEPS <span id="s_steps"></span>
WINS <span id="s_wins"></span>
<span id="s_strict"></span>
</div>
<input type="button" id="s_button_restart"class="s_button_normal" value="Start">
<input type="button" id="s_button_strict" class="s_button_normal" value="Strict">
</div>
</div>
</div>
</div>
<script src="js/simon.js"></script>
</body>
</html>
|
<h2>Editing Tip</h2>
<br>
<?php echo render('admin/tips/_form'); ?>
<p>
<?php echo Html::anchor('admin/tips/view/'.$tip->id, 'View'); ?> |
<?php echo Html::anchor('admin/tips', 'Back'); ?></p>
|
package com.hyh.arithmetic.skills;
import android.annotation.SuppressLint;
import java.util.ArrayList;
import java.util.List;
/**
* req_skills people
* i people[i]
* req_skills
* team = [0, 1, 3] people[0]people[1] people[3]
*
* <p>
* 1
* req_skills = ["java","nodejs","reactjs"],
* people = [["java"],["nodejs"],["nodejs","reactjs"]]
* [0,2]
* <p>
* 2
* req_skills = ["algorithms","math","java","reactjs","csharp","aws"],
* people = [["algorithms","math","java"],["algorithms","math","reactjs"],["java","csharp","aws"],["reactjs","csharp"],["csharp","math"],["aws","java"]]
* [1,2]
* <p>
* <p>
* 1 <= req_skills.length <= 16
* 1 <= people.length <= 60
* 1 <= people[i].length, req_skills[i].length, people[i][j].length <= 16
* req_skills people[i]
* req_skills[i][j], people[i][j][k]
*
*/
public class Solution4 {
@SuppressLint("UseSparseArrays")
public int[] <API key>(String[] req_skills, List<List<String>> people) {
int req_skills_code = (int) (Math.pow(2, req_skills.length) - 1);
List<Integer> people_code = new ArrayList<>();
for (int i = 0; i < people.size(); i++) {
List<String> person_skills = people.get(i);
int person_code = 0;
for (int j = 0; j < person_skills.size(); j++) {
String skill = person_skills.get(j);
int index = indexOf(req_skills, skill);
if (index >= 0) {
person_code += Math.pow(2, index);
}
}
people_code.add(person_code);
}
for (int i = 0; i < people_code.size(); i++) {
Integer i_person_code = people_code.get(i);
if (i_person_code == 0) continue;
if (i == people_code.size() - 1) break;
for (int j = i + 1; j < people_code.size(); j++) {
Integer j_person_code = people_code.get(j);
if ((i_person_code | j_person_code) == j_person_code) {
people_code.set(i, 0);
} else if ((i_person_code | j_person_code) == i_person_code) {
people_code.set(j, 0);
}
}
}
Object[] preResult = new Object[req_skills.length];
Object[] result = new Object[req_skills.length];
/*Integer person_code = people_code.get(0);
for (int i = 0; i < req_skills.length; i++) {
int skills_code = (int) (Math.pow(2, i + 1) - 1);
if ((person_code | skills_code) == person_code) {
preResult[i] = new int[]{0};
} else {
break;
}
}*/
int person_code = 0;
for (int i = 0; i < people_code.size(); i++) {
person_code |= people_code.get(i);
for (int j = 0; j < req_skills.length; j++) {
int skills_code = (int) (Math.pow(2, j + 1) - 1);
if ((person_code | skills_code) == person_code) {
//result[i] = new int[]{0};
} else {
}
}
}
/*for (int i = 0; i < req_skills.length; i++) {
int skills_code = (int) (Math.pow(2, i + 1) - 1);
int people_code_temp = 0;
for (int j = 0; j < people_code.size(); j++) {
people_code_temp |= people_code.get(j);
if () {
}
}
preResult = result;
}*/
return null;
}
private int indexOf(String[] req_skills, String skill) {
for (int index = 0; index < req_skills.length; index++) {
String req_skill = req_skills[index];
if (req_skill.equals(skill)) return index;
}
return -1;
}
}
|
// Generated by CoffeeScript 1.8.0
(function() {
var TaskSchema, mongoose;
mongoose = require('./mongoose');
TaskSchema = mongoose.Schema({
id: {
type: Number,
unique: true
},
title: {
type: String
},
url: {
type: String,
unique: true
},
status: {
type: Number,
"default": 1
}
});
module.exports = mongoose.model('Task', TaskSchema);
}).call(this);
//# sourceMappingURL=tasks.js.map
|
// agreement provided at the time of installation or download, or which
// otherwise accompanies this software in either electronic or hard copy form.
#ifndef __AXPNT2D_H_
#define __AXPNT2D_H_
#include "gept2dar.h"
#include "gepnt2d.h"
#include "gevec2d.h"
#pragma pack (push, 8)
#ifndef AXAUTOEXP
#ifdef AXAUTO_DLL
#define AXAUTOEXP __declspec(dllexport)
#else
#define AXAUTOEXP __declspec(dllimport)
#endif
#endif
#pragma warning(disable : 4290)
class AXAUTOEXP AcAxPoint2d : public AcGePoint2d
{
public:
// constructors
AcAxPoint2d();
AcAxPoint2d(double x, double y);
AcAxPoint2d(const AcGePoint2d& pt);
AcAxPoint2d(const AcGeVector2d& pt);
AcAxPoint2d(const VARIANT* var) throw(HRESULT);
AcAxPoint2d(const VARIANT& var) throw(HRESULT);
AcAxPoint2d(const SAFEARRAY* safeArrayPt) throw(HRESULT);
// equal operators
AcAxPoint2d& operator=(const AcGePoint2d& pt);
AcAxPoint2d& operator=(const AcGeVector2d& pt);
AcAxPoint2d& operator=(const VARIANT* var) throw(HRESULT);
AcAxPoint2d& operator=(const VARIANT& var) throw(HRESULT);
AcAxPoint2d& operator=(const SAFEARRAY* safeArrayPt) throw(HRESULT);
// type requests
VARIANT* asVariantPtr() const throw(HRESULT);
SAFEARRAY* asSafeArrayPtr() const throw(HRESULT);
VARIANT& setVariant(VARIANT& var) const throw(HRESULT);
VARIANT* setVariant(VARIANT* var) const throw(HRESULT);
// utilities
private:
AcAxPoint2d& fromSafeArray(const SAFEARRAY* safeArrayPt) throw(HRESULT);
};
#pragma warning(disable : 4275)
class AXAUTOEXP AcAxPoint2dArray : public AcGePoint2dArray
{
public:
// equal operators
AcAxPoint2dArray& append(const AcGePoint2d& pt);
AcAxPoint2dArray& append(const VARIANT* var) throw(HRESULT);
AcAxPoint2dArray& append(const VARIANT& var) throw(HRESULT);
AcAxPoint2dArray& append(const SAFEARRAY* safeArrayPt) throw(HRESULT);
// type requests
SAFEARRAY* asSafeArrayPtr() const throw(HRESULT);
VARIANT& setVariant(VARIANT& var) const throw(HRESULT);
VARIANT* setVariant(VARIANT* var) const throw(HRESULT);
// utilities
private:
AcAxPoint2dArray& fromSafeArray(const SAFEARRAY* safeArrayPt) throw(HRESULT);
};
#pragma pack (pop)
#endif
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.