code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using Roguelike.Core.Elements.Inventory;
using Roguelike.Entities;
using RLNET;
namespace Roguelike.Systems {
public class InventorySystem {
private Player player;
public InventorySystem() {
player = Game.Player;
}
void SelectEquipment(Equipment pressedOn) {
if (pressedOn.GetType() == typeof(HeadEquipment)) {
SelectHeadEquipment((HeadEquipment)pressedOn);
} else if (pressedOn.GetType() == typeof(BodyEquipment)) {
SelectBodyEquipment((BodyEquipment)pressedOn);
} else if (pressedOn.GetType() == typeof(ArmEquipment)) {
SelectArmEquipment((ArmEquipment)pressedOn);
} else if (pressedOn.GetType() == typeof(LegEquipment)) {
SelectLegEquipment((LegEquipment)pressedOn);
} else if (pressedOn.GetType() == typeof(HandEquipment)) {
SelectHandEquipment((HandEquipment)pressedOn);
} else if (pressedOn.GetType() == typeof(FeetEquipment)) {
SelectFeetEquipment((FeetEquipment)pressedOn);
}
Game.Render();
}
void DiscardEquipment(Equipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
Game.Render();
}
void SelectHeadEquipment(HeadEquipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
if(player.Head != null && player.Head != HeadEquipment.None()) {
player.AddEquipment(player.Head);
}
player.Head = pressedOn;
}
void SelectBodyEquipment(BodyEquipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
if (player.Body != null && player.Body != BodyEquipment.None()) {
player.AddEquipment(player.Body);
}
player.Body = pressedOn;
}
void SelectArmEquipment(ArmEquipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
if (player.Arms != null && player.Arms != ArmEquipment.None()) {
player.AddEquipment(player.Arms);
}
player.Arms = pressedOn;
}
void SelectLegEquipment(LegEquipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
if (player.Legs != null && player.Legs != LegEquipment.None()) {
player.AddEquipment(player.Legs);
}
player.Legs = pressedOn;
}
void SelectHandEquipment(HandEquipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
if (player.Hands != null && player.Hands != HandEquipment.None()) {
player.AddEquipment(player.Hands);
}
player.Hands = pressedOn;
}
void SelectFeetEquipment(FeetEquipment pressedOn) {
player.equipmentInInventory.Remove(pressedOn);
if (player.Feet != null && player.Feet != FeetEquipment.None()) {
player.AddEquipment(player.Feet);
}
player.Feet = pressedOn;
}
public Equipment EquipArmourFromInventory(int x, int y) {
for (int i = 0; i < player.equipmentInInventory.Count; i++) {
int lengthOfString = player.equipmentInInventory[i].Name.Length;
int numberOfLines = 0;
if(lengthOfString >= 20) {
numberOfLines = 2;
} else {
numberOfLines = 1;
}
int xStartPosition = 0;
int yPosition = (3 * i) + 3;
if(i < 6) {
xStartPosition = 22;
} else {
yPosition = (3 * i) - 15;
xStartPosition = 44;
}
if(numberOfLines == 1) {
if(x >= xStartPosition && x < xStartPosition + lengthOfString && y == yPosition) {
SelectEquipment(player.equipmentInInventory[i]);
}
}else if(numberOfLines == 2) {
string topString = TopLine(player.equipmentInInventory[i].Name);
string bottomString = BottomLine(player.equipmentInInventory[i].Name, topString);
if(y == yPosition) {
if(x >= xStartPosition && x < xStartPosition + topString.Length - 1) {
SelectEquipment(player.equipmentInInventory[i]);
}
} else if(y == yPosition + 1) {
if (x >= xStartPosition && x < xStartPosition + bottomString.Length) {
SelectEquipment(player.equipmentInInventory[i]);
}
}
}
}
return null;
}
public void DiscardArmourFromInventory(int x, int y) {
for (int i = 0; i < player.equipmentInInventory.Count; i++) {
int lengthOfString = player.equipmentInInventory[i].Name.Length;
int numberOfLines = 0;
if (lengthOfString >= 20) {
numberOfLines = 2;
} else {
numberOfLines = 1;
}
int xStartPosition = 0;
int yPosition = (3 * i) + 3;
if (i < 6) {
xStartPosition = 22;
} else {
yPosition = (3 * i) - 15;
xStartPosition = 44;
}
if (numberOfLines == 1) {
if (x >= xStartPosition && x < xStartPosition + lengthOfString && y == yPosition) {
DiscardEquipment(player.equipmentInInventory[i]);
}
} else if (numberOfLines == 2) {
string topString = TopLine(player.equipmentInInventory[i].Name);
string bottomString = BottomLine(player.equipmentInInventory[i].Name, topString);
if (y == yPosition) {
if (x >= xStartPosition && x < xStartPosition + topString.Length - 1) {
DiscardEquipment(player.equipmentInInventory[i]);
}
} else if (y == yPosition + 1) {
if (x >= xStartPosition && x < xStartPosition + bottomString.Length) {
DiscardEquipment(player.equipmentInInventory[i]);
}
}
}
}
}
public void RemoveEquipment(int x, int y) {
if (y == 3) {
if (x >= 1 && x <= 14) {
HeadEquipment toRemove = player.Head;
player.Head = HeadEquipment.None();
player.equipmentInInventory.Add(toRemove);
} else if (x > 14 && x < 28) {
LegEquipment toRemove = player.Legs;
player.Legs = LegEquipment.None();
player.equipmentInInventory.Add(toRemove);
}
} else if (y == 5) {
if (x >= 1 && x <= 14) {
BodyEquipment toRemove = player.Body;
player.Body = BodyEquipment.None();
player.equipmentInInventory.Add(toRemove);
} else if (x > 14 && x < 28) {
HandEquipment toRemove = player.Hands;
player.Hands = HandEquipment.None();
player.equipmentInInventory.Add(toRemove);
}
} else if (y == 7) {
if (x >= 1 && x <= 14) {
ArmEquipment toRemove = player.Arms;
player.Arms = ArmEquipment.None();
player.equipmentInInventory.Add(toRemove);
} else if (x > 14 && x < 28) {
FeetEquipment toRemove = player.Feet;
player.Feet = FeetEquipment.None();
player.equipmentInInventory.Add(toRemove);
}
}
Game.Render();
}
public Equipment RemoveCurrentArmour(int x, int y) {
if(y == 3 || y == 4) {
ClickedOnHead(x, y);
} else if(y == 6 || y == 7) {
ClickedOnBody(x, y);
} else if (y == 9 || y == 10) {
ClickedOnArms(x, y);
} else if (y == 12 || y == 13) {
ClickedOnLegs(x, y);
} else if (y == 15 || y == 16) {
ClickedOnHands(x, y);
} else if (y == 18 || y == 19) {
ClickedOnFeet(x, y);
}
return null;
}
private void ClickedOnHead(int x, int y) {
string topLine = TopLine("Head: " + player.Head.Name, 20);
string bottomLine = "";
try {
bottomLine = BottomLine("Head: " + player.Head.Name, topLine);
} catch {
}
if (y == 4) {
if (bottomLine != "") {
if (DidClickOnString(x, y, true, topLine, bottomLine)) {
UnequipArmour(player.Head);
}
}
} else {
if (DidClickOnString(x, y, false, topLine, bottomLine)) {
UnequipArmour(player.Head);
}
}
}
public void ClickedOnBody(int x, int y) {
string topLine = TopLine("Body: " + player.Body.Name, 20);
string bottomLine = "";
try {
bottomLine = BottomLine("Body: " + player.Body.Name, topLine);
} catch {
}
if (y == 7) {
if (bottomLine != "") {
if (DidClickOnString(x, y, true, topLine, bottomLine)) {
UnequipArmour(player.Body);
}
}
} else {
if (DidClickOnString(x, y, false, topLine, bottomLine)) {
UnequipArmour(player.Body);
}
}
}
public void ClickedOnArms(int x, int y) {
string topLine = TopLine("Arms: " + player.Arms.Name, 20);
string bottomLine = "";
try {
bottomLine = BottomLine("Arms: " + player.Arms.Name, topLine);
} catch {
}
if (y == 10) {
if (bottomLine != "") {
if (DidClickOnString(x, y, true, topLine, bottomLine)) {
UnequipArmour(player.Arms);
}
}
} else {
if (DidClickOnString(x, y, false, topLine, bottomLine)) {
UnequipArmour(player.Arms);
}
}
}
public void ClickedOnLegs(int x, int y) {
string topLine = TopLine("Legs: " + player.Legs.Name, 20);
string bottomLine = "";
try {
bottomLine = BottomLine("Legs: " + player.Legs.Name, topLine);
} catch {
}
if (y == 13) {
if (bottomLine != "") {
if (DidClickOnString(x, y, true, topLine, bottomLine)) {
UnequipArmour(player.Legs);
}
}
} else {
if (DidClickOnString(x, y, false, topLine, bottomLine)) {
UnequipArmour(player.Legs);
}
}
}
public void ClickedOnHands(int x, int y) {
string topLine = TopLine("Hands: " + player.Hands.Name, 20);
string bottomLine = "";
try {
bottomLine = BottomLine("Hands: " + player.Hands.Name, topLine);
} catch {
}
if (y == 16) {
if (DidClickOnString(x, y, true, topLine, bottomLine)) {
UnequipArmour(player.Hands);
}
} else {
if (DidClickOnString(x, y, false, topLine, bottomLine)) {
UnequipArmour(player.Hands);
}
}
}
private void ClickedOnFeet(int x, int y) {
string topLine = TopLine("Feet: " + player.Feet.Name, 20);
string bottomLine = "";
try {
bottomLine = BottomLine("Feet: " + player.Feet.Name, topLine);
} catch {
}
if (y == 19) {
if (DidClickOnString(x, y, true, topLine, bottomLine)) {
UnequipArmour(player.Feet);
}
} else {
if (DidClickOnString(x, y, false, topLine, bottomLine)) {
UnequipArmour(player.Feet);
}
}
}
public bool DidClickOnString(int x, int y, bool secondLine,string topLine, string bottomLine = "") {
int xStartPosition = 1;
int topXEndPosition = xStartPosition + topLine.Length;
int bottomXEndPosition = xStartPosition + bottomLine.Length;
if (bottomLine != "") {
if (secondLine) {
if (x >= xStartPosition && x <= bottomXEndPosition) {
return true;
} else {
return false;
}
} else {
if (x >= xStartPosition && x <= topXEndPosition) {
return true;
} else {
return false;
}
}
} else {
if(x >= xStartPosition && x <= topXEndPosition) {
return true;
} else {
return false;
}
}
}
private void UnequipArmour(Equipment toUnequip) {
if (toUnequip.GetType() == typeof(HeadEquipment) && toUnequip != HeadEquipment.None()) {
UnSelectHeadEquipment((HeadEquipment)toUnequip);
} else if (toUnequip.GetType() == typeof(BodyEquipment) && toUnequip != BodyEquipment.None()) {
UnSelectBodyEquipment((BodyEquipment)toUnequip);
} else if (toUnequip.GetType() == typeof(ArmEquipment) && toUnequip != ArmEquipment.None()) {
UnSelectArmEquipment((ArmEquipment)toUnequip);
} else if (toUnequip.GetType() == typeof(LegEquipment) && toUnequip != LegEquipment.None()) {
UnSelectLegEquipment((LegEquipment)toUnequip);
} else if (toUnequip.GetType() == typeof(HandEquipment) && toUnequip != HandEquipment.None()) {
UnSelectHandEquipment((HandEquipment)toUnequip);
} else if (toUnequip.GetType() == typeof(FeetEquipment) && toUnequip != FeetEquipment.None()) {
UnSelectFeetEquipment((FeetEquipment)toUnequip);
}
Game.Render();
}
private void UnSelectHeadEquipment(HeadEquipment toUnequip) {
if(player.equipmentInInventory.Count < 12) {
player.Head = HeadEquipment.None();
player.AddEquipment(toUnequip);
}
}
private void UnSelectBodyEquipment(BodyEquipment toUnequip) {
if (player.equipmentInInventory.Count < 12) {
player.Body = BodyEquipment.None();
player.AddEquipment(toUnequip);
}
}
private void UnSelectArmEquipment(ArmEquipment toUnequip) {
if (player.equipmentInInventory.Count < 12) {
player.Arms = ArmEquipment.None();
player.AddEquipment(toUnequip);
}
}
private void UnSelectLegEquipment(LegEquipment toUnequip) {
if (player.equipmentInInventory.Count < 12) {
player.Legs = LegEquipment.None();
player.AddEquipment(toUnequip);
}
}
private void UnSelectHandEquipment(HandEquipment toUnequip) {
if (player.equipmentInInventory.Count < 12) {
player.Hands = HandEquipment.None();
player.AddEquipment(toUnequip);
}
}
private void UnSelectFeetEquipment(FeetEquipment toUnequip) {
if (player.equipmentInInventory.Count < 12) {
player.Feet = FeetEquipment.None();
player.AddEquipment(toUnequip);
}
}
private string TopLine(string totalString, int wrapLength = 18) {
List<string> wordsInString = new List<string>();
string currentString = "";
for (int i = 0; i < totalString.Length; i++) {
char character = totalString[i];
if (character == ' ') {
wordsInString.Add(currentString);
currentString = "";
}else if(i == totalString.Length - 1) {
currentString += character;
wordsInString.Add(currentString);
currentString = "";
} else {
currentString += character;
}
}
int lengthSoFar = 0;
string topLine = "";
for (int i = 0; i < wordsInString.Count; i++) {
if (lengthSoFar + wordsInString[i].Length >= wrapLength) {
break;
}
lengthSoFar += wordsInString[i].Length;
topLine += wordsInString[i];
topLine += " ";
}
return topLine;
}
private string BottomLine(string totalString, string topLine) {
string bottom = totalString;
bottom = bottom.Substring(topLine.Length);
return bottom;
}
}
}
| SamFergie/Roguelike | Roguelike/Systems/InventorySystem.cs | C# | mit | 18,045 |
<?php
class TeamsTest extends Raideer\TwitchApi\TestCase
{
public function __construct()
{
$this->setResource('Raideer\TwitchApi\Resources\Teams');
}
public function test_getName_returnsTeams()
{
$this->assertSame('teams', $this->resource->getName());
}
public function test_getTeams()
{
$this->mockRequest(
'GET',
'teams',
[
'limit' => 10,
'offset' => 0,
]
);
$this->resource->getTeams(['limit' => 10]);
}
public function test_getTeam()
{
$this->mockRequest(
'GET',
'teams/testteam'
);
$this->resource->getTeam('testteam');
}
}
| raideer/twitch-api | tests/Resources/TeamsTest.php | PHP | mit | 752 |
# frozen_string_literal: true
require "dry/core/equalizer"
require "rom/initializer"
require "rom/relation/loaded"
require "rom/relation/composite"
require "rom/relation/materializable"
require "rom/pipeline"
require "rom/support/memoizable"
module ROM
class Relation
# Abstract relation graph class
#
# @api public
class Graph
extend Initializer
include Memoizable
# @!attribute [r] root
# @return [Relation] The root relation
param :root
# @!attribute [r] nodes
# @return [Array<Relation>] An array with relation nodes
param :nodes
include Dry::Equalizer(:root, :nodes)
include Materializable
include Pipeline
include Pipeline::Proxy
# for compatibility with the pipeline
alias_method :left, :root
alias_method :right, :nodes
# Rebuild a graph with new nodes
#
# @param [Array<Relation>] nodes
#
# @return [Graph]
#
# @api public
def with_nodes(nodes)
self.class.new(root, nodes)
end
# Return if this is a graph relation
#
# @return [true]
#
# @api private
def graph?
true
end
# Map graph tuples via custom mappers
#
# @see Relation#map_with
#
# @return [Relation::Composite]
#
# @api public
def map_with(*names, **opts)
names.reduce(self.class.new(root.with(opts), nodes)) { |a, e| a >> mappers[e] }
end
# Map graph tuples to custom objects
#
# @see Relation#map_to
#
# @return [Graph]
#
# @api public
def map_to(klass)
self.class.new(root.map_to(klass), nodes)
end
# @see Relation#mapper
#
# @api private
def mapper
mappers[to_ast]
end
# @api private
memoize def to_ast
[:relation, [name.relation, attr_ast + nodes.map(&:to_ast), meta_ast]]
end
private
# @api private
def decorate?(other)
super || other.is_a?(Composite) || other.is_a?(Curried)
end
# @api private
def composite_class
Relation::Composite
end
end
end
end
| rom-rb/rom | lib/rom/relation/graph.rb | Ruby | mit | 2,218 |
<?php
namespace AppBundle\Tests\Entity;
use AppBundle\Entity\Auth;
use PHPUnit\Framework\TestCase;
class AuthTest extends TestCase
{
public function testAdd()
{
$obj = new Auth();
$result = $obj->setToken('sdfsdf465456');
$this->assertEquals('sdfsdf465456', $obj->getToken());
}
}
| snedi/apilite | src/AppBundle/Tests/Entity/AuthTest.php | PHP | mit | 321 |
# GKDProgress
A progress use CoreAnimation
| geekdog/GKDProgress | README.md | Markdown | mit | 43 |
#ifndef ZOMBIE_HUMANPLAYER_H
#define ZOMBIE_HUMANPLAYER_H
#include "device.h"
#include "physics/moving/unit.h"
#include "player.h"
#include "physics/moving/unit.h"
#include <glm/gtx/rotate_vector.hpp>
namespace zombie {
class HumanPlayer : public Player {
public:
HumanPlayer(DevicePtr device, std::unique_ptr<Unit> unit)
: device_{std::move(device)}
, unit_{std::move(unit)} {
}
void updateInput(double time, double deltaTime) override {
unit_->setInput(device_->nextInput());
unit_->updatePhysics(time, deltaTime);
}
void draw(sdl::Graphic& graphic) override {
auto pos = unit_->getPosition();
graphic.addCircle({pos.x, pos.y}, unit_->getRadius(), sdl::color::html::DeepSkyBlue);
graphic.addCircleOutline({pos.x, pos.y}, unit_->getViewDistance(), 0.1f, sdl::color::html::Firebrick);
graphic.addLine({pos.x, pos.y}, glm::vec2{pos.x, pos.y} + glm::rotate(glm::vec2{1.f, 0.f}, unit_->getDirection()), 0.1f, sdl::color::html::Firebrick);
}
Unit* getUnit() const {
return unit_.get();
}
PhysicalObject* getPhysicalObject() override {
return unit_.get();
}
private:
DevicePtr device_;
std::unique_ptr<Unit> unit_;
};
using HumanPlayerPtr = std::unique_ptr<HumanPlayer>;
}
#endif
| mwthinker/Zombie | src/humanplayer.h | C | mit | 1,246 |
// Copyright (c) 2014 The Okcash Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#ifndef COIN_STATE_H
#define COIN_STATE_H
#include <string>
#include <limits>
#include "sync.h"
enum eNodeType
{
NT_FULL = 1,
NT_THIN,
NT_UNKNOWN // end marker
};
enum eNodeState
{
NS_STARTUP = 1,
NS_GET_HEADERS,
NS_GET_FILTERED_BLOCKS,
NS_READY,
NS_UNKNOWN // end marker
};
enum eBlockFlags
{
BLOCK_PROOF_OF_STAKE = (1 << 0), // is proof-of-stake block
BLOCK_STAKE_ENTROPY = (1 << 1), // entropy bit for stake modifier
BLOCK_STAKE_MODIFIER = (1 << 2), // regenerated stake modifier
};
/* nServices flags
top 32 bits of CNode::nServices are used to mark services required
*/
enum
{
NODE_NETWORK = (1 << 0),
THIN_SUPPORT = (1 << 1),
THIN_STAKE = (1 << 2), // deprecated
THIN_STEALTH = (1 << 3),
SMSG_RELAY = (1 << 4),
};
const int64_t GENESIS_BLOCK_TIME = 1416737561;
static const int64_t COIN = 100000000;
static const int64_t CENT = 1000000;
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
static const int64_t MIN_TX_FEE = 10000;
static const int64_t MIN_TX_FEE_ANON = 1000000;
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying) */
static const int64_t MIN_RELAY_TX_FEE = MIN_TX_FEE;
static const int64_t COIN_YEAR_REWARD = 69 * CENT; // 69% 1st Year
static const int64_t SCOIN_YEAR_REWARD = 20 * CENT; // 20% 1st halving
static const int64_t CCOIN_YEAR_REWARD = 10 * CENT; // 10% 2nd halving
static const int64_t KCOIN_YEAR_REWARD = 5 * CENT; // 5% 3rd halving
static const int64_t ICOIN_YEAR_REWARD = 2.5 * CENT; // 2.5% 4th halving
static const int64_t OCOIN_YEAR_REWARD = 22 * CENT; // 22% 5th halving
static const int64_t DCOIN_YEAR_REWARD = 11 * CENT; // 11% 6th halving
static const int64_t RCOIN_YEAR_REWARD = 6.9 * CENT; // 6.9% 7th halving
static const int64_t ECOIN_YEAR_REWARD = 3.9 * CENT; // 3.9% 8th halving
static const int64_t ACOIN_YEAR_REWARD = 3.6 * CENT; // 3.6% 9th halving
static const int64_t MCOIN_YEAR_REWARD = 3.3 * CENT; // 3.3% 10th halving
static const int64_t ZCOIN_YEAR_REWARD = 3 * CENT; // 3% 11th halving
static const int64_t XCOIN_YEAR_REWARD = 2 * CENT; // 2% 12th halving
static const int64_t BCOIN_YEAR_REWARD = 1 * CENT; // 1% 13th halving
static const int64_t GCOIN_YEAR_REWARD = 0.69 * CENT; // 0.69% 14th halving
static const int64_t FCOIN_YEAR_REWARD = 0.33 * CENT; // 0.33% 15th halving and onwards
static const int64_t MBLK_RECEIVE_TIMEOUT = 60; // seconds
extern int nNodeMode;
extern int nNodeState;
extern int nMaxThinPeers;
extern int nBloomFilterElements;
extern int nMinStakeInterval;
extern int nThinIndexWindow;
static const int nTryStakeMempoolTimeout = 5 * 60; // seconds
static const int nTryStakeMempoolMaxAsk = 16;
extern uint64_t nLocalServices;
extern uint32_t nLocalRequirements;
extern bool fTestNet;
extern bool fDebug;
extern bool fDebugNet;
extern bool fDebugSmsg;
extern bool fDebugChain;
extern bool fDebugRingSig;
extern bool fDebugPoS;
extern bool fNoSmsg;
extern bool fPrintToConsole;
extern bool fPrintToDebugLog;
//extern bool fShutdown;
extern bool fDaemon;
extern bool fServer;
extern bool fCommandLine;
extern std::string strMiscWarning;
extern bool fNoListen;
extern bool fLogTimestamps;
extern bool fReopenDebugLog;
extern bool fThinFullIndex;
extern bool fReindexing;
extern bool fHaveGUI;
extern volatile bool fIsStaking;
extern bool fMakeExtKeyInitials;
extern volatile bool fPassGuiAddresses;
extern bool fConfChange;
extern bool fEnforceCanonical;
extern unsigned int nNodeLifespan;
extern unsigned int nDerivationMethodIndex;
extern unsigned int nMinerSleep;
extern unsigned int nBlockMaxSize;
extern unsigned int nBlockPrioritySize;
extern unsigned int nBlockMinSize;
extern int64_t nMinTxFee;
extern unsigned int nStakeSplitAge;
extern int nStakeMinConfirmations;
extern int64_t nStakeSplitThreshold;
extern int64_t nStakeCombineThreshold;
extern uint32_t nExtKeyLookAhead;
extern int64_t nTimeLastMblkRecv;
#endif /* COIN_STATE_H */
| okcashpro/okcash | src/state.h | C | mit | 4,272 |
version https://git-lfs.github.com/spec/v1
oid sha256:b51623fcae1419d2bb29084e11d56fc9aafae7b0e35bd2a7fd30633a133bef40
size 24229
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.17.0/slider-base/slider-base-debug.js | JavaScript | mit | 130 |
module Librr::Displayer
class << self
attr_accessor :save_output, :output
def clear_output
@output = []
end
def save(text)
@output ||= []
@output << text
end
end
def show text
if Librr::Displayer.save_output
Librr::Displayer.save(text)
return
end
puts text
end
end
| halida/librr | lib/librr/displayer.rb | Ruby | mit | 342 |
var gif_bgs = [];
var gif_center = [];
var length_bgs = 0;
var length_center = 0;
var timer;
var duration = 4000;
var loaded = 0;
var next_bg;
var next_center;
var audio = document.getElementById("sound");
var muted = false;
function next(e){
clearInterval(timer);
timer = setInterval(next, duration);
$("#background").css("background-image","url("+gif_bgs[next_bg]+")");
$("#center").css("background-image","url("+gif_center[next_center]+")");
next_bg = Math.floor( Math.random()*length_bgs );
next_center = Math.floor( Math.random()*length_center );
$("#load_bg").attr("src",gif_bgs[next_bg]);
$("#load_center").attr("src",gif_center[next_center]);
}
function toggleInfo(){
$("#info-overlay").toggleClass("show");
$("#info-btn").toggleClass("show");
}
function check(){
if (loaded > 1) {
next_bg = Math.floor( Math.random()*length_bgs );
next_center = Math.floor( Math.random()*length_center );
next();
$("#wrapper").click(next);
}
}
function toggleSound(){
if (muted) {
muted = false;
audio.muted = muted;
$("#sound-btn").removeClass('muted');
}else{
muted = true;
audio.muted = muted;
$("#sound-btn").addClass('muted');
}
}
function init() {
$("#info-btn").click(toggleInfo);
$("#sound-btn").click(toggleSound);
$.ajax({
url: "json/bg.json",
cache: false,
dataType: "json",
success: function(d){
gif_bgs = d;
length_bgs = gif_bgs.length;
loaded++;
check();
}
});
$.ajax({
url: "json/center.json",
cache: false,
dataType: "json",
success: function(d){
gif_center = d;
length_center = gif_center.length;
loaded++;
check();
}
});
}
Meteor.startup(function(){init();});
| paralin/1148WTF | client/js/gif.js | JavaScript | mit | 1,679 |
{% extends 'login_base.html' %}
{% block body %}
<div class="form-container">
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{% for field in form %}
{{ field }}
{{ field.errors }}
{% endfor %}
<input id="submit" type="submit" value="Create new account" />
</form>
</div>
<p>Have an account already? <a href="{% url 'slrtcebook:login' %}">Login here</a></p>
{% endblock %} | yayraj/myproject | slrtcebook/templates/register.html | HTML | mit | 426 |
<?php
class ProfilesTest extends PHPUnit_Framework_TestCase
{
public function setUp()
{
$di = Xhgui_ServiceContainer::instance();
$this->profiles = $di['profiles'];
$this->_loadFixture('tests/fixtures/results.json');
}
protected function _loadFixture($file)
{
$contents = file_get_contents($file);
$data = json_decode($contents, true);
foreach ($data as $record) {
if (isset($record['meta']['request_time'])) {
$time = strtotime($record['meta']['request_time']);
$record['meta']['request_time'] = new MongoDate($time);
}
$this->profiles->insert($record);
}
}
public function testPagination()
{
$options = array(
'page' => 1,
'sort' => 'wt',
);
$result = $this->profiles->paginate($options);
$this->assertEquals(25, $result['perPage'], 'default works');
$this->assertEquals(1, $result['page']);
$this->assertEquals(
array('profile.main().wt' => -1),
$result['sort']
);
}
public function testPaginateInvalidSort()
{
$options = array(
'page' => 1,
'sort' => 'barf',
);
$result = $this->profiles->paginate($options);
$this->assertEquals(
array('meta.SERVER.REQUEST_TIME' => -1),
$result['sort']
);
}
public function testPaginateOutOfRangePage()
{
$options = array(
'page' => 9000,
'sort' => 'barf',
);
$result = $this->profiles->paginate($options);
$this->assertEquals(1, $result['page']);
}
public function testGetForUrl()
{
$options = array(
'perPage' => 1
);
$result = $this->profiles->getForUrl('/', $options);
$this->assertEquals(1, $result['page']);
$this->assertEquals(2, $result['totalPages']);
$this->assertEquals(1, $result['perPage']);
$this->assertCount(1, $result['results']);
$this->assertInstanceOf('Xhgui_Profile', $result['results'][0]);
$result = $this->profiles->getForUrl('/not-there', $options);
$this->assertCount(0, $result['results']);
}
public function testGetForUrlWithSearch()
{
$options = array(
'perPage' => 2
);
$search = array(
'date_start' => '2013-01-17',
'date_end' => '2013-01-18',
);
$result = $this->profiles->getForUrl('/', $options, $search);
$this->assertEquals(1, $result['page']);
$this->assertEquals(1, $result['totalPages']);
$this->assertEquals(2, $result['perPage']);
$this->assertCount(1, $result['results']);
$search = array(
'date_start' => '2013-01-01',
'date_end' => '2013-01-02',
);
$result = $this->profiles->getForUrl('/', $options, $search);
$this->assertCount(0, $result['results']);
}
public function testGetAvgsForUrl()
{
$result = $this->profiles->getAvgsForUrl('/');
$this->assertCount(2, $result);
$this->assertArrayHasKey('avg_wt', $result[0]);
$this->assertArrayHasKey('avg_cpu', $result[0]);
$this->assertArrayHasKey('avg_mu', $result[0]);
$this->assertArrayHasKey('avg_pmu', $result[0]);
$this->assertEquals('2013-01-18', $result[0]['date']);
$this->assertEquals('2013-01-19', $result[1]['date']);
}
public function testGetAvgsForUrlWithSearch()
{
$search = array('date_start' => '2013-01-18', 'date_end' => '2013-01-18');
$result = $this->profiles->getAvgsForUrl('/', $search);
$this->assertCount(1, $result);
$this->assertArrayHasKey('avg_wt', $result[0]);
$this->assertArrayHasKey('avg_cpu', $result[0]);
$this->assertArrayHasKey('avg_mu', $result[0]);
$this->assertArrayHasKey('avg_pmu', $result[0]);
$this->assertEquals('2013-01-18', $result[0]['date']);
}
public function testGetPercentileForUrlWithSearch()
{
$search = array('date_start' => '2013-01-18', 'date_end' => '2013-01-18');
$result = $this->profiles->getPercentileForUrl(20, '/', $search);
$this->assertCount(1, $result);
$this->assertArrayHasKey('wt', $result[0]);
$this->assertArrayHasKey('cpu', $result[0]);
$this->assertArrayHasKey('mu', $result[0]);
$this->assertArrayHasKey('pmu', $result[0]);
}
public function testGetPercentileForUrlWithLimit()
{
$search = array('limit' => 'P1D');
$result = $this->profiles->getPercentileForUrl(20, '/', $search);
$this->assertCount(0, $result);
}
public function testGetAllConditions()
{
$result = $this->profiles->getAll(array(
'conditions' => array(
'date_start' => '2013-01-20',
'date_end' => '2013-01-21',
'url' => 'tasks',
)
));
$this->assertEquals(1, $result['page']);
$this->assertEquals(25, $result['perPage']);
$this->assertEquals(1, $result['totalPages']);
$this->assertCount(2, $result['results']);
}
}
| YvesPasteur/env-php | cookbooks/xhprof/xhgui/tests/ProfilesTest.php | PHP | mit | 5,305 |
package com.tbp.safemaps;
import the.safemaps.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MarkUnsafe extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.marksafe);
//Button back = (Button)findViewById(R.id.mbuttonBack);
Button done = (Button)findViewById(R.id.done);
done.setOnClickListener(onClickListener);
// back.setOnClickListener(onClickListener);
}
private OnClickListener onClickListener = new OnClickListener() {
@Override
public void onClick(View v) {
switch(v.getId()){
// case R.id.go:
// Intent go= new Intent(Markunsafe.this,mapdirections.class);
//startActivity(go);
//break;
}
}
};
public boolean onCreateOptionsMenu(Menu menu)
{
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
super.onOptionsItemSelected(item);
switch(item.getItemId())
{
case R.id.action_bar:
//Toast.makeText(getBaseContext(), "back", Toast.LENGTH_SHORT).show();
Intent back= new Intent(MarkUnsafe.this,MainActivity.class);
startActivity(back);
break;
}
return true;
}
}
| thebachchaoproject/safemaps | safemaps_android/src/com/tbp/safemaps/MarkUnsafe.java | Java | mit | 1,557 |
#include "protagonist.h"
#include "SerializeResult.h"
#include "v8_wrapper.h"
#include "snowcrash.h"
using namespace v8;
using namespace protagonist;
Result::Result()
{
}
Result::~Result()
{
}
Nan::Persistent<Function> Result::constructor;
void Result::Init(Handle<Object> exports)
{
Nan::HandleScope scope;
Local<FunctionTemplate> t = Nan::New<FunctionTemplate>(New);
t->SetClassName(Nan::New<String>("Result").ToLocalChecked());
t->InstanceTemplate()->SetInternalFieldCount(1);
constructor.Reset(t->GetFunction());
exports->Set(Nan::New<String>("Result").ToLocalChecked(), t->GetFunction());
}
NAN_METHOD(Result::New)
{
Nan::HandleScope scope;
Result* result = ::new Result();
result->Wrap(info.This());
info.GetReturnValue().Set(info.This());
}
v8::Local<v8::Object> Result::WrapResult(snowcrash::ParseResult<snowcrash::Blueprint>& parseResult,
const snowcrash::BlueprintParserOptions& options,
const drafter::ASTType& astType)
{
static const char* AstKey = "ast";
static const char* ErrorKey = "error";
static const char* SourcemapKey = "sourcemap";
sos::Object result;
try {
result = drafter::WrapResult(parseResult, options, astType);
}
catch (snowcrash::Error& error) {
parseResult.report.error = error;
}
if (astType == drafter::NormalASTType && parseResult.report.error.code != snowcrash::Error::OK) {
result.set(AstKey, sos::Null());
if ((options & snowcrash::ExportSourcemapOption) != 0) {
result.set(SourcemapKey, sos::Null());
}
}
result.unset(ErrorKey);
return v8_wrap(result)->ToObject();
}
| cold-brew-coding/protagonist | src/result.cc | C++ | mit | 1,745 |
<select ng-model="city" ng-options="city.name for city in cities">
<option value="">Choose City</option>
</select>
Best City:{{city.name}}
<label>Select Two Fish</label>
<input type="checkbox" ng-model="isTwoFish"> <br/>
<select>
<option>One Fish</option>
<option ng-selected="isTwoFish">Two Fish</option>
</select>
| wufengwhu/myBlog | app/views/select.html | HTML | mit | 325 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_71) on Sun Jan 11 17:03:54 EET 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>com.github.tilastokeskus.matertis.core.command (Matertis 1.0-SNAPSHOT Test API)</title>
<meta name="date" content="2015-01-11">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<h1 class="bar"><a href="../../../../../../com/github/tilastokeskus/matertis/core/command/package-summary.html" target="classFrame">com.github.tilastokeskus.matertis.core.command</a></h1>
<div class="indexContainer">
<h2 title="Classes">Classes</h2>
<ul title="Classes">
<li><a href="DropCommandTest.html" title="class in com.github.tilastokeskus.matertis.core.command" target="classFrame">DropCommandTest</a></li>
<li><a href="MoveCommandTest.html" title="class in com.github.tilastokeskus.matertis.core.command" target="classFrame">MoveCommandTest</a></li>
<li><a href="PauseCommandTest.html" title="class in com.github.tilastokeskus.matertis.core.command" target="classFrame">PauseCommandTest</a></li>
</ul>
</div>
</body>
</html>
| tilastokeskus/Matertis | dist/site/testapidocs/com/github/tilastokeskus/matertis/core/command/package-frame.html | HTML | mit | 1,272 |
<?php
/**
* Craft by Pixel & Tonic
*
* @package Craft
* @author Pixel & Tonic, Inc.
* @copyright Copyright (c) 2014, Pixel & Tonic, Inc.
* @license http://buildwithcraft.com/license Craft License Agreement
* @link http://buildwithcraft.com
*/
// Define path constants
defined('CRAFT_BASE_PATH') || define('CRAFT_BASE_PATH', str_replace('\\', '/', realpath(dirname(__FILE__).'/../../')).'/');
defined('CRAFT_APP_PATH') || define('CRAFT_APP_PATH', CRAFT_BASE_PATH.'app/');
defined('CRAFT_CONFIG_PATH') || define('CRAFT_CONFIG_PATH', CRAFT_BASE_PATH.'config/');
defined('CRAFT_PLUGINS_PATH') || define('CRAFT_PLUGINS_PATH', CRAFT_BASE_PATH.'plugins/');
defined('CRAFT_STORAGE_PATH') || define('CRAFT_STORAGE_PATH', CRAFT_BASE_PATH.'storage/');
defined('CRAFT_TEMPLATES_PATH') || define('CRAFT_TEMPLATES_PATH', CRAFT_BASE_PATH.'templates/');
defined('CRAFT_TRANSLATIONS_PATH') || define('CRAFT_TRANSLATIONS_PATH', CRAFT_BASE_PATH.'translations/');
defined('CRAFT_ENVIRONMENT') || define('CRAFT_ENVIRONMENT', 'craft.dev');
define('YII_ENABLE_EXCEPTION_HANDLER', false);
define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true);
$_SERVER['DOCUMENT_ROOT'] = '/some/path/to/craft.dev';
$_SERVER['HTTP_HOST'] = 'craft.dev';
$_SERVER['HTTPS'] = 'off';
$_SERVER['PHP_SELF'] = '/index.php';
$_SERVER['REQUEST_URI'] = '/index.php';
$_SERVER['SERVER_PORT'] = 80;
$_SERVER['SCRIPT_FILENAME'] = '/some/path/to/craft.dev/index.php';
$_SERVER['SCRIPT_NAME'] = '/index.php';
function craft_createFolder($path)
{
// Code borrowed from IOHelper...
if (!is_dir($path))
{
$oldumask = umask(0);
if (!mkdir($path, 0755, true))
{
exit('Tried to create a folder at '.$path.', but could not.');
}
// Because setting permission with mkdir is a crapshoot.
chmod($path, 0755);
umask($oldumask);
}
}
function craft_ensureFolderIsReadable($path, $writableToo = false)
{
$realPath = realpath($path);
// !@file_exists('/.') is a workaround for the terrible is_executable()
if ($realPath === false || !is_dir($realPath) || !@file_exists($realPath.'/.'))
{
exit (($realPath !== false ? $realPath : $path).' doesn\'t exist or isn\'t writable by PHP. Please fix that.');
}
if ($writableToo)
{
if (!is_writable($realPath))
{
exit ($realPath.' isn\'t writable by PHP. Please fix that.');
}
}
}
// Validate permissions on craft/config/ and craft/storage/
craft_ensureFolderIsReadable(CRAFT_CONFIG_PATH);
craft_ensureFolderIsReadable(CRAFT_STORAGE_PATH, true);
// Create the craft/storage/runtime/ folder if it doesn't already exist
craft_createFolder(CRAFT_STORAGE_PATH.'runtime/');
craft_ensureFolderIsReadable(CRAFT_STORAGE_PATH.'runtime/', true);
// change the following paths if necessary
$yiit = CRAFT_APP_PATH.'framework/yiit.php';
$config = CRAFT_APP_PATH.'etc/config/test.php';
require_once($yiit);
require_once CRAFT_APP_PATH.'Craft.php';
require_once CRAFT_APP_PATH.'etc/web/WebApp.php';
require_once CRAFT_APP_PATH.'tests/TestApplication.php';
new Craft\TestApplication($config);
| RobErskine/generator-craft | app/templates/craft/app/tests/bootstrap.php | PHP | mit | 3,152 |
require "importu/backends"
class DummyBackend
def self.supported_by_definition?(definition)
false
end
def initialize(finder_fields:, **)
@finder_fields = finder_fields
@objects = []
@max_id = 0
end
def find(record)
@finder_fields.detect do |field_group|
if field_group.respond_to?(:call) # proc
raise "proc-based finder scopes not supported for dummy backend"
else
values = record.values_at(*Array(field_group))
object = @objects.detect {|o| values == o.values_at(*Array(field_group)) }
break object if object
end
end
end
def unique_id(object)
object[:id]
end
def create(record)
object = { id: @max_id += 1 }.merge(record.to_hash)
@objects << object
[:created, object]
end
def update(record, object)
new_object = object.merge(record.to_hash)
if new_object == object
[:unchanged, new_object]
else
@objects[object[:id]-1] = new_object
[:updated, new_object]
end
end
end
Importu::Backends.registry.register(:dummy, DummyBackend)
| dhedlund/importu | spec/support/dummy_backend.rb | Ruby | mit | 1,083 |
#!/usr/bin/env python3
"""
My radio server application
For my eyes only
"""
#CREATE TABLE Radio(id integer primary key autoincrement, radio text, genre text, url text);
uuid='56ty66ba-6kld-9opb-ak29-0t7f5d294686'
# Import CherryPy global namespace
import os
import sys
import time
import socket
import cherrypy
import sqlite3 as lite
import re
import subprocess
from random import shuffle
# Globals
version = "4.2.1"
database = "database.db"
player = 'omxplayer'
header = '''<!DOCTYPE html>
<html lang="en">
<head>
<title>My Radio Web Server</title>
<meta name="generator" content="Vim">
<meta charset="UTF-8">
<link rel="icon" type="image/png" href="/static/css/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/static/js/jquery-2.0.3.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<!-- Custom styles for this template -->
<link href="/static/css/sticky-footer.css" rel="stylesheet">
<style media="screen" type="text/css">
#radio-playing { display: none; }
#radio-table { display: none; }
#radio-volume { display: none; }
.jumbotron { padding: 10px 10px; }
</style>
<script type="text/javascript">
function fmodradio(rid) {
$.post('/m/', {id: rid},
function(data){
$("#radio-table").html(data);
$("#radio-table").show();
},
"html"
);
}
function fdelradio(rid) {
var r = confirm("DELETING " + rid);
if (r != true) { return; }
$.post('/d/', {id: rid},
function(data){
$("#radio-table").html(data);
$("#radio-table").show();
},
"html"
);
}
function fplayradio(rid) {
$.post('/p/', {id: rid},
function(data){
$("#radio-playing").html(data);
$("#radio-playing").show();
$("#radio-volume").hide();
},
"html"
);
}
function faddfav(i, g) {
$.post('/haddfav/', {id: i},
function(data){
$("#radio-playing").html(data);
$("#radio-playing").show();
$("#radio-volume").hide();
},
"html"
);
}
function fvolradio(updown) {
$.post('/v/', {vol: updown},
function(data){
$("#radio-volume").html(data);
$("#radio-volume").show();
},
"html"
);
}
function fkilradio() {
$.post('/k/',
function(data){
$("#radio-volume").html(data);
$("#radio-volume").show();
},
"html"
);
}
function fsearch(nam, gen) {
$.post('/g/', {name: nam, genre: gen},
function(data) {
$("#radio-table").html(data);
$("#radio-table").show();
},
"html"
);
}
function frandom(n, g) {
$.post('/g/', {name: n, genre: g, randomlist:'true'},
function(data){
$("#radio-table").html(data);
$("#radio-table").show();
},
"html"
);
}
// ----------------------------------------------------------
$(document).ready(function() {
$('body').on('click', '#button-modify', function(e) {
i = $("#idm").val()
n = $("#namem").val()
g = $("#genrem").val()
u = $("#urlm").val()
$.post("/f/", {id: i, name: n, genre: g, url: u})
.done(function(data) {
$("#radio-table").html(data);
$("#radio-table").show();
});
e.preventDefault();
});
$('#namem').keyup(function(e){
if(e.keyCode == 13) {
$('#button-modify').click();
}
});
$('#genrem').keyup(function(e){
if(e.keyCode == 13) {
$('#button-modify').click();
}
});
$('#urlm').keyup(function(e){
if(e.keyCode == 13) {
$('#button-modify').click();
}
});
$('#button-search').click(function(e) {
n = $("#name").val()
g = $("#genre").val()
$.post("/g/", {name: n, genre: g})
.done(function(data) {
$("#radio-table").html(data);
$("#radio-table").show();
});
e.preventDefault();
});
$('#name').keyup(function(e){
if(e.keyCode == 13) {
$('#button-search').click();
}
});
$('#genre').keyup(function(e){
if(e.keyCode == 13) {
$('#button-search').click();
}
});
$("#button-insert").click(function(e) {
n = $("#namei").val()
g = $("#genrei").val()
u = $("#urli").val()
$.post("/i/", {name: n, genre: g, url: u})
.done(function(data) {
$("#radio-table").html(data);
$("#radio-table").show();
});
e.preventDefault();
});
$("#play-radio").click(function(e) {
i = $("#idp").val()
$.post("/p/", {id: i})
.done(function(data) {
$("#radio-playing").html(data);
$("#radio-playing").show();
});
e.preventDefault();
});
});
</script>
</head>
<body>
<div class="container-fluid">
<div class='jumbotron'>
<h2><a href="/">Radio</a>
<a href="#" onClick="fvolradio('down')"><span class="glyphicon glyphicon-volume-down"></span></a>
<a href="#" onClick="fvolradio('up')"><span class="glyphicon glyphicon-volume-up"></span></a>
<a href="#" onClick="fkilradio('up')"> <span class="glyphicon glyphicon-record"></span></a>
</h2>
<p>
<div class="form-group">
<input type="text" id="name" name="name" placeholder="radio to search">
<input type="text" id="genre" name="genre" placeholder="genre" >
<button id="button-search">Search</button>
</div>
</p>
<p>
<div class="form-group">
<input type="text" id="namei" name="name" placeholder="Radio Name">
<input type="text" id="genrei" name="genre" placeholder="genre">
<input type="text" id="urli" name="url" placeholder="http://radio.com/stream.mp3">
<button id="button-insert">Insert</button>
<p>
[
<a href="#" onClick="fsearch('', 'rai')"> rai </a>|
<a href="#" onClick="fsearch('','fav')"> fav </a> |
<a href="#" onClick="fsearch('','rmc')"> rmc </a> |
<a href="#" onClick="fsearch('','class')"> class </a> |
<a href="#" onClick="fsearch('','jazz')"> jazz </a> |
<a href="#" onClick="fsearch('','chill')"> chill </a> |
<a href="#" onClick="fsearch('','nl')"> nl </a> |
<a href="#" onClick="fsearch('','bbc')"> bbc </a> |
<a href="#" onClick="fsearch('','uk')"> uk </a> |
<a href="#" onClick="fsearch('','italy')"> italy </a>
]
</p>
</div>
<small><div id="radio-playing"> </div></small>
</br>
</div> <!-- Jumbotron END -->
<div id="radio-volume"> </div>
<div id="radio-table"> </div>
'''
footer = '''<p></div></body></html>'''
def isplayfile(pathname) :
if os.path.isfile(pathname) == False:
return False
ext = os.path.splitext(pathname)[1]
ext = ext.lower()
if (ext == '.mp2') : return True;
if (ext == '.mp3') : return True;
if (ext == '.ogg') : return True;
return False
# ------------------------ AUTHENTICATION --------------------------------
from cherrypy.lib import auth_basic
# Password is: webradio
users = {'admin':'29778a9bdb2253dd8650a13b8e685159'}
def validate_password(self, login, password):
if login in users :
if encrypt(password) == users[login] :
cherrypy.session['username'] = login
cherrypy.session['database'] = userdatabase(login)
return True
return False
def encrypt(pw):
from hashlib import md5
return md5(pw).hexdigest()
# ------------------------ CLASS --------------------------------
class Root:
@cherrypy.expose
def index(self):
html = header
(_1, _2, id) = getradio('0')
(radio, genre, url) = getradio(id)
if id != 0:
html += '''<h3><a href="#" onClick="fplayradio('%s')"> ''' % id
html += '''Play Last Radio %s <span class="glyphicon glyphicon-play"></span></a></h3>''' % radio
html += getfooter()
return html
@cherrypy.expose
def music(self, directory='/mnt/Media/Music/'):
html = header
count = 0
html += '''<table class="table table-condensed">'''
filelist = os.listdir(directory)
filelist.sort()
for f in filelist:
file = os.path.join(directory, f)
html += '''<tr>'''
if isplayfile(file):
html += '''<td ><a href="#" onClick="fplayradio('%s')">''' % file
html += '''Play %s<span class="glyphicon glyphicon-play"></span></a></td>''' % (file)
if os.path.isdir(file):
html += '''<td ><a href="/music?directory=%s">%s</a> </td>''' % (file, f)
html += '''</tr>'''
count += 1
html += '''</table>'''
html += '''</div> </div>'''
html += getfooter()
return html
@cherrypy.expose
def g(self, name="", genre="", randomlist='false'):
list = searchradio(name.decode('utf8'), genre)
count = 0
# Randomlist
if randomlist == 'true' : shuffle(list)
listhtml = '''<table class="table table-condensed">'''
for id,radio,gen,url in list:
listhtml += '''<tr>'''
listhtml += '''<td width="200px"><a href="#" onClick="fmodradio('%s')" alt="%s">%s</a></td>''' % (id, url, radio)
listhtml += '''<td width="100px">%s</td>''' % gen
listhtml += '''<td ><a href="#" onClick="fplayradio('%s')">Play <span class="glyphicon glyphicon-play"></span></a></td>''' % (id)
listhtml += '''</tr>'''
count += 1
listhtml += '''</table>'''
listhtml += '''</div> </div>'''
html = ''
html += '''<div class="row"> <div class="col-md-8"> '''
if randomlist == 'false':
html += '''<h2><a href="#" onClick="frandom(name='%s', genre='%s', randomlist='true')">%d Results for '%s' + '%s'</a></h2>''' % (name, genre, count, name, genre)
else:
html += '''<h2><a href="#" onClick="fsearch(name='%s', genre='%s')">%d Random for '%s' + '%s'</a></h2>''' % (name, genre, count, name, genre)
html += listhtml
return html
@cherrypy.expose
def i(self, name="", genre="", url=""):
html = "<h2>Insert</h2>"
if name == "" or name == None :
html += "Error no name"
return html
if insert(name, genre, url) == False:
html += "Error db "
return html
html += '''<h3>This radio has been inserted</h3>'''
html += '''<p><table class="table table-condensed">'''
html += ''' <tr> '''
html += ''' <td>radio: <strong>%s</strong></td> ''' % name
html += ''' <td>genre: <strong>%s</strong></td> ''' % genre
html += ''' <td>url: <strong><a href="%s" target="_blank">%s</a></strong></td> ''' % (url, url)
html += ''' <td width="300px"><a href="#" onClick="fplayradio('%s')"> Play ''' % url
html += '''<span class="glyphicon glyphicon-play"></span></a></td>'''
html += ''' </tr> '''
html += '''</table>'''
return html
@cherrypy.expose
def d(self, id=""):
html = "<h2>Delete</h2>"
if id == "" or id == None :
html += "Error"
return html
if id == "0" :
html += "0 is reserved, sorry"
return html
#if delete(id) == False:
if nonexist(id) == False:
html += "Delete error in id" % id
html += getfooter()
return html
html += "Item %s set as non existent" % id
return html
@cherrypy.expose
def p(self, id):
html = ""
if id == "" or id == None :
html += "Error no radio id"
return html
if id == "0" :
html += "0 is reserved, sorry"
return html
(radio, genre, url) = playradio(id)
if url == '':
html += "Error in parameter %s" % url
return html
cherrypy.session['playing'] = id
html += '''<h3>Now Playing: '''
html += '''<a href="%s">%s</a>''' % (url, radio)
html += '''<a href="#" onClick="fplayradio('%s')">''' % id
html += '''<span class="glyphicon glyphicon-play"></span></a>'''
html += ''' <a href="#" onClick="fmodradio('%s')"><span class="glyphicon glyphicon-pencil"></span></a></small> ''' % id
html += '''<a href="#" onClick="fdelradio('%s')"><span class="glyphicon glyphicon-trash"></span></a> ''' % id
html += '''<a href="#" onClick="faddfav('%s')"><span class="glyphicon glyphicon-star"></span></a>''' % id
html += '''</h3>'''
return html
@cherrypy.expose
def v(self, vol=""):
html = ""
if vol == "" or vol == None :
html += "Error"
v = volume(vol)
html += "<h6>%s (%s) </h6>" % (v, vol)
return html
@cherrypy.expose
def m(self, id):
html = '''<h2>Modify</h2>'''
if id == "" or id == None :
html += "Error"
return html
if id == "0" :
html += "0 is reserved, sorry"
return html
(name, genre, url) = getradio(id)
html += '<h3>%s | %s | %s</h3>' % (name, genre, url)
html += '''<input type="hidden" id="idm" name="id" value="%s">''' % id
html += '''<input type="text" id="namem" name="name" value="%s">''' % name
html += '''genre: <input type="text" id="genrem" name="genre" value="%s"> ''' % genre
html += '''url: <input type="text" style="min-width: 280px" id="urlm" name="url" value="%s"> ''' % url
html += '''<button id="button-modify">Change</button>'''
html += '''<h3><a href="#" onClick="fdelradio('%s')">Delete? <span class="glyphicon glyphicon-trash"></span></a></h3>''' % id
html += '''<h3><a href="%s" target="_blank">Play in browser <span class="glyphicon glyphicon-music"></span></a>''' % url
return html
@cherrypy.expose
def f(self, id="", name="", genre="", url=""):
html = '''<h2>Modified</h2>'''
if id == "" or id == None :
html += "Error missing id"
return html
if id == "0" :
html += "0 is reserved, sorry"
return html
if modify(id, name, url, genre) == False:
html += "Error in DB"
return html
(name, genre, url) = getradio(id)
html += '''<p><table class="table table-condensed">'''
html += '''<tr>'''
html += '''<td width="100px"><a href="#" onClick="fmodradio('%s')">''' % id
html += '''Mod <span class="glyphicon glyphicon-pencil"></span></a></td>'''
html += '''<td width="200px">%s</td>''' % name
html += '''<td width="200px">%s</td>''' % genre
html += '''<td><a href="%s" target="_blank">%s</a></td>''' % (url, url)
html += '''<td width="300px"><a href="#" onClick="fplayradio('%s')">'''% url
html += '''Play <span class="glyphicon glyphicon-play"></span></a></td>'''
html += '''</tr>'''
html += '''</table>'''
return html
@cherrypy.expose
def haddfav(self, id=""):
if id == "" or id == None :
html += "Error missing id"
return html
if id == "0" :
html += "0 is reserved, sorry"
return html
(name, genre, url) = getradio(id)
if 'Fav' in genre:
genre = genre.replace(', Fav', '')
star = False
else:
genre += ', Fav'
star = True
if addgen(id, genre) == False:
return ''
(name, genre, url) = getradio(id)
cherrypy.session['playing'] = id
html = '<h3>Now Playing: '
html += '''<a href="%s">%s</a>''' % (url, name)
html += '''<a href="#" onClick="fplayradio('%s')">''' % url
html += '''<span class="glyphicon glyphicon-play"></span></a>'''
html += ''' <a href="#" onClick="fmodradio('%s')"><span class="glyphicon glyphicon-pencil"></span></a></small> ''' % id
html += '''<a href="#" onClick="fdelradio('%s')"><span class="glyphicon glyphicon-trash"></span></a> ''' % id
html += '''<a href="#" onClick="faddfav('%s')"><span class="glyphicon glyphicon-star"></span></a>''' % id
if star:
html += '''Starred'''
html += '''</h3>'''
return html
@cherrypy.expose
def k(self):
html = "<h2>Stopping</h2>"
killall()
return html
# ------------------------ DATABASE --------------------------------
def getfooter() :
global footer, version
db = cherrypy.session['database']
try:
con = lite.connect( db )
cur = con.cursor()
sql = "select radio, genre, url from Radio where id=0"
cur.execute(sql)
(radio, genre, url) = cur.fetchone()
except:
(radio, genre, url) = ('ERROR', sql, '')
con.close()
hostname = socket.gethostname()
f = '''<footer class="footer"> <div class="container">'''
f += '''<p class="text-muted">'''
f += '''Session id: %s - Session Database %s<br>''' % (cherrypy.session.id, cherrypy.session['database'])
f += '''Host: %s - Version: %s - Updated: %s // Last: %s''' % (hostname, version, genre, url)
f += '''</p>'''
f += '''</div></footer>'''
return f + footer
def updateversiondb(cur) :
db = cherrypy.session['database']
username = cherrypy.session['username']
dt = time.strftime("%Y-%m-%d %H:%M:%S")
try:
sql = "UPDATE Radio SET radio='%s', genre='%s' WHERE id = 0" % (hostname, dt)
cur.execute(sql)
except:
return
def delete(id) :
db = cherrypy.session['database']
try:
con = lite.connect( db )
cur = con.cursor()
sql = "DELETE from Radio WHERE id = '%s'" % (id)
cur.execute(sql)
ret = True
except:
ret = False
updateversiondb(cur)
con.commit()
con.close()
return ret
def nonexist(id) :
db = cherrypy.session['database']
sql = "UPDATE Radio set exist = 0 WHERE id = '%s'" % (id)
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
ret = True
except:
ret = False
updateversiondb(cur)
con.commit()
con.close()
return ret
def insert(radio, genre, url) :
db = cherrypy.session['database']
sql = "INSERT INTO Radio (radio, genre, url, exist) VALUES('%s', '%s', '%s', 1)" % (radio, genre, url)
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
ret = True
except:
ret = False
updateversiondb(cur)
con.commit()
con.close()
return ret
def modify(id, radio, url, genre) :
db = cherrypy.session['database']
sql = "UPDATE Radio SET radio='%s', url='%s', genre='%s', exist=1 WHERE id = %s" % (radio, url, genre, id)
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
ret = True
except:
ret = False
updateversiondb(cur)
con.commit()
con.close()
return ret
def addgen(id, genre) :
db = cherrypy.session['database']
sql = "UPDATE Radio SET genre='%s' WHERE id = %s" % (genre, id)
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
ret = True
except:
ret = False
updateversiondb(cur)
con.commit()
con.close()
return ret
def getradio(id) :
db = cherrypy.session['database']
if id.isdigit() :
sql = "select radio, genre, url from Radio where id=%s" % id
else:
sql = "select radio, genre, url from Radio where url=%s" % id
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
except:
rows = [('Not Found', '', '')]
rows = cur.fetchone()
if rows == None:
rows = ('Not Found', '', '')
con.close()
return rows
def searchradio(radio, genre) :
db = cherrypy.session['database']
#o = 'order by radio'
o = ''
sql = "select id, radio, genre, url from Radio where exist > 0 and radio like '%%%s%%' and genre like '%%%s%%' and id > 0 %s" % (radio, genre, o)
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
except:
return [(0, sql, o, genre)]
rows = cur.fetchall()
con.close()
return rows
def updatelastradio(url) :
db = cherrypy.session['database']
sql = "UPDATE Radio SET url='%s' WHERE id=0" % (url)
try:
con = lite.connect( db )
cur = con.cursor()
cur.execute(sql)
con.commit()
con.close()
except:
return
def userdatabase(user) :
db = database
if not os.path.isfile(db):
return None
return db
def getshort(code) :
maxl = 5
newcode = code.replace('http://', '')
if len(newcode) > maxl :
newcode = newcode[0:maxl]
return str(newcode)
def setplayer(p):
global player
player = p
def playradio(urlid):
global player
(radio, genre, url) = getradio(urlid)
status = 0
killall()
if player == 'mpg123':
command = "/usr/bin/mpg123 -q %s" % url
pidplayer = subprocess.Popen(command, shell=True).pid
if player == 'mplayer':
command = "/usr/bin/mplayer -really-quiet %s" % url
pidplayer = subprocess.Popen(command, shell=True).pid
if player == 'omxplayer':
# Process is in background
p = 'omxplayer'
subprocess.Popen([p, url])
updatelastradio(urlid)
return (radio, genre, urlid)
def killall():
global player
status = 0
if player == 'omxplayer':
control = "/usr/local/bin/omxcontrol"
status = subprocess.call([control, "stop"])
status = subprocess.call(["pkill", player])
return status
def volume(vol) :
global player
if player == 'omxplayer':
return volume_omxplayer(vol)
else:
return volume_alsa(vol)
def volume_alsa(vol):
# With ALSA on CHIP
if vol == 'up':
db = subprocess.check_output(["amixer set 'Power Amplifier' 5%+"], shell=True)
#db = os.system("amixer set 'Power Amplifier' 5%+")
if vol == 'down':
db = subprocess.check_output(["amixer set 'Power Amplifier' 5%-"], shell=True)
#db = os.system("amixer set 'Power Amplifier' 5%-")
i = db.rfind(':')
return db[i+1:]
def volume_omxplayer(vol) :
import math
control = "/usr/local/bin/omxcontrol"
if vol == 'up' :
db = subprocess.check_output([control, "volumeup"])
else :
db = subprocess.check_output([control, "volumedown"])
v = subprocess.check_output([control, "volume"])
i = v.rfind(':')
db = 10.0 * math.log(float(v[i+1:]), 10)
volstring = "%-2.2f dB" % db
return volstring
# ------------------------ SYSTEM --------------------------------
def writemypid(pidfile):
pid = str(os.getpid())
with open(pidfile, 'w') as f:
f.write(pid)
f.close
# Cherrypy Management
def error_page_404(status, message, traceback, version):
html = header
html += "%s<br>" % (status)
html += "%s" % (traceback)
html += getfooter()
return html
def error_page_401(status, message, traceback, version):
html = '''<!DOCTYPE html>
<html lang="en">
<head>
<title>My Radio Web Server</title>
<meta name="generator" content="Vim">
<meta charset="UTF-8">
</head>
<body>
'''
html += "<h1>%s</h1>" % (status)
html += "%s<br>" % (message)
return html
# Secure headers!
def secureheaders():
headers = cherrypy.response.headers
headers['X-Frame-Options'] = 'DENY'
headers['X-XSS-Protection'] = '1; mode=block'
headers['Content-Security-Policy'] = "default-src='self'"
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--player', action="store", dest="player", default="mplayer")
parser.add_argument('--stage', action="store", dest="stage", default="production")
parser.add_argument('--database', action="store", dest="database", default="database.db")
parser.add_argument('--root', action="store", dest="root", default=".")
parser.add_argument('--pid', action="store", dest="pid", default="/tmp/8804.pid")
parser.add_argument('--port', action="store", dest="port", type=int, default=8804)
# get args
args = parser.parse_args()
# Where to start, what to get
root = os.path.abspath(args.root)
database = os.path.join(root, args.database)
os.chdir(root)
current_dir = os.path.dirname(os.path.abspath(__file__))
setplayer(args.player)
writemypid(args.pid)
settings = {'global': {'server.socket_host': "0.0.0.0",
'server.socket_port' : args.port,
'log.screen': True,
},
}
conf = {'/static': {'tools.staticdir.on': True,
'tools.staticdir.root': current_dir,
'tools.staticfile.filename': 'icon.png',
'tools.staticdir.dir': 'static'
},
'/': {
'tools.auth_basic.on': True,
'tools.auth_basic.realm': 'localhost',
'tools.auth_basic.checkpassword': validate_password,
'tools.secureheaders.on' : True,
'tools.sessions.on': True,
},
}
cherrypy.config.update(settings)
cherrypy.config.update({'error_page.404': error_page_404})
cherrypy.config.update({'error_page.401': error_page_401})
cherrypy.tools.secureheaders = cherrypy.Tool('before_finalize', secureheaders, priority=60)
# To make it ZERO CPU usage
#cherrypy.engine.timeout_monitor.unsubscribe()
#cherrypy.engine.autoreload.unsubscribe()
# Cherry insert pages
serverroot = Root()
# Start the CherryPy server.
cherrypy.quickstart(serverroot, config=conf)
| ernitron/radio-server | radio-server/server.py | Python | mit | 26,943 |
{% load staticfiles i18n %}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{% block title %}netmon{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
{% block css %}
<!-- Latest compiled and minified Bootstrap 4 Alpha 4 CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/css/bootstrap.min.css" integrity="sha384-2hfp1SzUoho7/TsGGGDaFdsuuDL0LX2hnUp6VkX3CUQ2K4K+xjboZdsXyp4oUHZj" crossorigin="anonymous">
<!-- Your stuff: Third-party CSS libraries go here -->
<!-- This file stores project-specific CSS -->
<link href="{% static 'css/project.css' %}" rel="stylesheet">
{% endblock %}
</head>
<body>
<div class="m-b-1">
<nav class="navbar navbar-dark navbar-static-top bg-inverse">
<div class="container">
<a class="navbar-brand" href="/">netmon</a>
<button type="button" class="navbar-toggler hidden-sm-up pull-xs-right" data-toggle="collapse" data-target="#bs-navbar-collapse-1">
☰
</button>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-toggleable-xs" id="bs-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="{% url 'home' %}">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'about' %}">About</a>
</li>
{# Links to app.customers #}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Customers
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="{% url 'customers:companies' %}">Companies</a>
<a class="dropdown-item" href="{% url 'customers:sites' %}">Sites</a>
</div>
</li>
{# Links to app.netobjects #}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
NetObjects
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="{% url 'netobjects:corenetworkobjects' %}">Network Objects</a>
</div>
</li>
</ul>
<ul class="nav navbar-nav pull-xs-right">
{% if request.user.is_authenticated %}
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a class="nav-link" href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a>
</li>
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a class="nav-link" href="{% url 'account_logout' %}">{% trans "Sign Out" %}</a>
</li>
{% else %}
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a id="sign-up-link" class="nav-link" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a>
</li>
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a id="log-in-link" class="nav-link" href="{% url 'account_login' %}">{% trans "Sign In" %}</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
</div>
<!-- container -->
<div class="container">
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %}">{{ message }}</div>
{% endfor %}
{% endif %}
{% block content %}
<p>Use this document as a way to quick start any new project.</p>
{% endblock content %}
</div>
{% block modal %}{% endblock modal %}
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
{% block javascript %}
<!-- Required by Bootstrap v4 Alpha 4 -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.7/js/tether.min.js" integrity="sha384-XTs3FgkjiBgo8qjEjBk0tGmf3wPrWtA6coPfQDfFEY8AnYJwjalXCiosYRBIBZX8" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/js/bootstrap.min.js" integrity="sha384-VjEeINv9OSwtWFLAtmc4JCtEJXXBub00gtSnszmspDLCtC0I4z4nqz7rEFbIZLLU" crossorigin="anonymous"></script>
<!-- Your stuff: Third-party javascript libraries go here -->
<!-- place project specific Javascript in this file -->
<script src="{% static 'js/project.js' %}"></script>
{% endblock javascript %}
</body>
</html>
| Landver/netmon | netmon/templates/baseold.html | HTML | mit | 5,836 |
require 'spec_helper'
describe 'Git LFS File Locking API' do
include WorkhorseHelpers
let(:project) { create(:project) }
let(:maintainer) { create(:user) }
let(:developer) { create(:user) }
let(:guest) { create(:user) }
let(:path) { 'README.md' }
let(:headers) do
{
'Authorization' => authorization
}.compact
end
shared_examples 'unauthorized request' do
context 'when user is not authorized' do
let(:authorization) { authorize_user(guest) }
it 'returns a forbidden 403 response' do
post_lfs_json url, body, headers
expect(response).to have_gitlab_http_status(403)
end
end
end
before do
allow(Gitlab.config.lfs).to receive(:enabled).and_return(true)
project.add_developer(maintainer)
project.add_developer(developer)
project.add_guest(guest)
end
describe 'Create File Lock endpoint' do
let(:url) { "#{project.http_url_to_repo}/info/lfs/locks" }
let(:authorization) { authorize_user(developer) }
let(:body) { { path: path } }
include_examples 'unauthorized request'
context 'with an existent lock' do
before do
lock_file('README.md', developer)
end
it 'return an error message' do
post_lfs_json url, body, headers
expect(response).to have_gitlab_http_status(409)
expect(json_response.keys).to match_array(%w(lock message documentation_url))
expect(json_response['message']).to match(/already locked/)
end
it 'returns the existen lock' do
post_lfs_json url, body, headers
expect(json_response['lock']['path']).to eq('README.md')
end
end
context 'without an existent lock' do
it 'creates the lock' do
post_lfs_json url, body, headers
expect(response).to have_gitlab_http_status(201)
expect(json_response['lock'].keys).to match_array(%w(id path locked_at owner))
end
end
end
describe 'Listing File Locks endpoint' do
let(:url) { "#{project.http_url_to_repo}/info/lfs/locks" }
let(:authorization) { authorize_user(developer) }
include_examples 'unauthorized request'
it 'returns the list of locked files' do
lock_file('README.md', developer)
lock_file('README', developer)
do_get url, nil, headers
expect(response).to have_gitlab_http_status(200)
expect(json_response['locks'].size).to eq(2)
expect(json_response['locks'].first.keys).to match_array(%w(id path locked_at owner))
end
end
describe 'List File Locks for verification endpoint' do
let(:url) { "#{project.http_url_to_repo}/info/lfs/locks/verify" }
let(:authorization) { authorize_user(developer) }
include_examples 'unauthorized request'
it 'returns the list of locked files grouped by owner' do
lock_file('README.md', maintainer)
lock_file('README', developer)
post_lfs_json url, nil, headers
expect(response).to have_gitlab_http_status(200)
expect(json_response['ours'].size).to eq(1)
expect(json_response['ours'].first['path']).to eq('README')
expect(json_response['theirs'].size).to eq(1)
expect(json_response['theirs'].first['path']).to eq('README.md')
end
end
describe 'Delete File Lock endpoint' do
let!(:lock) { lock_file('README.md', developer) }
let(:url) { "#{project.http_url_to_repo}/info/lfs/locks/#{lock[:id]}/unlock" }
let(:authorization) { authorize_user(developer) }
include_examples 'unauthorized request'
context 'with an existent lock' do
it 'deletes the lock' do
post_lfs_json url, nil, headers
expect(response).to have_gitlab_http_status(200)
end
it 'returns the deleted lock' do
post_lfs_json url, nil, headers
expect(json_response['lock'].keys).to match_array(%w(id path locked_at owner))
end
end
end
def lock_file(path, author)
result = Lfs::LockFileService.new(project, author, { path: path }).execute
result[:lock]
end
def authorize_user(user)
ActionController::HttpAuthentication::Basic.encode_credentials(user.username, user.password)
end
def post_lfs_json(url, body = nil, headers = nil)
post(url, params: body.try(:to_json), headers: (headers || {}).merge('Content-Type' => LfsRequest::CONTENT_TYPE))
end
def do_get(url, params = nil, headers = nil)
get(url, params: (params || {}), headers: (headers || {}).merge('Content-Type' => LfsRequest::CONTENT_TYPE))
end
def json_response
@json_response ||= JSON.parse(response.body)
end
end
| dreampet/gitlab | spec/requests/lfs_locks_api_spec.rb | Ruby | mit | 4,652 |
---
layout: default
title: Yogi Tea Sayings - Archive
---
{% for post in site.posts %}
<article class="saying">{{ post.title }}</article>
{% endfor %}
| parkr/yogi | archive.html | HTML | mit | 154 |
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
/* eslint hammerhead/proto-methods: 2 */
import reEscape from '../utils/regexp-escape';
import INTERNAL_ATTRS from '../processing/dom/internal-attributes';
import { isSpecialPage } from '../utils/url';
const SOURCE_MAP_RE = /#\s*sourceMappingURL\s*=\s*[^\s]+(\s|\*\/)/i;
const CSS_URL_PROPERTY_VALUE_PATTERN = /(url\s*\(\s*)(?:(')([^\s']*)(')|(")([^\s"]*)(")|([^\s\)]*))(\s*\))|(@import\s+)(?:(')([^\s']*)(')|(")([^\s"]*)("))/g;
const STYLESHEET_PROCESSING_START_COMMENT = '/*hammerhead|stylesheet|start*/';
const STYLESHEET_PROCESSING_END_COMMENT = '/*hammerhead|stylesheet|end*/';
const HOVER_PSEUDO_CLASS_RE = /\s*:\s*hover(\W)/gi;
const PSEUDO_CLASS_RE = new RegExp(`\\[${ INTERNAL_ATTRS.hoverPseudoClass }\\](\\W)`, 'ig');
const IS_STYLE_SHEET_PROCESSED_RE = new RegExp(`^\\s*${ reEscape(STYLESHEET_PROCESSING_START_COMMENT) }`, 'gi');
const STYLESHEET_PROCESSING_COMMENTS_RE = new RegExp(`^\\s*${ reEscape(STYLESHEET_PROCESSING_START_COMMENT) }\n?|` +
`\n?${ reEscape(STYLESHEET_PROCESSING_END_COMMENT) }\\s*$`, 'gi');
class StyleProcessor {
constructor () {
this.STYLESHEET_PROCESSING_START_COMMENT = STYLESHEET_PROCESSING_START_COMMENT;
this.STYLESHEET_PROCESSING_END_COMMENT = STYLESHEET_PROCESSING_END_COMMENT;
}
process (css, urlReplacer, isStylesheetTable) {
if (!css || typeof css !== 'string' || IS_STYLE_SHEET_PROCESSED_RE.test(css))
return css;
var prefix = isStylesheetTable ? STYLESHEET_PROCESSING_START_COMMENT + '\n' : '';
var postfix = isStylesheetTable ? '\n' + STYLESHEET_PROCESSING_END_COMMENT : '';
// NOTE: Replace the :hover pseudo-class.
css = css.replace(HOVER_PSEUDO_CLASS_RE, '[' + INTERNAL_ATTRS.hoverPseudoClass + ']$1');
// NOTE: Remove the ‘source map’ directive.
css = css.replace(SOURCE_MAP_RE, '$1');
// NOTE: Replace URLs in CSS rules with proxy URLs.
return prefix + this._replaceStylsheetUrls(css, urlReplacer) + postfix;
}
cleanUp (css, parseProxyUrl) {
if (typeof css !== 'string')
return css;
css = css
.replace(PSEUDO_CLASS_RE, ':hover$1')
.replace(STYLESHEET_PROCESSING_COMMENTS_RE, '');
return this._replaceStylsheetUrls(css, url => {
var parsedProxyUrl = parseProxyUrl(url);
return parsedProxyUrl ? parsedProxyUrl.destUrl : url;
});
}
_replaceStylsheetUrls (css, processor) {
return css.replace(
CSS_URL_PROPERTY_VALUE_PATTERN,
(match, prefix1, openQuote1, url1, closeQuote1, openQuote2, url2, closeQuote2, url3, postfix,
prefix2, openQuote3, url4, closeQuote3, openQuote4, url5, closeQuote4) => {
var prefix = prefix1 || prefix2;
var openQuote = openQuote1 || openQuote2 || openQuote3 || openQuote4 || '';
var url = url1 || url2 || url3 || url4 || url5;
var closeQuote = closeQuote1 || closeQuote2 || closeQuote3 || closeQuote4 || '';
postfix = postfix || '';
var processedUrl = isSpecialPage(url) ? url : processor(url);
return url ? prefix + openQuote + processedUrl + closeQuote + postfix : match;
}
);
}
}
export default new StyleProcessor();
| AlexanderMoskovkin/testcafe-hammerhead | src/processing/style.js | JavaScript | mit | 3,704 |
import announcements from './announcements'
import delegates from './delegates'
import fees from './fees'
import ledger from './ledger'
import market from './market'
import peer from './peer'
import wallets from './wallets'
export {
announcements,
delegates,
fees,
ledger,
market,
peer,
wallets
}
| ArkEcosystem/ark-desktop | src/renderer/services/synchronizer/index.js | JavaScript | mit | 312 |
/**
* @flow
* @module ProductPropertyInput
* @extends React.PureComponent
*
* @author Oleg Nosov <[email protected]>
* @license MIT
*
* @description
* React form for product property(options select only).
*
*/
import React, { PureComponent } from "react";
import { isObject } from "../../../helpers";
import type {
GetLocalization,
InputEvent,
ProductPropertyOption,
Prices,
} from "../../../types";
/**
* @typedef {Object.<string, number>} OptionIndex
*/
export type OptionIndex = {
[propertyName: string]: number,
};
/**
* @typedef {Object} OptionObject
*/
export type OptionObject = {|
onSelect?: (option: OptionObject) => void,
additionalCost?: Prices,
value: ProductPropertyOption,
|};
/** @ */
export type PropertyOption = ProductPropertyOption | OptionObject;
/** @ */
export type PropertyOptions = Array<PropertyOption>;
/** @ */
export type OnChange = (obj: { value: OptionIndex }) => void;
export type Props = {|
name: string,
options: PropertyOptions,
selectedOptionIndex: number,
currency: string,
onChange: OnChange,
getLocalization: GetLocalization,
|};
const defaultProps = {
selectedOptionIndex: 0,
};
export default class ProductPropertyInput extends PureComponent<Props, void> {
props: Props;
static defaultProps = defaultProps;
static displayName = "ProductPropertyInput";
/*
* If option value is an object, we need to extract primitive value
*/
static getOptionValue = (value: PropertyOption): ProductPropertyOption =>
isObject(value) ? ProductPropertyInput.getOptionValue(value.value) : value;
/*
* Generate select input options based on options values
*/
static generateOptionsSelectionList = (
options: PropertyOptions,
getLocalization: GetLocalization,
currency: string,
localizationScope: Object = {},
): Array<React$Element<*>> =>
options
.map(ProductPropertyInput.getOptionValue)
.map((optionValue, index) => (
<option key={optionValue} value={optionValue}>
{typeof optionValue === "string"
? getLocalization(optionValue, {
...localizationScope,
...(isObject(options[index])
? {
cost:
(isObject(options[index].additionalCost) &&
options[index].additionalCost[currency]) ||
0,
}
: {}),
})
: optionValue}
</option>
));
handleSelectInputValueChange = ({ currentTarget }: InputEvent) => {
const { value: optionValue } = currentTarget;
const { name, options, onChange } = this.props;
const { getOptionValue } = ProductPropertyInput;
const selectedOptionIndex = options
.map(getOptionValue)
.indexOf(optionValue);
const selectedOption = options[selectedOptionIndex];
if (
isObject(selectedOption) &&
typeof selectedOption.onSelect === "function"
)
selectedOption.onSelect(selectedOption);
onChange({
value: { [name]: selectedOptionIndex },
});
};
render() {
const {
name,
options,
selectedOptionIndex,
currency,
getLocalization,
} = this.props;
const { handleSelectInputValueChange } = this;
const {
generateOptionsSelectionList,
getOptionValue,
} = ProductPropertyInput;
const localizationScope = {
name,
currency,
get localizedName() {
return getLocalization(name, localizationScope);
},
get localizedCurrency() {
return getLocalization(currency, localizationScope);
},
};
return (
<div className="form-group row">
<label
htmlFor={name}
className="col-xs-3 col-sm-3 col-md-3 col-lg-3 col-form-label"
>
{getLocalization("propertyLabel", localizationScope)}
</label>
<div className="col-xs-9 col-sm-9 col-md-9 col-lg-9">
<select
onChange={handleSelectInputValueChange}
className="form-control"
value={getOptionValue(options[selectedOptionIndex | 0])}
>
{generateOptionsSelectionList(
options,
getLocalization,
currency,
localizationScope,
)}
</select>
</div>
</div>
);
}
}
| olegnn/react-shopping-cart | src/components/Product/ProductPropertyInput/ProductPropertyInput.js | JavaScript | mit | 4,423 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca -->
<head>
<!-- Title begins / Début du titre -->
<title>
Message Communications -
Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada
</title>
<!-- Title ends / Fin du titre -->
<!-- Meta-data begins / Début des métadonnées -->
<meta charset="utf-8" />
<meta name="dcterms.language" title="ISO639-2" content="eng" />
<meta name="dcterms.title" content="" />
<meta name="description" content="" />
<meta name="dcterms.description" content="" />
<meta name="dcterms.type" content="report, data set" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.issued" title="W3CDTF" content="" />
<meta name="dcterms.modified" title="W3CDTF" content="" />
<meta name="keywords" content="" />
<meta name="dcterms.creator" content="" />
<meta name="author" content="" />
<meta name="dcterms.created" title="W3CDTF" content="" />
<meta name="dcterms.publisher" content="" />
<meta name="dcterms.audience" title="icaudience" content="" />
<meta name="dcterms.spatial" title="ISO3166-1" content="" />
<meta name="dcterms.spatial" title="gcgeonames" content="" />
<meta name="dcterms.format" content="HTML" />
<meta name="dcterms.identifier" title="ICsiteProduct" content="536" />
<!-- EPI-11240 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- MCG-202 -->
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- EPI-11567 -->
<meta name = "format-detection" content = "telephone=no">
<!-- EPI-12603 -->
<meta name="robots" content="noarchive">
<!-- EPI-11190 - Webtrends -->
<script>
var startTime = new Date();
startTime = startTime.getTime();
</script>
<!--[if gte IE 9 | !IE ]><!-->
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css">
<!--<![endif]-->
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css">
<!--[if lt IE 9]>
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<![endif]-->
<noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript>
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<script>dataLayer1 = [];</script>
<!-- End Google Tag Manager -->
<!-- EPI-11235 -->
<link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" />
</head>
<body class="home" vocab="http://schema.org/" typeof="WebPage">
<!-- EPIC HEADER BEGIN -->
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script>
<!-- End Google Tag Manager -->
<!-- EPI-12801 -->
<span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span>
<ul id="wb-tphp">
<li class="wb-slc">
<a class="wb-sl" href="#wb-cont">Skip to main content</a>
</li>
<li class="wb-slc visible-sm visible-md visible-lg">
<a class="wb-sl" href="#wb-info">Skip to "About this site"</a>
</li>
</ul>
<header role="banner">
<div id="wb-bnr" class="container">
<section id="wb-lng" class="visible-md visible-lg text-right">
<h2 class="wb-inv">Language selection</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-inline mrgn-bttm-0">
<li><a href="nvgt.do?V_TOKEN=1492303162911&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=30125&V_SEARCH.docsStart=1&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn/updt.sec?_flId?_flxKy=e1s1&estblmntNo=234567041301&profileId=61&_evId=bck&lang=eng&V_SEARCH.showStricts=false&prtl=1&_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li>
</ul>
</div>
</div>
</section>
<div class="row">
<div class="brand col-xs-8 col-sm-9 col-md-6">
<a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a>
</div>
<section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn">
<h2>Search and menus</h2>
<ul class="list-inline text-right chvrn">
<li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li>
</ul>
<div id="mb-pnl"></div>
</section>
<!-- Site Search Removed -->
</div>
</div>
<nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement">
<h2 class="wb-inv">Topics menu</h2>
<div class="container nvbar">
<div class="row">
<ul class="list-inline menu">
<li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li>
<li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li>
<li><a href="https://travel.gc.ca/">Travel</a></li>
<li><a href="https://www.canada.ca/en/services/business.html">Business</a></li>
<li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li>
<li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li>
<li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li>
<li><a href="https://www.canada.ca/en/services.html">More services</a></li>
</ul>
</div>
</div>
</nav>
<!-- EPIC BODY BEGIN -->
<nav role="navigation" id="wb-bc" class="" property="breadcrumb">
<h2 class="wb-inv">You are here:</h2>
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li>
<li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li>
<li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li>
</ol>
</div>
</div>
</nav>
</header>
<main id="wb-cont" role="main" property="mainContentOfPage" class="container">
<!-- End Header -->
<!-- Begin Body -->
<!-- Begin Body Title -->
<!-- End Body Title -->
<!-- Begin Body Head -->
<!-- End Body Head -->
<!-- Begin Body Content -->
<br>
<!-- Complete Profile -->
<!-- Company Information above tabbed area-->
<input id="showMore" type="hidden" value='more'/>
<input id="showLess" type="hidden" value='less'/>
<h1 id="wb-cont">
Company profile - Canadian Company Capabilities
</h1>
<div class="profileInfo hidden-print">
<ul class="list-inline">
<li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&rstBtn.x=" class="btn btn-link">New Search</a> |</li>
<li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do">
<input type="hidden" name="lang" value="eng" />
<input type="hidden" name="profileId" value="" />
<input type="hidden" name="prtl" value="1" />
<input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" />
<input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" />
<input type="hidden" name="V_SEARCH.depth" value="1" />
<input type="hidden" name="V_SEARCH.showStricts" value="false" />
<input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" />
</form></li>
</ul>
</div>
<details>
<summary>Third-Party Information Liability Disclaimer</summary>
<p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p>
</details>
<h2>
Message Communications
</h2>
<div class="row">
<div class="col-md-5">
<h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2>
<p>Message Communications</p>
<div class="mrgn-tp-md"></div>
<p class="mrgn-bttm-0" ><a href="http://www.messagecommunications.ca"
target="_blank" title="Website URL">http://www.messagecommunications.ca</a></p>
<p><a href="mailto:[email protected]" title="[email protected]">[email protected]</a></p>
</div>
<div class="col-md-4 mrgn-sm-sm">
<h2 class="h5 mrgn-bttm-0">Mailing Address:</h2>
<address class="mrgn-bttm-md">
601-283 Bannatyne Ave<br/>
WINNIPEG,
Manitoba<br/>
R3B 3B2
<br/>
</address>
<h2 class="h5 mrgn-bttm-0">Location Address:</h2>
<address class="mrgn-bttm-md">
601-283 Bannatyne Ave<br/>
WINNIPEG,
Manitoba<br/>
R3B 3B2
<br/>
</address>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(204) 880-4509
</p>
<p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>:
(866) 739-5719</p>
</div>
<div class="col-md-3 mrgn-tp-md">
<h2 class="wb-inv">Logo</h2>
<img class="img-responsive text-left" src="https://www.ic.gc.ca/app/ccc/srch/media?estblmntNo=234567111997&graphFileName=MC_rgb+site.jpg&applicationCode=AP&lang=eng" alt="Logo" />
</div>
</div>
<div class="row mrgn-tp-md mrgn-bttm-md">
<div class="col-md-12">
<h2 class="wb-inv">Company Profile</h2>
<br> Provides communication planning, copywriting and public relations services to non-profit and corporate sector.<br>
</div>
</div>
<!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> -->
<div class="wb-tabs ignore-session">
<div class="tabpanels">
<details id="details-panel1">
<summary>
Full profile
</summary>
<!-- Tab 1 -->
<h2 class="wb-invisible">
Full profile
</h2>
<!-- Contact Information -->
<h3 class="page-header">
Contact information
</h3>
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Deborah
Zanke
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
President
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(204) 880-4509
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(866) 739-5719
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
[email protected]
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Company Description -->
<h3 class="page-header">
Company description
</h3>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
No
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
541820 - Public Relations Services
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Services
</div>
</div>
</section>
<!-- Products / Services / Licensing -->
<h3 class="page-header">
Product / Service / Licensing
</h3>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Service Name:
</strong>
</div>
<div class="col-md-9">
Communications/Public Relations<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
Provides communication planning, copywriting and public relations services to non-profit and corporate sector.<br>
<br>
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Technology Profile -->
<!-- Market Profile -->
<!-- Sector Information -->
<details class="mrgn-tp-md mrgn-bttm-md">
<summary>
Third-Party Information Liability Disclaimer
</summary>
<p>
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
</p>
</details>
</details>
<details id="details-panel2">
<summary>
Contacts
</summary>
<h2 class="wb-invisible">
Contact information
</h2>
<!-- Contact Information -->
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Deborah
Zanke
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
President
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(204) 880-4509
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(866) 739-5719
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
[email protected]
</div>
</div>
</section>
</details>
<details id="details-panel3">
<summary>
Description
</summary>
<h2 class="wb-invisible">
Company description
</h2>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
No
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
541820 - Public Relations Services
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Services
</div>
</div>
</section>
</details>
<details id="details-panel4">
<summary>
Products, services and licensing
</summary>
<h2 class="wb-invisible">
Product / Service / Licensing
</h2>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Service Name:
</strong>
</div>
<div class="col-md-9">
Communications/Public Relations<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
Provides communication planning, copywriting and public relations services to non-profit and corporate sector.<br>
<br>
</div>
</div>
</section>
</details>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
Last Update Date 2015-07-07
</div>
</div>
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
<!-- End Body Content -->
<!-- Begin Body Foot -->
<!-- End Body Foot -->
<!-- END MAIN TABLE -->
<!-- End body -->
<!-- Begin footer -->
<div class="row pagedetails">
<div class="col-sm-5 col-xs-12 datemod">
<dl id="wb-dtmd">
<dt class=" hidden-print">Date Modified:</dt>
<dd class=" hidden-print">
<span><time>2017-03-02</time></span>
</dd>
</dl>
</div>
<div class="clear visible-xs"></div>
<div class="col-sm-4 col-xs-6">
</div>
<div class="col-sm-3 col-xs-6 text-right">
</div>
<div class="clear visible-xs"></div>
</div>
</main>
<footer role="contentinfo" id="wb-info">
<nav role="navigation" class="container wb-navcurr">
<h2 class="wb-inv">About government</h2>
<!-- EPIC FOOTER BEGIN -->
<!-- EPI-11638 Contact us -->
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&from=Industries">Contact us</a></li>
<li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li>
<li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li>
<li><a href="https://www.canada.ca/en/news.html">News</a></li>
<li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li>
<li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li>
<li><a href="http://pm.gc.ca/eng">Prime Minister</a></li>
<li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li>
<li><a href="http://open.canada.ca/en/">Open government</a></li>
</ul>
</nav>
<div class="brand">
<div class="container">
<div class="row">
<nav class="col-md-10 ftr-urlt-lnk">
<h2 class="wb-inv">About this site</h2>
<ul>
<li><a href="https://www.canada.ca/en/social.html">Social media</a></li>
<li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li>
<li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li>
</ul>
</nav>
<div class="col-xs-6 visible-sm visible-xs tofpg">
<a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
<div class="col-xs-6 col-md-2 text-right">
<object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object>
</div>
</div>
</div>
</div>
</footer>
<!--[if gte IE 9 | !IE ]><!-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script>
<!--<![endif]-->
<!--[if lt IE 9]>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script>
<![endif]-->
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script>
<!-- EPI-10519 -->
<span class="wb-sessto"
data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span>
<script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script>
<!-- EPI-11190 - Webtrends -->
<script src="/eic/home.nsf/js/webtrends.js"></script>
<script>var endTime = new Date();</script>
<noscript>
<div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=www.ic.gc.ca"/></div>
</noscript>
<!-- /Webtrends -->
<!-- JS deps -->
<script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script>
<!-- EPI-11262 - Util JS -->
<script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script>
<!-- EPI-11383 -->
<script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script>
<span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span>
</body></html>
<!-- End Footer -->
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
| GoC-Spending/data-corporations | html/234567111997.html | HTML | mit | 33,409 |
let BASE_DIR = '/masn01-archive/';
const TAG_OPTIONS = ['meteor', 'cloud', 'bug', 'misc'];
let CURR_DIR = null;
let CURR_FILES = null;
let INIT_CMAP = null;
let CURR_IDX = 0;
let PREV_IDX = null;
$(async function() {
let cameras = JSON.parse(await $.get('cameras.php'));
cameras.forEach((camera) => {
$('#masn-switch').append(`<option value='${camera}/'>${camera}</option>`);
});
BASE_DIR = $('#masn-switch').val();
JS9.ResizeDisplay(750, 750);
TAG_OPTIONS.forEach(tag => $('#tag-select').append(`<option value='${tag}'>${tag}</option>`));
$('#datepicker').prop('disabled', true);
let result = await $.get(BASE_DIR);
let years = getDirectories(result, /\d{4}/);
console.log(years);
new Pikaday({
field: document.getElementById('datepicker'),
format: 'YYYY-MM-DD',
minDate: moment(`${years[0]}-01-01`, 'YYYY-MM-DD').toDate(),
maxDate: moment(`${years[years.length-1]}-12-31`, 'YYYY-MM-DD').toDate(),
defaultDate: moment(`2018-11-20`).toDate(),
onSelect: renderDate,
onDraw: async function(evt) {
let { year, month } = evt.calendars[0];
let { tabs, days } = await $.get(`stats.php?y=${year}&m=${String(month + 1).padStart(2, '0')}`);
let renderedDays = $('.pika-lendar tbody td').filter('[data-day]');
renderedDays.each((_, elem) => {
let dateStr = moment({
day: $(elem).data('day'),
month: month,
year: year
}).format('YYYY-MM-DD');
if (days.indexOf(dateStr) !== -1) {
let dateTab = tabs[days.indexOf(dateStr)];
$(elem).attr('data-tab', dateTab);
if (0 <= dateTab && dateTab < POOR_LIM) $(elem).addClass('day-poor');
else if (POOR_LIM <= dateTab && dateTab < MEDIUM_LIM) $(elem).addClass('day-medium');
else if (MEDIUM_LIM <= dateTab && dateTab < GOOD_LIM) $(elem).addClass('day-good');
}
});
}
});
$('#datepicker').prop('disabled', false);
$('#fileprev').click(function() {
if (CURR_FILES == null) return;
CURR_IDX = CURR_IDX - 1 < 0 ? CURR_FILES.length - 1 : CURR_IDX - 1;
$('#slider').slider('value', CURR_IDX + 1);
renderCurrentFile();
});
$('#filenext').click(function() {
if (CURR_FILES == null) return;
CURR_IDX = CURR_IDX + 1 >= CURR_FILES.length - 1 ? 0 : CURR_IDX + 1;
$('#slider').slider('value', CURR_IDX + 1);
renderCurrentFile();
});
$('#action-tag').click(function() {
let selectedRegions = JS9.GetRegions('selected');
if (selectedRegions.length === 1) {
$('#tag-select')[0].selectedIndex = 0;
$('#tag-modal').show();
} else if (selectedRegions.length > 1) {
alert('Please select only one region.');
} else {
alert('Please select a region.');
}
});
$('#tag-select').change(function(evt) {
let tag = $(this).val();
if (tag.trim() != '') {
JS9.ChangeRegions('selected', { text: tag, data: { tag: tag } });
saveCurrentRegions();
}
$('#tag-modal').hide();
});
$('#action-reset').click(function() {
if (INIT_CMAP == null) return;
JS9.SetColormap(INIT_CMAP.colormap, INIT_CMAP.contrast, INIT_CMAP.bias);
});
$('#action-save').click(function() {
saveCurrentRegions();
alert('All changes saved.');
});
$('#action-info').click(function() {
$('#info-modal').show();
});
$('.modal-close').click(function() {
$('.modal').hide();
});
$(window).keydown(function(evt) {
if (evt.which === 8 && JS9.GetImageData(true)) saveCurrentRegions();
if (evt.which === 27) $('.modal').hide();
});
});
function createSlider() {
let handle = $('#fits-handle');
handle.text(1);
$('#slider').slider({
value: 1,
min: 1,
max: CURR_FILES.length,
change: function(evt, ui) {
handle.text(ui.value);
CURR_IDX = ui.value - 1;
renderCurrentFile();
},
slide: function(evt, ui) {
handle.text(ui.value);
}
});
}
function getDirectories(html, regex) {
let parser = new DOMParser();
let root = parser.parseFromString(html, 'text/html');
let links = [].slice.call(root.getElementsByTagName('a'));
let hrefs = links.map(link => {
let directory = link.href.endsWith('/');
let dest = (directory ? link.href.slice(0, -1) : link.href).split('/').pop();
return dest.match(regex) ? dest : null;
}).filter(e => e != null);
return hrefs;
}
function renderCurrentFile() {
if (PREV_IDX == CURR_IDX) return;
if (CURR_FILES == null) return;
PREV_IDX = CURR_IDX;
let currentFile = CURR_FILES[CURR_IDX];
let currPath = `${CURR_DIR}/${currentFile}`;
JS9.CloseImage();
PREV_ZOOM = null;
PREV_PAN = null;
$('.JS9PluginContainer').each((idx, elem) => {
if($(elem).find('.tag-toggle, #tag-overlay').length === 0) {
$(elem).append(`<div class='tag-toggle'></div>`);
}
});
JS9.globalOpts.menuBar = ['scale'];
JS9.globalOpts.toolBar = ['box', 'circle', 'ellipse', 'zoom+', 'zoom-', 'zoomtofit'];
JS9.SetToolbar('init');
JS9.Load(currPath, {
zoom: 'ToFit',
onload: async function() {
let fileData = JSON.parse(await $.get({
url: 'regions.php',
cache: false
}, {
action: 'list',
path: currentFile
}));
if (Object.keys(fileData).length > 0) {
fileData.params = JSON.parse(fileData.params);
fileData.params.map(region => {
if (region.data.tag) region.text = region.data.tag;
return region;
});
JS9.AddRegions(fileData.params);
}
JS9.SetZoom('ToFit');
if (JS9.GetFlip() === 'none') JS9.SetFlip('x');
CENTER_PAN = JS9.GetPan();
INIT_CMAP = JS9.GetColormap();
console.log(CENTER_PAN);
$('#viewer-container').show();
$('#actions').show();
$('#filename').text(`${currentFile} (${CURR_IDX + 1}/${CURR_FILES.length})`);
$('#filetime').show();
updateSkymap(currentFile);
}
});
}
async function renderDate(date) {
$('#filename').text('Loading...');
let dateStr = moment(date).format('YYYY-MM-DD');
let yearDir = dateStr.substring(0, 4);
let monthDir = dateStr.substring(0, 7);
let parentDir = `${BASE_DIR}${yearDir}/${monthDir}/${dateStr}`
let list;
try {
list = await $.get(parentDir);
} catch (error) {
list = null;
}
let entries = getDirectories(list, /\.fits?/);
console.log(entries);
PREV_IDX = null;
CURR_IDX = 0;
CURR_DIR = parentDir;
CURR_FILES = entries;
if (list) {
$('#skytab').show().attr('src', `${parentDir}/sky.tab.thumb.png`);
createSlider();
renderCurrentFile();
} else {
$('#skytab').hide();
$('#filename').text('No data.');
$('#filetime').hide();
$('#viewer-container').hide();
$('#actions').hide();
}
}
function saveCurrentRegions() {
let regions = JS9.GetRegions('all');
let tags = JS9.GetRegions('all').map(region => region.data ? region.data.tag : null).filter(tag => tag != null);
$.get({
url: 'regions.php',
cache: false
}, {
action: 'update',
path: CURR_FILES[CURR_IDX],
tags: tags.join(','),
params: JSON.stringify(regions)
}).then(response => {
if (response.trim() !== '') {
alert(`Error saving regions: ${response}`);
}
});
}
| warnerem/pyASC | www/js/tagger.js | JavaScript | mit | 8,131 |
import React, { Component, PropTypes } from 'react'
import { Search, Grid } from 'semantic-ui-react'
import { browserHistory } from 'react-router'
import Tag from './Tag'
import { search, setQuery, clearSearch } from '../actions/entities'
import { MIN_CHARACTERS, DONE_TYPING_INTERVAL } from '../constants/search'
const propTypes = {
dispatch: PropTypes.func.isRequired,
search: PropTypes.object.isRequired
}
const resultRenderer = ({ name, type, screenshots }) => {
return (
<Grid>
<Grid.Column floated="left" width={12}>
<Tag name={name} type={type} />
</Grid.Column>
<Grid.Column floated="right" width={4} textAlign="right">
<small className="text grey">{screenshots.length}</small>
</Grid.Column>
</Grid>
)
}
class GlobalSearch extends Component {
state = {
typingTimer: null
}
handleSearchChange = (e, value) => {
clearTimeout(this.state.typingTimer)
this.setState({
typingTimer: setTimeout(
() => this.handleDoneTyping(value.trim()),
DONE_TYPING_INTERVAL
)
})
const { dispatch } = this.props
dispatch(setQuery(value))
}
handleDoneTyping = value => {
if (value.length < MIN_CHARACTERS) return
const { dispatch } = this.props
dispatch(search({ query: value }))
}
handleResultSelect = (e, item) => {
const { dispatch } = this.props
const { name } = item
dispatch(clearSearch())
browserHistory.push(`/tag/${name}`)
}
render() {
const { search } = this.props
const { query, results } = search
return (
<Search
minCharacters={MIN_CHARACTERS}
onSearchChange={this.handleSearchChange}
onResultSelect={this.handleResultSelect}
resultRenderer={resultRenderer}
results={results}
value={query}
/>
)
}
}
GlobalSearch.propTypes = propTypes
export default GlobalSearch
| kingdido999/atogatari | client/src/components/GlobalSearch.js | JavaScript | mit | 1,903 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("PollSystem")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PollSystem")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ee67169c-26f5-4dbd-8229-9f8ada329a77")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| vladislav-karamfilov/TelerikAcademy | ASP.NET WebForms Projects/ExamPreparation/PollSystem/PollSystem/Properties/AssemblyInfo.cs | C# | mit | 1,356 |
<!-- HTML header for doxygen 1.8.10-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>SideCar: SideCar::Parameter::Defs::DynamicRangedTypeTraits< T > Struct Template 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="DoxygenStyleSheet.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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SideCar
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceSideCar.html">SideCar</a></li><li class="navelem"><a class="el" href="namespaceSideCar_1_1Parameter.html">Parameter</a></li><li class="navelem"><a class="el" href="namespaceSideCar_1_1Parameter_1_1Defs.html">Defs</a></li><li class="navelem"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits.html">DynamicRangedTypeTraits</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SideCar::Parameter::Defs::DynamicRangedTypeTraits< T > Struct Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Complete type and class method definitions for a parameter value with dynamically defined value ranges.
<a href="structSideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits.html#details">More...</a></p>
<p><code>#include <<a class="el" href="Parameter_8h_source.html">/Users/howes/src/sidecar/Parameter/Parameter.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for SideCar::Parameter::Defs::DynamicRangedTypeTraits< T >:</div>
<div class="dyncontent">
<div class="center"><img src="structSideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits__inherit__graph.png" border="0" usemap="#SideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits_3_01T_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="SideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits_3_01T_01_4_inherit__map" id="SideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits_3_01T_01_4_inherit__map">
<area shape="rect" id="node2" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html" title="SideCar::Parameter\l::Defs::BasicDynamicRanged\lTypeDef\< T \>" alt="" coords="35,199,228,267"/>
<area shape="rect" id="node3" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html" title="SideCar::Parameter\l::Defs::BasicTypeDef\< T \>" alt="" coords="44,102,220,151"/>
<area shape="rect" id="node5" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html" title="Helper class that initializes an XML-RPC value object with a name and type. " alt="" coords="119,5,256,54"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td colspan="2" onclick="javascript:toggleInherit('pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html">SideCar::Parameter::Defs::BasicDynamicRangedTypeDef< T ></a></td></tr>
<tr class="memitem:a95ccf0377a3a21163ee27943afaa708e inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95ccf0377a3a21163ee27943afaa708e"></a>
using </td><td class="memItemRight" valign="bottom"><b>Super</b> = <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html">BasicTypeDef</a>< T ></td></tr>
<tr class="separator:a95ccf0377a3a21163ee27943afaa708e inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f613529db0949b79d2e079805770df3 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3f613529db0949b79d2e079805770df3"></a>
using </td><td class="memItemRight" valign="bottom"><b>ValueType</b> = typename T::ValueType</td></tr>
<tr class="separator:a3f613529db0949b79d2e079805770df3 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaf189c0f613360a7035b72d9948c2339 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf189c0f613360a7035b72d9948c2339"></a>
using </td><td class="memItemRight" valign="bottom"><b>XMLType</b> = typename T::XMLType</td></tr>
<tr class="separator:aaf189c0f613360a7035b72d9948c2339 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5195f7974c63e086ec3d450f65ede335 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5195f7974c63e086ec3d450f65ede335"></a>
using </td><td class="memItemRight" valign="bottom"><b>ConstReferenceType</b> = const typename T::ValueType &</td></tr>
<tr class="separator:a5195f7974c63e086ec3d450f65ede335 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td colspan="2" onclick="javascript:toggleInherit('pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html">SideCar::Parameter::Defs::BasicTypeDef< T ></a></td></tr>
<tr class="memitem:a1a84d368faf2e57fa930ea1dd613f961 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a84d368faf2e57fa930ea1dd613f961"></a>
using </td><td class="memItemRight" valign="bottom"><b>ValueType</b> = typename T::ValueType</td></tr>
<tr class="separator:a1a84d368faf2e57fa930ea1dd613f961 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5620f996abc0d415910acfecac60a812 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5620f996abc0d415910acfecac60a812"></a>
using </td><td class="memItemRight" valign="bottom"><b>XMLType</b> = typename T::XMLType</td></tr>
<tr class="separator:a5620f996abc0d415910acfecac60a812 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a57a10640ac22043c5457c45b2621ddfc inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a57a10640ac22043c5457c45b2621ddfc"></a>
using </td><td class="memItemRight" valign="bottom"><b>ReferenceType</b> = typename T::ValueType &</td></tr>
<tr class="separator:a57a10640ac22043c5457c45b2621ddfc inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a884452be4ca790b3e9daa510b3189255 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a884452be4ca790b3e9daa510b3189255"></a>
using </td><td class="memItemRight" valign="bottom"><b>ConstReferenceType</b> = const typename T::ValueType &</td></tr>
<tr class="separator:a884452be4ca790b3e9daa510b3189255 inherit pub_types_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html">SideCar::Parameter::Defs::BasicDynamicRangedTypeDef< T ></a></td></tr>
<tr class="memitem:a0739c380f6dc2305036cf19e58b7380f inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html#a0739c380f6dc2305036cf19e58b7380f">IsValid</a> (ConstReferenceType value) const</td></tr>
<tr class="memdesc:a0739c380f6dc2305036cf19e58b7380f inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Determine if a given value is valid for this type. <a href="#a0739c380f6dc2305036cf19e58b7380f">More...</a><br /></td></tr>
<tr class="separator:a0739c380f6dc2305036cf19e58b7380f inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ace87cbab03bcc5f7a987782bdfa6a02f inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html#ace87cbab03bcc5f7a987782bdfa6a02f">DescribeXML</a> (<a class="el" href="classXmlRpc_1_1XmlRpcValue.html">XmlRpc::XmlRpcValue</a> &xml, const std::string &name, const std::string &label, bool isAdvanced, XMLType value, XMLType original) const</td></tr>
<tr class="memdesc:ace87cbab03bcc5f7a987782bdfa6a02f inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Obtain an XML description with the parameter's value, including bounds information. <a href="#ace87cbab03bcc5f7a987782bdfa6a02f">More...</a><br /></td></tr>
<tr class="separator:ace87cbab03bcc5f7a987782bdfa6a02f inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a401cb19460cf220cdf91eadf976798b0 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html#a401cb19460cf220cdf91eadf976798b0">setMinValue</a> (const ValueType &value)</td></tr>
<tr class="memdesc:a401cb19460cf220cdf91eadf976798b0 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Set the parameter's minimum acceptable value. <a href="#a401cb19460cf220cdf91eadf976798b0">More...</a><br /></td></tr>
<tr class="separator:a401cb19460cf220cdf91eadf976798b0 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae936dada01919307c26550539b69a84c inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html#ae936dada01919307c26550539b69a84c">setMaxValue</a> (const ValueType &value)</td></tr>
<tr class="memdesc:ae936dada01919307c26550539b69a84c inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Set the parameter's maximum acceptable value. <a href="#ae936dada01919307c26550539b69a84c">More...</a><br /></td></tr>
<tr class="separator:ae936dada01919307c26550539b69a84c inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8a0b9ccc21762188428914fff7315802 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top">const ValueType & </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html#a8a0b9ccc21762188428914fff7315802">getMinValue</a> () const</td></tr>
<tr class="memdesc:a8a0b9ccc21762188428914fff7315802 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Get the parameter's minimum acceptable value. <a href="#a8a0b9ccc21762188428914fff7315802">More...</a><br /></td></tr>
<tr class="separator:a8a0b9ccc21762188428914fff7315802 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a533ba881f9333abbb89837269ecda4a1 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memItemLeft" align="right" valign="top">const ValueType & </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef.html#a533ba881f9333abbb89837269ecda4a1">getMaxValue</a> () const</td></tr>
<tr class="memdesc:a533ba881f9333abbb89837269ecda4a1 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Get the parameter's maximum acceptable value. <a href="#a533ba881f9333abbb89837269ecda4a1">More...</a><br /></td></tr>
<tr class="separator:a533ba881f9333abbb89837269ecda4a1 inherit pub_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicDynamicRangedTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html">SideCar::Parameter::Defs::BasicTypeDef< T ></a></td></tr>
<tr class="memitem:a0e5cdbebc3a9b832a85ad82548d67c21 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a0e5cdbebc3a9b832a85ad82548d67c21">IsValid</a> (ConstReferenceType)</td></tr>
<tr class="memdesc:a0e5cdbebc3a9b832a85ad82548d67c21 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Determine if a given value is valid for this type. <a href="#a0e5cdbebc3a9b832a85ad82548d67c21">More...</a><br /></td></tr>
<tr class="separator:a0e5cdbebc3a9b832a85ad82548d67c21 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab30dce3ec33ba109fa57ecdc24aed34a inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#ab30dce3ec33ba109fa57ecdc24aed34a">Load</a> (std::istream &is, ReferenceType value)</td></tr>
<tr class="memdesc:ab30dce3ec33ba109fa57ecdc24aed34a inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a value from a C++ input stream. <a href="#ab30dce3ec33ba109fa57ecdc24aed34a">More...</a><br /></td></tr>
<tr class="separator:ab30dce3ec33ba109fa57ecdc24aed34a inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1ab5cf347fb98e965584022069ee2725 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a1ab5cf347fb98e965584022069ee2725">Load</a> (ACE_InputCDR &cdr, ReferenceType value)</td></tr>
<tr class="memdesc:a1ab5cf347fb98e965584022069ee2725 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Obtain a value from an ACE CDR input stream. <a href="#a1ab5cf347fb98e965584022069ee2725">More...</a><br /></td></tr>
<tr class="separator:a1ab5cf347fb98e965584022069ee2725 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8c2cb72ccf064f958ec0a396b595db1b inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a8c2cb72ccf064f958ec0a396b595db1b">Save</a> (std::ostream &os, const std::string &name, ConstReferenceType value)</td></tr>
<tr class="memdesc:a8c2cb72ccf064f958ec0a396b595db1b inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Write out a name and value to a C++ output stream. <a href="#a8c2cb72ccf064f958ec0a396b595db1b">More...</a><br /></td></tr>
<tr class="separator:a8c2cb72ccf064f958ec0a396b595db1b inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a49d135f2cf204948a4d802e4b8c59007 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static ACE_OutputCDR & </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a49d135f2cf204948a4d802e4b8c59007">Write</a> (ACE_OutputCDR &cdr, ConstReferenceType value)</td></tr>
<tr class="memdesc:a49d135f2cf204948a4d802e4b8c59007 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Write out a name and value to an ACE CDR output stream. <a href="#a49d135f2cf204948a4d802e4b8c59007">More...</a><br /></td></tr>
<tr class="separator:a49d135f2cf204948a4d802e4b8c59007 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a94b075480720c96b277de587f3397923 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static ValueType </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a94b075480720c96b277de587f3397923">FromXML</a> (<a class="el" href="classXmlRpc_1_1XmlRpcValue.html">XmlRpc::XmlRpcValue</a> &value)</td></tr>
<tr class="memdesc:a94b075480720c96b277de587f3397923 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Convert an XML-RPC value to the template's value type. <a href="#a94b075480720c96b277de587f3397923">More...</a><br /></td></tr>
<tr class="separator:a94b075480720c96b277de587f3397923 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0e1a449c097613b0c2e9f24979dc0092 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static XMLType </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a0e1a449c097613b0c2e9f24979dc0092">ToXML</a> (ConstReferenceType value)</td></tr>
<tr class="memdesc:a0e1a449c097613b0c2e9f24979dc0092 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Convert a held value into a compatible XML-RPC value. <a href="#a0e1a449c097613b0c2e9f24979dc0092">More...</a><br /></td></tr>
<tr class="separator:a0e1a449c097613b0c2e9f24979dc0092 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a81bc6b726bb8e48c696c4d6042ab8fd3 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef.html#a81bc6b726bb8e48c696c4d6042ab8fd3">DescribeXML</a> (<a class="el" href="classXmlRpc_1_1XmlRpcValue.html">XmlRpc::XmlRpcValue</a> &xml, const std::string &name, const std::string &label, bool isAdvanced, XMLType value, XMLType original)</td></tr>
<tr class="memdesc:a81bc6b726bb8e48c696c4d6042ab8fd3 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="mdescLeft"> </td><td class="mdescRight">Obtain an XML description with the parameter's value. <a href="#a81bc6b726bb8e48c696c4d6042ab8fd3">More...</a><br /></td></tr>
<tr class="separator:a81bc6b726bb8e48c696c4d6042ab8fd3 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1BasicTypeDef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html">SideCar::Parameter::Defs::XMLMixin</a></td></tr>
<tr class="memitem:a9a08abbccfa76ca26fe5ab4d452538ce inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classLogger_1_1Log.html">Logger::Log</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html#a9a08abbccfa76ca26fe5ab4d452538ce">Log</a> ()</td></tr>
<tr class="memdesc:a9a08abbccfa76ca26fe5ab4d452538ce inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="mdescLeft"> </td><td class="mdescRight">Obtain the log device for <a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html" title="Helper class that initializes an XML-RPC value object with a name and type. ">XMLMixin</a> log messages. <a href="#a9a08abbccfa76ca26fe5ab4d452538ce">More...</a><br /></td></tr>
<tr class="separator:a9a08abbccfa76ca26fe5ab4d452538ce inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3d38823e6f1b4c128fc145917c532860 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html#a3d38823e6f1b4c128fc145917c532860">Init</a> (<a class="el" href="classXmlRpc_1_1XmlRpcValue.html">XmlRpc::XmlRpcValue</a> &xml, const std::string &name, const std::string &typeName, const std::string &label, bool isAdvanced)</td></tr>
<tr class="memdesc:a3d38823e6f1b4c128fc145917c532860 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="mdescLeft"> </td><td class="mdescRight">Initialize an XML-RPC container object with a parameter's name, type, <a class="el" href="namespaceSideCar_1_1GUI.html" title="Namespace for the GUI applications. ">GUI</a> label, and 'advanced' flag. <a href="#a3d38823e6f1b4c128fc145917c532860">More...</a><br /></td></tr>
<tr class="separator:a3d38823e6f1b4c128fc145917c532860 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a32c77d9d411b7204a45bd3aa1ac8ce inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html#a1a32c77d9d411b7204a45bd3aa1ac8ce">AddEnumNames</a> (<a class="el" href="classXmlRpc_1_1XmlRpcValue.html">XmlRpc::XmlRpcValue</a> &xml, const char *const *names, size_t size)</td></tr>
<tr class="memdesc:a1a32c77d9d411b7204a45bd3aa1ac8ce inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="mdescLeft"> </td><td class="mdescRight">Add enumeration tags to an XML-RPC conainer. <a href="#a1a32c77d9d411b7204a45bd3aa1ac8ce">More...</a><br /></td></tr>
<tr class="separator:a1a32c77d9d411b7204a45bd3aa1ac8ce inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad558c1a3571b68769cb1c8e473c33233 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin.html#ad558c1a3571b68769cb1c8e473c33233">AddEnumNames</a> (<a class="el" href="classXmlRpc_1_1XmlRpcValue.html">XmlRpc::XmlRpcValue</a> &xml, const std::vector< std::string > &names)</td></tr>
<tr class="memdesc:ad558c1a3571b68769cb1c8e473c33233 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="mdescLeft"> </td><td class="mdescRight">Add enumeration tags to an XML-RPC conainer. <a href="#ad558c1a3571b68769cb1c8e473c33233">More...</a><br /></td></tr>
<tr class="separator:ad558c1a3571b68769cb1c8e473c33233 inherit pub_static_methods_structSideCar_1_1Parameter_1_1Defs_1_1XMLMixin"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template<typename T><br />
struct SideCar::Parameter::Defs::DynamicRangedTypeTraits< T ></h3>
<p>Complete type and class method definitions for a parameter value with dynamically defined value ranges. </p>
<p>Definition at line <a class="el" href="Parameter_8h_source.html#l01171">1171</a> of file <a class="el" href="Parameter_8h_source.html">Parameter.h</a>.</p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>/Users/howes/src/sidecar/Parameter/<a class="el" href="Parameter_8h_source.html">Parameter.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
| bradhowes/sidecar | docs/structSideCar_1_1Parameter_1_1Defs_1_1DynamicRangedTypeTraits.html | HTML | mit | 29,751 |
require 'test_helper'
class HostRedirectorTest < ActionController::TestCase
tests MyController
setup do
@old_host = get_config_host
set_config_host "localhost"
end
teardown do
set_config_host @old_host
end
test "should get index" do
request.host = "localhost"
get :index
assert_response :success
end
test "should redirect ip" do
request.host = "127.0.0.1"
get :index
assert_permanently_redirected_to "http://localhost/my"
end
test "should redirect hostname" do
request.host = "blah"
get :index
assert_permanently_redirected_to "http://localhost/my"
end
test "should redirect with port" do
request.host = "blah:3000"
get :index
assert_permanently_redirected_to "http://localhost:3000/my"
end
end
| johngibb/host-redirector | test/host_redirector_test.rb | Ruby | mit | 808 |
/***********************************************************************
* Copyright (c) 2015 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or https://www.opensource.org/licenses/mit-license.php.*
***********************************************************************/
/****
* Please do not link this file directly. It is not part of the libsecp256k1
* project and does not promise any stability in its API, functionality or
* presence. Projects which use this code should instead copy this header
* and its accompanying .c file directly into their codebase.
****/
/* This file defines a function that parses DER with various errors and
* violations. This is not a part of the library itself, because the allowed
* violations are chosen arbitrarily and do not follow or establish any
* standard.
*
* In many places it matters that different implementations do not only accept
* the same set of valid signatures, but also reject the same set of signatures.
* The only means to accomplish that is by strictly obeying a standard, and not
* accepting anything else.
*
* Nonetheless, sometimes there is a need for compatibility with systems that
* use signatures which do not strictly obey DER. The snippet below shows how
* certain violations are easily supported. You may need to adapt it.
*
* Do not use this for new systems. Use well-defined DER or compact signatures
* instead if you have the choice (see secp256k1_ecdsa_signature_parse_der and
* secp256k1_ecdsa_signature_parse_compact).
*
* The supported violations are:
* - All numbers are parsed as nonnegative integers, even though X.609-0207
* section 8.3.3 specifies that integers are always encoded as two's
* complement.
* - Integers can have length 0, even though section 8.3.1 says they can't.
* - Integers with overly long padding are accepted, violation section
* 8.3.2.
* - 127-byte long length descriptors are accepted, even though section
* 8.1.3.5.c says that they are not.
* - Trailing garbage data inside or after the signature is ignored.
* - The length descriptor of the sequence is ignored.
*
* Compared to for example OpenSSL, many violations are NOT supported:
* - Using overly long tag descriptors for the sequence or integers inside,
* violating section 8.1.2.2.
* - Encoding primitive integers as constructed values, violating section
* 8.3.1.
*/
#ifndef SECP256K1_CONTRIB_LAX_DER_PARSING_H
#define SECP256K1_CONTRIB_LAX_DER_PARSING_H
/* #include secp256k1.h only when it hasn't been included yet.
This enables this file to be #included directly in other project
files (such as tests.c) without the need to set an explicit -I flag,
which would be necessary to locate secp256k1.h. */
#ifndef SECP256K1_H
#include <secp256k1.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/** Parse a signature in "lax DER" format
*
* Returns: 1 when the signature could be parsed, 0 otherwise.
* Args: ctx: a secp256k1 context object
* Out: sig: a pointer to a signature object
* In: input: a pointer to the signature to be parsed
* inputlen: the length of the array pointed to be input
*
* This function will accept any valid DER encoded signature, even if the
* encoded numbers are out of range. In addition, it will accept signatures
* which violate the DER spec in various ways. Its purpose is to allow
* validation of the Syscoin blockchain, which includes non-DER signatures
* from before the network rules were updated to enforce DER. Note that
* the set of supported violations is a strict subset of what OpenSSL will
* accept.
*
* After the call, sig will always be initialized. If parsing failed or the
* encoded numbers are out of range, signature validation with it is
* guaranteed to fail for every message and public key.
*/
int ecdsa_signature_parse_der_lax(
const secp256k1_context* ctx,
secp256k1_ecdsa_signature* sig,
const unsigned char *input,
size_t inputlen
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
#ifdef __cplusplus
}
#endif
#endif /* SECP256K1_CONTRIB_LAX_DER_PARSING_H */
| syscoin/syscoin | src/secp256k1/contrib/lax_der_parsing.h | C | mit | 4,234 |
# .NET CoreのプロジェクトをCIする方法
サンプル : https://ci.appveyor.com/project/KazuhitoMiura/dotnetcoresample/history
MSの.NET系のCI…といえばAppVeyorなのですが、.NET Coreのやつは「今まだ対応されてない」ので、 `appveyor.yml` という設定ファイルを書きます。
UIと両方できるのですが、設定ファイルに書きます。
https://github.com/Remote-Pairpro/DotNetCoreSample/blob/master/appveyor.yml
ランナーはxunitをつかってるので、いくつかのサイトでは「特殊な設定が必要」て感じなのですが、自分のプロジェクトでは `dotnet test` だけで行けました。
---
でも、AppVeiyrの売りは
「MS系の.NetのプロジェクトをCIビルド出来る、何も書かなくてもビルドコマンド探したりテスト種探したり、ある程度自動でアジャストしてくる」
ことにあると思うですが、ビルドもテストも書いてしまうなら、その利点も薄れます。
そう、 `.Net Core` なんだから「Linux系のCIサービスでもテスト実行出来る」わけです。
(CircleCIの例とか載せる)
## 参考資料
https://github.com/StevenLiekens/dotnet-core-appveyor/blob/master/appveyor.yml
https://xunit.github.io/docs/getting-started-dotnet-core.html
https://github.com/xunit/xunit/issues/1331
| kazuhito-m/kazuhito-m.github.io | _drafts/dotnet-core-ci.md | Markdown | mit | 1,391 |
---
title: 'off-canvas'
items:
1:
url: /
title: Front Page
icon: home
2:
url: /tools
title: Tools
icon: wrench
3:
url: /forms
title: Forms
icon: files-o
4:
url: /alerts
title: Alerts
icon: bell-o
--- | khanduras/grav-backbone-js | pages/extras/menus/off-canvas/menu.md | Markdown | mit | 311 |
PowerdnsOnRails::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = "X-Sendfile"
# For nginx:
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
# If you have no front-end server that supports something like X-Sendfile,
# just comment this out and Rails will serve the files
# See everything in the log (default is :info)
# config.log_level = :debug
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
# Use a different cache store in production
# config.cache_store = :mem_cache_store
# Disable Rails's static asset server
# In production, Apache or nginx will already do this
config.serve_static_assets = false
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
# Enable threaded mode
# config.threadsafe!
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found)
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Generate digests for assets URLs
config.assets.digest = true
# Defaults to Rails.root.join("public/assets")
# config.assets.manifest = YOUR_PATH
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
end
| kennethkalmer/powerdns-on-rails | config/environments/production.rb | Ruby | mit | 2,371 |
%"Èíòåëëåêòóàëüíûå" êðåñòèêè-íîëèêè íà Java Internet Prolog
%êîìïüþòåð óìååò èãðàòü è çà êðåñòèêè, è çà 0
% (Ñ) À.À. Òþãàøåâ 2014
%Êëåòêè ïîëÿ çàäàþòñÿ êîîðäèíàòàìè, íàïèìåð, [3,1] - ïðàâûé âåðõíèé óãîë
%ñíà÷àëà íîìåð âåðòèêàëè!
% 1 2 3
%1 | |
%---------------------
%2 | |
%---------------------
%3 | |
%âñïîìîãàòåëüíûé ïðåäèêàò - îïðåäåëÿåò ïóñòîòó ïîëÿ
free(X):-p(-,X).
%âñïîìîãàòåëüíûé ïðåäèêàò - îïðåäåëÿåò, ÷åì èãðàåò ñîïåðíèê
partner(0,x).
partner(x,0).
%âñïîìîãàòåëüíûé ïðåäèêàò - äîïîëíåíèå äî çàïîëíåíèÿ ïîëíîãî ñïèñêà êîîðäèíàò [1,2,3] íà ãåíåðàòîðå âñåõ ïåðåñòàíîâîê ýëåìåíòîâ òðîåê
%ò.å. äëÿ [1,X,2] äàåò X=3, äëÿ [1,2,X] - X=3, äëÿ [X,2,3] - 1, è òàê äàëåå
dop(X):-permutation([1,2,3],X).
%÷òî òàêîå "íà îäíîé ëèíèè"
same_line(S):-glav_diagonal(L),permutation(S,L).
same_line(S):-pob_diagonal(L),permutation(S,L).
same_line(S):-vertikal(L),permutation(S,L).
same_line(S):-horizontal(L),permutation(S,L).
%ãëàâíàÿ è ïîáî÷íàÿ äèàãîíàëè, ãîðèçîíòàëü, âåðòèêàëü
glav_diagonal([[1,1],[2,2],[3,3]]).
pob_diagonal([[3,1],[2,2],[1,3]]).
horizontal([[P,Y],[K,Y],[L,Y]]):-dop([P,K,L]),dop([Y,_,_]).
vertikal([[X,P],[X,K],[X,L]]):-dop([P,K,L]),dop([X,_,_]).
%========================================================== ÎÑÍÎÂÍÀß ËÎÃÈÊÀ ÈÃÐÛ - ïðåäèêàò hod (×åì,Êóäà) íàïðèìåð Hod(x,[3,1]).
%ïîðÿäîê ïðåäèêàòîâ hodl(D,P) èìååò çíà÷åíèå, èñïîëüçóåòñÿ îòñå÷åíèå ! ïîñëå âûáîðà õîäà äëÿ îòáðàñûâàíèÿ íèæåñòîÿùèõ
%------------------ Ïåðâûì äåëîì ïûòàåìñÿ âûèãðàòü, çàòåì íå ïðîèãðàòü
hod(D,P):-free(P),try_win(D,P),!.
%----- íå ïðîèãðàé
hod(D,P):-free(P),not_lose(D,P),!.
%----- Åñëè óæå åñòü äâà îäèíàêîâûõ íà îäíîé ëèíèè -> äåëàåì õîä, ëèáî çàâåðøàþùèé çàïîëíåíèå ëèíèè, ëèáî ìåøàþùèé, åñëè ñòîÿò çíàêè ïðîòèâíèêà
try_win(D,P):-same_line([X,Y,P]),p(D,X),p(D,Y),not(free(X)),!.
not_lose(O,P):-same_line([X,Y,P]),p(D,X),p(D,Y),partner(O,D),!.
%--------------------------------- Ñëåäóþùèé ïî ïðèîðèòåòíîñòè õîä - ïîñòàâèòü âèëêó --------------------------------------------------------
hod(D,P):-free(P),try_attack(D,P),!.
%---------------------------- âèëêà îáðàçóåòñÿ åñëè ñòàíåò ïîñëå õîäà äâà îäèíàêîâûõ çíàêà íà îäíîé ëèíèè, íå áëîêèðîâàíà àòàêà, è åùå ïî îäíîé ëèíèè - òî æå ñàìîå
try_attack(D,X):-same_line([X,P,M]),same_line([X,K,L]),p(D,P),p(D,K),free(M),free(L),P\=K,M\=L,!.
%Åñëè íè÷åãî âûøå íå ïîäîøëî
%------------- âñïîìîãàòåëüíàÿ ëîãèêà äëÿ õîäîâ íà÷àëà èãðû
ugol([3,3]). ugol([1,1]). ugol([1,3]).
%ñàìûé ñèëüíûé ïåðâûé õîä - â [3,1]
hod(_,[3,1]):-free([3,1]),!. %è êðåñòèêàìè, è íîëèêàìè è äîñòóïíîñòü ïîëÿ [3,1] ìîæíî îòäåëüíî íå ïðîâåðÿòü ;-)
hod(0,[2,2]):-free([2,2]),!.
hod(x,U):-free(U),glav_diagonal([P,L,U]),p(0,L),p(x,P),!.
hod(x,U):-free(U),pob_diagonal([P,L,U]),p(0,L),p(x,P),!.
hod(x,[2,2] ):-free([2,2] ),p(0,O),not(ugol(O)),!.
hod(x,X):-free(X),p(0,O),ugol(O),ugol(X),!.
hod(0,[2,1] ):-free([2,1] ),p(0,[2,2] ),!.
hod(0,O):-free(O),ugol(O),p(x,[2,2] ),!.
%èíà÷å - â ïåðâóþ ïîïàâøóþñÿ ñëó÷àéíóþ êëåòêó
hod(D,P):-free(P),!.
| petruchcho/Android-JIProlog-XO | Java+Prolog/assets/tyugashov.pl | Perl | mit | 3,018 |
'''
Test cases for pyclbr.py
Nick Mathewson
'''
from test.test_support import run_unittest, import_module
import sys
from types import ClassType, FunctionType, MethodType, BuiltinFunctionType
import pyclbr
from unittest import TestCase
StaticMethodType = type(staticmethod(lambda: None))
ClassMethodType = type(classmethod(lambda c: None))
# Silence Py3k warning
import_module('commands', deprecated=True)
# This next line triggers an error on old versions of pyclbr.
from commands import getstatus
# Here we test the python class browser code.
#
# The main function in this suite, 'testModule', compares the output
# of pyclbr with the introspected members of a module. Because pyclbr
# is imperfect (as designed), testModule is called with a set of
# members to ignore.
class PyclbrTest(TestCase):
def assertListEq(self, l1, l2, ignore):
''' succeed iff {l1} - {ignore} == {l2} - {ignore} '''
missing = (set(l1) ^ set(l2)) - set(ignore)
if missing:
print >>sys.stderr, "l1=%r\nl2=%r\nignore=%r" % (l1, l2, ignore)
self.fail("%r missing" % missing.pop())
def assertHasattr(self, obj, attr, ignore):
''' succeed iff hasattr(obj,attr) or attr in ignore. '''
if attr in ignore: return
if not hasattr(obj, attr): print "???", attr
self.failUnless(hasattr(obj, attr),
'expected hasattr(%r, %r)' % (obj, attr))
def assertHaskey(self, obj, key, ignore):
''' succeed iff key in obj or key in ignore. '''
if key in ignore: return
if key not in obj:
print >>sys.stderr, "***", key
self.assertTrue(key in obj)
def assertEqualsOrIgnored(self, a, b, ignore):
''' succeed iff a == b or a in ignore or b in ignore '''
if a not in ignore and b not in ignore:
self.assertEqual(a, b)
def checkModule(self, moduleName, module=None, ignore=()):
''' succeed iff pyclbr.readmodule_ex(modulename) corresponds
to the actual module object, module. Any identifiers in
ignore are ignored. If no module is provided, the appropriate
module is loaded with __import__.'''
if module is None:
# Import it.
# ('<silly>' is to work around an API silliness in __import__)
module = __import__(moduleName, globals(), {}, ['<silly>'])
dict = pyclbr.readmodule_ex(moduleName)
def ismethod(oclass, obj, name):
classdict = oclass.__dict__
if isinstance(obj, FunctionType):
if not isinstance(classdict[name], StaticMethodType):
return False
else:
if not isinstance(obj, MethodType):
return False
if obj.im_self is not None:
if (not isinstance(classdict[name], ClassMethodType) or
obj.im_self is not oclass):
return False
else:
if not isinstance(classdict[name], FunctionType):
return False
objname = obj.__name__
if objname.startswith("__") and not objname.endswith("__"):
objname = "_%s%s" % (obj.im_class.__name__, objname)
return objname == name
# Make sure the toplevel functions and classes are the same.
for name, value in dict.items():
if name in ignore:
continue
self.assertHasattr(module, name, ignore)
py_item = getattr(module, name)
if isinstance(value, pyclbr.Function):
self.assert_(isinstance(py_item, (FunctionType, BuiltinFunctionType)))
if py_item.__module__ != moduleName:
continue # skip functions that came from somewhere else
self.assertEquals(py_item.__module__, value.module)
else:
self.failUnless(isinstance(py_item, (ClassType, type)))
if py_item.__module__ != moduleName:
continue # skip classes that came from somewhere else
real_bases = [base.__name__ for base in py_item.__bases__]
pyclbr_bases = [ getattr(base, 'name', base)
for base in value.super ]
try:
self.assertListEq(real_bases, pyclbr_bases, ignore)
except:
print >>sys.stderr, "class=%s" % py_item
raise
actualMethods = []
for m in py_item.__dict__.keys():
if ismethod(py_item, getattr(py_item, m), m):
actualMethods.append(m)
foundMethods = []
for m in value.methods.keys():
if m[:2] == '__' and m[-2:] != '__':
foundMethods.append('_'+name+m)
else:
foundMethods.append(m)
try:
self.assertListEq(foundMethods, actualMethods, ignore)
self.assertEquals(py_item.__module__, value.module)
self.assertEqualsOrIgnored(py_item.__name__, value.name,
ignore)
# can't check file or lineno
except:
print >>sys.stderr, "class=%s" % py_item
raise
# Now check for missing stuff.
def defined_in(item, module):
if isinstance(item, ClassType):
return item.__module__ == module.__name__
if isinstance(item, FunctionType):
return item.func_globals is module.__dict__
return False
for name in dir(module):
item = getattr(module, name)
if isinstance(item, (ClassType, FunctionType)):
if defined_in(item, module):
self.assertHaskey(dict, name, ignore)
def test_easy(self):
self.checkModule('pyclbr')
self.checkModule('doctest')
# Silence Py3k warning
rfc822 = import_module('rfc822', deprecated=True)
self.checkModule('rfc822', rfc822)
self.checkModule('difflib')
def test_decorators(self):
# XXX: See comment in pyclbr_input.py for a test that would fail
# if it were not commented out.
#
self.checkModule('test.pyclbr_input')
def test_others(self):
cm = self.checkModule
# These were once about the 10 longest modules
cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator
cm('cgi', ignore=('log',)) # set with = in module
cm('urllib', ignore=('_CFNumberToInt32',
'_CStringFromCFString',
'_CFSetup',
'getproxies_registry',
'proxy_bypass_registry',
'proxy_bypass_macosx_sysconf',
'open_https',
'getproxies_macosx_sysconf',
'getproxies_internetconfig',)) # not on all platforms
cm('pickle')
cm('aifc', ignore=('openfp',)) # set with = in module
cm('Cookie')
cm('sre_parse', ignore=('dump',)) # from sre_constants import *
cm('pdb')
cm('pydoc')
# Tests for modules inside packages
cm('email.parser')
cm('test.test_pyclbr')
def test_main():
run_unittest(PyclbrTest)
if __name__ == "__main__":
test_main()
| babyliynfg/cross | tools/project-creator/Python2.6.6/Lib/test/test_pyclbr.py | Python | mit | 7,874 |
<<<<<<< HEAD
var xmlDoc;
var xmlloaded = false;
var _finalUrl;
/*
* input: none
* output: none
* gets zipcode from the zipcode text field
*/
function createURL() {
var zip = document.getElementById("zipcode").value;
var format = "&format=xml"
var _clientId = "&client_id=API KEY";
var _url = "https://api.seatgeek.com/2/recommendations?events.id=1162104&postal_code=";
_finalUrl = _url + zip + _clientId + format;
// document.getElementById("displayURL").innerHTML = _finalUrl; // debugging
}
function loadDoc() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
// ready states 1-4 & status 200 = okay
// 0: uninitialized
// 1: loading
// 2: loaded
// 3: interactive
// 4: complete
if (xhttp.readyState == 4 && xhttp.status == 200) {
myFunction(xhttp);
}
};
var zip = document.getElementById("zipcode").value;
var format = "&format=xml"
var _clientId = "&client_id=API KEY";
var _url = "https://api.seatgeek.com/2/recommendations?events.id=1162104&postal_code=";
_finalUrl = _url + zip + _clientId + format;
xhttp.open("GET", _finalUrl, true);
xhttp.send();
}
function myFunction(xml) {
var i, buyTickets;
var xmlDoc = xml.responseXML;
var x = xmlDoc.getElementsByTagName("recommendations");
for (i = 0; i < x.length; i++) {
buyTickets = x[i].getElementsByTagName("url")[2].childNodes[0].nodeValue;
}
document.getElementById("demo").innerHTML = window.open(buyTickets);
}
| pas1411/layzsunday | Lazysunday.com/XMLHandler.js | JavaScript | mit | 1,581 |
<div class="col-md-12 remove_padding">
<div class="col-md-4 right_padding ttt_pack" id="rmpd_calculate">
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock">Location</h2>
<span class="liner_landing"></span>
<div class="col-md-12 remove_padding">
<hr />
<div class="form-group">
<label class="form-input col-md-3">LOCATION: </label>
<div class="input-group col-md-8">
<select class="selectlocation">
<?php foreach ($locations as $location) {
?>
<option <?php if ($location_id == $location['location_id']) {
echo 'selected="selected"';
} ?> value="<?php echo $location['location_id'] ?>"><?php echo $location['location'] ?></option>
<?php
} ?>
</select>
<hr />
</div>
<div class="col-md-12">
<table class="table ">
<tr class="color_green">
<td class="add_text_tran">Expense to reach <?php echo $current_location['location'];?></td>
<td class="text_alginrigt"><?php $this->M_tour->convertmoney($expenses_price_travel);?></td>
</tr>
<tr class="color-red">
<td class="add_text_tran">Expense at <?php echo $current_location['location'];?></td>
<td class="text_alginrigt"><?php $this->M_tour->convertmoney($expenses_price_des);?></td>
</tr>
<tr class="color-gre">
<td class="add_text_tran">Revenue at <?php echo $current_location['location'];?></td>
<td class="text_alginrigt"><?php $this->M_tour->convertmoney($income_price);?></td>
</tr>
<tr class="<?php if (($income_price - $expenses_price_des) > 0) {
echo 'color-gre';
} else {
echo 'color-red';
}?>">
<td class="add_text_tran">Current <?php if (($income_price - $expenses_price_des) > 0) {
echo 'Profit';
} else {
echo 'losses';
}?> at <?php echo $current_location['location'];?></td>
<td class="text_alginrigt">
<?php
$money = $income_price - $expenses_price_des;
$this->M_tour->convertmoney($money);?>
</td>
</tr>
</table>
</div>
<div class="col-md-12">
<div class="col-md-12 searchform_new searchform">
Tax in location:
<a onclick="addtaxmodal('create','location',0,'name','price');" class="btn">Add tax this location</a>
</div>
<div class="col-md-12 remove_padding">
<?php $taxs = $this->M_tour->getTax('location', $current_location['location_id']);
$total_after_tax = 0;
if ($taxs != false) {
echo '<hr />';
foreach ($taxs as $tax) {
?>
<div class="col-md-12 remove_padding">
<label class="col-md-4"><?php echo $tax['name']; ?> :</label>
<div class="col-md-2 remove_padding searchform_new">
<input class="bnt new_style_tax" readonly="true" type="text" value="<?php echo $tax['tax']; ?>" />
</div>
<div class="col-md-4">
<?php $show_tax = $money * $tax['tax'] / 100;
$total_after_tax = $total_after_tax + $show_tax;
$this->M_tour->convertmoney($show_tax); ?>
</div>
<div class="col-md-2 remove_padding">
<a href="javascript:void(0)" onclick="addtaxmodal('edit','location',<?php echo $tax['id'] ?>,'<?php echo $tax['name']; ?>','<?php echo $tax['tax']; ?>');">Edit</a>
<a onclick="return confirm('Are you sure you want to delete this item?');" href="<?php echo base_url('') ?>the_total_tour/delete_tax/<?php echo $tour['tour_id']; ?>/<?php echo $current_location['location_id']; ?>/<?php echo $tax['id'] ?>">Delete</a>
</div>
</div>
<?php
}
}
?>
</div>
<div class="col-md-12">
<table class="table ">
<tr class="<?php if (($income_price - $expenses_price_des) > 0) {
echo 'color-gre';
} else {
echo 'color-red';
}?>">
<td class="add_text_tran">Current <?php if (($income_price - $expenses_price_des) > 0) {
echo 'Profit';
} else {
echo 'losses';
}?> at <?php echo $current_location['location'];?></td>
<td class="text_alginrigt">
<?php
$this->M_tour->convertmoney($money - $total_after_tax);?>
</td>
</tr>
</table>
</div>
</div>
</div>
<hr />
</div>
</div>
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock">All location of tour</h2>
<span class="liner_landing"></span>
<div class="col-md-12 remove_padding">
<table class="table">
<?php
$total = 0;
foreach ($location_caculates as $location_caculate) {
$total = $total + $location_caculate['tax_location_result']; ?>
<tr class="color_green">
<td class="add_text_tran">Total at <?php echo $location_caculate['location']; ?></td>
<td class="text_alginrigt"><?php $this->M_tour->convertmoney($location_caculate['tax_location_result']); ?></td>
</tr>
<?php
} ?>
<tr class="color-gre">
<td class="add_text_tran">Total before tax in tour <?php echo $tour['tour'];?></td>
<td class="text_alginrigt"><?php $this->M_tour->convertmoney($total);?></td>
</tr>
<?php
$taxs = $this->M_tour->getTax('tour', $tour['tour_id']);
$total_money_tax = 0;
if ($taxs != false) {
foreach ($taxs as $tax) {
$total_money_tax = $total_money_tax + $total * $tax['tax'] / 100;
}
$total_money = $total - $total_money_tax;
} else {
$total_money = $total;
}
?>
</table>
</div>
<div class="col-md-12 ">
<div class="col-md-12 searchform_new searchform">
Tax in tour:
<a onclick="addtaxmodal('create','tour',0,'name','price');" class="btn">Add tax this tour</a>
</div>
<div class="col-md-12 remove_padding">
<?php $taxs = $this->M_tour->getTax('tour', $tour['tour_id']);
if ($taxs != false) {
echo '<hr />';
foreach ($taxs as $tax) {
?>
<div class="col-md-12 remove_padding">
<label class="col-md-4"><?php echo $tax['name']; ?> :</label>
<div class="col-md-2 remove_padding searchform_new">
<input class="bnt new_style_tax" readonly="true" type="text" value="<?php echo $tax['tax']; ?>" />
</div>
<div class="col-md-4">
<?php $this->M_tour->convertmoney($total_money_tax); ?>
</div>
<div class="col-md-2 remove_padding">
<a href="javascript:void(0)" onclick="addtaxmodal('edit','tour',<?php echo $tax['id'] ?>,'<?php echo $tax['name']; ?>','<?php echo $tax['tax']; ?>');">Edit</a>
<a onclick="return confirm('Are you sure you want to delete this item?');" href="<?php echo base_url('') ?>the_total_tour/delete_tax/<?php echo $tour['tour_id']; ?>/<?php echo $current_location['location_id']; ?>/<?php echo $tax['id'] ?>">Delete</a>
</div>
</div>
<?php
}
}
?>
</div>
</div>
<div class="col-md-12 remove_padding">
<table class="table">
<tr class="color-gre">
<td class="add_text_tran">Total after tax in tour <?php echo $tour['tour'];?></td>
<td class="text_alginrigt"><?php $this->M_tour->convertmoney($total_money);?></td>
</tr>
</table>
</div>
</div>
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock">LIST MEMBER</h2>
<span class="liner_landing"></span>
<div class="col-md-12 remove_padding">
<ul>
<li><a href="<?php echo base_url('the_total_tour/caculate').'/'.$check_member['tour_id'].'/'.$location_id;?>">All member</a></li>
<?php foreach ($members as $member) {
if ($member['tm_active'] == 1) {
?>
<li><a href="<?php echo base_url('the_total_tour/caculate').'/'.$check_member['tour_id'].'/'.$location_id.'/'.$member['user_id']; ?>"><?php echo $member['firstname'].' '.$member['lastname']; ?></a></li>
<?php
} else {
?>
<li><?php echo $member['name']; ?></li>
<?php
}
} ?>
<li></li>
</ul>
</div>
</div>
</div>
<div class="col-md-8 left_padding ttt_pack">
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock target2">Expense at <?php echo $current_location['location']; ?>
<?php if ($this->uri->segment(5)) {
echo 'for '.$user_data_select['firstname'].' '.$user_data_select['lastname'];
} ?>
</h2>
<span class="liner_landing"></span>
<div class="col-md-12 remove_padding">
<?php if ($check_member['manager_cacula']) {
?>
<div class="col-md-12 remove_padding searchform_new">
<a onclick="addcaculate('expenses','at destination');" class="btn">Add Expense</a>
</div>
<?php
}?>
<table class="table">
<tr>
<th>Name</th>
<th>Amount</th>
<th>Price</th>
<th>Add for</th>
<th>Date</th>
<th>Receipt</th>
<?php if ($check_member['manager_cacula']) {
?><th>Action</th><?php
}?>
</tr>
<?php
$total = 0;
foreach ($expenses as $expense) {
if ($expense['expense_type'] == 'at destination') {
$total = $total + $expense['expense_price'] * $expense['amount']; ?>
<tr style="color: <?php echo $expense['color_front']; ?>; <?php if ($check_member['id'] == $expense['user_m_id']) {
echo 'background: #ccc;';
} ?> ">
<td><?php echo $expense['expense_name']; ?></td>
<td><?php echo $expense['amount']; ?></td>
<td><?php $this->M_tour->convertmoney($expense['expense_price']); ?></td>
<td><?php echo $expense['firstname'].' '.$expense['lastname']; ?></td>
<td><?php echo date('m-d-Y', strtotime($expense['date'])); ?></td>
<td><img src="<?php echo base_url()."/uploads/".$expense['user_id']."/photo/banner_events/".$expense['receipt']; ?>"width="60" height="60"></td>
<?php if ($check_member['manager_cacula']) {
?>
<td class="searchform formintable">
<input type="hidden" class="save_id" value="<?php echo $expense['expense_id']; ?>" />
<input type="hidden" class="save_name" value="<?php echo $expense['expense_name']; ?>" />
<input type="hidden" class="expense_type" value="at destination" />
<input type="hidden" class="expense_amount" value="<?php echo $expense['amount']; ?>" />
<input type="hidden" class="expense_date" value="<?php echo $expense['date']; ?>" />
<input type="hidden" class="save_price" value="<?php echo $expense['expense_price']; ?>" />
<input type="hidden" class="receipt" value="<?php echo $expense['receipt']; ?>" />
<input type="hidden" class="userId" value="<?php echo $expense['user_id']; ?>" />
<a class="bnt" onclick="show_edit_member($(this),'expenses')" >Edit</a>
<a class="bnt" onclick="delete_price($(this),'<?php echo $expense['expense_name']; ?>','expenses')">Delete</a>
</td>
<?php
} ?>
</tr>
<?php
}
}
?>
<tr>
<td colspan="5"><span class="total-value color-red">Total: <?php $this->M_tour->convertmoney($total);?></span></td>
</tr>
</table>
</div>
</div>
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock target3">Revenue at <?php echo $current_location['location']; ?>
<?php if ($this->uri->segment(5)) {
echo 'for '.$user_data_select['firstname'].' '.$user_data_select['lastname'];
} ?>
</h2>
<span class="liner_landing"></span>
<div class="col-md-12 remove_padding">
<?php if ($check_member['manager_cacula']) {
?>
<div class="col-md-12 remove_padding searchform_new">
<a onclick="addcaculate('income','none');" class="btn">Add Revenue</a>
</div>
<?php
}?>
<table class="table">
<tr>
<th>Name</th>
<th>Amount</th>
<th>Price</th>
<th>Add for</th>
<th>Date</th>
<?php if ($check_member['manager_cacula']) {
?><th>Action</th><?php
}?>
</tr>
<?php
$total = 0;
foreach ($incomes as $income) {
$total = $total + $income['income_price'] * $income['amount']; ?>
<tr style="color: <?php echo $income['color_front']; ?>; <?php if ($check_member['id'] == $income['user_m_id']) {
echo 'background: #ccc;';
} ?> ">
<td><?php echo $income['income_name']; ?></td>
<td><?php echo $income['amount']; ?></td>
<td><?php $this->M_tour->convertmoney($income['income_price']); ?></td>
<td><?php echo $income['firstname'].' '.$income['lastname']; ?></td>
<td><?php echo date('m-d-Y', strtotime($income['date'])); ?></td>
<?php if ($check_member['manager_cacula']) {
?>
<td class="searchform formintable">
<input type="hidden" class="expense_amount" value="<?php echo $income['amount']; ?>" />
<input type="hidden" class="expense_date" value="<?php echo $income['date']; ?>" />
<input type="hidden" class="save_id" value="<?php echo $income['income_id']; ?>" />
<input type="hidden" class="save_name" value="<?php echo $income['income_name']; ?>" />
<input type="hidden" class="save_price" value="<?php echo $income['income_price']; ?>" />
<a class="bnt" onclick="show_edit_member($(this),'income')" >Edit</a>
<a class="bnt" onclick="delete_price($(this),'<?php echo $income['income_name']; ?>','income')">Delete</a>
</td>
<?php
} ?>
</tr>
<?php
}
?>
<tr>
<td colspan="5"><span class="total-value color-gre">Total: <?php $this->M_tour->convertmoney($total);?></span></td>
</tr>
</table>
</div>
</div>
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock target1">Expense to reach <?php echo $current_location['location']; ?>
<?php if ($this->uri->segment(5)) {
echo 'for '.$user_data_select['firstname'].' '.$user_data_select['lastname'];
} ?>
</h2>
<span class="liner_landing"></span>
<div class="col-md-12 remove_padding">
<?php if ($check_member['manager_cacula']) {
?>
<div class="col-md-12 remove_padding searchform_new">
<a onclick="addcaculate('expenses','travel');" class="btn">Add Expense to reach</a>
</div>
<?php
}?>
<table class="table">
<tr>
<th>Name</th>
<th>Amount</th>
<th>Price</th>
<th>Add for</th>
<th>Date</th>
<?php if ($check_member['manager_cacula']) {
?><th>Action</th><?php
}?>
</tr>
<?php
$total = 0;
foreach ($expenses as $expense) {
if ($expense['expense_type'] == 'travel') {
$total = $total + $expense['expense_price'] * $expense['amount']; ?>
<tr style="color: <?php echo $expense['color_front']; ?>; <?php if ($check_member['id'] == $expense['user_m_id']) {
echo 'background: #ccc;';
} ?> ">
<td><?php echo $expense['expense_name']; ?></td>
<td><?php echo $expense['amount']; ?></td>
<td><?php $this->M_tour->convertmoney($expense['expense_price']); ?></td>
<td><?php echo $expense['firstname'].' '.$expense['lastname']; ?></td>
<td><?php echo date('m-d-Y', strtotime($expense['date'])); ?></td>
<?php if ($check_member['manager_cacula']) {
?>
<td class="searchform formintable">
<input type="hidden" class="expense_amount" value="<?php echo $expense['amount']; ?>" />
<input type="hidden" class="expense_date" value="<?php echo $expense['date']; ?>" />
<input type="hidden" class="save_id" value="<?php echo $expense['expense_id']; ?>" />
<input type="hidden" class="save_name" value="<?php echo $expense['expense_name']; ?>" />
<input type="hidden" class="save_price" value="<?php echo $expense['expense_price']; ?>" />
<input type="hidden" class="expense_type" value="travel" />
<a class="bnt" onclick="show_edit_member($(this),'expenses')" >Edit</a>
<a class="bnt" onclick="delete_price($(this),'<?php echo $expense['expense_name']; ?>','expenses')">Delete</a>
</td>
<?php
} ?>
</tr>
<?php
}
}
?>
<tr>
<td colspan="5"><span class="total-value">Total: <?php $this->M_tour->convertmoney($total);?></span></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade new_modal_style" id="edit-member-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="tt edit_text">Edit</h4>
<span class="liner"></span>
</div>
<form class="avatar-form" action="<?php echo base_url(); ?>members/update_price" enctype="multipart/form-data" method="post">
<div class="modal-body">
<div class="col-md-12 remove_padding">
<input type="hidden" name="<?=$this->security->get_csrf_token_name();?>" value="<?=$this->security->get_csrf_hash();?>" />
<input type="hidden" name="price_id" class="price_id_data" value="price_id" />
<input type="hidden" name="tour_id" class="tour_id_data" value="<?php echo $tour_id;?>"/>
<input type="hidden" name="type" class="type_data" value="expenses"/>
<input type="hidden" name="expense_type" class="expense_type_edit" value="travel"/>
<input type="hidden" name="location" class="location" value="<?php echo $current_location['location_id'];?>"/>
<div class="form-group">
<label class="form-input col-md-3">Name</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_name" name="change_name" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Price</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_price" name="change_price" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Amount</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_amount_edit" value="1" name="change_amount" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Date</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_date_edit" value="<?php echo date('m/d/Y');?>" id="change_date" name="change_date" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Receipt</label>
<div class="input-group col-md-8">
<div class="zoom_img">
<img src="<?php echo base_url()."/uploads/"; ?>" class="receiptImg col-md-8" id="thumb">
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="modal-footer searchform">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-default avatar-save">Save</button>
</div>
</form>
</div>
</div>
</div><!-- /.modal -->
<div class="modal fade new_modal_style" id="add-caculate-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="tt edit_text_model">Add </h4>
<span class="liner"></span>
</div>
<?php if(count($expensePer) > 0 && $expensePer['add_expense'] == 1): ?>
<form class="avatar-form" action="<?php echo base_url(); ?>members/addcaculate" enctype="multipart/form-data" method="post">
<div class="modal-body">
<div class="col-md-12 remove_padding">
<input type="hidden" name="<?=$this->security->get_csrf_token_name();?>" value="<?=$this->security->get_csrf_hash();?>" />
<input type="hidden" name="type" class="type_data_add" value="expenses"/>
<input type="hidden" name="expense_type" class="expense_type_add" value="travel"/>
<input type="hidden" name="tour_id" value="<?php echo $tour['tour_id']; ?>"/>
<input type="hidden" name="location" class="location_add" value="<?php echo $current_location['location_id'];?>"/>
<div class="form-group">
<label class="form-input col-md-3">Name</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_name1" name="change_name" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Price</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_price1" name="change_price" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Amount</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_amount" value="1" name="change_amount" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Date</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_date" value="<?php echo date('m/d/Y');?>" id="change_date1" name="change_date" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Upload Receipt</label>
<div class="input-group col-md-8">
<input type="file" name="receipt" id="receiptUp">
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="modal-footer searchform">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-default avatar-save">Save</button>
</div>
</form>
<?php else: ?>
<p style="text-align:center">You don't have persmission to add expense.</p>
<?php endif; ?>
</div>
</div>
</div><!-- /.modal -->
<div class="modal fade new_modal_style" id="add-tax-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="tt edit_text_model">Add tax</h4>
<span class="liner"></span>
</div>
<form class="avatar-form" action="<?php echo base_url(); ?>more_ttt/addtaxcaculate" enctype="multipart/form-data" method="post">
<div class="modal-body">
<div class="col-md-12 remove_padding">
<input type="hidden" name="<?=$this->security->get_csrf_token_name();?>" value="<?=$this->security->get_csrf_hash();?>" />
<input type="hidden" name="tour_id" value="<?php echo $tour['tour_id']; ?>"/>
<input type="hidden" name="location" class="location_add" value="<?php echo $current_location['location_id'];?>"/>
<input type="hidden" name="type" class="type_tax" value="location"/>
<input type="hidden" name="type_data" class="type_data" value="create" />
<input type="hidden" name="tax_id" class="tax_id" value="0" />
<div class="form-group">
<label class="form-input col-md-3">Name tax</label>
<div class="input-group col-md-8">
<input type="text" class="form-control change_name_tax" name="change_name" />
</div>
</div>
<div class="form-group disable_div">
<label class="form-input col-md-3">Tax</label>
<div class="input-group col-md-8">
<input type="number" min="0.01" step="0.01" max="2500" value="00.00" class="form-control change_price_tax" name="change_price" />
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="modal-footer searchform">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-default avatar-save">Save</button>
</div>
</form>
</div>
</div>
</div><!-- /.modal -->
<script type="text/javascript">
var value = $(".<?php echo $this->session->userdata('target'); ?>").offset().top - 100;
var domain = "<?php echo base_url(); ?>";
$(".selectlocation").change(function(){
location_id = $(this).val();
<?php
if ($this->uri->segment(5)) {
?>
location.href = "<?php echo base_url('the_total_tour/caculate/').'/'.$tour_id.'/'; ?>"+location_id+'/'+<?php echo $this->uri->segment(5); ?>;
<?php
} else {
?>
location.href = "<?php echo base_url('the_total_tour/caculate/').'/'.$tour_id.'/'; ?>"+location_id;
<?php
}
?>
});
var delete_price_url = '<?php echo base_url('members/delete_price') ?>';
var base_url = '<?php echo base_url() ?>';
var records_per_page = '<?php echo $this->security->get_csrf_hash(); ?>';
var tour_id ='<?php echo $tour_id;?>';
</script>
<script src="<?php echo base_url();?>assets/js/detail_pages/ttt/caculate.js"></script>
<link href='<?php echo base_url() ?>assets/dist/css/alertify.default.css' rel='stylesheet' />
<link href='<?php echo base_url() ?>assets/dist/css/alertify.core.css' rel='stylesheet' />
<link href='<?php echo base_url() ?>assets/css/ttt_styles.css' rel='stylesheet' />
<link href="<?php echo base_url(); ?>assets/map/css/bootstrap-colorpicker.min.css" rel="stylesheet"/>
<script src="<?php echo base_url('assets/dist/js/alertify.min.js');?>"></script>
<script src="<?php echo base_url('assets/dist/js/bootstrap-datepicker.min.js');?>"></script>
<script src="<?php echo base_url(); ?>assets/map/js/bootstrap-colorpicker.min.js"></script>
| akashbachhania/jeet99 | application/views/ttt/caculate.php | PHP | mit | 37,369 |
The MIT License (MIT)
Copyright (c) 2015 copyright Juan Quemada
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
| casf19/random | LICENSE.md | Markdown | mit | 1,090 |
import { createElement } from 'react'
import omit from 'lodash/omit'
import { useSpring, animated } from '@react-spring/web'
import { useTheme, useMotionConfig } from '@nivo/core'
import { NoteSvg } from './types'
export const AnnotationNote = <Datum,>({
datum,
x,
y,
note,
}: {
datum: Datum
x: number
y: number
note: NoteSvg<Datum>
}) => {
const theme = useTheme()
const { animate, config: springConfig } = useMotionConfig()
const animatedProps = useSpring({
x,
y,
config: springConfig,
immediate: !animate,
})
if (typeof note === 'function') {
return createElement(note, { x, y, datum })
}
return (
<>
{theme.annotations.text.outlineWidth > 0 && (
<animated.text
x={animatedProps.x}
y={animatedProps.y}
style={{
...theme.annotations.text,
strokeLinejoin: 'round',
strokeWidth: theme.annotations.text.outlineWidth * 2,
stroke: theme.annotations.text.outlineColor,
}}
>
{note}
</animated.text>
)}
<animated.text
x={animatedProps.x}
y={animatedProps.y}
style={omit(theme.annotations.text, ['outlineWidth', 'outlineColor'])}
>
{note}
</animated.text>
</>
)
}
| plouc/nivo | packages/annotations/src/AnnotationNote.tsx | TypeScript | mit | 1,549 |
package pl.mmorpg.prototype.client.exceptions;
public class UnknownSpellException extends GameException
{
public UnknownSpellException(String identifier)
{
super(identifier);
}
public UnknownSpellException(Class<?> type)
{
super(type.getName());
}
}
| Pankiev/MMORPG_Prototype | Client/core/src/pl/mmorpg/prototype/client/exceptions/UnknownSpellException.java | Java | mit | 262 |
FROM node
WORKDIR /usr/src/app
COPY package*.json client.js index.html rest-server.js UserModel.js ./
RUN npm ci
EXPOSE 3000
CMD ["npm", "start"]
| maritz/nohm | examples/rest-user-server/Dockerfile | Dockerfile | mit | 151 |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Uno.Collections\0.13.2\Extensions\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#ifndef __APP_UNO_COLLECTIONS_UNION_ENUMERATOR__OUTRACKS_SIMULATOR_BYTECODE_STATEMENT_H__
#define __APP_UNO_COLLECTIONS_UNION_ENUMERATOR__OUTRACKS_SIMULATOR_BYTECODE_STATEMENT_H__
#include <app/Uno.Collections.IEnumerator.h>
#include <app/Uno.Collections.IEnumerator__Outracks_Simulator_Bytecode_Statement.h>
#include <app/Uno.IDisposable.h>
#include <app/Uno.Object.h>
#include <Uno.h>
namespace app { namespace Outracks { namespace Simulator { namespace Bytecode { struct Statement; } } } }
namespace app {
namespace Uno {
namespace Collections {
struct UnionEnumerator__Outracks_Simulator_Bytecode_Statement;
struct UnionEnumerator__Outracks_Simulator_Bytecode_Statement__uType : ::uClassType
{
::app::Uno::Collections::IEnumerator__Outracks_Simulator_Bytecode_Statement __interface_0;
::app::Uno::IDisposable __interface_1;
::app::Uno::Collections::IEnumerator __interface_2;
};
UnionEnumerator__Outracks_Simulator_Bytecode_Statement__uType* UnionEnumerator__Outracks_Simulator_Bytecode_Statement__typeof();
void UnionEnumerator__Outracks_Simulator_Bytecode_Statement___ObjInit(UnionEnumerator__Outracks_Simulator_Bytecode_Statement* __this, ::uObject* first, ::uObject* second);
void UnionEnumerator__Outracks_Simulator_Bytecode_Statement__Dispose(UnionEnumerator__Outracks_Simulator_Bytecode_Statement* __this);
::app::Outracks::Simulator::Bytecode::Statement* UnionEnumerator__Outracks_Simulator_Bytecode_Statement__get_Current(UnionEnumerator__Outracks_Simulator_Bytecode_Statement* __this);
bool UnionEnumerator__Outracks_Simulator_Bytecode_Statement__MoveNext(UnionEnumerator__Outracks_Simulator_Bytecode_Statement* __this);
UnionEnumerator__Outracks_Simulator_Bytecode_Statement* UnionEnumerator__Outracks_Simulator_Bytecode_Statement__New_1(::uStatic* __this, ::uObject* first, ::uObject* second);
void UnionEnumerator__Outracks_Simulator_Bytecode_Statement__Reset(UnionEnumerator__Outracks_Simulator_Bytecode_Statement* __this);
struct UnionEnumerator__Outracks_Simulator_Bytecode_Statement : ::uObject
{
::uStrong< ::uObject*> _current;
::uStrong< ::uObject*> _first;
::uStrong< ::uObject*> _second;
void _ObjInit(::uObject* first, ::uObject* second) { UnionEnumerator__Outracks_Simulator_Bytecode_Statement___ObjInit(this, first, second); }
void Dispose() { UnionEnumerator__Outracks_Simulator_Bytecode_Statement__Dispose(this); }
::app::Outracks::Simulator::Bytecode::Statement* Current() { return UnionEnumerator__Outracks_Simulator_Bytecode_Statement__get_Current(this); }
bool MoveNext() { return UnionEnumerator__Outracks_Simulator_Bytecode_Statement__MoveNext(this); }
void Reset() { UnionEnumerator__Outracks_Simulator_Bytecode_Statement__Reset(this); }
};
}}}
#endif
| blyk/BlackCode-Fuse | AndroidUI/.build/Simulator/Android/include/app/Uno.Collections.UnionEnumerator__Outracks_Simulator_Bytecode_Statement.h | C | mit | 2,919 |
---
layout: automation
title: Automation of Paving, Surfacing, and Tamping Equipment Operators
subtitle: Will robots and artificial intelligence take the job of Paving, Surfacing, and Tamping Equipment Operators? Get the facts.
soc:
code: 47-2071
title: Paving, Surfacing, and Tamping Equipment Operators
definition: 'Operate equipment used for applying concrete, asphalt, or other materials to road beds, parking lots, or airport runways and taxiways, or equipment used for tamping gravel, dirt, or other materials. Includes concrete and asphalt paving machine operators, form tampers, tamping machine operators, and stone spreader operators.'
employment:
current:
us: 51900
projected:
us: 58200
change:
us: 0.121
wage:
hourly:
us: 21.06
annual:
us: 43800
probability:
oxford: 0.83
rank:
oxford: 472
tags:
-
---
| simonmesmith/simonmesmith.github.io | _automation/paving-surfacing-and-tamping-equipment-operators.md | Markdown | mit | 856 |
import { ILogger, getLogger } from './loggers';
import { CancellationToken, ICancellationToken } from '../util/CancellationToken';
import { Step } from './Step';
import { ModuleLoader } from './ModuleLoader';
import * as _ from 'underscore';
import { Guid } from '../util/Guid';
import { InjectorLookup, Module, ModuleRepository } from './Modules';
import { IScope, Scope } from './Scope';
import validateScriptDefinition from './scriptDefinitionValidator';
import * as helpers from '../util/helpers';
import './modules/assert';
import './modules/async';
import './modules/conditional';
import './modules/http';
import './modules/json';
import './modules/loop';
import './modules/math';
import './modules/misc';
import './modules/stats';
import './modules/timer';
import './modules/wait';
const YAML = require('pumlhorse-yamljs');
class ScriptOptions {
logger: ILogger;
}
export interface IScript {
run(context: any, cancellationToken?: ICancellationToken): Promise<any>;
addFunction(name: string, func: Function): void;
addModule(moduleDescriptor: string | Object): void;
id: string;
name: string;
}
export interface IScriptDefinition {
name: string;
description?: string;
modules?: any[];
functions?: Object;
expects?: string[];
steps: any[];
cleanup?: any[];
}
export class Script implements IScript {
id: string;
name: string;
private internalScript: IScriptInternal;
private static readonly DefaultModules = ['assert', 'async', 'conditional', 'json', 'loop', 'math', 'misc', 'timer', 'wait', 'http = http'];
public static readonly StandardModules = Script.DefaultModules.concat(['stats']);
constructor(private scriptDefinition: IScriptDefinition, private scriptOptions?: ScriptOptions) {
validateScriptDefinition(this.scriptDefinition);
this.id = new Guid().value;
this.name = scriptDefinition.name;
if (this.scriptOptions == null) {
this.scriptOptions = new ScriptOptions();
}
if (this.scriptOptions.logger == null) {
this.scriptOptions.logger = getLogger();
}
this.internalScript = new InternalScript(this.id, this.scriptOptions);
}
static create(scriptText: string, scriptOptions?: ScriptOptions): Script {
const scriptDefinition = YAML.parse(scriptText);
return new Script(scriptDefinition, scriptOptions);
}
async run(context?: any, cancellationToken?: ICancellationToken): Promise<any> {
if (cancellationToken == null) cancellationToken = CancellationToken.None;
this.evaluateExpectations(context);
this.loadModules();
this.loadFunctions();
this.loadCleanupSteps();
const scope = new Scope(this.internalScript, context);
try {
await this.internalScript.runSteps(this.scriptDefinition.steps, scope, cancellationToken);
return scope;
}
finally {
await this.runCleanupTasks(scope, cancellationToken);
}
}
addFunction(name: string, func: Function): void {
this.internalScript.functions[name] = func;
}
addModule(moduleDescriptor: string | Object) {
const moduleLocator = ModuleLoader.getModuleLocator(moduleDescriptor);
const mod = ModuleRepository.lookup[moduleLocator.name];
if (mod == null) throw new Error(`Module "${moduleLocator.name}" does not exist`);
if (moduleLocator.hasNamespace) {
helpers.assignObjectByString(this.internalScript.modules, moduleLocator.namespace, mod.getFunctions());
}
else {
_.extend(this.internalScript.modules, mod.getFunctions());
}
_.extend(this.internalScript.injectors, mod.getInjectors())
}
private evaluateExpectations(context: any) {
if (this.scriptDefinition.expects == null) return;
const missingValues = _.difference(this.scriptDefinition.expects.map(m => m.toString()), _.keys(context));
if (missingValues.length > 0) {
throw new Error(missingValues.length > 1
? `Expected values "${missingValues.join(', ')}", but they were not passed`
: `Expected value "${missingValues[0]}", but it was not passed`)
}
}
private loadModules() {
const modules = Script.DefaultModules.concat(this.scriptDefinition.modules == null
? []
: this.scriptDefinition.modules)
for (let i = 0; i < modules.length; i++) {
this.addModule(modules[i]);
}
}
private loadFunctions() {
this.addFunction('debug', (msg) => this.scriptOptions.logger.debug(msg));
this.addFunction('log', (msg) => this.scriptOptions.logger.log(msg));
this.addFunction('warn', (msg) => this.scriptOptions.logger.warn(msg));
this.addFunction('error', (msg) => this.scriptOptions.logger.error(msg));
const functions = this.scriptDefinition.functions;
if (functions == null) {
return;
}
for(let name in functions) {
this.addFunction(name, this.createFunction(functions[name]));
}
}
private createFunction(val) {
if (_.isString(val)) return new Function(val)
function construct(args) {
function DeclaredFunction(): void {
return Function.apply(this, args);
}
DeclaredFunction.prototype = Function.prototype;
return new DeclaredFunction();
}
return construct(val)
}
private loadCleanupSteps() {
if (this.scriptDefinition.cleanup == null) {
return;
}
for (let i = 0; i < this.scriptDefinition.cleanup.length; i++) {
this.internalScript.cleanup.push(this.scriptDefinition.cleanup[i]);
}
}
private async runCleanupTasks(scope: Scope, cancellationToken: ICancellationToken): Promise<any> {
if (this.internalScript.cleanup == null) {
return;
}
for (let i = 0; i < this.internalScript.cleanup.length; i++) {
const task = this.internalScript.cleanup[i];
try {
await this.internalScript.runSteps([task], scope, cancellationToken);
}
catch (e) {
this.scriptOptions.logger.error(`Error in cleanup task: ${e.message}`);
}
}
}
}
export interface IScriptInternal {
modules: Module[];
functions: {[name: string]: Function};
injectors: InjectorLookup;
steps: any[];
cleanup: any[];
emit(eventName: string, eventInfo: any);
addCleanupTask(task: any, atEnd?: boolean);
getModule(moduleName: string): any;
id: string;
runSteps(steps: any[], scope: IScope, cancellationToken?: ICancellationToken): Promise<any>;
}
class InternalScript implements IScriptInternal {
id: string;
modules: Module[];
injectors: InjectorLookup;
functions: {[name: string]: Function};
steps: any[];
cleanup: any[];
private cancellationToken: ICancellationToken;
private isEnded: boolean = false;
constructor(id: string, private scriptOptions: ScriptOptions) {
this.id = id;
this.modules = [];
this.injectors = {
'$scope': (scope: IScope) => scope,
'$logger': () => this.scriptOptions.logger
};
this.functions = {
'end': () => { this.isEnded = true; }
};
this.steps = [];
this.cleanup = [];
}
emit(): void {
}
addCleanupTask(task: any, atEnd?: boolean): void {
if (atEnd) this.cleanup.push(task);
else this.cleanup.splice(0, 0, task);
}
getModule(moduleName: string): any {
return this.modules[moduleName];
}
async runSteps(steps: any[], scope: IScope, cancellationToken: ICancellationToken): Promise<any> {
if (cancellationToken != null) {
this.cancellationToken = cancellationToken;
}
if (steps == null || steps.length == 0) {
this.scriptOptions.logger.warn('Script does not contain any steps');
return;
}
_.extend(scope, this.modules, this.functions);
for (let i = 0; i < steps.length; i++) {
if (this.cancellationToken.isCancellationRequested || this.isEnded) {
return;
}
await this.runStep(steps[i], scope);
}
}
private async runStep(stepDefinition: any, scope: IScope) {
if (_.isFunction(stepDefinition)) {
// If we programatically added a function as a step, just shortcut and run it
return stepDefinition.call(scope);
}
let step: Step;
const lineNumber = stepDefinition.getLineNumber == null ? null : stepDefinition.getLineNumber();
if (_.isString(stepDefinition)) {
step = new Step(stepDefinition, null, scope, this.injectors, lineNumber);
}
else {
const functionName = _.keys(stepDefinition)[0];
step = new Step(functionName, stepDefinition[functionName], scope, this.injectors, lineNumber);
}
await step.run(this.cancellationToken);
}
} | pumlhorse/pumlhorse | src/script/Script.ts | TypeScript | mit | 9,364 |
<div class="usermanager_profile_edit">
<ion:usermanager request="form" attr="has_errors" form_name="profile_save">
<div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_error" /></div></div></div></div><div class="greentab_content"><div><div>
<div class="usermanager_error"><ion:usermanager request="form" attr="error_string" /></div>
</div></div></div><div class="greentab_footer"><div><div></div></div></div></div>
</ion:usermanager>
<ion:usermanager request="form" attr="has_errors" form_name="random_fields">
<div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_error" /></div></div></div></div><div class="greentab_content"><div><div>
<div class="usermanager_error"><ion:usermanager request="form" attr="error_string" /></div>
</div></div></div><div class="greentab_footer"><div><div></div></div></div></div>
</ion:usermanager>
<form name="random_fields_form" id="random_fields_form" action="<ion:usermanager request='global' attr='url' />" method="post">
<input type="hidden" name="form_name" value="random_fields_form" />
<ion:usermanager request='user' attr='company_profile' is_like='0' from_user_field='1'><input type="hidden" name="company_profile" value="1" /></ion:usermanager>
<ion:usermanager request='user' attr='company_profile' is_like='1' from_user_field='1'><input type="hidden" name="company_profile" value="0" /></ion:usermanager>
</form>
<form name="profile_form" id="profile_form" action="<ion:usermanager request='global' attr='url' />" method="post" class="niceform" enctype="multipart/form-data">
<!--
Action
-->
<div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_action" /></div></div></div></div><div class="greentab_content"><div><div style="text-align: right;">
<div style="float: right; margin-left: 20px;"><input class="usermanager_input_button" type="submit" name="submit_form" value="<ion:translation term='module_usermanager_button_save' />" /></div>
<div style="float: left; margin-right: 20px;"><input class="usermanager_input_button" type="button" name="delete" value="<ion:translation term='module_usermanager_button_delete' />" onclick="javascript:document.getElementById('delete').value='1'; document.profile_form.submit();" /></div>
<ion:usermanager request='user' attr='company' is_like='0' from_user_field='1'><div style="float: left; margin-right: 20px;"><input class="usermanager_input_button" type="button" name="company_prof" value="<ion:translation term='module_usermanager_button_company_profile' />" onclick="document.random_fields_form.submit();" /></div></ion:usermanager>
<ion:usermanager request='user' attr='company' is_like='1' from_user_field='1'><div style="float: left; margin-right: 20px;"><input class="usermanager_input_button" type="button" name="company_prof" value="<ion:translation term='module_usermanager_button_nocompany_profile' />" onclick="document.random_fields_form.submit();" /></div></ion:usermanager>
<div class="clear"></div>
</div></div></div><div class="greentab_footer"><div><div></div></div></div></div>
<!--
Required Fields
-->
<div class="maintab" style="width: 445px; float: left; clear: left;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_mandatory_fields" /></div></div></div></div><div class="maintab_content"><div><div>
<p>
<label for="title"><ion:translation term="module_usermanager_field_title" /></label>
<select size="1" name="title" id="title" class="usermanager_input_select">
<option value="0" <ion:usermanager request='user' attr='title' is_like='0' from_user_field='1' from_post_data='profile_save'>SELECTED</ion:usermanager>><ion:translation term="module_usermanager_field_title_mr" /></option>
<option value="1" <ion:usermanager request='user' attr='title' is_like='1' from_user_field='1' from_post_data='profile_save'>SELECTED</ion:usermanager>><ion:translation term="module_usermanager_field_title_ms" /></option>
</select>
</p>
<p><label for="firstname"><ion:translation term="module_usermanager_field_firstname" /></label><input class="usermanager_input_text" name="firstname" id="firstname" value="<ion:usermanager request='user' attr='firstname' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="screen_name"><ion:translation term="module_usermanager_field_screen_name" /></label><input class="usermanager_input_text" name="screen_name" id="screen_name" value="<ion:usermanager request='user' attr='screen_name' from_user_field='1' from_post_data='profile_save' />" /></p>
<ion:usermanager request="global" attr="not_email_as_username">
<p><label for="username"><ion:translation term="module_usermanager_field_username" /></label><input class="usermanager_input_text" name="username" id="username" value="<ion:usermanager request='user' attr='username' from_user_field='1' from_post_data='profile_save' />" /></p>
</ion:usermanager>
<p><label for="email"><ion:translation term="module_usermanager_field_email" /></label><input class="usermanager_input_text" name="email" id="email" value="<ion:usermanager request='user' attr='email' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="password"><ion:translation term="module_usermanager_field_password" /></label><input class="usermanager_input_password" name="password" id="password" type="password" value="<ion:usermanager request='user' attr='password' from_post_data='profile_save' />" /></p>
<p><label for="password2"><ion:translation term="module_usermanager_field_password2" /></label><input class="usermanager_input_password" name="password2" id="password2" type="password" value="<ion:usermanager request='user' attr='password2' from_post_data='profile_save' />" /></p>
<p></p>
<p></p>
<p></p>
</div></div></div><div class="maintab_footer"><div><div></div></div></div></div>
<!--
Optional Fields
-->
<div class="maintab" style="width: 445px; float: right; clear: right;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_optional_fields" /></div></div></div></div><div class="maintab_content"><div><div>
<p><label for="company"><ion:translation term="module_usermanager_field_company" /></label><input class="usermanager_input_text" name="company" id="company" value="<ion:usermanager request='user' attr='company' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="position"><ion:translation term="module_usermanager_field_position" /></label><input class="usermanager_input_text" name="position" id="position" value="<ion:usermanager request='user' attr='position' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="street"><ion:translation term="module_usermanager_field_street" /></label><input class="usermanager_input_text" name="street" id="street" style="width: 245px" value="<ion:usermanager request='user' attr='street' from_user_field='1' from_post_data='profile_save' />" /><img src="<ion:theme_url />assets/images/0.gif" class="form_spacer" /><input class="usermanager_input_text" name="housenumber" id="housenumber" style="width: 20px" value="<ion:usermanager request='user' attr='housenumber' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="zip"><ion:translation term="module_usermanager_field_zip" /> / <ion:translation term="module_usermanager_field_city" /></label><input class="usermanager_input_text" name="zip" id="zip" style="width: 40px;" value="<ion:usermanager request='user' attr='zip' from_user_field='1' from_post_data='profile_save' />" /><img src="<ion:theme_url />assets/images/0.gif" class="form_spacer" /><input class="usermanager_input_text" name="city" id="city" style="width: 225px;" value="<ion:usermanager request='user' attr='city' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="website"><ion:translation term="module_usermanager_field_website" /></label><input class="usermanager_input_text" name="website" id="website" value="<ion:usermanager request='user' attr='website' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="xing"><ion:translation term="module_usermanager_field_xing" /></label><input class="usermanager_input_text" name="xing" id="xing" value="<ion:usermanager request='user' attr='xing' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="linkedin"><ion:translation term="module_usermanager_field_linkedin" /></label><input class="usermanager_input_text" name="linkedin" id="linkedin" value="<ion:usermanager request='user' attr='linkedin' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="twitter"><ion:translation term="module_usermanager_field_twitter" /></label><input class="usermanager_input_text" name="twitter" id="twitter" value="<ion:usermanager request='user' attr='twitter' from_user_field='1' from_post_data='profile_save' />" /></p>
<p><label for="facebook"><ion:translation term="module_usermanager_field_facebook" /></label><input class="usermanager_input_text" name="facebook" id="facebook" value="<ion:usermanager request='user' attr='facebook' from_user_field='1' from_post_data='profile_save' />" /></p>
</div></div></div><div class="maintab_footer"><div><div></div></div></div></div>
<div class="clear"></div>
<!--
User Image
-->
<div class="maintab" style="width: 293px; float: left;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_picture" /></div></div></div></div><div class="maintab_content"><div><div style="height: 210px;">
<p class="autoheight" style="text-align: center;"><img src="<ion:usermanager request='user' attr='get_picture' field='picture' dimensions='profile' />" /></p>
<div style="width: 210px; text-align: center; margin: 0 auto;"><input class="usermanager_input_file" name="picture" id="picture" type="file" value="" /></div>
</div></div></div><div class="maintab_footer"><div><div></div></div></div></div>
<!--
About Me
-->
<div class="maintab" style="width: 293px; float: left; margin-left: 10px;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_about_me" /></div></div></div></div><div class="maintab_content"><div><div style="height: 210px;">
<textarea class="usermanager_input_textarea" id="about_me" name="about_me"><ion:usermanager request="user" attr="about_me" from_user_field="1" from_post_data="profile_save" /></textarea>
</div></div></div><div class="maintab_footer"><div><div></div></div></div></div>
<!--
About Me
-->
<div class="maintab" style="width: 293px; float: right; clear: right;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_references" /></div></div></div></div><div class="maintab_content"><div><div style="height: 210px;">
<textarea class="usermanager_input_textarea" id="my_references" name="my_references"><ion:usermanager request="user" attr="my_references" from_user_field="1" from_post_data="profile_save" /></textarea>
</div></div></div><div class="maintab_footer"><div><div></div></div></div></div>
<div class="clear"></div>
<!--
Optional Finish
-->
<div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_options" /></div></div></div></div><div class="greentab_content"><div><div>
<p><input type="checkbox" name="infomails" id="infomails" <ion:usermanager request='user' attr='infomails' is_like='1' from_user_field='1' from_post_data='profile_save'>CHECKED</ion:usermanager> /> <label class="usermanager_label_checkbox" for="infomails"><ion:translation term="module_usermanager_field_infomails_desc" /></label></p>
<p><input type="checkbox" name="newsletter" id="newsletter" <ion:usermanager request='user' attr='newsletter' is_like='1' from_user_field='1' from_post_data='profile_save'>CHECKED</ion:usermanager> /> <label class="usermanager_label_checkbox" for="newsletter"><ion:translation term="module_usermanager_field_newsletter_desc" /></label></p>
<p><input type="checkbox" name="terms" id="terms" <ion:usermanager request='user' attr='terms' is_like='1' from_user_field='1' from_post_data='profile_save'>CHECKED</ion:usermanager> /> <label class="usermanager_label_checkbox" for="terms"><ion:translation term="module_usermanager_field_terms_desc" /></label></p>
</div></div></div><div class="greentab_footer"><div><div></div></div></div></div>
<input type="hidden" name="delete" id="delete" value="0" />
<input type="hidden" name="form_name" value="profile_save" />
</form>
</div>
| lostfly2/g2 | modules/Usermanager/views/tag_profile_edit.php | PHP | mit | 12,808 |
# YUMMY License
> **YoU make Money, I make MoneY.** If you don't make money using it, you are allowed to use the Software for free.
1. Permission is hereby granted to any person obtaining (A) a copy of this software and (B) a license code issued on [backpackforlaravel.com](https://backpackforlaravel.com) (the "Software"/"Backpack" and "License" respectively), to use the software in production environments (on servers with addresses reachable by public DNS, public IP addresses or commercial private networks). This includes the rights to use, copy and/or modify the Software or copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the conditions in this document.
2. This license does not include the rights to publicly or privately sublicense or publish this Software, its copies or any derivations, with or without the purpose of commercial profit. Different licenses are required for copies, third-party packages and derivations of the software, detailed in the articles below.
3. The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with Backpack or the use or other dealings in the Software.
4. The sole copyright holder and author of the Software is Cristian Tabacitu <[email protected]>. Any code contributions made to Backpack by third parties, be it individuals or companies, are considered a gesture of good will, and become the property of the copyright holder as soon as they are submitted. The contributors keep the right to use, copy, modify, promote and release the portions of the Software they have contributed, but so does the copyright holder.
5. This copyright notice and permission notice shall be included in all copies or substantial portions of the Software.
6. The current license has been last modified on 27 Sep 2019, and is mandatory for any usage of versions of Backpack newer than 4.0.1 (commonly referred to as "releases" or "tags").
## Free on localhost
7. Should Backpack be used in a development environment, without being presented to clients or final users, no financial reward is expected and the above rights (Article 1) are given FREE OF CHARGE in that environment. When the application is not available under a public DNS address or public IP address, and no money has been made from using Backpack, **no license code is required**.
## Free for non-commercial use
8. Should Backpack be used for non-commercial purposes (personal use, not-profits, testing, hobby, education), no financial reward is expected and the above rights (Article 1) are given FREE OF CHARGE both in local and production environments. **A valid license code is required for use in production**, and can be applied for on [backpackforlaravel.com](https://backpackforlaravel.com). Special terms and conditions apply - detailed in the application form. The copyright holder reserves the right to approve and deny free license applications at their discretion.
9. Should Backpack be used in a free open-source package, the above rights (Article 1) are given FREE OF CHARGE, and no license purchase or notification is required. However, users of the third-party packages will be forced to abide by the current license, and purchase a license for commercial use, since Backpack is a dependency. Hence, it is recommended that a notice and link is provided to the third-party package's users, so that it is clear that by using the free third-party package in production, they are using Backpack, and need to purchase a commercial license or apply for a non-commercial license for Backpack. We try to support, help and promote third-party packages for Backpack - consider contacting <[email protected]> before or after you create the package.
## Paid for commercial use
10. We consider it commercial use when anybody involved in the project that uses Backpack makes money. **If anybody** (including but not limited to: the developer, employer, employees or clients) **using Backpack inside a project** (by building, maintaining, leasing, renting, selling or reselling the project) **is financially rewarded directly** (wage, commission, subscription, advertising)**or indirectly**(by reducing costs or increasing efficiency in a commercial endeavour)**, it is considered commercial use.** Any usage by a commercial entity is considered commercial use. Internal usage by a commercial entity is considered commercial use. Commercial entities developing pro-bono projects can _and should_ apply for a non-commercial license on [backpackforlaravel.com](https://backpackforlaravel.com).
11. **Should Backpack be used for commercial purposes**, the user is required to **purchase a license code on [backpackforlaravel.com](https://backpackforlaravel.com) for each domain name this software will be used on, before its usage in production**. Alternatively, the user can purchase an "Unlimited Projects" license which will allow usage on any number of domain names. Failure to do so will constitute as illegal commercial use.
12. **Should Backpack be included in Software-as-a-Service product, an "Unlimited Projects" license is required**, which can be purchased on [backpackforlaravel.com](https://backpackforlaravel.com).
13. **Should Backpack be included in a commercial package or product** (that is sold, leased or rented to third-parties) **aimed at the same target audience or similar, a special sublicensing agreement is required** - contact <[email protected]>.
14. **By using Backpack in production without a valid license code for that project, issued by the copyright holder, the user is considered to be breaching the terms of the current license, and agrees to be subject to punishments including but not limited to:**
- having their administration panel stop working, interrupted, disabled or removed;
- being removed or banned from the Backpack community;
- being publicly disclosed as untrustworthy, in a "Wall of Shame" section, on partner websites, on social networks like Twitter, Facebook and LinkedIn, or any other way the copyright holder sees fit;
15. The copyright holder will attempt to contact the user 7 days before punitive action is taken if contact information is easily available, but is not obligated to do so. **The user who has committed a breach of license terms can only purchase a special "Redemption License", issued individually, priced at 10 to 1000 times the list price**, depending on the gravity of the breach and estimated foregone earnings. The price of the "Redemption License" is to be decided by the copyright holder on a case-by-case basis. Contact <[email protected]> if you've found you're breaching the terms - special consideration is given to those who report themselves.
| Laravel-Backpack/crud | LICENSE.md | Markdown | mit | 7,083 |
from django.db import models
from django.core.urlresolvers import reverse
class Software(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('software_edit', kwargs={'pk': self.pk})
| htlcnn/pyrevitscripts | HTL.tab/Test.panel/Test.pushbutton/keyman/keyman/keys/models.py | Python | mit | 300 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Децентрализированное Хранилище Данных</title>
<link rel="stylesheet" href="/bootstrap-3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/style.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">АйВи</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/">Домашняя</a></li>
<li><a href="/about">О компании</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="alert alert-danger" role="alert">
Данный сайт в разработке
</div>
<div class="row">
<div class="col-md-9" role="main">
<h1 >Храненние данных</h1>
<p id="description">
У большинства пользователей компьютера много свободного места на диске,
которые можно использовать для хранения данных.
</p>
<h2 id="how-it-works">Как это работает</h2>
<p>Данный продукт объеденяет свободные ресурсы пользователей в общее децентрализованное облако,
не зависящее от места положения пользователя, другими словами виртуальный RAID массив.</p>
</div>
<div class="col-md-3" role="complementary">
<nav class="hidden-print hidden-sm hidden-xs affix">
<ul class="nav">
<li class=""><a href="#description">Описание</a></li>
<li class=""><a href="#how-it-works">Как это работатает</a></li>
</ul>
</nav>
</div>
</div>
</div>
<script src="jquery/1.12.4/jquery.min.js"></script>
<script src="/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="/js/site.js"></script>
</body>
</html>
| lboss75/vds | www/store.html | HTML | mit | 3,000 |
#!/usr/bin/python3
"""
This bot uploads text from djvu files onto pages in the "Page" namespace.
It is intended to be used for Wikisource.
The following parameters are supported:
-index:... name of the index page (without the Index: prefix)
-djvu:... path to the djvu file, it shall be:
- path to a file name
- dir where a djvu file name as index is located
optional, by default is current dir '.'
-pages:<start>-<end>,...<start>-<end>,<start>-<end>
Page range to upload;
optional, start=1, end=djvu file number of images.
Page ranges can be specified as:
A-B -> pages A until B
A- -> pages A until number of images
A -> just page A
-B -> pages 1 until B
This script is a :py:obj:`ConfigParserBot <pywikibot.bot.ConfigParserBot>`.
The following options can be set within a settings file which is scripts.ini
by default:
-summary: custom edit summary.
Use quotes if edit summary contains spaces.
-force overwrites existing text
optional, default False
-always do not bother asking to confirm any of the changes.
"""
#
# (C) Pywikibot team, 2008-2022
#
# Distributed under the terms of the MIT license.
#
import os.path
from typing import Optional
import pywikibot
from pywikibot import i18n
from pywikibot.bot import SingleSiteBot
from pywikibot.exceptions import NoPageError
from pywikibot.proofreadpage import ProofreadPage
from pywikibot.tools.djvu import DjVuFile
class DjVuTextBot(SingleSiteBot):
"""
A bot that uploads text-layer from djvu files to Page:namespace.
Works only on sites with Proofread Page extension installed.
.. versionchanged:: 7.0
CheckerBot is a ConfigParserBot
"""
update_options = {
'force': False,
'summary': '',
}
def __init__(
self,
djvu,
index,
pages: Optional[tuple] = None,
**kwargs
) -> None:
"""
Initializer.
:param djvu: djvu from where to fetch the text layer
:type djvu: DjVuFile object
:param index: index page in the Index: namespace
:type index: Page object
:param pages: page interval to upload (start, end)
"""
super().__init__(**kwargs)
self._djvu = djvu
self._index = index
self._prefix = self._index.title(with_ns=False)
self._page_ns = self.site._proofread_page_ns.custom_name
if not pages:
self._pages = (1, self._djvu.number_of_images())
else:
self._pages = pages
# Get edit summary message if it's empty.
if not self.opt.summary:
self.opt.summary = i18n.twtranslate(self._index.site,
'djvutext-creating')
def page_number_gen(self):
"""Generate pages numbers from specified page intervals."""
last = 0
for start, end in sorted(self._pages):
start = max(last, start)
last = end + 1
yield from range(start, last)
@property
def generator(self):
"""Generate pages from specified page interval."""
for page_number in self.page_number_gen():
title = '{page_ns}:{prefix}/{number}'.format(
page_ns=self._page_ns,
prefix=self._prefix,
number=page_number)
page = ProofreadPage(self._index.site, title)
page.page_number = page_number # remember page number in djvu file
yield page
def treat(self, page) -> None:
"""Process one page."""
old_text = page.text
# Overwrite body of the page with content from djvu
page.body = self._djvu.get_page(page.page_number)
new_text = page.text
if page.exists() and not self.opt.force:
pywikibot.output(
'Page {} already exists, not adding!\n'
'Use -force option to overwrite the output page.'
.format(page))
else:
self.userPut(page, old_text, new_text, summary=self.opt.summary)
def main(*args: str) -> None:
"""
Process command line arguments and invoke bot.
If args is an empty list, sys.argv is used.
:param args: command line arguments
"""
index = None
djvu_path = '.' # default djvu file directory
pages = '1-'
options = {}
# Parse command line arguments.
local_args = pywikibot.handle_args(args)
for arg in local_args:
opt, _, value = arg.partition(':')
if opt == '-index':
index = value
elif opt == '-djvu':
djvu_path = value
elif opt == '-pages':
pages = value
elif opt == '-summary':
options['summary'] = value
elif opt in ('-force', '-always'):
options[opt[1:]] = True
else:
pywikibot.output('Unknown argument ' + arg)
# index is mandatory.
if not index:
pywikibot.bot.suggest_help(missing_parameters=['-index'])
return
# If djvu_path is not a file, build djvu_path from dir+index.
djvu_path = os.path.expanduser(djvu_path)
djvu_path = os.path.abspath(djvu_path)
if not os.path.exists(djvu_path):
pywikibot.error('No such file or directory: ' + djvu_path)
return
if os.path.isdir(djvu_path):
djvu_path = os.path.join(djvu_path, index)
# Check the djvu file exists and, if so, create the DjVuFile wrapper.
djvu = DjVuFile(djvu_path)
if not djvu.has_text():
pywikibot.error('No text layer in djvu file {}'.format(djvu.file))
return
# Parse pages param.
pages = pages.split(',')
for i, page_interval in enumerate(pages):
start, sep, end = page_interval.partition('-')
start = int(start or 1)
end = int(end or djvu.number_of_images()) if sep else start
pages[i] = (start, end)
site = pywikibot.Site()
if not site.has_extension('ProofreadPage'):
pywikibot.error('Site {} must have ProofreadPage extension.'
.format(site))
return
index_page = pywikibot.Page(site, index, ns=site.proofread_index_ns)
if not index_page.exists():
raise NoPageError(index)
pywikibot.output('uploading text from {} to {}'
.format(djvu.file, index_page.title(as_link=True)))
bot = DjVuTextBot(djvu, index_page, pages=pages, site=site, **options)
bot.run()
if __name__ == '__main__':
try:
main()
except Exception:
pywikibot.error('Fatal error:', exc_info=True)
| wikimedia/pywikibot-core | scripts/djvutext.py | Python | mit | 6,822 |
// Copyright 2015 LastLeaf, LICENSE: github.lastleaf.me/MIT
'use strict';
var fs = require('fs');
var fse = require('fs-extra');
var async = require('async');
var User = fw.module('/db_model').User;
var exports = module.exports = function(conn, res, args){
User.checkPermission(conn, 'admin', function(perm){
if(!perm) return res.err('noPermission');
res.next();
});
};
exports.list = function(conn, res){
// read site list
var sitesDir = conn.app.config.app.siteRoot + '/xbackup/';
fs.readdir(sitesDir, function(err, files){
if(err) return res.err('system');
var sites = files.sort();
// list available backup files
var details = [];
var local = null;
async.eachSeries(sites, function(site, cb){
var siteDir = sitesDir + site;
if(site !== 'local' && site.slice(-5) !== '.site') return cb();
fs.readdir(siteDir, function(err, files){
if(err) return cb('system');
var zips = [];
for(var i=0; i<files.length; i++) {
var match = files[i].match(/^(.*?)\.xbackup\.zip(\.enc|)$/);
if(match) {
var ft = match[1].replace(/^([0-9]+)-([0-9]+)-([0-9]+)_([0-9]+)-([0-9]+)-([0-9]+)/, function(m, m1, m2, m3, m4, m5, m6){
return m1 + '-' + m2 + '-' + m3 + ' ' + m4 + ':' + m5 + ':' + m6;
});
zips.push({
file: files[i],
timeString: ft
});
}
}
if(site === 'local') {
local = zips;
} else details.push({
domain: site.slice(0, -5),
files: zips
});
cb();
});
}, function(err){
if(err) return res.err('system');
res({
local: local,
sites: details
});
});
});
};
exports.modify = function(conn, res, args){
var addSites = String(args.add).match(/\S+/g) || [];
var removeSites = String(args.remove).match(/\S+/g) || [];
async.eachSeries(removeSites, function(site, cb){
var dir = conn.app.config.app.siteRoot + '/xbackup/' + site + '.site';
fse.remove(dir, function(){
cb();
});
}, function(){
async.eachSeries(addSites, function(site, cb){
var dir = conn.app.config.app.siteRoot + '/xbackup/' + site + '.site';
fs.mkdir(dir, function(){
cb();
});
}, function(){
res();
});
});
};
| LastLeaf/LightPalette | plugins/xbackup/rpc/sites.js | JavaScript | mit | 2,163 |
# opencfp-vote
| OpenWestConference/opencfp-vote | README.md | Markdown | mit | 15 |
{{ _("test1") }}
{{ _('test2') }}
{{ _ 'test3' }}
{{ _ "test3.1" _ 'test4' _ "test5" }}
<%=_("test6")%>
<%= _("test7") %> | kosatyi/node-gettext-generator | tests/source/test.html | HTML | mit | 128 |
/*
* Copyright 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.jonasrottmann.realmbrowser.helper;
import android.content.Context;
import android.support.annotation.RestrictTo;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public class ScrollAwareFABBehavior extends FloatingActionButton.Behavior {
public ScrollAwareFABBehavior(Context context, AttributeSet attrs) {
// This is mandatory if we're assigning the behavior straight from XML
super();
}
@Override
public boolean onStartNestedScroll(final CoordinatorLayout coordinatorLayout, final FloatingActionButton child, final View directTargetChild, final View target, final int nestedScrollAxes) {
// Ensure we react to vertical scrolling
return nestedScrollAxes == ViewCompat.SCROLL_AXIS_VERTICAL || super.onStartNestedScroll(coordinatorLayout, child, directTargetChild, target, nestedScrollAxes);
}
@Override
public void onNestedScroll(final CoordinatorLayout coordinatorLayout, final FloatingActionButton child, final View target, final int dxConsumed, final int dyConsumed, final int dxUnconsumed,
final int dyUnconsumed) {
super.onNestedScroll(coordinatorLayout, child, target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);
if (dyConsumed > 0 && child.getVisibility() == View.VISIBLE) {
// User scrolled down and the FAB is currently visible -> hide the FAB
child.hide(new FloatingActionButton.OnVisibilityChangedListener() {
@Override
public void onHidden(FloatingActionButton fab) {
// Workaround for bug in support libs (http://stackoverflow.com/a/41641841/2192848)
super.onHidden(fab);
fab.setVisibility(View.INVISIBLE);
}
});
} else if (dyConsumed < 0 && child.getVisibility() != View.VISIBLE) {
// User scrolled up and the FAB is currently not visible -> show the FAB
child.show();
}
}
} | jonasrottmann/realm-browser | realm-browser/src/main/java/de/jonasrottmann/realmbrowser/helper/ScrollAwareFABBehavior.java | Java | mit | 2,812 |
package edu.brown.cs.pianoHeroFiles;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class PianoHeroFileHandler {
public void doFileHandling() {
try (Writer writer = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream("filename.txt"), "utf-8"))) {
File dir = new File("pianoHeroFiles/songImages/");
File actualFile = new File(dir, "hey");
File f = new File("C:\\pianoHeroFiles\\songImages\\kiwiCover.png");
System.out.println(f.getName().toString());
File newDir = new File("pianoHeroFiles/songImages/new/");
File newFile = new File(f, "kiwi2.png");
// System.out.println(actualFile);
writer.write("something");
writeFile("pianoHeroFiles/test.txt", "something, brah.");
Set<File> allMp3s = new HashSet<File>();
File mp3Dir = new File("pianoHeroFiles/songs/");
getAllFilesAndFolder(mp3Dir, allMp3s);
for (File fm : allMp3s) {
System.out.println("song:");
System.out.println(fm);
if (!fm.isDirectory()) {
File dest = new File(fm.getParentFile().toString(), "new"
+ fm.getName());
copyFile(fm, dest);
}
}
} catch (IOException e) {
System.err.println("ERROR: error saving the file");
e.printStackTrace();
}
}
/**
* Saves an image to file directory and returns its saved path as a string
*
* @param image
* file
* @return path saved
*/
public static String saveImage(String imageName) {
try {
File image = new File("Images/" + imageName);
// File imageDir = new File("pianoHeroFiles/songImages/");
File imageDir = new File("src/main/resources/static/img/");
File saveDir = new File("../img/");
File dest = new File(imageDir, ""
+ image.getName());
File savedDir = new File(saveDir, ""
+ image.getName());
copyFile(image, dest);
return savedDir.getPath();
} catch (IOException e) {
System.err.println("ERROR: error saving image");
}
return null;
}
/**
* Saves an mp3 file directory and returns its saved path as a string
*
* @param mp3
* file
* @return path saved
*/
public static String saveMp3(String mp3Name) {
try {
File mp3 = new File("Songs/" + mp3Name);
// File songsDir = new File("pianoHeroFiles/songs/");
File songsDir = new File("src/main/resources/static/songs/");
File saveDir = new File("../songs/");
File dest = new File(songsDir, ""
+ mp3.getName());
File saveDest = new File(saveDir, ""
+ mp3.getName());
copyFile(mp3, dest);
return saveDest.getPath();
} catch (IOException e) {
System.err.println("ERROR: error saving image");
}
return null;
}
/**
* Saves the 1d-array boolean of keystrokes for a given song id.
*
* @param keyStrokes
* : 1d-array of booleans
* @param songId
* : int, the song id
* @return String of the path where the keystrokes file was saved.
*/
public static String saveSongKeystrokes(boolean[] keyStrokes, int songId) {
String path = "pianoHeroFiles/songKeyStrokes/";
String keyStrokesID = songId + "_keyStrokes.txt";
String keyStrokesPath = path + keyStrokesID;
try (PrintWriter writer = new PrintWriter(keyStrokesPath, "UTF-8")) {
String line = "";
// this is for the fake, testing songs.
if (keyStrokes == null) {
System.out.println("FAKEEEEE");
line += "1000100100010100010101";
}
for (int i = 0; i < keyStrokes.length; i++) {
String add = keyStrokes[i] ? "1" : "0";
line += add;
}
writer.println(line);
writer.close();
} catch (IOException e) {
System.err
.println("ERROR: error saving keystrokes for songId: " + songId);
}
return keyStrokesPath;
}
/**
* Saves a 2d-array boolean of keystrokes for a given song id.
*
* @param keyStrokes
* : 2d-array of booleans
* @param songId
* : int, the song id
* @return String of the path where the keystrokes file was saved.
*/
public static String save2DSongKeystrokes(boolean[][] keyStrokes, int songId) {
String path = "pianoHeroFiles/songKeyStrokes/";
String keyStrokesID = songId + "_keyStrokes.txt";
String keyStrokesPath = path + keyStrokesID;
try (PrintWriter writer = new PrintWriter(keyStrokesPath, "UTF-8")) {
for (int i = 0; i < keyStrokes.length; i++) {
String line = "";
for (int j = 0; j < keyStrokes[i].length; j++) {
String add = keyStrokes[i][j] ? "1" : "0";
line += add;
}
writer.println(line);
}
writer.close();
} catch (IOException e) {
System.err
.println("ERROR: error saving keystrokes for songId: " + songId);
}
return keyStrokesPath;
}
/**
* Converts a 1d array of booleans to a 2d array of booleans.
*
* @param array
* : the initial 1d array
* @param length
* : the length of the partitions.
* @return the converted 2d array.
*/
public static boolean[][] convert1DBooleansTo2D(boolean[] array, int length) {
boolean[][] boolean2d = new boolean[length][array.length / length];
for (int i = 0; i < length; i++) {
for (int j = 0; j < array.length / length; j++) {
boolean2d[i][j] = array[j + i * length];
}
}
return boolean2d;
}
/**
* Converts a 2d array of booleans to a 1d array of booleans.
*
* @param array
* : the initial 2d array
* @return the converted 1d array.
*/
public static boolean[] convert2DBooleansTo1D(boolean[][] boolean2D) {
boolean[] boolean1D = new boolean[boolean2D.length * boolean2D[0].length];
for (int i = 0; i < boolean2D.length; i++) {
for (int j = 0; j < boolean2D[i].length; j++) {
assert (boolean2D[i].length == boolean2D[0].length);
boolean1D[j + i * boolean2D.length] = boolean2D[i][j];
}
}
return boolean1D;
}
/**
* Returns a file from a given string path
*
* @param path
* string representing the file path
* @return the File in the path
*/
public static File getFileFromPath(String path) {
File file = new File(path);
return file;
}
/**
* Saves all the files and folders in a set, for a given initial folder.
*
* @param folder
* the initial folder to look all files for.
* @param all
* the set of files to save on
*/
public static void getAllFilesAndFolder(File folder, Set<File> all) {
all.add(folder);
if (folder.isFile()) {
return;
}
for (File file : folder.listFiles()) {
if (file.isFile()) {
all.add(file);
}
if (file.isDirectory()) {
getAllFilesAndFolder(file, all);
}
}
}
/**
* Gets the file of the strokes and converts it to a 1d boolean array to
* return
*
* @param fileName
* the file name of the keystrokes
* @return the 1d array of the strokes
*/
public static boolean[] getStrokesArray(String fileName) {
// This will reference one line at a time
String line = null;
// FileReader reads text files in the default encoding.
try (FileReader fileReader =
new FileReader(fileName)) {
// It's good to always wrap FileReader in BufferedReader.
BufferedReader bufferedReader =
new BufferedReader(fileReader);
int length = 0;
ArrayList<Boolean> results = new ArrayList<Boolean>();
while ((line = bufferedReader.readLine()) != null) {
if (line != null) {
length = line.length();
for (int i = 0; i < line.length(); i++) {
if (line.charAt(i) == '0') {
results.add(false);
} else if (line.charAt(i) == '1') {
results.add(true);
}
}
}
}
boolean[] results1D = new boolean[results.size()];
for (int i = 0; i < results.size(); i++) {
results1D[i] = results.get(i);
}
bufferedReader.close();
return results1D;
// convert1DBooleansTo2D(results1D, length);
} catch (FileNotFoundException ex) {
System.out.println(
"Unable to open file '" +
fileName + "'");
} catch (IOException ex) {
System.out.println(
"Error reading file '"
+ fileName + "'");
}
return null;
}
/**
* Copies a file from an initial source path file to a destination
*
* @param src
* - the initial source file
* @param dst
* - the destination path file
* @throws IOException
* exception with file handling
*/
public static void copyFile(File src, File dst) throws IOException {
InputStream in = new FileInputStream(src);
OutputStream out = new FileOutputStream(dst);
try {
// Transfer bytes from in to out
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
} catch (IOException e) {
System.err.println("ERROR: couldn't copy file in directory");
} finally {
in.close();
out.close();
}
}
/**
* Save the given text to the given filename.
*
* @param canonicalFilename
* Like /Users/al/foo/bar.txt
* @param text
* All the text you want to save to the file as one String.
* @throws IOException
*/
public static void writeFile(String canonicalFilename, String text)
throws IOException
{
File file = new File(canonicalFilename);
BufferedWriter out = new BufferedWriter(new FileWriter(file));
out.write(text);
out.close();
}
/**
* Write an array of bytes to a file. Presumably this is binary data; for
* plain text use the writeFile method.
*/
public static void writeFileAsBytes(String fullPath, byte[] bytes)
throws IOException
{
OutputStream bufferedOutputStream = new BufferedOutputStream(
new FileOutputStream(fullPath));
InputStream inputStream = new ByteArrayInputStream(bytes);
int token = -1;
while ((token = inputStream.read()) != -1) {
bufferedOutputStream.write(token);
}
bufferedOutputStream.flush();
bufferedOutputStream.close();
inputStream.close();
}
/**
* Convert a byte array to a boolean array. Bit 0 is represented with false,
* Bit 1 is represented with 1
*
* @param bytes
* byte[]
* @return boolean[]
*/
public static boolean[] byteArray2BitArray(byte[] bytes) {
boolean[] bits = new boolean[bytes.length * 8];
for (int i = 0; i < bytes.length * 8; i++) {
if ((bytes[i / 8] & (1 << (7 - (i % 8)))) > 0) {
bits[i] = true;
}
}
return bits;
}
}
| valentin7/pianoHero | src/main/java/edu/brown/cs/pianoHeroFiles/PianoHeroFileHandler.java | Java | mit | 11,443 |
$( document ).ready( function () {
$( "#form" ).validate( {
rules: {
company: { required: true },
truckType: { required: true },
materialType: { required: true },
fromSite: { required: true },
toSite: { required: true },
hourIn: { required: true },
hourOut: { required: true },
payment: { required: true },
plate: { minlength: 3, maxlength:15 }
},
errorElement: "em",
errorPlacement: function ( error, element ) {
// Add the `help-block` class to the error element
error.addClass( "help-block" );
error.insertAfter( element );
},
highlight: function ( element, errorClass, validClass ) {
$( element ).parents( ".col-sm-5" ).addClass( "has-error" ).removeClass( "has-success" );
},
unhighlight: function (element, errorClass, validClass) {
$( element ).parents( ".col-sm-5" ).addClass( "has-success" ).removeClass( "has-error" );
},
submitHandler: function (form) {
return true;
}
});
$("#btnClose").click(function(){
if(window.confirm('Are you sure you want to close this Hauling Report?'))
{
$.ajax({
type: "POST",
url: base_url + "hauling/update_hauling_state",
data: $("#form").serialize(),
dataType: "json",
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
cache: false,
success: function(data){
if( data.result == "error" )
{
//alert(data.mensaje);
$("#div_cargando").css("display", "none");
$('#btnSubmit').removeAttr('disabled');
$("#span_msj").html(data.mensaje);
$("#div_msj").css("display", "inline");
return false;
}
if( data.result )//true
{
$("#div_cargando").css("display", "none");
$("#div_guardado").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
var url = base_url + "hauling/add_hauling/" + data.idHauling;
$(location).attr("href", url);
}
else
{
alert('Error. Reload the web page.');
$("#div_cargando").css("display", "none");
$("#div_error").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
}
},
error: function(result) {
alert('Error. Reload the web page.');
$("#div_cargando").css("display", "none");
$("#div_error").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
}
});
}
});
$("#btnSubmit").click(function(){
if ($("#form").valid() == true){
//Activa icono guardando
$('#btnSubmit').attr('disabled','-1');
$("#div_guardado").css("display", "none");
$("#div_error").css("display", "none");
$("#div_msj").css("display", "none");
$("#div_cargando").css("display", "inline");
$.ajax({
type: "POST",
url: base_url + "hauling/save_hauling",
data: $("#form").serialize(),
dataType: "json",
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
cache: false,
success: function(data){
if( data.result == "error" )
{
//alert(data.mensaje);
$("#div_cargando").css("display", "none");
$('#btnSubmit').removeAttr('disabled');
$("#div_error").css("display", "inline");
$("#span_msj").html(data.mensaje);
return false;
}
if( data.result )//true
{
$("#div_cargando").css("display", "none");
$("#div_guardado").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
var url = base_url + "hauling/add_hauling/" + data.idHauling;
$(location).attr("href", url);
}
else
{
alert('Error. Reload the web page.');
$("#div_cargando").css("display", "none");
$("#div_error").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
}
},
error: function(result) {
alert('Error. Reload the web page.');
$("#div_cargando").css("display", "none");
$("#div_error").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
}
});
}//if
});
$("#btnEmail").click(function(){
if ($("#form").valid() == true){
//Activa icono guardando
$('#btnSubmit').attr('disabled','-1');
$('#btnEmail').attr('disabled','-1');
$("#div_guardado").css("display", "none");
$("#div_error").css("display", "none");
$("#div_msj").css("display", "none");
$("#div_cargando").css("display", "inline");
$.ajax({
type: "POST",
url: base_url + "hauling/save_hauling_and_send_email",
data: $("#form").serialize(),
dataType: "json",
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
cache: false,
success: function(data){
if( data.result == "error" )
{
//alert(data.mensaje);
$("#div_cargando").css("display", "none");
$('#btnSubmit').removeAttr('disabled');
$('#btnEmail').removeAttr('disabled');
$("#div_error").css("display", "inline");
$("#span_msj").html(data.mensaje);
return false;
}
if( data.result )//true
{
$("#div_cargando").css("display", "none");
$("#div_guardado").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
$('#btnEmail').removeAttr('disabled');
var url = base_url + "hauling/add_hauling/" + data.idHauling;
$(location).attr("href", url);
}
else
{
alert('Error. Reload the web page.');
$("#div_cargando").css("display", "none");
$("#div_error").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
$('#btnEmail').removeAttr('disabled');
}
},
error: function(result) {
alert('Error. Reload the web page.');
$("#div_cargando").css("display", "none");
$("#div_error").css("display", "inline");
$('#btnSubmit').removeAttr('disabled');
$('#btnEmail').removeAttr('disabled');
}
});
}//if
});
}); | bmottag/vci_app | assets/js/validate/hauling/hauling_v2.js | JavaScript | mit | 6,397 |
# QCWeChatPay
- 微信 APP 支付 Demo
- 开发环境:Xcode 8.2,WeChatSDK-1.7.5,AFNetworking-3.1.0
- 微信 APP 支付集成说明见 [QianChia 的博客](http://www.cnblogs.com/QianChia/p/6206153.html)。
| QianChia/QCWeChatPay | README.md | Markdown | mit | 216 |
var axios = require("axios");
var expect = require("chai").expect;
var MockAdapter = require("../src");
describe("MockAdapter asymmetric matchers", function () {
var instance;
var mock;
beforeEach(function () {
instance = axios.create();
mock = new MockAdapter(instance);
});
it("mocks a post request with a body matching the matcher", function () {
mock
.onPost("/anyWithBody", {
asymmetricMatch: function (actual) {
return actual.params === "1";
},
})
.reply(200);
return instance
.post("/anyWithBody", { params: "1" })
.then(function (response) {
expect(response.status).to.equal(200);
});
});
it("mocks a post request with a body not matching the matcher", function () {
mock
.onPost("/anyWithBody", {
asymmetricMatch: function (actual) {
return actual.params === "1";
},
})
.reply(200);
return instance
.post("/anyWithBody", { params: "2" })
.catch(function (error) {
expect(error.message).to.eq("Request failed with status code 404");
});
});
});
| ctimmerm/axios-mock-adapter | test/asymmetric.spec.js | JavaScript | mit | 1,140 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'pages',
function (Blueprint $table) {
$table->json('version')->nullable();
$table->unsignedInteger('version_no')->nullable();
}
);
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table(
'pages',
function ($table) {
$table->dropColumn('version');
$table->dropColumn('version_no');
}
);
}
}
| younginnovations/resourcecontracts-rc-subsite | database/migrations/2020_03_11_052945_update_pages_table.php | PHP | mit | 830 |
'use strict';
var intlNameInitials = function () {
};
var pattern = '{0}{1}';
function _firstLetter(text) {
return text.charAt(0);
}
function _upperCase(letter) {
if (letter === 'ı'){
return 'I';
}
return letter.toUpperCase();
}
function _isHangul(l){
if ((l > 44032) && (l < 55203)) {
return true;
}
return false;
}
function _initials(letter) {
var l = letter.charCodeAt(0);
// Generated by regenerate and unicode-8.0.0
// Greek 117
// Latin 991
// Cyrillic 302
var alphaRegex = '[A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u0484\u0487-\u052F\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFE]';
var re = new RegExp(alphaRegex,'i');
if (re.test(letter)){
return letter;
}
return '';
}
function _isSupportedInitials(letter) {
var alphaRegex = '[A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u0484\u0487-\u052F\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFE]';
var re = new RegExp(alphaRegex,'i');
if (re.test(letter)){
return true;
}
return false;
}
function isThai(a){
var thaiRegex = '[\u0E01-\u0E3A\u0E40-\u0E5B]';
var re = new RegExp(thaiRegex,'i');
if (a.length === 1){
return true;
} else {
var letter = _firstLetter(a);
if (re.test(a)) {
return true;
}
}
return false;
}
function isCJK(a){
// HANGUL SYLLABLES
// We want to be sure the full name is Hangul
if (a.length < 3){
var i = 0;
for(var c=0;c< a.length;c++){
if (_isHangul(a.charCodeAt(c)) )
{
i++;
}
}
if (i === a.length){
return true;
}
}
return false;
}
intlNameInitials.prototype.format = function (name, options) {
var initials = '',
a = '',
b = '';
var fields = ['firstName', 'lastName'],
initialName = { firstName : '', lastName: '' };
if (name === null || typeof name !== 'object' ) {
return undefined;
}
fields.forEach(function(field){
if (name.hasOwnProperty(field)) {
if (name[field] === null || name[field].length === 0){
// Nothing to do. but keeping it as placeholder
} else {
if (_isSupportedInitials(_firstLetter(name[field]))) {
initialName[field] = _firstLetter(name[field]);
initials = initials + _upperCase(_initials(initialName[field]));
}
}
}
});
// for CJK
if (name.hasOwnProperty("lastName")){
if (name.lastName === null || name.lastName.length === 0){
} else {
if (isCJK(name.lastName)) {
initials = name.lastName;
}
}
}
if (initials.length === 0){
return undefined;
}
return initials;
};
module.exports = intlNameInitials;
| lwelti/intl-name-initials | src/index.js | JavaScript | mit | 3,252 |
export default [
{
radius: 6,
sizeReduction: .85,
branchProbability: 0.12,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 6,
sizeReduction: .85,
branchProbability: 0.21,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 3,
sizeReduction: .87,
branchProbability: 0.25,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
}, {
radius: 7,
sizeReduction: .82,
branchProbability: 0.22,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 7,
sizeReduction: .82,
branchProbability: 0.22,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 7,
sizeReduction: .82,
branchProbability: 0.27,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},
{
radius: 10,
sizeReduction: .9,
branchProbability: 0.2,
rotation: new THREE.Vector3(0, 1, 0),
color: 'pink'
},{
radius: 10,
sizeReduction: .75,
branchProbability: 0.3,
rotation: new THREE.Vector3(0, 1, 0),
color: 'pink'
}
];
| susielu/3d | src/plantae/conical-dendrite-trees.js | JavaScript | mit | 1,089 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Hirocoin</source>
<translation>Par Hirocoin</translation>
</message>
<message>
<location line="+39"/>
<source><b>Hirocoin</b> version</source>
<translation><b>Hirocoin</b> versija</translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The Hirocoin developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Adrešu grāmata</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Adresi vai nosaukumu rediģē ar dubultklikšķi</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Izveidot jaunu adresi</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Kopēt iezīmēto adresi uz starpliktuvi</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Jauna adrese</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Hirocoin 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 type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>&Kopēt adresi</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Parādīt &QR kodu</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Hirocoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</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 Hirocoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Dzēst</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Hirocoin 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>Kopēt &Nosaukumu</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>&Rediģēt</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Eksportēt adreses</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Fails ar komatu kā atdalītāju (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Kļūda eksportējot</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Nevar ierakstīt failā %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Nosaukums</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(bez nosaukuma)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Paroles dialogs</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Ierakstiet paroli</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Jauna parole</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Jaunā parole vēlreiz</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>Ierakstiet maciņa jauno paroli.<br/>Lūdzu izmantojiet <b>10 vai vairāk nejauši izvēlētas zīmes</b>, vai <b>astoņus un vairāk vārdus</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Šifrēt maciņu</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Lai veikto šo darbību, maciņš jāatslēdz ar paroli.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Atslēgt maciņu</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Šai darbībai maciņš jāatšifrē ar maciņa paroli.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Atšifrēt maciņu</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Mainīt paroli</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Ierakstiet maciņa veco un jauno paroli.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Apstiprināt maciņa šifrēšanu</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR HIROCOINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Maciņš nošifrēts</translation>
</message>
<message>
<location line="-56"/>
<source>Hirocoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your hirocoins from being stolen by malware infecting your computer.</source>
<translation>Hirocoin aizvērsies, lai pabeigtu šifrēšanu. Atcerieties, ka maciņa šifrēšana nevar pilnībā novērst bitkoinu zādzību, ko veic datorā ieviesušās kaitīgas programmas.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Maciņa šifrēšana neizdevās</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Maciņa šifrēšana neizdevās programmas kļūdas dēļ. Jūsu maciņš netika šifrēts.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Ievadītās paroles nav vienādas.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Maciņu atšifrēt neizdevās</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Maciņa atšifrēšanai ievadītā parole nav pareiza.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Maciņu neizdevās atšifrēt</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>Parakstīt &ziņojumu...</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Sinhronizācija ar tīklu...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Pārskats</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Rādīt vispārēju maciņa pārskatu</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Transakcijas</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Skatīt transakciju vēsturi</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Rediģēt saglabātās adreses un nosaukumus</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Rādīt maksājumu saņemšanas adreses</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>&Iziet</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Aizvērt programmu</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Hirocoin</source>
<translation>Parādīt informāciju par Hirocoin</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Par &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Parādīt informāciju par Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Iespējas</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>Š&ifrēt maciņu...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Izveidot maciņa rezerves kopiju</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Mainīt paroli</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-347"/>
<source>Send coins to a Hirocoin address</source>
<translation>Nosūtīt bitkoinus uz Hirocoin adresi</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Hirocoin</source>
<translation>Mainīt Hirocoin konfigurācijas uzstādījumus</translation>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation>Izveidot maciņa rezerves kopiju citur</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Mainīt maciņa šifrēšanas paroli</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>&Debug logs</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Atvērt atkļūdošanas un diagnostikas konsoli</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>&Pārbaudīt ziņojumu...</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Hirocoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>Maciņš</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>&About Hirocoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your Hirocoin addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified Hirocoin addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Fails</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Uzstādījumi</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Palīdzība</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Ciļņu rīkjosla</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>Hirocoin client</source>
<translation>Hirocoin klients</translation>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Hirocoin network</source>
<translation><numerusform>%n aktīvu savienojumu ar Hirocoin tīklu</numerusform><numerusform>%n aktīvs savienojums ar Hirocoin tīklu</numerusform><numerusform>%n aktīvu savienojumu as Hirocoin tīklu</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><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>Kļūda</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>Brīdinājums</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Sinhronizēts</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Sinhronizējos...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>Apstiprināt transakcijas maksu</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Transakcija nosūtīta</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Ienākoša transakcija</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Datums: %1
Daudzums: %2
Tips: %3
Adrese: %4
</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid Hirocoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Maciņš ir <b>šifrēts</b> un pašlaik <b>atslēgts</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Maciņš ir <b>šifrēts</b> un pašlaik <b>slēgts</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Hirocoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation>Tīkla brīdinājums</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Mainīt adrese</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Nosaukums</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Adrešu grāmatas ieraksta nosaukums</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Adrese</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>Adrese adrešu grāmatas ierakstā. To var mainīt tikai nosūtīšanas adresēm.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Jauna saņemšanas adrese</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Jauna nosūtīšanas adrese</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Mainīt saņemšanas adresi</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Mainīt nosūtīšanas adresi</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Nupat ierakstītā adrese "%1" jau atrodas adrešu grāmatā.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Hirocoin address.</source>
<translation>Ierakstītā adrese "%1" nav derīga Hirocoin adrese.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Nav iespējams atslēgt maciņu.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Neizdevās ģenerēt jaunu atslēgu.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>Hirocoin-Qt</source>
<translation>Hirocoin-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>versija</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Lietojums:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>komandrindas izvēles</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>Lietotāja interfeisa izvēlnes</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Uzstādiet valodu, piemēram "de_DE" (pēc noklusēšanas: sistēmas lokāle)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>Sākt minimizētu</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Uzsākot, parādīt programmas informācijas logu (pēc noklusēšanas: 1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Iespējas</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Galvenais</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>&Maksāt par transakciju</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start Hirocoin after logging in to the system.</source>
<translation>Automātiski sākt Hirocoin pēc pieteikšanās sistēmā.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start Hirocoin on system login</source>
<translation>&Sākt Hirocoin reizē ar sistēmu</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Tīkls</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Hirocoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Uz rūtera automātiski atvērt Hirocoin klienta portu. Tas strādā tikai tad, ja rūteris atbalsta UPnP un tas ir ieslēgts.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Kartēt portu, izmantojot &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the Hirocoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>&Savienoties caur SOCKS proxy:</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>Proxy &IP:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>proxy IP adrese (piem. 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Ports:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Proxy ports (piem. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>SOCKS &Versija:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>proxy SOCKS versija (piem. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Logs</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Pēc loga minimizācijas rādīt tikai ikonu sistēmas teknē.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimizēt uz sistēmas tekni, nevis rīkjoslu</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>Logu aizverot, minimizēt, nevis beigt darbu. Kad šī izvēlne iespējota, programma aizvērsies tikai pēc Beigt komandas izvēlnē.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimizēt aizverot</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Izskats</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Lietotāja interfeiss un &valoda:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Hirocoin.</source>
<translation>Šeit var iestatīt lietotāja valodu. Iestatījums aktivizēsies pēc Hirocoin pārstartēšanas.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Vienības, kurās attēlot daudzumus:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Izvēlēties dalījuma vienību pēc noklusēšanas, ko izmantot interfeisā un nosūtot bitkoinus.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show Hirocoin addresses in the transaction list or not.</source>
<translation>Rādīt vai nē Hirocoin adreses transakciju sarakstā.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Attēlot adreses transakciju sarakstā</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Atcelt</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>&Pielietot</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation>pēc noklusēšanas</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>Brīdinājums</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Hirocoin.</source>
<translation>Iestatījums aktivizēsies pēc Bitkoin pārstartēšanas.</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Norādītā proxy adrese nav derīga.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Forma</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Hirocoin network after a connection is established, but this process has not completed yet.</source>
<translation>Attēlotā informācija var būt novecojusi. Jūsu maciņš pēc savienojuma izveides automātiski sinhronizējas ar Hirocoin tīklu, taču šis process vēl nav beidzies.</translation>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Bilance:</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Neapstiprinātas:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Maciņš</translation>
</message>
<message>
<location line="+107"/>
<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="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Pēdējās transakcijas</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Jūsu tekošā bilance</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Kopējā apstiprināmo transakciju vērtība, vēl nav ieskaitīta kopējā bilancē</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>nav sinhronizēts</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start hirocoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>QR koda dialogs</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Pieprasīt maksājumu</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Daudzums:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Nosaukums:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Ziņojums:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Saglabāt kā...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>Kļūda kodējot URI QR kodā.</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>Rezultāta URI pārāk garš, mēģiniet saīsināt nosaukumu vai ziņojumu. </translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Saglabāt QR kodu</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>PNG attēli (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Klienta vārds</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation>N/A</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Klienta versija</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informācija</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Sākuma laiks</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Tīkls</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Savienojumu skaits</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>Testa tīklā</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Bloku virkne</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Pašreizējais bloku skaits</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Bloku skaita novērtējums</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Pēdējā bloka laiks</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Atvērt</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Hirocoin-Qt help message to get a list with possible Hirocoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konsole</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Kompilācijas datums</translation>
</message>
<message>
<location line="-104"/>
<source>Hirocoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Hirocoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the Hirocoin 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>Notīrīt konsoli</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the Hirocoin RPC console.</source>
<translation>Laipni lūgti Hirocoin RPC konsolē.</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>Izmantojiet bultiņas uz augšu un leju, lai pārvietotos pa vēsturi, un <b>Ctrl-L</b> ekrāna notīrīšanai.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Ierakstiet <b>help</b> lai iegūtu pieejamo komandu sarakstu.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Sūtīt bitkoinus</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Sūtīt vairākiem saņēmējiem uzreiz</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Dzēst visus transakcijas laukus</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Notīrīt visu</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Bilance:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123,456 BTC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Apstiprināt nosūtīšanu</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> līdz %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Apstiprināt bitkoinu sūtīšanu</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Vai tiešām vēlaties nosūtīt %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation>un</translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Nosūtāmajai summai jābūt lielākai par 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Daudzums pārsniedz pieejamo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Kopsumma pārsniedz pieejamo, ja pieskaitīta %1 transakcijas maksa.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Atrastas divas vienādas adreses, vienā nosūtīšanas reizē uz katru adresi var sūtīt tikai vienreiz.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Kļūda: transakcija tika atteikta. Tā var gadīties, ja kāds no maciņā esošiem bitkoiniem jau iztērēts, piemēram, izmantojot wallet.dat kopiju, kurā nav atzīmēti iztērētie bitkoini.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Forma</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>Apjo&ms</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Saņēmējs:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</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>Lai pievienotu adresi adrešu grāmatai, tai jādod nosaukums</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Nosaukums:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Izvēlēties adresi no adrešu grāmatas</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>ielīmēt adresi no starpliktuves</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>Dzēst šo saņēmēju</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Hirocoin address (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source>
<translation>Ierakstiet Hirocoin adresi (piem. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</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. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</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>ielīmēt adresi no starpliktuves</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 type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Hirocoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Notīrīt visu</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</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. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Hirocoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Hirocoin address (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source>
<translation>Ierakstiet Hirocoin adresi (piem. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter Hirocoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Hirocoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Atvērts līdz %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/neapstiprinātas</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 apstiprinājumu</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</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>Datums</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Daudzums</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, vēl nav veiksmīgi izziņots</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>nav zināms</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Transakcijas detaļas</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Šis panelis parāda transakcijas detaļas</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Datums</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tips</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Daudzums</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>Atvērts līdz %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>Nav pieslēgts (%1 apstiprinājumu)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Nav apstiprināts (%1 no %2 apstiprinājumu)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Apstiprināts (%1 apstiprinājumu)</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>Neviens cits mezgls šo bloku nav saņēmis un droši vien netiks akceptēts!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Ģenerēts, taču nav akceptēts</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Saņemts ar</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Saņemts no</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Nosūtīts</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Maksājums sev</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Atrasts</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(nav pieejams)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Transakcijas statuss. Turiet peli virs šī lauka, lai redzētu apstiprinājumu skaitu.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Transakcijas saņemšanas datums un laiks.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Transakcijas tips.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Transakcijas mērķa adrese.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Bilancei pievienotais vai atņemtais daudzums.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Visi</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Šodien</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Šonedēļ</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Šomēnes</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Pēdējais mēnesis</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Šogad</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Diapazons...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Saņemts ar</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Nosūtīts</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Sev</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Atrasts</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Cits</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Ierakstiet meklējamo nosaukumu vai adresi</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Minimālais daudzums</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Kopēt adresi</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopēt nosaukumu</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopēt daudzumu</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Mainīt nosaukumu</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Rādīt transakcijas detaļas</translation>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation>Eksportēt transakcijas datus</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Fails ar komatu kā atdalītāju (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Apstiprināts</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Datums</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tips</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Nosaukums</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Adrese</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Daudzums</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Eksportēšanas kļūda</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Nevar ierakstīt failā %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Diapazons:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation>Izveidot maciņa rezerves kopiju</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation>Maciņa dati (*.dat)</translation>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>Rezerves kopēšana neizdevās</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Kļūda, saglabājot maciņu jaunajā vietā.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Hirocoin version</source>
<translation>Hirocoin versija</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>Lietojums:</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or hirocoind</source>
<translation>Nosūtīt komantu uz -server vai hirocoind</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>Komandu saraksts</translation>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation>Palīdzība par komandu</translation>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>Iespējas:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: hirocoin.conf)</source>
<translation>Norādiet konfigurācijas failu (pēc noklusēšanas: hirocoin.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: hirocoind.pid)</source>
<translation>Norādiet pid failu (pēc noklusēšanas: hirocoind.pid)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Norādiet datu direktoriju</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Uzstādiet datu bāzes bufera izmēru megabaitos (pēc noklusēšanas: 25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 9348 or testnet: 19348)</source>
<translation>Gaidīt savienojumus portā <port> (pēc noklusēšanas: 9348 vai testnet: 19348)</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Uzturēt līdz <n> savienojumiem ar citiem mezgliem(pēc noklusēšanas: 125)</translation>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Pievienoties mezglam, lai iegūtu citu mezglu adreses, un atvienoties</translation>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation>Norādiet savu publisko adresi</translation>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Slieksnis pārkāpējmezglu atvienošanai (pēc noklusēšanas: 100)</translation>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Sekundes, cik ilgi atturēt pārkāpējmezglus no atkārtotas pievienošanās (pēc noklusēšanas: 86400)</translation>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9347 or testnet: 19347)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Pieņemt komandrindas un JSON-RPC komandas</translation>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Darbināt fonā kā servisu un pieņemt komandas</translation>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation>Izmantot testa tīklu</translation>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=hirocoinrpc
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 "Hirocoin Alert" [email protected]
</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. Hirocoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation 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 type="unfinished"/>
</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 Hirocoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation 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 type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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>Debug izvadei sākumā pievienot laika zīmogu</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the Hirocoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Debug/trace informāciju izvadīt konsolē, nevis debug.log failā</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>Debug/trace informāciju izvadīt debug programmai</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</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 savienojumu lietotājvārds</translation>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation>Brīdinājums</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation>JSON-RPC savienojumu parole</translation>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Atļaut JSON-RPC savienojumus no norādītās IP adreses</translation>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Nosūtīt komandas mezglam, kas darbojas adresē <ip> (pēc noklusēšanas: 127.0.0.1)</translation>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Izpildīt komandu, kad labāk atbilstošais bloks izmainās (%s cmd aizvieto ar bloka hešu)</translation>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation>Atjaunot maciņa formātu uz jaunāko</translation>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Uzstādīt atslēgu bufera izmēru uz <n> (pēc noklusēšanas: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Atkārtoti skanēt bloku virkni, meklējot trūkstošās maciņa transakcijas</translation>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>JSON-RPC savienojumiem izmantot OpenSSL (https)</translation>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Servera sertifikāta fails (pēc noklusēšanas: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Servera privātā atslēga (pēc noklusēšanas: server.pem)</translation>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Pieņemamie šifri (pēc noklusēšanas: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation>Šis palīdzības paziņojums</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Nevar pievienoties pie %s šajā datorā (pievienošanās atgrieza kļūdu %d, %s)</translation>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation>Savienoties caurs socks proxy</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Atļaut DNS uzmeklēšanu priekš -addnode, -seednode un -connect</translation>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>Ielādē adreses...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Nevar ielādēt wallet.dat: maciņš bojāts</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of Hirocoin</source>
<translation>Nevar ielādēt wallet.dat: maciņa atvēršanai nepieciešama jaunāka Hirocoin versija</translation>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Hirocoin to complete</source>
<translation>Bija nepieciešams pārstartēt maciņu: pabeigšanai pārstartējiet Hirocoin</translation>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation>Kļūda ielādējot wallet.dat</translation>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Nederīga -proxy adrese: '%s'</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>-onlynet komandā norādīts nepazīstams tīkls: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Pieprasīta nezināma -socks proxy versija: %i</translation>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Nevar uzmeklēt -bind adresi: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Nevar atrisināt -externalip adresi: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Nederīgs daudzums priekš -paytxfree=<amount>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>Nederīgs daudzums</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>Nepietiek bitkoinu</translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Ielādē bloku indeksu...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Pievienot mezglu, kam pievienoties un turēt savienojumu atvērtu</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. Hirocoin is probably already running.</source>
<translation>Nevar pievienoties %s uz šī datora. Hirocoin droši vien jau darbojas.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Maksa par KB, ko pievienot nosūtāmajām transakcijām</translation>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>Ielādē maciņu...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation>Nevar maciņa formātu padarīt vecāku</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>Nevar ierakstīt adresi pēc noklusēšanas</translation>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>Skanēju no jauna...</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>Ielāde pabeigta</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation>Izmantot opciju %s</translation>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>Kļūda</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>Konfigurācijas failā jāuzstāda rpcpassword=<password>:
%s
Ja fails neeksistē, izveidojiet to ar atļauju lasīšanai tikai īpašniekam.</translation>
</message>
</context>
</TS>
| GoogolplexCoin/GoogolPlexCoin | src/qt/locale/bitcoin_lv_LV.ts | TypeScript | mit | 106,292 |
VERSION := 1.1a
ROOT := $(shell pwd)
PATH := $(ROOT)/.luvit:$(PATH)
all: module
test: module
checkit tests/*
module: build/slnunicode/unicode.luvit
build/slnunicode/unicode.luvit: build/slnunicode/slnunico.c
$(CC) $(shell luvit-config --cflags | sed 's/ -Werror / /') -DluaI_openlib=luaL_openlib -shared -o $@ $^
build/slnunicode/slnunico.c:
mkdir -p build
wget -qct3 --no-check-certificate http://files.luaforge.net/releases/sln/slnunicode/$(VERSION)/slnunicode-$(VERSION).tar.gz -O - | tar -xzpf - -C build
mv build/slnunicode-$(VERSION) $(@D)
#sed 's/luaI_openlib/luaL_openlib/g' $@ > $(@).tmp
#mv $(@).tmp $@
clean:
rm -fr build
.PHONY: all module clean
.SILENT:
| dvv/luvit-unicode | Makefile | Makefile | mit | 689 |
setTimeout(() => {
import(/* webpackPreload: true */ "./lazy-chunk-2.js").then((mod) =>
mod.test()
);
}, 750);
| waysact/webpack-subresource-integrity | examples/webpack-preload/lazy-chunk-1.js | JavaScript | mit | 119 |
/*
@font-face
{
font-family: 'Gotham-Book';
src: url(Gotham-Book.otf);
src: local('Gotham-Book'), local('Gotham-Book'), url(Gotham-Book.otf) format('opentype');
}
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 400;
src: local('Muli'), url('http://themes.googleusercontent.com/static/fonts/muli/v4/kU4XYdV4jtS72BIidPtqyw.woff') format('woff');
}
*/
html
{
min-height: 100%;
padding-bottom: 1px;
}
body
{
background: #000;
margin: 0 auto;
width: 1024px;
font-family: 'Arial';
}
#header-container
{
float: left;
width: 128px;
}
#header-container img
{
margin: 13px 10px 0;
}
#main
{
background: #FFF;
float: left;
width: 768px;
min-height: 728px;
}
#footer-container
{
float: left;
width: 128px;
overflow: hidden;
}
#footer-container img
{
margin: 65px 10px 0;
}
#encabezado{
margin-top: 50px;
margin-bottom: 40px;
width: 100%;
display: block;
position: relative;
}
#encabezado header{
margin: 0px 0px 40px 35px;
}
#encabezado nav{
margin: 0px 56px 0px 28px;
height: 33px;
}
#encabezado nav .izquierda{
float: left;
}
#encabezado nav .derecha{
float: right;
width: 170px
}
#encabezado .txt-proceso-pago{
color: #e4e4e4;
font-size: 13px;
height: 25px;
display: block;
text-decoration: none;
text-align: center;
cursor: default;
}
#encabezado .txt-proceso-pago-select{
color: #C90002;
font-size: 13px;
height: 25px;
display: block;
text-decoration: none;
text-align: center;
cursor: default;
}
.proceso-pago{
float: left;
margin-right: 32px;
width: 90px;
}
.img-proceso-pago{
width: 31px;
height: 32px;
margin-left: auto;
margin-right: auto;
}
.img-inicio{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -14px -11px;
}
.img-inicio-select{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -14px -42px;
}
.img-pago-envio{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -45px -11px;
}
.img-pago-envio-select{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -45px -42px;
}
.img-facturacion{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -76px -11px;
}
.img-facturacion-select{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -76px -42px;
}
.img-compra{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -107px -11px;
}
.img-compra-select{
background: url('../images/css-sprite_PasosCompra.png') no-repeat;
background-position: -107px -42px;
}
.necesita-ayuda{
width: 170px;
height: 32px;
}
.img-ayuda{
background: url('../images/css-sprite_btnAyuda.png') no-repeat;
background-position: -28px -14px;
}
#pleca-punteada{
display: block;
height: 4px;
margin-left: 40px;
background: url('../images/css-sprite_Plecas.jpg') no-repeat;
background-position: 0px -49px;
clear: both;
}
#detalle-promocion{
position: relative;
display: block;
margin: 5px 56px;
min-height: 75px;
}
#detalle-promocion .img-producto-compra{
width: 60px;
height: 75px;
background: url('../images/css-sprite_icons.png') no-repeat;
background-position: -13px -11px;
float: left;
}
#detalle-promocion .izquierda{
float: left;
padding-left: 15px;
}
#detalle-promocion .derecha{
float: right;
}
.titulo-promo-rojo{
color: #C90002;
font-size: 15px;
font-weight: bolder;
}
.titulo-promo-negro{
color: #292929;
font-size: 14px;
line-height: 20px;
font-weight: bolder;
}
.titulo-promo-rojo2{
color: #C90002;
font-size: 15px;
font-weight: bold;
padding-right: 10px;
border-bottom: solid 1px #CCC;
}
.label-promo-rojo {
color: #C90002;
font-size: 12px;
font-weight: bold;
padding-top: 8px;
padding-right: 10px;
text-align: right;
}
.titulo-promo-negro2{
color: #000000;
font-size: 15px;
font-weight: bold;
padding: 10px;
border-bottom: solid 1px #CCC;
}
.titulo-promo-rojo-deposito{
color: #CA0002;
font-size: 13px;
font-weight: bold;
}
#descripcion-proceso{
position: relative;
display: block;
margin: 40px 56px 0px 59px;
#clear: both;
}
.titulo-proceso-img{
height: 10px;
width: 6px;
margin-top: 4px;
background: url('../images/css-sprite_icons.png') no-repeat;
background-position: -198px -11px;
float: left;
}
.titulo-proceso{
color: #000000;
padding-left: 3px;
font-size: 16px;
font-weight: bold;
float: left;
}
.contenedor{
height: auto;
background-color: #FFF;
}
.contenedor-gris{
background-color: #e5e5e5;
margin: 5px 56px 0px 65px;
padding: 15px 10px;
}
.contenedor-blanco{
margin: 5px 56px 0px 65px;
padding: 0px;
background-color: #FFF;
}
.label{
color: #000;
font-size: 12px;
text-align: right;
font-weight: bold;
}
.label_tarjeta {
color: #c90002;
font-size: 12px;
text-align: right;
font-weight: bold;
}
.label_izq{
color: #000;
font-size: 12px;
font-weight: bold;
}
input .text{
width: 200px;
}
.instrucciones{
font-size: 12px;
color: #4e4e4e;
font-weight: bold;
}
b{
font-size: 12px;
color: #000;
padding: 2px 0px;
}
.instrucciones_mensaje{
color: #000000;
font-size: 12px;
margin: 3px 56px 5px 65px;
font-weight: bold;
}
a {
color: #094C86;
font-size: 12px;
font-weight: bold;
}
a:visited{
color: #094C86;
}
.boton_login{
border: none;
height: 24px;
width: 152px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -13px -15px;
}
.boton_login:hover{
border: none;
height: 24px;
width: 152px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -13px -39px;
}
.boton_enviar_instrucciones{
border: none;
height: 24px;
width: 150px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -1138px -15px;
}
.boton_enviar_instrucciones:hover{
border: none;
height: 24px;
width: 150px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -1138px -39px;
}
.boton_continuar_compra{
border: none;
height: 24px;
width: 131px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -1007px -15px;
}
.boton_continuar_compra:hover{
border: none;
height: 24px;
width: 131px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -1007px -39px;
}
.boton_verificar_clave{
border: none;
height: 24px;
width: 115px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -1288px -15px;
}
.boton_verificar_clave:hover{
border: none;
height: 24px;
width: 115px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -1288px -39px;
}
.crear_cuenta{
border: none;
height: 24px;
width: 183px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -165px -15px;
}
.crear_cuenta:hover{
border: none;
height: 24px;
width: 183px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -165px -39px;
}
.item-lista{
color: #000;
font-size: 12px;
padding: 3px;
font-weight: bold;
vertical-align: middle;
}
.usar_tarjeta{
border: none;
height: 18px;
width: 125px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -136px -13px;
margin-left: 3px;
}
.usar_tarjeta:hover{
border: none;
height: 18px;
width: 125px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -136px -31px;
}
.usar_nueva_tarjeta{
border: none;
height: 18px;
width: 125px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -11px -13px;
}
.usar_nueva_tarjeta:hover {
border: none;
height: 18px;
width: 125px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -11px -31px;
}
.img-deposito{
width: 68px;
height: 75px;
background: url('../images/css-sprite_icons.png') no-repeat;
background-position: -75px -8px;
float: left;
}
.deposito-izquierda{
width: 50%;
float: left;
display: block;
padding-left: 10px;
}
.deposito-derecha{
float: right;
vertical-align: bottom;
}
.tam75{
height: 100px;
padding: 17px;
}
.tam15{
height: 5px;
padding: 10px;
}
.pagar-deposito{
border: none;
height: 24px;
width: 210px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -348px -15px;
margin-top: 50px;
}
.pagar-deposito:hover{
border: none;
height: 24px;
width: 210px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -348px -39px;
margin-top: 50px;
}
thead{
background-color: #FFF;
}
th{
background: url('../images/css-sprite_Plecas.jpg');
background-position: -20px -14px;
padding: 5px 0px 0px 10px;
font-size: 13px;
font-weight: bold;
vertical-align: top;
height: 26px;
text-align: left;
}
td{
padding: 0px 2px;
}
.doble-linea{
background: url('../images/css-sprite_Plecas_2.jpg');
background-position: -20px -5px;
padding: 2px 0px 0px 10px;
font-size: 13px;
font-weight: bold;
vertical-align: top;
height: 40px;
text-align: left;
}
.borde-derecho{
border-right: solid 1px #CCC;
}
.sin-factura{
border: none;
height: 24px;
width: 185px;
background: url('../images/css-sprite_btnN4.png') no-repeat;
background-position: -9px -5px;
}
.sin-factura:hover{
border: none;
height: 24px;
width: 185px;
background: url('../images/css-sprite_btnN4.png') no-repeat;
background-position: -9px -28px;
}
.usar-razon-social {
border: none;
height: 28px;
width: 88px;
background: url('../images/css-sprite_btnN6.png') no-repeat;
background-position: -7px -7px;
}
.usar-razon-social:hover{
border: none;
height: 28px;
width: 88px;
background: url('../images/css-sprite_btnN6.png') no-repeat;
background-position: -7px -35px;
}
.usar_razon_social_large{
border: none;
height: 24px;
width: 175px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -702px -15px;
}
.usar_razon_social_large:hover{
border: none;
height: 24px;
width: 175px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -702px -39px;
}
.usar_razon_social_large2{
border: none;
height: 18px;
width: 150px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -531px -13px;
}
.usar_razon_social_large2:hover{
border: none;
height: 18px;
width: 150px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -531px -31px;
}
.usar_otra_large {
border: none;
height: 19px;
width: 137px;
background: url('../images/css-sprite_btnN3.png') no-repeat;
background-position: -13px -10px;
}
.usar_otra_large:hover {
border: none;
height: 19px;
width: 137px;
background: url('../images/css-sprite_btnN3.png') no-repeat;
background-position: -13px -28px;
}
.cancelar {
border: none;
height: 19px;
width: 80px;
background: url('../images/css-sprite_btnN3.png') no-repeat;
background-position: -150px -10px;
}
.cancelar:hover {
border: none;
height: 19px;
width: 80px;
background: url('../images/css-sprite_btnN3.png') no-repeat;
background-position: -150px -28px;
}
.borde-top{
margin-top: 3px;
border-top: solid 1px #CCC;
height: 33px;
}
.footer_main {
display: block;
padding: 20px 0 20px 0;
clear: both;
margin-left: auto;
margin-right: auto;
width: 420px;
}
.footer_main div {
float: left;
text-align: center;
padding: 0 15px 0 15px;
}
.instrucciones_cursivas {
font-size: 12px;
color: #999999;
font-style: italic;
font-weight: bold;
}
.instrucciones_cursivas_der {
font-size: 12px;
color: #4e4e4e;
font-style: italic;
text-align: left;
float: right;
width: 200px;
}
.asterisco {
height: 10px;
width: 7px;
margin-top: 4px;
background: url('../images/css-sprite_icons.png') no-repeat;
background-position: -181px -11px;
float: left;
}
.alinear_izquierda {
padding-right: 4px;
float: left;
}
.error_mensaje {
font-size: 12px;
float: left;
color: #c90002;
vertical-align: text-bottom;
padding-left: 4px;
}
.usar_nueva_direccion {
border: none;
height: 18px;
width: 138px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -261px -13px;
}
.usar_nueva_direccion:hover{
border: none;
height: 18px;
width: 138px;
background: url('../images/css-sprite_btnN2.png') no-repeat;
background-position: -261px -31px;
}
#div_enlace {
float: left;
width: 100%;
}
#div_enlace a {
color: #c90002;
font-size: 13px;
font-weight: bold;
}
#div_enlace a:hover{
color: #4e0001;
font-size: 13px;
font-weight: bold;
}
.agregar {
border: none;
height: 18px;
width: 20px;
background: url('../images/css-sprite_agregarbtn.png') no-repeat;
background-position: -13px -12px;
float: left;
}
.agregar:hover {
border: none;
height: 18px;
width: 20px;
background: url('../images/css-sprite_agregarbtn.png') no-repeat;
background-position: -13px -30px;
float: left;
}
.texto_agregar {
padding-left: 4px;
text-align: left;
}
.orden-compra-izquierda{
float: left;
width: 50%;
}
.orden-compra-derecha{
float: right;
width: 50%;
}
.bloque-orden-compra{
min-height: 120px;
padding: 5px 10px;
font-size: 12px;
line-height: 17px;
}
.bloque-orden-compra-auto{
line-height: 17px;
padding: 5px 10px;
font-size: 12px;
}
#pleca-gris{
clear: both;
height: 1px;
background-color: #ccc;
margin: 5px 0px;
}
.finalizar_compra{
border: none;
height: 24px;
width: 130px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -877px -15px;
}
.finalizar_compra:hover{
border: none;
height: 24px;
width: 130px;
background: url('../images/css-sprite_btnN1.png') no-repeat;
background-position: -877px -39px;
}
.radio_contenedor{
float: left;
margin-right: 12px;
}
input[type="radio"]{
display: none;
}
.radio_no_selected{
border: none;
height: 16px;
width: 16px;
background: transparent url('../images/css-sprite_icons.png') no-repeat;
background-position: -153px -49px;
float: left;
}
.radio_selected{
border: none;
height: 16px;
width: 16px;
background: transparent url('../images/css-sprite_icons.png') no-repeat;
background-position: -153px -67px;
float: left;
}
.label_radio{
float: left;
margin-left: 5px;
}
.llenar_cp{
border: none;
height: 17px;
width: 57px;
background: url('../images/css-sprite_btnN5.png') no-repeat;
background-position: -8px -9px;
float: left;
margin-top: 5px;
}
.llenar_cp:hover {
border: none;
height: 17px;
width: 57px;
background: url('../images/css-sprite_btnN5.png') no-repeat;
background-position: -8px -26px;
float: left;
}
input[type="text"]{
border: none;
border-bottom: solid;
border-width: 1px;
border-color: #8D8D8D;
color: #8D8D8D;
padding: 4px 10px;
font-size: 12p;
font-weight: bold;
}
input[type="password"]{
border: none;
border-bottom: solid;
border-width: 1px;
border-color: #8D8D8D;
color: #8D8D8D;
padding: 4px 10px;
font-size: 12p;
font-weight: bold;
}
input[type="checkbox"]{
display: none;
}
.checkbox_no_selected{
border: none;
height: 15px;
width: 21px;
background: transparent url('../images/css-sprite_checkboxes02.png') no-repeat;
background-position: -5px -4px;
float: left;
}
.checkbox_selected{
border: none;
height: 15px;
width: 21px;
background: transparent url('../images/css-sprite_checkboxes02.png') no-repeat;
background-position: -5px -20px;
float: left;
}
select {
border: solid;
border-width: 1px;
border-color: #FFF;
border-bottom-color: #8D8D8D;
color: #8D8D8D;
padding: 2px 0px 2px 10px;
font-size: 12p;
font-weight: bold;
}
h4{
margin-left: 10px;
margin-top: 20px;
}
.tip {
color: #4E4E4E;
background:#FFF;
display:none; /*--Hides by default--*/
padding:10px;
position:absolute; z-index:1000;
border: solid 1px #4E4E4E;
font-size: 10px;
}
.tip_trigger{
text-decoration: none;
}
.interrogacion{
border: none;
height: 14px;
width: 16px;
background: transparent url('../images/css-sprite_icons.png') no-repeat;
background-position: -153px -11px;
margin: 0px 0px 0px 5px;
}
.interrogacion:hover{
border: none;
height: 14px;
width: 16px;
background: transparent url('../images/css-sprite_icons.png') no-repeat;
background-position: -153px -27px;
}
.float_izq{
float: left;
margin-top: 6px;
}
.boton{
padding: 3px;
color: #FFFFFF;
background-color: #E70030;
border: none;
}
| heladiofog/ecommerce_ci | css/style.css | CSS | mit | 16,646 |
<?php declare(strict_types=1);
namespace Tests\Tsufeki\HmContainer\Definition;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;
use Tsufeki\HmContainer\Definition\Reference;
/**
* @covers \Tsufeki\HmContainer\Definition\Reference
*/
class ReferenceTest extends TestCase
{
public function test_return_referenced_value()
{
$value = new \stdClass();
$c = $this->createMock(ContainerInterface::class);
$c
->expects($this->once())
->method('get')
->with($this->equalTo('target'))
->willReturn($value);
$referenceDefinition = new Reference('target');
$this->assertSame($value, $referenceDefinition->get($c));
}
}
| tsufeki/hmcontainer | tests/Tsufeki/HmContainer/Definition/ReferenceTest.php | PHP | mit | 734 |
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace PoshGit2.TabCompletion
{
public class TabCompletionTests
{
private readonly ITestOutputHelper _log;
public TabCompletionTests(ITestOutputHelper log)
{
_log = log;
}
[InlineData("gi")]
[InlineData("git")]
[InlineData("git.")]
[InlineData("git.exe")]
[Theory]
public async Task GitCommand(string cmd)
{
var repo = Substitute.For<IRepositoryStatus>();
var completer = new TabCompleter(Task.FromResult(repo));
var result = await completer.CompleteAsync(cmd, CancellationToken.None);
Assert.True(result.IsFailure);
}
[InlineData("git ", new string[] { "clone", "init" })]
[Theory]
public async Task NullStatus(string command, string[] expected)
{
var completer = new TabCompleter(Task.FromResult<IRepositoryStatus>(null));
var fullResult = await completer.CompleteAsync(command, CancellationToken.None);
var result = GetResult(fullResult);
Assert.Equal(result, expected.OrderBy(o => o, StringComparer.Ordinal));
}
[InlineData("git add ", new string[] { })]
[InlineData("git rm ", new string[] { })]
[Theory]
public async Task EmptyStatus(string command, string[] expected)
{
var repo = Substitute.For<IRepositoryStatus>();
var completer = new TabCompleter(Task.FromResult(repo));
var fullResult = await completer.CompleteAsync(command, CancellationToken.None);
var result = GetResult(fullResult);
Assert.Equal(result, expected.OrderBy(o => o, StringComparer.Ordinal));
}
[InlineData("git ", "stash")]
[InlineData("git s", "stash")]
[InlineData("git ", "push")]
[InlineData("git p", "push")]
[InlineData("git ", "pull")]
[InlineData("git p", "pull")]
[InlineData("git ", "bisect")]
[InlineData("git bis", "bisect")]
[InlineData("git ", "branch")]
[InlineData("git br", "branch")]
[InlineData("git ", "add")]
[InlineData("git a", "add")]
[InlineData("git ", "rm")]
[InlineData("git r", "rm")]
[InlineData("git ", "merge")]
[InlineData("git m", "merge")]
[InlineData("git ", "mergetool")]
[InlineData("git m", "mergetool")]
[Theory]
public async Task ResultContains(string command, string expected)
{
var completer = CreateTabCompleter();
var fullResult = await completer.CompleteAsync(command, CancellationToken.None);
var result = GetResult(fullResult);
Assert.Contains(expected, result);
}
// Verify command completion
[InlineData("git ", new[] { "add", "am", "annotate", "archive", "bisect", "blame", "branch", "bundle", "checkout", "cherry", "cherry-pick", "citool", "clean", "clone", "commit", "config", "describe", "diff", "difftool", "fetch", "format-patch", "gc", "grep", "gui", "help", "init", "instaweb", "log", "merge", "mergetool", "mv", "notes", "prune", "pull", "push", "rebase", "reflog", "remote", "rerere", "reset", "revert", "rm", "shortlog", "show", "stash", "status", "submodule", "svn", "tag", "whatchanged" })]
[InlineData("git.exe ", new[] { "add", "am", "annotate", "archive", "bisect", "blame", "branch", "bundle", "checkout", "cherry", "cherry-pick", "citool", "clean", "clone", "commit", "config", "describe", "diff", "difftool", "fetch", "format-patch", "gc", "grep", "gui", "help", "init", "instaweb", "log", "merge", "mergetool", "mv", "notes", "prune", "pull", "push", "rebase", "reflog", "remote", "rerere", "reset", "revert", "rm", "shortlog", "show", "stash", "status", "submodule", "svn", "tag", "whatchanged" })]
// git add
[InlineData("git add ", new[] { "working-duplicate", "working-modified", "working-added", "working-unmerged" })]
[InlineData("git add working-m", new[] { "working-modified" })]
// git rm
[InlineData("git rm ", new[] { "working-deleted", "working-duplicate" })]
[InlineData("git rm working-a", new string[] { })]
[InlineData("git rm working-d", new string[] { "working-deleted", "working-duplicate" })]
// git bisect
[InlineData("git bisect ", new[] { "start", "bad", "good", "skip", "reset", "visualize", "replay", "log", "run" })]
[InlineData("git bisect s", new[] { "start", "skip" })]
[InlineData("git bisect bad ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git bisect good ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git bisect reset ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git bisect skip ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git bisect bad f", new string[] { "feature1", "feature2" })]
[InlineData("git bisect good f", new string[] { "feature1", "feature2" })]
[InlineData("git bisect reset f", new string[] { "feature1", "feature2" })]
[InlineData("git bisect skip f", new string[] { "feature1", "feature2" })]
[InlineData("git bisect bad g", new string[] { })]
[InlineData("git bisect good g", new string[] { })]
[InlineData("git bisect reset g", new string[] { })]
[InlineData("git bisect skip g", new string[] { })]
[InlineData("git bisect skip H", new string[] { "HEAD" })]
// git notes
[InlineData("git notes ", new[] { "edit", "show" })]
[InlineData("git notes e", new[] { "edit" })]
// git reflog
[InlineData("git reflog ", new[] { "expire", "delete", "show" })]
[InlineData("git reflog e", new[] { "expire" })]
// git branch
[InlineData("git branch -d ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git branch -D ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git branch -m ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git branch -M ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git branch -d f", new string[] { "feature1", "feature2" })]
[InlineData("git branch -D f", new string[] { "feature1", "feature2" })]
[InlineData("git branch -m f", new string[] { "feature1", "feature2" })]
[InlineData("git branch -M f", new string[] { "feature1", "feature2" })]
[InlineData("git branch -d g", new string[] { })]
[InlineData("git branch -D g", new string[] { })]
[InlineData("git branch -m g", new string[] { })]
[InlineData("git branch -M g", new string[] { })]
[InlineData("git branch newBranch ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git branch newBranch f", new string[] { "feature1", "feature2" })]
[InlineData("git branch newBranch g", new string[] { })]
// git push
[InlineData("git push ", new string[] { "origin", "other" })]
[InlineData("git push oth", new string[] { "other" })]
[InlineData("git push origin ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git push origin fe", new string[] { "feature1", "feature2" })]
[InlineData("git push origin :", new string[] { ":remotefeature", ":cutfeature" })]
[InlineData("git push origin :re", new string[] { ":remotefeature" })]
// git pull
[InlineData("git pull ", new string[] { "origin", "other" })]
[InlineData("git pull oth", new string[] { "other" })]
[InlineData("git pull origin ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git pull origin fe", new string[] { "feature1", "feature2" })]
// git fetch
[InlineData("git fetch ", new string[] { "origin", "other" })]
[InlineData("git fetch oth", new string[] { "other" })]
// git submodule
[InlineData("git submodule ", new string[] { "add", "status", "init", "update", "summary", "foreach", "sync" })]
[InlineData("git submodule s", new string[] { "status", "summary", "sync" })]
// git svn
[InlineData("git svn ", new string[] { "init", "fetch", "clone", "rebase", "dcommit", "branch", "tag", "log", "blame", "find-rev", "set-tree", "create-ignore", "show-ignore", "mkdirs", "commit-diff", "info", "proplist", "propget", "show-externals", "gc", "reset" })]
[InlineData("git svn f", new string[] { "fetch", "find-rev" })]
// git stash
[InlineData("git stash ", new string[] { "list", "save", "show", "drop", "pop", "apply", "branch", "clear", "create" })]
[InlineData("git stash s", new string[] { "save", "show" })]
[InlineData("git stash show ", new string[] { "stash", "wip" })]
[InlineData("git stash show w", new string[] { "wip" })]
[InlineData("git stash show d", new string[] { })]
[InlineData("git stash apply ", new string[] { "stash", "wip" })]
[InlineData("git stash apply w", new string[] { "wip" })]
[InlineData("git stash apply d", new string[] { })]
[InlineData("git stash drop ", new string[] { "stash", "wip" })]
[InlineData("git stash drop w", new string[] { "wip" })]
[InlineData("git stash drop d", new string[] { })]
[InlineData("git stash pop ", new string[] { "stash", "wip" })]
[InlineData("git stash pop w", new string[] { "wip" })]
[InlineData("git stash pop d", new string[] { })]
[InlineData("git stash branch ", new string[] { "stash", "wip" })]
[InlineData("git stash branch w", new string[] { "wip" })]
[InlineData("git stash branch d", new string[] { })]
// Tests for commit
[InlineData("git commit -C ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git commit -C O", new string[] { "ORIG_HEAD" })]
[InlineData("git commit -C o", new string[] { "origin/cutfeature", "origin/remotefeature" })]
// git remote
[InlineData("git remote ", new[] { "add", "rename", "rm", "set-head", "show", "prune", "update" })]
[InlineData("git remote r", new[] { "rename", "rm" })]
[InlineData("git remote rename ", new string[] { "origin", "other" })]
[InlineData("git remote rename or", new string[] { "origin" })]
[InlineData("git remote rm ", new string[] { "origin", "other" })]
[InlineData("git remote rm or", new string[] { "origin" })]
[InlineData("git remote set-head ", new string[] { "origin", "other" })]
[InlineData("git remote set-head or", new string[] { "origin" })]
[InlineData("git remote set-branches ", new string[] { "origin", "other" })]
[InlineData("git remote set-branches or", new string[] { "origin" })]
[InlineData("git remote set-url ", new string[] { "origin", "other" })]
[InlineData("git remote set-url or", new string[] { "origin" })]
[InlineData("git remote show ", new string[] { "origin", "other" })]
[InlineData("git remote show or", new string[] { "origin", })]
[InlineData("git remote prune ", new string[] { "origin", "other" })]
[InlineData("git remote prune or", new string[] { "origin" })]
// git help <cmd>
[InlineData("git help ", new[] { "add", "am", "annotate", "archive", "bisect", "blame", "branch", "bundle", "checkout", "cherry", "cherry-pick", "citool", "clean", "clone", "commit", "config", "describe", "diff", "difftool", "fetch", "format-patch", "gc", "grep", "gui", "help", "init", "instaweb", "log", "merge", "mergetool", "mv", "notes", "prune", "pull", "push", "rebase", "reflog", "remote", "rerere", "reset", "revert", "rm", "shortlog", "show", "stash", "status", "submodule", "svn", "tag", "whatchanged" })]
[InlineData("git help ch", new[] { "checkout", "cherry", "cherry-pick" })]
// git checkout -- <files>
[InlineData("git checkout -- ", new[] { "working-deleted", "working-duplicate", "working-modified", "working-unmerged" })]
[InlineData("git checkout -- working-d", new[] { "working-deleted", "working-duplicate" })]
// git merge|mergetool <files>
// TODO: Enable for merge state
//[InlineData("git merge ", new[] { "working-unmerged", "working-duplicate" })]
//[InlineData("git merge working-u", new[] { "working-unmerged" })]
//[InlineData("git merge j", new string[] { })]
//[InlineData("git mergetool ", new[] { "working-unmerged", "working-duplicate" })]
//[InlineData("git mergetool working-u", new[] { "working-unmerged" })]
//[InlineData("git mergetool j", new string[] { })]
// git checkout <branch>
[InlineData("git checkout ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git cherry-pick <branch>
[InlineData("git cherry ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git cherry-pick <branch>
[InlineData("git cherry-pick ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git diff <branch>
[InlineData("git diff ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git diff --cached ", new[] { "working-modified", "working-duplicate", "working-unmerged", "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git diff --staged ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git difftool <branch>
[InlineData("git difftool ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git difftool --cached ", new[] { "working-modified", "working-duplicate", "working-unmerged", "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git difftool --staged ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git log <branch>
[InlineData("git log ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git merge <branch>
[InlineData("git merge ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git rebase <branch>
[InlineData("git rebase ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git reflog <branch>
[InlineData("git reflog show ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git reset <branch>
[InlineData("git reset ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git reset HEAD <file>
[InlineData("git reset HEAD ", new[] { "index-added", "index-deleted", "index-modified", "index-unmerged" })]
[InlineData("git reset HEAD index-a", new[] { "index-added" })]
// git revert <branch>
[InlineData("git revert ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git show<branch>
[InlineData("git show ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[Theory]
public async Task CheckCompletion(string cmd, string[] expected)
{
var completer = CreateTabCompleter();
await CompareAsync(completer, cmd, expected.OrderBy(o => o, StringComparer.Ordinal));
}
// git add
[InlineData("git add ", new[] { "working duplicate", "working modified", "working added", "working unmerged" })]
[InlineData("git add \"working m", new[] { "working modified" })]
[InlineData("git add \'working m", new[] { "working modified" })]
// git rm
[InlineData("git rm ", new[] { "working deleted", "working duplicate" })]
[InlineData("git rm \"working d", new string[] { "working deleted", "working duplicate" })]
[InlineData("git rm \'working d", new string[] { "working deleted", "working duplicate" })]
// git checkout -- <files>
[InlineData("git checkout -- ", new[] { "working deleted", "working duplicate", "working modified", "working unmerged" })]
[InlineData("git checkout -- \"wor", new[] { "working deleted", "working duplicate", "working modified", "working unmerged" })]
[InlineData("git checkout -- \"working d", new[] { "working deleted", "working duplicate" })]
[InlineData("git checkout -- \'working d", new[] { "working deleted", "working duplicate" })]
// git merge|mergetool <files>
// TODO: Enable for merge state
//[InlineData("git merge ", new[] { "working unmerged", "working duplicate" })]
//[InlineData("git merge working u", new[] { "working unmerged" })]
//[InlineData("git merge j", new string[] { })]
//[InlineData("git mergetool ", new[] { "working unmerged", "working duplicate" })]
//[InlineData("git mergetool working u", new[] { "working unmerged" })]
//[InlineData("git mergetool j", new string[] { })]
// git diff <branch>
[InlineData("git diff ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git diff --cached ", new[] { "working modified", "working duplicate", "working unmerged", "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git diff --staged ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git difftool <branch>
[InlineData("git difftool ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git difftool --cached ", new[] { "working modified", "working duplicate", "working unmerged", "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
[InlineData("git difftool --staged ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })]
// git reset HEAD <file>
[InlineData("git reset HEAD ", new[] { "index added", "index deleted", "index modified", "index unmerged" })]
[InlineData("git reset HEAD \"index a", new[] { "index added" })]
[InlineData("git reset HEAD \'index a", new[] { "index added" })]
[Theory]
public async Task CheckCompletionWithQuotations(string cmd, string[] initialExpected)
{
const string quot = "\"";
var completer = CreateTabCompleter(" ");
var expected = initialExpected
.OrderBy(o => o, StringComparer.Ordinal)
.Select(o => o.Contains(" ") ? $"{quot}{o}{quot}" : o);
await CompareAsync(completer, cmd, expected);
}
private async Task CompareAsync(ITabCompleter completer, string cmd, IEnumerable<string> expected)
{
var fullResult = await completer.CompleteAsync(cmd, CancellationToken.None);
var result = GetResult(fullResult);
_log.WriteLine("Expected output:");
_log.WriteLine(string.Join(Environment.NewLine, expected));
_log.WriteLine(string.Empty);
_log.WriteLine("Actual output:");
_log.WriteLine(string.Join(Environment.NewLine, result));
Assert.Equal(expected, result);
}
private static ITabCompleter CreateTabCompleter(string join = "-")
{
var status = Substitute.For<IRepositoryStatus>();
var working = new ChangedItemsCollection
{
Added = new[] { $"working{join}added", $"working{join}duplicate" },
Deleted = new[] { $"working{join}deleted", $"working{join}duplicate" },
Modified = new[] { $"working{join}modified", $"working{join}duplicate" },
Unmerged = new[] { $"working{join}unmerged", $"working{join}duplicate" }
};
var index = new ChangedItemsCollection
{
Added = new[] { $"index{join}added" },
Deleted = new[] { $"index{join}deleted" },
Modified = new[] { $"index{join}modified" },
Unmerged = new[] { $"index{join}unmerged" }
};
status.Index.Returns(index);
status.Working.Returns(working);
status.LocalBranches.Returns(new[] { "master", "feature1", "feature2" });
status.Remotes.Returns(new[] { "origin", "other" });
status.RemoteBranches.Returns(new[] { "origin/remotefeature", "origin/cutfeature" });
status.Stashes.Returns(new[] { "stash", "wip" });
return new TabCompleter(Task.FromResult(status));
}
private IEnumerable<string> GetResult(TabCompletionResult fullResult)
{
Assert.True(fullResult.IsSuccess);
return (fullResult as TabCompletionResult.Success).Item;
}
}
}
| twsouthwick/poshgit2 | test/PoshGit2.TabCompletion.Tests/TabCompletionTests.cs | C# | mit | 24,041 |
package org.fayalite.sjs
import org.fayalite.sjs.canvas.CanvasBootstrap
import org.scalajs.dom
import org.scalajs.dom.Node
import org.scalajs.dom.raw.CanvasRenderingContext2D
import org.scalajs.dom.raw.HTMLCanvasElement
import rx.core.{Rx, Var}
/**
* Created by aa on 3/17/2016.
*/
object Schema extends SJSHelp {
// {
import upickle._
// json.read // json.write
// }
case class A(b: String)
case class ParseRequest (
code: String,
cookies: String,
requestId: String
)
val defaultFont = "12pt monospace"
/**
* This is used because the canvas
* engine requires setting flags in advance of draw
* calls, these are the typical modified GUI
* declarations required most commonly, feel
* free to add on additional specifications
* @param font: A string as expected in CSS
* @param fillStyle : Hex prefixed color code
* @param globalAlpha : Zero to one float value
* as in png for draw call
*/
case class CanvasStyling(
font: String = defaultFont,
fillStyle: String = lightBlue,
globalAlpha: Double = 1D
)
trait DeleteAble {
val node: Node
def delete(): Unit = {
node.parentNode.removeChild(node)
}
}
case class CanvasContextInfo(
canvas: HTMLCanvasElement,
context: CanvasRenderingContext2D,
tileSize: Int = CanvasBootstrap.minSize,
text: Option[String] = None
) extends DeleteAble {
val node = canvas
var location = LatCoord(0, 0)
var isMoving = false
}
case class LatCoord(x: Int, y: Int)(implicit squareTileSize : Int =
CanvasBootstrap.minSize) {
def *(o: Int) = {
this.copy(x*o, y*o)
}
def up0 = this.copy(y=0)
def left0 = this.copy(x=0)
def right = this.copy(x=x+1*squareTileSize)
def right(n: Int) = this.copy(x=x+n*squareTileSize)
def left = this.copy(x=x-1)
def up = this.copy(y=y-1*squareTileSize)
def down = this.copy(y=y+1*squareTileSize)
def down(n: Int) = this.copy(y=y+n*squareTileSize)
def *(o: LatCoordD) = { // elementwise
o.copy(x*o.x, y*o.y)
}
def +(o: LatCoord) = this.copy(o.x+x, o.y+y)
def str = s"x:$x,y:$y"
def toAbsolute = {
LatCoord(x*squareTileSize, y*squareTileSize)
}
def fromAbsolute = {
LatCoord(x/squareTileSize, y/squareTileSize)
}
}
case class LatCoordD(x: Double, y: Double) {
def +(other: LatCoordD) = {
this.copy(other.x+x, other.y+y)
}
def +(otheri: Int) = {
val other = LatCoord(otheri, otheri)
this.copy(other.x+x, other.y+y)
}
def -(o: LatCoordD) = {
this.copy(x-o.x, y-o.y)
}
def -(o: LatCoord) = this.copy(x-o.x, y-o.y)
def -(oi: Int) = {
this.copy(x-oi, y-oi)
}
/* def fillRect(dxDy: LatCoordD) = {
LatCoord2D(this, dxDy).fillRect()
}*/
def str = s"x:$x,y:$y"
}
/*
case class ChiralCell(
side: Either[LatCoord, LatCoord]
) {
val offset = side match {
case Left(lc) => lc
case Right(lc) => lc.copy(x=lc.x+1)
}
}
*/
implicit def d2tolc(d2: (Double, Double)) : LatCoordD = {
LatCoordD(d2._1, d2._2)
}
implicit def i2tolc(d2: (Int, Int)) : LatCoordD = {
LatCoordD(d2._1, d2._2)
}
implicit def i2t2olc(d2: (Int, Int)) : LatCoord = {
LatCoord(d2._1, d2._2)
}
/*
// This kills rx.ops._ import carefully. Or make a nested class.
implicit class RxOps[T](rxx: Rx[T]) {
def reset(f: => T) = {
rxx.parents.map{q => Try{q.asInstanceOf[Var[T]]() = f}}
}
}
*/
def xy(x: Double = 0D, y: Double = 0D): LatCoordD = LatCoordD(x,y)
def xyi(x: Int = 0, y: Int = 0): LatCoord = LatCoord(x,y)
def vl(x: Int = 0, y: Int = 0) = Var(xyi(x,y))
//def vl(x: Int = 0) = Var(xyi(x,x))
implicit class RxOpsExt[T](t: T) {
def v = Var(t)
def rx = Rx{t}
}
def lc0 = LatCoord(0, 0)
def lcd0 = LatCoordD(0D, 0D)
def l0 = Var{LatCoord(0, 0)}
def ld0 = Var{LatCoordD(0D, 0D)}
def l20 = Var{LatCoord2(LatCoord(0, 0),LatCoord(0, 0))}
def ld20 = Var{LatCoord2D(lcd0, lcd0)}
type LC = LatCoord
type LCD = LatCoordD
type LC2 = LatCoord2
type LC2D = LatCoord2D
type VL = Var[LatCoord]
type VLD = Var[LatCoordD]
type VL2 = Var[LatCoord2]
type VL2D = Var[LatCoord2D]
case class LatCoord2(xy: LatCoord, xy2: LatCoord) {
def str = xy.str + "|" + xy2.str
}
case class LatCoord2D(xy: LatCoordD, xy2: LatCoordD) {
def str = xy.str + "|" + xy2.str
def x = xy.x
def y = xy.y
def dx = xy2.x
def dy = xy2.y
def plus1(other: LCD) = {
this.copy(xy = other.+(this.xy))
}
}
case class XYI(x: Var[Int], y: Var[Int]) {
def plus(other: XYI) = {
this.copy(
x=Var(x() + other.x()), y=Var(y() + other.y())
)
}
}
}
| ryleg/fayalite | src/main/scala/org/fayalite/sjs/Schema.scala | Scala | mit | 5,152 |
var Purest = require('purest');
function Facebook(opts) {
this._opts = opts || {};
this._opts.provider = 'facebook';
this._purest = new Purest(this._opts);
this._group = 'LIB:SOCIAL:FACEBOOK';
return this;
}
Facebook.prototype.user = function (cb) {
var self = this;
this._purest.query()
.get('me')
.auth(this._opts.auth.token)
.request(function (err, res, body) {
if (err) {
console.log(err);
return cb(err);
}
cb(null, body);
});
};
Facebook.prototype.post = function (endpoint, form, cb) {
// form = {message: 'post message'}
this._purest.query()
.post(endpoint || 'me/feed')
.auth(this._opts.auth.token)
.form(form)
.request(function (err, res, body) {
if (err) {
console.log(err);
return cb(err);
}
cb(null, body);
});
};
module.exports = function(app) {
return Facebook;
};
| selcukfatihsevinc/app.io | lib/social/facebook.js | JavaScript | mit | 1,038 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title>Note Detail</title>
<script
src="http://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous">
</script>
<!-- Kein Javascsript -->
<noscript><a href=NoJavaScript.html>Kein Java Script</a></noscript>
<!-- lib calendar resources -->
<link rel="stylesheet" type="text/css" href="../lib/tcal/css/tcal.css">
<script src="../lib/tcal/js/tcal.js"></script>
<!-- moment, systemjs wrapped with comment for html-replace-->
<!-- build:vendor -->
<script src="../../node_modules/moment/moment.js"></script>
<script src="../../node_modules/moment-timezone/builds/moment-timezone-with-data.js"></script>
<script src="../../node_modules/systemjs/dist/system.js"></script>
<!-- endbuild -->
<!-- application resources -->
<link rel="stylesheet" type="text/css" href="../css/style.css">
<!-- handlebars lib from cdn-->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js">
</script>
<!-- appbundle.js is created with tsconfig options target es5 module system-->
<script src="../appbundle.js"></script>
<script>
System.import("notedetail/NoteDetail");
</script>
</head>
<body class="site">
<header role="banner">
<h1>Notiz erstellen</h1>
</header>
<div class="note-content">
<main class="note-detail">
<form id="note-form" class="note-form" action="" method="post">
<input id="note-id" class="input" name="id" type="number" hidden="hidden">
<label for="note-id"></label>
<input id="note-createdDate" class="input" name="createdDate" type="text" hidden="hidden">
<label for="note-createdDate"></label>
<input id="note-finishedDate" class="input" name="finishedDate" type="text" hidden="hidden">
<label for="note-finishedDate"></label>
<div class="item col1"><h4>Title</h4></div>
<div class="item col2">
<input id="note-title" class="input" name="title" type="text" required autofocus>
<label for="note-title"></label>
</div>
<div class="item col1"><h4>Beschreibung</h4></div>
<div class="item col2">
<textarea id="note-description" class="description" name="beschreibung" cols="50" rows="5" required placeholder="Beschreiben Sie hier Ihre Notiz..."></textarea>
<label for="note-description"></label>
</div>
<div class="item col1"><h4>Wichtigkeit</h4></div>
<div class="item col2">
<div class="rate">
<input type="radio" id="star5" name="rate" value="5" />
<label for="star5" title="Sehr wichtig und dringend"></label>
<input type="radio" id="star4" name="rate" value="4" />
<label for="star4" title="Sehr wichtig"></label>
<input type="radio" id="star3" name="rate" value="3" />
<label for="star3" title="wichtig"></label>
<input type="radio" id="star2" name="rate" value="2" checked="checked"/>
<label for="star2" title="Wenig wichtig"></label>
<input type="radio" id="star1" name="rate" value="1" />
<label for="star1" title="Nicht wichtig"></label>
</div>
</div>
<div class="item col1"><h4>Erledigt bis:</h4></div>
<div class="item col2">
<input id="note-dueDate" type="text" name="dueDate" class="tcal duedate" required
placeholder="DD/MM/YYYY" pattern="(0[1-9]|1[0-9]|2[0-9]|3[01])/(0[1-9]|1[012])/[0-9]{4}">
<label for="note-dueDate"></label>
</div>
<div class="item col1"></div>
<div class="item col2">
<div class="buttons">
<button id="btnBack" type="button">Zurück</button>
<button id="btnNoteReset" type="button">Reset</button>
<button id="btnNoteSave" type="submit" form="note-form">Speichern</button>
</div>
</div>
</form>
<div id="log" class="item col1 log"></div>
</main>
</div>
<footer>
<div class="item footer">CAS Frontend Engineering 2016<br>Authoren: Marc Labud, Michel Rimbeaux</div>
<div class="item col2">
<div class="footer-right">
<label for="ddlb_stylesheetSelect">Design auswählen: </label>
<select id="ddlb_stylesheetSelect">
<option value="StyleOne">DarkTheme</option>
<option value="StyleTwo" selected>BlueTheme</option>
</select>
<br>Projekt-Sourcen:  <a class="git" href="https://github.com/marclabud/cas_fee_projectone">github</a>
</div>
</div>
</footer>
</body>
</html> | marclabud/cas_fee_projectone | src/notedetail/noteDetail.html | HTML | mit | 5,137 |
<?php
namespace Lollipop;
defined('LOLLIPOP_BASE') or die('Lollipop wasn\'t loaded correctly.');
/**
* Benchmark Class
*
* @author John Aldrich Bernardo
* @email [email protected]
* @package Lollipop
* @description Class for recording benchmarks
*/
class Benchmark
{
/**
* @var array $_marks Recorded microtimes
*
*/
static private $_marks = [];
/**
* Record benchmark
*
* @param string $mark Key name
*
*/
static public function mark($mark) {
self::$_marks[$mark] = [
'time' => microtime(true),
'memory_usage' => memory_get_peak_usage(true)
];
}
/**
* Get detailed benchmark
*
* @access public
* @param string $start Start mark
* @param string $end End mark
* @return array
*
*/
static public function elapsed($start, $end) {
return [
'time_elapsed' => self::elapsedTime($start, $end),
'memory_usage_gap' => self::elapsedMemory($start, $end),
'real_memory_usage' => self::elapsedMemory($start, $end, true)
];
}
/**
* Get elapsed memory between two marks
*
* @access public
* @param string $start Start mark
* @param string $end End mark
* @param bool $real_usage Get real memory usage
* @param bool $inMB Show output in MB instead of Bytes
* @return mixed <string> if $inMB is <true>, <longint> if on <false>
*
*/
static public function elapsedMemory($start, $end, $real_usage = false, $inMB = true) {
$start = isset(self::$_marks[$start]) ? self::$_marks[$start]['memory_usage'] : 0;
$end = isset(self::$_marks[$end]) ? self::$_marks[$end]['memory_usage'] : 0;
$elapsed = !$real_usage ? ($end - $start) : $end;
return $start ? ($inMB ? (($elapsed / 1024 / 1024) . ' MB') : $elapsed) : null;
}
/**
* Compute the elapsed time of two marks
*
* @param string $start Keyname 1
* @param string $end Keyname 2
*
* @return mixed
*
*/
static public function elapsedTime($start, $end) {
$start = isset(self::$_marks[$start]) ? self::$_marks[$start]['time'] : 0;
$end = isset(self::$_marks[$end]) ? self::$_marks[$end]['time'] : 0;
return $start ? round($end - $start, 10) : null;
}
}
| jabernardo/lollipop-php | Library/Benchmark.php | PHP | mit | 2,593 |
#include <windows.h>
#include "NativeCore.hpp"
bool RC_CallConv IsProcessValid(RC_Pointer handle)
{
if (handle == nullptr)
{
return false;
}
const auto retn = WaitForSingleObject(handle, 0);
if (retn == WAIT_FAILED)
{
return false;
}
return retn == WAIT_TIMEOUT;
}
| KN4CK3R/ReClass.NET | NativeCore/Windows/IsProcessValid.cpp | C++ | mit | 281 |
#!/usr/bin/env bash
# build datatheme resources
# usage: $ bash ./publi.sh
# build & deploys datatheme resources to host s3 bucket
# usage: $ bash ./publi.sh put dev.afgo.pgyi
# dependencies:
# aws cli : http://aws.amazon.com/cli/
# nodejs : https://nodejs.org/
# bawlk : https://github.com/tesera/bawlk
datatheme_root=s3://tesera.data.themes
datatheme_path="$datatheme_root/$2"
cp_flags="--acl public-read --cache-control no-cahe"
if [ "$CI_BRANCH" != 'master' ]; then DATATHEME_NAME="$CI_BRANCH.$DATATHEME_NAME"; fi;
echo "processing $CI_BRANCH"
echo "building datapackage.json for datatheme $DATATHEME_NAME"
mkdir -p ./www
node ./build.js $DATATHEME_NAME > ./www/datapackage.json
mkdir ./www/awk ./www/rules
echo "compiling bawlk rules from datapackage.json"
bawlk rules -d ./www/datapackage.json -o ./www/rules
echo "compiling bawlk scripts from datapackage.json"
bawlk scripts -d ./www/datapackage.json -o ./www/awk
if [ "$1" == "put" ]; then
echo "publishing datatheme resources to s3"
aws s3 cp ./www/partials/ $datatheme_path/partials --recursive --content-type text/html $cp_flags
aws s3 cp ./www/index.html $datatheme_path/index.html --content-type text/html $cp_flags
aws s3 cp ./www/datapackage.json $datatheme_path/datapackage.json --content-type application/json $cp_flags
aws s3 cp ./www/awk/ $datatheme_path/awk --recursive --content-type text/plain $cp_flags
aws s3 cp ./www/rules/ $datatheme_path/rules --recursive --content-type text/plain $cp_flags
echo "publishing complete"
fi
echo "done"
| pulsifer/datatheme-mackenzie-pmd | publi.sh | Shell | mit | 1,549 |
#ifndef SKULL_SERVICE_TYPES_H
#define SKULL_SERVICE_TYPES_H
#include "api/sk_txn.h"
#include "api/sk_service.h"
struct _skull_service_t {
sk_service_t* service;
const sk_txn_t* txn;
sk_txn_taskdata_t* task;
// If freezed == 1, user cannot use set/get apis to touch data. Instead
// user should create a new service job for that purpose
int freezed;
int _reserved;
};
#endif
| finaldie/skull | src/user-c/src/srv_types.h | C | mit | 447 |
# read only
In leveldb you may only open an instance in one process...
but you could have other processes open the database in read only mode
easily enough. You could also have each instance create it's own memtable,
(and tail other's memtables... as long as there weren't too many)
then you could have eventual consistency between instances.
Youd need to have timestamps in the memtable, though, + check each memtable
for a key ... which means it would scale the number of processes badly,
but it might be okay for one or two...
# bulk load optimization
when creating a memtable, you could detect whether all the writes are appends.
Then, you could turn that table into a SST. If the file exceeds a given size,
and there has only been appends, treat it like an SST... And even, if you get a non append
write later, just start a new table.
this would mean you could do a bulk load without any compaction. It could basically be the time
to append to a file.
| dominictarr/goatdb | ideas.md | Markdown | mit | 962 |
#ifndef BITCOINGUI_H
#define BITCOINGUI_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include <QLabel>
#include <QMap>
#include "util.h"
class TransactionTableModel;
class WalletView;
class ClientModel;
class WalletModel;
class WalletStack;
class TransactionView;
class OverviewPage;
class AddressBookPage;
class SendCoinsDialog;
class SignVerifyMessageDialog;
class Notificator;
class RPCConsole;
class StakeForCharityDialog;
class CWallet;
class CWalletManager;
class MessageModel;
QT_BEGIN_NAMESPACE
class QLabel;
class QModelIndex;
class QProgressBar;
class QStackedWidget;
class QListWidget;
class QPushButton;
QT_END_NAMESPACE
class ActiveLabel : public QLabel
{
Q_OBJECT
public:
ActiveLabel(const QString & text = "", QWidget * parent = 0);
~ActiveLabel(){}
signals:
void clicked();
protected:
void mouseReleaseEvent (QMouseEvent * event) ;
};
/**
Bitcoin GUI main class. This class represents the main window of the Bitcoin UI. It communicates with both the client and
wallet models to give the user an up-to-date view of the current core state.
*/
class BitcoinGUI : public QMainWindow
{
Q_OBJECT
public:
explicit BitcoinGUI(QWidget *parent = 0);
~BitcoinGUI();
int nHeight;
/** Set the client model.
The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic.
*/
void setClientModel(ClientModel *clientModel);
/** Set the wallet model.
The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending
functionality.
*/
void setWalletManager(CWalletManager *walletManager) { this->walletManager = walletManager; }
bool addWallet(const QString& name, WalletModel *walletModel, MessageModel *messageModel);
QString getCurrentWallet();
bool setCurrentWallet(const QString& name);
QAction *exportAction;
/// Get window identifier of QMainWindow (BitcoinGUI)
WId getMainWinId() const;
Notificator* getNotificator();
protected:
void changeEvent(QEvent *e);
void closeEvent(QCloseEvent *event);
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent *event);
bool eventFilter(QObject *object, QEvent *event);
private:
ClientModel *clientModel;
CWalletManager *walletManager;
StakeForCharityDialog *stakeForCharityDialog;
QMap<QString, WalletModel*> mapWalletModels;
QListWidget *walletList;
WalletStack *walletStack;
WalletView *walletView;
QPushButton *loadWalletButton;
QPushButton *unloadWalletButton;
QPushButton *newWalletButton;
QLabel *labelEncryptionIcon;
QLabel *labelStakingIcon;
QLabel *labelConnectionsIcon;
QLabel *labelBlocksIcon;
QLabel *progressBarLabel;
QLabel *mainIcon;
QToolBar *mainToolbar;
QToolBar *secondaryToolbar;
QProgressBar *progressBar;
QMenuBar *appMenuBar;
QAction *overviewAction;
QAction *historyAction;
QAction *quitAction;
QAction *sendCoinsAction;
QAction *addressBookAction;
QAction *shoppingAction;
QAction *messageAction;
QAction *signMessageAction;
QAction *verifyMessageAction;
QAction *aboutAction;
QAction *charityAction;
QAction *receiveCoinsAction;
QAction *optionsAction;
QAction *toggleHideAction;
QAction *encryptWalletAction;
QAction *unlockWalletAction;
QAction *lockWalletAction;
QAction *checkWalletAction;
QAction *repairWalletAction;
QAction *backupWalletAction;
QAction *backupAllWalletsAction;
QAction *dumpWalletAction;
QAction *importWalletAction;
QAction *changePassphraseAction;
QAction *aboutQtAction;
QAction *openRPCConsoleAction;
QAction *openTrafficAction;
QAction *loadWalletAction;
QAction *unloadWalletAction;
QAction *newWalletAction;
QAction *blockAction;
QAction *blocksIconAction;
QAction *connectionIconAction;
QAction *stakingIconAction;
QSystemTrayIcon *trayIcon;
TransactionView *transactionView;
RPCConsole *rpcConsole;
Notificator *notificator;
QMovie *syncIconMovie;
/** Keep track of previous number of blocks, to detect progress */
int prevBlocks;
uint64_t nWeight;
/** Create the main UI actions. */
void createActions();
/** Create the menu bar and sub-menus. */
void createMenuBar();
/** Create the toolbars */
void createToolBars();
/** Create system tray (notification) icon */
void createTrayIcon();
/** Create system tray menu (or setup the dock menu) */
void createTrayIconMenu();
public slots:
/** Switch to overview (home) page */
void gotoOverviewPage();
/** Switch to history (transactions) page */
void gotoHistoryPage(bool fExportOnly=false, bool fExportConnect=true, bool fExportFirstTime=false);
/** Switch to address book page */
void gotoAddressBookPage(bool fExportOnly=false, bool fExportConnect=true, bool fExportFirstTime=false);
/** Switch to receive coins page */
void gotoReceiveCoinsPage(bool fExportOnly=false, bool fExportConnect=true, bool fExportFirstTime=false);
/** Switch to send coins page */
void gotoSendCoinsPage();
/** Switch to shopping page */
void gotoShoppingPage();
/** Switch to message page */
void gotoMessagePage();
/** Switch to block browser page */
void gotoBlockBrowser(QString transactionId = "");
/** Show Sign/Verify Message dialog and switch to sign message tab */
void gotoSignMessageTab(QString addr = "");
/** Show Sign/Verify Message dialog and switch to verify message tab */
void gotoVerifyMessageTab(QString addr = "");
/** Set number of connections shown in the UI */
void setNumConnections(int count);
/** Set number of blocks shown in the UI */
void setNumBlocks(int count, int nTotalBlocks);
/** Set the encryption status as shown in the UI.
@param[in] status current encryption status
@see WalletModel::EncryptionStatus
*/
void setEncryptionStatus(int status);
/** Show information about stakes */
void stakingIconClicked();
/** Show incoming transaction notification for new transactions.
The new items are those between start and end inclusive, under the given parent item.
*/
void incomingTransaction(const QString& date, int unit, qint64 amount, const QString& type, const QString& address);
/** Notify the user of an event from the core network or transaction handling code.
@param[in] title the message box / notification title
@param[in] message the displayed text
@param[in] style modality and style definitions (icon and used buttons - buttons only for message boxes)
@see CClientUIInterface::MessageBoxFlags
@param[in] detail optional detail text
*/
void message(const QString &title, const QString &message, unsigned int style, const QString &detail=QString());
/** Asks the user whether to pay the transaction fee or to cancel the transaction.
It is currently not possible to pass a return value to another thread through
BlockingQueuedConnection, so an indirected pointer is used.
https://bugreports.qt-project.org/browse/QTBUG-10440
@param[in] nFeeRequired the required fee
@param[out] payFee true to pay the fee, false to not pay the fee
*/
void askFee(qint64 nFeeRequired, bool *payFee);
void handleURI(QString strURI);
void mainToolbarOrientation(Qt::Orientation orientation);
void secondaryToolbarOrientation(Qt::Orientation orientation);
void loadWallet();
void unloadWallet();
void newWallet();
private slots:
/** Show configuration dialog */
void optionsClicked();
/** Show about dialog */
void aboutClicked();
/** Show information about network */
void blocksIconClicked();
/** Show Stake For Charity Dialog */
void charityClicked(QString addr = "");
/** Allow user to lock/unlock wallet from click */
void lockIconClicked();
/** Ask for passphrase to unlock wallet during entire session */
void unlockWalletForMint();
#ifndef Q_OS_MAC
/** Handle tray icon clicked */
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
#endif
/** Encrypt the wallet */
void encryptWallet(bool status);
/** Check the wallet */
void checkWallet();
/** Repair the wallet */
void repairWallet();
/** Backup the wallet */
void backupWallet();
void backupAllWallets();
/** Import/Export the wallet's keys */
void dumpWallet();
void importWallet();
/** Change encrypted wallet passphrase */
void changePassphrase();
/** Ask for passphrase to unlock wallet temporarily */
void unlockWallet();
void lockWallet();
/** Give user information about staking */
void updateStakingIcon();
/** Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true */
void showNormalIfMinimized(bool fToggleHidden = false);
/** simply calls showNormalIfMinimized(true) for use in SLOT() macro */
void toggleHidden();
/** Adds or removes wallets to the stack */
void addWallet(const QString& name);
void removeWallet(const QString& name);
};
#endif // BITCOINGUI_H
| Meee32/NET-TEST | src/qt/bitcoingui.h | C | mit | 9,461 |
package dev.jee6demo.jspes;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/EventSourceServlet")
public class EventSourceServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/event-stream");
response.setCharacterEncoding("UTF-8");
PrintWriter pw = response.getWriter();
for (int i = 0; i < 5; i++) {
pw.write("event:new_time\n");
pw.write("data: " + now() + "\n\n");
pw.flush();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
pw.write("event:new_time\n");
pw.write("data: STOP\n\n");
pw.flush();
pw.close();
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request,response);
}
public static String now(){
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS");
return dateFormat.format(new Date());
}
}
| fegalo/jee6-demos | jsp/jsp-eventsource/src/main/java/dev/jee6demo/jspes/EventSourceServlet.java | Java | mit | 1,399 |
<?php
/**
* This file is part of the PrestaCMSThemeBasicBundle
*
* (c) PrestaConcept <www.prestaconcept.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Presta\CMSThemeBasicBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*
* @author Nicolas Bastien <[email protected]>
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('presta_cms_theme_basic');
// 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;
}
}
| prestaconcept/PrestaCMSThemeBasicBundle | DependencyInjection/Configuration.php | PHP | mit | 1,183 |
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace XF_ManySwitches.Droid
{
[Activity(Label = "XF_ManySwitches", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}
| ytabuchi/Study | XF_ManySwitches/XF_ManySwitches/XF_ManySwitches.Droid/MainActivity.cs | C# | mit | 670 |
describe('controllers/home', function () {
var di,
Core,
Home,
Type,
contentModel = {
findOne: function() {
}
},
widgetHooks = [],
widgetHook = {
load: function (a, b, c) {
widgetHooks.push({
name: a,
alias: b,
method: c
});
},
handle: function () {
}
};
beforeEach(function () {
di = require('mvcjs');
di.setAlias('cp', __dirname + '/../../app/controllers/');
Type = di.load('typejs');
Core = di.mock('@{cp}/core', {
'typejs': Type,
'core/controller': {
inherit: function () {
return Type.create.apply(Type, arguments);
}
},
'@{core}/widget-hook': widgetHook
});
Home = di.mock('@{cp}/home', {
'typejs': Type,
'promise': di.load('promise'),
'@{controllersPath}/core': Core,
'@{modelsPath}/content': contentModel
});
});
it('construct', function () {
var api = {};
var controller = new Home(api);
expect(controller.locals.scripts.length).toBe(0);
expect(controller.locals.brand).toBe('MVCJS');
expect(controller.locals.pageTitle).toBe('Mvcjs nodejs framework');
expect(controller.locals.pageDesc).toBe('Mvcjs fast, opinionated lightweight mvc framework for Node.js inspired by Yii framework');
expect(controller.menu.length).toBe(0);
});
it('action_index', function () {
var api = {
locals: {
scripts: []
},
renderFile: function(route, locals) {
return 'RENDERED';
}
};
spyOn(api, 'renderFile').and.callThrough();
di.setAlias('basePath', __dirname + '/../../');
var controller = new Home(api);
var result = controller.action_index.call(api);
expect(api.renderFile).toHaveBeenCalledWith( 'home/index', {
scripts : [ {
src : 'https://buttons.github.io/buttons.js',
id : 'github-bjs',
async : true
} ],
version : '0.1.0-beta-15'
});
expect(result).toBe('RENDERED');
expect(api.locals.scripts.length).toBe(1);
});
it('action_content', function () {
var api = {
locals: {
content: '',
pageTitle: '',
pageDesc: ''
},
renderFile: function(route, locals) {
return 'RENDERED';
}
};
spyOn(api, 'renderFile').and.callThrough();
di.setAlias('basePath', __dirname + '/../../');
var controller = new Home(api);
var result = controller.action_content.call(api, {}, {
text: 'TEXT',
pageTitle: 'TITLE',
pageDesc: 'DESC'
});
expect(api.renderFile).toHaveBeenCalledWith( 'home/content', {
pageTitle: 'TITLE',
pageDesc: 'DESC',
content : 'TEXT'
});
expect(result).toBe('RENDERED');
});
it('before_content', function (done) {
var api = {
getParsedUrl: function(route, locals) {
return {
pathname: '/home/index'
};
}
};
contentModel.findOne = function(data, callback) {
expect(data.url).toBe('/home/index');
callback(null, {
id: 1,
text: 'yes'
});
};
spyOn(api, 'getParsedUrl').and.callThrough();
spyOn(contentModel, 'findOne').and.callThrough();
di.setAlias('basePath', __dirname + '/../../');
var controller = new Home(api);
var result = controller.before_content.call(api);
result.then(function(data) {
expect(api.getParsedUrl).toHaveBeenCalled();
expect(contentModel.findOne).toHaveBeenCalled();
expect(data.id).toBe(1);
expect(data.text).toBe('yes');
done();
});
});
it('before_content error', function (done) {
var api = {
getParsedUrl: function(route, locals) {
return {
pathname: '/home/index'
};
}
};
contentModel.findOne = function(data, callback) {
expect(data.url).toBe('/home/index');
callback(true, {
id: 1,
text: 'yes'
});
};
spyOn(api, 'getParsedUrl').and.callThrough();
spyOn(contentModel, 'findOne').and.callThrough();
di.setAlias('basePath', __dirname + '/../../');
var controller = new Home(api);
var result = controller.before_content.call(api);
result.then(null, function(error) {
console.log('error', error);
done();
});
});
it('beforeEach', function () {
var api = {};
widgetHook.handle = function(hooks) {
expect(hooks.indexOf('menu-hook')).toBe(0);
return hooks.shift();
};
var controller = new Home(api);
expect(controller.beforeEach()).toBe('menu-hook');
expect(controller.locals.scripts.length).toBe(1);
});
it('action_error', function () {
var api = {
locals: {},
setStatusCode: function(code) {
expect(code).toBe(500);
},
renderFile: function(name, locals) {
expect(name).toBe('home/error');
expect(locals.pageTitle).toBe('Error - mvcjs nodejs framework');
expect(locals.text).toBe('ERROR');
return 'RENDER';
}
};
spyOn(api, 'setStatusCode').and.callThrough();
spyOn(api, 'renderFile').and.callThrough();
var controller = new Home({});
var response = controller.action_error.call(api, {
code: 500,
toString: function() {
return "ERROR";
}
});
expect(api.setStatusCode).toHaveBeenCalled();
expect(api.renderFile).toHaveBeenCalled();
expect(response).toBe('RENDER');
});
}); | Siljanovski/gapi | tests/controllers/home-unit-spec.js | JavaScript | mit | 6,456 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
2dfb379f-a496-4451-a136-896faf7668f2
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#FlitBit.IoC">FlitBit.IoC</a></strong></td>
<td class="text-center">94.84 %</td>
<td class="text-center">92.08 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">92.08 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
<a name="FlitBit.IoC"><h3>FlitBit.IoC</h3></a>
<table>
<tbody>
<tr>
<th>Target type</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
<th>Recommended changes</th>
</tr>
<tr>
<td>System.ApplicationException</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use other exception types.</td>
</tr>
<tr>
<td style="padding-left:2em">#ctor</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use other exception types.</td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use other exception types.</td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.String)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use other exception types.</td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.String,System.Exception)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use other exception types.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Delegate</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use System.Reflection.RuntimeReflectionExtensions.GetMethodInfo</td>
</tr>
<tr>
<td style="padding-left:2em">get_Method</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use System.Reflection.RuntimeReflectionExtensions.GetMethodInfo</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Exception</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage.</td>
</tr>
<tr>
<td style="padding-left:2em">add_SerializeObjectState(System.EventHandler{System.Runtime.Serialization.SafeSerializationEventArgs})</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.ICloneable</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage. Implement cloning operation yourself if needed.</td>
</tr>
<tr>
<td style="padding-left:2em">Clone</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage. Implement cloning operation yourself if needed.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Binder</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use an overload that does not take a Binder.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.BindingFlags</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.ILGenerator</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">DeclareLocal(System.Type)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">DefineLabel</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">MarkLabel(System.Reflection.Emit.Label)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">ThrowException(System.Type)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.Label</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.LocalBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Emit.ModuleBuilder</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.MemberInfo</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">IsDefined(System.Type,System.Boolean)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.Module</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetType(System.String,System.Boolean,System.Boolean)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.ParameterModifier</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use an overload that does not take a ParameterModifier array.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.PropertyInfo</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use PropertyInfo.SetMethod property</td>
</tr>
<tr>
<td style="padding-left:2em">GetGetMethod</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use PropertyInfo.GetMethod property</td>
</tr>
<tr>
<td style="padding-left:2em">GetSetMethod</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use PropertyInfo.SetMethod property</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Reflection.TypeFilter</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.ConstrainedExecution.Cer</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.ConstrainedExecution.Consistency</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.ConstrainedExecution.ReliabilityContractAttribute</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage</td>
</tr>
<tr>
<td style="padding-left:2em">#ctor(System.Runtime.ConstrainedExecution.Consistency,System.Runtime.ConstrainedExecution.Cer)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove usage</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.Remoting.Messaging.CallContext</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Consider using System.Threading.AsyncLocal<T></td>
</tr>
<tr>
<td style="padding-left:2em">LogicalGetData(System.String)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">LogicalSetData(System.String,System.Object)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.Serialization.ISafeSerializationData</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.</td>
</tr>
<tr>
<td style="padding-left:2em">CompleteDeserialization(System.Object)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.Serialization.SafeSerializationEventArgs</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.</td>
</tr>
<tr>
<td style="padding-left:2em">AddSerializedState(System.Runtime.Serialization.ISafeSerializationData)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>either 1) Delete Serialization info from exceptions (since this can't be remoted) or 2) Use a different serialization technology if not for exceptions.</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Runtime.Serialization.SerializationInfo</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Remove serialization constructors on custom Exception types</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Threading.Thread</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use System.Threading.Interlocked.MemoryBarrier instead</td>
</tr>
<tr>
<td style="padding-left:2em">MemoryBarrier</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use System.Threading.Interlocked.MemoryBarrier instead</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>System.Type</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td>
</tr>
<tr>
<td style="padding-left:2em">EmptyTypes</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>new Type[0] (or create your own static property which returns a cached version of this)</td>
</tr>
<tr>
<td style="padding-left:2em">FindInterfaces(System.Reflection.TypeFilter,System.Object)</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">get_Assembly</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().Assembly</td>
</tr>
<tr>
<td style="padding-left:2em">get_BaseType</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().BaseType</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsAbstract</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsAbstract</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsClass</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsClass</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsGenericType</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsGenericType</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsGenericTypeDefinition</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsGenericTypeDefinition</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsInterface</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsInterface</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsPrimitive</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsPrimitive</td>
</tr>
<tr>
<td style="padding-left:2em">get_IsValueType</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>.GetTypeInfo().IsValueType</td>
</tr>
<tr>
<td style="padding-left:2em">GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use GetConstructor(Type[]) to search for public constructors by parameter type or filter the results of GetConstructors(BindingFlags) using LINQ for other queries.</td>
</tr>
<tr>
<td style="padding-left:2em">GetConstructor(System.Type[])</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetConstructors(System.Reflection.BindingFlags)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td>
</tr>
<tr>
<td style="padding-left:2em">GetGenericArguments</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetInterfaces</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetMethod(System.String)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetMethod(System.String,System.Reflection.BindingFlags)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td>
</tr>
<tr>
<td style="padding-left:2em">GetMethod(System.String,System.Type[],System.Reflection.ParameterModifier[])</td>
<td class="IconErrorEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td>Use GetMethod(string, Type[]) to search for public methods by name and parameter type or filter the results of GetMethods(BindingFlags) using LINQ for other queries.</td>
</tr>
<tr>
<td style="padding-left:2em">GetMethods</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetProperties</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">GetProperty(System.String)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td style="padding-left:2em">IsAssignableFrom(System.Type)</td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td class="IconSuccessEncoded"></td>
<td class="IconErrorEncoded"></td>
<td></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
<p>
<a href="#Portability Summary">Back to Summary</a>
</p>
</div>
</div>
</body>
</html> | kuhlenh/port-to-core | Reports/fl/flitbit.ioc.3.2.1/FlitBit.IoC-net451.html | HTML | mit | 52,198 |
#ifndef APPSETTINGSSTORAGE_H
#define APPSETTINGSSTORAGE_H
#include <QDebug>
#include <QCoreApplication>
#include <QString>
#include <QMap>
#include <QSettings>
#include <QDir>
class AppSettingsStorage
{
public:
enum Settings {
ACCOUNT_LOGIN = 0,
ACCOUNT_PASS,
APP_RUN_ON_BOOT,
APP_START_MINIMIZED,
APP_STATUS
};
AppSettingsStorage();
static void initColumnNames() {
settingsMap.insert(ACCOUNT_LOGIN, "account/login");
settingsMap.insert(ACCOUNT_PASS, "account/password");
settingsMap.insert(APP_RUN_ON_BOOT, "app/runOnbootCheckBox");
settingsMap.insert(APP_START_MINIMIZED, "app/startMinimizedCheckBox");
settingsMap.insert(APP_STATUS, "app/status");
}
QMap<QString, QString> loadSettings();
void storeSettings(QMap<QString, QString> properties);
signals:
public slots:
public:
const static QSettings *settings;
static QMap<Settings, QString> settingsMap;
};
#endif // APPSETTINGSSTORAGE_H
| dmitrysl/qt-mclaut-notifier | appsettingsstorage.h | C | mit | 1,015 |
<?php
return array(
/** @brief Table de liaison avec les mots clés */
'table_liaison' => 'jayps_search_word_occurence',
/** @brief Préfixe de la table de liaison avec les mots clés */
'table_liaison_prefixe' => 'mooc_',
/** @brief mots clés interdits */
'forbidden_words' => array(
// 3 lettres
'les', 'des', 'ses', 'son', 'mes', 'mon', 'tes', 'ton', 'une', 'aux', 'est', 'sur', 'par', 'dit',
'the',
// 4 lettres
'pour','sans','dans','avec','deux','vers',
// 5 lettres
'titre',
),
/** @brief allowed some chars in words indexed and in search */
'allowable_chars' => '*?',
/** @brief longueur mimimum des mots à indexer */
'min_word_len' => 3,
/** @brief max number of joins for a search */
'max_join' => 4,
/** @brief For debugging */
'debug' => false,
/** @brief use a transaction to speed up InnoDB insert */
'transaction' => false,
/** @brief use INSERT DELAYED, for MyISAM Engine only*/
'insert_delayed' => true,
/** @brief group insertion of words */
'words_by_insert' => 100,
/** @brief score can be improved by this config*/
'title_boost' => 3,
'html_boost' => array(
'h1' => 3,
'h2' => 2,
'h3' => 1,
'strong' => 1,
)
);
| novius/jayps_search | config/config.php | PHP | mit | 1,338 |
/* vim: set syntax=javascript ts=8 sts=8 sw=8 noet: */
/*
* Copyright 2016, Joyent, Inc.
*/
var BINDING = require('./lockfd_binding');
function
check_arg(pos, name, value, type)
{
if (typeof (value) !== type) {
throw (new Error('argument #' + pos + ' (' + name +
') must be of type ' + type));
}
}
function
lockfd(fd, callback)
{
check_arg(1, 'fd', fd, 'number');
check_arg(2, 'callback', callback, 'function');
BINDING.lock_fd(fd, 'write', false, function (ret, errmsg, errno) {
var err = null;
if (ret === -1) {
err = new Error('File Locking Error: ' + errmsg);
err.code = errno;
}
setImmediate(callback, err);
});
}
function
lockfdSync(fd)
{
var cb_fired = false;
var err;
check_arg(1, 'fd', fd, 'number');
BINDING.lock_fd(fd, 'write', true, function (ret, errno, errmsg) {
cb_fired = true;
if (ret === -1) {
err = new Error('File Locking Error: ' + errmsg);
err.__errno = errno;
return;
}
});
if (!cb_fired) {
throw (new Error('lockfdSync: CALLBACK NOT FIRED'));
} else if (err) {
throw (err);
}
return (null);
}
function
flock(fd, op, callback)
{
check_arg(1, 'fd', fd, 'number');
check_arg(2, 'op', op, 'number');
check_arg(3, 'callback', callback, 'function');
BINDING.flock(fd, op, false, function (ret, errmsg, errno) {
var err = null;
if (ret === -1) {
err = new Error('File Locking Error: ' + errmsg);
err.code = errno;
}
setImmediate(callback, err);
});
}
function
flockSync(fd, op)
{
var cb_fired = false;
var err;
check_arg(1, 'fd', fd, 'number');
check_arg(2, 'op', op, 'number');
BINDING.flock(fd, op, true, function (ret, errmsg, errno) {
cb_fired = true;
if (ret === -1) {
err = new Error('File Locking Error: ' + errmsg);
err.code = errno;
return;
}
});
if (!cb_fired) {
throw (new Error('flockSync: CALLBACK NOT FIRED'));
} else if (err) {
throw (err);
}
return (null);
}
module.exports = {
LOCK_SH: 1,
LOCK_EX: 2,
LOCK_NB: 4,
LOCK_UN: 8,
flock: flock,
flockSync: flockSync,
lockfd: lockfd,
lockfdSync: lockfdSync
};
| joyent/node-lockfd | lib/index.js | JavaScript | mit | 2,075 |
'use strict';
angular.module('depthyApp')
.controller('DrawCtrl', function ($scope, $element, depthy, $window, $timeout) {
var drawer = depthy.drawMode,
viewer = depthy.getViewer(),
lastPointerPos = null,
oldViewerOpts = angular.extend({}, depthy.viewer);
drawer.setOptions(depthy.drawOptions || {
depth: 0.5,
size: 0.05,
hardness: 0.5,
opacity: 0.25,
});
angular.extend(depthy.viewer, {
animate: false,
fit: 'contain',
upscale: 2,
// depthPreview: 0.75,
// orient: false,
// hover: false,
});
$scope.drawer = drawer;
$scope.drawOpts = drawer.getOptions();
$scope.preview = 1;
$scope.brushMode = false;
$scope.$watch('drawOpts', function(options) {
if (drawer && options) {
drawer.setOptions(options);
}
}, true);
$scope.$watch('preview', function(preview) {
depthy.viewer.orient = preview === 2;
depthy.viewer.hover = preview === 2;
depthy.viewer.animate = preview === 2 && oldViewerOpts.animate;
depthy.viewer.quality = preview === 2 ? false : 1;
depthy.animateOption(depthy.viewer, {
depthPreview: preview === 0 ? 1 : preview === 1 ? 0.75 : 0,
depthScale: preview === 2 ? oldViewerOpts.depthScale : 0,
depthBlurSize: preview === 2 ? oldViewerOpts.depthBlurSize : 0,
enlarge: 1.0,
}, 250);
});
$scope.togglePreview = function() {
console.log('togglePreview', $scope.preview);
// $scope.preview = ++$scope.preview % 3;
$scope.preview = $scope.preview === 1 ? 2 : 1;
};
$scope.done = function() {
$window.history.back();
};
$scope.cancel = function() {
drawer.cancel();
$window.history.back();
};
$scope.brushIcon = function() {
switch($scope.brushMode) {
case 'picker':
return 'target';
case 'level':
return 'magnet';
default:
return 'draw';
}
};
$element.on('touchstart mousedown', function(e) {
console.log('mousedown');
var event = e.originalEvent,
pointerEvent = event.touches ? event.touches[0] : event;
if (event.target.id !== 'draw') return;
lastPointerPos = viewer.screenToImagePos({x: pointerEvent.pageX, y: pointerEvent.pageY});
if ($scope.brushMode === 'picker' || $scope.brushMode === 'level') {
$scope.drawOpts.depth = drawer.getDepthAtPos(lastPointerPos);
console.log('Picked %s', $scope.drawOpts.depth);
if ($scope.brushMode === 'picker') {
$scope.brushMode = false;
lastPointerPos = null;
$scope.$safeApply();
event.preventDefault();
event.stopPropagation();
return;
} else {
$scope.$safeApply();
}
}
drawer.drawBrush(lastPointerPos);
// updateDepthMap();
event.preventDefault();
event.stopPropagation();
});
$element.on('touchmove mousemove', function(e) {
if (lastPointerPos) {
var event = e.originalEvent,
pointerEvent = event.touches ? event.touches[0] : event,
pointerPos = viewer.screenToImagePos({x: pointerEvent.pageX, y: pointerEvent.pageY});
drawer.drawBrushTo(pointerPos);
lastPointerPos = pointerPos;
}
});
$element.on('touchend mouseup', function(event) {
console.log('mouseup', event);
if (lastPointerPos) {
lastPointerPos = null;
$scope.$safeApply();
}
// if(window.location.href.indexOf('preview')<0){
// updateDepthMap();
// }
});
$element.on('click', function(e) {
console.log('click');
// updateDepthMap();
});
function getSliderForKey(e) {
var id = 'draw-brush-depth';
if (e.shiftKey && e.altKey) {
id = 'draw-brush-hardness';
} else if (e.altKey) {
id = 'draw-brush-opacity';
} else if (e.shiftKey) {
id = 'draw-brush-size';
}
var el = $element.find('.' + id + ' [range-stepper]');
el.click(); // simulate click to notify change
return el.controller('rangeStepper');
}
function onKeyDown(e) {
console.log('keydown', e);
var s, handled = false;
console.log('keydown which %d shift %s alt %s ctrl %s', e.which, e.shiftKey, e.altKey, e.ctrlKey);
if (e.which === 48) { // 0
getSliderForKey(e).percent(0.5);
handled = true;
} else if (e.which >= 49 && e.which <= 57) { // 1-9
getSliderForKey(e).percent((e.which - 49) / 8);
handled = true;
} else if (e.which === 189) { // -
s = getSliderForKey(e);
s.percent(s.percent() - 0.025);
handled = true;
} else if (e.which === 187) { // +
s = getSliderForKey(e);
s.percent(s.percent() + 0.025);
handled = true;
} else if (e.which === 32) {
$element.find('.draw-preview').click();
handled = true;
} else if (e.which === 90) { // z
$element.find('.draw-undo').click();
handled = true;
} else if (e.which === 80) { // p
$element.find('.draw-picker').click();
handled = true;
} else if (e.which === 76) { // l
$element.find('.draw-level').click();
handled = true;
} else if (e.which === 81) { // l
$scope.preview = $scope.preview === 1 ? 2 : 1;
handled = true;
}
if (handled) {
e.preventDefault();
$scope.$safeApply();
}
}
$($window).on('keydown', onKeyDown);
$element.find('.draw-brush-depth').on('touchstart mousedown click', function() {
$scope.brushMode = false;
});
$element.on('$destroy', function() {
$element.off('touchstart mousedown');
$element.off('touchmove mousemove');
$($window).off('keydown', onKeyDown);
depthy.animateOption(depthy.viewer, {
depthPreview: oldViewerOpts.depthPreview,
depthScale: oldViewerOpts.depthScale,
depthBlurSize: oldViewerOpts.depthBlurSize,
enlarge: oldViewerOpts.enlarge,
}, 250);
$timeout(function() {
angular.extend(depthy.viewer, oldViewerOpts);
}, 251);
if (drawer.isCanceled()) {
// restore opened depthmap
viewer.setDepthmap(depthy.opened.depthSource, depthy.opened.depthUsesAlpha);
} else {
if (drawer.isModified()) {
updateDepthMap();
}
}
drawer.destroy(true);
});
function updateDepthMap(){
depthy.drawOptions = drawer.getOptions();
// remember drawn depthmap
// store it as jpg
console.log('updateDepthMap',viewer);
viewer.exportDepthmap().then(function(url) {
depthy.opened.markAsModified();
depthy.opened.depthSource = url; //viewer.getDepthmap().texture;
depthy.opened.depthUsesAlpha = false;
viewer.setDepthmap(url);
depthy.opened.onDepthmapOpened();
localStorage.depthMapUrl = url;
var intercom = Intercom.getInstance();
intercom.emit('depthMapUrl', {message: url});
});
}
}); | amcassetti/parallax-pro-creator | app/scripts/controllers/draw.js | JavaScript | mit | 6,782 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>BigBang</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The BigBang developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<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 type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your BigBang 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 type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Αντιγραφή διεύθυνσης</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a BigBang address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Αντιγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified BigBang address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Διαγραφή</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Αντιγραφή &επιγραφής</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Επεξεργασία</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Αρχείο οριοθετημένο με κόμματα (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</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 line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<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> οχτώ ή παραπάνω λέξεις</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Κρυπτογράφησε το πορτοφόλι</translation>
</message>
<message>
<location line="+7"/>
<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 COINS</b>!</source>
<translation type="unfinished"/>
</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>ΣΗΜΑΝΤΙΚΟ: Τα προηγούμενα αντίγραφα ασφαλείας που έχετε κάνει από το αρχείο του πορτοφόλιου σας θα πρέπει να αντικατασταθουν με το νέο που δημιουργείται, κρυπτογραφημένο αρχείο πορτοφόλιου. Για λόγους ασφαλείας, τα προηγούμενα αντίγραφα ασφαλείας του μη κρυπτογραφημένου αρχείου πορτοφόλιου θα καταστουν άχρηστα μόλις αρχίσετε να χρησιμοποιείτε το νέο κρυπτογραφημένο πορτοφόλι. </translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Προσοχη: το πλήκτρο Caps Lock είναι ενεργο.</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Κρυπτογραφημενο πορτοφολι</translation>
</message>
<message>
<location line="-58"/>
<source>BigBang will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Η κρυπτογραφηση του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Η κρυπτογράφηση του πορτοφολιού απέτυχε λογω εσωτερικού σφάλματος. Το πορτοφολι δεν κρυπτογραφηθηκε.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Οι εισαχθέντες κωδικοί δεν ταιριάζουν.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<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>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation>Υπογραφή &Μηνύματος...</translation>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation>Συγχρονισμός με το δίκτυο...</translation>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation>&Επισκόπηση</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Εμφάνισε τη γενική εικόνα του πορτοφολιού</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Συναλλαγές</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Περιήγηση στο ιστορικό συναλλαγών</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>Έ&ξοδος</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Εξοδος από την εφαρμογή</translation>
</message>
<message>
<location line="+6"/>
<source>Show information about BigBang</source>
<translation type="unfinished"/>
</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="+4"/>
<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 numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a BigBang address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<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="+10"/>
<source>&Debug window</source>
<translation>&Παράθυρο αποσφαλμάτωσης</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Άνοιγμα κονσόλας αποσφαλμάτωσης και διαγνωστικών</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Επιβεβαίωση μηνύματος</translation>
</message>
<message>
<location line="-202"/>
<source>BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Πορτοφόλι</translation>
</message>
<message>
<location line="+180"/>
<source>&About BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Εμφάνισε/Κρύψε</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Αρχείο</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Ρυθμίσεις</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Βοήθεια</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation>Εργαλειοθήκη καρτελών</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>BigBang client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to BigBang network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About BigBang card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about BigBang card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Ενημερωμένο</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Ενημέρωση...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<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="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Η συναλλαγή απεστάλη</translation>
</message>
<message>
<location line="+1"/>
<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="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid BigBang address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Το πορτοφόλι είναι <b>κρυπτογραφημένο</b> και <b>ξεκλείδωτο</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Το πορτοφόλι είναι <b>κρυπτογραφημένο</b> και <b>κλειδωμένο</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n ώρες </numerusform><numerusform>%n ώρες </numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n ημέρες </numerusform><numerusform>%n ημέρες </numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. BigBang can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Ειδοποίηση Δικτύου</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Ποσό:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Ποσό</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Διεύθυνση</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Ημερομηνία</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Επικυρωμένες</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Αντιγραφή διεύθυνσης</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Αντιγραφή επιγραφής</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Αντιγραφή ποσού</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Αντιγραφη του ID Συναλλαγής</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(χωρίς ετικέτα)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<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 BigBang address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Δεν είναι δυνατό το ξεκλείδωμα του πορτοφολιού.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Η δημιουργία νέου κλειδιού απέτυχε.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>BigBang-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</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. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Αμοιβή &συναλλαγής</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start BigBang after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start BigBang on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Δίκτυο</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the BigBang client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Απόδοση θυρών με χρήστη &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the BigBang network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</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>Θύρα διαμεσολαβητή</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 εκδοση του διαμεσολαβητη (e.g. 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 BigBang.</source>
<translation type="unfinished"/>
</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 BigBang 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="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>προεπιλογή</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting BigBang.</source>
<translation type="unfinished"/>
</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="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the BigBang network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Πορτοφόλι</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>Το τρέχον διαθέσιμο υπόλοιπο</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Ανώριμος</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Εξορυγμενο υπόλοιπο που δεν έχει ακόμα ωριμάσει </translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Σύνολο:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>Το τρέχον συνολικό υπόλοιπο</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Πρόσφατες συναλλαγές</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>εκτός συγχρονισμού</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</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="+348"/>
<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>Χρόνος εκκίνησης</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Δίκτυο</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Αριθμός συνδέσεων</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Αλυσίδα μπλοκ</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Τρέχον αριθμός μπλοκ</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Κατ' εκτίμηση συνολικά μπλοκς</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Χρόνος τελευταίου μπλοκ</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Άνοιγμα</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the BigBang-Qt help message to get a list with possible BigBang command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</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>BigBang - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>BigBang 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 BigBang 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="-33"/>
<source>Welcome to the BigBang RPC console.</source>
<translation type="unfinished"/>
</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="+182"/>
<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="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Ποσό:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BBC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<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 type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Καθαρισμός &Όλων</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Υπόλοιπο:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BBC</source>
<translation type="unfinished"/>
</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="-173"/>
<source>Enter a BigBang address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Αντιγραφή ποσού</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Επιβεβαίωση αποστολής νομισμάτων</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Η διεύθυνση του αποδέκτη δεν είναι σωστή. Παρακαλώ ελέγξτε ξανά.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Το ποσό πληρωμής πρέπει να είναι μεγαλύτερο από 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Το ποσό ξεπερνάει το διαθέσιμο υπόλοιπο</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Το σύνολο υπερβαίνει το υπόλοιπό σας όταν συμπεριληφθεί και η αμοιβή %1</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Βρέθηκε η ίδια διεύθυνση δύο φορές. Επιτρέπεται μία μόνο εγγραφή για κάθε διεύθυνση, σε κάθε διαδικασία αποστολής.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid BigBang address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(χωρίς ετικέτα)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</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="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Εισάγετε μια επιγραφή για αυτή τη διεύθυνση ώστε να καταχωρηθεί στο βιβλίο διευθύνσεων</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Επιγραφή</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</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 type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a BigBang address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Υπογραφές - Είσοδος / Επαλήθευση μήνυματος </translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Υπογραφή Μηνύματος</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Μπορείτε να υπογράφετε μηνύματα με τις διευθύνσεις σας, ώστε ν' αποδεικνύετε πως αυτές σας ανήκουν. Αποφεύγετε να υπογράφετε κάτι αόριστο καθώς ενδέχεται να εξαπατηθείτε. Υπογράφετε μόνο πλήρης δηλώσεις με τις οποίες συμφωνείτε.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<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="+24"/>
<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 BigBang address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<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"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Επιβεβαίωση μηνύματος</translation>
</message>
<message>
<location line="-64"/>
<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>Πληκτρολογήστε την υπογραφή διεύθυνσης, μήνυμα (βεβαιωθείτε ότι έχετε αντιγράψει τις αλλαγές γραμμής, κενά, tabs, κ.λπ. ακριβώς) και την υπογραφή παρακάτω, για να ελέγξει το μήνυμα. Να είστε προσεκτικοί για να μην διαβάσετε περισσότερα στην υπογραφή ό, τι είναι στην υπογραφή ίδιο το μήνυμα , για να μην εξαπατηθούν από έναν άνθρωπο -in - the-middle επίθεση.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified BigBang address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Επαναφορά όλων επαλήθευμενων πεδίων μήνυματος </translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a BigBang address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Κάντε κλικ στο "Υπογραφή Μηνύματος" για να λάβετε την υπογραφή</translation>
</message>
<message>
<location line="+3"/>
<source>Enter BigBang signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Η διεύθυνση που εισήχθη είναι λάθος.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Παρακαλούμε ελέγξτε την διεύθυνση και δοκιμάστε ξανά.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>Η διεύθυνση που έχει εισαχθεί δεν αναφέρεται σε ένα πλήκτρο.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Το προσωπικό κλειδί εισαγμενης διευθυνσης δεν είναι διαθέσιμο.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Η υπογραφή του μηνύματος απέτυχε.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Μήνυμα υπεγράφη.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Η υπογραφή δεν μπόρεσε να αποκρυπτογραφηθεί.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Παρακαλούμε ελέγξτε την υπογραφή και δοκιμάστε ξανά.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>Η υπογραφή δεν ταιριάζει με το μήνυμα. </translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Η επιβεβαίωση του μηνύματος απέτυχε</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Μήνυμα επιβεβαιώθηκε.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Ανοιχτό μέχρι %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/χωρίς σύνδεση;</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/χωρίς επιβεβαίωση</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 επιβεβαιώσεις</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Κατάσταση</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Ημερομηνία</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Πηγή</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Δημιουργία </translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Από</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Προς</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation> δική σας διεύθυνση </translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>eπιγραφή</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Πίστωση </translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>μη αποδεκτό</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debit</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 110 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 type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Πληροφορίες αποσφαλμάτωσης</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Συναλλαγή</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>εισροές </translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Ποσό</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>αληθής</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>αναληθής </translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, δεν έχει ακόμα μεταδοθεί μ' επιτυχία</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>άγνωστο</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Λεπτομέρειες συναλλαγής</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Αυτό το παράθυρο δείχνει μια λεπτομερή περιγραφή της συναλλαγής</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<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>
<location line="+60"/>
<source>Open until %1</source>
<translation>Ανοιχτό μέχρι %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Επικυρωμένη (%1 επικυρώσεις)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Ανοιχτό για %n μπλοκ</numerusform><numerusform>Ανοιχτό για %n μπλοκ</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<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="+42"/>
<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="+190"/>
<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="+55"/>
<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>Αντιγραφη του ID Συναλλαγής</translation>
</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="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</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>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</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="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>BigBang version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Χρήση:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or BigBangd</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Λίστα εντολών</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Επεξήγηση εντολής</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Επιλογές:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: BigBang.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: BigBangd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Ορισμός φακέλου δεδομένων</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Όρισε το μέγεθος της βάσης προσωρινής αποθήκευσης σε megabytes(προεπιλογή:25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Μέγιστες αριθμός συνδέσεων με τους peers <n> (προεπιλογή: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Σύνδεση σε έναν κόμβο για την ανάκτηση διευθύνσεων από ομοτίμους, και αποσυνδέσh</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Διευκρινίστε τη δικιά σας δημόσια διεύθυνση.</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Όριο αποσύνδεσης προβληματικών peers (προεπιλογή: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Δευτερόλεπτα πριν επιτραπεί ξανά η σύνδεση των προβληματικών peers (προεπιλογή: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η πόρτα RPC %u για αναμονή IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<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="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Αποδοχή εντολών κονσόλας και JSON-RPC</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Εκτέλεση στο παρασκήνιο κι αποδοχή εντολών</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Χρήση του δοκιμαστικού δικτύου</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Να δέχεσαι συνδέσεις από έξω(προεπιλογή:1)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η υποδοχη RPC %u για αναμονη του IPv6, επεσε πισω στο IPv4:%s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<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="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong BigBang will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<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="-18"/>
<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 ειναι διεφθαρμένο, τα δεδομένα σώζονται ! Original wallet.dat αποθηκεύονται ως wallet.{timestamp}.bak στο %s . Αν το υπόλοιπο του ή τις συναλλαγές σας, είναι λάθος θα πρέπει να επαναφέρετε από ένα αντίγραφο ασφαλείας</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Προσπάθεια για ανακτησει ιδιωτικων κλειδιων από ενα διεφθαρμένο αρχειο wallet.dat </translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Αποκλεισμός επιλογων δημιουργίας: </translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Σύνδεση μόνο με ορισμένους κόμβους</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Ανακαλύψτε την δικη σας IP διεύθυνση (προεπιλογή: 1 όταν ακούει και δεν - externalip) </translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>ταλαιπωρηθειτε για να ακούσετε σε οποιαδήποτε θύρα. Χρήση - ακούστε = 0 , αν θέλετε αυτό.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Μέγιστος buffer λήψης ανά σύνδεση, <n>*1000 bytes (προεπιλογή: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Μέγιστος buffer αποστολής ανά σύνδεση, <n>*1000 bytes (προεπιλογή: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation> Συνδέση μόνο σε κόμβους του δικτύου <net> (IPv4, IPv6 ή Tor) </translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>Ρυθμίσεις SSL: (ανατρέξτε στο Bitcoin Wiki για οδηγίες ρυθμίσεων SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<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 type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Ορίστε το μέγιστο μέγεθος μπλοκ σε bytes (προεπιλογή: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Συρρίκνωση του αρχείο debug.log κατα την εκκίνηση του πελάτη (προεπιλογή: 1 όταν δεν-debug)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Ορισμός λήξης χρονικού ορίου σε χιλιοστά του δευτερολέπτου(προεπιλογή:5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:1)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Όνομα χρήστη για τις συνδέσεις JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Προειδοποίηση: Αυτή η έκδοση είναι ξεπερασμένη, απαιτείται αναβάθμιση </translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>Το αρχειο wallet.dat ειναι διεφθαρμένο, η διάσωση απέτυχε</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Κωδικός για τις συνδέσεις JSON-RPC</translation>
</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=BigBangrpc
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 "BigBang Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Αποδοχή συνδέσεων JSON-RPC από συγκεκριμένη διεύθυνση IP</translation>
</message>
<message>
<location line="+1"/>
<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="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<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>Upgrade wallet to latest format</source>
<translation>Αναβάθμισε το πορτοφόλι στην τελευταία έκδοση</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Όριο πλήθους κλειδιών pool <n> (προεπιλογή: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Επανέλεγχος της αλυσίδας μπλοκ για απούσες συναλλαγές</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Χρήση του OpenSSL (https) για συνδέσεις JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<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="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Αυτό το κείμενο βοήθειας</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. BigBang is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<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="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Να επιτρέπονται οι έλεγχοι DNS για προσθήκη και σύνδεση κόμβων</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Φόρτωση διευθύνσεων...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Σφάλμα φόρτωσης wallet.dat: Κατεστραμμένο Πορτοφόλι</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart BigBang to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Σφάλμα φόρτωσης αρχείου wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Άγνωστo δίκτυο ορίζεται σε onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Άγνωστo δίκτυο ορίζεται: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Λάθος ποσότητα</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Ανεπαρκές κεφάλαιο</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Φόρτωση ευρετηρίου μπλοκ...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Προσέθεσε ένα κόμβο για σύνδεση και προσπάθησε να κρατήσεις την σύνδεση ανοιχτή</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. BigBang is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Φόρτωση πορτοφολιού...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Δεν μπορώ να υποβαθμίσω το πορτοφόλι</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Ανίχνευση...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Η φόρτωση ολοκληρώθηκε</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Χρήση της %s επιλογής</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Σφάλμα</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Πρέπει να βάλεις ένα κωδικό στο αρχείο παραμέτρων: %s
Εάν το αρχείο δεν υπάρχει, δημιούργησε το με δικαιώματα μόνο για ανάγνωση από τον δημιουργό</translation>
</message>
</context>
</TS> | Lefter1s/BigBang | src/qt/locale/bitcoin_el_GR.ts | TypeScript | mit | 128,896 |
<?php
function event_stat_alexa_calculated($ranks){
}
function event_stat_similarweb_calculated($ranks){
} | iqbalfn/admin | application/events/stat.php | PHP | mit | 114 |
#include <stdio.h>
int main() {
int current_char, previous_char;
printf("Input text below, multiple spaces will be escaped:\n");
previous_char = -1;
while((current_char = getchar()) != EOF) {
if (!(current_char == ' ' && previous_char == ' ')) {
putchar(current_char);
}
previous_char = current_char;
}
} | moki/The-C-Programming-Language-walkthrough | chapter-1-A-Tutorial-Introduction/escape-multiple-blanks.c | C | mit | 337 |
<!DOCTYPE html>
<html dir="rtl" lan="en">
<head>
<meta charset="utf-8">
<title>2018-AR-07-arrows</title>
<script>
window.stringsLanguage = 'ar';
</script>
<script class="remove" type="text/javascript" src="../../../_common/modules/pemFioi/importModules-1.1_M.js" id="import-modules"></script>
<script class="remove" type="text/javascript">
var modulesPath = '../../../_common/modules';
importModules([
'jquery-1.7.1', 'jquery-ui.touch-punch', 'raphael-2.2.1', 'JSON-js',
'beav-1.0', 'beaver-task-2.0', 'simulation-2.0', 'raphaelFactory-1.0',
'delayFactory-1.0', 'simulationFactory-1.0', 'raphaelButton-1.0',
'platform-pr', 'buttonsAndMessages', 'installationAPI.01',
'miniPlatform', 'taskStyles-0.1','graph-1.0', 'visual-graph-1.0', 'grid-1.0']);
</script>
<script class="remove" type="text/javascript">
var json = {
"id": "",
"language": "ar",
"version": "en.01",
"authors": "France-ioi",
"translators": ["Mohamed El-Sherif", "Eslam Wageed"],
"license": "CC BY-SA 3.0",
"taskPathPrefix": "",
"modulesPathPrefix": "",
"browserSupport": [],
"fullFeedback": true,
"acceptedAnswers": [],
"usesRandomSeed": false
};
</script>
<script type="text/javascript">
var taskStrings = {
success: "تهانينا، لقد نججت!",
errorWhiteArrow: "في الخلية الحمراء سهم لا يزال بحاجة إلى تلوينه.",
errorWrongArrow: function(arrowColor, nbPointedArrows, nbRequiredArrows) {
debugger;
var ret="في الخليه الحمراء يوجد سهم "+arrowColor+" من المفترض أن يشير إلى "+nbRequiredArrows;
if(nbRequiredArrows > 1) {
ret +=" أسهم ";
if(nbRequiredArrows=="أصفر") ret+="صفراء.";
else ret+=".زرقاء";
}
else {
ret+=" سهم ";
ret+=arrowColor+".";
}
ret+="<br>";
ret+="ولكنه حاليا يشير إلى "+nbPointedArrows;
if(nbPointedArrows > 1) {
ret +=" أسهم ";
if(arrowColor=="أصفر") ret+="صفراء";
else ret+="زرقاء";
}
else {
ret+=" سهم ";
ret+=arrowColor;
}
return ret;
},
blue: "أزرق",
yellow: "أصفر",
fixedArrow: "لا يمكن تغيير السهم الذي بالمنتصف",
blueSymbol: "B",
yellowSymbol: "J",
undo: "تراجع"
};
var enableRtl = true;
</script>
<script type="text/javascript" src="task.js"></script>
<style>
ul {
list-style-type: none;
}
#displayHelper_graderMessage {
margin-top: 1em;
margin-bottom: 1em;
text-align: center;
font-weight: bold;
color: red;
}
li
{
margin-bottom: 5px;
}
li * {
display: inline-block;
}
.instruction_arrow {
position:relative;
top:15px;
}
ul {
position:relative;
top:-15px;
}
#instructions {
margin-left: 1em;
}
#instructions td {
vertical-align: top;
padding-bottom: 1em;
padding-right: 0.5em;
}
.very_hard {
display: none;
}
.largeScreen #example1 {
display:none;
}
#example2 {
display:none;
}
.largeScreen #example2 {
display:block;
}
.largeScreen #zone_1,
.largeScreen #zone_2
{
float: right;
}
</style>
</head>
<body>
<div id="task">
<h1>الأسهم الموجهه</h1>
<div id="tabsContainer"></div> <!-- will contain the versions tabs -->
<div id="taskContent"> <!-- will contain the content of the task -->
<div id="zone_1">
<div class="consigne">
<div id="example1" style="float:right"><div class="easy medium" style="text-align:center;margin-top:5px;"><b>مثال</b><br/><img src="example_ar_eg.png" style="height:200px;margin-left:20px;margin-top:5px"></div></div>
<p>لون جمیع الأسهم في الشبكة باللون الأصفر أو الأزرق وفقا <span class="easy medium very_hard"> للقاعدة التالیة</span><span class="hard">للقواعد التالیة</span>:</p>
<p class="easy medium very_hard"><span style="font-weight:bold">يجب أن یشیر السهم إلى <span class="easy medium">سهم واحد فقط </span><span class="very_hard">سهمين</span> من نفس اللون.</span></p>
<table id="instructions" class="hard">
<tr>
<td><span id="instructions_blue" class="instruction_arrow"></span></td>
<td><br><br> يجب أن يشير السهم الأزرق إلى سهمين أزرقان فقط. </td>
</tr>
<tr>
<td><span id="instructions_yellow" class="instruction_arrow"></span></td>
<td><br><br> يجب أن يشير السهم الأصفر إلى سهم أصفر واحد فقط. </td>
</tr>
</table>
<p>انقر على السهم لتغییر لونه.</p>
<div id="example2"><div class="easy medium" style="text-align:center;margin-top:5px;"><b>مثال</b><br/><img src="example_ar_eg.png" style="height:200px;margin-left:20px;margin-top:5px"></div></div>
<div style="clear:both"></div>
</div>
</div>
<div id="zone_2">
<center style="clear:both"><table>
<tr>
<td><div id="grid"></div></td>
</tr>
</table></center>
</div>
</div>
<img src="icon.png" style="display:none">
</div>
<div id="solution">
<h2>الحل</h2>
<!-- description of the solution -->
<div class="easy">
<table style="width: 700px">
<tr>
<td><img src="sol_easy_1.png"></td>
<td>یشیر السهم المعطى في البدایة إلى أنه من الضروري وضع سهم أزرق على یمینه.</td>
</tr>
<tr>
<td><img src="sol_easy_2.png"></td>
<td>یشیر السهم الذي تمت إضافته للتو إلى أنك بحاجة إلى وضع سهم أزرق أسفله.</td>
</tr>
<tr>
<td><img src="sol_easy_3.png"></td>
<td>في العمود الأیمن، یشیر السهم الأزرق الذي تم إضافته للتو في الزاویة السفلیة إلى السهم الأزرق الموجود أعلاه. وبالتالي هناك بالفعل سهم أزرق في اتجاهه. لتجنب وجود سهم ثاني في نفس الاتجاه یجب وضع سهم أصفر في الجزء العلوي من هذا العمود.</td>
</tr>
<tr>
<td><img src="sol_easy_4.png"></td>
<td>یشیر السهم الموجود في منتصف الصف العلوي إلى سهم أصفر، وبالتالي یجب أن یكون هذا السهم أصفر.</td>
</tr>
<tr>
<td><img src="sol_easy_5.png"></td>
<td>في الصف العلوي ، یشیر السهم الأصفر الأیمن إلى سهم أصفر آخر، وهو السهم الأوسط، ولتجنب الإشارة إلى سهمین أصفرین ، یجب وضع سهم أزرق في یسار هذا الصف.</td>
</tr>
<tr>
<td><img src="sol_easy_6.png"></td>
<td>یشیر السهم الموجود في منتصف العمود الأیسر إلى سهم أزرق. وبالتالي یجب أن یكون هذا السهم أزرق.</td>
</tr>
<td><img src="sol_easy_7.png"></td>
<td>في العمود الأیسر، یشیر السهم الأزرق في الأعلى إلى سهم أزرق آخر، وهو السهم الموجود في الوسط، و لتجنب الإشارة الى سهمین أزرقین ، یجب وضع سهم أصفر في أسفل هذا العمود.</td>
</tr>
<td><img src="sol_easy_8.png"></td>
<td>یجب أن یشیر السهم الأصفر في أسفل الیسار إلى سهم أصفر آخر، ولذلك یجب وضع سهم أصفر في المربع المتبقي من الصف السفلي.</td>
</tr>
</tr>
<td><img src="sol_easy_9.png"></td>
<td>اكتمل الحل !</td>
</tr>
</table>
</div>
<div class="medium">
<p>قبل أن نبدأ یمكن ملاحظة أن هذه المسألة متناظرة بین اللونین الأزرق والأصفر، بمعنى أنه لو كان لدینا حل صحیح ثم غیرنا جمیع الأسهم الصفراء بأسهم زرقاء والعكس فسنحصل على حل صحیح آخر، ولذلك فلنا الحریة في تحدید لون السهم الأول الذي نبدأ به. </p>
<p>في ما یلي ، سنبدأ دائًما بوضع سهم أزرق. </p>
<p>سوف نجرب بدایات مختلفة حتى نصل إلى طریقة نضمن فیها التقدم في تلوین الأسهم دون خطأ.</p>
<p><b>في المحاولة الاولى.</b> لنفترض أننا سنحاول ملئ الصف الأول وسنجد أن هناك طریقتین مختلفتین لإتمام ذلك وفق القواعد:
<table style="width: 700px">
<tr>
<td><img src="sol_medium_b1.png"></td>
<td>الطریقة الأولى.</td>
</tr>
</tr>
<td><img src="sol_medium_b2.png"></td>
<td>الطریقة الثانیة.</td>
</tr>
</table>
<p>نظًرا لوجود احتمالین لا یمكننا التأكد من أیهما الصحیح فسوف نجرب بدایة أخرى.</p>
<p><b>في المحاولة الثانیة.</B> سنحاول ملئ الصف الأخیر وسنجد أن هناك طریقتین مختلفتین لإتمام ذلك وفق القواعد :
<table style="width: 700px">
<tr>
<td><img src="sol_medium_c1.png"></td>
<td>الطریقة الأولى.</td>
</tr>
</tr>
<td><img src="sol_medium_c2.png"></td>
<td>الطریقة الثانیة.</td>
</tr>
</table>
<p>نظًرا لوجود احتمالین لا یمكننا التأكد من أیهما الصحیح فسوف نجرب بدایة أخرى.</p>
<p><b>في المحاولة الثالثة.</b> سنحاول ملئ القطر، وسنجد فیه ثلاثة أسهم منها إثنان یشیران لبعض.
<table style="width: 700px">
<tr>
<td><img src="sol_medium_d1.png"></td>
<td>لنبدأ ، كما أوضحنا سابقا ، بوضع سهم أزرق.</td>
</tr>
<tr>
<td><img src="sol_medium_d2.png"></td>
<td>لا یمكن وضع سهم أزرق في المربع الأوسط من القطر، لأن السهم الأخیر في القطر لا یمكن أن یشیر إلى سهمین أزرقین.</td>
</tr>
<tr>
<td><img src="sol_medium_1.png"></td>
<td>نستنتج أن السهم الأوسط في القطر یجب أن یكون أصفر (لأنه لا یمكن أن یكون أزرق) ، ولذلك یجب أن یكون السهم الثالث أزرق (لأن السهم الأزرق في الزاویة یجب أن یشیر إلى سهم أزرق آخر).</td>
</tr>
<tr>
<td><img src="sol_medium_2.png"></td>
<td>السهم الأصفر في الوسط یساعد في استنتاج موقع سهمین أصفرین إضافیین.</td>
</tr>
<tr>
<td><img src="sol_medium_3.png"></td>
<td>لا یمكن أن یكون لون السهم الأوسط في العمود الأیمن أصفًرا، لأنه یشیر إلى سهمین أصفرین وبذلك فلونه أزرق.</td>
</tr>
<tr>
<td><img src="sol_medium_4.png"></td>
<td>السهم الأزرق الذي تم اضافته مؤخرا یساعد على استنتاج موقع سهمین أزرقین إضافیین.</td>
</tr>
<tr>
<td><img src="sol_medium_5.png"></td>
<td>لا یمكن أن یكون لون السهم الثاني (من على اليسار) في الصف الأخیر أزرقا، لأن السهم الثاني (من على اليمين) في نفس الصف یشیر إلى سهم واحد أزرق،
وبذلك فلونه أصفر.</td>
</tr>
<tr>
<td><img src="sol_medium_6.png"></td>
<td>السهم الأصفر الأخیر یساعد على استنتاج موقع سهمین أصفرین إضافیین.</td>
</tr>
<td><img src="sol_medium_7.png"></td>
<td>یجب أن یكون السهم الأخیر باللون الأزرق لأن السهم الموجود في یمین الصف الأول یشیر إلى سهم واحد أصفر فقط. <br/><br/>اكتمل الحل !</td>
</tr>
</table>
</div>
<div class="hard">
<p>من الحكمة أن تبدأ بخط من المربعات (التي تحتوي على الأسهم) بحيث یملك الخط أقصى عدد من القیود، مثل الأسهم التي تشیر إلى بعضها، على سبیل المثال سندرس أحد
الأقطار الرئیسیة، وسنبدأ بوضع سهم أزرق أو أصفر في الزاویة الیسرى في الأسفل.</p>
<p><b>في المحاولة الأولى.</b> سنبدأ بتلوین السهم في الزاویة الیسري في الأسفل باللون الأصفر :
<table style="width: 700px">
<tr>
<td><img src="sol_hard_b1.png"></td>
<td>اذا كان المربع التالي في القطر يحتوي على سهم اصفر، ففي المربع الذي يليهم في نفس القطر لن نجد سهم مناسب يشير إلى سهمين أصفرين لذلك، سيكون لون السهم أزرق في المربع التالي.<br/><br/> وبالتالي في المربع الذي يليهم ستكون إشارته إلى سهمين أزرق و أصفر ولأنه ليس لدينا سهم يشير الي سهم أزرق واحد سنلونه باللون الأصفر. </td>
</tr>
</tr>
<td><img src="sol_hard_b2.png"></td>
<td>السهم الأزرق یساعد على استنتاج موقع سهمین إضافیین جدیدین.</td>
</tr>
</tr>
<td><img src="sol_hard_b3.png"></td>
<td>السهم الأزرق الموجود في العمود الثاني من الیسار والذي یشیر إلى الزاویة الیمنى في الأسفل یساعد على استنتاج موقع سهمین إضافیین. </td>
</tr>
</tr>
<td><img src="sol_hard_b4.png"></td>
<td>في هذه الحاله السهم الأزرق المظلل بالأحمر لا يمكنه أن يشير إلى سهمين أزرقين (لأن أحدهما أصفر بالفعل).</td>
</tr>
</table>
<p><b>في المحاولة الثانیة.</b> سنبدأ من الزاویة الیسرى في الأسفل مرة أخرى ولكن بوضع سهم أزرق بدلا من الأصفر..
<table style="width: 700px">
<tr>
<td><img src="sol_hard_0.png"></td>
<td>لنبدأ بزاويه زرقاء.</td>
</tr>
<tr>
<td><img src="sol_hard_c2.png"></td>
<td>اذا كان السهم الذي يلي السهمين الأزرق و الأبيض في نفس القطر أصفر فستواجهنا مشكلة، لأننا يجب ان نلون السهم الذي بينهما باللون الاصفر، وبذلك لن نستطيع ان نجعل السهم الأزرق في الزاويه يشير إلى سهمين أزرقين .</td>
</tr>
<tr>
<td><img src="sol_hard_1.png"></td>
<td>لذلك سنلونه باللون الأزرق ولأنه يجب أن يشير إلى سهمين أزرقين، سنلون السهم الذي في المنتصف باللون الأزرق.</td>
</tr>
<tr>
<td><img src="sol_hard_2.png"></td>
<td>يشير السهم الأزرق الجديد الي سهمين غير ملونين، سنلونهم باللون الأزرق.<br/><br/>اذا كان لون السهم الذي في الزاويه العليا على اليمين باللون الازرق فسيكون السهم في الزاويه الأخري مشير إلى ثلاث أسهم زرقاء، لذلك سنلونه باللون الأصفر.</td>
</tr>
<tr>
<td><img src="sol_hard_3.png"></td>
<td>السهم الأزرق في الصف الثاني (من أعلى لأسفل) والعمود الثالث (من اليمين لليسار) يشير إلى سهمين غير ملونين، سنلونهم باللون الأزرق. </td>
</tr>
<tr>
<td><img src="sol_hard_4.png"></td>
<td>السهم الأزرق في الصف الثالث (من أعلى لأسفل) والعمود الثاني (من اليمين لليسار) يشير إلى سهمين احدهم غير ملون، سنلونه باللون الأزرق. </td>
</tr>
<tr>
<td><img src="sol_hard_5.png"></td>
<td>السهم الأزرق في الصف الثالث (من أعلى لأسفل) والعمود الرابع (من اليمين لليسار) يشير إلى سهمين أزرقين وسهم غير ملون، اذا لوناه للأزرق فسيشير ألي ثلاث أسهم من اللون الأزرق، لذلك سنلونه باللون الأصفر. <br><br>نكرر هذه العملية مع بقية الأسهم الزرقاء التي ينطبق عليها نفس الحالة، السهم الأزرق في الصف الأول و العمود الثالت و السهم الأزرق في الزاويه السفلى على اليمين.</td>
</tr>
<tr>
<td><img src="sol_hard_6.png"></td>
<td>السهم الأصفر في الزاويه الأعلى علي اليسار لا يشير إلى سهم أصفر، لذلك سنلون السهم الغير ملون باللون الأصفر، نكرر نفس العملية مع السهم الأصفر في الصف السفلي.<br><br>السهم الغير ملون في الصف الثاني علي اليمين يشير إلى سهمين أزرقين، لذلك نلونه باللون الأزرق.</td>
</tr>
<td><img src="sol_hard_9.png"></td>
<td>اكتمل الحل !</td>
</tr>
</table>
<h2>انها المعلوماتية !</h2>
<!-- explanations on why this task is about informatics -->
<img src="icon.png" style="display:none">
</div>
</body>
</html>
| France-ioi/bebras-tasks | bebras/2018/2018-HU-07-arrows/index_ar_eg.html | HTML | mit | 21,360 |
<ion-header>
<ion-navbar>
<ion-title>会议查询</ion-title>
<!-- <ion-buttons end (click)="presentPopover($event)">
<button ion-button icon-only>
<ion-icon name="search"></ion-icon>
</button>
</ion-buttons> -->
</ion-navbar>
<div>
<tab-slide (slideClick)="onSlideClick($event)" [slides]="pageSlides" [pageNumber]="5"></tab-slide>
</div>
</ion-header>
<ion-content>
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新" refreshingSpinner="circles" refreshingText="正在刷新...">
</ion-refresher-content>
</ion-refresher>
<ion-list margin-top>
<ion-item-sliding *ngFor="let meeting of list" (click)="doRead(meeting.Id)">
<ion-item>
<!-- <h3>{{meeting.Title}}</h3>
<span>{{meeting.Place}}</span>
<p float-right>{{meeting.StartDate | date:"yyyy年MM月dd日 HH时mm分"}}</p> -->
<h2>
<span class="status-new-dot" *ngIf="meeting.Status=='1'">● </span>
<span>{{meeting.Title}}</span>
<small class="text-ios-gray" float-right>{{meeting.StartDate | getdatediff: true}}</small>
</h2>
<span>地点:{{meeting.Place}}</span>
</ion-item>
</ion-item-sliding>
</ion-list>
<empty *ngIf="isEmpty"></empty>
<ion-infinite-scroll (ionInfinite)="$event.waitFor(doInfinite())" [enabled]="moredata" threshold="100px">
<ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="加载中..."></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content> | cicixiaoyan/OA_WEBApp | OA_WEBApp/src/pages/meeting/meeting-search/meeting-search.html | HTML | mit | 1,768 |
---
layout: tag_index
tag: libraries
---
| femgeekz/femgeekz.github.io | tag/libraries/index.html | HTML | mit | 41 |
// ***********************************************************************
// <copyright file="AssemblyInfo.cs" company="Holotrek">
// Copyright © Holotrek 2016
// </copyright>
// ***********************************************************************
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Kore.Domain.EF.Tests")]
[assembly: AssemblyDescription("Tests for the Holotrek's Entity Framework Core")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Holotrek")]
[assembly: AssemblyProduct("Kore.Domain.EF.Tests")]
[assembly: AssemblyCopyright("Copyright © Holotrek 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ec0e5775-8da3-4994-9148-9c5eb80af625")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.*")]
[assembly: AssemblyFileVersion("1.1.0.0")]
| holotrek/kore-csharp | Kore/Domain/EF/Kore.Domain.EF.Tests/Properties/AssemblyInfo.cs | C# | mit | 1,736 |
<td>
{{item.name}}
</td>
<td>
{{item.age}}
</td>
<td>
{{item.sex}}
</td> | ectechno/mulgala | PlatformProject.SPA/App/sampleService/tableComponents/tableTemplate.html | HTML | mit | 91 |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class My_PHPMailer {
public function My_PHPMailer()
{
require_once('class.phpmailer.php');
}
}
?> | ProyectoDAW2/Proyecto | application/libraries/my_phpmailer.php | PHP | mit | 177 |
<?php
return array(
'service_manager' => array(
'factories' => array(
'Twilio\Options\ModuleOptions' => 'Twilio\Options\Factory\ModuleOptionsFactory',
'Twilio\Service\TwilioService' => 'Twilio\Service\Factory\TwilioServiceFactory'
)
)
);
| al3xdm/Twilio | config/module.config.php | PHP | mit | 287 |
<?php
$lang['date_year'] = 'Ano';
$lang['date_years'] = 'Anos';
$lang['date_month'] = 'Mês';
$lang['date_months'] = 'Meses';
$lang['date_week'] = 'Semana';
$lang['date_weeks'] = 'Semanas';
$lang['date_day'] = 'Dia';
$lang['date_days'] = 'Dias';
$lang['date_hour'] = 'Hora';
$lang['date_hours'] = 'Horas';
$lang['date_minute'] = 'Minuto';
$lang['date_minutes'] = 'Minutos';
$lang['date_second'] = 'Segundo';
$lang['date_seconds'] = 'Segundos';
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
$lang['UP45'] = '(UTC +4:30) Afghanistan';
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
$lang['UP575'] = '(UTC +5:45) Nepal Time';
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
$lang['UP11'] = '(UTC +11:00) Magadan Time, Solomon Islands, Vanuatu';
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
$lang['UP14'] = '(UTC +14:00) Line Islands';
| srpurdy/SharpEdgeCMS | framework_2_2_3/language/pt-BR/date_lang.php | PHP | mit | 3,088 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>The Red Matrix: Member List</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 id="projectlogo"><img alt="Logo" src="rhash-64.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">The Red Matrix
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.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="pages.html"><span>Related Pages</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>
<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>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classItem.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Item Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="classItem.html">Item</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="classItem.html#acc32426c0f465391be8a99ad810c7b8e">$channel</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a80dcd0fb7673776c0967839d429c2a0f">$children</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a90743c8348b13213275c223bb9333aa0">$comment_box_template</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a007424e3e3171dcfb4312a02161da6cd">$conversation</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#aec24e233f9098f902b1e57e60dcb2019">$data</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a9594df6014b0b6f45364ea7a34510130">$owner_name</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a078f95b4134ce3a1df344cf8d386f986">$owner_photo</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#afa54851df82962c7c42dea3cc9f5c92c">$owner_url</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a1a1e42877e6ac7af50286142ceb483d2">$parent</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a5b561415861f5b89b0733aacfe0428d1">$redirect_url</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a7f7bc059de377319282cb4ef4a828480">$template</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a1cb6aa8abdf7ea7daca647e40c8ea3a2">$threaded</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a5cfa6cf964f433a917a81cab079ff9d8">$toplevel</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a4a123ae98987c1e30ecb15c4edf5a3b8">$visiting</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a5d29ddecc073151a65a8e2ea2f6e4189">$wall_to_wall</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a248f45871ecfe82a08d1d4c0769b2eb2">__construct</a>($data)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a80dcd9d0f548c3ad550abe7e6981fb51">add_child</a>($item)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#abcdb0ea9bcd1576bc99bba9b8f700bb8">check_wall_to_wall</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#aca1e66988ed00cd627b2a359b72cd0ae">count_descendants</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classBaseObject.html#ac43f10e69ce80c78e4870636250fc8a2">get_app</a>()</td><td class="entry"><a class="el" href="classBaseObject.html">BaseObject</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a632185dd25c5caf277067c76230a4320">get_child</a>($id)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#aa0ee775ec94abccec6c798428835d001">get_children</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a3ee7667c2ec6cd7657328e27848c0bdf">get_comment_box</a>($indent)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a904421c7a427411bb2ab473bca872f63">get_comment_box_template</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a0c301aaed2b7d682728d18db3a22afa3">get_conversation</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#ad3638f93065693c1f69eb349feb1b7aa">get_data</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#ac6f1c96cc82a0dfb7e881fc70309ea3c">get_data_value</a>($name)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#ac0f27e58532612f6e7a54c8a621b9b92">get_id</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a67892aa23d19f4431bb2e5f43c74000e">get_owner_name</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#aa541bc4290e51bfd688d6921bebabc73">get_owner_photo</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a9f2d219da712390f59012fc32a342074">get_owner_url</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a4b92e3a9d6212c553aa2661489bd95d8">get_parent</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#a428f448f89a8629055ea3294eb942aea">get_redirect_url</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#aba23a0a9d89e316d2b343cc46d695d91">get_template</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#ad5dcbe0b94cb2d5719bc5b6bd8ad60c8">get_template_data</a>($alike, $dlike, $thread_level=1)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a5b2fafdca55aefeaa08993a5a60529f0">is_threaded</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#aa49e40f961dff66da32c5ae110e32993">is_toplevel</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a97c7feeea7f26a73176cb19faa455e12">is_visiting</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#aabf87ded59c25b5fe2b2296678e70509">is_wall_to_wall</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a2ce70ef63f9f4d86a09c351678806925">remove_child</a>($item)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#aa452b5bcd8dea12119b09212c615cb41">remove_parent</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr><td class="entry"><a class="el" href="classBaseObject.html#a0a9acda12d751692834cf6999f889223">set_app</a>($app)</td><td class="entry"><a class="el" href="classBaseObject.html">BaseObject</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classItem.html#aa8b1bbc4236890694635295e46d7fd72">set_conversation</a>($conv)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="classItem.html#a9890ff72662d5bba301d1f2dd8aec9d7">set_parent</a>($item)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
</table></div><!-- contents -->
</div><!-- doc-content -->
| waitman/red | doc/html/classItem-members.html | HTML | mit | 16,319 |
// Package time extends the time package in the stdlib.
package time
| goph/stdlib | time/time.go | GO | mit | 69 |
/* eslint-disable node/no-deprecated-api */
module.exports.pathBasename = pathBasename
module.exports.hasSuffix = hasSuffix
module.exports.serialize = serialize
module.exports.translate = translate
module.exports.stringToStream = stringToStream
module.exports.debrack = debrack
module.exports.stripLineEndings = stripLineEndings
module.exports.fullUrlForReq = fullUrlForReq
module.exports.routeResolvedFile = routeResolvedFile
module.exports.getQuota = getQuota
module.exports.overQuota = overQuota
module.exports.getContentType = getContentType
module.exports.parse = parse
const fs = require('fs')
const path = require('path')
const util = require('util')
const $rdf = require('rdflib')
const from = require('from2')
const url = require('url')
const debug = require('./debug').fs
const getSize = require('get-folder-size')
const ns = require('solid-namespace')($rdf)
/**
* Returns a fully qualified URL from an Express.js Request object.
* (It's insane that Express does not provide this natively.)
*
* Usage:
*
* ```
* console.log(util.fullUrlForReq(req))
* // -> https://example.com/path/to/resource?q1=v1
* ```
*
* @param req {IncomingRequest}
*
* @return {string}
*/
function fullUrlForReq (req) {
const fullUrl = url.format({
protocol: req.protocol,
host: req.get('host'),
pathname: url.resolve(req.baseUrl, req.path),
query: req.query
})
return fullUrl
}
/**
* Removes the `<` and `>` brackets around a string and returns it.
* Used by the `allow` handler in `verifyDelegator()` logic.
* @method debrack
*
* @param s {string}
*
* @return {string}
*/
function debrack (s) {
if (!s || s.length < 2) {
return s
}
if (s[0] !== '<') {
return s
}
if (s[s.length - 1] !== '>') {
return s
}
return s.substring(1, s.length - 1)
}
async function parse (data, baseUri, contentType) {
const graph = $rdf.graph()
return new Promise((resolve, reject) => {
try {
return $rdf.parse(data, graph, baseUri, contentType, (err, str) => {
if (err) {
return reject(err)
}
resolve(str)
})
} catch (err) {
return reject(err)
}
})
}
function pathBasename (fullpath) {
let bname = ''
if (fullpath) {
bname = (fullpath.lastIndexOf('/') === fullpath.length - 1)
? ''
: path.basename(fullpath)
}
return bname
}
function hasSuffix (path, suffixes) {
for (const i in suffixes) {
if (path.indexOf(suffixes[i], path.length - suffixes[i].length) !== -1) {
return true
}
}
return false
}
function serialize (graph, baseUri, contentType) {
return new Promise((resolve, reject) => {
try {
// target, kb, base, contentType, callback
$rdf.serialize(null, graph, baseUri, contentType, function (err, result) {
if (err) {
return reject(err)
}
if (result === undefined) {
return reject(new Error('Error serializing the graph to ' +
contentType))
}
resolve(result)
})
} catch (err) {
reject(err)
}
})
}
function translate (stream, baseUri, from, to) {
return new Promise((resolve, reject) => {
let data = ''
stream
.on('data', function (chunk) {
data += chunk
})
.on('end', function () {
const graph = $rdf.graph()
$rdf.parse(data, graph, baseUri, from, function (err) {
if (err) return reject(err)
resolve(serialize(graph, baseUri, to))
})
})
})
}
function stringToStream (string) {
return from(function (size, next) {
// if there's no more content
// left in the string, close the stream.
if (!string || string.length <= 0) {
return next(null, null)
}
// Pull in a new chunk of text,
// removing it from the string.
const chunk = string.slice(0, size)
string = string.slice(size)
// Emit "chunk" from the stream.
next(null, chunk)
})
}
/**
* Removes line endings from a given string. Used for WebID TLS Certificate
* generation.
*
* @param obj {string}
*
* @return {string}
*/
function stripLineEndings (obj) {
if (!obj) { return obj }
return obj.replace(/(\r\n|\n|\r)/gm, '')
}
/**
* Adds a route that serves a static file from another Node module
*/
function routeResolvedFile (router, path, file, appendFileName = true) {
const fullPath = appendFileName ? path + file.match(/[^/]+$/) : path
const fullFile = require.resolve(file)
router.get(fullPath, (req, res) => res.sendFile(fullFile))
}
/**
* Returns the number of bytes that the user owning the requested POD
* may store or Infinity if no limit
*/
async function getQuota (root, serverUri) {
const filename = path.join(root, 'settings/serverSide.ttl')
let prefs
try {
prefs = await _asyncReadfile(filename)
} catch (error) {
debug('Setting no quota. While reading serverSide.ttl, got ' + error)
return Infinity
}
const graph = $rdf.graph()
const storageUri = serverUri + '/'
try {
$rdf.parse(prefs, graph, storageUri, 'text/turtle')
} catch (error) {
throw new Error('Failed to parse serverSide.ttl, got ' + error)
}
return Number(graph.anyValue($rdf.sym(storageUri), ns.solid('storageQuota'))) || Infinity
}
/**
* Returns true of the user has already exceeded their quota, i.e. it
* will check if new requests should be rejected, which means they
* could PUT a large file and get away with it.
*/
async function overQuota (root, serverUri) {
const quota = await getQuota(root, serverUri)
if (quota === Infinity) {
return false
}
// TODO: cache this value?
const size = await actualSize(root)
return (size > quota)
}
/**
* Returns the number of bytes that is occupied by the actual files in
* the file system. IMPORTANT NOTE: Since it traverses the directory
* to find the actual file sizes, this does a costly operation, but
* neglible for the small quotas we currently allow. If the quotas
* grow bigger, this will significantly reduce write performance, and
* so it needs to be rewritten.
*/
function actualSize (root) {
return util.promisify(getSize)(root)
}
function _asyncReadfile (filename) {
return util.promisify(fs.readFile)(filename, 'utf-8')
}
/**
* Get the content type from a headers object
* @param headers An Express or Fetch API headers object
* @return {string} A content type string
*/
function getContentType (headers) {
const value = headers.get ? headers.get('content-type') : headers['content-type']
return value ? value.replace(/;.*/, '') : 'application/octet-stream'
}
| linkeddata/ldnode | lib/utils.js | JavaScript | mit | 6,588 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.