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
PP.lib.shader.shaders.color = { info: { name: 'color adjustement', author: 'Evan Wallace', link: 'https://github.com/evanw/glfx.js' }, uniforms: { textureIn: { type: "t", value: 0, texture: null }, brightness: { type: "f", value: 0.0 }, contrast: { type: "f", value: 0.0 }, hue: { type: "f", value: 0.0 }, saturation: { type: "f", value: 0.0 }, exposure: { type: "f", value: 0.0 }, negative: { type: "i", value: 0 } }, controls: { brightness: {min:-1, max: 1, step:.05}, contrast: {min:-1, max: 1, step:.05}, hue: {min:-1, max: 1, step:.05}, saturation: {min:-1, max: 1, step:.05}, exposure: {min:0, max: 1, step:.05}, negative: {} }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "varying vec2 vUv;", "uniform sampler2D textureIn;", "uniform float brightness;", "uniform float contrast;", "uniform float hue;", "uniform float saturation;", "uniform float exposure;", "uniform int negative;", "const float sqrtoftwo = 1.41421356237;", "void main() {", "vec4 color = texture2D(textureIn, vUv);", "color.rgb += brightness;", "if (contrast > 0.0) {", "color.rgb = (color.rgb - 0.5) / (1.0 - contrast) + 0.5;", "} else {", "color.rgb = (color.rgb - 0.5) * (1.0 + contrast) + 0.5;", "}", "/* hue adjustment, wolfram alpha: RotationTransform[angle, {1, 1, 1}][{x, y, z}] */", "float angle = hue * 3.14159265;", "float s = sin(angle), c = cos(angle);", "vec3 weights = (vec3(2.0 * c, -sqrt(3.0) * s - c, sqrt(3.0) * s - c) + 1.0) / 3.0;", "float len = length(color.rgb);", "color.rgb = vec3(", "dot(color.rgb, weights.xyz),", "dot(color.rgb, weights.zxy),", "dot(color.rgb, weights.yzx)", ");", "/* saturation adjustment */", "float average = (color.r + color.g + color.b) / 3.0;", "if (saturation > 0.0) {", "color.rgb += (average - color.rgb) * (1.0 - 1.0 / (1.0 - saturation));", "} else {", "color.rgb += (average - color.rgb) * (-saturation);", "}", "if(negative == 1){", " color.rgb = 1.0 - color.rgb;", "}", "if(exposure > 0.0){", " color = log2(vec4(pow(exposure + sqrtoftwo, 2.0))) * color;", "}", "gl_FragColor = color;", "}", ].join("\n") }; PP.lib.shader.shaders.bleach = { info: { name: 'Bleach', author: 'Brian Chirls @bchirls', link: 'https://github.com/brianchirls/Seriously.js' }, uniforms: { textureIn: { type: "t", value: 0, texture: null }, amount: { type: "f", value: 1.0 } }, controls: { amount: {min:0, max: 1, step:.1} }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ 'varying vec2 vUv;', 'uniform sampler2D textureIn;', 'uniform float amount;', 'const vec4 one = vec4(1.0);', 'const vec4 two = vec4(2.0);', 'const vec4 lumcoeff = vec4(0.2125,0.7154,0.0721,0.0);', 'vec4 overlay(vec4 myInput, vec4 previousmix, vec4 amount) {', ' float luminance = dot(previousmix,lumcoeff);', ' float mixamount = clamp((luminance - 0.45) * 10.0, 0.0, 1.0);', ' vec4 branch1 = two * previousmix * myInput;', ' vec4 branch2 = one - (two * (one - previousmix) * (one - myInput));', ' vec4 result = mix(branch1, branch2, vec4(mixamount) );', ' return mix(previousmix, result, amount);', '}', 'void main (void) {', ' vec4 pixel = texture2D(textureIn, vUv);', ' vec4 luma = vec4(vec3(dot(pixel,lumcoeff)), pixel.a);', ' gl_FragColor = overlay(luma, pixel, vec4(amount));', '}' ].join("\n") }; PP.lib.shader.shaders.plasma = { info: { name: 'plasma', author: 'iq', link: 'http://www.iquilezles.org' }, uniforms: { resolution: { type: "v2", value: new THREE.Vector2( PP.config.dimension.width, PP.config.dimension.height )}, time: { type: "f", value: 0.0}, speed: { type: "f", value: 0.01 }, saturation: { type: "f", value: 1.0 }, waves: { type: "f", value: .2 }, wiggle: { type: "f", value: 1000.0 }, scale: { type: "f", value: 1.0 } }, controls: { speed: {min:0, max: .1, step:.001}, saturation: {min:0, max: 10, step:.01}, waves: {min:0, max: .4, step:.0001}, wiggle: {min:0, max: 10000, step:1}, scale: {min:0, max: 10, step:.01} }, update: function(e){ e.material.uniforms.time.value += e.material.uniforms.speed.value; }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "varying vec2 vUv;", "uniform float time;", "uniform float saturation;", "uniform vec2 resolution;", "uniform float waves;", "uniform float wiggle;", "uniform float scale;", "void main() {", "float x = gl_FragCoord.x*scale;", "float y = gl_FragCoord.y*scale;", "float mov0 = x+y+cos(sin(time)*2.)*100.+sin(x/100.)*wiggle;", "float mov1 = y / resolution.y / waves + time;", "float mov2 = x / resolution.x / waves;", "float r = abs(sin(mov1+time)/2.+mov2/2.-mov1-mov2+time);", "float g = abs(sin(r+sin(mov0/1000.+time)+sin(y/40.+time)+sin((x+y)/100.)*3.));", "float b = abs(sin(g+cos(mov1+mov2+g)+cos(mov2)+sin(x/1000.)));", "vec3 plasma = vec3(r,g,b) * saturation;", "gl_FragColor = vec4( plasma ,1.0);", "}" ].join("\n") }; PP.lib.shader.shaders.plasma2 = { info: { name: 'plasma2', author: 'mrDoob', link: 'http://mrdoob.com' }, uniforms: { resolution: { type: "v2", value: new THREE.Vector2( PP.config.dimension.width, PP.config.dimension.height )}, time: { type: "f", value: 0.0}, speed: { type: "f", value: 0.01 }, qteX: { type: "f", value: 80.0 }, qteY: { type: "f", value: 10.0 }, intensity: { type: "f", value: 10.0 }, hue: { type: "f", value: .25 } }, controls: { speed: {min:0, max: 1, step:.001}, qteX: {min:0, max: 200, step:1}, qteY: {min:0, max: 200, step:1}, intensity: {min:0, max: 50, step:.1}, hue: {min:0, max: 2, step:.001} }, update: function(e){ e.material.uniforms.time.value += e.material.uniforms.speed.value; }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "uniform float time;", "uniform vec2 resolution;", "uniform float qteX;", "uniform float qteY;", "uniform float intensity;", "uniform float hue;", "void main() {", "vec2 position = gl_FragCoord.xy / resolution.xy;", "float color = 0.0;", "color += sin( position.x * cos( time / 15.0 ) * qteX ) + cos( position.y * cos( time / 15.0 ) * qteY );", "color += sin( position.y * sin( time / 10.0 ) * 40.0 ) + cos( position.x * sin( time / 25.0 ) * 40.0 );", "color += sin( position.x * sin( time / 5.0 ) * 10.0 ) + sin( position.y * sin( time / 35.0 ) * 80.0 );", "color *= sin( time / intensity ) * 0.5;", "gl_FragColor = vec4( vec3( color, color * (hue*2.0), sin( color + time / (hue*12.0) ) * (hue*3.0) ), 1.0 );", "}" ].join("\n") }; PP.lib.shader.shaders.plasma3 = { info: { name: 'plasma 3', author: 'Hakim El Hattab', link: 'http://hakim.se' }, uniforms: { color: { type: "c", value: new THREE.Color( 0x8CC6DA ) }, resolution: { type: "v2", value: new THREE.Vector2( PP.config.dimension.width, PP.config.dimension.height )}, time: { type: "f", value: 0.0}, speed: { type: "f", value: 0.05 }, scale: { type: "f", value: 10.0 }, quantity: { type: "f", value: 5.0 }, lens: { type: "f", value: 2.0 }, intensity: { type: "f", value: .5 } }, controls: { speed: {min:0, max: 1, step:.001}, scale: {min:0, max: 100, step:.1}, quantity: {min:0, max: 100, step:1}, lens: {min:0, max: 100, step:1}, intensity: {min:0, max: 5, step:.01} }, update: function(e){ e.material.uniforms.time.value += e.material.uniforms.speed.value; }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "uniform float time;", "uniform vec2 resolution;", "uniform vec3 color;", "uniform float scale;", "uniform float quantity;", "uniform float lens;", "uniform float intensity;", "void main() {", "vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / resolution.xy;", "p = p * scale;", "vec2 uv;", "float a = atan(p.y,p.x);", "float r = sqrt(dot(p,p));", "uv.x = 2.0*a/3.1416;", "uv.y = -time+ sin(7.0*r+time) + .7*cos(time+7.0*a);", "float w = intensity+1.0*(sin(time+lens*r)+ 1.0*cos(time+(quantity * 2.0)*a));", "gl_FragColor = vec4(color*w,1.0);", "}" ].join("\n") }; PP.lib.shader.shaders.plasma4 = { info: { name: 'plasma 4 (vortex)', author: 'Hakim El Hattab', link: 'http://hakim.se' }, uniforms: { color: { type: "c", value: new THREE.Color( 0xff5200 ) }, // 0x8CC6DA resolution: { type: "v2", value: new THREE.Vector2( PP.config.dimension.width, PP.config.dimension.height )}, time: { type: "f", value: 0.0}, speed: { type: "f", value: 0.05 }, scale: { type: "f", value: 20.0 }, wobble: { type: "f", value: 1.0 }, ripple: { type: "f", value: 5.0 }, light: { type: "f", value: 2.0 } }, controls: { speed: {min:0, max: 1, step:.001}, scale: {min:0, max: 100, step:.1}, wobble: {min:0, max: 50, step:1}, ripple: {min:0, max: 50, step:.1}, light: {min:1, max: 50, step:1} }, update: function(e){ e.material.uniforms.time.value += e.material.uniforms.speed.value; }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "uniform float time;", "uniform vec2 resolution;", "uniform vec3 color;", "uniform float scale;", "uniform float wobble;", "uniform float ripple;", "uniform float light;", "void main() {", "vec2 p = -1.0 + 2.0 * gl_FragCoord.xy / resolution.xy;", "vec2 uv;", "float a = atan(p.y,p.x);", "float r = sqrt(dot(p,p));", "float u = cos(a*(wobble * 2.0) + ripple * sin(-time + scale * r));", "float intensity = sqrt(pow(abs(p.x),light) + pow(abs(p.y),light));", "vec3 result = u*intensity*color;", "gl_FragColor = vec4(result,1.0);", "}" ].join("\n") }; PP.lib.shader.shaders.plasma5 = { info: { name: 'plasma 5', author: 'Silexars', link: 'http://www.silexars.com' }, uniforms: { resolution: { type: "v2", value: new THREE.Vector2( PP.config.dimension.width, PP.config.dimension.height )}, time: { type: "f", value: 0.0}, speed: { type: "f", value: 0.01 } }, controls: { speed: {min:0, max: .2, step:.001} }, update: function(e){ e.material.uniforms.time.value += e.material.uniforms.speed.value; }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "uniform vec2 resolution;", "uniform float time;", "void main() {", "vec3 col;", "float l,z=time;", "for(int i=0;i<3;i++){", "vec2 uv;", "vec2 p=gl_FragCoord.xy/resolution.xy;", "uv=p;", "p-=.5;", "p.x*=resolution.x/resolution.y;", "z+=.07;", "l=length(p);", "uv+=p/l*(sin(z)+1.)*abs(sin(l*9.-z*2.));", "col[i]=.01/length(abs(mod(uv,1.)-.5));", "}", "gl_FragColor=vec4(col/l,1.0);", "}" ].join("\n") }; PP.lib.shader.shaders.plasmaByTexture = { info: { name: 'plasma by texture', author: 'J3D', link: 'http://www.everyday3d.com/j3d/demo/011_Plasma.html' }, uniforms: { textureIn: { type: "t", value: 0, texture: null }, time: { type: "f", value: 0.0}, speed: { type: "f", value: 0.01 } }, controls: { speed: {min:0, max: .1, step:.001} }, update: function(e){ e.material.uniforms.time.value += e.material.uniforms.speed.value; }, vertexShader: PP.lib.vextexShaderBase.join("\n"), fragmentShader: [ "varying vec2 vUv;", "uniform sampler2D textureIn;", "uniform float time;", "void main() {", "vec2 ca = vec2(0.1, 0.2);", "vec2 cb = vec2(0.7, 0.9);", "float da = distance(vUv, ca);", "float db = distance(vUv, cb);", "float t = time * 0.5;", "float c1 = sin(da * cos(t) * 16.0 + t * 4.0);", "float c2 = cos(vUv.y * 8.0 + t);", "float c3 = cos(db * 14.0) + sin(t);", "float p = (c1 + c2 + c3) / 3.0;", "gl_FragColor = texture2D(textureIn, vec2(p, p));", "}" ].join("\n") };
rdad/PP.js
src/lib/Shader.color.js
JavaScript
mit
20,938
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'save', 'de-ch', { toolbar: 'Speichern' } );
waxe/waxe.xml
waxe/xml/static/ckeditor/plugins/save/lang/de-ch.js
JavaScript
mit
225
// // The MIT License(MIT) // // Copyright(c) 2014 Demonsaw LLC // // 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. #include "command/socket_command.h" #include "component/socket_component.h" #include "component/tunnel_component.h" #include "entity/entity.h" #include "http/http_socket.h" #include "message/request/request_message.h" #include "message/response/response_message.h" namespace eja { // Client socket_request_message::ptr client_socket_command::execute(const entity::ptr router) { return socket_request_message::create(); } void client_socket_command::execute(const entity::ptr router, const std::shared_ptr<socket_response_message> response) { // N/A } // Router socket_response_message::ptr router_socket_command::execute(const entity::ptr client, const http_socket::ptr socket, const socket_request_message::ptr request) { // Socket const auto socket_set = m_entity->get<socket_set_component>(); { thread_lock(socket_set); socket_set->erase(socket); } // Tunnel const auto tunnel_list = client->get<tunnel_list_component>(); { thread_lock(tunnel_list); tunnel_list->push_back(socket); } return socket_response_message::create(); } }
demonsaw/Code
ds3/3_core/command/socket_command.cpp
C++
mit
2,225
cookbook_path ["berks-cookbooks", "cookbooks", "site-cookbooks"] node_path "nodes" role_path "roles" environment_path "environments" data_bag_path "data_bags" #encrypted_data_bag_secret "data_bag_key" knife[:berkshelf_path] = "berks-cookbooks" Chef::Config[:ssl_verify_mode] = :verify_peer if defined? ::Chef
rudijs/devops-starter
app/kitchen/.chef/knife.rb
Ruby
mit
330
// Specifically test buffer module regression. import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer, transcode, TranscodeEncoding, constants, kMaxLength, kStringMaxLength, Blob, } from 'buffer'; const utf8Buffer = new Buffer('test'); const base64Buffer = new Buffer('', 'base64'); const octets: Uint8Array = new Uint8Array(123); const octetBuffer = new Buffer(octets); const sharedBuffer = new Buffer(octets.buffer); const copiedBuffer = new Buffer(utf8Buffer); console.log(Buffer.isBuffer(octetBuffer)); console.log(Buffer.isEncoding('utf8')); console.log(Buffer.byteLength('xyz123')); console.log(Buffer.byteLength('xyz123', 'ascii')); const result1 = Buffer.concat([utf8Buffer, base64Buffer] as ReadonlyArray<Uint8Array>); const result2 = Buffer.concat([utf8Buffer, base64Buffer] as ReadonlyArray<Uint8Array>, 9999999); // Module constants { const value1: number = constants.MAX_LENGTH; const value2: number = constants.MAX_STRING_LENGTH; const value3: number = kMaxLength; const value4: number = kStringMaxLength; } // Class Methods: Buffer.swap16(), Buffer.swa32(), Buffer.swap64() { const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); buf.swap16(); buf.swap32(); buf.swap64(); } // Class Method: Buffer.from(data) { // Array const buf1: Buffer = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72] as ReadonlyArray<number>); // Buffer const buf2: Buffer = Buffer.from(buf1, 1, 2); // String const buf3: Buffer = Buffer.from('this is a tést'); // ArrayBuffer const arrUint16: Uint16Array = new Uint16Array(2); arrUint16[0] = 5000; arrUint16[1] = 4000; const buf4: Buffer = Buffer.from(arrUint16.buffer); const arrUint8: Uint8Array = new Uint8Array(2); const buf5: Buffer = Buffer.from(arrUint8); const buf6: Buffer = Buffer.from(buf1); const sb: SharedArrayBuffer = {} as any; const buf7: Buffer = Buffer.from(sb); // $ExpectError Buffer.from({}); } // Class Method: Buffer.from(arrayBuffer[, byteOffset[, length]]) { const arr: Uint16Array = new Uint16Array(2); arr[0] = 5000; arr[1] = 4000; let buf: Buffer; buf = Buffer.from(arr.buffer, 1); buf = Buffer.from(arr.buffer, 0, 1); // $ExpectError Buffer.from("this is a test", 1, 1); // Ideally passing a normal Buffer would be a type error too, but it's not // since Buffer is assignable to ArrayBuffer currently } // Class Method: Buffer.from(str[, encoding]) { const buf2: Buffer = Buffer.from('7468697320697320612074c3a97374', 'hex'); /* tslint:disable-next-line no-construct */ Buffer.from(new String("DEADBEEF"), "hex"); // $ExpectError Buffer.from(buf2, 'hex'); } // Class Method: Buffer.from(object, [, byteOffset[, length]]) (Implicit coercion) { const pseudoBuf = { valueOf() { return Buffer.from([1, 2, 3]); } }; let buf: Buffer = Buffer.from(pseudoBuf); const pseudoString = { valueOf() { return "Hello"; }}; buf = Buffer.from(pseudoString); buf = Buffer.from(pseudoString, "utf-8"); // $ExpectError Buffer.from(pseudoString, 1, 2); const pseudoArrayBuf = { valueOf() { return new Uint16Array(2); } }; buf = Buffer.from(pseudoArrayBuf, 1, 1); } // Class Method: Buffer.alloc(size[, fill[, encoding]]) { const buf1: Buffer = Buffer.alloc(5); const buf2: Buffer = Buffer.alloc(5, 'a'); const buf3: Buffer = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); } // Class Method: Buffer.allocUnsafe(size) { const buf: Buffer = Buffer.allocUnsafe(5); } // Class Method: Buffer.allocUnsafeSlow(size) { const buf: Buffer = Buffer.allocUnsafeSlow(10); } // Class Method byteLenght { let len: number; len = Buffer.byteLength("foo"); len = Buffer.byteLength("foo", "utf8"); const b = Buffer.from("bar"); len = Buffer.byteLength(b); len = Buffer.byteLength(b, "utf16le"); const ab = new ArrayBuffer(15); len = Buffer.byteLength(ab); len = Buffer.byteLength(ab, "ascii"); const dv = new DataView(ab); len = Buffer.byteLength(dv); len = Buffer.byteLength(dv, "utf16le"); } // Class Method poolSize { let s: number; s = Buffer.poolSize; Buffer.poolSize = 4096; } // Test that TS 1.6 works with the 'as Buffer' annotation // on isBuffer. let a: Buffer | number; a = new Buffer(10); if (Buffer.isBuffer(a)) { a.writeUInt8(3, 4); } // write* methods return offsets. const b = new Buffer(16); let result: number = b.writeUInt32LE(0, 0); result = b.writeUInt16LE(0, 4); result = b.writeUInt8(0, 6); result = b.writeInt8(0, 7); result = b.writeDoubleLE(0, 8); result = b.write('asd'); result = b.write('asd', 'hex'); result = b.write('asd', 123, 'hex'); result = b.write('asd', 123, 123, 'hex'); // fill returns the input buffer. b.fill('a').fill('b'); { const buffer = new Buffer('123'); let index: number; index = buffer.indexOf("23"); index = buffer.indexOf("23", 1); index = buffer.indexOf("23", 1, "utf8"); index = buffer.indexOf(23); index = buffer.indexOf(buffer); } { const buffer = new Buffer('123'); let index: number; index = buffer.lastIndexOf("23"); index = buffer.lastIndexOf("23", 1); index = buffer.lastIndexOf("23", 1, "utf8"); index = buffer.lastIndexOf(23); index = buffer.lastIndexOf(buffer); } { const buffer = new Buffer('123'); const val: [number, number] = [1, 1]; /* comment out for --target es5 for (let entry of buffer.entries()) { val = entry; } */ } { const buffer = new Buffer('123'); let includes: boolean; includes = buffer.includes("23"); includes = buffer.includes("23", 1); includes = buffer.includes("23", 1, "utf8"); includes = buffer.includes(23); includes = buffer.includes(23, 1); includes = buffer.includes(23, 1, "utf8"); includes = buffer.includes(buffer); includes = buffer.includes(buffer, 1); includes = buffer.includes(buffer, 1, "utf8"); } { const buffer = new Buffer('123'); const val = 1; /* comment out for --target es5 for (let key of buffer.keys()) { val = key; } */ } { const buffer = new Buffer('123'); const val = 1; /* comment out for --target es5 for (let value of buffer.values()) { val = value; } */ } // Imported Buffer from buffer module works properly { const b = new ImportedBuffer('123'); b.writeUInt8(0, 6); const sb = new ImportedSlowBuffer(43); b.writeUInt8(0, 6); } // Buffer has Uint8Array's buffer field (an ArrayBuffer). { const buffer = new Buffer('123'); const octets = new Uint8Array(buffer.buffer); } // Inherited from Uint8Array but return buffer { const b = Buffer.from('asd'); let res: Buffer = b.reverse(); res = b.subarray(); res = b.subarray(1); res = b.subarray(1, 2); } // Buffer module, transcode function { transcode(Buffer.from('€'), 'utf8', 'ascii'); // $ExpectType Buffer const source: TranscodeEncoding = 'utf8'; const target: TranscodeEncoding = 'ascii'; transcode(Buffer.from('€'), source, target); // $ExpectType Buffer } { const a = Buffer.alloc(1000); a.writeBigInt64BE(123n); a.writeBigInt64LE(123n); a.writeBigUInt64BE(123n); a.writeBigUInt64LE(123n); let b: bigint = a.readBigInt64BE(123); b = a.readBigInt64LE(123); b = a.readBigUInt64LE(123); b = a.readBigUInt64BE(123); } async () => { const blob = new Blob(['asd', Buffer.from('test'), new Blob(['dummy'])], { type: 'application/javascript', encoding: 'base64', }); blob.size; // $ExpectType number blob.type; // $ExpectType string blob.arrayBuffer(); // $ExpectType Promise<ArrayBuffer> blob.text(); // $ExpectType Promise<string> blob.slice(); // $ExpectType Blob blob.slice(1); // $ExpectType Blob blob.slice(1, 2); // $ExpectType Blob blob.slice(1, 2, 'other'); // $ExpectType Blob };
georgemarshall/DefinitelyTyped
types/node/test/buffer.ts
TypeScript
mit
8,030
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the framework as light-weight as possible only the | absolute minimal resources are loaded by default. For example, | the database is not connected to automatically since no assumption | is made regarding whether you intend to use it. This file lets | you globally define which systems you would like loaded with every | request. | | ------------------------------------------------------------------- | Instructions | ------------------------------------------------------------------- | | These are the things you can load automatically: | | 1. Packages | 2. Libraries | 3. Drivers | 4. Helper files | 5. Custom config files | 6. Language files | 7. Models | */ /* | ------------------------------------------------------------------- | Auto-load Packages | ------------------------------------------------------------------- | Prototype: | | $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); | */ $autoload['packages'] = array(); /* | ------------------------------------------------------------------- | Auto-load Libraries | ------------------------------------------------------------------- | These are the classes located in system/libraries/ or your | application/libraries/ directory, with the addition of the | 'database' library, which is somewhat of a special case. | | Prototype: | | $autoload['libraries'] = array('database', 'email', 'session'); | | You can also supply an alternative library name to be assigned | in the controller: | | $autoload['libraries'] = array('user_agent' => 'ua'); */ $autoload['libraries'] = array('database','session','template','form_validation'); /* | ------------------------------------------------------------------- | Auto-load Drivers | ------------------------------------------------------------------- | These classes are located in system/libraries/ or in your | application/libraries/ directory, but are also placed inside their | own subdirectory and they extend the CI_Driver_Library class. They | offer multiple interchangeable driver options. | | Prototype: | | $autoload['drivers'] = array('cache'); | | You can also supply an alternative property name to be assigned in | the controller: | | $autoload['drivers'] = array('cache' => 'cch'); | */ $autoload['drivers'] = array(); /* | ------------------------------------------------------------------- | Auto-load Helper Files | ------------------------------------------------------------------- | Prototype: | | $autoload['helper'] = array('url', 'file'); */ $autoload['helper'] = array('url','form','html','file'); /* | ------------------------------------------------------------------- | Auto-load Config files | ------------------------------------------------------------------- | Prototype: | | $autoload['config'] = array('config1', 'config2'); | | NOTE: This item is intended for use ONLY if you have created custom | config files. Otherwise, leave it blank. | */ $autoload['config'] = array(); /* | ------------------------------------------------------------------- | Auto-load Language files | ------------------------------------------------------------------- | Prototype: | | $autoload['language'] = array('lang1', 'lang2'); | | NOTE: Do not include the "_lang" part of your file. For example | "codeigniter_lang.php" would be referenced as array('codeigniter'); | */ $autoload['language'] = array(); /* | ------------------------------------------------------------------- | Auto-load Models | ------------------------------------------------------------------- | Prototype: | | $autoload['model'] = array('first_model', 'second_model'); | | You can also supply an alternative model name to be assigned | in the controller: | | $autoload['model'] = array('first_model' => 'first'); */ $autoload['model'] = array();
usmanantharikta/slsbmc
application/config/autoload.php
PHP
mit
4,100
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>成語&nbsp;</b></th><td class="ztd2">力爭上游</td></tr> <tr><th class="ztd1"><b>典源&nbsp;</b></th><td class="ztd2"> ※#清.趙翼〈閒居讀書作〉詩六首之五(據<font class="dianuan_mark">《甌北詩鈔.五言古一》</font>引)<font size=-2 color="#999900"><font class="dianyuanfont"><b><i>1></i></b></font></font><br><font size=4 color="#808080">人面僅一尺,竟無一相肖。人心亦如面,意匠戛獨造。同閱一卷書,各自領其奧。同作一題文,各自擅其妙。問此胡為然,各有天在竅。乃知人巧處,亦天工所到。</font>所以才智人,不肯自棄暴。力欲爭上游,性靈乃其要。</font> <br><font class="dianuan_mark2">〔注解〕</font><br></font> <div class="Rulediv"><font class="english_word">(1)</font> 典故或見於清.薛福成〈滇緬分界大概情形疏〉。</font><font size=4 ></div><br><font class="dianuan_mark2">〔參考資料〕</font><br></font> 清.薛福成〈滇緬分界大概情形疏〉(據<font class="dianuan_mark">《庸盦文編.庸盦海外文編.卷二》</font>引)<br>臣因復照會外部,請以大金沙江為界,江東之境,均歸滇屬。明知英人多費兵餉,占此形勝,萬萬不肯輕棄,然必借此一著,方可力爭上游,振起全局。外部果堅拒不應,兩次停商而臣不顧,數次翻議而臣不顧,外部所稍依允者,印度部復出而撓之,印度部所稍鬆勁者,印度總督復出而梗之,印督至進兵盞達邊外之昔馬,攻擊野人,以示不願分地之意,臣相機理論,剛柔互用,外部謂此議非出自總理衙門,與雲貴總督,盡係使臣之私意,臣電請總理衙門向英使歐格訥辯論,以昭畫一。</td></tr> </td></tr></table></div> <!-- layoutclass_first_pic --><div class="layoutclass_second_pic"></div> <!-- layoutclass_second_pic --></div> <!-- layoutclass_pic --></td></tr></table>
BuzzAcademy/idioms-moe-unformatted-data
all-data/0-999/555-31.html
HTML
mit
2,267
// Karma configuration // Generated on Tue Sep 09 2014 13:58:24 GMT-0700 (PDT) 'use strict'; var browsers = ['Chrome', 'PhantomJS']; if ( /^win/.test(process.platform) ) { browsers = ['IE']; } if (process.env.TRAVIS ) { browsers = ['PhantomJS']; } module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['browserify', 'mocha'], browserify: { debug: true, transform: ['6to5ify'] }, // list of files / patterns to load in the browser files: [ 'node_modules/chai/chai.js', 'test/front-end/phantomjs-bind-polyfill.js', 'test/front-end/*-spec.js' ], // list of files to exclude exclude: [ '**/*.swp' ], // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { 'test/**/*-spec.js': ['browserify'] }, // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter reporters: ['progress'], // web server port port: 9876, // enable / disable colors in the output (reporters and logs) colors: true, // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG logLevel: config.LOG_INFO, // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher browsers: browsers, // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true }); };
chengzh2008/react-starter
karma.conf.js
JavaScript
mit
1,977
/* * Copyright (c) 2016-2017 Mozilla Foundation * * 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. * */ package nu.validator.xml; import java.io.IOException; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.xml.sax.Attributes; import org.xml.sax.ContentHandler; import org.xml.sax.DTDHandler; import org.xml.sax.EntityResolver; import org.xml.sax.ErrorHandler; import org.xml.sax.InputSource; import org.xml.sax.Locator; import org.xml.sax.SAXException; import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.SAXNotSupportedException; import org.xml.sax.XMLReader; public final class UseCountingXMLReaderWrapper implements XMLReader, ContentHandler { private final XMLReader wrappedReader; private ContentHandler contentHandler; private ErrorHandler errorHandler; private HttpServletRequest request; private StringBuilder documentContent; private boolean inBody; private boolean loggedLinkWithCharset; private boolean loggedScriptWithCharset; private boolean loggedStyleInBody; private boolean loggedRelAlternate; private boolean loggedRelAuthor; private boolean loggedRelBookmark; private boolean loggedRelCanonical; private boolean loggedRelDnsPrefetch; private boolean loggedRelExternal; private boolean loggedRelHelp; private boolean loggedRelIcon; private boolean loggedRelLicense; private boolean loggedRelNext; private boolean loggedRelNofollow; private boolean loggedRelNoopener; private boolean loggedRelNoreferrer; private boolean loggedRelPingback; private boolean loggedRelPreconnect; private boolean loggedRelPrefetch; private boolean loggedRelPreload; private boolean loggedRelPrerender; private boolean loggedRelPrev; private boolean loggedRelSearch; private boolean loggedRelServiceworker; private boolean loggedRelStylesheet; private boolean loggedRelTag; public UseCountingXMLReaderWrapper(XMLReader wrappedReader, HttpServletRequest request) { this.wrappedReader = wrappedReader; this.contentHandler = wrappedReader.getContentHandler(); this.request = request; this.inBody = false; this.loggedLinkWithCharset = false; this.loggedScriptWithCharset = false; this.loggedStyleInBody = false; this.loggedRelAlternate = false; this.loggedRelAuthor = false; this.loggedRelBookmark = false; this.loggedRelCanonical = false; this.loggedRelAlternate = false; this.loggedRelAuthor = false; this.loggedRelBookmark = false; this.loggedRelCanonical = false; this.loggedRelDnsPrefetch = false; this.loggedRelExternal = false; this.loggedRelHelp = false; this.loggedRelIcon = false; this.loggedRelLicense = false; this.loggedRelNext = false; this.loggedRelNofollow = false; this.loggedRelNoopener = false; this.loggedRelNoreferrer = false; this.loggedRelPingback = false; this.loggedRelPreconnect = false; this.loggedRelPrefetch = false; this.loggedRelPreload = false; this.loggedRelPrerender = false; this.loggedRelPrev = false; this.loggedRelSearch = false; this.loggedRelServiceworker = false; this.loggedRelStylesheet = false; this.loggedRelTag = false; this.documentContent = new StringBuilder(); wrappedReader.setContentHandler(this); } /** * @see org.xml.sax.helpers.XMLFilterImpl#characters(char[], int, int) */ @Override public void characters(char[] ch, int start, int length) throws SAXException { if (contentHandler == null) { return; } contentHandler.characters(ch, start, length); } /** * @see org.xml.sax.helpers.XMLFilterImpl#endElement(java.lang.String, * java.lang.String, java.lang.String) */ @Override public void endElement(String uri, String localName, String qName) throws SAXException { if (contentHandler == null) { return; } contentHandler.endElement(uri, localName, qName); } /** * @see org.xml.sax.helpers.XMLFilterImpl#startDocument() */ @Override public void startDocument() throws SAXException { if (contentHandler == null) { return; } documentContent.setLength(0); contentHandler.startDocument(); } /** * @see org.xml.sax.helpers.XMLFilterImpl#startElement(java.lang.String, * java.lang.String, java.lang.String, org.xml.sax.Attributes) */ @Override public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (contentHandler == null) { return; } if ("link".equals(localName)) { boolean hasAppleTouchIcon = false; boolean hasSizes = false; for (int i = 0; i < atts.getLength(); i++) { if ("rel".equals(atts.getLocalName(i))) { if (atts.getValue(i).contains("apple-touch-icon")) { hasAppleTouchIcon = true; } } else if ("sizes".equals(atts.getLocalName(i))) { hasSizes = true; } else if ("charset".equals(atts.getLocalName(i)) && !loggedLinkWithCharset) { loggedLinkWithCharset = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/link-with-charset-found", true); } } } if (request != null && hasAppleTouchIcon && hasSizes) { request.setAttribute( "http://validator.nu/properties/apple-touch-icon-with-sizes-found", true); } } else if ("script".equals(localName) && !loggedScriptWithCharset) { for (int i = 0; i < atts.getLength(); i++) { if ("charset".equals(atts.getLocalName(i))) { loggedScriptWithCharset = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/script-with-charset-found", true); } } } } else if (inBody && "style".equals(localName) && !loggedStyleInBody) { loggedStyleInBody = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/style-in-body-found", true); } } if (atts.getIndex("", "rel") > -1 && ("link".equals(localName) || "a".equals(localName))) { List<String> relValues = Arrays.asList( atts.getValue("", "rel").trim().toLowerCase() // .split("\\s+")); if (relValues.contains("alternate") && !loggedRelAlternate) { loggedRelAlternate = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-alternate-found", true); } } if (relValues.contains("author") && !loggedRelAuthor) { loggedRelAuthor = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-author-found", true); } } if (relValues.contains("bookmark") && !loggedRelBookmark) { loggedRelBookmark = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-bookmark-found", true); } } if (relValues.contains("canonical") && !loggedRelCanonical) { loggedRelCanonical = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-canonical-found", true); } } if (relValues.contains("dns-prefetch") && !loggedRelDnsPrefetch) { loggedRelDnsPrefetch = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-dns-prefetch-found", true); } } if (relValues.contains("external") && !loggedRelExternal) { loggedRelExternal = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-external-found", true); } } if (relValues.contains("help") && !loggedRelHelp) { loggedRelHelp = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-help-found", true); } } if (relValues.contains("icon") && !loggedRelIcon) { loggedRelIcon = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-icon-found", true); } } if (relValues.contains("license") && !loggedRelLicense) { loggedRelLicense = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-license-found", true); } } if (relValues.contains("next") && !loggedRelNext) { loggedRelNext = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-next-found", true); } } if (relValues.contains("nofollow") && !loggedRelNofollow) { loggedRelNofollow = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-nofollow-found", true); } } if (relValues.contains("noopener") && !loggedRelNoopener) { loggedRelNoopener = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-noopener-found", true); } } if (relValues.contains("noreferrer") && !loggedRelNoreferrer) { loggedRelNoreferrer = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-noreferrer-found", true); } } if (relValues.contains("pingback") && !loggedRelPingback) { loggedRelPingback = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-pingback-found", true); } } if (relValues.contains("preconnect") && !loggedRelPreconnect) { loggedRelPreconnect = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-preconnect-found", true); } } if (relValues.contains("prefetch") && !loggedRelPrefetch) { loggedRelPrefetch = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-prefetch-found", true); } } if (relValues.contains("preload") && !loggedRelPreload) { loggedRelPreload = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-preload-found", true); } } if (relValues.contains("prerender") && !loggedRelPrerender) { loggedRelPrerender = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-prerender-found", true); } } if (relValues.contains("prev") && !loggedRelPrev) { loggedRelPrev = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-prev-found", true); } } if (relValues.contains("search") && !loggedRelSearch) { loggedRelSearch = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-search-found", true); } } if (relValues.contains("serviceworker") && !loggedRelServiceworker) { loggedRelServiceworker = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-serviceworker-found", true); } } if (relValues.contains("stylesheet") && !loggedRelStylesheet) { loggedRelStylesheet = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-stylesheet-found", true); } } if (relValues.contains("tag") && !loggedRelTag) { loggedRelTag = true; if (request != null) { request.setAttribute( "http://validator.nu/properties/rel-tag-found", true); } } } contentHandler.startElement(uri, localName, qName, atts); } /** * @see org.xml.sax.helpers.XMLFilterImpl#setDocumentLocator(org.xml.sax.Locator) */ @Override public void setDocumentLocator(Locator locator) { if (contentHandler == null) { return; } contentHandler.setDocumentLocator(locator); } @Override public ContentHandler getContentHandler() { return contentHandler; } /** * @throws SAXException * @see org.xml.sax.ContentHandler#endDocument() */ @Override public void endDocument() throws SAXException { if (contentHandler == null) { return; } contentHandler.endDocument(); } /** * @param prefix * @throws SAXException * @see org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String) */ @Override public void endPrefixMapping(String prefix) throws SAXException { if (contentHandler == null) { return; } contentHandler.endPrefixMapping(prefix); } /** * @param ch * @param start * @param length * @throws SAXException * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int) */ @Override public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { if (contentHandler == null) { return; } contentHandler.ignorableWhitespace(ch, start, length); } /** * @param target * @param data * @throws SAXException * @see org.xml.sax.ContentHandler#processingInstruction(java.lang.String, * java.lang.String) */ @Override public void processingInstruction(String target, String data) throws SAXException { if (contentHandler == null) { return; } contentHandler.processingInstruction(target, data); } /** * @param name * @throws SAXException * @see org.xml.sax.ContentHandler#skippedEntity(java.lang.String) */ @Override public void skippedEntity(String name) throws SAXException { if (contentHandler == null) { return; } contentHandler.skippedEntity(name); } /** * @param prefix * @param uri * @throws SAXException * @see org.xml.sax.ContentHandler#startPrefixMapping(java.lang.String, * java.lang.String) */ @Override public void startPrefixMapping(String prefix, String uri) throws SAXException { if (contentHandler == null) { return; } contentHandler.startPrefixMapping(prefix, uri); } /** * @return * @see org.xml.sax.XMLReader#getDTDHandler() */ @Override public DTDHandler getDTDHandler() { return wrappedReader.getDTDHandler(); } /** * @return * @see org.xml.sax.XMLReader#getEntityResolver() */ @Override public EntityResolver getEntityResolver() { return wrappedReader.getEntityResolver(); } /** * @return * @see org.xml.sax.XMLReader#getErrorHandler() */ @Override public ErrorHandler getErrorHandler() { return errorHandler; } /** * @param name * @return * @throws SAXNotRecognizedException * @throws SAXNotSupportedException * @see org.xml.sax.XMLReader#getFeature(java.lang.String) */ @Override public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException { return wrappedReader.getFeature(name); } /** * @param name * @return * @throws SAXNotRecognizedException * @throws SAXNotSupportedException * @see org.xml.sax.XMLReader#getProperty(java.lang.String) */ @Override public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { return wrappedReader.getProperty(name); } /** * @param input * @throws IOException * @throws SAXException * @see org.xml.sax.XMLReader#parse(org.xml.sax.InputSource) */ @Override public void parse(InputSource input) throws IOException, SAXException { wrappedReader.parse(input); } /** * @param systemId * @throws IOException * @throws SAXException * @see org.xml.sax.XMLReader#parse(java.lang.String) */ @Override public void parse(String systemId) throws IOException, SAXException { wrappedReader.parse(systemId); } /** * @param handler * @see org.xml.sax.XMLReader#setContentHandler(org.xml.sax.ContentHandler) */ @Override public void setContentHandler(ContentHandler handler) { contentHandler = handler; } /** * @param handler * @see org.xml.sax.XMLReader#setDTDHandler(org.xml.sax.DTDHandler) */ @Override public void setDTDHandler(DTDHandler handler) { wrappedReader.setDTDHandler(handler); } /** * @param resolver * @see org.xml.sax.XMLReader#setEntityResolver(org.xml.sax.EntityResolver) */ @Override public void setEntityResolver(EntityResolver resolver) { wrappedReader.setEntityResolver(resolver); } /** * @param handler * @see org.xml.sax.XMLReader#setErrorHandler(org.xml.sax.ErrorHandler) */ @Override public void setErrorHandler(ErrorHandler handler) { wrappedReader.setErrorHandler(handler); } /** * @param name * @param value * @throws SAXNotRecognizedException * @throws SAXNotSupportedException * @see org.xml.sax.XMLReader#setFeature(java.lang.String, boolean) */ @Override public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { wrappedReader.setFeature(name, value); } /** * @param name * @param value * @throws SAXNotRecognizedException * @throws SAXNotSupportedException * @see org.xml.sax.XMLReader#setProperty(java.lang.String, * java.lang.Object) */ @Override public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { wrappedReader.setProperty(name, value); } }
tripu/validator
src/nu/validator/xml/UseCountingXMLReaderWrapper.java
Java
mit
22,613
"use strict"; var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var _ = require("../../../"); var _2 = _interopRequireDefault(_); describe(".toString()", function () { var User = (function (_Model) { _inherits(User, _Model); function User() { _classCallCheck(this, User); _get(Object.getPrototypeOf(User.prototype), "constructor", this).apply(this, arguments); } return User; })(_2["default"]); describe("User.find.one.where(\"id\", 1)", function () { it("should return a string representation of the chain", function () { User.find.one.where("id", 1).toString().should.eql("User.find.one.where(\"id\", 1)"); }); it("should not matter which order the chain is called in", function () { User.find.where("id", 1).one.toString().should.eql("User.find.one.where(\"id\", 1)"); }); }); describe("User.find.all.where(\"id\", 1)", function () { it("should return a string representation of the chain", function () { User.find.all.where("id", 1).toString().should.eql("User.find.all.where(\"id\", 1)"); }); }); describe("User.find.where(\"id\", \"<\", 10).andWhere(\"id\", \">\", 1)", function () { it("should return a string representation of the chain", function () { User.find.where("id", "<", 10).andWhere("id", ">", 1).toString().should.eql("User.find.where(\"id\", \"<\", 10).andWhere(\"id\", \">\", 1)"); }); }); describe("User.find.where(\"id\", \"<\", 10).andWhere(\"id\", \">\", 1).andWhere(\"id\", \"!=\", 3)", function () { it("should return a string representation of the chain", function () { User.find.where("id", "<", 10).andWhere("id", ">", 1).andWhere("id", "!=", 3).toString().should.eql("User.find.where(\"id\", \"<\", 10).andWhere(\"id\", \">\", 1).andWhere(\"id\", \"!=\", 3)"); }); }); describe("User.find.where(\"id\", \"<\", 10).orWhere(\"id\", \">\", 1)", function () { it("should return a string representation of the chain", function () { User.find.where("id", "<", 10).orWhere("id", ">", 1).toString().should.eql("User.find.where(\"id\", \"<\", 10).orWhere(\"id\", \">\", 1)"); }); }); describe("User.find.where(\"id\", \"<\", 10).groupBy(\"categoryId\")", function () { it("should return a string representation of the chain", function () { User.find.where("id", "<", 10).groupBy("categoryId").toString().should.eql("User.find.where(\"id\", \"<\", 10).groupBy(\"categoryId\")"); }); }); describe("User.find.where(\"id\", \"<\", 10).orderBy(\"categoryId\")", function () { it("should return a string representation of the chain", function () { User.find.where("id", "<", 10).orderBy("categoryId", "desc").toString().should.eql("User.find.where(\"id\", \"<\", 10).orderBy(\"categoryId\", \"desc\")"); }); }); describe("User.find.where(\"id\", \">\", 2).limit(4)", function () { it("should return a string representation of the chain", function () { User.find.where("id", ">", 2).limit(4).toString().should.eql("User.find.where(\"id\", \">\", 2).limit(4)"); }); }); describe("User.count.where(\"id\", 1)", function () { it("should return a string representation of the chain", function () { User.count.where("id", 1).toString().should.eql("User.count.where(\"id\", 1)"); }); }); });
FreeAllMedia/dovima
es5/spec/model/toString.spec.js
JavaScript
mit
4,683
namespace FTJFundChoice.OrionClient.Models.Enums { public enum HowIsAdvRegistered { Unknown = 0, SECRegistered = 1, StateRegistered = 2, Unregistered = 3, Other = 4 } }
FTJFundChoice/OrionClient
FTJFundChoice.OrionClient/Models/Enums/HowIsAdvRegistered.cs
C#
mit
220
<?php //Announce.php namespace litepubl\post; use litepubl\view\Lang; use litepubl\view\Schema; use litepubl\view\Vars; /** * Post announces * * @property-write callable $before * @property-write callable $after * @property-write callable $onHead * @method array before(array $params) * @method array after(array $params) * @method array onHead(array $params) */ class Announce extends \litepubl\core\Events { use \litepubl\core\PoolStorageTrait; protected function create() { parent::create(); $this->basename = 'announce'; $this->addEvents('before', 'after', 'onhead'); } public function getHead(array $items): string { $result = ''; if (count($items)) { Posts::i()->loadItems($items); foreach ($items as $id) { $post = Post::i($id); $result.= $post->rawhead; } } $r = $this->onHead(['content' => $result, 'items' => $items]); return $r['content']; } public function getPosts(array $items, Schema $schema): string { $r = $this->before(['content' => '', 'items' => $items, 'schema' => $schema]); $result = $r['content']; $theme = $schema->theme; $items = $r['items']; if (count($items)) { Posts::i()->loadItems($items); $vars = new Vars(); $vars->lang = Lang::i('default'); foreach ($items as $id) { $post = Post::i($id); $view = $post->view; $vars->post = $view; $view->setTheme($theme); $result.= $view->getAnnounce($schema->postannounce); // has $author.* tags in tml if (isset($vars->author)) { unset($vars->author); } } } if ($tmlContainer = $theme->templates['content.excerpts' . ($schema->postannounce == 'excerpt' ? '' : '.' . $schema->postannounce) ]) { $result = str_replace('$excerpt', $result, $theme->parse($tmlContainer)); } $r = $this->after(['content' => $result, 'items' => $items, 'schema' => $schema]); return $r['content']; } public function getNavi(array $items, Schema $schema, string $url, int $count): string { $result = $this->getPosts($items, $schema); $result .= $this->getPages($schema, $url, $count); return $result; } public function getPages(Schema $schema, string $url, int $count): string { $app = $this->getApp(); if ($schema->perpage) { $perpage = $schema->perpage; } else { $perpage = $app->options->perpage; } return $schema->theme->getPages($url, $app->context->request->page, ceil($count / $perpage)); } //used in plugins such as singlecat public function getLinks(string $where, string $tml): string { $db = $this->getApp()->db; $t = $db->posts; $items = $db->res2assoc( $db->query( "select $t.id, $t.title, $db->urlmap.url as url from $t, $db->urlmap where $t.status = 'published' and $where and $db->urlmap.id = $t.idurl" ) ); if (!count($items)) { return ''; } $result = ''; $args = new Args(); $theme = Theme::i(); foreach ($items as $item) { $args->add($item); $result.= $theme->parseArg($tml, $args); } return $result; } } //Factory.php namespace litepubl\post; use litepubl\comments\Comments; use litepubl\comments\Pingbacks; use litepubl\core\Users; use litepubl\pages\Users as UserPages; use litepubl\tag\Cats; use litepubl\tag\Tags; class Factory { use \litepubl\core\Singleton; public function __get($name) { return $this->{'get' . $name}(); } public function getPosts() { return Posts::i(); } public function getFiles() { return Files::i(); } public function getFileView() { return FileView::i(); } public function getTags() { return Tags::i(); } public function getCats() { return Cats::i(); } public function getCategories() { return $this->getcats(); } public function getTemplatecomments() { return Templates::i(); } public function getComments($id) { return Comments::i($id); } public function getPingbacks($id) { return Pingbacks::i($id); } public function getMeta($id) { return Meta::i($id); } public function getUsers() { return Users::i(); } public function getUserpages() { return UserPages::i(); } public function getView() { return View::i(); } } //Files.php namespace litepubl\post; use litepubl\core\Event; use litepubl\core\Str; use litepubl\view\Filter; /** * Manage uploaded files * * @property-read FilesItems $itemsPosts * @property-write callable $changed * @property-write callable $edited * @method array changed(array $params) * @method array edited(array $params) */ class Files extends \litepubl\core\Items { protected function create() { $this->dbversion = true; parent::create(); $this->basename = 'files'; $this->table = 'files'; $this->addEvents('changed', 'edited'); } public function getItemsPosts(): FilesItems { return FilesItems::i(); } public function preload(array $items) { $items = array_diff($items, array_keys($this->items)); if (count($items)) { $this->select(sprintf('(id in (%1$s)) or (parent in (%1$s))', implode(',', $items)), ''); } } public function getUrl(int $id): string { $item = $this->getItem($id); return $this->getApp()->site->files . '/files/' . $item['filename']; } public function getLink(int $id): string { $item = $this->getItem($id); return sprintf('<a href="%1$s/files/%2$s" title="%3$s">%4$s</a>', $this->getApp()->site->files, $item['filename'], $item['title'], $item['description']); } public function getHash(string $filename): string { return trim(base64_encode(md5_file($filename, true)), '='); } public function addItem(array $item): int { $realfile = $this->getApp()->paths->files . str_replace('/', DIRECTORY_SEPARATOR, $item['filename']); $item['author'] = $this->getApp()->options->user; $item['posted'] = Str::sqlDate(); $item['hash'] = $this->gethash($realfile); $item['size'] = filesize($realfile); //fix empty props foreach (['mime', 'title', 'description', 'keywords'] as $prop) { if (!isset($item[$prop])) { $item[$prop] = ''; } } return $this->insert($item); } public function insert(array $item): int { $item = $this->escape($item); $id = $this->db->add($item); $this->items[$id] = $item; $this->changed([]); $this->added(['id' => $id]); return $id; } public function escape(array $item): array { foreach (['title', 'description', 'keywords'] as $name) { $item[$name] = Filter::escape(Filter::unescape($item[$name])); } return $item; } public function edit(int $id, string $title, string $description, string $keywords) { $item = $this->getItem($id); if (($item['title'] == $title) && ($item['description'] == $description) && ($item['keywords'] == $keywords)) { return false; } $item['title'] = $title; $item['description'] = $description; $item['keywords'] = $keywords; $item = $this->escape($item); $this->items[$id] = $item; $this->db->updateassoc($item); $this->changed([]); $this->edited(['id' => $id]); return true; } public function delete($id) { if (!$this->itemExists($id)) { return false; } $list = $this->itemsposts->getposts($id); $this->itemsPosts->deleteItem($id); $this->itemsPosts->updatePosts($list, 'files'); $item = $this->getItem($id); if ($item['idperm'] == 0) { @unlink($this->getApp()->paths->files . str_replace('/', DIRECTORY_SEPARATOR, $item['filename'])); } else { @unlink($this->getApp()->paths->files . 'private' . DIRECTORY_SEPARATOR . basename($item['filename'])); $this->getApp()->router->delete('/files/' . $item['filename']); } parent::delete($id); if ((int)$item['preview']) { $this->delete($item['preview']); } if ((int)$item['midle']) { $this->delete($item['midle']); } $this->getdb('imghashes')->delete("id = $id"); $this->changed([]); $this->deleted(['id' => $id]); return true; } public function setContent(int $id, string $content): bool { if (!$this->itemExists($id)) { return false; } $item = $this->getitem($id); $realfile = $this->getApp()->paths->files . str_replace('/', DIRECTORY_SEPARATOR, $item['filename']); if (file_put_contents($realfile, $content)) { $item['hash'] = $this->gethash($realfile); $item['size'] = filesize($realfile); $this->items[$id] = $item; $item['id'] = $id; $this->db->updateassoc($item); } return true; } public function exists(string $filename): bool { return $this->indexOf('filename', $filename); } public function postEdited(Event $event) { $post = Post::i($event->id); $this->itemsPosts->setItems($post->id, $post->files); } } //FilesItems.php namespace litepubl\post; class FilesItems extends \litepubl\core\ItemsPosts { protected function create() { $this->dbversion = true; parent::create(); $this->basename = 'fileitems'; $this->table = 'filesitemsposts'; } } //FileView.php namespace litepubl\post; use litepubl\core\Str; use litepubl\view\Args; use litepubl\view\Theme; use litepubl\view\Vars; /** * View file list * * @property-write callable $onGetFilelist * @property-write callable $onlist * @method array onGetFilelist(array $params) * @method array onlist(array $params) */ class FileView extends \litepubl\core\Events { protected $templates; protected function create() { parent::create(); $this->basename = 'fileview'; $this->addEvents('ongetfilelist', 'onlist'); $this->templates = []; } public function getFiles(): Files { return Files::i(); } public function getFileList(array $list, bool $excerpt, Theme $theme): string { $r = $this->onGetFilelist(['list' => $list, 'excerpt' => $excerpt, 'result' => false]); if ($r['result']) { return $r['result']; } if (!count($list)) { return ''; } $tml = $excerpt ? $this->getTml($theme, 'content.excerpts.excerpt.filelist') : $this->getTml($theme, 'content.post.filelist'); return $this->getList($list, $tml); } public function getTml(Theme $theme, string $basekey): array { if (isset($this->templates[$theme->name][$basekey])) { return $this->templates[$theme->name][$basekey]; } $result = [ 'container' => $theme->templates[$basekey], ]; $key = $basekey . '.'; foreach ($theme->templates as $k => $v) { if (Str::begin($k, $key)) { $result[substr($k, strlen($key)) ] = $v; } } if (!isset($this->templates[$theme->name])) { $this->templates[$theme->name] = []; } $this->templates[$theme->name][$basekey] = $result; return $result; } public function getList(array $list, array $tml): string { if (!count($list)) { return ''; } $this->onList(['list' => $list]); $result = ''; $files = $this->getFiles(); $files->preLoad($list); //sort by media type $items = []; foreach ($list as $id) { if (!isset($files->items[$id])) { continue; } $item = $files->items[$id]; $type = $item['media']; if (isset($tml[$type])) { $items[$type][] = $id; } else { $items['file'][] = $id; } } $theme = Theme::i(); $args = new Args(); $args->count = count($list); $url = $this->getApp()->site->files . '/files/'; $preview = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); $vars = new Vars(); $vars->preview = $preview; $midle = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); $vars->midle = $midle; $index = 0; foreach ($items as $type => $subitems) { $args->subcount = count($subitems); $sublist = ''; foreach ($subitems as $typeindex => $id) { $item = $files->items[$id]; $args->add($item); $args->link = $url . $item['filename']; $args->id = $id; $args->typeindex = $typeindex; $args->index = $index++; $args->preview = ''; $preview->exchangeArray([]); if ($idmidle = (int)$item['midle']) { $midle->exchangeArray($files->getItem($idmidle)); $midle->link = $url . $midle->filename; $midle->json = $this->getJson($idmidle); } else { $midle->exchangeArray([]); $midle->link = ''; $midle->json = ''; } if ((int)$item['preview']) { $preview->exchangeArray($files->getItem($item['preview'])); } elseif ($type == 'image') { $preview->exchangeArray($item); $preview->id = $id; } elseif ($type == 'video') { $args->preview = $theme->parseArg($tml['videos.fallback'], $args); $preview->exchangeArray([]); } if ($preview->count()) { $preview->link = $url . $preview->filename; $args->preview = $theme->parseArg($tml['preview'], $args); } $args->json = $this->getJson($id); $sublist.= $theme->parseArg($tml[$type], $args); } $args->__set($type, $sublist); $result.= $theme->parseArg($tml[$type . 's'], $args); } $args->files = $result; return $theme->parseArg($tml['container'], $args); } public function getFirstImage(array $items): string { $files = $this->getFiles(); foreach ($items as $id) { $item = $files->getItem($id); if (('image' == $item['media']) && ($idpreview = (int)$item['preview'])) { $baseurl = $this->getApp()->site->files . '/files/'; $args = new Args(); $args->add($item); $args->link = $baseurl . $item['filename']; $args->json = $this->getJson($id); $preview = new \ArrayObject($files->getItem($idpreview), \ArrayObject::ARRAY_AS_PROPS); $preview->link = $baseurl . $preview->filename; $midle = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); if ($idmidle = (int)$item['midle']) { $midle->exchangeArray($files->getItem($idmidle)); $midle->link = $baseurl . $midle->filename; $midle->json = $this->getJson($idmidle); } else { $midle->json = ''; } $vars = new Vars(); $vars->preview = $preview; $vars->midle = $midle; $theme = Theme::i(); return $theme->parseArg($theme->templates['content.excerpts.excerpt.firstimage'], $args); } } return ''; } public function getJson(int $id): string { $item = $this->getFiles()->getItem($id); return Str::jsonAttr( [ 'id' => $id, 'link' => $this->getApp()->site->files . '/files/' . $item['filename'], 'width' => $item['width'], 'height' => $item['height'], 'size' => $item['size'], 'midle' => $item['midle'], 'preview' => $item['preview'], ] ); } } //Meta.php namespace litepubl\post; use litepubl\core\Str; class Meta extends \litepubl\core\Item { public static function getInstancename() { return 'postmeta'; } protected function create() { $this->table = 'postsmeta'; } public function getDbversion() { return true; } public function __set($name, $value) { if ($name == 'id') { return $this->setId($value); } $exists = isset($this->data[$name]); if ($exists && ($this->data[$name] == $value)) { return true; } $this->data[$name] = $value; $name = Str::quote($name); $value = Str::quote($value); if ($exists) { $this->db->update("value = $value", "id = $this->id and name = $name"); } else { $this->db->insertrow("(id, name, value) values ($this->id, $name, $value)"); } } public function __unset($name) { $this->remove($name); } //db public function load() { $this->LoadFromDB(); return true; } protected function LoadFromDB() { $db = $this->db; $res = $db->select("id = $this->id"); if (is_object($res)) { while ($r = $res->fetch_assoc()) { $this->data[$r['name']] = $r['value']; } } return true; } protected function SaveToDB() { $db = $this->db; $db->delete("id = $this->id"); foreach ($this->data as $name => $value) { if ($name == 'id') { continue; } $name = Str::quote($name); $value = Str::quote($value); $this->db->insertrow("(id, name, value) values ($this->id, $name, $value)"); } } public function remove($name) { if ($name == 'id') { return; } unset($this->data[$name]); $this->db->delete("id = $this->id and name = '$name'"); } public static function loaditems(array $items) { if (!count($items)) { return; } //exclude already loaded items if (isset(static ::$instances['postmeta'])) { $items = array_diff($items, array_keys(static ::$instances['postmeta'])); if (!count($items)) { return; } } else { static ::$instances['postmeta'] = []; } $instances = & static ::$instances['postmeta']; $db = static::getAppInstance()->db; $db->table = 'postsmeta'; $res = $db->select(sprintf('id in (%s)', implode(',', $items))); while ($row = $db->fetchassoc($res)) { $id = (int)$row['id']; if (!isset($instances[$id])) { $instances[$id] = new static(); $instances[$id]->data['id'] = $id; } $instances[$id]->data[$row['name']] = $row['value']; } return $items; } } //Post.php namespace litepubl\post; use litepubl\core\Arr; use litepubl\core\Str; use litepubl\view\Filter; /** * This is the post base class * * @property int $idschema * @property int $idurl * @property int $parent * @property int $author * @property int $revision * @property int $idperm * @property string $class * @property int $posted timestamp * @property string $title * @property string $title2 * @property string $filtered * @property string $excerpt * @property string $keywords * @property string $description * @property string $rawhead * @property string $moretitle * @property array $categories * @property array $tags * @property array $files * @property string $status enum * @property string $comstatus enum * @property int $pingenabled bool * @property string $password * @property int $commentscount * @property int $pingbackscount * @property int $pagescount * @property string $url * @property int $created timestamp * @property int $modified timestamp * @property array $pages * @property string $rawcontent * @property-read string $instanceName * @property-read string $childTable * @property-read Factory $factory * @property-read View $view * @property-read Meta $meta * @property string $link absolute url * @property-read string isoDate * @property string pubDate * @property-read string sqlDate * @property string $tagNames tags title separated by , * @property string $catNames categories title separated by , * @property-read string $category first category title * @property-read int $idCat first category ID * @property-read bool $hasPages true if has content or comments pages * @property-read int $pagesCount index from 1 * @property-read int $countPages maximum of content or comments pages * @property-read int commentPages * @property-read string lastCommentUrl * @property-read string schemaLink to generate new url */ class Post extends \litepubl\core\Item { use \litepubl\core\Callbacks; protected $childTable; protected $rawTable; protected $pagesTable; protected $childData; protected $cacheData; protected $rawData; protected $factory; private $metaInstance; public static function i($id = 0) { if ($id = (int) $id) { if (isset(static::$instances['post'][$id])) { $result = static::$instances['post'][$id]; } elseif ($result = static::loadPost($id)) { // nothing: set $instances in afterLoad method } else { $result = null; } } else { $result = parent::itemInstance(get_called_class(), $id); } return $result; } public static function loadPost(int $id) { if ($a = static::loadAssoc($id)) { $self = static::newPost($a['class']); $self->setAssoc($a); if ($table = $self->getChildTable()) { $items = static::selectChildItems( $table, [ $id ] ); $self->childData = $items[$id]; unset($self->childData['id']); } $self->afterLoad(); return $self; } return false; } public static function loadAssoc(int $id) { $db = static::getAppInstance()->db; $table = static::getChildTable(); if ($table) { return $db->selectAssoc( "select $db->posts.*, $db->prefix$table.*, $db->urlmap.url as url from $db->posts, $db->prefix$table, $db->urlmap where $db->posts.id = $id and $db->prefix$table.id = $id and $db->urlmap.id = $db->posts.idurl limit 1" ); } else { return $db->selectAssoc( "select $db->posts.*, $db->urlmap.url as url from $db->posts, $db->urlmap where $db->posts.id = $id and $db->urlmap.id = $db->posts.idurl limit 1" ); } } public static function newPost(string $classname): Post { $classname = $classname ? str_replace('-', '\\', $classname) : get_called_class(); return new $classname(); } public static function getInstanceName(): string { return 'post'; } public static function getChildTable(): string { return ''; } public static function selectChildItems(string $table, array $items): array { if (! $table || ! count($items)) { return []; } $db = static::getAppInstance()->db; $childTable = $db->prefix . $table; $list = implode(',', $items); $count = count($items); return $db->res2items($db->query("select $childTable.* from $childTable where id in ($list) limit $count")); } protected function create() { $this->table = 'posts'; $this->rawTable = 'rawposts'; $this->pagesTable = 'pages'; $this->childTable = static::getChildTable(); $options = $this->getApp()->options; $this->data = [ 'id' => 0, 'idschema' => 1, 'idurl' => 0, 'parent' => 0, 'author' => 0, 'revision' => 0, 'idperm' => 0, 'class' => str_replace('\\', '-', get_class($this)), 'posted' => static::ZERODATE, 'title' => '', 'title2' => '', 'filtered' => '', 'excerpt' => '', 'keywords' => '', 'description' => '', 'rawhead' => '', 'moretitle' => '', 'categories' => '', 'tags' => '', 'files' => '', 'status' => 'published', 'comstatus' => $options->comstatus, 'pingenabled' => $options->pingenabled ? '1' : '0', 'password' => '', 'commentscount' => 0, 'pingbackscount' => 0, 'pagescount' => 0 ]; $this->rawData = []; $this->childData = []; $this->cacheData = [ 'posted' => 0, 'categories' => [], 'tags' => [], 'files' => [], 'url' => '', 'created' => 0, 'modified' => 0, 'pages' => [] ]; $this->factory = $this->getfactory(); } public function getFactory() { return Factory::i(); } public function getView(): View { $view = $this->factory->getView(); $view->setPost($this); return $view; } public function __get($name) { if ($name == 'id') { $result = (int) $this->data['id']; } elseif (method_exists($this, $get = 'get' . $name)) { $result = $this->$get(); } elseif (array_key_exists($name, $this->cacheData)) { $result = $this->cacheData[$name]; } elseif (method_exists($this, $get = 'getCache' . $name)) { $result = $this->$get(); $this->cacheData[$name] = $result; } elseif (array_key_exists($name, $this->data)) { $result = $this->data[$name]; } elseif (array_key_exists($name, $this->childData)) { $result = $this->childData[$name]; } elseif (array_key_exists($name, $this->rawData)) { $result = $this->rawData[$name]; } else { $result = parent::__get($name); } return $result; } public function __set($name, $value) { if ($name == 'id') { $this->setId($value); } elseif (method_exists($this, $set = 'set' . $name)) { $this->$set($value); } elseif (array_key_exists($name, $this->cacheData)) { $this->cacheData[$name] = $value; } elseif (array_key_exists($name, $this->data)) { $this->data[$name] = $value; } elseif (array_key_exists($name, $this->childData)) { $this->childData[$name] = $value; } elseif (array_key_exists($name, $this->rawData)) { $this->rawData[$name] = $value; } else { return parent::__set($name, $value); } return true; } public function __isset($name) { return parent::__isset($name) || array_key_exists($name, $this->cacheData) || array_key_exists($name, $this->childData) || array_key_exists($name, $this->rawData) || method_exists($this, 'getCache' . $name); } public function load() { return true; } public function afterLoad() { static::$instances['post'][$this->id] = $this; parent::afterLoad(); } public function setAssoc(array $a) { $this->cacheData = []; foreach ($a as $k => $v) { if (array_key_exists($k, $this->data)) { $this->data[$k] = $v; } elseif (array_key_exists($k, $this->childData)) { $this->childData[$k] = $v; } elseif (array_key_exists($k, $this->rawData)) { $this->rawData[$k] = $v; } else { $this->cacheData[$k] = $v; } } } public function save() { if ($this->lockcount > 0) { return; } $this->saveToDB(); } protected function saveToDB() { if (! $this->id) { return $this->add(); } $this->db->updateAssoc($this->data); $this->modified = time(); $this->getDB($this->rawTable)->setValues($this->id, $this->rawData); if ($this->childTable) { $this->getDB($this->childTable)->setValues($this->id, $this->childData); } } public function add(): int { $a = $this->data; unset($a['id']); $id = $this->db->add($a); $rawData = $this->prepareRawData(); $rawData['id'] = $id; $this->getDB($this->rawTable)->insert($rawData); $this->setId($id); $this->savePages(); if ($this->childTable) { $childData = $this->childData; $childData['id'] = $id; $this->getDB($this->childTable)->insert($childData); } $this->idurl = $this->createUrl(); $this->db->setValue($id, 'idurl', $this->idurl); $this->triggerOnId(); return $id; } protected function prepareRawData() { if (! $this->created) { $this->created = time(); } if (! $this->modified) { $this->modified = time(); } if (! isset($this->rawData['rawcontent'])) { $this->rawData['rawcontent'] = ''; } return $this->rawData; } public function createUrl() { return $this->getApp()->router->add($this->url, get_class($this), (int) $this->id); } public function onId(callable $callback) { $this->addCallback('onid', $callback); } protected function triggerOnId() { $this->triggerCallback('onid'); $this->clearCallbacks('onid'); if (isset($this->metaInstance)) { $this->metaInstance->id = $this->id; $this->metaInstance->save(); } } public function free() { if (isset($this->metaInstance)) { $this->metaInstance->free(); } parent::free(); } public function getComments() { return $this->factory->getcomments($this->id); } public function getPingbacks() { return $this->factory->getpingbacks($this->id); } public function getMeta() { if (! isset($this->metaInstance)) { $this->metaInstance = $this->factory->getmeta($this->id); } return $this->metaInstance; } // props protected function setDataProp($name, $value, $sql) { $this->cacheData[$name] = $value; if (array_key_exists($name, $this->data)) { $this->data[$name] = $sql; } elseif (array_key_exists($name, $this->childData)) { $this->childData[$name] = $sql; } elseif (array_key_exists($name, $this->rawData)) { $this->rawData[$name] = $sql; } } protected function setArrProp($name, array $list) { Arr::clean($list); $this->setDataProp($name, $list, implode(',', $list)); } protected function setBoolProp($name, $value) { $this->setDataProp($name, $value, $value ? '1' : '0'); } // cache props protected function getArrProp($name) { if ($s = $this->data[$name]) { return explode(',', $s); } else { return []; } } protected function getCacheCategories() { return $this->getArrProp('categories'); } protected function getCacheTags() { return $this->getArrProp('tags'); } protected function getCacheFiles() { return $this->getArrProp('files'); } public function setFiles(array $list) { $this->setArrProp('files', $list); } public function setCategories(array $list) { $this->setArrProp('categories', $list); } public function setTags(array $list) { $this->setArrProp('tags', $list); } protected function getCachePosted() { return $this->data['posted'] == static::ZERODATE ? 0 : strtotime($this->data['posted']); } public function setPosted($timestamp) { $this->data['posted'] = Str::sqlDate($timestamp); $this->cacheData['posted'] = $timestamp; } protected function getCacheModified() { return ! isset($this->rawData['modified']) || $this->rawData['modified'] == static::ZERODATE ? 0 : strtotime($this->rawData['modified']); } public function setModified($timestamp) { $this->rawData['modified'] = Str::sqlDate($timestamp); $this->cacheData['modified'] = $timestamp; } protected function getCacheCreated() { return ! isset($this->rawData['created']) || $this->rawData['created'] == static::ZERODATE ? 0 : strtotime($this->rawData['created']); } public function setCreated($timestamp) { $this->rawData['created'] = Str::sqlDate($timestamp); $this->cacheData['created'] = $timestamp; } public function Getlink() { return $this->getApp()->site->url . $this->url; } public function Setlink($link) { if ($a = @parse_url($link)) { if (empty($a['query'])) { $this->url = $a['path']; } else { $this->url = $a['path'] . '?' . $a['query']; } } } public function setTitle($title) { $this->data['title'] = Filter::escape(Filter::unescape($title)); } public function getIsoDate() { return date('c', $this->posted); } public function getPubDate() { return date('r', $this->posted); } public function setPubDate($date) { $this->setDateProp('posted', strtotime($date)); } public function getSqlDate() { return $this->data['posted']; } public function getTagnames() { if (count($this->tags)) { $tags = $this->factory->tags; return implode(', ', $tags->getnames($this->tags)); } return ''; } public function setTagNames(string $names) { $tags = $this->factory->tags; $this->tags = $tags->createnames($names); } public function getCatnames() { if (count($this->categories)) { $categories = $this->factory->categories; return implode(', ', $categories->getnames($this->categories)); } return ''; } public function setCatNames($names) { $categories = $this->factory->categories; $catItems = $categories->createnames($names); if (! count($catItems)) { $defaultid = $categories->defaultid; if ($defaultid > 0) { $catItems[] = $defaultid; } } $this->categories = $catItems; } public function getCategory(): string { if ($idcat = $this->getidcat()) { return $this->factory->categories->getName($idcat); } return ''; } public function getIdCat(): int { if (($cats = $this->categories) && count($cats)) { return $cats[0]; } return 0; } public function checkRevision() { $this->updateRevision((int) $this->factory->posts->revision); } public function updateRevision($value) { if ($value != $this->revision) { $this->updateFiltered(); $posts = $this->factory->posts; $this->revision = (int) $posts->revision; if ($this->id > 0) { $this->save(); } } } public function updateFiltered() { Filter::i()->filterPost($this, $this->rawcontent); } public function setRawContent($s) { $this->rawData['rawcontent'] = $s; } public function getRawContent() { if (isset($this->rawData['rawcontent'])) { return $this->rawData['rawcontent']; } if (! $this->id) { return ''; } $this->rawData = $this->getDB($this->rawTable)->getItem($this->id); unset($this->rawData['id']); return $this->rawData['rawcontent']; } public function getPage(int $i) { if (isset($this->cacheData['pages'][$i])) { return $this->cacheData['pages'][$i]; } if ($this->id > 0) { if ($r = $this->getdb($this->pagesTable)->getAssoc("(id = $this->id) and (page = $i) limit 1")) { $s = $r['content']; } else { $s = false; } $this->cacheData['pages'][$i] = $s; return $s; } return false; } public function addPage($s) { $this->cacheData['pages'][] = $s; $this->data['pagescount'] = count($this->cacheData['pages']); if ($this->id > 0) { $this->getdb($this->pagesTable)->insert( [ 'id' => $this->id, 'page' => $this->data['pagescount'] - 1, 'content' => $s ] ); } } public function deletePages() { $this->cacheData['pages'] = []; $this->data['pagescount'] = 0; if ($this->id > 0) { $this->getdb($this->pagesTable)->idDelete($this->id); } } public function savePages() { if (isset($this->cacheData['pages'])) { $db = $this->getDB($this->pagesTable); foreach ($this->cacheData['pages'] as $index => $content) { $db->insert( [ 'id' => $this->id, 'page' => $index, 'content' => $content ] ); } } } public function getHasPages(): bool { return ($this->pagescount > 1) || ($this->commentpages > 1); } public function getPagesCount() { return $this->data['pagescount'] + 1; } public function getCountPages() { return max($this->pagescount, $this->commentpages); } public function getCommentPages() { $options = $this->getApp()->options; if (! $options->commentpages || ($this->commentscount <= $options->commentsperpage)) { return 1; } return ceil($this->commentscount / $options->commentsperpage); } public function getLastCommentUrl() { $c = $this->commentpages; $url = $this->url; if (($c > 1) && ! $this->getApp()->options->comments_invert_order) { $url = rtrim($url, '/') . "/page/$c/"; } return $url; } public function clearCache() { $this->getApp()->cache->clearUrl($this->url); } public function getSchemalink(): string { return 'post'; } public function setContent($s) { if (! is_string($s)) { $this->error('Error! Post content must be string'); } $this->rawcontent = $s; Filter::i()->filterpost($this, $s); } } //Posts.php namespace litepubl\post; use litepubl\core\Cron; use litepubl\core\Str; use litepubl\utils\LinkGenerator; use litepubl\view\Schemes; /** * Main class to manage posts * * @property int $archivescount * @property int $revision * @property bool $syncmeta * @property-write callable $edited * @property-write callable $changed * @property-write callable $singleCron * @property-write callable $onSelect * @method array edited(array $params) * @method array changed(array $params) * @method array singleCron(array $params) * @method array onselect(array $params) */ class Posts extends \litepubl\core\Items { const POSTCLASS = __NAMESPACE__ . '/Post'; public $itemcoclasses; public $archives; public $rawtable; public $childTable; public static function unsub($obj) { static ::i()->unbind($obj); } protected function create() { $this->dbversion = true; parent::create(); $this->table = 'posts'; $this->childTable = ''; $this->rawtable = 'rawposts'; $this->basename = 'posts/index'; $this->addEvents('edited', 'changed', 'singlecron', 'onselect'); $this->data['archivescount'] = 0; $this->data['revision'] = 0; $this->data['syncmeta'] = false; $this->addmap('itemcoclasses', []); } public function getItem($id) { if ($result = Post::i($id)) { return $result; } $this->error("Item $id not found in class " . get_class($this)); } public function findItems(string $where, string $limit): array { if (isset(Post::$instances['post']) && (count(Post::$instances['post']))) { $result = $this->db->idSelect($where . ' ' . $limit); $this->loadItems($result); return $result; } else { return $this->select($where, $limit); } } public function loadItems(array $items) { //exclude already loaded items if (!isset(Post::$instances['post'])) { Post::$instances['post'] = []; } $loaded = array_keys(Post::$instances['post']); $newitems = array_diff($items, $loaded); if (!count($newitems)) { return $items; } $newitems = $this->select(sprintf('%s.id in (%s)', $this->thistable, implode(',', $newitems)), 'limit ' . count($newitems)); return array_merge($newitems, array_intersect($loaded, $items)); } public function setAssoc(array $items) { if (!count($items)) { return []; } $result = []; $fileitems = []; foreach ($items as $a) { $post = Post::newPost($a['class']); $post->setAssoc($a); $post->afterLoad(); $result[] = $post->id; $f = $post->files; if (count($f)) { $fileitems = array_merge($fileitems, array_diff($f, $fileitems)); } } if ($this->syncmeta) { Meta::loadItems($result); } if (count($fileitems)) { Files::i()->preLoad($fileitems); } $this->onSelect(['items' => $result]); return $result; } public function select(string $where, string $limit): array { $db = $this->getApp()->db; if ($this->childTable) { $childTable = $db->prefix . $this->childTable; return $this->setAssoc( $db->res2items( $db->query( "select $db->posts.*, $childTable.*, $db->urlmap.url as url from $db->posts, $childTable, $db->urlmap where $where and $db->posts.id = $childTable.id and $db->urlmap.id = $db->posts.idurl $limit" ) ) ); } $items = $db->res2items( $db->query( "select $db->posts.*, $db->urlmap.url as url from $db->posts, $db->urlmap where $where and $db->urlmap.id = $db->posts.idurl $limit" ) ); if (!count($items)) { return []; } $subclasses = []; foreach ($items as $id => $item) { if (empty($item['class'])) { $items[$id]['class'] = static ::POSTCLASS; } elseif ($item['class'] != static ::POSTCLASS) { $subclasses[$item['class']][] = $id; } } foreach ($subclasses as $class => $list) { $class = str_replace('-', '\\', $class); $childDataItems = $class::selectChildItems($class::getChildTable(), $list); foreach ($childDataItems as $id => $childData) { $items[$id] = array_merge($items[$id], $childData); } } return $this->setAssoc($items); } public function getCount() { return $this->db->getcount("status<> 'deleted'"); } public function getChildsCount($where) { if (!$this->childTable) { return 0; } $db = $this->getApp()->db; $childTable = $db->prefix . $this->childTable; $res = $db->query( "SELECT COUNT($db->posts.id) as count FROM $db->posts, $childTable where $db->posts.status <> 'deleted' and $childTable.id = $db->posts.id $where" ); if ($res && ($r = $db->fetchassoc($res))) { return $r['count']; } return 0; } private function beforeChange($post) { $post->title = trim($post->title); $post->modified = time(); $post->revision = $this->revision; $post->class = str_replace('\\', '-', ltrim(get_class($post), '\\')); if (($post->status == 'published') && ($post->posted > time())) { $post->status = 'future'; } elseif (($post->status == 'future') && ($post->posted <= time())) { $post->status = 'published'; } } public function add(Post $post): int { $this->beforeChange($post); if (!$post->posted) { $post->posted = time(); } if ($post->posted <= time()) { if ($post->status == 'future') { $post->status = 'published'; } } else { if ($post->status == 'published') { $post->status = 'future'; } } if ($post->idschema == 1) { $schemes = Schemes::i(); if (isset($schemes->defaults['post'])) { $post->data['idschema'] = $schemes->defaults['post']; } } $post->url = LinkGenerator::i()->addUrl($post, $post->schemaLink); $id = $post->add(); $this->updated($post); $this->added(['id' => $id]); $this->changed([]); $this->getApp()->cache->clear(); return $id; } public function edit(Post $post) { $this->beforeChange($post); $linkgen = LinkGenerator::i(); $linkgen->editurl($post, $post->schemaLink); if ($post->posted <= time()) { if ($post->status == 'future') { $post->status = 'published'; } } else { if ($post->status == 'published') { $post->status = 'future'; } } $this->lock(); $post->save(); $this->updated($post); $this->unlock(); $this->edited(['id' => $post->id]); $this->changed([]); $this->getApp()->cache->clear(); } public function delete($id) { if (!$this->itemExists($id)) { return false; } $this->db->setvalue($id, 'status', 'deleted'); if ($this->childTable) { $db = $this->getdb($this->childTable); $db->delete("id = $id"); } $this->lock(); $this->PublishFuture(); $this->UpdateArchives(); $this->unlock(); $this->deleted(['id' => $id]); $this->changed([]); $this->getApp()->cache->clear(); return true; } public function updated(Post $post) { $this->PublishFuture(); $this->UpdateArchives(); Cron::i()->add('single', get_class($this), 'dosinglecron', $post->id); } public function UpdateArchives() { $this->archivescount = $this->db->getcount("status = 'published' and posted <= '" . Str::sqlDate() . "'"); } public function doSingleCron($id) { $this->PublishFuture(); Theme::$vars['post'] = Post::i($id); $this->singleCron(['id' => $id]); unset(Theme::$vars['post']); } public function hourcron() { $this->PublishFuture(); } private function publish($id) { $post = Post::i($id); $post->status = 'published'; $this->edit($post); } public function PublishFuture() { if ($list = $this->db->idselect(sprintf('status = \'future\' and posted <= \'%s\' order by posted asc', Str::sqlDate()))) { foreach ($list as $id) { $this->publish($id); } } } public function getRecent($author, $count) { $author = (int)$author; $where = "status != 'deleted'"; if ($author > 1) { $where.= " and author = $author"; } return $this->findItems($where, ' order by posted desc limit ' . (int)$count); } public function getPage(int $author, int $page, int $perpage, bool $invertorder): array { $from = ($page - 1) * $perpage; $t = $this->thistable; $where = "$t.status = 'published'"; if ($author > 1) { $where.= " and $t.author = $author"; } $order = $invertorder ? 'asc' : 'desc'; return $this->findItems($where, " order by $t.posted $order limit $from, $perpage"); } public function stripDrafts(array $items): array { if (count($items) == 0) { return []; } $list = implode(',', $items); $t = $this->thistable; return $this->db->idSelect("$t.status = 'published' and $t.id in ($list)"); } public function addRevision(): int { $this->data['revision']++; $this->save(); $this->getApp()->cache->clear(); return $this->data['revision']; } public function getSitemap($from, $count) { return $this->externalfunc( __class__, 'Getsitemap', [ $from, $count ] ); } } //View.php namespace litepubl\post; use litepubl\comments\Templates; use litepubl\core\Context; use litepubl\core\Str; use litepubl\view\Args; use litepubl\view\Lang; use litepubl\view\MainView; use litepubl\view\Schema; use litepubl\view\Theme; /** * Post view * * @property-write callable $beforeContent * @property-write callable $afterContent * @property-write callable $beforeExcerpt * @property-write callable $afterExcerpt * @property-write callable $onHead * @property-write callable $onTags * @method array beforeContent(array $params) * @method array afterContent(array $params) * @method array beforeExcerpt(array $params) * @method array afterExcerpt(array $params) * @method array onHead(array $params) * @method array onTags(array $params) */ class View extends \litepubl\core\Events implements \litepubl\view\ViewInterface { use \litepubl\core\PoolStorageTrait; public $post; public $context; private $prevPost; private $nextPost; private $themeInstance; protected function create() { parent::create(); $this->basename = 'postview'; $this->addEvents('beforecontent', 'aftercontent', 'beforeexcerpt', 'afterexcerpt', 'onhead', 'ontags'); $this->table = 'posts'; } public function setPost(Post $post) { $this->post = $post; $this->themeInstance = null; } public function getView() { return $this; } public function __get($name) { if (method_exists($this, $get = 'get' . $name)) { $result = $this->$get(); } else { switch ($name) { case 'catlinks': $result = $this->get_taglinks('categories', false); break; case 'taglinks': $result = $this->get_taglinks('tags', false); break; case 'excerptcatlinks': $result = $this->get_taglinks('categories', true); break; case 'excerpttaglinks': $result = $this->get_taglinks('tags', true); break; default: if (isset($this->post->$name)) { $result = $this->post->$name; } else { $result = parent::__get($name); } } } return $result; } public function __set($name, $value) { if (parent::__set($name, $value)) { return true; } if (isset($this->post->$name)) { $this->post->$name = $value; return true; } return false; } public function __call($name, $args) { if (method_exists($this->post, $name)) { return call_user_func_array([$this->post, $name], $args); } else { return parent::__call($name, $args); } } public function getPrev() { if (!is_null($this->prevPost)) { return $this->prevPost; } $this->prevPost = false; if ($id = $this->db->findid("status = 'published' and posted < '$this->sqldate' order by posted desc")) { $this->prevPost = Post::i($id); } return $this->prevPost; } public function getNext() { if (!is_null($this->nextPost)) { return $this->nextPost; } $this->nextPost = false; if ($id = $this->db->findid("status = 'published' and posted > '$this->sqldate' order by posted asc")) { $this->nextPost = Post::i($id); } return $this->nextPost; } public function getTheme(): Theme { if (!$this->themeInstance) { $this->themeInstance = $this->post ? $this->schema->theme : Theme::context(); } $this->themeInstance->setvar('post', $this); return $this->themeInstance; } public function setTheme(Theme $theme) { $this->themeInstance = $theme; } public function parseTml(string $path): string { $theme = $this->theme; return $theme->parse($theme->templates[$path]); } public function getExtra() { $theme = $this->theme; return $theme->parse($theme->extratml); } public function getBookmark() { return $this->theme->parse($this->theme->templates['content.post.bookmark']); } public function getRssComments(): string { return $this->getApp()->site->url . "/comments/$this->id.xml"; } public function getIdImage(): int { if (!count($this->files)) { return 0; } $files = $this->factory->files; foreach ($this->files as $id) { $item = $files->getItem($id); if ('image' == $item['media']) { return $id; } } return 0; } public function getImage(): string { if ($id = $this->getIdImage()) { return $this->factory->files->getUrl($id); } return ''; } public function getThumb(): string { if (!count($this->files)) { return ''; } $files = $this->factory->files; foreach ($this->files as $id) { $item = $files->getItem($id); if ((int)$item['preview']) { return $files->getUrl($item['preview']); } } return ''; } public function getFirstImage(): string { $items = $this->files; if (count($items)) { return $this->factory->fileView->getFirstImage($items); } return ''; } //template protected function get_taglinks($name, $excerpt) { $items = $this->__get($name); if (!count($items)) { return ''; } $theme = $this->theme; $tmlpath = $excerpt ? 'content.excerpts.excerpt' : 'content.post'; $tmlpath.= $name == 'tags' ? '.taglinks' : '.catlinks'; $tmlitem = $theme->templates[$tmlpath . '.item']; $tags = Str::begin($name, 'tag') ? $this->factory->tags : $this->factory->categories; $tags->loaditems($items); $args = new Args(); $list = []; foreach ($items as $id) { if ($id && ($item = $tags->getItem($id))) { $args->add($item); $list[] = $theme->parseArg($tmlitem, $args); } } $args->items = ' ' . implode($theme->templates[$tmlpath . '.divider'], $list); $result = $theme->parseArg($theme->templates[$tmlpath], $args); $r = $this->onTags(['tags' => $tags, 'excerpt' => $excerpt, 'content' => $result]); return $r['content']; } public function getDate(): string { return Lang::date($this->posted, $this->theme->templates['content.post.date']); } public function getExcerptDate(): string { return Lang::date($this->posted, $this->theme->templates['content.excerpts.excerpt.date']); } public function getDay(): string { return date($this->posted, 'D'); } public function getMonth(): string { return Lang::date($this->posted, 'M'); } public function getYear(): string { return date($this->posted, 'Y'); } public function getMoreLink(): string { if ($this->moretitle) { return $this->parsetml('content.excerpts.excerpt.morelink'); } return ''; } public function request(Context $context) { $app = $this->getApp(); if ($this->status != 'published') { if (!$app->options->show_draft_post) { $context->response->status = 404; return; } $groupname = $app->options->group; if (($groupname == 'admin') || ($groupname == 'editor')) { return; } if ($this->author == $app->options->user) { return; } $context->response->status = 404; return; } $this->context = $context; } public function getPage(): int { return $this->context->request->page; } public function getTitle(): string { return $this->post->title; } public function getHead(): string { $result = $this->rawhead; MainView::i()->ltoptions['idpost'] = $this->id; $theme = $this->theme; $result.= $theme->templates['head.post']; if ($prev = $this->prev) { Theme::$vars['prev'] = $prev; $result.= $theme->templates['head.post.prev']; } if ($next = $this->next) { Theme::$vars['next'] = $next; $result.= $theme->templates['head.post.next']; } if ($this->hascomm) { Lang::i('comment'); $result.= $theme->templates['head.post.rss']; } $result = $theme->parse($result); $r = $this->onHead(['post' => $this->post, 'content' => $result]); return $r['content']; } public function getKeywords(): string { if ($result = $this->post->keywords) { return $result; } else { return $this->Gettagnames(); } } public function getDescription(): string { return $this->post->description; } public function getIdSchema(): int { return $this->post->idschema; } public function setIdSchema(int $id) { if ($id != $this->idschema) { $this->post->idschema = $id; if ($this->id) { $this->post->db->setvalue($this->id, 'idschema', $id); } } } public function getSchema(): Schema { return Schema::getSchema($this); } //to override schema in post, id schema not changed public function getFileList(): string { $items = $this->files; if (!count($items) || (($this->page > 1) && $this->getApp()->options->hidefilesonpage)) { return ''; } $fileView = $this->factory->fileView; return $fileView->getFileList($items, false, $this->theme); } public function getExcerptFileList(): string { $items = $this->files; if (count($items) == 0) { return ''; } $fileView = $this->factory->fileView; return $fileView->getFileList($items, true, $this->theme); } public function getIndexTml() { $theme = $this->theme; if (!empty($theme->templates['index.post'])) { return $theme->templates['index.post']; } return false; } public function getCont(): string { return $this->parsetml('content.post'); } public function getRssLink(): string { if ($this->hascomm) { return $this->parseTml('content.post.rsslink'); } return ''; } public function onRssItem($item) { } public function getRss(): string { $this->getApp()->getLogManager()->trace('get rss deprecated post property'); return $this->post->excerpt; } public function getPrevNext(): string { $prev = ''; $next = ''; $theme = $this->theme; if ($prevpost = $this->prev) { Theme::$vars['prevpost'] = $prevpost; $prev = $theme->parse($theme->templates['content.post.prevnext.prev']); } if ($nextpost = $this->next) { Theme::$vars['nextpost'] = $nextpost; $next = $theme->parse($theme->templates['content.post.prevnext.next']); } if (($prev == '') && ($next == '')) { return ''; } $result = strtr( $theme->parse($theme->templates['content.post.prevnext']), [ '$prev' => $prev, '$next' => $next ] ); unset(Theme::$vars['prevpost'], Theme::$vars['nextpost']); return $result; } public function getCommentsLink(): string { $tml = sprintf('<a href="%s%s#comments">%%s</a>', $this->getApp()->site->url, $this->getlastcommenturl()); if (($this->comstatus == 'closed') || !$this->getApp()->options->commentspool) { if (($this->commentscount == 0) && (($this->comstatus == 'closed'))) { return ''; } return sprintf($tml, $this->getcmtcount()); } //inject php code return sprintf('<?php echo litepubl\comments\Pool::i()->getLink(%d, \'%s\'); ?>', $this->id, $tml); } public function getCmtCount(): string { $l = Lang::i()->ini['comment']; switch ($this->commentscount) { case 0: return $l[0]; case 1: return $l[1]; default: return sprintf($l[2], $this->commentscount); } } public function getTemplateComments(): string { $result = ''; $countpages = $this->countpages; if ($countpages > 1) { $result.= $this->theme->getpages($this->url, $this->page, $countpages); } if (($this->commentscount > 0) || ($this->comstatus != 'closed') || ($this->pingbackscount > 0)) { if (($countpages > 1) && ($this->commentpages < $this->page)) { $result.= $this->getCommentsLink(); } else { $result.= Templates::i()->getcomments($this); } } return $result; } public function getHasComm(): bool { return ($this->comstatus != 'closed') && ((int)$this->commentscount > 0); } public function getAnnounce(string $announceType): string { $tmlKey = 'content.excerpts.' . ($announceType == 'excerpt' ? 'excerpt' : $announceType . '.excerpt'); return $this->parseTml($tmlKey); } public function getExcerptContent(): string { $this->post->checkRevision(); $r = $this->beforeExcerpt(['post' => $this->post, 'content' => $this->excerpt]); $result = $this->replaceMore($r['content'], true); if ($this->getApp()->options->parsepost) { $result = $this->theme->parse($result); } $r = $this->afterExcerpt(['post' => $this->post, 'content' => $result]); return $r['content']; } public function replaceMore(string $content, string $excerpt): string { $more = $this->parseTml($excerpt ? 'content.excerpts.excerpt.morelink' : 'content.post.more'); $tag = '<!--more-->'; if (strpos($content, $tag)) { return str_replace($tag, $more, $content); } else { return $excerpt ? $content : $more . $content; } } protected function getTeaser(): string { $content = $this->filtered; $tag = '<!--more-->'; if ($i = strpos($content, $tag)) { $content = substr($content, $i + strlen($tag)); if (!Str::begin($content, '<p>')) { $content = '<p>' . $content; } return $content; } return ''; } protected function getContentPage(int $page): string { $result = ''; if ($page == 1) { $result.= $this->filtered; $result = $this->replaceMore($result, false); } elseif ($s = $this->post->getPage($page - 2)) { $result.= $s; } elseif ($page <= $this->commentpages) { } else { $result.= Lang::i()->notfound; } return $result; } public function getContent(): string { $this->post->checkRevision(); $r = $this->beforeContent(['post' => $this->post, 'content' => '']); $result = $r['content']; $result.= $this->getContentPage($this->page); if ($this->getApp()->options->parsepost) { $result = $this->theme->parse($result); } $r = $this->afterContent(['post' => $this->post, 'content' => $result]); return $r['content']; } //author protected function getAuthorName(): string { return $this->getusername($this->author, false); } protected function getAuthorLink() { return $this->getusername($this->author, true); } protected function getUserName($id, $link) { if ($id <= 1) { if ($link) { return sprintf('<a href="%s/" rel="author" title="%2$s">%2$s</a>', $this->getApp()->site->url, $this->getApp()->site->author); } else { return $this->getApp()->site->author; } } else { $users = $this->factory->users; if (!$users->itemExists($id)) { return ''; } $item = $users->getitem($id); if (!$link || ($item['website'] == '')) { return $item['name']; } return sprintf('<a href="%s/users.htm%sid=%s">%s</a>', $this->getApp()->site->url, $this->getApp()->site->q, $id, $item['name']); } } public function getAuthorPage() { $id = $this->author; if ($id <= 1) { return sprintf('<a href="%s/" rel="author" title="%2$s">%2$s</a>', $this->getApp()->site->url, $this->getApp()->site->author); } else { $pages = $this->factory->userpages; if (!$pages->itemExists($id)) { return ''; } $pages->id = $id; if ($pages->url == '') { return ''; } return sprintf('<a href="%s%s" title="%3$s" rel="author"><%3$s</a>', $this->getApp()->site->url, $pages->url, $pages->name); } } }
litepubl/cms
lib/post/kernel.php
PHP
mit
69,969
#ifndef GLMESH_H #define GLMESH_H #include <GLplus.hpp> namespace tinyobj { struct shape_t; } // end namespace tinyobj namespace GLmesh { class StaticMesh { std::shared_ptr<GLplus::Buffer> mpPositions; std::shared_ptr<GLplus::Buffer> mpTexcoords; std::shared_ptr<GLplus::Buffer> mpNormals; std::shared_ptr<GLplus::Buffer> mpIndices; size_t mVertexCount = 0; std::shared_ptr<GLplus::Texture2D> mpDiffuseTexture; public: void LoadShape(const tinyobj::shape_t& shape); void Render(GLplus::Program& program) const; }; } // end namespace GLmesh #endif // GLMESH_H
nguillemot/LD48-Beneath-The-Surface
GLmesh/include/GLmesh.hpp
C++
mit
605
github-org-feed-page ==================== Static site for your orgs gh-pages that shows off a feed of great things your team have been doing on github recently
pimterry/github-org-feed-page
README.md
Markdown
mit
162
# 888. Fair Candy Swap Difficulty: Easy https://leetcode.com/problems/fair-candy-swap/ Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of candy that Bob has. Since they are friends, they would like to exchange one candy bar each so that after the exchange, they both have the same total amount of candy. (The total amount of candy a person has is the sum of the sizes of candy bars they have.) Return an integer array ans where ans[0] is the size of the candy bar that Alice must exchange, and ans[1] is the size of the candy bar that Bob must exchange. If there are multiple answers, you may return any one of them. It is guaranteed an answer exists. **Example 1:** ``` Input: A = [1,1], B = [2,2] Output: [1,2] ``` **Example 2:** ``` Input: A = [1,2], B = [2,3] Output: [1,2] ``` **Example 3:** ``` Input: A = [2], B = [1,3] Output: [2,3] ``` **Example 4:** ``` Input: A = [1,2,5], B = [2,4] Output: [5,4] ``` **Note:** * 1 <= A.length <= 10000 * 1 <= B.length <= 10000 * 1 <= A[i] <= 100000 * 1 <= B[i] <= 100000 * It is guaranteed that Alice and Bob have different total amounts of candy. * It is guaranteed there exists an answer. Companies: Fidessa Related Topics: Array
jiadaizhao/LeetCode
0801-0900/0888-Fair Candy Swap/README.md
Markdown
mit
1,289
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>smooth scroll polyfill</title> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css"> <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700' rel='stylesheet' type='text/css'> <!-- rAF polyfill --> <script> // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel // MIT license (function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] || window[vendors[x]+'CancelRequestAnimationFrame']; } if (!window.requestAnimationFrame) window.requestAnimationFrame = function(callback, element) { var currTime = new Date().getTime(); var timeToCall = Math.max(0, 16 - (currTime - lastTime)); var id = window.setTimeout(function() { callback(currTime + timeToCall); }, timeToCall); lastTime = currTime + timeToCall; return id; }; if (!window.cancelAnimationFrame) window.cancelAnimationFrame = function(id) { clearTimeout(id); }; }()); </script> <!-- smooth scroll behavior polyfill --> <script src="src/smoothscroll.js"></script> <!-- site styles --> <style> body { background-color: #fefefe; color: #212121; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 20px; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .container { margin: 0 auto; max-width: 800px; padding: 40px; overflow: hidden; position: relative; } a { color: #f44336; text-decoration: none; } a:hover { text-decoration: underline; } header { background-color: #f44336; color: #fefefe; } .featured { background-color: #efefef; } .featured__link { display: inline-block; margin-right: 45px; } h1 { font-size: 2.75em; font-weight: 400; letter-spacing: -.03em; line-height: 1em; } p { line-height: 1.5em; } small { font-weight: 400; } code { font-family: Menlo, monospace; font-size: 15px; vertical-align: middle; } pre { overflow: auto; width: 100%; } pre code { font-size: 14px; } .actions { margin-top: 30px; } .btn { background-color: #f44336; border-width: 0; border-radius: 4px; color: #fefefe; cursor: pointer; font-weight: 700; padding: 6px 12px; text-transform: uppercase; transition: all .35s ease; } .btn:active { background-color: #d32f2f; } .scrollable-parent { background-color: #efefef; border-radius: 4px; margin: 20px 0 0; max-height: 200px; overflow: scroll; padding: 30px 50px; } .hello { text-align: center; } footer { background-color: #404040; color: #fefefe; font-size: 18px; } footer a { color: inherit; } </style> </head> <body> <header> <div class="container"> <h1>smooth scroll polyfill</h1> </div> </header> <main class="featured"> <div class="container"> <p>The <strong>Scroll Behavior</strong> specification has been introduced as an extension of the <strong>Window</strong> interface to allow for the developer to opt in to native smooth scrolling.</p> <p>Check the repository on <a href="https://github.com/iamdustan/smoothscroll">GitHub</a> or download the polyfill as an <a href="https://npmjs.org/smoothscroll-polyfill">npm module</a>.</p> </div> </main> <section class="sample sample-scrollToBottom"> <div class="container"> <h2>window.scroll <small>or</small> window.scrollTo</h2> <pre><code>window.scroll({ top: 2500, left: 0, behavior: 'smooth' });</code></pre> <div class="actions"> <button class="btn js-scroll-to-bottom">scroll to bottom</button> </div> </div> </section> <section class="sample sample-scrollBy"> <div class="container"> <h2>window.scrollBy</h2> <pre><code>window.scrollBy({ top: 100, left: 0, behavior: 'smooth' });</code></pre> <div class="actions"> <button class="btn js-scroll-by">scroll by 100 pixels</button> </div> </div> </section> <section class="sample sample-scrollBack"> <div class="container"> <h2>window.scrollBy</h2> <pre><code>window.scrollBy({ top: -100, left: 0, behavior: 'smooth' });</code></pre> <div class="actions"> <button class="btn js-scroll-back">scroll back 100 pixels</button> </div> </div> </section> <section class=" sample sample--scrollIntoView"> <div class="container"> <h2>element.scrollIntoView</h2> <pre><code>document.querySelector('.hello').scrollIntoView({ behavior: 'smooth' });</code></pre> <div class="actions"> <button class="btn js-scroll-into-hello">Scroll into view</button> </div> <article class="scrollable-parent"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui iure obcaecati, repudiandae aspernatur cumque recusandae adipisci consequuntur maiores, quo in nulla ratione facere distinctio beatae, quae consequatur ab labore dolorum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui iure obcaecati, repudiandae aspernatur cumque recusandae adipisci consequuntur maiores, quo in nulla ratione facere distinctio beatae, quae consequatur ab labore dolorum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui iure obcaecati, repudiandae aspernatur cumque recusandae adipisci consequuntur maiores, quo in nulla ratione facere distinctio beatae, quae consequatur ab labore dolorum.</p> <h3 class="hello"><em>hello!</em></h3> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui iure obcaecati, repudiandae aspernatur cumque recusandae adipisci consequuntur maiores, quo in nulla ratione facere distinctio beatae, quae consequatur ab labore dolorum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui iure obcaecati, repudiandae aspernatur cumque recusandae adipisci consequuntur maiores, quo in nulla ratione facere distinctio beatae, quae consequatur ab labore dolorum.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Qui iure obcaecati, repudiandae aspernatur cumque recusandae adipisci consequuntur maiores, quo in nulla ratione facere distinctio beatae, quae consequatur ab labore dolorum.</p> </article> </div> </section> <section class="sample sample-scrollToTop"> <div class="container"> <h2>Scroll to top</h2> <pre><code>window.scroll({ top: 0, left: 0, behavior: 'smooth' });</code></pre> <p><strong>or</strong></p> <pre><code>document.querySelector('header').scrollIntoView({ behavior: 'smooth' });</code></pre> <div class="actions"> <button class="btn js-scroll-to-top">scroll to top</button> </div> </div> </section> <section> <div class="container"></div> </section> <section class="featured"> <div class="container"> <a class="featured__link" href="https://github.com/iamdustan/smoothscroll">Polyfill on <strong>GitHub</strong></a> <a class="featured__link" href="https://github.com/iamdustan/smoothscroll-polyfill">Polyfill on <strong>npm</strong></a> <a class="featured__link" href="https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface">Draft on <strong>W3C</strong></a> <a class="featured__link" href="https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior">Documentation on <strong>MDN</strong></a> </div> </section> <footer> <div class="container"> <p>Polyfill written by <a href="https://twitter.com/iamdustan">Dustan Kasten</a> and <a href="https://twitter.com/jeremenichelli">Jeremias Menichelli</a></p> <p>All rights reserved &copy; <a href="https://iamdustan.github.io/smoothscroll">https://iamdustan.github.io/smoothscroll</a></p> </div> </footer> <script> // add event listener on load window.addEventListener('load', function() { // scroll to bottom document.querySelector('.js-scroll-to-bottom').addEventListener('click', function(e) { e.preventDefault(); window.scrollTo({ top: document.body.clientHeight - window.innerHeight, left: 0, behavior: 'smooth' }); }); // scroll to top document.querySelector('.js-scroll-to-top').addEventListener('click', function(e) { e.preventDefault(); document.querySelector('header').scrollIntoView({ behavior: 'smooth' }); }); // scroll by document.querySelector('.js-scroll-by').addEventListener('click', function(e) { e.preventDefault(); window.scrollBy({ top: 100, left: 0, behavior: 'smooth' }); }); // scroll back document.querySelector('.js-scroll-back').addEventListener('click', function(e) { e.preventDefault(); window.scrollBy({ top: -100, left: 0, behavior: 'smooth' }); }); // scroll into view document.querySelector('.js-scroll-into-hello').addEventListener('click', function(e) { e.preventDefault(); document.querySelector('.hello').scrollIntoView({ behavior: 'smooth' }); }); }); </script> </body> </html>
DylanPiercey/smoothscroll
index.html
HTML
mit
10,145
<?php namespace spec\Welp\MailchimpBundle\Event; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class WebhookEventSpec extends ObjectBehavior { function let($data = ['test' => 0, 'data' => 154158]) { $this->beConstructedWith($data); } function it_is_initializable() { $this->shouldHaveType('Welp\MailchimpBundle\Event\WebhookEvent'); $this->shouldHaveType('Symfony\Component\EventDispatcher\Event'); } function it_has_data($data) { $this->getData()->shouldReturn($data); } }
welpdev/mailchimp-bundle
spec/Event/WebhookEventSpec.php
PHP
mit
552
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. require 'rubygems' require 'rails/commands/server' =begin module Rails class Server alias :default_options_bk :default_options def default_options default_options_bk.merge!(Host: '120.27.94.221') end end end =end
xiaominghe2014/AccountsSys
config/boot.rb
Ruby
mit
365
<!DOCTYPE html> <html lang="en"> <head> <?php include "htmlheader.php" ?> <title>The War of 1812</title> </head> <body> <?php include "pageheader.php"; ?> <!-- Page Header --> <!-- Set your background image for this header on the line below. --> <header class="intro-header" style="background-image: url('img/1812ships.jpg')"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="post-heading"> <h1>The Second American War for Independence</h1> <h2 class="subheading">And what caused it</h2> <span class="meta">Content created by Wat Adair and Scotty Fulgham</span> </div> </div> </div> </div> </header> <!-- Post Content --> <article> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <p>At the outset of the 19th century, Great Britain was locked in a long and bitter conflict with Napoleon Bonaparte’s France. In an attempt to cut off supplies from reaching the enemy, both sides attempted to block the United States from trading with the other. In 1807, Britain passed the Orders in Council, which required neutral countries to obtain a license from its authorities before trading with France or French colonies.</p> <p>The Royal Navy also outraged Americans by its practice of impressment, or removing seamen from U.S. merchant vessels and forcing them to serve on behalf of the British. In 1809, the U.S. Congress repealed Thomas Jefferson’s unpopular Embargo Act, which by restricting trade had hurt Americans more than either Britain or France. Its replacement, the Non-Intercourse Act, specifically prohibited trade with Britain and France. It also proved ineffective, and in turn was replaced with a May 1810 bill stating that if either power dropped trade restrictions against the United States, Congress would in turn resume non-intercourse with the opposing power</p> <h2 class="section-heading">Causes of the War</h2> <p>In the War of 1812, the United States took on the greatest naval power in the world, Great Britain, in a conflict that would have an immense impact on the young country’s future. Causes of the war included British attempts to restrict U.S. trade, the Royal Navy’s impressment of American seamen and America’s desire to expand its territory.</p> <h2 class="section-heading">Effects of the War</h2> <p>The war of 1812 was thought of as a relatively minor war but it had some lasting results, It is thought of as a decisive turning point in canadians and native americans losing efforts to govern themselves. The war also put an end to the federalist party. The party had been accused of being unpatriotic because they were against war. Some people think the most important effect of the war was the confidence that it gave america.</p> <blockquote> "The war has renewed and reinstated the national feelings and character which the Revolution had given, and which were daily lessened. The people . . . . are more American; they feel and act more as a nation; and I hope the permanency of the Union is thereby better secured." - First Lady Dolley Madison, 24 August 1814, writing to her sister as the British attacked Washington, D.C. </blockquote> <p><i>Page content written by Wat Adair and Scotty Fulgham.</i></p> </div> </div> </div> </article> <hr> <?php include "pagefooter.php"; ?> </body> </html>
roll11tide/europeanwar
1812.html.php
PHP
mit
3,908
CardFlip ======== FlipContainerView is a class which allows users to set a front and a back view of a 'card', and flip it over to display a detail view. It supports panning, so the user can 'play' with the card, pulling it down gradually or by swiping it quickly. If the user is panning, the card will automatically flip once it gets to a specific point to prevent the user from rotating it 90 degrees, which would hide the card completely for a brief period (since we're rotating two dimensional views with no depth). This code was originally going to be used in a commercial project but was removed when we decided to use a different user experience flow. I thought this code was interesting enough to publish it in its own right. [![Demo](http://img.youtube.com/vi/uUrqgbIefd4/0.jpg)](http://www.youtube.com/watch?v=uUrqgbIefd4) FlipContainerView class ----------------------- This class is the interesting part and contains references to two <code>UIViews</code>, <code>frontView</code> and <code>backView</code>. Set these to whatever you like; they should be the same size as each other. <code>frontView</code> is, surprise, the front of the card. Here, it's intended that you display a view which has contains a summary, or a small amount of information. <code>backView</code> is the back of the card. Because this will be upside down when the view is flipped, you probably shouldn't put anything useful here. A background color is probably best. FlipContainerDelegate --------------------- Your view controller should implement this delegate. Don't forget to hook it up to <code>FlipContainerView</code>. The delegate provides the following methods: - <code>showFront</code> - <code>showBack</code> - <code>didShowFront</code> - <code>didShowBack</code> If you look at the provided sample project, you'll see that another view, <code>DetailView</code> is shown on screen once the card flips to the back. This is a bit of a 'fake' view, since it's meant to represent the real reverse side of the card. However, <code>FlipContainerView</code>'s <code>backView</code> will be upside down and stretched out once a flip occurs. You should, again, hook up your view controller to this <code>DetailView</code> via a delegate and call <code>flipToFront</code> when you want to close it. FAQs ==== **Does this require any frameworks?** Just <code>QuartzCore</code>. Be sure to include it under the "Link Binary with Libraries" section in your project's Build Phases. **Why does <code>DetailView</code> even exist? Why can't you use <code>backView</code>?** Because <code>backView</code> will be upside down when you flip the card over, and I wanted <code>DetailView</code> to take up the size of the screen. In the original purpose the code was written for, it was more than sufficient that I blow out <code>backView</code> to a big size to fill out the entirety of the screen and sneakily do an <code>addSubview</code> of the real view. Your purpose may be different, and you're more than free to make it do whatever you like with the code. **What sort of things can I put on each of the card views?** Anything you want. They're <code>UIView</code>s after all. **One big card isn't very useful!** Of course, you're free to put as many of these things on screen as you wish and make them as large as you like. It was actually designed to be a view inside Nick Lockwood's amazing [iCarousel](https://github.com/nicklockwood/iCarousel). **What iOS versions do I need?** I tested this on iOS 5 and 6. It should theoretically work on anything that uses ARC (iOS 4.3+) **Why does this require ARC?** Because I wrote this in 2013. **This isn't very customisable.** That'd be because originally this was developed to be part of a commercial project for one very specific purpose. You can tweak it however you like (eg, sensitivity, flip direction, etc) but there are currently no built-in options for that sort of thing. Licence ======= This project is licenced under the MIT Licence. You may use and change as you wish. No attribution is required. Developed by Jarrod Robins 2013.
jarrodrobins/CardFlip
README.md
Markdown
mit
4,113
body { font-family: Helvetica; color: #111; overflow: hidden; margin: 0; background: #f2f2f2; line-height: 1.5; } header { display: block; margin: 20% auto; text-align: center; font-size: 50px; font-weight: bold; } header span { position: relative; display: inline-block; } button { display: block; margin: 5px auto; padding: 5px; font-size: 15px; }
TheHagueUniversity/2017_1.1_programming-extended-course
wk4exercises/wk4exercise07/styles/mystyle.css
CSS
mit
398
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * 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. */ package org.spongepowered.api.data.types; import org.spongepowered.api.CatalogType; import org.spongepowered.api.util.annotation.CatalogedBy; /** * Represents a type of instrument. */ @CatalogedBy(InstrumentTypes.class) public interface InstrumentType extends CatalogType { }
frogocomics/SpongeAPI
src/main/java/org/spongepowered/api/data/types/InstrumentType.java
Java
mit
1,532
<?xml version="1.0" encoding="UTF-8"?> <!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" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <title>EMAT20005</title> </head> <body> <h1>EMAT20005: Product Realisation<br /> Personal Rapid Transit </h1> <p> Fall 2010, Weeks 6-10<br/> 11:00-13:00 on Wednesdays in QB 1.59<br/> Instructor: <a href="..">John Lees-Miller</a> </p> <h2>News</h2> <h3>8 Dec, 2010</h3> <ul> <li>To submit the <a href="#report">final report</a>: either upload the document and supporting sim files to <a href="http://www.bristol.ac.uk/fluff/">fluff</a> and <a href="http://www.enm.bris.ac.uk/scripts/contact/contact.php?id=aVubjyT9x14fDkHBxcR3DiU1UasS4F">send</a> me the link, or drop them in the appropriate box in the Queen's School Office.</li> </ul> <h3>2 Dec, 2010</h3> <ul> <li>Some additional help on gravity models is available <a href="more_notes_on_gravity_models.pdf">here</a>.</li> <li>Clarification: hand-drawn sketches are fine for task 4.</li> </ul> <h3>26 Nov, 2010</h3> <ul> <li>More details for the <a href="#presentation">presentation</a> and <a href="#report">final report</a> have been added.</li> <li>The page limit for the individual report has increased from 5 pages to 6, in order to allow two pages for each of the three iterations.</li> </ul> <h2>Outline</h2> <ul> <li>Week 6 (first class Wednesday, 17 Nov) <ul> <li>lecture: introduction to PRT + advice on choosing a site (<a href="https://www.bris.ac.uk/fluff/u/enjdlm/XvZ36tC1XtwJC3jbT4w5HwKE/">slides</a>)</li> <li>form groups</li> <li>set up <a href="#sim">ATS/CityMobil design and simulation tool</a></li> <li>choose a site</li> <li>start on demand estimates</li> </ul></li> <li>Week 7 <ul> <li>lecture: simulator demo, gravity models (<a href="https://www.bris.ac.uk/fluff/u/enjdlm/ZM5CBvsbnZCDtsYYt3e0CQKE/">slides</a>), performance metrics</li> <li>work on <a href="#demand">task 2</a> and <a href="#design">task 3a</a></li> <li><strong>Deliverable:</strong> in class, show me <ul> <li>a map of your site,</li> <li>the scale of the map, in meters per pixel, and</li> <li>the major demand generators in the area.</li> </ul></li> </ul></li> <li>Week 8 <ul> <li>questions and answers</li> <li>work on <a href="#design">task 3b/3c</a></li> <li><strong>Deliverable:</strong> at the start of class, show me a simulation file containing your group's preliminary network (<a href="#design">task 3a</a>), including stations and network.</li> </ul></li> <li>Week 9 <ul> <li>questions and answers</li> <li>work on <a href="#design">task 3c</a> and <a href="#design-stations">task 4</a></li> </ul></li> <li>Week 10 <ul> <li><strong>Deliverable:</strong> 10 minute <a href="#presentation">presentation</a> in class</li> <li><strong>Deliverable:</strong> <a href="#report">final report</a> due at 4pm on Friday, 17 December</li> </ul></li> </ul> <h2>Assessment</h2> <table border="1" cellpadding="4"> <tr><th>Item</th><th>Weight</th></tr> <tr><td>deliverable in week 7</td><td>5%</td></tr> <tr><td>deliverable in week 8</td><td>5%</td></tr> <tr><td>final presentation</td><td>30%</td></tr> <tr><td>final report: group component</td><td>40%</td></tr> <tr><td>final report: individual component</td><td>20%</td></tr> </table> <a name="sim"></a> <h2>Task 0 &nbsp; Get the simulation tool.</h2> <h3>For the Lab Machines</h3> <ol> <li>Download <a href="atscitymobil-20101123.zip">atscitymobil-20101123.zip</a> (2.5MB). (Right click and choose Save Target As...)</li> <li>Extract the zip file to your university drive.</li> <li>Double click <em>atscitymobil.exe</em> to launch.</li> </ol> <h3>For your Laptop / PC</h3> <p> Please use this <a href="http://www.ultraprt.com/uploads/citymobil/atscitymobil-bundled-setup-20101123.exe">installer</a> (20MB). You can use the zip file above on your home machine, but this installer sets up shortcuts and file associations. Note that the simulator only runs on Windows, at present. </p> <h3>Tutorial</h3> <p>This <a href="http://www.ultraprt.com/prt/implementation/simulation/">tutorial</a> is a good reference on how to use the simulator.</p> <a name="site"></a> <h2>Task 1 &nbsp; Choose a site.</h2> <p>You will need a map of the area, and you will have to know the scale of the map image, in meters per pixel. (Hint: A screenshot from <a href="http://www.google.com/earth">Google Earth</a> or <a href="http://maps.google.co.uk/">Google Maps</a> is good, and Google Earth has a tool for measuring distances.)</p> <p>You will need to identify the major demand generators in the area. (Hint: Google Earth and Google Maps label most major facilities and land marks.)</p> <p>Your site can be anywhere, but keep in mind that you have to estimate what the potential passenger demand will be. For ideas, you can go to <a href="http://www.ultraprt.com/applications">http://www.ultraprt.com/applications</a> but please do <em>not</em> use a site that has already been studied by someone else.</p> <p>Alternatively, you can work from a <a href="http://en.wikipedia.org/wiki/Greenfield_land">greenfield</a> (undeveloped) site, and develop your site around your PRT system, rather than trying to fit the system into an existing site. Keep in mind, however, that designing both the site and the PRT system will require more work. If your group wants to do this, please discuss with me before the end of week 6.</p> <p>Also note that your service area must not exceed 5km by 5km, due to limitations of the simulator.</p> <a name="site-outputs"></a> <h3>Outputs</h3> <ul> <li>A map of your site.</li> <li>The scale of the map, in meters per pixel.</li> <li>A list of the major demand generators in the area.</li> </ul> <a name="demand"></a> <h2>Task 2 &nbsp; Place stations and create demand scenarios.</h2> <p>Now you are ready to place stations near your site's demand generators. Exactly how many stations you place and where you place them depends on your estimates for the demand between pairs of stations. For this project, you will have to make several (educated) guesses at what the demand will be.</p> <p>When deciding where to place stations, you should be thinking about the following guidelines.</p> <ul> <li>Passengers will typically walk to or from the PRT stations. A good rule of thumb is that walking distances from each station to any nearby demand generators should be less than about 400m, because very few people will be willing to walk farther than this.</li> <li>You can build stations inside or on top of existing buildings, or you can build free-standing stations.</li> <li>To get an idea of the area required for a station, see these <a href="http://www.ultraprt.com/Bath/home-2/competition-details/stations/">design guidelines</a>. However, do not spend too much time worrying about all of the details; you will do some detailed design work, later.</li> <li>You must be able to access the stations with guideways.</li> <li>Stations cost money.</li> <li>The maximum number of stations is 20, due to simulator limitations.</li> <li>The minimum number of stations is 12.</li> <li>The total flow of vehicles (in flow plus out flow) at any station must not exceed 300 vehicles per hour. If you have a large demand generator, you should split the demand between several stations.</li> </ul> <p>To represent the passenger demand, you will create one <em>demand scenario</em> per group member. Each scenario describes the passenger demand at a particular time. For example, a large urban system might have an <em>AM peak</em> during morning rush hour, in which most of the demand is from the outskirts to the center. The evening rush hour is the <em>PM peak</em> demand. Outside of peak times, the passenger flows are typically smaller and more <em>balanced</em>; that is, the average flow into each region tends to equal the average flow out. Other scenarios might come from special events, for example at a stadium or convention centre. Each scenario will suggest different system optimisations.</p> <p>The data required to define a scenario are the in flow and out flow of vehicles at every station. As mentioned above, the total flow (in plus out) for each station must be less than 300 vehicles per hour. Also, the <em>sum</em> of all the in flows must equal the sum of all the out flows for each scenario; these sums are written <em>T<sub>i</sub></em> in the table below. Your scenarios must include one <em>balanced flow</em> scenario, in which the flow in and out of each station is (roughly) equal. The others should represent peaks with different spatial distribution and intensity. The total flow (<em>T<sub>i</sub></em>) for the whole system must be at least 700 vehicle trips per hour for the balanced scenario and at least 1300 trips per hour for the peak scenarios.</p> <p>Note that the simulator needs to know the demand in vehicles per hour; the average <em>vehicle occupancy</em> relates this to passengers per hour. To help calibrate your numbers, a reasonable guess at vehicle occupancy is 1.2 passengers per vehicle, but it will be higher for some sites, for example if there are many couples or families using the system. Different scenarios may also have different vehicle occupancies.</p> <p>Finally, for each scenario you will have to estimate how many hours per day (or per week) each scenario will occur. We will assume here that the actual demand will always be like one of the scenarios. This allows us to estimate the system's annual patronage, which will be important in subsequent sections.</p> <p>You may want to organize these data in a table like the following (it would be a good idea to use a spreadsheet).</p> <a name="scenario-table"></a> <table border="1" cellpadding="4"> <tr><th></th> <th colspan="6">Vehicle Flows (vehicles/hour)</th> </tr> <tr><th align="right">Scenario:</th> <th colspan="2">Balanced</th> <th colspan="2">AM Peak</th> <th colspan="2">PM Peak</th> </tr> <tr><th align="left">Station</th> <th>In</th><th>Out</th> <th>In</th><th>Out</th> <th>In</th><th>Out</th> </tr> <tr><td>Park Plaza East</td> <td align="right">80</td><td align="right">80</td> <td align="right">50</td><td align="right">250</td> <td align="right">200</td><td align="right">80</td> </tr> <tr><td>Park Plaza West</td> <td align="right">80</td><td align="right">80</td> <td align="right">50</td><td align="right">150</td> <td align="right">200</td><td align="right">30</td> </tr> <tr><td>...</td> <td align="right">...</td><td align="right">...</td> <td align="right">...</td><td align="right">...</td> <td align="right">...</td><td align="right">...</td> </tr> <tr><th align="left">Total In/Out</th> <td align="center">T<sub>1</sub></td> <td align="center">T<sub>1</sub></td> <td align="center">T<sub>2</sub></td> <td align="center">T<sub>2</sub></td> <td align="center">T<sub>3</sub></td> <td align="center">T<sub>3</sub></td> </tr> <tr><th align="left">Total Hourly Flow</th> <td align="center" colspan="2">T<sub>1</sub></td> <td align="center" colspan="2">T<sub>2</sub></td> <td align="center" colspan="2">T<sub>3</sub></td> </tr> <tr><td colspan="7">&nbsp;</td></tr> <tr><th align="left">Hours / Day</th> <td align="center" colspan="2">...</td> <td align="center" colspan="2">...</td> <td align="center" colspan="2">...</td> </tr> <tr><th align="left">Total Daily Vehicle Flow</th> <td align="center" colspan="6">...</td> </tr> <tr><th align="left">Vehicle Occupancy</th> <td align="center" colspan="6">1.2 passengers / vehicle</td> </tr> <tr><th align="left">Total Passengers / Day</th> <td align="center" colspan="6">...</td> </tr> <tr><th align="left">Total Passengers / Year</th> <td align="center" colspan="6">...</td> </tr> </table> <p>The next step is to run a <a href="http://en.wikipedia.org/wiki/Trip_distribution#Gravity_model">gravity model</a> to turn each scenario into an <em>origin-destination demand matrix</em> (OD matrix) that you can use with the simulator. The OD matrix specifies the average number of vehicle trips per hour between each pair of stations. The simulator uses this matrix to to generate passengers randomly according to a <a href="http://en.wikipedia.org/wiki/Poisson_process">Poisson process</a>.</p> <p>The equations for the gravity model and an algorithm for running it will be described in class. Use the straight-line distances between stations as "costs." (<strong>Note</strong>: the version of the sim that you downloaded in the first week did not report straight-line distances in the output; the <a href="#sim">latest version</a> does.) The suggested dispersion factor is 0.5. You are free to tweak this factor, or to edit the resulting OD matrix directly, if you wish, provided that the resulting matrix still satisfies the constraints on total flow at stations and for the system as a whole. You can implement the algorithm however you like; it's possible to do it in MATLAB or in Excel (hint: use the <a href="enable_excel_2007_solver.pdf">solver add-in</a>).</p> <h3>Outputs</h3> <ul> <li>An ATS/CityMobil simulator (.atscm) file with <ul> <li>your map as the background image,</li> <li>the background image scale (meters per pixel) set properly, and</li> <li>your stations in the simulator (place them with the Build tool).</li> </ul></li> <li>One scenario per group member.</li> <li>One origin-destination demand matrix per scenario.</li> <li>See also section 1 of the <a href="#report">final report</a>.</li> </ul> <a name="design"></a> <h2>Task 3&nbsp; Design a PRT network.</h2> <p>Now you are ready to connect the stations with guideways. We'll do this in three stages.</p> <ol type="a"> <li>As a group, create a preliminary network design based on the given guidelines (below). Here you should just aim to connect all the stations and add one depot, in order to get the simulation running.</li> <li>Individually, pick a demand scenario and optimise the network for that scenario using the given cost structure.</li> <li>As a group, agree on a final design that takes all of the scenarios into account.</li> </ol> <p>For (a), you will have to show me the simulation in class in week 8. For (b), each group member must write an appendix to the final report that documents the optimisation process for his/her scenario.</p> <h3>Guidelines</h3> <ul> <li>The vehicles can only run on dedicated guideway. Pedestrians and road traffic cannot mix with moving PRT vehicles. The usual way to accommodate this is to build elevated guideway, but you can also run at-grade (on the ground, protected by a fence), or below-grade (in a tunnel). At-grade guideway is much less expensive than elevated guideway (see below). (Note that the simulator does not distinguish between grades.)</li> <li>A good network design strategy is to connect the stations in one-way loops, like in the Urban Case Study network that comes bundled with the simulator.</li> <li>However, your loops should not be too long, because travel times for trips that go the long way around the loop become too large. For example, in the Urban Case Study, the trip time from station 8 to station 7 is only about 40s, but the travel time from 7 to 8 (the long way around) is nearly 8 minutes.</li> <li>Whether a long travel time between a pair of stations is acceptable depends on how much demand you expect between those stations. You may choose to build extra guideway to make some loops shorter or connect loops more directly, or you may choose to reverse the direction of a loop. Note that this depends on the scenario.</li> <li>Your guideways should follow existing rights of way (roads, alleys, railway lines, bridges) where possible. You can cut through buildings, especially if it allows you to put a station inside.</li> <li>Guideway costs money. However, you must connect all of the stations, and building extra guideway for more direct routes reduces travel times and the number of vehicles that you need.</li> <li>To reduce passenger waiting times at a station, you can construct a depot upstream of the station. Depots help the system's empty vehicle management algorithm to keep vehicles close to where they will be needed.</li> <li>See these <a href="http://www.ultraprt.com/Bath/home-2/competition-details/guideway/">design guidelines</a> for more information on the guideways. However, do not spend too much time worrying about all of the details; you will do some detailed design work for some small sections, later.</li> </ul> <h3>Cost Structure for Optimisation</h3> <p>Your objective is to minimize the sum of system costs and user costs, according to the following cost estimates.</p> <a name="costs"></a> <table border="1" cellpadding="4"> <tr><th>Capital Costs</th><th>&pound;</th></tr> <tr><td>1 vehicle</td><td align="right">50k</td></tr> <tr><td>1 station</td><td align="right">0.5M</td></tr> <tr><td>1 depot</td><td align="right">0.4M</td></tr> <tr><td>1 km at-grade guideway</td><td align="right">1M</td></tr> <tr><td>1 km elevated guideway</td><td align="right">2.5M</td></tr> <tr><td>other</td><td align="right">+50%</td></tr> <tr><th>Operating Costs</th><th>&pound;</th></tr> <tr><td>1 passenger km</td><td align="right">0.15</td></tr> <tr><th>User Costs</th><th>&pound;</th></tr> <tr><td>1 minute passenger travel time</td><td align="right">0.1</td></tr> <tr><td>1 minute passenger waiting time</td><td align="right">0.2</td></tr> </table> <p>Some of the costing inputs you can read directly from the network, but the number of vehicles and the mean passenger waiting time must be estimated by simulation. You should run 5 simulations and average the results, in order to get reliable numbers.</p> <p>The simulator output includes the total track length, but the simulator does not know anything about grades. For costing, you should estimate roughly what percentage of your track is at-grade. Do not worry about getting this exactly right, because all of the costs are rough; just try to estimate to within 10% or so.</p> <p>Once you have computed the base capital costs (vehicles, stations, depots and guideway), add 50% to cover related expenses, such as central control software and hardware, and a contingency.</p> <p>The system operating costs are given as a rough total cost per passenger kilometer. The simulator output includes the 'mean demand-weighted passenger trip distance,' which you can use to compute the operating cost per passenger trip. To scale this up to an annual operating cost, you will use the passenger trips / year figure from task 2. (Note that when you are optimising for a single scenario, multiplication by the total passengers per year effectively assumes that the demand is <em>always</em> like this scenario; this is not really true, but it is good enough for our purposes here.)</p> <p>You can approach the user costs similarly; here the relevant simulator outputs are the 'mean demand-weighted passenger trip time' and the mean passenger waiting time. The user costs are based on a standard <a href="http://en.wikipedia.org/wiki/Value_of_time">value of time</a> calculation.</p> <p>These costs are rough estimates. The main point is that there are trade-offs between capital costs, operating costs and user costs. For example, you can build more guideway to reduce travel times, which increases your capital cost but decreases your operating and user costs.</p> <p>Operating and user costs occur over time, so you should use <a href="http://en.wikipedia.org/wiki/Net_present_value">present values</a> to weigh them against capital costs. Assume the standard public works discount rate of 6% per year, and discount over 30 years.</p> <p>These costs give you a way of evaluating networks objectively. However, you should be mindful of externalities. For example, this does not include a cost for visual intrusion in culturally sensitive areas. It also does not account for changes in pedestrian flows; areas that were once quiet could become busy, and vice versa. You may reject a design that is "optimal" by cost but undesirable for other reasons.</p> <p>I strongly recommend that you create a spreadsheet to keep track of the cost calculations.</p> <h3>Constraints</h3> <ul> <li>Maximum number of depots is 5.</li> <li>90% of passengers should wait less than 60s (but somewhat longer tails are fine for peak demand scenarios).</li> <li>You may add new stations or remove stations that have low value for some or all scenarios (e.g. low demand and/or requiring a lot of extra infrastructure). However, you will then have to modify the scenarios and regenerate demand matrices. The total demand must stay within the limits given in task 2.</li> </ul> <a name="design-composite"></a> <h3>Optimising for Multiple Scenarios</h3> <p>Once each member of your group has optimised your initial network for one scenario, you will apply what you've learned to design a network that works for all of them.</p> <p>To evaluate your final network, use a <em>composite cost</em> that describes its combined performance on all of the demand scenarios. The capital costs apply to all scenarios equally, but the operating and user costs depend on the demand. So, you should evaluate your final network on each scenario and record the trip distance, trip time and passenger waiting time for each one. Then you should weight these by how frequently each scenario occurs (as estimated in task 2) and apply the cost model. (Also note that the number of vehicles you need is the largest number needed in any single scenario.)</p> <p>You should do several iterations to improve the composite cost. Again, be mindful of externalities.</p> <p>Note: The simulator will only let you enter one OD matrix at a time, but you can copy and paste OD matrices to/from the sim. The best way to do this is to copy the matrix from one simulation into Excel, delete the last row and the last column (the totals), and then paste it into another simulation.</p> <h3>Cost/Benefit Analysis</h3> <p>To measure the user benefits that could come from building a PRT system, one must compare user costs with PRT to user costs with existing modes. Here we will compare PRT with a very simplistic model of a bus system. Assume that users wait an average of 5 minutes for the bus, and that the average travel time by bus is the time taken to travel the <em>straight-line distance</em> from origin to destination at 12km/h. (<strong>Note</strong>: the version of the sim that you downloaded in the first week did not report straight-line distances in the output; the <a href="#sim">latest version</a> does.) Use the travel and waiting time savings (or not) with the <a href="#costs">cost table</a> to compute user benefits and system costs.</p> <h3>Outputs</h3> <p>See section 2 in the <a href="#report">final report</a>.</p> <a name="design-stations"></a> <h2>4 &nbsp; Design two stations in detail.</h2> <p>Pick two stations that are interesting or challenging, for example due to large size or passenger volumes, culturally sensitive surroundings or an architecturally interesting setting (e.g. integrated into a building), and produce a conceptual design for each one.</p> <p>You should produce a plan view of the station, keeping the following questions in mind.</p> <ul> <li>Precisely where will the station be built? Is it a standalone station, or is it part of an existing building? If it is standalone, is the station area on the ground, or is it elevated?</li> <li>How will you connect the guideways into and out of the station?</li> <li>How will passengers enter and exit the station?</li> <li>How many berths will the station have? (Hint: use the largest number of berths assigned by the simulation in any demand scenario.)</li> </ul> <p>The "vehicle side" of the station should be consistent with these <a href="http://www.ultraprt.com/Bath/home-2/competition-details/stations/">design guidelines</a>; see also <a href="http://www.ultraprt.com/prt/infra/station-design/">this overview</a>. The <a href="http://www.ultraprt.com/uploads/DesignContest/Station_Guide.skp">3D design template</a> (in SketchUp) is particularly helpful. You should consider where the main line and the on- and off-ramps will go. </p> <p>Note: hand-drawn sketches are fine.</p> <p><strong>Bonus</strong>: Construct an architectural rendering (e.g. in SketchUp) of the station. You can use the 3D design template in the guidelines to get started.</p> <h3>Outputs</h3> <p>See section 3 in the <a href="#report">final report</a>.</p> <a name="presentation"></a> <h2>Details for Presentation</h2> <p>Each group's presentation will last around 10 minutes with a few minutes for questions. Your presentation should cover essentially the same content as the main body of the <a href="#report">final report</a> (sections 1-3), with a focus on the visual and qualitative aspects of your design. Every group member must participate in the presentation.</p> <a name="report"></a> <h2>Details for Final Report</h2> <p>Each group should submit a report as described below. The main body of the report (sections 1-3) is limited to 5000 words on 20 pages. In addition, each group member should submit an appendix (see below) of up to 600 words on 6 pages. Note that these are word and page <em>maxima</em>: you should aim to be concise (and use lots of pictures!).</p> <p>In addition to the written report, please submit the following ATS/CityMobil (.atscm) simulation files.</p> <ul> <li>An .atscm file for your group's final network.</li> <li>An .atscm file for each group member's final network, including the demand matrix for the corresponding demand scenario.</li> </ul> <p>To submit: either upload the document and supporting sim files to <a href="http://www.bristol.ac.uk/fluff/">fluff</a> and <a href="http://www.enm.bris.ac.uk/scripts/contact/contact.php?id=aVubjyT9x14fDkHBxcR3DiU1UasS4F">send</a> me the link, or drop them in the appropriate box in the Queen's School Office.</p> <h3>Marking Criteria</h3> <p>The report will be marked according to the following five equally weighted criteria.</p> <ul> <li>Clarity and Conciseness</li> <li>Problem Analysis</li> <li>Down-select Logic (comparison of iterations / alternatives)</li> <li>Technology Employed</li> <li>Overall Design and Solution</li> </ul> <h3>Final Report Content</h3> <h4>Section 1: Site, Stations and Demand</h4> <ul> <li>A map of your site with labels for the main demand generators.</li> <li>Where is your site?</li> <li>Why might a PRT system be appropriate for this site?</li> <li>Table of scenarios (one per group member) like <a href="#scenario-table">this one</a>.</li> <li>How did you guess the in and out flows for your scenarios?</li> <li>How did you implement the gravity model?</li> <li>What is the effect of the dispersion parameter?</li> <li>What dispersion parameter value(s) did you use?</li> </ul> <h4>Section 2: System Optimisation</h4> <ul> <li>A screenshot of your group's initial network (<a href="#design">task 3a</a>).</li> <li>A record of three iterations / design alternatives evaluated according to <a href="#design-composite">composite cost</a>, one of which should be selected as your group's "final" (preferred) network. For each alternative, include <ul> <li>a screen shot of the network,</li> <li>a table of costs (capital, operating, user, total and net present value), and</li> <li>a brief description of how it relates to other alternatives and/or the networks you designed for individual scenarios.</li> </ul> </li> <li>Cost/benefit analysis for the final network: <ul> <li>Explain your cost/benefit calculations.</li> <li>Do the benefits outweigh the costs?</li> <li>What are the most important variables (travel times, waiting times, discount factor, ...)? (sensitivity)</li> <li>Are there other benefits or costs (not included in the cost function here) that could change the conclusion?</li> </ul></li> </ul> <h4>Section 3: Detailed Design for Two Stations</h4> <p>For each of the two stations:</p> <ul> <li>Why is the station interesting and/or challenging? What other stations did you consider before selecting these two?</li> <li>How many berths does the station need?</li> <li>What are the effects of the station on its surrounding area, in terms of economic, environmental and social impact?</li> <li>Plan view of the station (see <a href="#design-stations">guidelines</a>).</li> <li><strong>Bonus:</strong> include architectural renderings of one or both stations (see <a href="#design-stations">guidelines</a>).</li> </ul> <h4>Appendices (one per group member)</h4> <p>Your appendix should describe the process that you (individually) went through to optimise the system for your scenario. In particular, you should provide a record of three iterations; for each one, you should include </p> <ul> <li>a screen shot of the network,</li> <li>a table of costs (capital, operating, user, total and net present value), and</li> <li>a brief description of what changes you made and your rationale.</li> </ul> <h2>Other Resources</h2> <ul> <li><a href="http://en.wikipedia.org/wiki/Personal Rapid Transit">Personal Rapid Transit</a> on Wikipedia</li> <li><a href="http://www.ultraprt.com">ULTra PRT</a> company site</li> <li>ULTra PRT <a href="http://www.ultraprt.com/bath">design competition for Bath</a></li> <li>Other PRT vendors: <a href="http://www.2getthere.eu/">2getthere</a>, <a href="http://www.vectusprt.com/">Vectus PRT</a> </li> </ul> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-8962570-4"); pageTracker._trackPageview(); } catch(err) {}</script> </body> </html>
jdleesmiller/jdleesmiller.github.io
emat20005/index.html
HTML
mit
32,228
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Potlatch!</title> <link href="./static/css/skeleton.css" rel="stylesheet"> <link href="./static/css/style.css" rel="stylesheet"> </head> <body> <div id="potlatch"></div> <script src="./static/js/potlatch.js"></script> <script type="text/javascript"> var node = document.getElementById("potlatch"); var flags = { itemsUrl: "./items.json" }; Elm.Main.embed(node, flags); </script> </body> </html>
rafikdraoui/potlatch
index.html
HTML
mit
527
import React, { PropTypes } from 'react'; class Link extends React.Component { render() { return <article key={this.props.item.id} className="List-Item"> <header className="List-Item-Header"> <cite className="List-Item-Title"><a href={this.props.item.href}>{this.props.item.title}</a></cite> </header> <p className="List-Item-Description List-Item-Description--Short">{this.props.item.short_description}</p> </article> } } export default Link;
Shroder/essential-javascript-links
src/modules/List/components/Link/index.js
JavaScript
mit
484
# Udacity Software Debugging ## Introduction - Course: [**Udacity CS259 Software Debugging**](https://www.udacity.com/course/software-debugging--cs259) - Fee: **Free** - Approx. **1 ~ 2 Weeks** - Prerequisites - Python Experience - Review: **Excellent** - Content - [x] **Video + Script** - [x] **Quiz** - [x] **My Solutions** - [x] **Official Solutions** - **Syllabs** - Lesson 1: How Debuggers work - Lesson 2: Asserting Expectations - Lesson 3: Simplifying Failures - Lesson 4: Tracking Origins - Lesson 5: Reproducing Failures - Lesson 6: Learning from Mistakes - **What I Learned** - How to Manage Problems (Problem Life Cycle) - How to Analyse and Solve Problems ($\Phi$ Function, Delta Debugging) - How to Writer a Debugger in Python (Use `inspect` Object)
Quexint/Assignment-Driven-Learning
OCW/[Udacity]Software_Debugging/Readme.md
Markdown
mit
796
load File.expand_path("../target.rb", __FILE__) module ActiveRecord::Magic class Param::Server < Param::Target def default_options { online:nil, wildcard:false, autocomplete:true, current_server:false, current_channel:false, users:false, channels:false, servers:true, ambigious: false } end end end
gizmore/ricer4
lib/ricer4/core/params/server.rb
Ruby
mit
358
<!DOCTYPE html> <html lang="cs"> <head> <meta charset="utf-8"> <title>Cooland</title> <meta name="description" content=""> <meta name="author" content="Cooland"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="//fonts.googleapis.com/css?family=Merriweather:300,400,700&subset=latin,latin-ext" rel="stylesheet" type="text/css"> <link rel="icon" type="image/png" href="../img/favicon.png"> <link href="css/base.css" rel="stylesheet" type="text/css"> <link href="css/style.css" rel="stylesheet" type="text/css"> <link href="css/navmenu.css" rel="stylesheet" type="text/css"> <link href="css/gallery.css" rel="stylesheet" type="text/css"> </head> <body> <div id="header"> <div class="container main-nav"> <a href="/index" class="main-nav__logo"> <img src="img/cooland_logo.jpg" alt="Cooland"> </a> <nav class="fl"> <a href="" class="main-nav__burger js-nav"> <i class="icon-reorder"></i> </a> <div class="main-nav__block"> <div class="nav__left"> <a href="/o_nas" class=" ">O nás</a> <a href="/vize" class="">Vize</a> <a href="/nabizime" class="">Nabízíme</a> </div> <div class="nav__right"> <a href="/akce" class="">Akce</a> <a href="/media" class="">Média</a> <a href="/partaci" class="">Parťáci</a> </div> </div> </nav> </div> </div> <div id="main" class="container"> <h2>PARTNEŘI</h2> <h4>Domácí Květinářství</h4> <p>Květinářství, kde se pěstují, váží a prodávají kytice z českého venkova, pěstované pod širým nebem s láskou a péčí. </p> <p>Od roku 2016 je Domácí květinářství součástí iniciativy komunitou podporovaného zemědělství <a href="https://plus.google.com/u/0/communities/101783831094360976826" target="_blank">KPZ CooLAND</a>.</p> <p><a href="http://www.domacikvetinarstvi.cz" target="_blank">www.domacikvetinarstvi.cz</a></p> <h4>Ekumenická akademie</h4> <p>Akademie prosazuje alternativní přístupy při řešení současných světových ekonomických, sociálních a ekologických problémů a zároveň je přenáší do praxe v podobě konkrétních projektů.</p> <p>CooLAND je partnerem kampaně <a href="http://www.pestujplanetu.cz/" target="_blank">Pěstuj planetu</a> a dále spolupracuje s Ekumenickou akademií na realizaci společných akcí jako např. <a href="http://www.ekumakad.cz/cz/temata/ferova-letna" target="_blank">Férová Letná</a>.</p> <p><a href="http://www.ekumakad.cz/" target="_blank">http://www.ekumakad.cz/</a></p> <h4>Farma Lukava</h4> <p>Rodinná ekologická farma hospodařící v Jindřichovicích pod Smrkem a Dětřichovci, kde se zabývá především chovem dojných ovcí a zpracováním ovčího mléka. </p> <p>Od roku 2016 je farma součástí iniciativy komunitou podporovaného zemědělství <a href="https://plus.google.com/u/0/communities/101783831094360976826" target="_blank">KPZ CooLAND</a>.</p> <p><a href="http://www.lukava.net/" target="_blank">http://www.lukava.net/</a></p> <h4>Glopolis</h4> <p>Nezávislé analytické centrum (think-tank) se zaměřením na globální výzvy a příslušné odpovědi České republiky a EU.</p> <p>CooLAND se aktivně účastnil diskusí v rámci festivalu <a href="http://www.festivalalimenterre.cz/cz/" target="_blank">Země na talíři</a> a spolupracuje na šíření filmů v rámci ozvěn tohoto festivalu. Spolupracujeme na projektu <a href="http://glopolis.org/cs/projekty/menu-pro-zmenu/" target="_blank">Menu pro změnu</a>.</p> <p><a href="http://glopolis.org/cs/" target="_blank">http://glopolis.org/cs/</a></p> <h4>Harvest Films</h4> <p>Občanské sdružení hledá a nabízí divákům filmy, které dokáží zajímavým a srozumitelným způsobem uchopit, vysvětlit a prezentovat vědecká témata. </p> <p>CooLAND se podílel na přípravě a realizaci projektu <a href="http://www.ucimesefilmem.cz/" target="_blank">Učíme se filmem</a> a pravidelně se zapojuje do organizace <a href="http://lsff.cz/" target="_blank">Life Sciences Film Festivalu</a>.</p> <p><a href="http://www.harvestfilms.cz/" target="_blank">http://www.harvestfilms.cz/</a></p> <h4>Institut cirkulární ekonomiky</h4> <p>Nevládní organizace, která v podmínkách ČR usiluje o rozvoj cirkulární ekonomiky - konceptu založeného na vytváření funkčních vztahů mezi lidskou společností a přírodou.</p> <p>CooLAND se v roli moderátora účastní vybraných diskusí v rámci projektu <a href="http://incien.org/buzz-talks/" target="_blank">Buzz Talks</a>.</p> <p><a href="http://incien.org/" target="_blank">http://incien.org/</a></p> <h4>Kytky od potoka</h4> <p>Květinářství, kde vážou netradiční kytice z květin, které si sami pěstují nebo sbírají na loukách, v lesích nebo i na rumištích.</p> <p>CooLAND si kupuje kytky od potoka pro radost a potěšení a občas také holkám pomůžeme nějakou tu kytku zasadit.</p> <p><a href="http://www.kytkyodpotoka.cz/" target="_blank">http://www.kytkyodpotoka.cz/</a></p> <h4>Na ovoce</h4> <p>Na ovoce slouží jako komunitní platforma lidem, kteří chtějí zodpovědně využívat přírodní bohatství v podobě volně rostoucích ovocných stromů, keřů či bylinek. Iniciativa se rozhodla taková místa nejen mapovat, ale také přispívat k jejich udržitelnosti, zakládat nová a dbát na hodnoty, které rostliny pro člověka představují, tím přispívat ke zvýšení biodiverzity a udržení pozitiv kulturní krajiny, ve které člověk žije.</p> <p>CooLAND ve spolupráci s Na ovoce realizuje projekt Pražské sady a jejich popularizace</p> <p><a href="https://na-ovoce.cz/" target="_blank">https://na-ovoce.cz/</a></p> <h4>PRO-BIO LIGA</h4> <p>PRO-BIO liga je samostatnou spotřebitelskou pobočkou největšího českého spolku ekologických hospodářů – Svazu ekologických zemědělců PRO-BIO Šumperk. Posláním PRO-BIO ligy je informovat a chránit spotřebitele potravin, přispívat k celoživotnímu vzdělávání a zvyšovat všeobecnou ekogramotnost.</p> <p>CooLAND spolupracuje s PRO-BIO liga na realizaci přednášek a workshopů o ochraně zemědělské půdy.</p> <p><a href="http://www.biospotrebitel.cz" target="_blank">www.biospotrebitel.cz</a></p> <h4>Statek Karel Tachecí</h4> <p>Ekologický zemědělec hospodařící v Budyni nad Ohří, kde pěstuje zeleninu, obiloviny, mák a další rostliny bez použití chemie a umělých hnojiv.</p> <p>CooLAND s Karlem Tachecím spolupracuje od roku 2015 a je prvním zemědělcem, který se stal součástí iniciativy komunitou podporovaného zemědělství <a href="https://plus.google.com/u/0/communities/101783831094360976826" target="_blank">KPZ CooLAND</a>.</p> <p><a href="http://www.tacheci.cz/" target="_blank">http://www.tacheci.cz/</a></p> <h4>Kevin V. Ton</h4> <p>Kevin V. Ton patří mezi fotografy „uličníky“, tématem jeho fotografií je totiž především běžný život na ulici. Na jeho fotografiích se často objevují lidé, kteří žijí na okraji společnosti, mimo systém, a proto své fotografie Kevin chápe jako pouliční a sociální dokument. </p> <p>Kevin V. Ton svými fotografiemi pravidelně dokumentuje akce a setkání KPZ CooLAND. CooLAND ve spolupráci s PRO-BIO LIGA realizoval výstavu “Láska ke krajině prochází žaludkem” - fotografie Kevina Tona s příběhem první sezóny <a href="https://plus.google.com/u/0/communities/101783831094360976826" target="_blank">KPZ CooLAND</a>.</p> <p><a href="http://www.kevin-v-ton.com" target="_blank">http://www.kevin-v-ton.com</a></p> <h4>PRO - BIO s r.o.</h4> <p>PRO-BIO, obchodní společnost s r. o. je první český výrobce a významný dodavatel širokého sortimentu kvalitních biopotravin. Podporuje a rozvíjí ekologické zemědělství, svou činností přispívá k zachování zdravé planety. Vrací zapomenuté tradiční plodiny a potraviny do života lidí.</p> <p>CooLAND spolupracuje s PRO - BIO na výzkumu vlivu ekologického hospodaření na krajinu.</p> <p><a href="http://www.probio.cz" target="_blank">www.probio.cz</a></p> <h4>Pozemkový úřad Nymburk</h4> <p>Pozemkové úřady mají mimo jiné na starosti realizaci pozemkových úprav. Ty jsou jedním z nejefektivnějších nástrojů, jak pomoci zemědělské krajině k tomu, aby byla zdravá a zároveň v ní mohli hospodařit zodpovědní zemědělci.</p> <p>CooLAND s Pozemkovým úřadem Nymburk spolupracuje při osvětě v oblasti pozemkových úprav a pořádá exkurze na realizovaná opatření v krajině.</p> <p><a href="http://www.spucr.cz/" target="_blank">http://www.spucr.cz/</a></p> <h2>KOALICE A SÍTĚ</h2> <h4>Asociace místních potravinových iniciativ AMPI</h4> <p>Poslání Asociace místních potravinových iniciativ (AMPI) je podporovat blízký vztah lidí ke krajině, ve které žijí, a to prostřednictvím rozvoje místních potravinových systémů (komunitou podporovaného zemědělství, komunitních zahrad aj.) v České republice, které zde zastřešuje. </p> <p>CooLAND se jako člen AMPI podílí na organizaci akcí, realizaci projektů, spoluprací se zahraničními partnery a šíření myšlenky komunitou podporovaného zemědělství u nás. Jsme společnými koordinátory projektu Erasmus + Projekty mobility osob / Vzdělávání dospělých s názvem: Learning toward Access to Land.</p> <p><a href="http://asociaceampi.cz" target="_blank">http://asociaceampi.cz</a></p> <h4>Iniciativa potravinové suverenity</h4> <p>Iniciativa vznikla v roce 2015 jako diskusní platforma jednotlivců i organizací a klade si za cíl prosazovat potravinovou suverenitu jako politický koncept přístupu k zemědělství a potravinářství v ČR i v Evropě, propojovat aktéry v ČR, napomáhat vzniku a rozvoji aktivit podporující potravinovou suverenitu a fungovat jako spojka na podobné iniciativy v dzahraničí.</p> <p>CooLAND je jedním ze zakládajících členů iniciativy a v roce 2015 jsme byli spolupořadatelem prvního <a href="https://potravinovasuverenita.cz/akce/forum-potravinove-suverenity/" target="_blank">Fóra potravinové suverenity v ČR</a>.</p> <p><a href="https://potravinovasuverenita.cz/" target="_blank">https://potravinovasuverenita.cz/</a></p> <h4>Českomoravská komora pozemkových úprav</h4> <p>Českomoravská komora pro pozemkové úpravy (ČMKPÚ) byla založena již v r. 1990, jako zájmové sdružení pracovníků v oboru pozemkových úprav. Sdružuje projektanty, pracovníky státní správy – pozemkových a dalších úřadů, pracovníky výzkumných ústavů a vysokých škol, pracovníky dodavatelských stavebních organizací i další zájemce. Od svého vzniku spolupracovala a stále spolupracuje na tvorbě a novelizaci zákonů, vyhlášek, vládních nařízení, metodik, norem a dalších směrnic, souvisejících s oborem pozemkových úprav.</p> <p>CooLAND spolupracuje s ČMKPÚ popularizací tématu pozemkových úprav pořádáním exkurzí a psaním popularizačních článků, jelikož pozemkové úpravy jsou jedním z efektivních nástrojů pro ochranu zemědělské půdy.</p> <p><a href="http://www.cmkpu.cz/cmkpu/" target="_blank">http://www.cmkpu.cz/cmkpu/</a></p> <h4>URGENCI</h4> <p>URGENCI je mezinárodní síť pro rozvoj komunitou podporovaného zemědělství, která sdružuje jednotlivé občany, malé farmáře, spotřebitele i aktivisty a politiky, jejichž cílem je utváření solidárního partnerství mezi producentem a spotřebitelem potravin.</p> <p>CooLAND je součástí sítě od roku 2015. Jsme součástí <a href="http://urgenci.net/csa-research-group-people/" target="_blank">CSA Research Group</a>, jejímž výstupem je například publikace o stavu evropských KPZ: <a href="http://urgenci.net/wp-content/uploads/2016/05/Overview-of-Community-Supported-Agriculture-in-Europe-F.pdf" target="_blank">Overview of Community Supported Agriculture in Europe</a>.</p> <p><a href="http://urgenci.net/" target="_blank">http://urgenci.net/</a></p> <h4>Česká společnost ornitologická</h4> <p>Česká společnost ornitologická je dobrovolým spolkem profesionálů i amatérů, zabývajících se výzkumem a ochranou ptáků, zájemců o pozorování ptáků a milovníků přírody.</p> <p>CooLAND se zabývá ochranou ptáků žijících v zemědělské krajině podporou šetrného hospodaření. Zároveň využíváme metodiky ČSO pro výzkum ptačích populací jako indikátoru správného hospodaření zemědělských subjektů. </p> <p><a href="http://www.cso.cz" target="_blank">www.cso.cz</a></p> <h2>PODPORUJÍ NÁS</h2> <h4>Člověk v tísni</h4> <p>Nevládní nezisková organizace vycházející z myšlenek humanismu, svobody, rovnosti a solidarity, usilující o otevřenou, informovanou, angažovanou a zodpovědnou společnost k problémům doma i za hranicemi naší země.</p> <p>V roce 2016 nám Člověk v tísni umožnil uspořádat v prostorách svého centra Langhans výstavu fotografií <a href="https://www.clovekvtisni.cz/cs/kalendar/vystava-fotografii-laska-ke-krajine-prochazi-zaludkem" target="_blank">“Láska ke krajině prochází žaludkem”</a>.</p> <p>V roce 2015 jsem podávali grant Ministerstva průmyslu a obchodu na rozvoj ekologického zemědělství v Gruzii, kde byla místní mise Člověka v tísni lokálním partnerem.</p> <p><a href="https://www.clovekvtisni.cz" target="_blank">https://www.clovekvtisni.cz</a></p> <h4>Czech PR</h4> <p>Společnost poskytuje poradenské služby v oblasti vztahů s veřejností v České republice, provádí analýzy mediálního trhu a poskytuje komplexní služby v oblasti public relations.</p> <p>V roce 2016 nám agentura pomohla s analýzou našich vlastních strategických cílů a rozvojem CooLAND.</p> <p><a href="http://www.czechpr.cz/" target="_blank">http://www.czechpr.cz/</a></p> <h4>Kavárna Havran Café</h4> <p>Havran Café je malá a útulná kavárna v pražském Karlíně.</p> <p>CooLAND má v Havran Café svojí základnu, kde se scházíme a plánujeme. Od roku 2015 zde také každé úterý máme místo pro výdej zeleniny v rámci <a href="https://plus.google.com/u/0/communities/101783831094360976826" target="_blank">KPZ CooLAND</a>.</p> <p><a href="https://www.facebook.com/havrancafe/" target="_blank">https://www.facebook.com/havrancafe/</a></p> <h4>Nadace Via</h4> <p>Posláním nadace je otevírání cest k umění žít spolu a umění darovat. Nadace podporuje, vzdělává a propojuje lidi, kteří společně pečují o své okolí a kteří darují druhým. </p> <p>CooLAND byl v roce 2015-16 zařazen do projektu <a href="http://www.nadacevia.cz/viadukt/" target="_blank">VIADUKT</a>, který se zaměřuje na vzdělávání lidí z neziskovek.</p> <p><a href="http://www.nadacevia.cz/" target="_blank">http://www.nadacevia.cz/</a></p> </div> </body> <div id="footer"></div> </html>
tjelen/page-cooland
partaci.html
HTML
mit
15,062
#contact-info { font-size: .8em; } .job { background-color: #e9e5dc ; border-radius: 10px; margin-top: 5px; padding: .5px; } .ul { font-size: .8em; } li:last-child { color: blue; } #hula { color: red; }
LucasEWright/phase-0-tracks
css/css-demo/practice.css
CSS
mit
216
<div class="modal-header"> <h3 class="modal-title">Ohje</h3> </div> <div class="modal-body"> <div ng-show="createOwnNetwork"> <div class="help-element"> <img class="help-image" src="public/system/assets/img/infoimages/create.png"> <p> Voit perustaa oman verkostosi painamalla Luo oma Verkosto -painiketta. Luotuasi verkoston ilmestyt kartalle antamaasi sijaintiin.</p> </div> <div class="help-element"> <img class="help-image" src="public/system/assets/img/infoimages/gather.png"> <p> Luodessasi verkostosi saat samalla uniikin linkin, jota voit jakaa ystävillesi sosiaalisessa mediassa ja kutsua heidät liittymään osaksi sinun verkostoasi.</p> </div> </div> <div ng-hide="createOwnNetwork"> <div class="help-element"> <img class="help-image" src="public/system/assets/img/infoimages/Join.png"> <p> Tulit sivustolle käyttäjän {{founderName}} linkin kautta</p> <p>Lähde mukaan!-painikkeella pääset mukaan hänen verkostoon.</p> </div> <div class="help-element"> <img class="help-image" src="public/system/assets/img/infoimages/gather.png"> <p> Liittymällä {{founderName}} verkostoon luot oman verkoston, johon voit kutsua ystäviäsi mukaan toimimaan SOS hyväntekijöinä.</p> </div> </div> </div> <div class="modal-footer"> <b style="color:#00adef;"><i> Vikatilanteissa ota yhteyttä Tarmoon </i></b> <button class="btn btn-custom btn-lg" ng-click="ok()">Sulje</button> </div>
cybercom-finland/sos-app
public/system/views/helpWindow.html
HTML
mit
1,659
package components.diagram.edit.commands; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.ecore.EObject; import org.eclipse.gmf.runtime.common.core.command.CommandResult; import org.eclipse.gmf.runtime.common.core.command.ICommand; import org.eclipse.gmf.runtime.emf.type.core.IElementType; import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand; import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; import components.Component; import components.ComponentsFactory; import components.Connection; import components.Port; import components.diagram.edit.policies.ComponentModelBaseItemSemanticEditPolicy; /** * @generated */ public class ConnectionCreateCommand extends EditElementCommand { /** * @generated */ private final EObject source; /** * @generated */ private final EObject target; /** * @generated */ private final Component container; /** * @generated */ public ConnectionCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) { super(request.getLabel(), null, request); this.source = source; this.target = target; container = deduceContainer(source, target); } /** * @generated */ public boolean canExecute() { if (source == null && target == null) { return false; } if (source != null && false == source instanceof Port) { return false; } if (target != null && false == target instanceof Port) { return false; } if (getSource() == null) { return true; // link creation is in progress; source is not defined yet } // target may be null here but it's possible to check constraint if (getContainer() == null) { return false; } return ComponentModelBaseItemSemanticEditPolicy.getLinkConstraints().canCreateConnection_4001(getContainer(), getSource(), getTarget()); } /** * @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$ } Connection newElement = ComponentsFactory.eINSTANCE.createConnection(); getContainer().getConnections().add(newElement); newElement.getTarget().add(getSource()); newElement.getTarget().add(getTarget()); doConfigure(newElement, monitor, info); ((CreateElementRequest) getRequest()).setNewElement(newElement); return CommandResult.newOKCommandResult(newElement); } /** * @generated */ protected void doConfigure(Connection newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException { IElementType elementType = ((CreateElementRequest) getRequest()).getElementType(); ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType); configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext()); configureRequest.addParameters(getRequest().getParameters()); configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource()); configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget()); ICommand configureCommand = elementType.getEditCommand(configureRequest); if (configureCommand != null && configureCommand.canExecute()) { configureCommand.execute(monitor, info); } } /** * @generated */ protected void setElementToEdit(EObject element) { throw new UnsupportedOperationException(); } /** * @generated */ protected Port getSource() { return (Port) source; } /** * @generated */ protected Port getTarget() { return (Port) target; } /** * @generated */ public Component getContainer() { return container; } /** * Default approach is to traverse ancestors of the source to find instance of container. * Modify with appropriate logic. * @generated */ private static Component deduceContainer(EObject source, EObject target) { // Find container element for the new link. // Climb up by containment hierarchy starting from the source // and return the first element that is instance of the container class. for (EObject element = source; element != null; element = element.eContainer()) { if (element instanceof Component) { return (Component) element; } } return null; } }
peterbartha/component-diagram
ComponentTester.diagram/src/components/diagram/edit/commands/ConnectionCreateCommand.java
Java
mit
4,550
import Vue from 'vue'; import merge from 'element-ui/src/utils/merge'; import PopupManager from 'element-ui/src/utils/popup/popup-manager'; import getScrollBarWidth from '../scrollbar-width'; let idSeed = 1; const transitions = []; const hookTransition = (transition) => { if (transitions.indexOf(transition) !== -1) return; const getVueInstance = (element) => { let instance = element.__vue__; if (!instance) { const textNode = element.previousSibling; if (textNode.__vue__) { instance = textNode.__vue__; } } return instance; }; Vue.transition(transition, { afterEnter(el) { const instance = getVueInstance(el); if (instance) { instance.doAfterOpen && instance.doAfterOpen(); } }, afterLeave(el) { const instance = getVueInstance(el); if (instance) { instance.doAfterClose && instance.doAfterClose(); } } }); }; let scrollBarWidth; const getDOM = function(dom) { if (dom.nodeType === 3) { dom = dom.nextElementSibling || dom.nextSibling; getDOM(dom); } return dom; }; export default { model: { prop: 'visible', event: 'visible-change' }, props: { visible: { type: Boolean, default: false }, transition: { type: String, default: '' }, openDelay: {}, closeDelay: {}, zIndex: {}, modal: { type: Boolean, default: false }, modalFade: { type: Boolean, default: true }, modalClass: {}, modalAppendToBody: { type: Boolean, default: false }, lockScroll: { type: Boolean, default: true }, closeOnPressEscape: { type: Boolean, default: false }, closeOnClickModal: { type: Boolean, default: false } }, created() { if (this.transition) { hookTransition(this.transition); } }, beforeMount() { this._popupId = 'popup-' + idSeed++; PopupManager.register(this._popupId, this); }, beforeDestroy() { PopupManager.deregister(this._popupId); PopupManager.closeModal(this._popupId); if (this.modal && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') { document.body.style.overflow = this.bodyOverflow; document.body.style.paddingRight = this.bodyPaddingRight; } this.bodyOverflow = null; this.bodyPaddingRight = null; }, data() { return { opened: false, bodyOverflow: null, bodyPaddingRight: null, rendered: false }; }, watch: { visible(val) { if (val) { if (this._opening) return; if (!this.rendered) { this.rendered = true; Vue.nextTick(() => { this.open(); }); } else { this.open(); } } else { this.close(); } } }, methods: { open(options) { if (!this.rendered) { this.rendered = true; this.$emit('visible-change', true); } const props = merge({}, this.$props || this, options); if (this._closeTimer) { clearTimeout(this._closeTimer); this._closeTimer = null; } clearTimeout(this._openTimer); const openDelay = Number(props.openDelay); if (openDelay > 0) { this._openTimer = setTimeout(() => { this._openTimer = null; this.doOpen(props); }, openDelay); } else { this.doOpen(props); } }, doOpen(props) { if (this.$isServer) return; if (this.willOpen && !this.willOpen()) return; if (this.opened) return; this._opening = true; this.$emit('visible-change', true); const dom = getDOM(this.$el); const modal = props.modal; const zIndex = props.zIndex; if (zIndex) { PopupManager.zIndex = zIndex; } if (modal) { if (this._closing) { PopupManager.closeModal(this._popupId); this._closing = false; } PopupManager.openModal(this._popupId, PopupManager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade); if (props.lockScroll) { if (!this.bodyOverflow) { this.bodyPaddingRight = document.body.style.paddingRight; this.bodyOverflow = document.body.style.overflow; } scrollBarWidth = getScrollBarWidth(); let bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight; if (scrollBarWidth > 0 && bodyHasOverflow) { document.body.style.paddingRight = scrollBarWidth + 'px'; } document.body.style.overflow = 'hidden'; } } if (getComputedStyle(dom).position === 'static') { dom.style.position = 'absolute'; } dom.style.zIndex = PopupManager.nextZIndex(); this.opened = true; this.onOpen && this.onOpen(); if (!this.transition) { this.doAfterOpen(); } }, doAfterOpen() { this._opening = false; }, close() { if (this.willClose && !this.willClose()) return; if (this._openTimer !== null) { clearTimeout(this._openTimer); this._openTimer = null; } clearTimeout(this._closeTimer); const closeDelay = Number(this.closeDelay); if (closeDelay > 0) { this._closeTimer = setTimeout(() => { this._closeTimer = null; this.doClose(); }, closeDelay); } else { this.doClose(); } }, doClose() { this.$emit('visible-change', false); this._closing = true; this.onClose && this.onClose(); if (this.lockScroll) { setTimeout(() => { if (this.modal && this.bodyOverflow !== 'hidden') { document.body.style.overflow = this.bodyOverflow; document.body.style.paddingRight = this.bodyPaddingRight; } this.bodyOverflow = null; this.bodyPaddingRight = null; }, 200); } this.opened = false; if (!this.transition) { this.doAfterClose(); } }, doAfterClose() { PopupManager.closeModal(this._popupId); this._closing = false; } } }; export { PopupManager };
JavascriptTips/element
src/utils/popup/index.js
JavaScript
mit
6,321
PowerShell ========== My PowerShell modules
nicholasdille/PowerShell
README.md
Markdown
mit
46
package edu.gatech.oad.antlab.pkg1; import edu.cs2335.antlab.pkg3.*; import edu.gatech.oad.antlab.person.*; import edu.gatech.oad.antlab.pkg2.*; /** * CS2335 Ant Lab * * Prints out a simple message gathered from all of the other classes * in the package structure */ public class AntLabMain { /**antlab11.java message class*/ private AntLab11 ant11; /**antlab12.java message class*/ private AntLab12 ant12; /**antlab21.java message class*/ private AntLab21 ant21; /**antlab22.java message class*/ private AntLab22 ant22; /**antlab31 java message class which is contained in a jar resource file*/ private AntLab31 ant31; /** * the constructor that intializes all the helper classes */ public AntLabMain () { ant11 = new AntLab11(); ant12 = new AntLab12(); ant21 = new AntLab21(); ant22 = new AntLab22(); ant31 = new AntLab31(); } /** * gathers a string from all the other classes and prints the message * out to the console * */ public void printOutMessage() { String toPrint = ant11.getMessage() + ant12.getMessage() + ant21.getMessage() + ant22.getMessage() + ant31.getMessage(); //Person1 replace P1 with your name //and gburdell1 with your gt id Person1 p1 = new Person1("Pranov"); toPrint += p1.toString("pduggasani3"); //Person2 replace P2 with your name //and gburdell with your gt id Person2 p2 = new Person2("Austin Dang"); toPrint += p2.toString("adang31"); //Person3 replace P3 with your name //and gburdell3 with your gt id Person3 p3 = new Person3("Jay Patel"); toPrint += p3.toString("jpatel345"); //Person4 replace P4 with your name //and gburdell4 with your gt id Person4 p4 = new Person4("Jin Chung"); toPrint += p4.toString("jchung89"); //Person5 replace P4 with your name //and gburdell5 with your gt id Person5 p5 = new Person5("Zachary Hussin"); toPrint += p5.toString("zhussin3"); System.out.println(toPrint); } /** * entry point for the program */ public static void main(String[] args) { new AntLabMain().printOutMessage(); } }
PranovD/CS2340
M2/src/main/java/edu/gatech/oad/antlab/pkg1/AntLabMain.java
Java
mit
2,551
package net.alloyggp.tournament.internal.admin; import net.alloyggp.escaperope.Delimiters; import net.alloyggp.escaperope.RopeDelimiter; import net.alloyggp.escaperope.rope.Rope; import net.alloyggp.escaperope.rope.ropify.SubclassWeaver; import net.alloyggp.escaperope.rope.ropify.Weaver; import net.alloyggp.tournament.api.TAdminAction; public class InternalAdminActions { private InternalAdminActions() { //Not instantiable } @SuppressWarnings("deprecation") public static final Weaver<TAdminAction> WEAVER = SubclassWeaver.builder(TAdminAction.class) .add(ReplaceGameAction.class, "ReplaceGame", ReplaceGameAction.WEAVER) .build(); public static RopeDelimiter getStandardDelimiter() { return Delimiters.getJsonArrayRopeDelimiter(); } public static TAdminAction fromPersistedString(String persistedString) { Rope rope = getStandardDelimiter().undelimit(persistedString); return WEAVER.fromRope(rope); } public static String toPersistedString(TAdminAction adminAction) { Rope rope = WEAVER.toRope(adminAction); return getStandardDelimiter().delimit(rope); } }
AlexLandau/ggp-tournament
src/main/java/net/alloyggp/tournament/internal/admin/InternalAdminActions.java
Java
mit
1,179
<div id="content-alerts"> <table id="conten-2" border="1px"> <tbody> <?php echo $sidemenu ?> <tr> <td style="vertical-align: top;"> <div style="padding: 5px 5px 5px 5px"> <table border="1" cellspacing="1px"> <tr style="background-color: #DBDBDB"> <th>ATM ID</th> <th>ĐẦU ĐỌC THẺ</th> <th>BỘ PHẬN TRẢ TIỀN</th> <th>BÀN PHÍM</th> <th>MÁY IN HÓA ĐƠN</th> <th>MẠNG</th> <th>SẴN SÀNG</th> </tr> <?php foreach ($result as $item) { echo "<tr>"; echo "<td>$item->AtmId</td>"; echo "<td>".(empty($item->CardReader) ? "OK" : "Lỗi")."</td>"; echo "<td>".(empty($item->CashDispenser) ? "OK" : "Lỗi")."</td>"; echo "<td>".(empty($item->PinPad) ? "OK" : "Lỗi")."</td>"; echo "<td>".(empty($item->ReceiptPrinter) ? "OK" : "Lỗi")."</td>"; echo "<td>".(empty($item->NetDown) ? "OK" : "Lỗi")."</td>"; echo "<td>".(empty($item->Service) ? "OK" : "Không")."</td>"; echo "</tr>"; } ?> </table> </div> </td> </tr> </tbody> </table> </div>
thaingochieu/atmphp
fuel/app/views/hoatdong/summary/atmerror.php
PHP
mit
1,690
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About TelcoCoin</source> <translation>O TelcoCoin-u</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;TelcoCoin&lt;/b&gt; version</source> <translation>&lt;b&gt;TelcoCoin&lt;/b&gt; verzija</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 TelcoCoin developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Adresar</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Dvostruki klik za uređivanje adrese ili oznake</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Dodajte novu adresu</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Kopiraj trenutno odabranu adresu u međuspremnik</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Nova adresa</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your TelcoCoin 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>Ovo su vaše TelcoCoin adrese za primanje isplate. Možda želite dati drukčiju adresu svakom primatelju tako da možete pratiti tko je platio.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Kopirati adresu</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Prikaži &amp;QR Kôd</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a TelcoCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;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>Izvoz podataka iz trenutnog taba u datoteku</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified TelcoCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Brisanje</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your TelcoCoin 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 &amp;Label</source> <translation>Kopirati &amp;oznaku</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Izmjeniti</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Izvoz podataka adresara</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Datoteka vrijednosti odvojenih zarezom (*. csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Pogreška kod izvoza</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Ne mogu pisati u datoteku %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Oznaka</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresa</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(bez oznake)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Unesite lozinku</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Nova lozinka</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Ponovite novu lozinku</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Unesite novi lozinku za novčanik. &lt;br/&gt; Molimo Vas da koristite zaporku od &lt;b&gt;10 ili više slučajnih znakova,&lt;/b&gt; ili &lt;b&gt;osam ili više riječi.&lt;/b&gt;</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Šifriranje novčanika</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Ova operacija treba lozinku vašeg novčanika kako bi se novčanik otključao.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Otključaj novčanik</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Ova operacija treba lozinku vašeg novčanika kako bi se novčanik dešifrirao.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Dešifriranje novčanika.</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Promjena lozinke</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Unesite staru i novu lozinku za novčanik.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Potvrdi šifriranje novčanika</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR TelcoCoinS&lt;/b&gt;!</source> <translation>Upozorenje: Ako šifrirate vaš novčanik i izgubite lozinku, &lt;b&gt;IZGUBIT ĆETE SVE SVOJE TelcoCoinSE!&lt;/b&gt;</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Jeste li sigurni da želite šifrirati svoj novčanik?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Novčanik šifriran</translation> </message> <message> <location line="-56"/> <source>TelcoCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your TelcoCoins from being stolen by malware infecting your computer.</source> <translation>TelcoCoin će se sada zatvoriti kako bi dovršio postupak šifriranja. Zapamtite da šifriranje vašeg novčanika ne može u potpunosti zaštititi vaše TelcoCoine od krađe preko zloćudnog softvera koji bi bio na vašem računalu.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Šifriranje novčanika nije uspjelo</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Šifriranje novčanika nije uspjelo zbog interne pogreške. Vaš novčanik nije šifriran.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Priložene lozinke se ne podudaraju.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Otključavanje novčanika nije uspjelo</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Lozinka za dešifriranje novčanika nije točna.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Dešifriranje novčanika nije uspjelo</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Lozinka novčanika je uspješno promijenjena.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>&amp;Potpišite poruku...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Usklađivanje s mrežom ...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Pregled</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Prikaži opći pregled novčanika</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Transakcije</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Pretraži povijest transakcija</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels for sending</source> <translation>Uređivanje popisa pohranjenih adresa i oznaka</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Prikaži popis adresa za primanje isplate</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>&amp;Izlaz</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Izlazak iz programa</translation> </message> <message> <location line="+4"/> <source>Show information about TelcoCoin</source> <translation>Prikaži informacije o TelcoCoinu</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Više o &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Prikaži informacije o Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Postavke</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Šifriraj novčanik...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Backup novčanika...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Promijena lozinke...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>Importiranje blokova sa diska...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>Re-indeksiranje blokova na disku...</translation> </message> <message> <location line="-347"/> <source>Send coins to a TelcoCoin address</source> <translation>Slanje novca na TelcoCoin adresu</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for TelcoCoin</source> <translation>Promijeni postavke konfiguracije za TelcoCoin</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Napravite sigurnosnu kopiju novčanika na drugoj lokaciji</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Promijenite lozinku za šifriranje novčanika</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-165"/> <location line="+530"/> <source>TelcoCoin</source> <translation>TelcoCoin</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Novčanik</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About TelcoCoin</source> <translation>&amp;O TelcoCoinu</translation> </message> <message> <location line="+9"/> <source>&amp;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 TelcoCoin 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 TelcoCoin addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Datoteka</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Konfiguracija</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Pomoć</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Traka kartica</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>TelcoCoin client</source> <translation>TelcoCoin klijent</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to TelcoCoin network</source> <translation><numerusform>%n aktivna veza na TelcoCoin mrežu</numerusform><numerusform>%n aktivne veze na TelcoCoin mrežu</numerusform><numerusform>%n aktivnih veza na TelcoCoin mrežu</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>Obrađeno %1 blokova povijesti transakcije.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation>Greška</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Ažurno</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Ažuriranje...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Poslana transakcija</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Dolazna transakcija</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Datum:%1 Iznos:%2 Tip:%3 Adresa:%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 TelcoCoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Novčanik je &lt;b&gt;šifriran&lt;/b&gt; i trenutno &lt;b&gt;otključan&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Novčanik je &lt;b&gt;šifriran&lt;/b&gt; i trenutno &lt;b&gt;zaključan&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. TelcoCoin 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 type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Izmjeni adresu</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Oznaka</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Oznaka ovog upisa u adresar</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adresa</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>Adresa ovog upisa u adresar. Može se mjenjati samo kod adresa za slanje.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Nova adresa za primanje</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Nova adresa za slanje</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Uredi adresu za primanje</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Uredi adresu za slanje</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Upisana adresa &quot;%1&quot; je već u adresaru.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid TelcoCoin address.</source> <translation>Upisana adresa &quot;%1&quot; nije valjana TelcoCoin adresa.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Ne mogu otključati novčanik.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Stvaranje novog ključa nije uspjelo.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>TelcoCoin-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation>verzija</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Upotreba:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation>UI postavke</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Pokreni minimiziran</translation> </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>Postavke</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Glavno</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 &amp;fee</source> <translation>Plati &amp;naknadu za transakciju</translation> </message> <message> <location line="+31"/> <source>Automatically start TelcoCoin after logging in to the system.</source> <translation>Automatski pokreni TelcoCoin kad se uključi računalo</translation> </message> <message> <location line="+3"/> <source>&amp;Start TelcoCoin on system login</source> <translation>&amp;Pokreni TelcoCoin kod pokretanja sustava</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the TelcoCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Automatski otvori port TelcoCoin klijenta na ruteru. To radi samo ako ruter podržava UPnP i ako je omogućen.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Mapiraj port koristeći &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the TelcoCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Spojite se na Bitcon mrežu putem SOCKS proxy-a (npr. kod povezivanja kroz Tor)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Povezivanje putem SOCKS proxy-a:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP adresa proxy-a (npr. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Port od proxy-a (npr. 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Prikaži samo ikonu u sistemskoj traci nakon minimiziranja prozora</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimiziraj u sistemsku traku umjesto u traku programa</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>Minimizirati umjesto izaći iz aplikacije kada je prozor zatvoren. Kada je ova opcija omogućena, aplikacija će biti zatvorena tek nakon odabira Izlaz u izborniku.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>M&amp;inimiziraj kod zatvaranja</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Prikaz</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting TelcoCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Jedinica za prikazivanje iznosa:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Izaberite željeni najmanji dio TelcoCoina koji će biti prikazan u sučelju i koji će se koristiti za plaćanje.</translation> </message> <message> <location line="+9"/> <source>Whether to show TelcoCoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Prikaži adrese u popisu transakcija</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation type="unfinished"/> </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>Upozorenje</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting TelcoCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Oblik</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the TelcoCoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Stanje:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Nepotvrđene:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Novčanik</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>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Nedavne transakcije&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Vaše trenutno stanje računa</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>Ukupni iznos transakcija koje tek trebaju biti potvrđene, i još uvijek nisu uračunate u trenutni saldo</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start TelcoCoin: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>QR Code Dijalog</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Zatraži plaćanje</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Iznos:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Oznaka</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Poruka:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Spremi kao...</translation> </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>Rezultirajući URI je predug, probajte umanjiti tekst za naslov / poruku.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG slike (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Lanac blokova</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Trenutni broj blokova</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Procjenjeni ukupni broj blokova</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Posljednje vrijeme bloka</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the TelcoCoin-Qt help message to get a list with possible TelcoCoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>TelcoCoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>TelcoCoin 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 TelcoCoin 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 type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the TelcoCoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </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>Slanje novca</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Pošalji k nekoliko primatelja odjednom</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Dodaj primatelja</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Obriši sva polja transakcija</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Obriši &amp;sve</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Stanje:</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>Potvrdi akciju slanja</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Pošalji</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; do %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Potvrdi slanje novca</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Jeste li sigurni da želite poslati %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>i</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>Adresa primatelja je nevaljala, molimo provjerite je ponovo.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Iznos mora biti veći od 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Iznos je veći od stanja računa.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Iznos je veći od stanja računa kad se doda naknada za transakcije od %1.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Pronašli smo adresu koja se ponavlja. U svakom plaćanju program može svaku adresu koristiti samo jedanput.</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>Generirani novčići moraju pričekati nastanak 120 blokova prije nego što ih je moguće potrošiti. Kad ste generirali taj blok, on je bio emitiran u mrežu kako bi bio dodan postojećim lancima blokova. Ako ne uspije biti dodan, njegov status bit će promijenjen u &quot;nije prihvatljiv&quot; i on neće biti potrošiv. S vremena na vrijeme tako nešto se može desiti ako neki drugi nod približno istovremeno generira blok.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Oblik</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>&amp;Iznos:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>&amp;Primatelj plaćanja:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</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>Unesite oznaku za ovu adresu kako bi ju dodali u vaš adresar</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Oznaka:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Odaberite adresu iz adresara</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>Zalijepi adresu iz međuspremnika</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>Ukloni ovog primatelja</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a TelcoCoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Unesite TelcoCoin adresu (npr. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</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>&amp;Sign Message</source> <translation>&amp;Potpišite poruku</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Možete potpisati poruke sa svojom adresom kako bi dokazali da ih posjedujete. Budite oprezni da ne potpisujete ništa mutno, jer bi vas phishing napadi mogli na prevaru natjerati da prepišete svoj identitet njima. Potpisujte samo detaljno objašnjene izjave sa kojima se slažete.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Unesite TelcoCoin adresu (npr. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Odaberite adresu iz adresara</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Zalijepi adresu iz međuspremnika</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>Upišite poruku koju želite potpisati ovdje</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this TelcoCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;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 &amp;All</source> <translation>Obriši &amp;sve</translation> </message> <message> <location line="-87"/> <source>&amp;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. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Unesite TelcoCoin adresu (npr. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified TelcoCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;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 TelcoCoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Unesite TelcoCoin adresu (npr. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter TelcoCoin 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 TelcoCoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Otvoren do %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1 nije dostupan</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/nepotvrđeno</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 potvrda</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Status</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Generiran</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Od</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Za</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation>oznaka</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Uplaćeno</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>Nije prihvaćeno</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Zaduženje</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Naknada za transakciju</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Neto iznos</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Poruka</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Komentar</translation> </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 &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Generirani novčići moraju pričekati nastanak 120 blokova prije nego što ih je moguće potrošiti. Kad ste generirali taj blok, on je bio emitiran u mrežu kako bi bio dodan postojećim lancima blokova. Ako ne uspije biti dodan, njegov status bit će promijenjen u &quot;nije prihvaćen&quot; i on neće biti potrošiv. S vremena na vrijeme tako nešto se može desiti ako neki drugi nod generira blok u približno isto vrijeme.</translation> </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>Iznos</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>, još nije bio uspješno emitiran</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>nepoznato</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Detalji transakcije</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Ova panela prikazuje detaljni opis transakcije</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tip</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresa</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Iznos</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>Otvoren do %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Nije na mreži (%1 potvrda)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Nepotvrđen (%1 od %2 potvrda)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Potvrđen (%1 potvrda)</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>Generirano - Upozorenje: ovaj blok nije bio primljen od strane bilo kojeg drugog noda i vjerojatno neće biti prihvaćen!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Generirano, ali nije prihvaćeno</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Primljeno s</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Primljeno od</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Poslano za</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Plaćanje samom sebi</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Rudareno</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/d)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Status transakcije</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Datum i vrijeme kad je transakcija primljena</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Vrsta transakcije.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Odredište transakcije</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Iznos odbijen od ili dodan k saldu.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Sve</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Danas</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Ovaj tjedan</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Ovaj mjesec</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Prošli mjesec</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Ove godine</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Raspon...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Primljeno s</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Poslano za</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Tebi</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Rudareno</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Ostalo</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Unesite adresu ili oznaku za pretraživanje</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Min iznos</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Kopirati adresu</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Kopirati oznaku</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Kopiraj iznos</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Izmjeniti oznaku</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Izvoz podataka transakcija</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Datoteka podataka odvojenih zarezima (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Potvrđeno</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Datum</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tip</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Oznaka</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adresa</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Iznos</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Izvoz pogreške</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Ne mogu pisati u datoteku %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Raspon:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>za</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Slanje novca</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Izvoz podataka iz trenutnog taba u datoteku</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>TelcoCoin version</source> <translation>TelcoCoin verzija</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Upotreba:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or TelcoCoind</source> <translation>Pošalji komandu usluzi -server ili TelcoCoind</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Prikaži komande</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Potraži pomoć za komandu</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Postavke:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: TelcoCoin.conf)</source> <translation>Odredi konfiguracijsku datoteku (ugrađeni izbor: TelcoCoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: TelcoCoind.pid)</source> <translation>Odredi proces ID datoteku (ugrađeni izbor: TelcoCoin.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Odredi direktorij za datoteke</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Postavi cache za bazu podataka u MB (zadano:25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 22556 or testnet: 44556)</source> <translation>Slušaj na &lt;port&gt;u (default: 22556 ili testnet: 44556)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Održavaj najviše &lt;n&gt; veza sa članovima (default: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Prag za odspajanje članova koji se čudno ponašaju (default: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Broj sekundi koliko se članovima koji se čudno ponašaju neće dopustiti da se opet spoje (default: 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 &lt;port&gt; (default: 22555 or testnet: 44555)</source> <translation>Prihvaćaj JSON-RPC povezivanje na portu broj &lt;port&gt; (ugrađeni izbor: 22555 or testnet: 44555)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Prihvati komande iz tekst moda i JSON-RPC</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Izvršavaj u pozadini kao uslužnik i prihvaćaj komande</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Koristi test mrežu</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=TelcoCoinrpc 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 &quot;TelcoCoin Alert&quot; [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. TelcoCoin 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>Upozorenje: -paytxfee je podešen na preveliki iznos. To je iznos koji ćete platiti za obradu transakcije.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong TelcoCoin will not work properly.</source> <translation>Upozorenje: Molimo provjerite jesu li datum i vrijeme na vašem računalu točni. Ako vaš sat ide krivo, TelcoCoin neće raditi ispravno.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>Opcije za kreiranje bloka:</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Poveži se samo sa određenim nodom</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation 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>Importiraj blokove sa vanjskog blk000??.dat fajla</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;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: &apos;%s&apos;</source> <translation>Nevaljala -tor adresa: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</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, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*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>Prihvati samo lance blokova koji se podudaraju sa ugrađenim checkpoint-ovima (default: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (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 (default: 1)</source> <translation>Dodaj izlaz debuga na početak sa vremenskom oznakom</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the TelcoCoin Wiki for SSL setup instructions)</source> <translation>SSL postavke: (za detalje o podešavanju SSL opcija vidi TelcoCoin Wiki)</translation> </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>Šalji trace/debug informacije na konzolu umjesto u debug.log datoteku</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Pošalji trace/debug informacije u debugger</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Podesite maksimalnu veličinu bloka u bajtovima (default: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Podesite minimalnu veličinu bloka u bajtovima (default: 0)</translation> </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>Odredi vremenski prozor za spajanje na mrežu u milisekundama (ugrađeni izbor: 5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Pokušaj koristiti UPnP da otvoriš port za uslugu (default: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Pokušaj koristiti UPnP da otvoriš port za uslugu (default: 1 when listening)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Korisničko ime za JSON-RPC veze</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation 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>Lozinka za JSON-RPC veze</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Dozvoli JSON-RPC povezivanje s određene IP adrese</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Pošalji komande nodu na adresi &lt;ip&gt; (ugrađeni izbor: 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>Izvršite naredbu kada se najbolji blok promjeni (%s u cmd je zamjenjen sa block hash)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>Nadogradite novčanik u posljednji format.</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Podesi memorijski prostor za ključeve na &lt;n&gt; (ugrađeni izbor: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Ponovno pretraži lanac blokova za transakcije koje nedostaju</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Koristi OpenSSL (https) za JSON-RPC povezivanje</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Uslužnikov SSL certifikat (ugrađeni izbor: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Uslužnikov privatni ključ (ugrađeni izbor: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Prihvaljivi načini šifriranja (ugrađeni izbor: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Ova poruka za pomoć</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Program ne može koristiti %s na ovom računalu (bind returned error %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Poveži se kroz socks proxy</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Dozvoli DNS upite za dodavanje nodova i povezivanje</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Učitavanje adresa...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Greška kod učitavanja wallet.dat: Novčanik pokvaren</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of TelcoCoin</source> <translation>Greška kod učitavanja wallet.dat: Novčanik zahtjeva noviju verziju TelcoCoina</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart TelcoCoin to complete</source> <translation>Novčanik je trebao prepravak: ponovo pokrenite TelcoCoin</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Greška kod učitavanja wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Nevaljala -proxy adresa: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Nevaljali iznos za opciju -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Nevaljali iznos za opciju</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Nedovoljna sredstva</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Učitavanje indeksa blokova...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Unesite nod s kojim se želite spojiti and attempt to keep the connection open</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. TelcoCoin is probably already running.</source> <translation>Program ne može koristiti %s na ovom računalu. TelcoCoin program je vjerojatno već pokrenut.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Naknada posredniku po KB-u koja će biti dodana svakoj transakciji koju pošalješ</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Učitavanje novčanika...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>Nije moguće novčanik vratiti na prijašnju verziju.</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Nije moguće upisati zadanu adresu.</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Rescaniranje</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Učitavanje gotovo</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Error</source> <translation>Greška</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
telcocoin-project/telcocoin
src/qt/locale/bitcoin_hr.ts
TypeScript
mit
107,245
Kmom05 =============================== Redovisning av kmom05. <b>Berätta kort om erfarenheterna med din undersökning av webbplatsers laddningstid. </b> <p>Jag valde samma hemsidor som I förra uppgiften då jag vet att dessa hemsidor har varierande belastning och trafiksituationer som de måste hantera. Tre av sidorna är stora internationella företag och speciellt Reddit och Twitch har hundratusentals om inte miljoner användare varje dag så för dessa är det viktigt att ha snabba laddtider. </p> <p>Twitch har en laddtid på mellan 7 – 8 sec och det tycker jag är rätt högt, men samtidigt måste man komma ihåg att det är utan cache och så handlar det om live stream. Vad orsaken kan vara att laddtiden är så hög kan jag inte svara på, men det är lite konstigt att deras blogg som till exempel bara är 1.1MB tar lika lång tid att ladda som deras “directory” med alla spel och som är 4.5MB. När det gäller laddtiden på mobil och data så laddar sidan snabbare på mobilen vilket också är rätt konstigt då sidan inte är speciellt bra anpassad för mobiler.</p> <p>Reddit har lite verierende laddtider, men den förmodligen viktigaste sidan är deras startsida och den har en hyfsat bra laddtid. När det gäller de andra två sidorna som jag testa så känns bloggsidan väldigt stor med sina 21.4 MB och 17 sec I laddtid. Jag tänkte först ta och kolla laddtiden på några subreddits, men jag det vissa sig att dessa ha ungefär samma laddtid som startsidan och det är väl egentligen inte så konstigt då de vissar / hämtar samma typ av innehåll. </p> <p>När det gäller Netflix så tror jag inte deras hemsida är speciellt hårt belastad då den egentligen endast behövs för att skapa konton till nya kunder. </p> <p>Till sist har vi Avanza som är en av de ledande bankerna I sverige när det gäller aktie och fondhandel bland småsparare och något som gör den här sidan intressant är att de erbjuder marknadsdata I realtid vilket påverkar laddtiden negativt.</p> <b>Har du några funderingar kring Cimage och dess nytta och features? </b> <p>Jag tycker Cimage var en väldigt bra lösning speciellt då man slipper hålla på och redigera bilderna så de får rätt storlek I tex Photoshop, nu kunde man istället ange bildens storlek direkt I bildlänken. Men sen kan jag tänka mig att det belastar server och har man massa bilder så kanske det inte är den bästa lösningen, men på en mindre hemsida där man inte har så höga krav på en super snabb sida så skulle Cimage vara en bra lösning. </p> <b>Lyckades du uppnå ett bra sätt och en LESS-struktur för att jobba med dina bilder i webbplatsen? </b> <p>Jag gjorde egentligen inga ändringar I LESS modulen för figures då jag tyckte det fungera bra med min andra kod och bilderna kollapsar på rätt ställe när sidan blir mindre. Jag hade lite planer på att lägga till några klasser för w75 och w100, men eftersom jag använde Cimage för att bestämma storleken så strunta jag I det då jag inte tror jag kommer ha någon nytta för det.</p> <b>I extrauppgiften om picture, srcset och sizes, fick du någon känsla för för- och nackdelar med konceptet? </b> <p>Jag läste lite om srcset för det var ingen jag har hört talas om innan och det verkar intressat så det är helt klart något jag ska ta med mig I framtiden och kanske försöka använda.</p>
Zero2k/Anax-Flat
content/report/150_kmom05.md
Markdown
mit
3,402
{{< layout}} {{$pageTitle}}Upload your photo{{/pageTitle}} {{$header}} <h1>Upload your photo</h1> {{/header}} {{$content}} <p >Your photo must be taken in the last month and meet the <br><a href="/../change_of_name_180122/photoguide-static/photorules"> rules for passport photos</a>.</p> <a href="/change_of_name_180122/uploadphoto/" class="button">Upload your photo</a><br/><br/> <div class="grid-row photo-upload-eg"> <div class="column-half img"> <object type="image/jpg" data="/public/images/[email protected]" type="image/svg+xml" class="svg" tabindex="-1"> <img src="/public/images/[email protected]" width="206" height= alt=""> </object> </div> <div class="column-half"> <h2>Taking a good photo</h2> <ol class="list list-number"> <li>Get a friend to take your photo.</li> <li>Use a plain background.</li> <li>Don’t crop your photo, include your face, shoulders and upper body.</li> <li>Keep your hair away from your face and brushed down.</li> <li>Make sure there are no shadows on your face or behind you.</li> </ol> </div> </div> <br/> <p> We keep all photos for up to 30 days in line with our <a href="https://www.passport.service.gov.uk/help/privacy" rel="external">privacy policy</a>. </p> {{/content}} {{/ layout}}
UKHomeOffice/passports-prototype
views/change_of_name_180122/upload/index.html
HTML
mit
1,507
. ~/hulk-bash/scripts/web.sh . ~/hulk-bash/.aliases
BennyHallett/hulk-bash
hulk.bash
Shell
mit
52
<?php namespace BungieNetPlatform\Exceptions\Platform; use BungieNetPlatform\Exceptions\PlatformException; /** * DestinyStatsParameterMembershipIdParseError */ class DestinyStatsParameterMembershipIdParseErrorException extends PlatformException { public function __construct($message, $code = 1608, \Exception $previous = null) { parent::__construct($message, $code, $previous); } }
dazarobbo/BungieNetPlatform
src/Exceptions/Platform/DestinyStatsParameterMembershipIdParseErrorException.php
PHP
mit
410
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"> <head> <title>System Manager Dashboard</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" th:href="@{/webjars/bootstrap/3.3.6/css/bootstrap.min.css}" /> <script th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"></script> <script th:src="@{/webjars/bootstrap/3.3.6/js/bootstrap.min.js}"></script> <script> $(document).ready(function () { (function ($) { $('#filter').keyup(function () { var rex = new RegExp($(this).val(), 'i'); $('.searchable tr').hide(); $('.searchable tr').filter(function () { return rex.test($(this).text()); }).show(); }) }(jQuery)); }); </script> </head> <body> <nav class="navbar navbar-default"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <p class="navbar-brand">Cardinals Banking</p> </div> <ul class="nav navbar-nav navbar-right"> <li><a th:href="@{/manager/details}">My Dashboard</a></li> <li><a th:href="@{/logout}">Logout</a></li> </ul> </div> </nav> <div class="container"> <h3>System Manager Dashboard</h3> <ul class="nav nav-tabs nav-justified"> <li><a th:href="@{/manager/user}">View External User Accounts</a></li> <li><a th:href="@{/manager/details}">My Profile</a></li> <li><a th:href="@{/manager/user/request}">New External User Requests</a></li> <li><a th:href="@{/manager/employee/authorize}">Authorize Access</a></li> <li><a th:href="@{/manager/employee/request}">View Access Requests</a></li> <li class="active"><a href="#">Pending Transfers</a></li> <li><a th:href="@{/manager/transactions}">Pending Transactions</a></li> </ul> </div> <div class="container"> <div class="input-group"> <span class="input-group-addon">Filter</span> <input id="filter" type="text" class="form-control" placeholder="Type here..." /> </div> <div class="container"> <table class="table table-striped"> <thead> <tr> <th>From</th> <th>Account Number</th> <th>To</th> <th>Account Number</th> <th>Amount</th> </tr> </thead> <tbody class="searchable"> <tr th:each="transfer : ${transfers}"> <td th:text="${transfer.fromAccount.user.username}"></td> <td th:text="${transfer.fromAccount.accountNumber}"></td> <td th:text="${transfer.toAccount.user.username}"></td> <td th:text="${transfer.toAccount.accountNumber}"></td> <td th:text="${transfer.amount}"></td> <td><a th:href="@{/manager/transfer/{id}(id=${transfer.transferId})}">View</a></td> </tr> --> </tbody> </table> </div> </div> </body> </html>
Nikh13/securbank
src/main/resources/templates/manager/pendingtransfers.html
HTML
mit
2,902
((n|=2<<1))
grncdr/js-shell-parse
tests/fixtures/shellcheck-tests/arithmetic3/source.sh
Shell
mit
11
$LOAD_PATH.unshift File.expand_path('../lib') require 'rspec' RSpec.configure do |conf| conf.color = true conf.formatter = 'documentation' conf.order = 'random' end
timuruski/press_any_key
spec/spec_helper.rb
Ruby
mit
173
(function () { 'use strict'; /** * @ngdoc function * @name app.test:homeTest * @description * # homeTest * Test of the app */ describe('homeCtrl', function () { var controller = null, $scope = null, $location; beforeEach(function () { module('g4mify-client-app'); }); beforeEach(inject(function ($controller, $rootScope, _$location_) { $scope = $rootScope.$new(); $location = _$location_; controller = $controller('HomeCtrl', { $scope: $scope }); })); it('Should HomeCtrl must be defined', function () { expect(controller).toBeDefined(); }); it('Should match the path Module name', function () { $location.path('/home'); expect($location.path()).toBe('/home'); }); }); })();
ltouroumov/amt-g4mify
client/app/modules/home/home-test.js
JavaScript
mit
739
var eejs = require('ep_etherpad-lite/node/eejs') /* * Handle incoming delete requests from clients */ exports.handleMessage = function(hook_name, context, callback){ var Pad = require('ep_etherpad-lite/node/db/Pad.js').Pad // Firstly ignore any request that aren't about chat var isDeleteRequest = false; if(context) { if(context.message && context.message){ if(context.message.type === 'COLLABROOM'){ if(context.message.data){ if(context.message.data.type){ if(context.message.data.type === 'ep_push2delete'){ isDeleteRequest = true; } } } } } } if(!isDeleteRequest){ callback(false); return false; } console.log('DELETION REQUEST!') var packet = context.message.data; /*** What's available in a packet? * action -- The action IE chatPosition * padId -- The padId of the pad both authors are on ***/ if(packet.action === 'deletePad'){ var pad = new Pad(packet.padId) pad.remove(function(er) { if(er) console.warn('ep_push2delete', er) callback([null]); }) } } exports.eejsBlock_editbarMenuRight = function(hook_name, args, cb) { if(!args.renderContext.req.url.match(/^\/(p\/r\..{16})/)) { args.content = eejs.require('ep_push2delete/templates/delete_button.ejs') + args.content; } cb(); };
marcelklehr/ep_push2delete
index.js
JavaScript
mit
1,374
using Microsoft.Xna.Framework; using System; namespace Gem.Gui.Animations { public static class Time { public static Animation<double> Elapsed { get { return Animation.Create(context => context.TotalMilliseconds); } } public static Animation<TTime> Constant<TTime>(TTime time) { return Animation.Create(context => time); } public static Animation<double> Wave { get { return Animation.Create(context => Math.Sin(context.TotalSeconds)); } } } }
gmich/Gem
Gem.Gui/Animations/Time.cs
C#
mit
610
version https://git-lfs.github.com/spec/v1 oid sha256:355954a2b585f8b34c53b8bea9346fabde06b161ec86b87e9b829bea4acb87e9 size 108190
yogeshsaroya/new-cdnjs
ajax/libs/materialize/0.95.0/js/materialize.min.js
JavaScript
mit
131
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <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="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../../..">Unstable</a></li> <li><a href=".">8.4.dev / contrib:sudoku 8.4.dev</a></li> <li class="active"><a href="">2015-01-30 03:04:02</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="../../../../../about.html">About</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href=".">« Up</a> <h1> contrib:sudoku <small> 8.4.dev <span class="label label-success">41 s</span> </small> </h1> <p><em><script>document.write(moment("2015-01-30 03:04:02 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2015-01-30 03:04:02 UTC)</em><p> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>ruby lint.rb unstable ../unstable/packages/coq:contrib:sudoku/coq:contrib:sudoku.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> <dt>Output</dt> <dd><pre>The package is valid. </pre></dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --dry-run coq:contrib:sudoku.8.4.dev coq.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 s</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.4.dev). The following actions will be performed: - install coq:contrib:sudoku.8.4.dev === 1 to install === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Building coq:contrib:sudoku.8.4.dev: coq_makefile -f Make -o Makefile make -j4 make install Installing coq:contrib:sudoku.8.4.dev. </pre></dd> </dl> <p>Dry install without Coq, to test if the problem was incompatibility with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>ulimit -Sv 2000000; timeout 5m opam install -y --deps-only coq:contrib:sudoku.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>ulimit -Sv 2000000; timeout 5m opam install -y --verbose coq:contrib:sudoku.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>41 s</dd> <dt>Output</dt> <dd><pre>The following actions will be performed: - install coq:contrib:sudoku.8.4.dev === 1 to install === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [coq:contrib:sudoku] Fetching https://gforge.inria.fr/git/coq-contribs/sudoku.git#v8.4 Initialized empty Git repository in /home/bench/.opam/packages.dev/coq:contrib:sudoku.8.4.dev/.git/ [master (root-commit) 479e1a9] opam-git-init From https://gforge.inria.fr/git/coq-contribs/sudoku * [new branch] v8.4 -&gt; opam-ref * [new branch] v8.4 -&gt; origin/v8.4 Div.v LICENSE ListAux.v ListOp.v Make Makefile Note.pdf OrderedList.v Permutation.v README Sudoku.v Tactic.v Test.v UList.v bench.log description HEAD is now at 71a653c Removing useless calls to injection. =-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Building coq:contrib:sudoku.8.4.dev: coq_makefile -f Make -o Makefile make -j4 make install &quot;coqdep&quot; -c -slash -R . Sudoku &quot;Div.v&quot; &gt; &quot;Div.v.d&quot; || ( RV=$?; rm -f &quot;Div.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;ListAux.v&quot; &gt; &quot;ListAux.v.d&quot; || ( RV=$?; rm -f &quot;ListAux.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;ListOp.v&quot; &gt; &quot;ListOp.v.d&quot; || ( RV=$?; rm -f &quot;ListOp.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;OrderedList.v&quot; &gt; &quot;OrderedList.v.d&quot; || ( RV=$?; rm -f &quot;OrderedList.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;Permutation.v&quot; &gt; &quot;Permutation.v.d&quot; || ( RV=$?; rm -f &quot;Permutation.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;Sudoku.v&quot; &gt; &quot;Sudoku.v.d&quot; || ( RV=$?; rm -f &quot;Sudoku.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;Tactic.v&quot; &gt; &quot;Tactic.v.d&quot; || ( RV=$?; rm -f &quot;Tactic.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;Test.v&quot; &gt; &quot;Test.v.d&quot; || ( RV=$?; rm -f &quot;Test.v.d&quot;; exit ${RV} ) &quot;coqdep&quot; -c -slash -R . Sudoku &quot;UList.v&quot; &gt; &quot;UList.v.d&quot; || ( RV=$?; rm -f &quot;UList.v.d&quot;; exit ${RV} ) &quot;coqc&quot; -q -R . Sudoku Tactic &quot;coqc&quot; -q -R . Sudoku ListAux &quot;coqc&quot; -q -R . Sudoku Div &quot;coqc&quot; -q -R . Sudoku Permutation &quot;coqc&quot; -q -R . Sudoku UList &quot;coqc&quot; -q -R . Sudoku OrderedList &quot;coqc&quot; -q -R . Sudoku ListOp &quot;coqc&quot; -q -R . Sudoku Sudoku &quot;coqc&quot; -q -R . Sudoku Test = 288 : nat = 2 :: 5 :: 8 :: 1 :: 6 :: 4 :: 9 :: 7 :: 3 :: nil : list nat = 6 :: 3 :: 4 :: 9 :: 5 :: 7 :: 2 :: 1 :: 8 :: nil : list nat = 9 :: 7 :: 1 :: 2 :: 3 :: 8 :: 6 :: 4 :: 5 :: nil : list nat = 7 :: 4 :: 5 :: 3 :: 9 :: 1 :: 8 :: 2 :: 6 :: nil : list nat = 8 :: 9 :: 6 :: 4 :: 2 :: 5 :: 1 :: 3 :: 7 :: nil : list nat = 1 :: 2 :: 3 :: 7 :: 8 :: 6 :: 4 :: 5 :: 9 :: nil : list nat = 3 :: 6 :: 9 :: 5 :: 1 :: 2 :: 7 :: 8 :: 4 :: nil : list nat = 4 :: 8 :: 2 :: 6 :: 7 :: 3 :: 5 :: 9 :: 1 :: nil : list nat = 5 :: 1 :: 7 :: 8 :: 4 :: 9 :: 3 :: 6 :: 2 :: nil : list nat = 1 : nat = 4 :: 5 :: 6 :: 9 :: 8 :: 7 :: 2 :: 1 :: 3 :: nil : list nat = 8 :: 3 :: 9 :: 2 :: 1 :: 5 :: 7 :: 6 :: 4 :: nil : list nat = 1 :: 2 :: 7 :: 6 :: 4 :: 3 :: 8 :: 5 :: 9 :: nil : list nat = 7 :: 4 :: 2 :: 3 :: 6 :: 9 :: 5 :: 8 :: 1 :: nil : list nat = 5 :: 6 :: 3 :: 8 :: 2 :: 1 :: 4 :: 9 :: 7 :: nil : list nat = 9 :: 8 :: 1 :: 7 :: 5 :: 4 :: 6 :: 3 :: 2 :: nil : list nat = 2 :: 7 :: 8 :: 1 :: 3 :: 6 :: 9 :: 4 :: 5 :: nil : list nat = 6 :: 1 :: 5 :: 4 :: 9 :: 2 :: 3 :: 7 :: 8 :: nil : list nat = 3 :: 9 :: 4 :: 5 :: 7 :: 8 :: 1 :: 2 :: 6 :: nil : list nat = 1 :: 2 :: 3 :: 4 :: 5 :: 6 :: 7 :: 8 :: 9 :: nil : list nat = 7 :: 8 :: 9 :: 1 :: 2 :: 3 :: 4 :: 5 :: 6 :: nil : list nat = 4 :: 5 :: 6 :: 9 :: 7 :: 8 :: 1 :: 2 :: 3 :: nil : list nat = 9 :: 1 :: 2 :: 8 :: 6 :: 5 :: 3 :: 4 :: 7 :: nil : list nat = 8 :: 3 :: 4 :: 7 :: 1 :: 2 :: 9 :: 6 :: 5 :: nil : list nat = 5 :: 6 :: 7 :: 3 :: 4 :: 9 :: 8 :: 1 :: 2 :: nil : list nat = 2 :: 9 :: 1 :: 5 :: 3 :: 4 :: 6 :: 7 :: 8 :: nil : list nat = 3 :: 7 :: 5 :: 6 :: 8 :: 1 :: 2 :: 9 :: 4 :: nil : list nat = 6 :: 4 :: 8 :: 2 :: 9 :: 7 :: 5 :: 3 :: 1 :: nil : list nat = Some (1 :: nil) : option (list nat) = Some (1 :: 2 :: 2 :: 1 :: nil) : option (list nat) = Some (1 :: 2 :: 3 :: 4 :: 3 :: 4 :: 1 :: 2 :: 2 :: 1 :: 4 :: 3 :: 4 :: 3 :: 2 :: 1 :: nil) : option (list nat) = Some (1 :: 2 :: 3 :: 4 :: 5 :: 6 :: 5 :: 6 :: 1 :: 2 :: 3 :: 4 :: 3 :: 4 :: 5 :: 6 :: 1 :: 2 :: 2 :: 1 :: 4 :: 3 :: 6 :: 5 :: 6 :: 5 :: 2 :: 1 :: 4 :: 3 :: 4 :: 3 :: 6 :: 5 :: 2 :: 1 :: nil) : option (list nat) = Some (1 :: 2 :: 3 :: 4 :: 5 :: 6 :: 7 :: 8 :: 9 :: 7 :: 8 :: 9 :: 1 :: 2 :: 3 :: 4 :: 5 :: 6 :: 4 :: 5 :: 6 :: 9 :: 7 :: 8 :: 1 :: 2 :: 3 :: 9 :: 1 :: 2 :: 8 :: 6 :: 5 :: 3 :: 4 :: 7 :: 8 :: 3 :: 4 :: 7 :: 1 :: 2 :: 9 :: 6 :: 5 :: 5 :: ..) : option (list nat) Finished transaction in 1. secs (1.812374u,1.8e-05s) = 7 :: 2 :: 4 :: 9 :: 6 :: 5 :: 8 :: 3 :: 1 :: nil : list nat = 6 :: 3 :: 5 :: 1 :: 4 :: 8 :: 9 :: 2 :: 7 :: nil : list nat = 1 :: 8 :: 9 :: 2 :: 7 :: 3 :: 4 :: 5 :: 6 :: nil : list nat = 2 :: 6 :: 1 :: 4 :: 8 :: 9 :: 3 :: 7 :: 5 :: nil : list nat = 9 :: 5 :: 8 :: 6 :: 3 :: 7 :: 1 :: 4 :: 2 :: nil : list nat = 3 :: 4 :: 7 :: 5 :: 2 :: 1 :: 6 :: 9 :: 8 :: nil : list nat = 5 :: 7 :: 6 :: 3 :: 1 :: 4 :: 2 :: 8 :: 9 :: nil : list nat = 4 :: 9 :: 2 :: 8 :: 5 :: 6 :: 7 :: 1 :: 3 :: nil : list nat = 8 :: 1 :: 3 :: 7 :: 9 :: 2 :: 5 :: 6 :: 4 :: nil : list nat = 25 : nat Finished transaction in 6. secs (6.283789u,1.1e-05s) Finished transaction in 3. secs (3.29798u,8.00000000001e-06s) = 5 :: 8 :: 6 :: 2 :: 3 :: 7 :: 9 :: 1 :: 4 :: nil : list nat = 7 :: 4 :: 2 :: 8 :: 1 :: 9 :: 3 :: 5 :: 6 :: nil : list nat = 1 :: 9 :: 3 :: 4 :: 6 :: 5 :: 7 :: 8 :: 2 :: nil : list nat = 6 :: 5 :: 7 :: 9 :: 8 :: 1 :: 2 :: 4 :: 3 :: nil : list nat = 9 :: 1 :: 4 :: 7 :: 2 :: 3 :: 5 :: 6 :: 8 :: nil : list nat = 2 :: 3 :: 8 :: 5 :: 4 :: 6 :: 1 :: 7 :: 9 :: nil : list nat = 3 :: 6 :: 5 :: 1 :: 9 :: 8 :: 4 :: 2 :: 7 :: nil : list nat = 4 :: 7 :: 9 :: 6 :: 5 :: 2 :: 8 :: 3 :: 1 :: nil : list nat = 8 :: 2 :: 1 :: 3 :: 7 :: 4 :: 6 :: 9 :: 5 :: nil : list nat = 1 : nat Finished transaction in 3. secs (3.310704u,0.s) for i in UList.vo Test.vo Tactic.vo Sudoku.vo Permutation.vo OrderedList.vo ListOp.vo ListAux.vo Div.vo; do \ install -d `dirname &quot;/home/bench/.opam/system/lib/coq/user-contrib&quot;/Sudoku/$i`; \ install -m 0644 $i &quot;/home/bench/.opam/system/lib/coq/user-contrib&quot;/Sudoku/$i; \ done Installing coq:contrib:sudoku.8.4.dev. </pre></dd> </dl> <h2>Installation size</h2> <p>Total: 963 K</p> <ul> <li>413 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/Sudoku.vo</code></li> <li>167 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/Permutation.vo</code></li> <li>111 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/OrderedList.vo</code></li> <li>87 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/ListAux.vo</code></li> <li>69 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/UList.vo</code></li> <li>42 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/ListOp.vo</code></li> <li>32 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/Test.vo</code></li> <li>31 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/Div.vo</code></li> <li>7 K <code>/home/bench/.opam/system/lib/coq/user-contrib/Sudoku/Tactic.vo</code></li> <li>1 K <code>/home/bench/.opam/system/lib/coq:contrib:sudoku/opam.config</code></li> <li>1 K <code>/home/bench/.opam/system/install/coq:contrib:sudoku.install</code></li> </ul> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq:contrib:sudoku.8.4.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 s</dd> <dt>Output</dt> <dd><pre>The following actions will be performed: - remove coq:contrib:sudoku.8.4.dev === 1 to remove === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [coq:contrib:sudoku] Fetching https://gforge.inria.fr/git/coq-contribs/sudoku.git#v8.4 =-=- Removing Packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Removing coq:contrib:sudoku.8.4.dev. rm -R /home/bench/.opam/system/lib/coq/user-contrib/Sudoku </pre></dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io-old
clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4.dev/contrib:sudoku/8.4.dev/2015-01-30_03-04-02.html
HTML
mit
20,619
using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Components { [RegisterComponent] public sealed class TriggerOnSignalReceivedComponent : Component { } }
space-wizards/space-station-14
Content.Server/MachineLinking/Components/TriggerOnSignalReceivedComponent.cs
C#
mit
197
//#include <stdio.h> //#include <stdlib.h> //#include <stdint.h> //#include <stdbool.h> //#include <string.h> //#include <stddef.h> #include "esp_common.h" #include "coap.h" #include "shell.h" //#include <rtthread.h> //#define shell_printf rt_kshell_printf extern void endpoint_setup(void); extern const coap_endpoint_t endpoints[]; #ifdef MICROCOAP_DEBUG void ICACHE_FLASH_ATTR coap_dumpHeader(coap_header_t *hdr) { shell_printf("Header:\n"); shell_printf(" ver 0x%02X\n", hdr->ver); shell_printf(" t 0x%02X\n", hdr->t); shell_printf(" tkl 0x%02X\n", hdr->tkl); shell_printf(" code 0x%02X\n", hdr->code); shell_printf(" id 0x%02X%02X\n", hdr->id[0], hdr->id[1]); } #endif #ifdef MICROCOAP_DEBUG void ICACHE_FLASH_ATTR coap_dump(const uint8_t *buf, size_t buflen, bool bare) { if (bare) { while(buflen--) shell_printf("%02X%s", *buf++, (buflen > 0) ? " " : ""); } else { shell_printf("Dump: "); while(buflen--) shell_printf("%02X%s", *buf++, (buflen > 0) ? " " : ""); shell_printf("\n"); } } #endif int ICACHE_FLASH_ATTR coap_parseHeader(coap_header_t *hdr, const uint8_t *buf, size_t buflen) { if (buflen < 4) return COAP_ERR_HEADER_TOO_SHORT; hdr->ver = (buf[0] & 0xC0) >> 6; if (hdr->ver != 1) return COAP_ERR_VERSION_NOT_1; hdr->t = (buf[0] & 0x30) >> 4; hdr->tkl = buf[0] & 0x0F; hdr->code = buf[1]; hdr->id[0] = buf[2]; hdr->id[1] = buf[3]; return 0; } int ICACHE_FLASH_ATTR coap_parseToken(coap_buffer_t *tokbuf, const coap_header_t *hdr, const uint8_t *buf, size_t buflen) { if (hdr->tkl == 0) { tokbuf->p = NULL; tokbuf->len = 0; return 0; } else if (hdr->tkl <= 8) { if (4U + hdr->tkl > buflen) return COAP_ERR_TOKEN_TOO_SHORT; // tok bigger than packet tokbuf->p = buf+4; // past header tokbuf->len = hdr->tkl; return 0; } else { // invalid size return COAP_ERR_TOKEN_TOO_SHORT; } } // advances p int ICACHE_FLASH_ATTR coap_parseOption(coap_option_t *option, uint16_t *running_delta, const uint8_t **buf, size_t buflen) { const uint8_t *p = *buf; uint8_t headlen = 1; uint16_t len, delta; if (buflen < headlen) // too small return COAP_ERR_OPTION_TOO_SHORT_FOR_HEADER; delta = (p[0] & 0xF0) >> 4; len = p[0] & 0x0F; // These are untested and may be buggy if (delta == 13) { headlen++; if (buflen < headlen) return COAP_ERR_OPTION_TOO_SHORT_FOR_HEADER; delta = p[1] + 13; p++; } else if (delta == 14) { headlen += 2; if (buflen < headlen) return COAP_ERR_OPTION_TOO_SHORT_FOR_HEADER; delta = ((p[1] << 8) | p[2]) + 269; p+=2; } else if (delta == 15) return COAP_ERR_OPTION_DELTA_INVALID; if (len == 13) { headlen++; if (buflen < headlen) return COAP_ERR_OPTION_TOO_SHORT_FOR_HEADER; len = p[1] + 13; p++; } else if (len == 14) { headlen += 2; if (buflen < headlen) return COAP_ERR_OPTION_TOO_SHORT_FOR_HEADER; len = ((p[1] << 8) | p[2]) + 269; p+=2; } else if (len == 15) return COAP_ERR_OPTION_LEN_INVALID; if ((p + 1 + len) > (*buf + buflen)) return COAP_ERR_OPTION_TOO_BIG; //shell_printf("option num=%d\n", delta + *running_delta); option->num = delta + *running_delta; option->buf.p = p+1; option->buf.len = len; //coap_dump(p+1, len, false); // advance buf *buf = p + 1 + len; *running_delta += delta; return 0; } // http://tools.ietf.org/html/rfc7252#section-3.1 int ICACHE_FLASH_ATTR coap_parseOptionsAndPayload(coap_option_t *options, uint8_t *numOptions, coap_buffer_t *payload, const coap_header_t *hdr, const uint8_t *buf, size_t buflen) { size_t optionIndex = 0; uint16_t delta = 0; const uint8_t *p = buf + 4 + hdr->tkl; const uint8_t *end = buf + buflen; int rc; if (p > end) return COAP_ERR_OPTION_OVERRUNS_PACKET; // out of bounds //coap_dump(p, end - p); // 0xFF is payload marker while((optionIndex < *numOptions) && (p < end) && (*p != 0xFF)) { if (0 != (rc = coap_parseOption(&options[optionIndex], &delta, &p, end-p))) return rc; optionIndex++; } *numOptions = optionIndex; if (p+1 < end && *p == 0xFF) // payload marker { payload->p = p+1; payload->len = end-(p+1); } else { payload->p = NULL; payload->len = 0; } return 0; } #ifdef MICROCOAP_DEBUG void ICACHE_FLASH_ATTR coap_dumpOptions(coap_option_t *opts, size_t numopt) { size_t i; shell_printf("Options:\n"); for (i=0;i<numopt;i++) { shell_printf(" 0x%02X [ ", opts[i].num); coap_dump(opts[i].buf.p, opts[i].buf.len, true); shell_printf(" ]\n"); } } #endif #ifdef MICROCOAP_DEBUG void ICACHE_FLASH_ATTR coap_dumpPacket(coap_packet_t *pkt) { coap_dumpHeader(&pkt->hdr); coap_dumpOptions(pkt->opts, pkt->numopts); shell_printf("Payload: \n"); coap_dump(pkt->payload.p, pkt->payload.len, true); shell_printf("\n"); } #endif int ICACHE_FLASH_ATTR coap_parse(coap_packet_t *pkt, const uint8_t *buf, size_t buflen) { int rc; // coap_dump(buf, buflen, false); if (0 != (rc = coap_parseHeader(&pkt->hdr, buf, buflen))) return rc; // coap_dumpHeader(&hdr); if (0 != (rc = coap_parseToken(&pkt->tok, &pkt->hdr, buf, buflen))) return rc; pkt->numopts = MAXOPT; if (0 != (rc = coap_parseOptionsAndPayload(pkt->opts, &(pkt->numopts), &(pkt->payload), &pkt->hdr, buf, buflen))) return rc; // coap_dumpOptions(opts, numopt); return 0; } // options are always stored consecutively, so can return a block with same option num const coap_option_t * ICACHE_FLASH_ATTR coap_findOptions(const coap_packet_t *pkt, uint8_t num, uint8_t *count) { // FIXME, options is always sorted, can find faster than this size_t i; const coap_option_t *first = NULL; *count = 0; for (i=0;i<pkt->numopts;i++) { if (pkt->opts[i].num == num) { if (NULL == first) first = &pkt->opts[i]; (*count)++; } else { if (NULL != first) break; } } return first; } int ICACHE_FLASH_ATTR coap_buffer_to_string(char *strbuf, size_t strbuflen, const coap_buffer_t *buf) { if (buf->len+1 > strbuflen) return COAP_ERR_BUFFER_TOO_SMALL; memcpy(strbuf, buf->p, buf->len); strbuf[buf->len] = 0; return 0; } int ICACHE_FLASH_ATTR coap_build(uint8_t *buf, size_t *buflen, const coap_packet_t *pkt) { size_t opts_len = 0; size_t i; uint8_t *p; uint16_t running_delta = 0; // build header if (*buflen < (4U + pkt->hdr.tkl)) return COAP_ERR_BUFFER_TOO_SMALL; buf[0] = (pkt->hdr.ver & 0x03) << 6; buf[0] |= (pkt->hdr.t & 0x03) << 4; buf[0] |= (pkt->hdr.tkl & 0x0F); buf[1] = pkt->hdr.code; buf[2] = pkt->hdr.id[0]; buf[3] = pkt->hdr.id[1]; // inject token p = buf + 4; if ((pkt->hdr.tkl > 0) && (pkt->hdr.tkl != pkt->tok.len)) return COAP_ERR_UNSUPPORTED; if (pkt->hdr.tkl > 0) memcpy(p, pkt->tok.p, pkt->hdr.tkl); // // http://tools.ietf.org/html/rfc7252#section-3.1 // inject options p += pkt->hdr.tkl; for (i=0;i<pkt->numopts;i++) { uint32_t optDelta; uint8_t len, delta = 0; if (((size_t)(p-buf)) > *buflen) return COAP_ERR_BUFFER_TOO_SMALL; optDelta = pkt->opts[i].num - running_delta; coap_option_nibble(optDelta, &delta); coap_option_nibble((uint32_t)pkt->opts[i].buf.len, &len); *p++ = (0xFF & (delta << 4 | len)); if (delta == 13) { *p++ = (optDelta - 13); } else if (delta == 14) { *p++ = ((optDelta-269) >> 8); *p++ = (0xFF & (optDelta-269)); } if (len == 13) { *p++ = (pkt->opts[i].buf.len - 13); } else if (len == 14) { *p++ = (pkt->opts[i].buf.len >> 8); *p++ = (0xFF & (pkt->opts[i].buf.len-269)); } memcpy(p, pkt->opts[i].buf.p, pkt->opts[i].buf.len); p += pkt->opts[i].buf.len; running_delta = pkt->opts[i].num; } opts_len = (p - buf) - 4; // number of bytes used by options if (pkt->payload.len > 0) { if (*buflen < 4 + 1 + pkt->payload.len + opts_len) return COAP_ERR_BUFFER_TOO_SMALL; buf[4 + opts_len] = 0xFF; // payload marker memcpy(buf+5 + opts_len, pkt->payload.p, pkt->payload.len); *buflen = opts_len + 5 + pkt->payload.len; } else *buflen = opts_len + 4; return 0; } void ICACHE_FLASH_ATTR coap_option_nibble(uint32_t value, uint8_t *nibble) { if (value<13) { *nibble = (0xFF & value); } else if (value<=0xFF+13) { *nibble = 13; } else if (value<=0xFFFF+269) { *nibble = 14; } } int ICACHE_FLASH_ATTR coap_make_response(coap_rw_buffer_t *scratch, coap_packet_t *pkt, const uint8_t *content, size_t content_len, uint8_t msgid_hi, uint8_t msgid_lo, const coap_buffer_t* tok, coap_responsecode_t rspcode, coap_content_type_t content_type) { pkt->hdr.ver = 0x01; pkt->hdr.t = COAP_TYPE_ACK; pkt->hdr.tkl = 0; pkt->hdr.code = rspcode; pkt->hdr.id[0] = msgid_hi; pkt->hdr.id[1] = msgid_lo; pkt->numopts = 1; // need token in response if (tok) { pkt->hdr.tkl = tok->len; pkt->tok = *tok; } // safe because 1 < MAXOPT pkt->opts[0].num = COAP_OPTION_CONTENT_FORMAT; pkt->opts[0].buf.p = scratch->p; if (scratch->len < 2) return COAP_ERR_BUFFER_TOO_SMALL; scratch->p[0] = ((uint16_t)content_type & 0xFF00) >> 8; scratch->p[1] = ((uint16_t)content_type & 0x00FF); pkt->opts[0].buf.len = 2; pkt->payload.p = content; pkt->payload.len = content_len; return 0; } // FIXME, if this looked in the table at the path before the method then // it could more easily return 405 errors int ICACHE_FLASH_ATTR coap_handle_req(coap_rw_buffer_t *scratch, const coap_packet_t *inpkt, coap_packet_t *outpkt) { const coap_option_t *opt; uint8_t count; int i; const coap_endpoint_t *ep = endpoints; while(NULL != ep->handler) { if (ep->method != inpkt->hdr.code) goto next; if (NULL != (opt = coap_findOptions(inpkt, COAP_OPTION_URI_PATH, &count))) { if (count != ep->path->count) goto next; for (i=0;i<count;i++) { if (opt[i].buf.len != strlen(ep->path->elems[i])) goto next; if (0 != memcmp(ep->path->elems[i], opt[i].buf.p, opt[i].buf.len)) goto next; } // match! return ep->handler(scratch, inpkt, outpkt, inpkt->hdr.id[0], inpkt->hdr.id[1]); } next: ep++; } coap_make_response(scratch, outpkt, NULL, 0, inpkt->hdr.id[0], inpkt->hdr.id[1], &inpkt->tok, COAP_RSPCODE_NOT_FOUND, COAP_CONTENTTYPE_NONE); return 0; } void coap_setup(void) { }
AccretionD/ESP8266_freertos_coap
app/user/coap.c
C
mit
12,020
module Softlayer module Container module Dns autoload :Domain, 'softlayer/container/dns/domain' end end end
zertico/softlayer
lib/softlayer/container/dns.rb
Ruby
mit
126
<aside class="main-sidebar"> <section class="sidebar"> <div class="user-panel"> <div class="pull-left image"> <img src="<?php echo base_url() ?>assets/img/user2-160x160.jpg" class="img-circle" alt="User Image"> </div> <div class="pull-left info"> <p>Alexander Pierce</p> <i class="fa fa-circle text-success"></i> Online </div> </div> <!-- sidebar menu: : style can be found in sidebar.less --> <ul class="sidebar-menu"> <li class="treeview"> <a href="#"> <i class="fa fa-users"></i> <span>Funcionarios</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="<?php echo base_url()?>funcionarios/Index/registroFuncionarios"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="<?php echo base_url()?>funcionarios/Index/listadoFuncionarios"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-cogs"></i> <span>Cuentas de Usuarios</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-graduation-cap" aria-hidden="true"></i> <span>Matrícula de Párvulos</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Reporte Funcionarios</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-cubes" aria-hidden="true"></i> <span>Niveles Jardín</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="<?php echo base_url() ?>niveles/Index/crearNivel"><i class="fa fa-circle-o text-aqua"></i> Registrar Niveles Jardín</a></li> <li><a href="<?php echo base_url() ?>niveles/Index/crearNivelAnual"><i class="fa fa-circle-o text-aqua"></i> Crear Niveles Anuales</a></li> <li><a href="<?php echo base_url() ?>niveles/Index/armarNivelAnual"><i class="fa fa-circle-o text-aqua"></i> Armar Niveles</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Niveles</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-book" aria-hidden="true"></i> <span>Unidades de Contenido</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Reporte Funcionarios</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-laptop" aria-hidden="true"></i> <span>Planific. Educadora</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Reporte Funcionarios</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-bar-chart" aria-hidden="true"></i> <span>Reportes</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Reporte Funcionarios</a></li> </ul> </li> <li class="treeview"> <a href="#"> <i class="fa fa-question-circle" aria-hidden="true"></i> <span>Ayuda</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Registro Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Listado Funcionarios</a></li> <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> Reporte Funcionarios</a></li> </ul> </li> </ul> </section> </aside>
codenous/intranet_planEvalWeb
application/views/template/sidebar.php
PHP
mit
5,929
<!DOCTYPE html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="keywords" content=" "> <title>Prerequisites | LivePerson Technical Documentation</title> <link rel="stylesheet" href="css/syntax.css"> <link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css"> <!--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">--> <link rel="stylesheet" href="css/modern-business.css"> <link rel="stylesheet" href="css/lavish-bootstrap.css"> <link rel="stylesheet" href="css/customstyles.css"> <link rel="stylesheet" href="css/theme-blue.css"> <!-- <script src="assets/js/jsoneditor.js"></script> --> <script src="assets/js/jquery-3.1.0.min.js"></script> <!-- <link rel='stylesheet' id='theme_stylesheet' href='//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css'> --> <!-- <link rel='stylesheet' id='theme_stylesheet' href='//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css'> --> <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> --> <script src="assets/js/jquery.cookie-1.4.1.min.js"></script> <script src="js/jquery.navgoco.min.js"></script> <script src="assets/js/bootstrap-3.3.4.min.js"></script> <script src="assets/js/anchor-2.0.0.min.js"></script> <script src="js/toc.js"></script> <script src="js/customscripts.js"></script> <link rel="shortcut icon" href="images/favicon.ico"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <link rel="alternate" type="application/rss+xml" title="" href="http://0.0.0.0:4005feed.xml"> <script> $(document).ready(function() { // Initialize navgoco with default options $("#mysidebar").navgoco({ caretHtml: '', accordion: true, openClass: 'active', // open save: false, // leave false or nav highlighting doesn't work right cookie: { name: 'navgoco', expires: false, path: '/' }, slide: { duration: 400, easing: 'swing' } }); $("#collapseAll").click(function(e) { e.preventDefault(); $("#mysidebar").navgoco('toggle', false); }); $("#expandAll").click(function(e) { e.preventDefault(); $("#mysidebar").navgoco('toggle', true); }); }); </script> <script> $(function () { $('[data-toggle="tooltip"]').tooltip() }) </script> </head> <body> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container topnavlinks"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <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="fa fa-home fa-lg navbar-brand" href="index.html">&nbsp;<span class="projectTitle"> LivePerson Technical Documentation</span></a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <!-- entries without drop-downs appear here --> <!-- entries with drop-downs appear here --> <!-- conditional logic to control which topnav appears for the audience defined in the configuration file.--> <li><a class="email" title="Submit feedback" href="https://github.com/LivePersonInc/dev-hub/issues" ><i class="fa fa-github"></i> Issues</a><li> <!--comment out this block if you want to hide search--> <li> <!--start search--> <div id="search-demo-container"> <input type="text" id="search-input" placeholder="search..."> <ul id="results-container"></ul> </div> <script src="js/jekyll-search.js" type="text/javascript"></script> <script type="text/javascript"> SimpleJekyllSearch.init({ searchInput: document.getElementById('search-input'), resultsContainer: document.getElementById('results-container'), dataSource: 'search.json', searchResultTemplate: '<li><a href="{url}" title="Prerequisites">{title}</a></li>', noResultsText: 'No results found.', limit: 10, fuzzy: true, }) </script> <!--end search--> </li> </ul> </div> </div> <!-- /.container --> </nav> <!-- Page Content --> <div class="container"> <div class="col-lg-12">&nbsp;</div> <!-- Content Row --> <div class="row"> <!-- Sidebar Column --> <div class="col-md-3"> <ul id="mysidebar" class="nav"> <li class="sidebarTitle"> </li> <li> <a href="#">Common Guidelines</a> <ul> <li class="subfolders"> <a href="#">Introduction</a> <ul> <li class="thirdlevel"><a href="index.html">Home</a></li> <li class="thirdlevel"><a href="getting-started.html">Getting Started with LiveEngage APIs</a></li> </ul> </li> <li class="subfolders"> <a href="#">Guides</a> <ul> <li class="thirdlevel"><a href="guides-customizedchat.html">Customized Chat Windows</a></li> </ul> </li> </ul> <li> <a href="#">Account Configuration</a> <ul> <li class="subfolders"> <a href="#">Predefined Content API</a> <ul> <li class="thirdlevel"><a href="account-configuration-predefined-content-overview.html">Overview</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-methods.html">Methods</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-get-items.html">Get Predefined Content Items</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-get-by-id.html">Get Predefined Content by ID</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-query-delta.html">Predefined Content Query Delta</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-create-content.html">Create Predefined Content</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-update-content.html">Update Predefined Content</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-update-content-items.html">Update Predefined Content Items</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-delete-content.html">Delete Predefined Content</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-delete-content-items.html">Delete Predefined Content Items</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-get-default-items.html">Get Default Predefined Content Items</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-get-default-items-by-id.html">Get Default Predefined Content by ID</a></li> <li class="thirdlevel"><a href="account-configuration-predefined-content-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Automatic Messages API</a> <ul> <li class="thirdlevel"><a href="account-configuration-automatic-messages-overview.html">Overview</a></li> <li class="thirdlevel"><a href="account-configuration-automatic-messages-methods.html">Methods</a></li> <li class="thirdlevel"><a href="account-configuration-automatic-messages-get-automatic-messages.html">Get Automatic Messages</a></li> <li class="thirdlevel"><a href="account-configuration-automatic-messages-get-automatic-message-by-id.html">Get Automatic Message by ID</a></li> <li class="thirdlevel"><a href="account-configuration-automatic-messages-update-an-automatic-message.html">Update an Automatic Message</a></li> <li class="thirdlevel"><a href="account-configuration-automatic-messages-appendix.html">Appendix</a></li> </ul> </li> </ul> <li> <a href="#">Administration</a> <ul> <li class="subfolders"> <a href="#">Users API</a> <ul> <li class="thirdlevel"><a href="administration-users-overview.html">Overview</a></li> <li class="thirdlevel"><a href="administration-users-methods.html">Methods</a></li> <li class="thirdlevel"><a href="administration-get-all-users.html">Get all users</a></li> <li class="thirdlevel"><a href="administration-get-user-by-id.html">Get user by ID</a></li> <li class="thirdlevel"><a href="administration-create-users.html">Create users</a></li> <li class="thirdlevel"><a href="administration-update-users.html">Update users</a></li> <li class="thirdlevel"><a href="administration-update-user.html">Update user</a></li> <li class="thirdlevel"><a href="administration-delete-users.html">Delete users</a></li> <li class="thirdlevel"><a href="administration-delete-user.html">Delete user</a></li> <li class="thirdlevel"><a href="administration-change-users-password.html">Change user's password</a></li> <li class="thirdlevel"><a href="administration-reset-users-password.html">Reset user's password</a></li> <li class="thirdlevel"><a href="administration-user-query-delta.html">User query delta</a></li> <li class="thirdlevel"><a href="administration-users-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Skills API</a> <ul> <li class="thirdlevel"><a href="administration-skills-overview.html">Overview</a></li> <li class="thirdlevel"><a href="administration-skills-methods.html">Methods</a></li> <li class="thirdlevel"><a href="administration-get-all-skills.html">Get all skills</a></li> <li class="thirdlevel"><a href="administration-get-skill-by-id.html">Get skill by ID</a></li> <li class="thirdlevel"><a href="administration-create-skills.html">Create skills</a></li> <li class="thirdlevel"><a href="administration.update-skills.html">Update skills</a></li> <li class="thirdlevel"><a href="administration-update-skill.html">Update skill</a></li> <li class="thirdlevel"><a href="administration-delete-skills.html">Delete skills</a></li> <li class="thirdlevel"><a href="administration-delete-skill.html">Delete skill</a></li> <li class="thirdlevel"><a href="administration-skills-query-delta.html">Skills Query Delta</a></li> <li class="thirdlevel"><a href="administration-skills-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Agent Groups API</a> <ul> <li class="thirdlevel"><a href="administration-agent-groups-overview.html">Overview</a></li> <li class="thirdlevel"><a href="administration-agent-groups-methods.html">Methods</a></li> <li class="thirdlevel"><a href="administration-get-all-agent-groups.html">Get all agent groups</a></li> <li class="thirdlevel"><a href="administration-get-agent-groups-by-id.html">Get agent group by ID</a></li> <li class="thirdlevel"><a href="administration-create-agent-groups.html">Create agent groups</a></li> <li class="thirdlevel"><a href="administration-update-agent-groups.html">Update agent groups</a></li> <li class="thirdlevel"><a href="administration-update-agent-group.html">Update agent group</a></li> <li class="thirdlevel"><a href="administration-delete-agent-groups.html">Delete agent groups</a></li> <li class="thirdlevel"><a href="administration-delete-agent-group.html">Delete agent group</a></li> <li class="thirdlevel"><a href="administration-get-subgroups-and-members.html">Get subgroups and members of an agent group</a></li> <li class="thirdlevel"><a href="administration-agent-groups-query-delta.html">Agent Groups Query Delta</a></li> </ul> </li> </ul> <li> <a href="#">Consumer Experience</a> <ul> <li class="subfolders"> <a href="#">JavaScript Chat SDK</a> <ul> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getting-started.html">Getting Started</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-chat-states.html">Chat States</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-surveys.html">Surveys</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-creating-an-instance.html">Creating an Instance</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-methods.html">Methods</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getestimatedwaittime.html">getEstimatedWaitTime</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getprechatsurvey.html">getPreChatSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getengagement.html">getEngagement</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-requestchat.html">requestChat</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-addline.html">addLine</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-setvisitortyping.html">setVisitorTyping</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-setvisitorname.html">setVisitorName</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-endchat.html">endChat</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-requesttranscript.html">requestTranscript</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getexitsurvey.html">getExitSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-submitexitsurvey.html">submitExitSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getofflinesurvey.html">getOfflineSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-submitofflinesurvey.html">submitOfflineSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getstate.html">getState</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getagentloginname.html">getAgentLoginName</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getvisitorname.html">getVisitorName</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getagentid.html">getAgentId</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getrtsessionid.html">getRtSessionId</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getsessionkey.html">getSessionKey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-getagenttyping.html">getAgentTyping</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-events.html">Events</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onload.html">onLoad</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-oninit.html">onInit</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onestimatedwaittime.html">onEstimatedWaitTime</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onengagement.html">onEngagement</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onprechatsurvey.html">onPreChatSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onstart.html">onStart</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onstop.html">onStop</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onrequestchat.html">onRequestChat</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-ontranscript.html">onTranscript</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-online.html">onLine</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onstate.html">onState</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-oninfo.html">onInfo</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onagenttyping.html">onAgentTyping</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onexitsurvey.html">onExitSurvey</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-onaccounttoaccounttransfer.html">onAccountToAccountTransfer</a></li> <li class="thirdlevel"><a href="rt-interactions-example.html">Engagement Attributes Body Example</a></li> <li class="thirdlevel"><a href="consumer-experience-javascript-chat-demo.html">Demo App</a></li> </ul> </li> <li class="subfolders"> <a href="#">Server Chat API</a> <ul> <li class="thirdlevel"><a href="consumer-experience-server-chat-getting-started.html">Getting Started</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-methods.html">Methods</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-availability.html">Retrieve Availability</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-available-slots.html">Retrieve Available Slots</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-estimated-wait-time.html">Retrieve Estimated Wait Time</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-offline-survey.html">Retrieve an Offline Survey</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-start-chat.html">Start a Chat</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-chat-resources.html">Retrieve Chat Resources, Events and Information</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-chat-events.html">Retrieve Chat Events</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-add-lines.html">Add Lines / End Chat</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-chat-information.html">Retrieve Chat Information</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-visitor-name.html">Retrieve the Visitor's Name</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-set-visitor-name.html">Set the Visitor's Name</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-agent-typing-status.html">Retrieve the Agent's Typing Status</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-visitor-typing-status.html">Retrieve the Visitor's Typing Status</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-set-visitor-typing-status.html">Set the Visitor's Typing Status</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-retrieve-exit-survey-structure.html">Retrieve Exit Survey Structure</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-submit-survey-data.html">Submit Survey Data</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-send-transcript.html">Send a Transcript</a></li> <li class="thirdlevel"><a href="consumer-experience-server-chat-sample.html">Sample Postman Collection</a></li> </ul> </li> <li class="subfolders"> <a href="#">Push Service API</a> <ul> <li class="thirdlevel"><a href="push-service-overview.html">Overview</a></li> <li class="thirdlevel"><a href="push-service-tls-html">TLS Authentication</a></li> <li class="thirdlevel"><a href="push-service-codes-html">HTTP Response Codes</a></li> <li class="thirdlevel"><a href="push-service-configuration-html">Configuration of Push Proxy</a></li> </ul> </li> <li class="subfolders"> <a href="#">In-App Messaging SDK iOS (2.0)</a> <ul> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-quick-start.html">Quick Start</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-advanced-configurations.html">Advanced Configurations</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-methods.html">Methods</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-initialize.html">initialize</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-showconversation.html">showConversation</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-removeconversation.html">removeConversation</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-reconnect.html">reconnect</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-togglechatactions.html">toggleChatActions</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-checkactiveconversation.html">checkActiveConversation</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-markasurgent.html">markAsUrgent</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-isurgent.html">isUrgent</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-dismissurgent.html">dismissUrgent</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-resolveconversation.html">resolveConversation</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-clearhistory.html">clearHistory</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-logout.html">logout</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-destruct.html">destruct</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-handlepush.html">handlePush</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-registerpushnotifications.html">registerPushNotifications</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-setuserprofile.html">setUserProfile</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-getassignedagent.html">getAssignedAgent</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-subscribelogevents.html">subscribeLogEvents</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-getsdkversion.html">getSDKVersion</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-printalllocalizedkeys.html">printAllLocalizedKeys</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-printsupportedlanguages.html">printSupportedLanguages</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-getallsupportedlanguages.html">getAllSupportedLanguages</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-interfacedefinitions.html">Interface and Class Definitions</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-callbacks-index.html">Callbacks index</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-configuring-the-sdk.html">Configuring the SDK</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-attributes.html">Attributes</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-deprecated-attributes.html">Deprecated Attributes</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-stringlocalization.html">String localization in SDK</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-localizationkeys.html">Localization Keys</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-timestamps.html">Timestamps Formatting</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-createcertificate.html">OS Certificate Creation</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-advanced-csat.html">CSAT UI Content</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-photosharing.html">Photo Sharing (Beta)</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-pushnotifications.html">Configuring Push Notifications</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-opensource.html">Open Source List</a></li> <li class="thirdlevel"><a href="consumer-experience-ios-sdk-security.html">Security</a></li> </ul> </li> <li class="subfolders"> <a href="#">In-App Messaging SDK Android (2.0)</a> <ul> <li class="thirdlevel"><a href="android-overview.html">Overview</a></li> <li class="thirdlevel"><a href="android-prerequisites.html">Prerequisites</a></li> <li class="thirdlevel"><a href="android-download-and-unzip.html">Step 1: Download and Unzip the SDK</a></li> <li class="thirdlevel"><a href="android-configure-project-settings.html">Step 2: Configure project settings to connect LiveEngage SDK</a></li> <li class="thirdlevel"><a href="android-code-integration.html">Step 3: Code integration for basic deployment</a></li> <li class="thirdlevel"><a href="android-initialization.html">SDK Initialization and Lifecycle</a></li> <li class="thirdlevel"><a href="android-authentication.html">Authentication</a></li> <li class="thirdlevel"><a href="android-conversations-lifecycle.html">Conversations Lifecycle</a></li> <li class="thirdlevel"><a href="android-callbacks-interface.html">LivePerson Callbacks Interface</a></li> <li class="thirdlevel"><a href="android-notifications.html">Notifications</a></li> <li class="thirdlevel"><a href="android-user-data.html">User Data</a></li> <li class="thirdlevel"><a href="android-logs.html">Logs and Info</a></li> <li class="thirdlevel"><a href="android-methods.html">Methods</a></li> <li class="thirdlevel"><a href="android-initializedeprecated.html">initialize (Deprecated)</a></li> <li class="thirdlevel"><a href="android-initializeproperties.html">initialize (with SDK properties object)</a></li> <li class="thirdlevel"><a href="android-showconversation.html">showConversation</a></li> <li class="thirdlevel"><a href="android-showconversationauth.html">showConversation (with authentication support)</a></li> <li class="thirdlevel"><a href="android-hideconversation.html">hideConversation</a></li> <li class="thirdlevel"><a href="android-getconversationfrag.html">getConversationFragment</a></li> <li class="thirdlevel"><a href="android-getconversationfragauth.html">getConversationFragment with authentication support</a></li> <li class="thirdlevel"><a href="android-reconnect.html">reconnect</a></li> <li class="thirdlevel"><a href="android-setuserprofile.html">setUserProfile</a></li> <li class="thirdlevel"><a href="android-setuserprofiledeprecated.html">setUserProfile (Deprecated)</a></li> <li class="thirdlevel"><a href="android-registerlppusher.html">registerLPPusher</a></li> <li class="thirdlevel"><a href="android-unregisterlppusher.html">unregisterLPPusher</a></li> <li class="thirdlevel"><a href="android-handlepush.html">handlePush</a></li> <li class="thirdlevel"><a href="android-getsdkversion.html">getSDKVersion</a></li> <li class="thirdlevel"><a href="android-setcallback.html">setCallback</a></li> <li class="thirdlevel"><a href="android-removecallback.html">removeCallBack</a></li> <li class="thirdlevel"><a href="android-checkactiveconversation.html">checkActiveConversation</a></li> <li class="thirdlevel"><a href="android-checkagentid.html">checkAgentID</a></li> <li class="thirdlevel"><a href="android-markurgent.html">markConversationAsUrgent</a></li> <li class="thirdlevel"><a href="android-marknormal.html">markConversationAsNormal</a></li> <li class="thirdlevel"><a href="android-checkurgent.html">checkConversationIsMarkedAsUrgent</a></li> <li class="thirdlevel"><a href="android-resolveconversation.html">resolveConversation</a></li> <li class="thirdlevel"><a href="android-shutdown.html">shutDown</a></li> <li class="thirdlevel"><a href="android-shutdowndeprecated.html">shutDown (Deprecated)</a></li> <li class="thirdlevel"><a href="android-clearhistory.html">clearHistory</a></li> <li class="thirdlevel"><a href="android-logout.html">logOut</a></li> <li class="thirdlevel"><a href="android-callbacks-index.html">Callbacks Index</a></li> <li class="thirdlevel"><a href="android-configuring-sdk.html">Configuring the SDK</a></li> <li class="thirdlevel"><a href="android-attributes.html">Attributes</a></li> <li class="thirdlevel"><a href="android-configuring-edittext.html">Configuring the message’s EditText</a></li> <li class="thirdlevel"><a href="android-proguard.html">Proguard Configuration</a></li> <li class="thirdlevel"><a href="android-modifying-string.html">Modifying Strings</a></li> <li class="thirdlevel"><a href="android-modifying-resources.html">Modifying Resources</a></li> <li class="thirdlevel"><a href="android-plural-string.html">Plural String Resource Example</a></li> <li class="thirdlevel"><a href="android-timestamps.html">Timestamps Formatting</a></li> <li class="thirdlevel"><a href="android-off-hours.html">Date and Time</a></li> <li class="thirdlevel"><a href="android-bubble.html">Bubble Timestamp</a></li> <li class="thirdlevel"><a href="android-separator.html">Separator Timestamp</a></li> <li class="thirdlevel"><a href="android-resolve.html">Resolve Message</a></li> <li class="thirdlevel"><a href="android-csat.html">CSAT Behavior</a></li> <li class="thirdlevel"><a href="android-photo-sharing.html">Photo Sharing - Beta</a></li> <li class="thirdlevel"><a href="android-push-notifications.html">Enable Push Notifications</a></li> <li class="thirdlevel"><a href="android-appendix.html">Appendix</a></li> </ul> </li> </ul> <li> <a href="#">Real-time Interactions</a> <ul> <li class="subfolders"> <a href="#">Visit Information API</a> <ul> <li class="thirdlevel"><a href="rt-interactions-visit-information-overview.html">Overview</a></li> <li class="thirdlevel"><a href="rt-interactions-visit-information-visit-information.html">Visit Information</a></li> </ul> </li> <li class="subfolders"> <a href="#">App Engagement API</a> <ul> <li class="thirdlevel"><a href="rt-interactions-app-engagement-overview.html">Overview</a></li> <li class="thirdlevel"><a href="rt-interactions-app-engagement-methods.html">Methods</a></li> <li class="thirdlevel"><a href="rt-interactions-create-session.html">Create Session</a></li> <li class="thirdlevel"><a href="rt-interactions-update-session.html">Update Session</a></li> </ul> </li> <li class="subfolders"> <a href="#">Engagement Attributes</a> <ul> <li class="thirdlevel"><a href="rt-interactions-engagement-attributes-overview.html">Overview</a></li> <li class="thirdlevel"><a href="rt-interactions-engagement-attributes-engagement-attributes.html">Engagement Attributes</a></li> </ul> </li> <li class="subfolders"> <a href="#">IVR Engagement API</a> <ul> <li class="thirdlevel"><a href="rt-interactions-ivr-engagement-overview.html">Overview</a></li> <li class="thirdlevel"><a href="rt-interactions-ivr-engagement-methods.html">Methods</a></li> <li class="thirdlevel"><a href="rt-interactions-ivr-engagement-external engagement.html">External Engagement</a></li> </ul> </li> <li class="subfolders"> <a href="#">Validate Engagement</a> <ul> <li class="thirdlevel"><a href="rt-interactions-validate-engagement-overview.html">Overview</a></li> <li class="thirdlevel"><a href="rt-interactions-validate-engagement-validate-engagement.html">Validate Engagement API</a></li> </ul> </li> <li class="subfolders"> <a href="#">Engagement Trigger API</a> <ul> <li class="thirdlevel"><a href="trigger-overview.html">Overview</a></li> <li class="thirdlevel"><a href="trigger-methods.html">Methods</a></li> <li class="thirdlevel"><a href="trigger-click.html">Click</a></li> <li class="thirdlevel"><a href="trigger-getinfo.html">getEngagementInfo</a></li> <li class="thirdlevel"><a href="trigger-getstate.html">getEngagementState</a></li> </ul> </li> <li class="subfolders"> <a href="#">Engagement Window Widget SDK</a> <ul> <li class="thirdlevel"><a href="rt-interactions-window-sdk-overview.html">Overview</a></li> <li class="thirdlevel"><a href="rt-interactions-window-sdk-getting-started.html">Getting Started</a></li> <li class="thirdlevel"><a href="rt-interactions-window-sdk-limitations.html">Limitations</a></li> <li class="thirdlevel"><a href="rt-interactions-window-sdk-configuration.html">Configuration</a></li> <li class="thirdlevel"><a href="rt-interactions-window-sdk-how-to-use.html">How to use the SDK</a></li> <li class="thirdlevel"><a href="rt-interactions-window-sdk-code-examples.html">Code Examples</a></li> <li class="thirdlevel"><a href="rt-interactions-window-sdk-event-structure.html">Event Structure</a></li> </ul> </li> </ul> <li> <a href="#">Agent</a> <ul> <li class="subfolders"> <a href="#">Agent Workspace Widget SDK</a> <ul> <li class="thirdlevel"><a href="agent-workspace-sdk-overview.html">Overview</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-getting-started.html">Getting Started</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-limitations.html">Limitations</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-how-to-use.html">How to use the SDK</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-methods.html">Methods</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-public-model.html">Public Model Structure</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-public-properties.html">Public Properties</a></li> <li class="thirdlevel"><a href="agent-workspace-sdk-code-examples.html">Code Examples</a></li> </ul> </li> <li class="subfolders"> <a href="#">LivePerson Domain API</a> <ul> <li class="thirdlevel"><a href="agent-domain-domain-api.html">Domain API</a></li> </ul> </li> <li class="subfolders"> <a href="#">Login Service API</a> <ul> <li class="thirdlevel"><a href="login-getting-started.html">Getting Started</a></li> <li class="thirdlevel"><a href="agent-login-methods.html">Methods</a></li> <li class="thirdlevel"><a href="agent-login.html">Login</a></li> <li class="thirdlevel"><a href="agent-refresh.html">Refresh</a></li> <li class="thirdlevel"><a href="agent-refresh.html">Logout</a></li> </ul> </li> <li class="subfolders"> <a href="#">Chat Agent API</a> <ul> <li class="thirdlevel"><a href="chat-agent-getting-started.html">Getting Started</a></li> <li class="thirdlevel"><a href="agent-chat-agent-methods.html">Methods</a></li> <li class="thirdlevel"><a href="agent-start-agent-session.html">Start Agent Session</a></li> <li class="thirdlevel"><a href="agent-retrieve-current-availability.html">Retrieve Current Availability</a></li> <li class="thirdlevel"><a href="agent-set-agent-availability.html">Set Agent Availability</a></li> <li class="thirdlevel"><a href="agent-retrieve-available-agents.html">Retrieve Available Agents</a></li> <li class="thirdlevel"><a href="agent-retrieve-available-slots.html">Retrieve Available Slots</a></li> <li class="thirdlevel"><a href="agent-retrieve-agent-information.html">Retrieve Agent Information</a></li> <li class="thirdlevel"><a href="agent-determine-incoming.html">Determine Incoming Chat Requests</a></li> <li class="thirdlevel"><a href="agent-accept-chat.html">Accept a Chat</a></li> <li class="thirdlevel"><a href="agent-retrieve-chat-sessions.html">Retrieve Chat Sessions</a></li> <li class="thirdlevel"><a href="agent-retrieve-chat-resources.html">Retrieve Chat Resources, Events and Information</a></li> <li class="thirdlevel"><a href="agent-retrieve-data.html">Retrieve Data for Multiple Chats</a></li> <li class="thirdlevel"><a href="agent-retrieve-chat-events.html">Retrieve Chat Events</a></li> <li class="thirdlevel"><a href="agent-add-lines.html">Add Lines</a></li> <li class="thirdlevel"><a href="agent-end-chat.html">End Chat</a></li> <li class="thirdlevel"><a href="agent-retrieve-chat-info.html">Retrieve Chat Information</a></li> <li class="thirdlevel"><a href="">Retrieve Visitor’s Name</a></li> <li class="thirdlevel"><a href="agent-retrieve-agent-typing.html">Retrieve Agent's Typing Status</a></li> <li class="thirdlevel"><a href="agent-set-agent-typing.html">Set Agent’s Typing Status</a></li> <li class="thirdlevel"><a href="agent-retrieve-visitor-typing.html">Retrieve Visitor's Typing Status</a></li> <li class="thirdlevel"><a href="agent-chat-agent-retrieve-skills.html">Retrieve Available Skills</a></li> <li class="thirdlevel"><a href="agent-transfer-chat.html">Transfer a Chat</a></li> <li class="thirdlevel"><a href="agent-retrieve-survey-structure.html">Retrieve Agent Survey Structure</a></li> </ul> </li> <li class="subfolders"> <a href="#">Messaging Agent SDK</a> <ul> <li class="thirdlevel"><a href="messaging-agent-sdk-overview.html">Overview</a></li> </ul> </li> </ul> <li> <a href="#">Data</a> <ul> <li class="subfolders"> <a href="#">Data Access API (Beta)</a> <ul> <li class="thirdlevel"><a href="data-data-access-overview.html">Overview</a></li> <li class="thirdlevel"><a href="data-data-access-architecture.html">Architecture</a></li> <li class="thirdlevel"><a href="data-data-access-methods.html">Methods</a></li> <li class="thirdlevel"><a href="data-data-access-base-resource.html">Base Resource</a></li> <li class="thirdlevel"><a href="data-data-access-agent-activity.html">Agent Activity</a></li> <li class="thirdlevel"><a href="data-data-access-web-session.html">Web Session</a></li> <li class="thirdlevel"><a href="data-data-access-engagement.html">Engagement</a></li> <li class="thirdlevel"><a href="data-data-access-survey.html">Survey</a></li> <li class="thirdlevel"><a href="data-data-access-schema.html">Schema</a></li> <li class="thirdlevel"><a href="data-data-access-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Messaging Operations API</a> <ul> <li class="thirdlevel"><a href="data-messaging-operations-overview.html">Overview</a></li> <li class="thirdlevel"><a href="data-messaging-operations-methods.html">Methods</a></li> <li class="thirdlevel"><a href="data-messaging-operations-messaging-conversation.html">Messaging Conversation</a></li> <li class="thirdlevel"><a href="data-messaging-operations-messaging-csat-distribution.html">Messaging CSAT Distribution</a></li> <li class="thirdlevel"><a href="data-messaging-operations-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Messaging Interactions API (Beta)</a> <ul> <li class="thirdlevel"><a href="data-messaging-interactions-overview.html">Overview</a></li> <li class="thirdlevel"><a href="data-messaging-interactions-methods.html">Methods</a></li> <li class="thirdlevel"><a href="data-messaging-interactions-conversations.html">Conversations</a></li> <li class="thirdlevel"><a href="data-messaging-interactions-get-conversation-by-conversation-id.html">Get conversation by conversation ID</a></li> <li class="thirdlevel"><a href="data-messaging-interactions-get-conversations-by-consumer-id.html">Get Conversations by Consumer ID</a></li> <li class="thirdlevel"><a href="data-messaging-interactions-sample-code.html">Sample Code</a></li> <li class="thirdlevel"><a href="data-messaging-interactions-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Engagement History API</a> <ul> <li class="thirdlevel"><a href="data-data-access-overview.html">Overview</a></li> <li class="thirdlevel"><a href="data-engagement-history-methods.html">Methods</a></li> <li class="thirdlevel"><a href="data-engagement-history-retrieve-engagement-list-by-criteria.html">Retrieve Engagement List by Criteria</a></li> <li class="thirdlevel"><a href="data-engagement-history-sample-code.html">Sample Code</a></li> <li class="thirdlevel"><a href="data-engagement-history-appendix.html">Appendix</a></li> </ul> </li> <li class="subfolders"> <a href="#">Operational Real-time API</a> <ul> <li class="thirdlevel"><a href="data-operational-realtime-overview.html">Overview</a></li> <li class="thirdlevel"><a href="data-operational-realtime-methods.html">Methods</a></li> <li class="thirdlevel"><a href="data-operational-realtime-queue-health.html">Queue Health</a></li> <li class="thirdlevel"><a href="data-operational-realtime-engagement-activity.html">Engagement Activity</a></li> <li class="thirdlevel"><a href="data-operational-realtime-agent-activity.html">Agent Activity</a></li> <li class="thirdlevel"><a href="data-operational-realtime-current-queue-state.html">Current Queue State</a></li> <li class="thirdlevel"><a href="data-operational-realtime-sla-histogram.html">SLA Histogram</a></li> <li class="thirdlevel"><a href="data-operational-realtime-sample-code.html">Sample Code</a></li> </ul> </li> </ul> <li> <a href="#">LiveEngage Tag</a> <ul> <li class="subfolders"> <a href="#">LE Tag Events</a> <ul> <li class="thirdlevel"><a href="lp-tag-tag-events-overview.html">Overview</a></li> <li class="thirdlevel"><a href="lp-tag-tag-events-how.html">How to use these Events</a></li> <li class="thirdlevel"><a href="lp-tag-tag-events-events.html">Events</a></li> <li class="thirdlevel"><a href="lp-tag-visitor-flow.html">Visitor Flow Events</a></li> <li class="thirdlevel"><a href="lp-tag-engagement.html">Engagement Events</a></li> <li class="thirdlevel"><a href="lp-tag-engagement-window.html">Engagement Window Events</a></li> </ul> </li> </ul> <li> <a href="#">Messaging Window API</a> <ul> <li class="subfolders"> <a href="#">Introduction</a> <ul> <li class="thirdlevel"><a href="consumer-interation-index.html">Home</a></li> <li class="thirdlevel"><a href="consumer-int-protocol-overview.html">Protocol Overview</a></li> <li class="thirdlevel"><a href="consumer-int-getting-started.html">Getting Started</a></li> </ul> </li> <li class="subfolders"> <a href="#">Tutorials</a> <ul> <li class="thirdlevel"><a href="consumer-int-get-msg.html">Get Messages</a></li> <li class="thirdlevel"><a href="consumer-int-conversation-md.html">Conversation Metadata</a></li> <li class="thirdlevel"><a href="consumer-int-readaccept-events.html">Read/Accept events</a></li> <li class="thirdlevel"><a href="consumer-int-authentication.html">Authentication</a></li> <li class="thirdlevel"><a href="consumer-int-agent-profile.html">Agent Profile</a></li> <li class="thirdlevel"><a href="consumer-int-post-survey.html">Post Conversation Survey</a></li> <li class="thirdlevel"><a href="consumer-int-client-props.html">Client Properties</a></li> <li class="thirdlevel"><a href="consumer-int-no-headers.html">Avoid Webqasocket Headers</a></li> </ul> </li> <li class="subfolders"> <a href="#">Samples</a> <ul> <li class="thirdlevel"><a href="consumer-int-js-sample.html">JavaScript Messenger</a></li> </ul> </li> <li class="subfolders"> <a href="#">API Reference</a> <ul> <li class="thirdlevel"><a href="consumer-int-api-reference.html">Overview</a></li> <li class="thirdlevel"><a href="consumer-int-msg-reqs.html">Request Builder</a></li> <li class="thirdlevel"><a href="consumer-int-msg-resps.html">Response Builder</a></li> <li class="thirdlevel"><a href="consumer-int-msg-notifications.html">Notification Builder</a></li> <li class="thirdlevel"><a href="consumer-int-msg-req-conv.html">New Conversation</a></li> <li class="thirdlevel"><a href="consumer-int-msg-close-conv.html">Close Conversation</a></li> <li class="thirdlevel"><a href="consumer-int-msg-conv-ttr.html">Urgent Conversation</a></li> <li class="thirdlevel"><a href="consumer-int-msg-csat-conv.html">Update CSAT</a></li> <li class="thirdlevel"><a href="consumer-int-msg-sub-conv.html">Subscribe Conversations Metadata</a></li> <li class="thirdlevel"><a href="consumer-int-msg-unsub-conv.html">Unsubscribe Conversations Metadata</a></li> <li class="thirdlevel"><a href="consumer-int-msg-text-cont.html">Publish Content</a></li> <li class="thirdlevel"><a href="consumer-int-msg-sub-events.html">Subscribe Conversation Content</a></li> <li class="thirdlevel"><a href="consumer-int-msg-init-con.html">Browser Init Connection</a></li> </ul> </li> </ul> <!-- if you aren't using the accordion, uncomment this block: <p class="external"> <a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a> </p> --> </li> </ul> </div> <!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.--> <script>$("li.active").parents('li').toggleClass("active");</script> <!-- Content Column --> <div class="col-md-9"> <div class="post-header"> <h1 class="post-title-main">Prerequisites</h1> </div> <div class="post-content"> <p>The following prerequisites are required:</p> <ul> <li>LiveEngage account</li> <li>Dedicated user for the bot created in LiveEngage</li> </ul> <div class="tags"> </div> </div> <hr class="shaded"/> <footer> <div class="row"> <div class="col-lg-12 footer"> &copy;2017 LivePerson. All rights reserved.<br />This documentation is subject to change without notice.<br /> Site last generated: Mar 13, 2017 <br /> <p><img src="img/company_logo.png" alt="Company logo"/></p> </div> </div> </footer> </div> <!-- /.row --> </div> <!-- /.container --> </div> </body> </html>
LivePersonInc/dev-hub
content10/products-bots-prerequisites.html
HTML
mit
165,927
package com.agileEAP.workflow.definition; /** 活动类型 */ public enum ActivityType { /** 开始活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("开始活动")] StartActivity(1), /** 人工活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("人工活动")] ManualActivity(2), /** 路由活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("路由活动")] RouterActivity(3), /** 子流程活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("子流程活动")] SubflowActivity(4), /** 自动活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("自动活动")] AutoActivity(5), /** 结束活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("结束活动")] EndActivity(6), /** 处理活动 */ //C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes: //[Remark("处理活动")] ProcessActivity(7); private int intValue; private static java.util.HashMap<Integer, ActivityType> mappings; private synchronized static java.util.HashMap<Integer, ActivityType> getMappings() { if (mappings == null) { mappings = new java.util.HashMap<Integer, ActivityType>(); } return mappings; } private ActivityType(int value) { intValue = value; ActivityType.getMappings().put(value, this); } public int getValue() { return intValue; } public static ActivityType forValue(int value) { return getMappings().get(value); } }
AgileEAP/aglieEAP
agileEAP-workflow/src/main/java/com/agileEAP/workflow/definition/ActivityType.java
Java
mit
1,812
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0"> <defaumlcodec>UTF-8</defaumlcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Menlocoin</source> <translation>Про Menlocoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Menlocoin&lt;/b&gt; version</source> <translation>Версія &lt;b&gt;Menlocoin&apos;a&lt;b&gt;</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> Це програмне забезпечення є експериментальним. Поширюється за ліцензією MIT/X11, додаткова інформація міститься у файлі COPYING, а також за адресою http://www.opensource.org/licenses/mit-license.php. Цей продукт включає в себе програмне забезпечення, розроблене в рамках проекту OpenSSL (http://www.openssl.org/), криптографічне програмне забезпечення, написане Еріком Янгом ([email protected]), та функції для роботи з UPnP, написані Томасом Бернардом.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>Авторське право</translation> </message> <message> <location line="+0"/> <source>The Menlocoin developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Адресна книга</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Двічі клікніть на адресу чи назву для їх зміни</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Створити нову адресу</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копіювати виділену адресу в буфер обміну</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Створити адресу</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Menlocoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Це ваші адреси для отримання платежів. Ви можете давати різні адреси різним людям, таким чином маючи можливість відслідкувати хто конкретно і скільки вам заплатив.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Скопіювати адресу</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Показати QR-&amp;Код</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Menlocoin address</source> <translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Підписати повідомлення</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Вилучити вибрані адреси з переліку</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>Експортувати дані з поточної вкладки в файл</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Menlocoin address</source> <translation>Перевірте повідомлення для впевненості, що воно підписано вказаною Menlocoin-адресою</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>Перевірити повідомлення</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Видалити</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Menlocoin 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 &amp;Label</source> <translation>Скопіювати &amp;мітку</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Редагувати</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Експортувати адресну книгу</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Файли відділені комами (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Помилка при експортуванні</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Неможливо записати у файл %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Назва</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(немає назви)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Діалог введення паролю</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Введіть пароль</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Новий пароль</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Повторіть пароль</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Введіть новий пароль для гаманця.&lt;br/&gt;Будь ласка, використовуйте паролі що містять &lt;b&gt;як мінімум 10 випадкових символів&lt;/b&gt;, або &lt;b&gt;як мінімум 8 слів&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Зашифрувати гаманець</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Ця операція потребує пароль для розблокування гаманця.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Розблокувати гаманець</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Ця операція потребує пароль для дешифрування гаманця.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Дешифрувати гаманець</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Змінити пароль</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Ввести старий та новий паролі для гаманця.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Підтвердити шифрування гаманця</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR LITECOINS&lt;/b&gt;!</source> <translation>УВАГА: Якщо ви зашифруєте гаманець і забудете пароль, ви &lt;b&gt;ВТРАТИТЕ ВСІ СВОЇ БІТКОІНИ&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Ви дійсно хочете зашифрувати свій гаманець?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Увага: Ввімкнено Caps Lock!</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Гаманець зашифровано</translation> </message> <message> <location line="-56"/> <source>Menlocoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your menlocoins from being stolen by malware infecting your computer.</source> <translation>Біткоін-клієнт буде закрито для завершення процесу шифрування. Пам&apos;ятайте, що шифрування гаманця не може повністю захистити ваші біткоіни від крадіжки, у випадку якщо ваш комп&apos;ютер буде інфіковано шкідливими програмами.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Не вдалося зашифрувати гаманець</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Виникла помилка під час шифрування гаманця. Ваш гаманець не було зашифровано.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Введені паролі не співпадають.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Не вдалося розблокувати гаманець</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Введений пароль є невірним.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Не вдалося розшифрувати гаманець</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Пароль було успішно змінено.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>&amp;Підписати повідомлення...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Синхронізація з мережею...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Огляд</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Показати загальний огляд гаманця</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>Транзакції</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Переглянути історію транзакцій</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Редагувати список збережених адрес та міток</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Показати список адрес для отримання платежів</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>&amp;Вихід</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Вийти</translation> </message> <message> <location line="+4"/> <source>Show information about Menlocoin</source> <translation>Показати інформацію про Menlocoin</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>&amp;Про Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Показати інформацію про Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Параметри...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Шифрування гаманця...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Резервне копіювання гаманця...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>Змінити парол&amp;ь...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>Імпорт блоків з диску...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a Menlocoin address</source> <translation>Відправити монети на вказану адресу</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Menlocoin</source> <translation>Редагувати параметри</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Резервне копіювання гаманця в інше місце</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Змінити пароль, який використовується для шифрування гаманця</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>Вікно зневадження</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Відкрити консоль зневадження і діагностики</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>Перевірити повідомлення...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Menlocoin</source> <translation>Menlocoin</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Гаманець</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About Menlocoin</source> <translation>&amp;Про Menlocoin</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>Показати / Приховати</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>Показує або приховує головне вікно</translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your Menlocoin addresses to prove you own them</source> <translation>Підтвердіть, що Ви є власником повідомлення підписавши його Вашою Menlocoin-адресою </translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Menlocoin addresses</source> <translation>Перевірте повідомлення для впевненості, що воно підписано вказаною Menlocoin-адресою</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Файл</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Налаштування</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Довідка</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Панель вкладок</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[тестова мережа]</translation> </message> <message> <location line="+47"/> <source>Menlocoin client</source> <translation>Menlocoin-клієнт</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Menlocoin network</source> <translation><numerusform>%n активне з&apos;єднання з мережею</numerusform><numerusform>%n активні з&apos;єднання з мережею</numerusform><numerusform>%n активних з&apos;єднань з мережею</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>Оброблено %1 блоків історії транзакцій.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation>Помилка</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Увага</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>Інформація</translation> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Синхронізовано</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Синхронізується...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Підтвердити комісію</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Надіслані транзакції</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Отримані перекази</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Дата: %1 Кількість: %2 Тип: %3 Адреса: %4 </translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>Обробка URI</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Menlocoin address or malformed URI parameters.</source> <translation>Неможливо обробити URI! Це може бути викликано неправильною Menlocoin-адресою, чи невірними параметрами URI.</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>&lt;b&gt;Зашифрований&lt;/b&gt; гаманець &lt;b&gt;розблоковано&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>&lt;b&gt;Зашифрований&lt;/b&gt; гаманець &lt;b&gt;заблоковано&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Menlocoin 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>Сповіщення мережі</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Редагувати адресу</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Мітка</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Мітка, пов&apos;язана з цим записом адресної книги</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Адреса</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>Адреса, пов&apos;язана з цим записом адресної книги. Може бути змінено тільки для адреси відправника.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Нова адреса для отримання</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Нова адреса для відправлення</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Редагувати адресу для отримання</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Редагувати адресу для відправлення</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Введена адреса «%1» вже присутня в адресній книзі.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Menlocoin address.</source> <translation>Введена адреса «%1» не є коректною адресою в мережі Menlocoin.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Неможливо розблокувати гаманець.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Не вдалося згенерувати нові ключі.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Menlocoin-Qt</source> <translation>Menlocoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>версія</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Використання:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>параметри командного рядка</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>Параметри інтерфейсу</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Встановлення мови, наприклад &quot;de_DE&quot; (типово: системна)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Запускати згорнутим</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Показувати заставку під час запуску (типово: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Параметри</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Головні</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 &amp;fee</source> <translation>Заплатити комісі&amp;ю</translation> </message> <message> <location line="+31"/> <source>Automatically start Menlocoin after logging in to the system.</source> <translation>Автоматично запускати гаманець при вході до системи.</translation> </message> <message> <location line="+3"/> <source>&amp;Start Menlocoin on system login</source> <translation>&amp;Запускати гаманець при вході в систему</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>Скинути всі параметри клієнта на типові.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>Скинути параметри</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>&amp;Мережа</translation> </message> <message> <location line="+6"/> <source>Automatically open the Menlocoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Автоматично відкривати порт для клієнту біткоін на роутері. Працює лише якщо ваш роутер підтримує UPnP і ця функція увімкнена.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Відображення порту через &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the Menlocoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Підключатись до мережі Menlocoin через SOCKS-проксі (наприклад при використанні Tor).</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>Підключатись через &amp;SOCKS-проксі:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>&amp;IP проксі:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP-адреса проксі-сервера (наприклад 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Порт:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Порт проксі-сервера (наприклад 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS версії:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Версія SOCKS-проксі (наприклад 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Вікно</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>&amp;Minimize to the tray instead of the taskbar</source> <translation>Мінімізувати &amp;у трей</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&amp;inimize on close</source> <translation>Згортати замість закритт&amp;я</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Відображення</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;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 Menlocoin.</source> <translation>Встановлює мову інтерфейсу. Зміни набудуть чинності після перезапуску Menlocoin.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>В&amp;имірювати монети в:</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 Menlocoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Відображати адресу в списку транзакцій</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;Гаразд</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Скасувати</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Застосувати</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>типово</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>Підтвердження скидання параметрів</translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>Деякі параметри потребують перезапуск клієнта для набуття чинності.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>Продовжувати?</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Увага</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Menlocoin.</source> <translation>Цей параметр набуде чинності після перезапуску Menlocoin.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Невірно вказано адресу проксі.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Menlocoin network after a connection is established, but this process has not completed yet.</source> <translation>Показана інформація вже може бути застарілою. Ваш гаманець буде автоматично синхронізовано з мережею Menlocoin після встановлення підключення, але цей процес ще не завершено.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Баланс:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Непідтверджені:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Гаманець</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>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Недавні транзакції&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Ваш поточний баланс</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Загальна сума всіх транзакцій, які ще не підтверджені, та до цих пір не враховуються в загальному балансі</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>не синхронізовано</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start menlocoin: 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-коду</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Запросити Платіж</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Кількість:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Мітка:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Повідомлення:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Зберегти як...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Помилка при кодуванні URI в QR-код.</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Невірно введено кількість, будь ласка, перевірте.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>Кінцевий URI занадто довгий, спробуйте зменшити текст для мітки / повідомлення.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Зберегти QR-код</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG-зображення (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Назва клієнту</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>Н/Д</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Версія клієнту</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Інформація</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Використовується OpenSSL версії</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation>Мережа</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Кількість підключень</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>В тестовій мережі</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Поточне число блоків</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>Відкрити</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Параметри командного рядка</translation> </message> <message> <location line="+7"/> <source>Show the Menlocoin-Qt help message to get a list with possible Menlocoin command-line options.</source> <translation>Показати довідку Menlocoin-Qt для отримання переліку можливих параметрів командного рядка.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>Показати</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>Консоль</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Дата збирання</translation> </message> <message> <location line="-104"/> <source>Menlocoin - Debug window</source> <translation>Menlocoin - Вікно зневадження</translation> </message> <message> <location line="+25"/> <source>Menlocoin 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 Menlocoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Очистити консоль</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Menlocoin RPC console.</source> <translation>Вітаємо у консолі Menlocoin RPC.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Використовуйте стрілки вгору вниз для навігації по історії, і &lt;b&gt;Ctrl-L&lt;/b&gt; для очищення екрана.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Наберіть &lt;b&gt;help&lt;/b&gt; для перегляду доступних команд.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Відправити</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Відправити на декілька адрес</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>Дод&amp;ати одержувача</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Видалити всі поля транзакції</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Очистити &amp;все</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Баланс:</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>Підтвердити відправлення</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Відправити</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; адресату %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Підтвердіть відправлення</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Ви впевнені що хочете відправити %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> і </translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>Адреса отримувача невірна, будь ласка перепровірте.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Кількість монет для відправлення повинна бути більшою 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Кількість монет для відправлення перевищує ваш баланс.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Сума перевищить ваш баланс, якщо комісія %1 буде додана до вашої транзакції.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Знайдено адресу що дублюється. Відправлення на кожну адресу дозволяється лише один раз на кожну операцію переказу.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>Помилка: Не вдалося створити транзакцію!</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Помилка: транзакцію було відхилено. Це може статись, якщо декілька монет з вашого гаманця вже використані, наприклад, якщо ви використовуєте одну копію гаманця (wallet.dat), а монети були використані з іншої копії, але не позначені як використані в цій.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>&amp;Кількість:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>&amp;Отримувач:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Введіть мітку для цієї адреси для додавання її в адресну книгу</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Мітка:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Вибрати адресу з адресної книги</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Вставити адресу</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Видалити цього отримувача</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Menlocoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Введіть адресу Menlocoin (наприклад Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Підписи - Підпис / Перевірка повідомлення</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>&amp;Підписати повідомлення</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Введіть адресу Menlocoin (наприклад Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Вибрати адресу з адресної книги</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Вставити адресу</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Введіть повідомлення, яке ви хочете підписати тут</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>Підпис</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>Копіювати поточну сигнатуру до системного буферу обміну</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Menlocoin address</source> <translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Підписати повідомлення</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>Скинути всі поля підпису повідомлення</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Очистити &amp;все</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>Перевірити повідомлення</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Введіть адресу Menlocoin (наприклад Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Menlocoin address</source> <translation>Перевірте повідомлення для впевненості, що воно підписано вказаною Menlocoin-адресою</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>Перевірити повідомлення</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>Скинути всі поля перевірки повідомлення</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Menlocoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Введіть адресу Menlocoin (наприклад Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Натисніть кнопку «Підписати повідомлення», для отримання підпису</translation> </message> <message> <location line="+3"/> <source>Enter Menlocoin signature</source> <translation>Введіть сигнатуру Menlocoin</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Введена нечинна адреса.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Будь ласка, перевірте адресу та спробуйте ще.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Не вдалося підписати повідомлення.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Повідомлення підписано.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Підпис не можливо декодувати.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Будь ласка, перевірте підпис та спробуйте ще.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Не вдалося перевірити повідомлення.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Повідомлення перевірено.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Menlocoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[тестова мережа]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Відкрити до %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/поза інтернетом</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/не підтверджено</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 підтверджень</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Статус</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Згенеровано</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Відправник</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Отримувач</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation>Мітка</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Кредит</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>не прийнято</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Дебет</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Комісія за транзакцію</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Загальна сума</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Повідомлення</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Коментар</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID транзакції</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 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 &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Після генерації монет, потрібно зачекати 120 блоків, перш ніж їх можна буде використати. Коли ви згенерували цей блок, його було відправлено в мережу для того, щоб він був доданий до ланцюжка блоків. Якщо ця процедура не вдасться, статус буде змінено на «не підтверджено» і ви не зможете потратити згенеровані монету. Таке може статись, якщо хтось інший згенерував блок на декілька секунд раніше.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Транзакція</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Кількість</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>true</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>false</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, ще не було успішно розіслано</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>невідомий</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Деталі транзакції</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Даний діалог показує детальну статистику по вибраній транзакції</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Кількість</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Відкрити до %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Поза інтернетом (%1 підтверджень)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Непідтверджено (%1 із %2 підтверджень)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Підтверджено (%1 підтверджень)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Цей блок не був отриманий жодними іншими вузлами і, ймовірно, не буде прийнятий!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Згенеровано, але не підтверджено</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Отримано</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Отримано від</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Відправлено</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Відправлено собі</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Добуто</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(недоступно)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Статус транзакції. Наведіть вказівник на це поле, щоб показати кількість підтверджень.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Дата і час, коли транзакцію було отримано.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Тип транзакції.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Адреса отримувача транзакції.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Сума, додана чи знята з балансу.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Всі</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Сьогодні</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>На цьому тижні</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>На цьому місяці</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Минулого місяця</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Цього року</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Проміжок...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Отримані на</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Відправлені на</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Відправлені собі</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Добуті</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Інше</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Введіть адресу чи мітку для пошуку</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Мінімальна сума</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Скопіювати адресу</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Скопіювати мітку</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Копіювати кількість</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Редагувати мітку</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Показати деталі транзакції</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Експортувати дані транзакцій</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Файли, розділені комою (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Підтверджені</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Дата</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Тип</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Мітка</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Кількість</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>Ідентифікатор</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Помилка експорту</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Неможливо записати у файл %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Діапазон від:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>до</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Відправити</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Експортувати дані з поточної вкладки в файл</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Виникла помилка при спробі зберегти гаманець в новому місці.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>Успішне створення резервної копії</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>Данні гаманця успішно збережено в новому місці призначення.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Menlocoin version</source> <translation>Версія</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Використання:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or menlocoind</source> <translation>Відправити команду серверу -server чи демону</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Список команд</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Отримати довідку по команді</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Параметри:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: menlocoin.conf)</source> <translation>Вкажіть файл конфігурації (типово: menlocoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: menlocoind.pid)</source> <translation>Вкажіть pid-файл (типово: menlocoind.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Вкажіть робочий каталог</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Встановити розмір кешу бази даних в мегабайтах (типово: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation>Чекати на з&apos;єднання на &lt;port&gt; (типово: 9333 або тестова мережа: 19333)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Підтримувати не більше &lt;n&gt; зв&apos;язків з колегами (типово: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Поріг відключення неправильно під&apos;єднаних пірів (типово: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Максимальній розмір вхідного буферу на одне з&apos;єднання (типово: 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 &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation>Прослуховувати &lt;port&gt; для JSON-RPC-з&apos;єднань (типово: 9332 або тестова мережа: 19332)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Приймати команди із командного рядка та команди JSON-RPC</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Запустити в фоновому режимі (як демон) та приймати команди</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Використовувати тестову мережу</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation 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=menlocoinrpc 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 &quot;Menlocoin Alert&quot; [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. Menlocoin 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>Помилка: транзакцію було відхилено. Це може статись, якщо декілька монет з вашого гаманця вже використані, наприклад, якщо ви використовуєте одну копію гаманця (wallet.dat), а монети були використані з іншої копії, але не позначені як використані в цій.</translation> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Увага: встановлено занадто велику комісію (-paytxfee). Комісія зніматиметься кожен раз коли ви проводитимете транзакції.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Menlocoin will not work properly.</source> <translation>Увага: будь ласка, перевірте дату і час на своєму комп&apos;ютері. Якщо ваш годинник йде неправильно, Menlocoin може працювати некоректно.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Увага: помилка читання wallet.dat! Всі ключі прочитано коректно, але дані транзакцій чи записи адресної книги можуть бути пропущені, або пошкоджені.</translation> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Увага: файл wallet.dat пошкоджено, дані врятовано! Оригінальний wallet.dat збережено як wallet.{timestamp}.bak до %s; якщо Ваш баланс чи транзакції неправильні, Ви можете відновити їх з резервної копії. </translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Спроба відновити закриті ключі з пошкодженого wallet.dat</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Підключитись лише до вказаного вузла</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>Помилка ініціалізації бази даних блоків</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>Помилка завантаження бази даних блоків</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>Помилка: Мало вільного місця на диску!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Помилка: Гаманець заблокований, неможливо створити транзакцію!</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>Помилка: системна помилка: </translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>Скільки блоків перевіряти під час запуску (типово: 288, 0 = всі)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+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>Імпорт блоків з зовнішнього файлу blk000??.dat</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation>Інформація</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Помилка в адресі -tor: «%s»</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</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, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Максимальний буфер, &lt;n&gt;*1000 байт (типово: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Максимальній розмір вихідного буферу на одне з&apos;єднання, &lt;n&gt;*1000 байт (типово: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Виводити більше налагоджувальної інформації. Мається на увазі всі шнші -debug* параметри</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Доповнювати налагоджувальний вивід відміткою часу</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Menlocoin Wiki for SSL setup instructions)</source> <translation>Параметри SSL: (див. Menlocoin Wiki для налаштування SSL)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Вибір версії socks-проксі для використання (4-5, типово: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Відсилати налагоджувальну інформацію на консоль, а не у файл debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Відсилати налагоджувальну інформацію до налагоджувача</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Встановити максимальний розмір блоку у байтах (типово: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Встановити мінімальний розмір блоку у байтах (типово: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Стискати файл debug.log під час старту клієнта (типово: 1 коли відсутутній параметр -debug)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Вказати тайм-аут підключення у мілісекундах (типово: 5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation>Системна помилка: </translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Намагатись використовувати UPnP для відображення порту, що прослуховується на роутері (default: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Намагатись використовувати UPnP для відображення порту, що прослуховується на роутері (default: 1 when listening)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Ім&apos;я користувача для JSON-RPC-з&apos;єднань</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>Попередження</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Увага: Поточна версія застаріла, необхідне оновлення!</translation> </message> <message> <location line="+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>wallet.dat пошкоджено, відновлення не вдалося</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>Пароль для JSON-RPC-з&apos;єднань</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Дозволити JSON-RPC-з&apos;єднання з вказаної IP-адреси</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Відправляти команди на вузол, запущений на &lt;ip&gt; (типово: 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 type="unfinished"/> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>Модернізувати гаманець до останнього формату</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Встановити розмір пулу ключів &lt;n&gt; (типово: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Пересканувати ланцюжок блоків, в пошуку втрачених транзакцій</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Використовувати OpenSSL (https) для JSON-RPC-з&apos;єднань</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Файл сертифіката сервера (типово: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Закритий ключ сервера (типово: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Допустимі шифри (типово: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Дана довідка</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Неможливо прив&apos;язати до порту %s на цьому комп&apos;ютері (bind returned error %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Підключитись через SOCKS-проксі</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Дозволити пошук в DNS для команд -addnode, -seednode та -connect</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Завантаження адрес...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Помилка при завантаженні wallet.dat: Гаманець пошкоджено</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Menlocoin</source> <translation>Помилка при завантаженні wallet.dat: Гаманець потребує новішої версії Біткоін-клієнта</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Menlocoin to complete</source> <translation>Потрібно перезаписати гаманець: перезапустіть Біткоін-клієнт для завершення</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Помилка при завантаженні wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Помилка в адресі проксі-сервера: «%s»</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Невідома мережа вказана в -onlynet: «%s»</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Помилка у величині комісії -paytxfee=&lt;amount&gt;: «%s»</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Некоректна кількість</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Недостатньо коштів</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Завантаження індексу блоків...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Додати вузол до підключення і лишити його відкритим</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Menlocoin is probably already running.</source> <translation>Неможливо прив&apos;язати до порту %s на цьому комп&apos;ютері. Можливо гаманець вже запущено.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Комісія за КБ</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Завантаження гаманця...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Неможливо записати типову адресу</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Сканування...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Завантаження завершене</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Error</source> <translation>Помилка</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Ви мусите встановити rpcpassword=&lt;password&gt; в файлі конфігурації: %s Якщо файл не існує, створіть його із правами тільки для читання власником (owner-readable-only).</translation> </message> </context> </TS>
iLoftis/Menlo-Coin
src/qt/locale/bitcoin_uk.ts
TypeScript
mit
123,486
package com.asayama.rps.simulator; public enum Hand { ROCK, PAPER, SCISSORS; }
kyoken74/rock-paper-scissors
src/main/java/com/asayama/rps/simulator/Hand.java
Java
mit
83
package foodtruck.linxup; import java.util.List; import com.google.common.base.MoreObjects; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import org.joda.time.DateTime; import foodtruck.model.Location; /** * @author aviolette * @since 11/1/16 */ public class Trip { private Location start; private Location end; private DateTime startTime; private DateTime endTime; private List<Position> positions; private Trip(Builder builder) { this.start = builder.start; this.end = builder.end; this.startTime = builder.startTime; this.endTime = builder.endTime; this.positions = ImmutableList.copyOf(builder.positions); } public static Builder builder() { return new Builder(); } public static Builder builder(Trip instance) { return new Builder(instance); } public String getName() { return start.getShortenedName() + " to " + end.getShortenedName(); } public Location getStart() { return start; } public Location getEnd() { return end; } public DateTime getStartTime() { return startTime; } public DateTime getEndTime() { return endTime; } public List<Position> getPositions() { return positions; } @Override public String toString() { return MoreObjects.toStringHelper(this) // .add("start", start) // .add("end", end) .add("startTime", startTime) .add("endTime", endTime) .toString(); } public static class Builder { private Location start; private Location end; private DateTime startTime; private DateTime endTime; private List<Position> positions = Lists.newLinkedList(); public Builder() { } public Builder(Trip instance) { this.start = instance.start; this.end = instance.end; this.startTime = instance.startTime; this.endTime = instance.endTime; this.positions = instance.positions; } public Builder start(Location start) { this.start = start; return this; } public Builder end(Location end) { this.end = end; return this; } public Builder startTime(DateTime startTime) { this.startTime = startTime; return this; } public Builder endTime(DateTime endTime) { this.endTime = endTime; return this; } public Trip build() { return new Trip(this); } public DateTime getStartTime() { return startTime; } public DateTime getEndTime() { return endTime; } public Builder addPosition(Position position) { positions.add(position); return this; } @Override public String toString() { return MoreObjects.toStringHelper(this) .add("start", start.getShortenedName()) .add("end", end.getShortenedName()) // .add("start", start) // .add("end", end) .add("startTime", startTime) .add("endTime", endTime) .toString(); } } }
aviolette/foodtrucklocator
main/src/main/java/foodtruck/linxup/Trip.java
Java
mit
3,020
<!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 (1.8.0_77) on Sun Aug 13 19:07:39 PKT 2017 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class com.hikmat30ce.workday.integrator.hr.generated.CompensationStepReferenceDataType (WorkdayIntegrator-HR 1.0.0 API)</title> <meta name="date" content="2017-08-13"> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class com.hikmat30ce.workday.integrator.hr.generated.CompensationStepReferenceDataType (WorkdayIntegrator-HR 1.0.0 API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?com/hikmat30ce/workday/integrator/hr/generated/class-use/CompensationStepReferenceDataType.html" target="_top">Frames</a></li> <li><a href="CompensationStepReferenceDataType.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class com.hikmat30ce.workday.integrator.hr.generated.CompensationStepReferenceDataType" class="title">Uses of Class<br>com.hikmat30ce.workday.integrator.hr.generated.CompensationStepReferenceDataType</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#com.hikmat30ce.workday.integrator.hr.generated">com.hikmat30ce.workday.integrator.hr.generated</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="com.hikmat30ce.workday.integrator.hr.generated"> <!-- --> </a> <h3>Uses of <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a> in <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/package-summary.html">com.hikmat30ce.workday.integrator.hr.generated</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> <caption><span>Fields in <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/package-summary.html">com.hikmat30ce.workday.integrator.hr.generated</a> declared as <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></code></td> <td class="colLast"><span class="typeNameLabel">CompensationDetailDataType.</span><code><span class="memberNameLink"><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationDetailDataType.html#compensationStepReference">compensationStepReference</a></span></code>&nbsp;</td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/package-summary.html">com.hikmat30ce.workday.integrator.hr.generated</a> that return <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></code></td> <td class="colLast"><span class="typeNameLabel">ObjectFactory.</span><code><span class="memberNameLink"><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/ObjectFactory.html#createCompensationStepReferenceDataType--">createCompensationStepReferenceDataType</a></span>()</code> <div class="block">Create an instance of <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated"><code>CompensationStepReferenceDataType</code></a></div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></code></td> <td class="colLast"><span class="typeNameLabel">CompensationDetailDataType.</span><code><span class="memberNameLink"><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationDetailDataType.html#getCompensationStepReference--">getCompensationStepReference</a></span>()</code> <div class="block">Gets the value of the compensationStepReference property.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/package-summary.html">com.hikmat30ce.workday.integrator.hr.generated</a> with parameters of type <a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">CompensationDetailDataType.</span><code><span class="memberNameLink"><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationDetailDataType.html#setCompensationStepReference-com.hikmat30ce.workday.integrator.hr.generated.CompensationStepReferenceDataType-">setCompensationStepReference</a></span>(<a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">CompensationStepReferenceDataType</a>&nbsp;value)</code> <div class="block">Sets the value of the compensationStepReference property.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../com/hikmat30ce/workday/integrator/hr/generated/CompensationStepReferenceDataType.html" title="class in com.hikmat30ce.workday.integrator.hr.generated">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../index.html?com/hikmat30ce/workday/integrator/hr/generated/class-use/CompensationStepReferenceDataType.html" target="_top">Frames</a></li> <li><a href="CompensationStepReferenceDataType.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2017 <a href="http://www.spring.io">Pivotal Software, Inc.</a>. All rights reserved.</small></p> </body> </html>
hikmat30ce/WorkdayIntegrator-HR
docs/com/hikmat30ce/workday/integrator/hr/generated/class-use/CompensationStepReferenceDataType.html
HTML
mit
11,646
/** * Copyright (c) 2015, Alexander Orzechowski. * * 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. */ /** * Currently in beta stage. Changes can and will be made to the core mechanic * making this not backwards compatible. * * Github: https://github.com/Need4Speed402/tessellator */ Tessellator.TextureDummy = function (ready){ this.super(null); if (ready){ this.setReady(); }; }; Tessellator.extend(Tessellator.TextureDummy, Tessellator.Texture); Tessellator.TextureDummy.prototype.configure = Tessellator.EMPTY_FUNC; Tessellator.TextureDummy.prototype.bind = Tessellator.EMPTY_FUNC;
Need4Speed402/tessellator
src/textures/TextureDummy.js
JavaScript
mit
1,646
 <!DOCTYPE HTML> <!-- Solid State by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <html> <head> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-72755780-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-72755780-1'); </script> <script src="/assets/js/redirectNow.js"></script> <title>Richard Kingston - Progressive Web App</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!--[if lte IE 8]><script src="/assets/js/ie/html5shiv.js"></script><![endif]--> <link rel="stylesheet" href="/assets/sass/main.css" /> <link rel="stylesheet" href="/assets/css/override.css" /> <!--[if lte IE 9]><link rel="stylesheet" href="/assets/sass/ie9.css" /><![endif]--> <!--[if lte IE 8]><link rel="stylesheet" href="/assets/sass/ie8.css" /><![endif]--> </head> <body> <!-- Page Wrapper --> <div id="page-wrapper"> <!-- Header --> <header id="header"> <h1><a href="/">Richard Kingston</a></h1> <nav> <a href="#menu">Menu</a> </nav> </header> <!-- Menu --> <nav id="menu"> <div class="inner"> <h2>Menu</h2> <ul class="links"> <li><a href="/posts">Archive</a></li> <li><a href="/tags">Tags</a></li> <li><a href="/about">About Me</a></li> </ul> <a href="#" class="close">Close</a> </div> </nav> <section id="banner"> <div class="inner"> <h2>Progressive Web App</h2> </div> </section> <!-- Main --> <section id="wrapper"> <section class="wrapper style2"> <div class="inner"> <div> <a href="/posts/council-knows-whats-appnin"> <h3>Council knows what&#x27;s &#x27;appnin&#x27;</h3> <p>There&#x27;s nothing quite like delivering customer value that&#x27;s fit for the future, scalable and miles ahead of the curve ;-)</p> </a> <p><em>Posted on 15 September 2017</em></p> </div> <hr> <nav> <ul class="actions"> </ul> </nav> </div> </section> <section class="wrapper alt style3"> <div class="inner"> <a role="button" href="/tags/Income-Management" class="button small ">Income Management (30)</a> <a role="button" href="/tags/Local-Digital-Fund" class="button small ">Local Digital Fund (24)</a> <a role="button" href="/tags/IMS-Discovery" class="button small ">IMS Discovery (21)</a> <a role="button" href="/tags/Innovation-Group" class="button small ">Innovation Group (14)</a> <a role="button" href="/tags/DigiDesk" class="button small ">DigiDesk (8)</a> <a role="button" href="/tags/DigiBook" class="button small ">DigiBook (5)</a> <a role="button" href="/tags/DigiMeet" class="button small ">DigiMeet (4)</a> <a role="button" href="/tags/IMS-Alpha" class="button small ">IMS Alpha (2)</a> <a role="button" href="/tags/Work-Life-Balance" class="button small ">Work Life Balance (2)</a> <a role="button" href="/tags/TechTown" class="button small ">TechTown (2)</a> <a role="button" href="/tags/Digital-First" class="button small ">Digital First (2)</a> <a role="button" href="/tags/Requestry" class="button small ">Requestry (2)</a> <a role="button" href="/tags/Barnsley-Makers" class="button small ">Barnsley Makers (1)</a> <a role="button" href="/tags/Code-Club" class="button small ">Code Club (1)</a> <a role="button" href="/tags/Barnsley-Council" class="button small ">Barnsley Council (1)</a> <a role="button" href="/tags/Progressive-Web-App" class="button small special">Progressive Web App (1)</a> <a role="button" href="/tags/DigiSafe" class="button small ">DigiSafe (1)</a> <a role="button" href="/tags/Digital-Barnsley" class="button small ">Digital Barnsley (1)</a> </div> </section> </section> <!-- Footer --> <footer id="footer"> <div class="inner"> <section> <h2>Feeds</h2> <ul class="actions"> <li><a href="/feed.rss" class="button small"><i class="fa fa-rss"></i> RSS Feed</a></li> <li><a href="/feed.atom" class="button small"><i class="fa fa-rss"></i> Atom Feed</a></li> </ul> </section> <section> </section> <ul class="copyright"> <li>Copyright © 2020</li> <li>Design: <a href="http://html5up.net">HTML5 UP</a></li> <li><a href="https://wyam.io">Generated by Wyam</a></li> </ul> </div> </footer> </div> <!-- Scripts --> <script src="/assets/js/skel.min.js"></script> <script src="/assets/js/jquery.min.js"></script> <script src="/assets/js/jquery.scrollex.min.js"></script> <script src="/assets/js/util.js"></script> <!--[if lte IE 8]><script src="/assets/js/ie/respond.min.js"></script><![endif]--> <script src="/assets/js/main.js"></script> <script src="/assets/js/redirectNow.js"></script> <script type="text/javascript">redirectNow();</script> </body> </html>
kingstonrichard/kingstonrichard.github.io
tags/Progressive-Web-App.html
HTML
mit
5,561
#include "Extensions.hpp" #include "Extensions.inl" #include <Math/Rect.hpp> #include <Math/Vector.hpp> #include <Script/ScriptExtensions.hpp> #include <SFML/Graphics/CircleShape.hpp> #include <angelscript.h> #include <cassert> namespace { void create_CircleShape(void* memory) { new(memory)sf::CircleShape(); } void create_CircleShape_rad(float radius, unsigned int count, void* memory) { new(memory)sf::CircleShape(radius, count); } bool Reg() { Script::ScriptExtensions::AddExtension([](asIScriptEngine* eng) { int r = 0; r = eng->SetDefaultNamespace("Shapes"); assert(r >= 0); r = eng->RegisterObjectType("Circle", sizeof(sf::CircleShape), asOBJ_VALUE | asGetTypeTraits<sf::CircleShape>()); assert(r >= 0); r = eng->RegisterObjectBehaviour("Circle", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(create_CircleShape), asCALL_CDECL_OBJLAST); assert(r >= 0); r = eng->RegisterObjectBehaviour("Circle", asBEHAVE_CONSTRUCT, "void f(float,uint=30)", asFUNCTION(create_CircleShape_rad), asCALL_CDECL_OBJLAST); assert(r >= 0); r = eng->RegisterObjectMethod("Circle", "void set_PointCount(uint)", asMETHOD(sf::CircleShape, setPointCount), asCALL_THISCALL); assert(r >= 0); r = eng->RegisterObjectMethod("Circle", "float get_Radius()", asMETHOD(sf::CircleShape, getRadius), asCALL_THISCALL); assert(r >= 0); r = eng->RegisterObjectMethod("Circle", "void set_Radius(float)", asMETHOD(sf::CircleShape, setRadius), asCALL_THISCALL); assert(r >= 0); Script::SFML::registerShape<sf::CircleShape>("Circle", eng); r = eng->SetDefaultNamespace(""); assert(r >= 0); }, 6); return true; } } bool Script::SFML::Extensions::CircleShape = Reg();
ace13/LD31
Source/Script/SFML/CircleShape.cpp
C++
mit
1,833
'use strict'; module.exports = function(sequelize, DataTypes) { var Student = sequelize.define('Student', { name: DataTypes.STRING, timeReq: DataTypes.INTEGER, }, { classMethods: { associate: function() { } } }); return Student; };
troops2devs/minutes
models/student.js
JavaScript
mit
268
module Culqi VERSION = '1.2.8' end
augustosamame/culqiruby
lib/culqi/version.rb
Ruby
mit
37
<!DOCTYPE html> <html lang=""> <head> <title><%= webpackConfig.metadata.title %></title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="<%= webpackConfig.metadata.title %>"> <link rel="manifest" href="/assets/manifest.json"> <meta name="msapplication-TileColor" content="#00bcd4"> <meta name="msapplication-TileImage" content="/assets/icon/ms-icon-144x144.png"> <meta name="theme-color" content="#00bcd4"> <!-- end favicon --> <!-- base url --> <base href="<%= webpackConfig.metadata.baseUrl %>"> </head> <body > <app> Loading... </app> <!-- Google Analytics: change UA-71073175-1 to be your site's ID --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-71073175-1', 'auto'); ga('send', 'pageview'); </script> <% if (webpackConfig.metadata.ENV === 'development') { %> <!-- Webpack Dev Server reload --> <script src="http://<%= webpackConfig.metadata.host %>:<%= webpackConfig.metadata.port %>/webpack-dev-server.js"></script> <% } %> </body> </html>
andbet39/Angular2Sensor
src/index.html
HTML
mit
1,457
#include <CImageLibI.h> #include <CImageColorDefP.h> #include <cstring> bool CImageColorDef:: getRGB(const std::string &name, double *r, double *g, double *b) { int ri, gi, bi; if (! getRGBI(name, &ri, &gi, &bi)) return false; double rgb_scale = 1.0/255.0; *r = ri*rgb_scale; *g = gi*rgb_scale; *b = bi*rgb_scale; return true; } bool CImageColorDef:: getRGBI(const std::string &name, int *r, int *g, int *b) { int i; std::string lname = CStrUtil::toLower(name); const char *name1 = lname.c_str(); for (i = 0; color_def_data[i].name != 0; ++i) if (strcmp(color_def_data[i].name, name1) == 0) break; if (color_def_data[i].name == 0) return false; *r = color_def_data[i].r; *g = color_def_data[i].g; *b = color_def_data[i].b; return true; }
colinw7/CImageLib
src/CImageColorDef.cpp
C++
mit
801
const {xObjectForm} = require('./xObjectForm'); exports._getPathOptions = function _getPathOptions(options = {}, originX, originY) { this.current = this.current || {}; const colorspace = options.colorspace || this.options.colorspace; const colorName = options.colorName; const pathOptions = { originX, originY, font: this._getFont(options), size: options.size || this.current.defaultFontSize, charSpace: options.charSpace || 0, underline: false, color: this._transformColor(options.color, {colorspace:colorspace, colorName:options.colorName}), colorspace, colorName, colorArray: [], lineCap: this._lineCap(), lineJoin: this._lineJoin(), miterLimit: 1.414, width: 2, align: options.align }; if (options.opacity == void(0) || isNaN(options.opacity)) { options.opacity = 1; } else { options.opacity = (options.opacity < 0) ? 0 : (options.opacity > 1) ? 1 : options.opacity; } pathOptions.opacity = options.opacity; const extGStates = this._createExtGStates(options.opacity); pathOptions.strokeGsId = extGStates.stroke; pathOptions.fillGsId = extGStates.fill; if (options.size || options.fontSize) { const size = options.size || options.fontSize; if (!isNaN(size)) { pathOptions.size = (size <= 0) ? 1 : size; } } if (options.width || options.lineWidth) { const width = options.width || options.lineWidth; if (!isNaN(width)) { pathOptions.width = (width <= 0) ? 1 : width; } } const colorOpts = {colorspace:colorspace, wantColorModel:true, colorName: options.colorName}; if (options.stroke) { pathOptions.strokeModel = this._transformColor(options.stroke, colorOpts); pathOptions.stroke = pathOptions.strokeModel.color; } if (options.fill) { pathOptions.fillModel = this._transformColor(options.fill, colorOpts); pathOptions.fill = pathOptions.fillModel.color; } pathOptions.colorModel = this._transformColor((options.color || options.colour), colorOpts); pathOptions.color = pathOptions.colorModel.color; pathOptions.colorspace = pathOptions.colorModel.colorspace; // rotation if (options.rotation !== void(0)) { const rotation = parseFloat(options.rotation); pathOptions.rotation = rotation; pathOptions.rotationOrigin = options.rotationOrigin || null; } // skew if (options.skewX !== void(0)) { pathOptions.skewX = options.skewX; } if (options.skewY != void(0)) { pathOptions.skewY = options.skewY; } // Page 127 of PDF 1.7 specification pathOptions.dash = (Array.isArray(options.dash)) ? options.dash : []; pathOptions.dashPhase = (!isNaN(options.dashPhase)) ? options.dashPhase : 0; if (pathOptions.dash[0] == 0 && pathOptions.dash[1] == 0) { pathOptions.dash = []; // no dash, solid unbroken line pathOptions.dashPhase = 0; } // Page 125-126 of PDF 1.7 specification if (options.lineJoin !== void(0)) { pathOptions.lineJoin = this._lineJoin(options.lineJoin); } if (options.lineCap !== void(0)) { pathOptions.lineCap = this._lineCap(options.lineCap); } if (options.miterLimit !== void(0)) { if (!isNaN(options.miterLimit)) { pathOptions.miterLimit = options.miterLimit; } } return pathOptions; }; exports._getDistance = function _getDistance(coordA, coordB) { const disX = Math.abs(coordB[0] - coordA[0]); const disY = Math.abs(coordB[1] - coordB[1]); const distance = Math.sqrt(((disX * disX) + (disY * disY))); return distance; }; exports._getTransformParams = getTransformParams; function getTransformParams(inAngle, x, y, offsetX, offsetY) { const theta = toRadians(inAngle); const cosTheta = Math.cos(theta); const sinTheta = Math.sin(theta); const nx = (cosTheta * -offsetX) + (sinTheta * -offsetY); const ny = (cosTheta * -offsetY) - (sinTheta * -offsetX); return [cosTheta, -sinTheta, sinTheta, cosTheta, x - nx, y - ny]; } exports._setRotationContext = function _setRotationTransform(context, x, y, options) { const deltaY = (options.deltaY) ? options.deltaY : 0; if (options.rotation === undefined || options.rotation === 0) { context.cm(1, 0, 0, 1, x, y-deltaY); // no rotation } else { let rotationOrigin; if (!hasRotation(options)) { rotationOrigin = [options.originX, options.originY]; // supply default } else { if (options.useGivenCoords) { rotationOrigin = options.rotationOrigin; } else { const orig = this._calibrateCoordinate(options.rotationOrigin[0], options.rotationOrigin[1]); rotationOrigin = [orig.nx, orig.ny]; } } const rm = getTransformParams( // rotation matrix options.rotation, rotationOrigin[0], rotationOrigin[1], x - rotationOrigin[0], y - rotationOrigin[1] - deltaY ); context.cm(rm[0], rm[1], rm[2], rm[3], rm[4], rm[5]); } }; function hasRotation(options) { return options.rotationOrigin && Array.isArray(options.rotationOrigin) && options.rotationOrigin.length === 2; } function toRadians(angle) { return 2 * Math.PI * ((angle % 360) / 360); } function getSkewTransform(skewXAngle= 0 , skewYAngle = 0) { const alpha = toRadians(skewXAngle); const beta = toRadians(skewYAngle); const tanAlpha = Math.tan(alpha); const tanBeta = Math.tan(beta); return [1, tanAlpha, tanBeta, 1, 0, 0]; } exports._setSkewContext = function _setSkewTransform(context, options) { if (options.skewX || options.skewY) { const sm = getSkewTransform(options.skewX, options.skewY); context.cm(sm[0], sm[1], sm[2], sm[3], sm[4], sm[5]); } }; exports._setScalingTransform = function _setScalingTransform(context, options) { if (options.ratio) { context.cm(options.ratio[0], 0, 0, options.ratio[1], 0, 0); } }; exports._drawObject = function _drawObject(self, x, y, width, height, options, callback) { let xObject = options.xObject; // allows caller to supply existing form object if (!xObject) { self.pauseContext(); xObject = new xObjectForm(self.writer, width, height); const xObjectCtx = xObject.getContentContext(); xObjectCtx.q(); callback(xObjectCtx, xObject); xObjectCtx.Q(); xObject.end(); self.resumeContext(); } const context = self.pageContext; context.q(); self._setRotationContext(context, x, y, options); self._setSkewContext(context, options); self._setScalingTransform(context, options); context .doXObject(xObject) .Q(); }; exports._lineCap = function _lineCap(type) { const round = 1; let cap = round; if (type) { const capStyle = ['butt', 'round', 'square']; const capType = capStyle.indexOf(type); cap = (capType !== -1) ? capType : round; } return cap; }; exports._lineJoin = function _lineJoin(type) { const round = 1; let join = round; if (type) { const joinStyle = ['miter', 'round', 'bevel']; const joinType = joinStyle.indexOf(type); join = (joinType !== -1) ? joinType : round; } return join; };
chunyenHuang/hummusRecipe
lib/vector.helper.js
JavaScript
mit
7,549
SUBROUTINE WFN1_AD_DSYGST( ITYPE, UPLO, N, A, LDA, B, LDB, INFO ) USE WFN1_AD1 IMPLICIT NONE #include "blas/double/intf_wfn1_ad_dsymm.fh" #include "blas/double/intf_wfn1_ad_dsyr2.fh" #include "blas/double/intf_wfn1_ad_dsyr2k.fh" #include "blas/double/intf_wfn1_ad_dtrmm.fh" #include "blas/double/intf_wfn1_ad_dtrsm.fh" #include "lapack/double/intf_wfn1_ad_dsygs2.fh" * * -- LAPACK routine (version 3.3.1) -- * -- LAPACK is a software package provided by Univ. of Tennessee, -- * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- * -- April 2011 -- * * .. Scalar Arguments .. CHARACTER UPLO INTEGER INFO, ITYPE, LDA, LDB, N * .. * .. Array Arguments .. TYPE(WFN1_AD_DBLE) :: A( LDA, * ), B( LDB, * ) * .. * * Purpose * ======= * * DSYGST reduces a real symmetric-definite generalized eigenproblem * to standard form. * * If ITYPE = 1, the problem is A*x = lambda*B*x, * and A is overwritten by inv(U**T)*A*inv(U) or inv(L)*A*inv(L**T) * * If ITYPE = 2 or 3, the problem is A*B*x = lambda*x or * B*A*x = lambda*x, and A is overwritten by U*A*U**T or L**T*A*L. * * B must have been previously factorized as U**T*U or L*L**T by DPOTRF. * * Arguments * ========= * * ITYPE (input) INTEGER * = 1: compute inv(U**T)*A*inv(U) or inv(L)*A*inv(L**T); * = 2 or 3: compute U*A*U**T or L**T*A*L. * * UPLO (input) CHARACTER*1 * = 'U': Upper triangle of A is stored and B is factored as * U**T*U; * = 'L': Lower triangle of A is stored and B is factored as * L*L**T. * * N (input) INTEGER * The order of the matrices A and B. N >= 0. * * A (input/output) DOUBLE PRECISION array, dimension (LDA,N) * On entry, the symmetric matrix A. If UPLO = 'U', the leading * N-by-N upper triangular part of A contains the upper * triangular part of the matrix A, and the strictly lower * triangular part of A is not referenced. If UPLO = 'L', the * leading N-by-N lower triangular part of A contains the lower * triangular part of the matrix A, and the strictly upper * triangular part of A is not referenced. * * On exit, if INFO = 0, the transformed matrix, stored in the * same format as A. * * LDA (input) INTEGER * The leading dimension of the array A. LDA >= max(1,N). * * B (input) DOUBLE PRECISION array, dimension (LDB,N) * The triangular factor from the Cholesky factorization of B, * as returned by DPOTRF. * * LDB (input) INTEGER * The leading dimension of the array B. LDB >= max(1,N). * * INFO (output) INTEGER * = 0: successful exit * < 0: if INFO = -i, the i-th argument had an illegal value * * ===================================================================== * * .. Parameters .. TYPE(WFN1_AD_DBLE) :: ONE, HALF c PARAMETER ( ONE = 1.0D0, HALF = 0.5D0 ) * .. * .. Local Scalars .. LOGICAL UPPER INTEGER K, KB, NB * .. * .. External Subroutines .. EXTERNAL XERBLA * .. * .. Intrinsic Functions .. c INTRINSIC MAX, MIN * .. * .. External Functions .. LOGICAL LSAME INTEGER ILAENV EXTERNAL LSAME, ILAENV * .. * .. Executable Statements .. * * Test the input parameters. * ONE = 1.0d0 HALF = 0.5d0 INFO = 0 UPPER = LSAME( UPLO, 'U' ) IF( ITYPE.LT.1 .OR. ITYPE.GT.3 ) THEN INFO = -1 ELSE IF( .NOT.UPPER .AND. .NOT.LSAME( UPLO, 'L' ) ) THEN INFO = -2 ELSE IF( N.LT.0 ) THEN INFO = -3 ELSE IF( LDA.LT.MAX( 1, N ) ) THEN INFO = -5 ELSE IF( LDB.LT.MAX( 1, N ) ) THEN INFO = -7 END IF IF( INFO.NE.0 ) THEN CALL XERBLA( 'DSYGST', -INFO ) RETURN END IF * * Quick return if possible * IF( N.EQ.0 ) $ RETURN * * Determine the block size for this environment. * NB = ILAENV( 1, 'DSYGST', UPLO, N, -1, -1, -1 ) * IF( NB.LE.1 .OR. NB.GE.N ) THEN * * Use unblocked code * CALL WFN1_AD_DSYGS2( ITYPE, UPLO, N, A, LDA, B, LDB, INFO ) ELSE * * Use blocked code * IF( ITYPE.EQ.1 ) THEN IF( UPPER ) THEN * * Compute inv(U**T)*A*inv(U) * DO 10 K = 1, N, NB KB = MIN( N-K+1, NB ) * * Update the upper triangle of A(k:n,k:n) * CALL WFN1_AD_DSYGS2( ITYPE, UPLO, KB, A( K, K ), LDA, $ B( K, K ), LDB, INFO ) IF( K+KB.LE.N ) THEN CALL WFN1_AD_DTRSM( 'Left', UPLO, 'Transpose', $ 'Non-unit', KB, N-K-KB+1, ONE, B( K, K ), LDB, $ A( K, K+KB ), LDA ) CALL WFN1_AD_DSYMM( 'Left', UPLO, KB, N-K-KB+1, $ -HALF, A( K, K ), LDA, B( K, K+KB ), LDB, ONE, $ A( K, K+KB ), LDA ) CALL WFN1_AD_DSYR2K( UPLO, 'Transpose', N-K-KB+1, $ KB, -ONE, A( K, K+KB ), LDA, B( K, K+KB ), $ LDB, ONE, A( K+KB, K+KB ), LDA ) CALL WFN1_AD_DSYMM( 'Left', UPLO, KB, N-K-KB+1, $ -HALF, A( K, K ), LDA, B( K, K+KB ), LDB, ONE, $ A( K, K+KB ), LDA ) CALL WFN1_AD_DTRSM( 'Right', UPLO, 'No transpose', $ 'Non-unit', KB, N-K-KB+1, ONE, $ B( K+KB, K+KB ), LDB, A( K, K+KB ), LDA ) END IF 10 CONTINUE ELSE * * Compute inv(L)*A*inv(L**T) * DO 20 K = 1, N, NB KB = MIN( N-K+1, NB ) * * Update the lower triangle of A(k:n,k:n) * CALL WFN1_AD_DSYGS2( ITYPE, UPLO, KB, A( K, K ), LDA, $ B( K, K ), LDB, INFO ) IF( K+KB.LE.N ) THEN CALL WFN1_AD_DTRSM( 'Right', UPLO, 'Transpose', $ 'Non-unit', N-K-KB+1, KB, ONE, B( K, K ), LDB, $ A( K+KB, K ), LDA ) CALL WFN1_AD_DSYMM( 'Right', UPLO, N-K-KB+1, KB, $ -HALF, A( K, K ), LDA, B( K+KB, K ), LDB, ONE, $ A( K+KB, K ), LDA ) CALL WFN1_AD_DSYR2K( UPLO, 'No transpose', $ N-K-KB+1, KB, -ONE, A( K+KB, K ), LDA, $ B( K+KB, K ), LDB, ONE, A( K+KB, K+KB ), LDA ) CALL WFN1_AD_DSYMM( 'Right', UPLO, N-K-KB+1, KB, $ -HALF, A( K, K ), LDA, B( K+KB, K ), LDB, ONE, $ A( K+KB, K ), LDA ) CALL WFN1_AD_DTRSM( 'Left', UPLO, 'No transpose', $ 'Non-unit', N-K-KB+1, KB, ONE, $ B( K+KB, K+KB ), LDB, A( K+KB, K ), LDA ) END IF 20 CONTINUE END IF ELSE IF( UPPER ) THEN * * Compute U*A*U**T * DO 30 K = 1, N, NB KB = MIN( N-K+1, NB ) * * Update the upper triangle of A(1:k+kb-1,1:k+kb-1) * CALL WFN1_AD_DTRMM( 'Left', UPLO, 'No transpose', $ 'Non-unit', K-1, KB, ONE, B, LDB, $ A( 1, K ), LDA ) CALL WFN1_AD_DSYMM( 'Right', UPLO, K-1, KB, HALF, $ A( K, K ), LDA, B( 1, K ), LDB, ONE, $ A( 1, K ), LDA ) CALL WFN1_AD_DSYR2K( UPLO, 'No transpose', K-1, KB, $ ONE, A( 1, K ), LDA, B( 1, K ), LDB, ONE, $ A, LDA ) CALL WFN1_AD_DSYMM( 'Right', UPLO, K-1, KB, HALF, $ A( K, K ), LDA, B( 1, K ), LDB, ONE, $ A( 1, K ), LDA ) CALL WFN1_AD_DTRMM( 'Right', UPLO, 'Transpose', $ 'Non-unit', K-1, KB, ONE, B( K, K ), LDB, $ A( 1, K ), LDA ) CALL WFN1_AD_DSYGS2( ITYPE, UPLO, KB, A( K, K ), LDA, $ B( K, K ), LDB, INFO ) 30 CONTINUE ELSE * * Compute L**T*A*L * DO 40 K = 1, N, NB KB = MIN( N-K+1, NB ) * * Update the lower triangle of A(1:k+kb-1,1:k+kb-1) * CALL WFN1_AD_DTRMM( 'Right', UPLO, 'No transpose', $ 'Non-unit', KB, K-1, ONE, B, LDB, $ A( K, 1 ), LDA ) CALL WFN1_AD_DSYMM( 'Left', UPLO, KB, K-1, HALF, $ A( K, K ), LDA, B( K, 1 ), LDB, ONE, $ A( K, 1 ), LDA ) CALL WFN1_AD_DSYR2K( UPLO, 'Transpose', K-1, KB, ONE, $ A( K, 1 ), LDA, B( K, 1 ), LDB, ONE, A, LDA ) CALL WFN1_AD_DSYMM( 'Left', UPLO, KB, K-1, HALF, $ A( K, K ), LDA, B( K, 1 ), LDB, ONE, $ A( K, 1 ), LDA ) CALL WFN1_AD_DTRMM( 'Left', UPLO, 'Transpose', $ 'Non-unit', KB, K-1, ONE, B( K, K ), LDB, $ A( K, 1 ), LDA ) CALL WFN1_AD_DSYGS2( ITYPE, UPLO, KB, A( K, K ), LDA, $ B( K, K ), LDB, INFO ) 40 CONTINUE END IF END IF END IF RETURN * * End of DSYGST * END
rangsimanketkaew/NWChem
src/rdmft/recycling/wfn1/lapack/double/wfn1_ad_dsygst.f
FORTRAN
mit
9,696
#define BOOST_TEST_MODULE test_dsu #define BOOST_TEST_DYN_LINK #include "test.hpp" #include "dsu.hpp" using bdata::make; using bdata::xrange; BOOST_AUTO_TEST_CASE(one) { auto dsu = DisjointSetUnion<int>(); dsu.push_back(1); BOOST_TEST(dsu.xs[1] == 1); BOOST_TEST(dsu.ws[1] == 1); } BOOST_AUTO_TEST_CASE(two) { auto dsu = DisjointSetUnion<int>(); dsu.push_back(1); dsu.push_back(2); BOOST_TEST(dsu.xs[1] == 1); BOOST_TEST(dsu.ws[1] == 1); BOOST_TEST(dsu.xs[2] == 2); BOOST_TEST(dsu.ws[2] == 1); } BOOST_AUTO_TEST_CASE(unite2) { auto dsu = DisjointSetUnion<int>({1, 2}); dsu.unite(1, 2); BOOST_TEST((dsu.find(1) == dsu.find(2))); } BOOST_DATA_TEST_CASE(unite_all_0, xrange(2, 256) * xrange(10), n, s) { auto xs = create_vector(n, s); auto dsu = DisjointSetUnion<int>(xs.begin(), xs.end()); for (auto i = 1; i < n; ++i) { dsu.unite(xs[0], xs[i]); } for (auto i = 1; i < n; ++i) { BOOST_TEST((dsu.find(xs[0]) == dsu.find(xs[i]))); } } BOOST_DATA_TEST_CASE(unite_all_1, xrange(2, 256) * xrange(10), n, s) { auto xs = create_vector(n, s); auto dsu = DisjointSetUnion<int>(xs.begin(), xs.end()); for (auto i = 1; i < n; ++i) { dsu.unite(xs[i - 1], xs[i]); } for (auto i = 1; i < n; ++i) { BOOST_TEST((dsu.find(xs[0]) == dsu.find(xs[i]))); } } BOOST_DATA_TEST_CASE(check_xs_ys, xrange(2, 256) * xrange(10), n, s) { auto xs = create_vector(n, s); auto ys = xs; auto engine = std::default_random_engine{}; std::shuffle(ys.begin(), ys.end(), engine); auto dsu = DisjointSetUnion<int>(xs.begin(), xs.end()); for (auto i = 0; i < n; ++i) { dsu.unite(xs[i], ys[i]); } for (auto i = 0; i < n; ++i) { BOOST_TEST((dsu.find(xs[i]) == dsu.find(ys[i]))); } }
all3fox/algos-cpp
tests/test_dsu.cpp
C++
mit
1,854
<?php namespace WebEd\Base\ThemesManagement\Actions; use WebEd\Base\Actions\AbstractAction; class EnableThemeAction extends AbstractAction { /** * @param $alias * @return array */ public function run($alias) { do_action(WEBED_THEME_BEFORE_ENABLE, $alias); $theme = get_theme_information($alias); if (!$theme) { return $this->error('Plugin not exists'); } $checkRelatedModules = check_module_require($theme); if ($checkRelatedModules['error']) { $messages = []; foreach ($checkRelatedModules['messages'] as $message) { $messages[] = $message; } return $this->error($messages); } themes_management()->enableTheme($alias); do_action(WEBED_THEME_ENABLED, $alias); modules_management()->refreshComposerAutoload(); return $this->success('Your theme has been enabled'); } }
sgsoft-studio/themes-management
src/Actions/EnableThemeAction.php
PHP
mit
971
// // NFAnalogClockView+Extension.h // NFAnalogClock // // Created by Neil Francis Hipona on 12/1/16. // Copyright © 2016 Neil Francis Hipona. All rights reserved. // #import "NFAnalogClockView.h" @interface NFAnalogClockView (Extension) - (void)startTime; - (void)stopTime; - (NFTime *)updateClock; @end
nferocious76/NFAnalogClock
NFAnalogClock/NFAnalogClockView+Extension.h
C
mit
315
___ <strong>Javascript</strong> <h3>Arrays</h3> --- ##Summary We can access an array's items using **indices**. Arrays have a variety of methods to utilize. ##Discussion ```javascript var myArray = ["Alex", "Andrew", "James"]; myArray[0]; // this will return "Alex" // let's assign a new value to "James" myArray[2] = "Woodstock"; ``` We also covered a lot of **methods** that each array has. Here are the methods we used. - **pop()** - removes and returns the the *last* item in the array. - **push()** - adds an item to the end of the array. - **shift()** - removes the *first* item in an array. - **unshift()** - adds an item to the *start* of the array. - **reverse()** - reverses the order of an array. - **sort()** - sorts an array by alpha-numerics, based on the first character read. ## References Your references may be placed here. Please place them in an unordered list and add a quick summary of each. - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/array">MDN: Arrays</a>
ga-chicago/ga-chicago.github.io
darth-vader/01_front_end_fundamentals/javascript_arrays.md
Markdown
mit
1,040
--- layout: default --- <div class="posts"> {% for post in site.posts %} <article class="post"> {% if post.icon %} <div style="float: left; padding-right: 20px; margin-top: 10px"> <img style="" src="{{post.icon}}" width="50" height="50"/> </div> {% endif %} <a class="post-link" href="{{ site.baseurl }}{{ post.url }}"><h1>{{ post.title }}</h1></a> <p class="post-meta post-meta-date">{{ post.date | date: "%b %d %Y" }}</p> <div class="entry"> {{ post.excerpt }} </div> <a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a> </article> {% endfor %} </div>
mbarralo/mbarralo.github.io
index.html
HTML
mit
662
// Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package models import ( "bufio" "bytes" "fmt" "html" "html/template" "io" "io/ioutil" "os" "os/exec" "strings" "github.com/Unknwon/com" "github.com/sergi/go-diff/diffmatchpatch" "golang.org/x/net/html/charset" "golang.org/x/text/transform" "github.com/gogits/git-module" "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/log" "github.com/gogits/gogs/modules/process" ) type DiffLineType uint8 const ( DIFF_LINE_PLAIN DiffLineType = iota + 1 DIFF_LINE_ADD DIFF_LINE_DEL DIFF_LINE_SECTION ) type DiffFileType uint8 const ( DIFF_FILE_ADD DiffFileType = iota + 1 DIFF_FILE_CHANGE DIFF_FILE_DEL DIFF_FILE_RENAME ) type DiffLine struct { LeftIdx int RightIdx int Type DiffLineType Content string } func (d *DiffLine) GetType() int { return int(d.Type) } type DiffSection struct { Name string Lines []*DiffLine } var ( addedCodePrefix = []byte("<span class=\"added-code\">") removedCodePrefix = []byte("<span class=\"removed-code\">") codeTagSuffix = []byte("</span>") ) func diffToHTML(diffs []diffmatchpatch.Diff, lineType DiffLineType) template.HTML { var buf bytes.Buffer for i := range diffs { if diffs[i].Type == diffmatchpatch.DiffInsert && lineType == DIFF_LINE_ADD { buf.Write(addedCodePrefix) buf.WriteString(html.EscapeString(diffs[i].Text)) buf.Write(codeTagSuffix) } else if diffs[i].Type == diffmatchpatch.DiffDelete && lineType == DIFF_LINE_DEL { buf.Write(removedCodePrefix) buf.WriteString(html.EscapeString(diffs[i].Text)) buf.Write(codeTagSuffix) } else if diffs[i].Type == diffmatchpatch.DiffEqual { buf.WriteString(html.EscapeString(diffs[i].Text)) } } return template.HTML(buf.Bytes()) } // get an specific line by type (add or del) and file line number func (diffSection *DiffSection) GetLine(lineType DiffLineType, idx int) *DiffLine { difference := 0 for _, diffLine := range diffSection.Lines { if diffLine.Type == DIFF_LINE_PLAIN { // get the difference of line numbers between ADD and DEL versions difference = diffLine.RightIdx - diffLine.LeftIdx continue } if lineType == DIFF_LINE_DEL { if diffLine.RightIdx == 0 && diffLine.LeftIdx == idx-difference { return diffLine } } else if lineType == DIFF_LINE_ADD { if diffLine.LeftIdx == 0 && diffLine.RightIdx == idx+difference { return diffLine } } } return nil } // computes inline diff for the given line func (diffSection *DiffSection) GetComputedInlineDiffFor(diffLine *DiffLine) template.HTML { var compareDiffLine *DiffLine var diff1, diff2 string getDefaultReturn := func() template.HTML { return template.HTML(html.EscapeString(diffLine.Content[1:])) } // just compute diff for adds and removes if diffLine.Type != DIFF_LINE_ADD && diffLine.Type != DIFF_LINE_DEL { return getDefaultReturn() } // try to find equivalent diff line. ignore, otherwise if diffLine.Type == DIFF_LINE_ADD { compareDiffLine = diffSection.GetLine(DIFF_LINE_DEL, diffLine.RightIdx) if compareDiffLine == nil { return getDefaultReturn() } diff1 = compareDiffLine.Content diff2 = diffLine.Content } else { compareDiffLine = diffSection.GetLine(DIFF_LINE_ADD, diffLine.LeftIdx) if compareDiffLine == nil { return getDefaultReturn() } diff1 = diffLine.Content diff2 = compareDiffLine.Content } dmp := diffmatchpatch.New() diffRecord := dmp.DiffMain(diff1[1:], diff2[1:], true) diffRecord = dmp.DiffCleanupSemantic(diffRecord) return diffToHTML(diffRecord, diffLine.Type) } type DiffFile struct { Name string OldName string Index int Addition, Deletion int Type DiffFileType IsCreated bool IsDeleted bool IsBin bool IsRenamed bool Sections []*DiffSection } func (diffFile *DiffFile) GetType() int { return int(diffFile.Type) } type Diff struct { TotalAddition, TotalDeletion int Files []*DiffFile } func (diff *Diff) NumFiles() int { return len(diff.Files) } const DIFF_HEAD = "diff --git " func ParsePatch(maxlines int, reader io.Reader) (*Diff, error) { var ( diff = &Diff{Files: make([]*DiffFile, 0)} curFile *DiffFile curSection = &DiffSection{ Lines: make([]*DiffLine, 0, 10), } leftLine, rightLine int lineCount int ) input := bufio.NewReader(reader) isEOF := false for { if isEOF { break } line, err := input.ReadString('\n') if err != nil { if err == io.EOF { isEOF = true } else { return nil, fmt.Errorf("ReadString: %v", err) } } if len(line) > 0 && line[len(line)-1] == '\n' { // Remove line break. line = line[:len(line)-1] } if strings.HasPrefix(line, "+++ ") || strings.HasPrefix(line, "--- ") { continue } else if len(line) == 0 { continue } lineCount++ // Diff data too large, we only show the first about maxlines lines if lineCount >= maxlines { log.Warn("Diff data too large") io.Copy(ioutil.Discard, reader) diff.Files = nil return diff, nil } switch { case line[0] == ' ': diffLine := &DiffLine{Type: DIFF_LINE_PLAIN, Content: line, LeftIdx: leftLine, RightIdx: rightLine} leftLine++ rightLine++ curSection.Lines = append(curSection.Lines, diffLine) continue case line[0] == '@': curSection = &DiffSection{} curFile.Sections = append(curFile.Sections, curSection) ss := strings.Split(line, "@@") diffLine := &DiffLine{Type: DIFF_LINE_SECTION, Content: line} curSection.Lines = append(curSection.Lines, diffLine) // Parse line number. ranges := strings.Split(ss[1][1:], " ") leftLine, _ = com.StrTo(strings.Split(ranges[0], ",")[0][1:]).Int() if len(ranges) > 1 { rightLine, _ = com.StrTo(strings.Split(ranges[1], ",")[0]).Int() } else { log.Warn("Parse line number failed: %v", line) rightLine = leftLine } continue case line[0] == '+': curFile.Addition++ diff.TotalAddition++ diffLine := &DiffLine{Type: DIFF_LINE_ADD, Content: line, RightIdx: rightLine} rightLine++ curSection.Lines = append(curSection.Lines, diffLine) continue case line[0] == '-': curFile.Deletion++ diff.TotalDeletion++ diffLine := &DiffLine{Type: DIFF_LINE_DEL, Content: line, LeftIdx: leftLine} if leftLine > 0 { leftLine++ } curSection.Lines = append(curSection.Lines, diffLine) case strings.HasPrefix(line, "Binary"): curFile.IsBin = true continue } // Get new file. if strings.HasPrefix(line, DIFF_HEAD) { middle := -1 // Note: In case file name is surrounded by double quotes (it happens only in git-shell). // e.g. diff --git "a/xxx" "b/xxx" hasQuote := line[len(DIFF_HEAD)] == '"' if hasQuote { middle = strings.Index(line, ` "b/`) } else { middle = strings.Index(line, " b/") } beg := len(DIFF_HEAD) a := line[beg+2 : middle] b := line[middle+3:] if hasQuote { a = string(git.UnescapeChars([]byte(a[1 : len(a)-1]))) b = string(git.UnescapeChars([]byte(b[1 : len(b)-1]))) } curFile = &DiffFile{ Name: a, Index: len(diff.Files) + 1, Type: DIFF_FILE_CHANGE, Sections: make([]*DiffSection, 0, 10), } diff.Files = append(diff.Files, curFile) // Check file diff type. for { line, err := input.ReadString('\n') if err != nil { if err == io.EOF { isEOF = true } else { return nil, fmt.Errorf("ReadString: %v", err) } } switch { case strings.HasPrefix(line, "new file"): curFile.Type = DIFF_FILE_ADD curFile.IsCreated = true case strings.HasPrefix(line, "deleted"): curFile.Type = DIFF_FILE_DEL curFile.IsDeleted = true case strings.HasPrefix(line, "index"): curFile.Type = DIFF_FILE_CHANGE case strings.HasPrefix(line, "similarity index 100%"): curFile.Type = DIFF_FILE_RENAME curFile.IsRenamed = true curFile.OldName = curFile.Name curFile.Name = b } if curFile.Type > 0 { break } } } } // FIXME: detect encoding while parsing. var buf bytes.Buffer for _, f := range diff.Files { buf.Reset() for _, sec := range f.Sections { for _, l := range sec.Lines { buf.WriteString(l.Content) buf.WriteString("\n") } } charsetLabel, err := base.DetectEncoding(buf.Bytes()) if charsetLabel != "UTF-8" && err == nil { encoding, _ := charset.Lookup(charsetLabel) if encoding != nil { d := encoding.NewDecoder() for _, sec := range f.Sections { for _, l := range sec.Lines { if c, _, err := transform.String(d, l.Content); err == nil { l.Content = c } } } } } } return diff, nil } func GetDiffRange(repoPath, beforeCommitID string, afterCommitID string, maxlines int) (*Diff, error) { repo, err := git.OpenRepository(repoPath) if err != nil { return nil, err } commit, err := repo.GetCommit(afterCommitID) if err != nil { return nil, err } var cmd *exec.Cmd // if "after" commit given if len(beforeCommitID) == 0 { // First commit of repository. if commit.ParentCount() == 0 { cmd = exec.Command("git", "show", afterCommitID) } else { c, _ := commit.Parent(0) cmd = exec.Command("git", "diff", "-M", c.ID.String(), afterCommitID) } } else { cmd = exec.Command("git", "diff", "-M", beforeCommitID, afterCommitID) } cmd.Dir = repoPath cmd.Stderr = os.Stderr stdout, err := cmd.StdoutPipe() if err != nil { return nil, fmt.Errorf("StdoutPipe: %v", err) } if err = cmd.Start(); err != nil { return nil, fmt.Errorf("Start: %v", err) } pid := process.Add(fmt.Sprintf("GetDiffRange (%s)", repoPath), cmd) defer process.Remove(pid) diff, err := ParsePatch(maxlines, stdout) if err != nil { return nil, fmt.Errorf("ParsePatch: %v", err) } if err = cmd.Wait(); err != nil { return nil, fmt.Errorf("Wait: %v", err) } return diff, nil } func GetDiffCommit(repoPath, commitId string, maxlines int) (*Diff, error) { return GetDiffRange(repoPath, "", commitId, maxlines) }
svcavallar/gogs
models/git_diff.go
GO
mit
10,244
--- layout: post date: 2017-09-30 title: "Jorge Manuel THE PEI Sleeveless Sweep/Brush Train Aline/Princess" category: Jorge Manuel tags: [Jorge Manuel ,Jorge Manuel,Aline/Princess ,Jewel,Sweep/Brush Train,Sleeveless] --- ### Jorge Manuel THE PEI Just **$379.99** ### Sleeveless Sweep/Brush Train Aline/Princess <table><tr><td>BRANDS</td><td>Jorge Manuel</td></tr><tr><td>Silhouette</td><td>Aline/Princess </td></tr><tr><td>Neckline</td><td>Jewel</td></tr><tr><td>Hemline/Train</td><td>Sweep/Brush Train</td></tr><tr><td>Sleeve</td><td>Sleeveless</td></tr></table> <a href="https://www.readybrides.com/en/jorge-manuel-/35789-jorge-manuel-the-pei.html"><img src="//img.readybrides.com/75049/jorge-manuel-the-pei.jpg" alt="Jorge Manuel THE PEI" style="width:100%;" /></a> <!-- break --> Buy it: [https://www.readybrides.com/en/jorge-manuel-/35789-jorge-manuel-the-pei.html](https://www.readybrides.com/en/jorge-manuel-/35789-jorge-manuel-the-pei.html)
novstylessee/novstylessee.github.io
_posts/2017-09-30-Jorge-Manuel-THE-PEI-Sleeveless-SweepBrush-Train-AlinePrincess.md
Markdown
mit
955
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Admin::PreferencesController do dataset :users it "should allow you to view your preferences" do user = login_as(:non_admin) get :edit response.should be_success assigned_user = assigns(:user) assigned_user.should == user assigned_user.object_id.should_not == user.object_id assigned_user.email.should == '[email protected]' end it "should allow you to save your preferences" do login_as :non_admin put :update, :user => { :password => '', :password_confirmation => '', :email => '[email protected]' } user = users(:non_admin) response.should redirect_to(admin_pages_path) flash[:notice].should match(/preferences.*?updated/i) user.email.should == '[email protected]' end it "should not allow you to update your login through the preferences page" do login_as :non_admin put :update, 'user' => { :login => 'superman' } response.should be_success flash[:error].should match(/bad form data/i) end it "should allow you to change your password" do login_as :non_admin put :update, { :user => { :password => 'funtimes', :password_confirmation => 'funtimes' } } user = users(:non_admin) user.password.should == user.sha1('funtimes') rails_log.should_not match(/"password"=>"funtimes"/) rails_log.should_not match(/"password_confirmation"=>"funtimes"/) end end
dosire/dosire
spec/controllers/admin/preferences_controller_spec.rb
Ruby
mit
1,463
--- title: 不是你难行的 date: 17/11/2021 --- 〈申命记〉第30章一开篇,主就告诉以色列百姓,如果他们悔改,转离恶行,就会发生什么事。上帝所赐予的是多么美好的应许啊! `阅读申30:1–10。尽管经文是在说如果他们不顺服会发生什么事,但上帝依然给了他们怎样的应许?这事对我们了解上帝的恩典有何启示?` 听到这般应许,当然倍感安慰。但这话的重点并非是说,即使他们违背了上帝的吩咐也没关系。上帝给人的绝不是廉价的恩典。祂所显明的是给人的爱,因此,人也当敬爱祂来作为回应,透过顺从祂的吩咐来表现出对祂的爱。 `阅读申30:11–14。上帝对他们说了什么?经文中有哪些基本的应许?你能想到新约中还有哪些经文表达了同样的应许?` 从优美的语言和严密的逻辑来看这个应许,主并没有让他们做什么难以达成的事。对他们来说,上帝的吩咐既不难理解,也不神秘,更不会因离他们太远而无法得到。它并不在天上,需要别人替他们取下来;也不在海外,需要别人过海去拿。主所说的是:「这话却离你甚近,就在你口中,在你心里,使你可以遵行。」(申30:14)也就是说,你对它足够了解,所以能够说出来,它就在你心里,所以你知道你必须去做。总之,你没有任何借口不顺从。「祂的一切吩咐都具有成全之能。」(怀爱伦,《基督比喻实训》, 第333页) 事实上,使徒保罗在探讨基督里的救赎时引用了这里的某些经文;他将它们作为因信称义的范例(参见罗10:6-10)。 紧接着这些经文之后,上帝吩咐以色列民作出选择,是生还是死,是福还是祸。如果他们因着恩典凭着信心选择了生命,那么他们就会得到生命。 今天其实也是一样,不是吗?
Adventech/sabbath-school-lessons
src/zh/2021-04/08/05.md
Markdown
mit
1,963
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. /** * This package contains the classes for AutoRestParameterGroupingTestService. * Test Infrastructure for AutoRest. */ package fixtures.azureparametergrouping;
matt-gibbs/AutoRest
AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/package-info.java
Java
mit
485
using System; using Pulse.FS; namespace Pulse.UI { public sealed class UiWpdLeafsAccessor : IUiLeafsAccessor { private readonly WpdArchiveListing _listing; private readonly WpdEntry[] _leafs; private readonly bool? _conversion; public UiNodeType Type { get { return UiNodeType.DataTable; } } public UiWpdLeafsAccessor(WpdArchiveListing listing, bool? conversion, params WpdEntry[] leafs) { _listing = listing; _leafs = leafs; _conversion = conversion; } public void Extract(IUiExtractionTarget target) { using (UiWpdExtractor extractor = new UiWpdExtractor(_listing, _leafs, _conversion, target)) extractor.Extract(); } public void Inject(IUiInjectionSource source, UiInjectionManager manager) { using (UiWpdInjector injector = new UiWpdInjector(_listing, _leafs, _conversion, source)) injector.Inject(manager); } } }
kidaa/Pulse
Pulse.UI/Windows/Main/Dockables/GameFileCommander/UiTree/Accessors/UiWpdLeafsAccessor.cs
C#
mit
1,061
import * as React from 'react'; import { DocumentCard } from './DocumentCard'; import { DocumentCardTitle } from './DocumentCardTitle'; import { DocumentCardPreview } from './DocumentCardPreview'; import { DocumentCardLocation } from './DocumentCardLocation'; import { DocumentCardActivity } from './DocumentCardActivity'; import { DocumentCardActions } from './DocumentCardActions'; import { PersonaInitialsColor } from '../../Persona'; import { ImageFit } from '../../Image'; import { IButtonProps } from '../../Button'; export interface IDocumentCard { } export interface IDocumentCardProps extends React.Props<DocumentCard> { /** * Optional callback to access the IDocumentCard interface. Use this instead of ref for accessing * the public methods and properties of the component. */ componentRef?: (component: IDocumentCard) => void; /** * The type of DocumentCard to display. * @default DocumentCardType.normal */ type?: DocumentCardType; /** * Function to call when the card is clicked or keyboard Enter/Space is pushed. */ onClick?: (ev?: React.SyntheticEvent<HTMLElement>) => void; /** * A URL to navigate to when the card is clicked. If a function has also been provided, * it will be used instead of the URL. */ onClickHref?: string; /** * Optional class for document card. */ className?: string; /** * Hex color value of the line below the card, which should correspond to the document type. * This should only be supplied when using the 'compact' card layout. */ accentColor?: string; } export enum DocumentCardType { /** * Standard DocumentCard. */ normal = 0, /** * Compact layout. Displays the preview beside the details, rather than above. */ compact = 1 } export interface IDocumentCardPreviewProps extends React.Props<DocumentCardPreview> { /** * One or more preview images to display. */ previewImages: IDocumentCardPreviewImage[]; /** * The function return string that will describe the number of overflow documents. * such as (overflowCount: number) => `+${ overflowCount } more`, */ getOverflowDocumentCountText?: (overflowCount: number) => string; } export interface IDocumentCardPreviewImage { /** * File name for the document this preview represents. */ name?: string; /** * URL to view the file. */ url?: string; /** * Path to the preview image. */ previewImageSrc?: string; /** * Deprecated at v1.3.6, to be removed at >= v2.0.0. * @deprecated */ errorImageSrc?: string; /** * Path to the icon associated with this document type. */ iconSrc?: string; /** * If provided, forces the preview image to be this width. */ width?: number; /** * If provided, forces the preview image to be this height. */ height?: number; /** * Used to determine how to size the image to fit the dimensions of the component. * If both dimensions are provided, then the image is fit using ImageFit.scale, otherwise ImageFit.none is used. */ imageFit?: ImageFit; /** * Hex color value of the line below the preview, which should correspond to the document type. */ accentColor?: string; } export interface IDocumentCardTitleProps extends React.Props<DocumentCardTitle> { /** * Title text. If the card represents more than one document, this should be the title of one document and a "+X" string. For example, a collection of four documents would have a string of "Document.docx +3". */ title: string; /** * Whether we truncate the title to fit within the box. May have a performance impact. * @defaultvalue true */ shouldTruncate?: boolean; } export interface IDocumentCardLocationProps extends React.Props<DocumentCardLocation> { /** * Text for the location of the document. */ location: string; /** * URL to navigate to for this location. */ locationHref?: string; /** * Function to call when the location is clicked. */ onClick?: (ev?: React.MouseEvent<HTMLElement>) => void; /** * Aria label for the link to the document location. */ ariaLabel?: string; } export interface IDocumentCardActivityProps extends React.Props<DocumentCardActivity> { /** * Describes the activity that has taken place, such as "Created Feb 23, 2016". */ activity: string; /** * One or more people who are involved in this activity. */ people: IDocumentCardActivityPerson[]; } export interface IDocumentCardActivityPerson { /** * The name of the person. */ name: string; /** * Path to the profile photo of the person. */ profileImageSrc: string; /** * The user's initials to display in the profile photo area when there is no image. */ initials?: string; /** * The background color when the user's initials are displayed. * @defaultvalue PersonaInitialsColor.blue */ initialsColor?: PersonaInitialsColor; } export interface IDocumentCardActionsProps extends React.Props<DocumentCardActions> { /** * The actions available for this document. */ actions: IButtonProps[]; /** * The number of views this document has received. */ views?: Number; }
SpatialMap/SpatialMapDev
node_modules/office-ui-fabric-react/src/components/DocumentCard/DocumentCard.Props.ts
TypeScript
mit
5,213
// // Created by paysonl on 16-10-20. // #include <vector> using std::vector; #include <iostream> #include <cassert> int min3(int a, int b, int c); int minSubSum(const vector<int>& a); int minSubRec(const vector<int>& a, int left, int right); int main() { vector<int> v{-2, -1, -2, 3, -4}; assert(minSubSum(v) == -6); } int minSubSum(const vector<int>& a) { return minSubRec(a, 0, a.size() - 1); } int minSubRec(const vector<int>& a, int left, int right) { if (left == right) if (a[left] < 0) return a[left]; else return 0; int mid = (left + right) / 2; int minLeftSum = minSubRec(a, left, mid); int minRightSum = minSubRec(a, mid + 1, right); int minLeftBorderSum = 0, leftBorderSum = 0; for (int i = mid; i >= left; --i) { leftBorderSum += a[i]; if (leftBorderSum < minLeftBorderSum) minLeftBorderSum = leftBorderSum; } int minRightBorderSum = 0, rightBorderSum = 0; for (int i = mid + 1; i <= right; ++i) { rightBorderSum += a[i]; if (rightBorderSum < minRightBorderSum) minRightBorderSum = rightBorderSum; } return min3(minLeftSum, minRightSum, minLeftBorderSum + minRightBorderSum); } int min3(int a, int b, int c) { int min2 = a < b ? a : b; return min2 < c ? min2 : c; }
frostRed/Exercises
DS_a_Algo_in_CPP/ch2/2-17-a.cpp
C++
mit
1,349
<?php /** * Created by PhpStorm. * User: Jan * Date: 17.03.2015 * Time: 17:03 */ namespace AppBundle\Repository; use Doctrine\ORM\EntityRepository; class ThreadRepository extends EntityRepository { public function findAllOrderedByLastModifiedDate($category_id) { $repository = $this->getEntityManager() ->getRepository('AppBundle:Thread'); $query = $repository->createQueryBuilder('t') ->where("t.category = :id") ->setParameter('id', $category_id) ->orderBy('t.last_modified_date', 'desc') ->getQuery(); return $query; } public function findAllPostsOrderedById($thread_id) { $repository = $this->getEntityManager() ->getRepository('AppBundle:Post'); $query = $repository->createQueryBuilder('p') ->where("p.thread = :id") ->setParameter('id', $thread_id) ->getQuery(); return $query; } }
mueller-jan/symfony-forum
src/AppBundle/Repository/ThreadRepository.php
PHP
mit
978
--- layout: post title: yesterday date: 2011-10-24 07:54 comments: false categories: [poems] --- i remember yesterday as if it were yesterday. and the day before that as if it were the day before yesterday. but the moment i remember any day before the day before yesterday as if it were yesterday, i forget the day that was yesterday.
thisduck/nothing
_posts/poems/2011-10-24-yesterday.markdown
Markdown
mit
346
# User info wrapper object import logging class User(object): """ Wrapper object around an entry in users.json. Behaves like a read-only dictionary if asked, but adds some useful logic to decouple the front end from the JSON structure. """ _NAME_KEYS = ["display_name", "real_name"] _DEFAULT_IMAGE_KEY = "image_512" def __init__(self, raw_data): self._raw = raw_data def __getitem__(self, key): return self._raw[key] @property def display_name(self): """ Find the most appropriate display name for a user: look for a "display_name", then a "real_name", and finally fall back to the always-present "name". """ for k in self._NAME_KEYS: if self._raw.get(k): return self._raw[k] if "profile" in self._raw and self._raw["profile"].get(k): return self._raw["profile"][k] return self._raw["name"] @property def email(self): """ Shortcut property for finding the e-mail address or bot URL. """ if "profile" in self._raw: email = self._raw["profile"].get("email") elif "bot_url" in self._raw: email = self._raw["bot_url"] else: email = None if not email: logging.debug("No email found for %s", self._raw.get("name")) return email def image_url(self, pixel_size=None): """ Get the URL for the user icon in the desired pixel size, if it exists. If no size is supplied, give the URL for the full-size image. """ if "profile" not in self._raw: return profile = self._raw["profile"] if (pixel_size): img_key = "image_%s" % pixel_size if img_key in profile: return profile[img_key] return profile[self._DEFAULT_IMAGE_KEY] def deleted_user(id): """ Create a User object for a deleted user. """ deleted_user = { "id": id, "name": "deleted-" + id, "deleted": True, "is_bot": False, "is_app_user": False, } return User(deleted_user)
hfaran/slack-export-viewer
slackviewer/user.py
Python
mit
2,188
<?php declare(strict_types = 1); /** * /src/DTO/RestDtoInterface.php * * @author TLe, Tarmo Leppänen <[email protected]> */ namespace App\DTO; use App\Entity\Interfaces\EntityInterface; use Throwable; /** * Interface RestDtoInterface * * @package App\DTO * @author TLe, Tarmo Leppänen <[email protected]> */ interface RestDtoInterface { public function setId(string $id): self; /** * Getter method for visited setters. This is needed for dto patching. * * @return array<int, string> */ public function getVisited(): array; /** * Setter for visited data. This is needed for dto patching. */ public function setVisited(string $property): self; /** * Method to load DTO data from specified entity. */ public function load(EntityInterface $entity): self; /** * Method to update specified entity with DTO data. */ public function update(EntityInterface $entity): EntityInterface; /** * Method to patch current dto with another one. * * @throws Throwable */ public function patch(self $dto): self; }
tarlepp/symfony-flex-backend
src/DTO/RestDtoInterface.php
PHP
mit
1,141
package net.lightstone.net.codec; import java.io.IOException; import net.lightstone.msg.Message; import org.jboss.netty.buffer.ChannelBuffer; public abstract class MessageCodec<T extends Message> { private final Class<T> clazz; private final int opcode; public MessageCodec(Class<T> clazz, int opcode) { this.clazz = clazz; this.opcode = opcode; } public final Class<T> getType() { return clazz; } public final int getOpcode() { return opcode; } public abstract ChannelBuffer encode(T message) throws IOException; public abstract T decode(ChannelBuffer buffer) throws IOException; }
grahamedgecombe/lightstone
src/net/lightstone/net/codec/MessageCodec.java
Java
mit
613
/* IE 8 FIXES MAIN BLUE: #99CCFF LINK BLUE: #0066FF NEW BLUE: #3366FF ORANGE: #FFCC66 GREEN: #66CC00 TBL GREEN: #A7C942 RED: #CC0000 BORDER: #CCC GREY: #999 DARK GRY: #555 */ #rent_go{vertical-align:-3px;} div.land-do h2{ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=45, color:'#F0F0F0'); } h3.origin-start{ bottom:-20px; right:-160px; filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); } .results{width:1100px; margin:0px auto;} .result_loan{float:left;}
charlle/charlle
assets/styles/Fix/ie.css
CSS
mit
531
/* == malihu jquery custom scrollbar plugin == Plugin URI: http://manos.malihu.gr/jquery-custom-content-scroller */ /* CONTENTS: 1. BASIC STYLE - Plugin's basic/essential CSS properties (normally, should not be edited). 2. VERTICAL SCROLLBAR - Positioning and dimensions of vertical scrollbar. 3. HORIZONTAL SCROLLBAR - Positioning and dimensions of horizontal scrollbar. 4. VERTICAL AND HORIZONTAL SCROLLBARS - Positioning and dimensions of 2-axis scrollbars. 5. TRANSITIONS - CSS3 transitions for hover events, auto-expanded and auto-hidden scrollbars. 6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS 6.1 THEMES - Scrollbar colors, opacity, dimensions, backgrounds etc. via ready-to-use themes. */ /* ------------------------------------------------------------------------------------------------------------------------ 1. BASIC STYLE ------------------------------------------------------------------------------------------------------------------------ */ .mCustomScrollbar{ -ms-touch-action: none; touch-action: none; /* MSPointer events - direct all pointer events to js */ } .mCustomScrollbar.mCS_no_scrollbar, .mCustomScrollbar.mCS_touch_action{ -ms-touch-action: auto; touch-action: auto; } .mCustomScrollBox{ /* contains plugin's markup */ position: relative; overflow: hidden; height: 100%; max-width: 100%; outline: none; direction: ltr; } .mCSB_container{ /* contains the original content */ overflow: hidden; width: auto; height: auto; } /* ------------------------------------------------------------------------------------------------------------------------ 2. VERTICAL SCROLLBAR y-axis ------------------------------------------------------------------------------------------------------------------------ */ .mCSB_inside > .mCSB_container{ margin-right: 30px; } .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{ margin-right: 0; } /* non-visible scrollbar */ .mCS-dir-rtl > .mCSB_inside > .mCSB_container{ /* RTL direction/left-side scrollbar */ margin-right: 0; margin-left: 30px; } .mCS-dir-rtl > .mCSB_inside > .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{ margin-left: 0; } /* RTL direction/left-side scrollbar */ .mCSB_scrollTools{ /* contains scrollbar markup (draggable element, dragger rail, buttons etc.) */ position: absolute; width: 16px; height: auto; left: auto; top: 0; right: 0; bottom: 0; } .mCSB_outside + .mCSB_scrollTools{ right: -26px; } /* scrollbar position: outside */ .mCS-dir-rtl > .mCSB_inside > .mCSB_scrollTools, .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools{ /* RTL direction/left-side scrollbar */ right: auto; left: 0; } .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools{ left: -26px; } /* RTL direction/left-side scrollbar (scrollbar position: outside) */ .mCSB_scrollTools .mCSB_draggerContainer{ /* contains the draggable element and dragger rail markup */ position: absolute; top: 0; left: 0; bottom: 0; right: 0; height: auto; } .mCSB_scrollTools a + .mCSB_draggerContainer{ margin: 20px 0; } .mCSB_scrollTools .mCSB_draggerRail{ width: 2px; height: 100%; margin: 0 auto; -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; } .mCSB_scrollTools .mCSB_dragger{ /* the draggable element */ cursor: pointer; width: 100%; height: 30px; /* minimum dragger height */ z-index: 1; } .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ /* the dragger element */ position: relative; width: 4px; height: 100%; margin: 0 auto; -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; text-align: center; } .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ width: 12px; /* auto-expanded scrollbar */ } .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ width: 8px; /* auto-expanded scrollbar */ } .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown{ display: block; position: absolute; height: 20px; width: 100%; overflow: hidden; margin: 0 auto; cursor: pointer; } .mCSB_scrollTools .mCSB_buttonDown{ bottom: 0; } /* ------------------------------------------------------------------------------------------------------------------------ 3. HORIZONTAL SCROLLBAR x-axis ------------------------------------------------------------------------------------------------------------------------ */ .mCSB_horizontal.mCSB_inside > .mCSB_container{ margin-right: 0; margin-bottom: 30px; } .mCSB_horizontal.mCSB_outside > .mCSB_container{ min-height: 100%; } .mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden{ margin-bottom: 0; } /* non-visible scrollbar */ .mCSB_scrollTools.mCSB_scrollTools_horizontal{ width: auto; height: 16px; top: auto; right: 0; bottom: 0; left: 0; } .mCustomScrollBox + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal{ bottom: -26px; } /* scrollbar position: outside */ .mCSB_scrollTools.mCSB_scrollTools_horizontal a + .mCSB_draggerContainer{ margin: 0 20px; } .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; height: 2px; margin: 7px 0; } .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 30px; /* minimum dragger width */ height: 100%; left: 0; } .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ width: 100%; height: 4px; margin: 6px auto; } .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ height: 12px; /* auto-expanded scrollbar */ margin: 2px auto; } .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ height: 8px; /* auto-expanded scrollbar */ margin: 4px 0; } .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft, .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight{ display: block; position: absolute; width: 20px; height: 100%; overflow: hidden; margin: 0 auto; cursor: pointer; } .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft{ left: 0; } .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight{ right: 0; } /* ------------------------------------------------------------------------------------------------------------------------ 4. VERTICAL AND HORIZONTAL SCROLLBARS yx-axis ------------------------------------------------------------------------------------------------------------------------ */ .mCSB_container_wrapper{ position: absolute; height: auto; width: auto; overflow: hidden; top: 0; left: 0; right: 0; bottom: 0; margin-right: 30px; margin-bottom: 30px; } .mCSB_container_wrapper > .mCSB_container{ padding-right: 30px; padding-bottom: 30px; } .mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_vertical{ bottom: 20px; } .mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_horizontal{ right: 20px; } /* non-visible horizontal scrollbar */ .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden + .mCSB_scrollTools.mCSB_scrollTools_vertical{ bottom: 0; } /* non-visible vertical scrollbar/RTL direction/left-side scrollbar */ .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal{ right: 0; } /* RTL direction/left-side scrollbar */ .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal{ left: 20px; } /* non-visible scrollbar/RTL direction/left-side scrollbar */ .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal{ left: 0; } .mCS-dir-rtl > .mCSB_inside > .mCSB_container_wrapper{ /* RTL direction/left-side scrollbar */ margin-right: 0; margin-left: 30px; } .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden > .mCSB_container{ padding-right: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden > .mCSB_container{ padding-bottom: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden{ margin-right: 0; /* non-visible scrollbar */ margin-left: 0; } /* non-visible horizontal scrollbar */ .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden{ margin-bottom: 0; } /* ------------------------------------------------------------------------------------------------------------------------ 5. TRANSITIONS ------------------------------------------------------------------------------------------------------------------------ */ .mCSB_scrollTools, .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight{ -webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; -moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; -o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out; transition: opacity .2s ease-in-out, background-color .2s ease-in-out; } .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, /* auto-expanded scrollbar */ .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail{ -webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; -moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; -o-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out; } /* ------------------------------------------------------------------------------------------------------------------------ 6. SCROLLBAR COLORS, OPACITY AND BACKGROUNDS ------------------------------------------------------------------------------------------------------------------------ */ /* ---------------------------------------- 6.1 THEMES ---------------------------------------- */ /* default theme ("light") */ .mCSB_scrollTools{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; } .mCS-autoHide > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide > .mCustomScrollBox ~ .mCSB_scrollTools{ opacity: 0; filter: "alpha(opacity=0)"; -ms-filter: "alpha(opacity=0)"; } .mCustomScrollbar > .mCustomScrollBox > .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollbar > .mCustomScrollBox ~ .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollBox:hover > .mCSB_scrollTools, .mCustomScrollBox:hover ~ .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox ~ .mCSB_scrollTools{ opacity: 1; filter: "alpha(opacity=100)"; -ms-filter: "alpha(opacity=100)"; } .mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(229, 229, 229, 0.5); filter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; } .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(230, 230, 230, 1); filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; } .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(178, 178, 178, 1); filter: "alpha(opacity=85)"; -ms-filter: "alpha(opacity=85)"; } .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(178, 178, 178, 1); filter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; } .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight{ background-image: url(mCSB_buttons.png); /* css sprites */ background-repeat: no-repeat; opacity: 0.4; filter: "alpha(opacity=40)"; -ms-filter: "alpha(opacity=40)"; } .mCSB_scrollTools .mCSB_buttonUp{ background-position: 0 0; /* sprites locations light: 0 0, -16px 0, -32px 0, -48px 0, 0 -72px, -16px -72px, -32px -72px dark: -80px 0, -96px 0, -112px 0, -128px 0, -80px -72px, -96px -72px, -112px -72px */ } .mCSB_scrollTools .mCSB_buttonDown{ background-position: 0 -20px; /* sprites locations light: 0 -20px, -16px -20px, -32px -20px, -48px -20px, 0 -92px, -16px -92px, -32px -92px dark: -80px -20px, -96px -20px, -112px -20px, -128px -20px, -80px -92px, -96px -92px, -112 -92px */ } .mCSB_scrollTools .mCSB_buttonLeft{ background-position: 0 -40px; /* sprites locations light: 0 -40px, -20px -40px, -40px -40px, -60px -40px, 0 -112px, -20px -112px, -40px -112px dark: -80px -40px, -100px -40px, -120px -40px, -140px -40px, -80px -112px, -100px -112px, -120px -112px */ } .mCSB_scrollTools .mCSB_buttonRight{ background-position: 0 -56px; /* sprites locations light: 0 -56px, -20px -56px, -40px -56px, -60px -56px, 0 -128px, -20px -128px, -40px -128px dark: -80px -56px, -100px -56px, -120px -56px, -140px -56px, -80px -128px, -100px -128px, -120px -128px */ } .mCSB_scrollTools .mCSB_buttonUp:hover, .mCSB_scrollTools .mCSB_buttonDown:hover, .mCSB_scrollTools .mCSB_buttonLeft:hover, .mCSB_scrollTools .mCSB_buttonRight:hover{ opacity: 0.75; filter: "alpha(opacity=75)"; -ms-filter: "alpha(opacity=75)"; } .mCSB_scrollTools .mCSB_buttonUp:active, .mCSB_scrollTools .mCSB_buttonDown:active, .mCSB_scrollTools .mCSB_buttonLeft:active, .mCSB_scrollTools .mCSB_buttonRight:active{ opacity: 0.9; filter: "alpha(opacity=90)"; -ms-filter: "alpha(opacity=90)"; } /* theme: "dark" */ .mCS-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(229, 229, 229, 0.5); } .mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } .mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: rgba(0,0,0,0.85); } .mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: rgba(0,0,0,0.9); } .mCS-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -80px 0; } .mCS-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -80px -20px; } .mCS-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -80px -40px; } .mCS-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -80px -56px; } /* ---------------------------------------- */ /* theme: "light-2", "dark-2" */ .mCS-light-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail{ width: 4px; background-color: #fff; background-color: rgba(229, 229, 229, 0.5); -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 4px; background-color: #fff; background-color: rgba(255,255,255,0.75); -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ width: 100%; height: 4px; margin: 6px auto; } .mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); } .mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); } .mCS-light-2.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px 0; } .mCS-light-2.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -20px; } .mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -40px; } .mCS-light-2.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -56px; } /* theme: "dark-2" */ .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; } .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px 0; } .mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -20px; } .mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -40px; } .mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -56px; } /* ---------------------------------------- */ /* theme: "light-thick", "dark-thick" */ .mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail{ width: 4px; background-color: #fff; background-color: rgba(255,255,255,0.1); -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 6px; background-color: #fff; background-color: rgba(255,255,255,0.75); -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; height: 4px; margin: 6px 0; } .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ width: 100%; height: 6px; margin: 5px auto; } .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); } .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); } .mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp{ background-position: -16px 0; } .mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown{ background-position: -16px -20px; } .mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -20px -40px; } .mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight{ background-position: -20px -56px; } /* theme: "dark-thick" */ .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp{ background-position: -96px 0; } .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown{ background-position: -96px -20px; } .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -100px -40px; } .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight{ background-position: -100px -56px; } /* ---------------------------------------- */ /* theme: "light-thin", "dark-thin" */ .mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.1); } .mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 2px; } .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; } .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ width: 100%; height: 2px; margin: 7px auto; } /* theme "dark-thin" */ .mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); } .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp{ background-position: -80px 0; } .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown{ background-position: -80px -20px; } .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -80px -40px; } .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight{ background-position: -80px -56px; } /* ---------------------------------------- */ /* theme "rounded", "rounded-dark", "rounded-dots", "rounded-dots-dark" */ .mCS-rounded.mCSB_scrollTools .mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.15); } .mCS-rounded.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger{ height: 14px; } .mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 14px; margin: 0 1px; } .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 14px; } .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ height: 14px; margin: 1px 0; } .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ width: 16px; /* auto-expanded scrollbar */ height: 16px; margin: -1px 0; } .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ width: 4px; /* auto-expanded scrollbar */ } .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar{ height: 16px; /* auto-expanded scrollbar */ width: 16px; margin: 0 -1px; } .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ height: 4px; /* auto-expanded scrollbar */ margin: 6px 0; } .mCS-rounded.mCSB_scrollTools .mCSB_buttonUp{ background-position: 0 -72px; } .mCS-rounded.mCSB_scrollTools .mCSB_buttonDown{ background-position: 0 -92px; } .mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft{ background-position: 0 -112px; } .mCS-rounded.mCSB_scrollTools .mCSB_buttonRight{ background-position: 0 -128px; } /* theme "rounded-dark", "rounded-dots-dark" */ .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } .mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.15); } .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -80px -72px; } .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -80px -92px; } .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -80px -112px; } .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -80px -128px; } /* theme "rounded-dots", "rounded-dots-dark" */ .mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail{ width: 4px; } .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ background-color: transparent; background-position: center; } .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg=="); background-repeat: repeat-y; opacity: 0.3; filter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; } .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ height: 4px; margin: 6px 0; background-repeat: repeat-x; } .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp{ background-position: -16px -72px; } .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown{ background-position: -16px -92px; } .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -20px -112px; } .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight{ background-position: -20px -128px; } /* theme "rounded-dots-dark" */ .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII="); } .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -96px -72px; } .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -96px -92px; } .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -100px -112px; } .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -100px -128px; } /* ---------------------------------------- */ /* theme "3d", "3d-dark", "3d-thick", "3d-thick-dark" */ .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-repeat: repeat-y; background-image: -moz-linear-gradient(left, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%); background-image: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0))); background-image: -webkit-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); background-image: -o-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); background-image: -ms-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); background-image: linear-gradient(to right, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); } .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ background-repeat: repeat-x; background-image: -moz-linear-gradient(top, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.5)), color-stop(100%,rgba(255,255,255,0))); background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); background-image: -o-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); background-image: -ms-linear-gradient(top, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); background-image: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 100%); } /* theme "3d", "3d-dark" */ .mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger{ height: 70px; } .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 70px; } .mCS-3d.mCSB_scrollTools, .mCS-3d-dark.mCSB_scrollTools{ opacity: 1; filter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; } .mCS-3d.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ -webkit-border-radius: 16px; -moz-border-radius: 16px; border-radius: 16px; } .mCS-3d.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail{ width: 8px; background-color: #000; background-color: rgba(0,0,0,0.2); box-shadow: inset 1px 0 1px rgba(0,0,0,0.5), inset -1px 0 1px rgba(255,255,255,0.2); } .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #555; } .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 8px; } .mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; height: 8px; margin: 4px 0; box-shadow: inset 0 1px 1px rgba(0,0,0,0.5), inset 0 -1px 1px rgba(255,255,255,0.2); } .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ width: 100%; height: 8px; margin: 4px auto; } .mCS-3d.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } .mCS-3d.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } .mCS-3d.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } .mCS-3d.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } /* theme "3d-dark" */ .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); box-shadow: inset 1px 0 1px rgba(0,0,0,0.1); } .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1); } .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } /* ---------------------------------------- */ /* theme: "3d-thick", "3d-thick-dark" */ .mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools{ opacity: 1; filter: "alpha(opacity=30)"; -ms-filter: "alpha(opacity=30)"; } .mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer{ -webkit-border-radius: 7px; -moz-border-radius: 7px; border-radius: 7px; } .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .mCSB_inside + .mCS-3d-thick.mCSB_scrollTools_vertical, .mCSB_inside + .mCS-3d-thick-dark.mCSB_scrollTools_vertical{ right: 1px; } .mCS-3d-thick.mCSB_scrollTools_vertical, .mCS-3d-thick-dark.mCSB_scrollTools_vertical{ box-shadow: inset 1px 0 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5); } .mCS-3d-thick.mCSB_scrollTools_horizontal, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal{ bottom: 1px; box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.5); } .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 1px 0 0 rgba(255,255,255,0.4); width: 12px; margin: 2px; position: absolute; height: auto; top: 0; bottom: 0; left: 0; right: 0; } .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); } .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #555; } .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ height: 12px; width: auto; } .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer{ background-color: #000; background-color: rgba(0,0,0,0.05); box-shadow: inset 1px 1px 16px rgba(0,0,0,0.1); } .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; } .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } /* theme: "3d-thick-dark" */ .mCS-3d-thick-dark.mCSB_scrollTools{ box-shadow: inset 0 0 14px rgba(0,0,0,0.2); } .mCS-3d-thick-dark.mCSB_scrollTools_horizontal{ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1), inset 0 0 14px rgba(0,0,0,0.2); } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 1px 0 0 rgba(255,255,255,0.4), inset -1px 0 0 rgba(0,0,0,0.2); } .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -1px 0 rgba(0,0,0,0.2); } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #777; } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer{ background-color: #fff; background-color: rgba(0,0,0,0.05); box-shadow: inset 1px 1px 16px rgba(0,0,0,0.1); } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } /* ---------------------------------------- */ /* theme: "minimal", "minimal-dark" */ .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical{ right: 0; margin: 12px 0; } .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal{ bottom: 0; margin: 0 12px; } /* RTL direction/left-side scrollbar */ .mCS-dir-rtl > .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical, .mCS-dir-rtl > .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical{ left: 0; right: auto; } .mCS-minimal.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; } .mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger{ height: 50px; } .mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger{ width: 50px; } .mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.2); filter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; } .mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.5); filter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; } /* theme: "minimal-dark" */ .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.2); filter: "alpha(opacity=20)"; -ms-filter: "alpha(opacity=20)"; } .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.5); filter: "alpha(opacity=50)"; -ms-filter: "alpha(opacity=50)"; } /* ---------------------------------------- */ /* theme "light-3", "dark-3" */ .mCS-light-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail{ width: 6px; background-color: #000; background-color: rgba(0,0,0,0.2); } .mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 6px; } .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; height: 6px; margin: 5px 0; } .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ width: 12px; } .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail{ height: 12px; margin: 2px 0; } .mCS-light-3.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } .mCS-light-3.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } .mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } .mCS-light-3.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } /* theme "dark-3" */ .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); } .mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } .mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } .mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } .mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } /* ---------------------------------------- */ /* theme "inset", "inset-dark", "inset-2", "inset-2-dark", "inset-3", "inset-3-dark" */ .mCS-inset.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{ width: 12px; background-color: #000; background-color: rgba(0,0,0,0.2); } .mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ width: 6px; margin: 3px 5px; position: absolute; height: auto; top: 0; bottom: 0; left: 0; right: 0; } .mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar{ height: 6px; margin: 5px 3px; position: absolute; width: auto; top: 0; bottom: 0; left: 0; right: 0; } .mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail{ width: 100%; height: 12px; margin: 2px 0; } .mCS-inset.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp{ background-position: -32px -72px; } .mCS-inset.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown{ background-position: -32px -92px; } .mCS-inset.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -40px -112px; } .mCS-inset.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight{ background-position: -40px -128px; } /* theme "inset-dark", "inset-2-dark", "inset-3-dark" */ .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.1); } .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp{ background-position: -112px -72px; } .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown{ background-position: -112px -92px; } .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft{ background-position: -120px -112px; } .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight{ background-position: -120px -128px; } /* theme "inset-2", "inset-2-dark" */ .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: transparent; border-width: 1px; border-style: solid; border-color: #fff; border-color: rgba(255,255,255,0.2); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail{ border-color: #000; border-color: rgba(0,0,0,0.2); } /* theme "inset-3", "inset-3-dark" */ .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail{ background-color: #fff; background-color: rgba(255,255,255,0.6); } .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail{ background-color: #000; background-color: rgba(0,0,0,0.6); } .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.75); } .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.85); } .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #000; background-color: rgba(0,0,0,0.9); } .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.75); } .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.85); } .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar{ background-color: #fff; background-color: rgba(255,255,255,0.9); } /* ---------------------------------------- */
digicorp/propeller
components/custom-scrollbar/css/jquery.mCustomScrollbar.css
CSS
mit
53,712
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef vm_PropDesc_h #define vm_PropDesc_h #include "jsapi.h" #include "NamespaceImports.h" namespace js { static inline JSPropertyOp CastAsPropertyOp(JSObject *object) { return JS_DATA_TO_FUNC_PTR(JSPropertyOp, object); } static inline JSStrictPropertyOp CastAsStrictPropertyOp(JSObject *object) { return JS_DATA_TO_FUNC_PTR(JSStrictPropertyOp, object); } /* * A representation of ECMA-262 ed. 5's internal Property Descriptor data * structure. */ struct PropDesc { private: Value value_, get_, set_; /* Property descriptor boolean fields. */ uint8_t attrs; /* Bits indicating which values are set. */ bool hasGet_ : 1; bool hasSet_ : 1; bool hasValue_ : 1; bool hasWritable_ : 1; bool hasEnumerable_ : 1; bool hasConfigurable_ : 1; /* Or maybe this represents a property's absence, and it's undefined. */ bool isUndefined_ : 1; explicit PropDesc(const Value &v) : value_(v), get_(UndefinedValue()), set_(UndefinedValue()), attrs(0), hasGet_(false), hasSet_(false), hasValue_(true), hasWritable_(false), hasEnumerable_(false), hasConfigurable_(false), isUndefined_(false) { } public: friend struct GCMethods<PropDesc>; void trace(JSTracer *trc); static ThingRootKind rootKind() { return THING_ROOT_PROP_DESC; } enum Enumerability { Enumerable = true, NonEnumerable = false }; enum Configurability { Configurable = true, NonConfigurable = false }; enum Writability { Writable = true, NonWritable = false }; PropDesc(); static PropDesc undefined() { return PropDesc(); } static PropDesc valueOnly(const Value &v) { return PropDesc(v); } PropDesc(const Value &v, Writability writable, Enumerability enumerable, Configurability configurable) : value_(v), get_(UndefinedValue()), set_(UndefinedValue()), attrs((writable ? 0 : JSPROP_READONLY) | (enumerable ? JSPROP_ENUMERATE : 0) | (configurable ? 0 : JSPROP_PERMANENT)), hasGet_(false), hasSet_(false), hasValue_(true), hasWritable_(true), hasEnumerable_(true), hasConfigurable_(true), isUndefined_(false) {} inline PropDesc(const Value &getter, const Value &setter, Enumerability enumerable, Configurability configurable); /* * 8.10.5 ToPropertyDescriptor(Obj) * * If checkAccessors is false, skip steps 7.b and 8.b, which throw a * TypeError if .get or .set is neither a callable object nor undefined. * * (DebuggerObject_defineProperty uses this: the .get and .set properties * are expected to be Debugger.Object wrappers of functions, which are not * themselves callable.) */ bool initialize(JSContext *cx, const Value &v, bool checkAccessors = true); /* * If IsGenericDescriptor(desc) or IsDataDescriptor(desc) is true, then if * the value of an attribute field of desc, considered as a data * descriptor, is absent, set it to its default value. Else if the value of * an attribute field of desc, considered as an attribute descriptor, is * absent, set it to its default value. */ void complete(); /* * 8.10.4 FromPropertyDescriptor(Desc) * * initFromPropertyDescriptor sets pd to undefined and populates all the * other fields of this PropDesc from desc. * * makeObject populates pd based on the other fields of *this, creating a * new property descriptor JSObject and defining properties on it. */ void initFromPropertyDescriptor(Handle<JSPropertyDescriptor> desc); void populatePropertyDescriptor(HandleObject obj, MutableHandle<JSPropertyDescriptor> desc) const; bool makeObject(JSContext *cx, MutableHandleObject objp); /* Reset the descriptor entirely. */ void setUndefined(); bool isUndefined() const { return isUndefined_; } bool hasGet() const { MOZ_ASSERT(!isUndefined()); return hasGet_; } bool hasSet() const { MOZ_ASSERT(!isUndefined()); return hasSet_; } bool hasValue() const { MOZ_ASSERT(!isUndefined()); return hasValue_; } bool hasWritable() const { MOZ_ASSERT(!isUndefined()); return hasWritable_; } bool hasEnumerable() const { MOZ_ASSERT(!isUndefined()); return hasEnumerable_; } bool hasConfigurable() const { MOZ_ASSERT(!isUndefined()); return hasConfigurable_; } uint8_t attributes() const { MOZ_ASSERT(!isUndefined()); return attrs; } /* 8.10.1 IsAccessorDescriptor(desc) */ bool isAccessorDescriptor() const { return !isUndefined() && (hasGet() || hasSet()); } /* 8.10.2 IsDataDescriptor(desc) */ bool isDataDescriptor() const { return !isUndefined() && (hasValue() || hasWritable()); } /* 8.10.3 IsGenericDescriptor(desc) */ bool isGenericDescriptor() const { return !isUndefined() && !isAccessorDescriptor() && !isDataDescriptor(); } bool configurable() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasConfigurable()); return (attrs & JSPROP_PERMANENT) == 0; } bool enumerable() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasEnumerable()); return (attrs & JSPROP_ENUMERATE) != 0; } bool writable() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasWritable()); return (attrs & JSPROP_READONLY) == 0; } HandleValue value() const { MOZ_ASSERT(hasValue()); return HandleValue::fromMarkedLocation(&value_); } void setValue(const Value &value) { MOZ_ASSERT(!isUndefined()); value_ = value; hasValue_ = true; } JSObject * getterObject() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasGet()); return get_.isUndefined() ? nullptr : &get_.toObject(); } JSObject * setterObject() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasSet()); return set_.isUndefined() ? nullptr : &set_.toObject(); } HandleValue getterValue() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasGet()); return HandleValue::fromMarkedLocation(&get_); } HandleValue setterValue() const { MOZ_ASSERT(!isUndefined()); MOZ_ASSERT(hasSet()); return HandleValue::fromMarkedLocation(&set_); } void setGetter(const Value &getter) { MOZ_ASSERT(!isUndefined()); get_ = getter; hasGet_ = true; } void setSetter(const Value &setter) { MOZ_ASSERT(!isUndefined()); set_ = setter; hasSet_ = true; } /* * Unfortunately the values produced by these methods are used such that * we can't assert anything here. :-( */ JSPropertyOp getter() const { return CastAsPropertyOp(get_.isUndefined() ? nullptr : &get_.toObject()); } JSStrictPropertyOp setter() const { return CastAsStrictPropertyOp(set_.isUndefined() ? nullptr : &set_.toObject()); } /* * Throw a TypeError if a getter/setter is present and is neither callable * nor undefined. These methods do exactly the type checks that are skipped * by passing false as the checkAccessors parameter of initialize. */ bool checkGetter(JSContext *cx); bool checkSetter(JSContext *cx); }; } /* namespace js */ namespace JS { template <typename Outer> class PropDescOperations { const js::PropDesc * desc() const { return static_cast<const Outer*>(this)->extract(); } public: bool isUndefined() const { return desc()->isUndefined(); } bool hasGet() const { return desc()->hasGet(); } bool hasSet() const { return desc()->hasSet(); } bool hasValue() const { return desc()->hasValue(); } bool hasWritable() const { return desc()->hasWritable(); } bool hasEnumerable() const { return desc()->hasEnumerable(); } bool hasConfigurable() const { return desc()->hasConfigurable(); } uint8_t attributes() const { return desc()->attributes(); } bool isAccessorDescriptor() const { return desc()->isAccessorDescriptor(); } bool isDataDescriptor() const { return desc()->isDataDescriptor(); } bool isGenericDescriptor() const { return desc()->isGenericDescriptor(); } bool configurable() const { return desc()->configurable(); } bool enumerable() const { return desc()->enumerable(); } bool writable() const { return desc()->writable(); } HandleValue value() const { return desc()->value(); } JSObject *getterObject() const { return desc()->getterObject(); } JSObject *setterObject() const { return desc()->setterObject(); } HandleValue getterValue() const { return desc()->getterValue(); } HandleValue setterValue() const { return desc()->setterValue(); } JSPropertyOp getter() const { return desc()->getter(); } JSStrictPropertyOp setter() const { return desc()->setter(); } void populatePropertyDescriptor(HandleObject obj, MutableHandle<JSPropertyDescriptor> descriptor) const { desc()->populatePropertyDescriptor(obj, descriptor); } }; template <typename Outer> class MutablePropDescOperations : public PropDescOperations<Outer> { js::PropDesc * desc() { return static_cast<Outer*>(this)->extractMutable(); } public: bool initialize(JSContext *cx, const Value &v, bool checkAccessors = true) { return desc()->initialize(cx, v, checkAccessors); } void complete() { desc()->complete(); } bool checkGetter(JSContext *cx) { return desc()->checkGetter(cx); } bool checkSetter(JSContext *cx) { return desc()->checkSetter(cx); } void initFromPropertyDescriptor(Handle<JSPropertyDescriptor> descriptor) { desc()->initFromPropertyDescriptor(descriptor); } bool makeObject(JSContext *cx, MutableHandleObject objp) { return desc()->makeObject(cx, objp); } void setValue(const Value &value) { desc()->setValue(value); } void setGetter(const Value &getter) { desc()->setGetter(getter); } void setSetter(const Value &setter) { desc()->setSetter(setter); } void setUndefined() { desc()->setUndefined(); } }; } /* namespace JS */ namespace js { template <> struct GCMethods<PropDesc> { static PropDesc initial() { return PropDesc(); } static bool poisoned(const PropDesc &desc) { return JS::IsPoisonedValue(desc.value_) || JS::IsPoisonedValue(desc.get_) || JS::IsPoisonedValue(desc.set_); } }; template <> class RootedBase<PropDesc> : public JS::MutablePropDescOperations<JS::Rooted<PropDesc> > { friend class JS::PropDescOperations<JS::Rooted<PropDesc> >; friend class JS::MutablePropDescOperations<JS::Rooted<PropDesc> >; const PropDesc *extract() const { return static_cast<const JS::Rooted<PropDesc>*>(this)->address(); } PropDesc *extractMutable() { return static_cast<JS::Rooted<PropDesc>*>(this)->address(); } }; template <> class HandleBase<PropDesc> : public JS::PropDescOperations<JS::Handle<PropDesc> > { friend class JS::PropDescOperations<JS::Handle<PropDesc> >; const PropDesc *extract() const { return static_cast<const JS::Handle<PropDesc>*>(this)->address(); } }; template <> class MutableHandleBase<PropDesc> : public JS::MutablePropDescOperations<JS::MutableHandle<PropDesc> > { friend class JS::PropDescOperations<JS::MutableHandle<PropDesc> >; friend class JS::MutablePropDescOperations<JS::MutableHandle<PropDesc> >; const PropDesc *extract() const { return static_cast<const JS::MutableHandle<PropDesc>*>(this)->address(); } PropDesc *extractMutable() { return static_cast<JS::MutableHandle<PropDesc>*>(this)->address(); } }; } /* namespace js */ #endif /* vm_PropDesc_h */
agenthunt/EmbeddedJXcoreEngineIOS
EmbeddedJXcoreEngineIOS/jxcore/include/node/vm/PropDesc.h
C
mit
12,213
#define _IRR_STATIC_LIB_ #include <irrlicht.h> #include <stdio.h> #include <string> #include <sstream> #include <iostream> #include "dc-config.h" #include "manager_gui.h" #include "manager_filesystem.h" #include "manager_core.h" #include "irrlicht_event_handler.h" #include "context_application.h" using namespace irr; using namespace irr::core; using namespace scene; using namespace video; using namespace io; using namespace gui; using namespace decentralised::managers; using namespace decentralised::context; #ifdef _WINDOWS #ifndef _DEBUG #pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup") #endif #pragma comment(lib, "irrlicht.lib") #endif template <typename T> std::wstring to_wstring(T val) { std::wstringstream stream; stream << val; return stream.str(); } int main() { E_DRIVER_TYPE driverType = EDT_OPENGL; #if defined ( _IRR_WINDOWS_ ) driverType = EDT_DIRECT3D9; #endif manager_filesystem* fileManager = new manager_filesystem(); context_application context; context.config = fileManager->loadConfig(); context.skin = fileManager->loadSkin(context.config[L"Skin"]); context.language = fileManager->loadLanguage(context.config[L"Language"]); context.device = createDevice(driverType, irr::core::dimension2d<u32>(800, 600)); if (context.device == 0) return 1; context.device->setResizable(true); std::wstring title = std::wstring(APP_TITLE) .append(L" ") .append(to_wstring(Decentralised_VERSION_MAJOR)) .append(L".") .append(to_wstring(Decentralised_VERSION_MINOR)) .append(L"\n").c_str(); context.device->setWindowCaption(title.c_str()); context.gui_manager = new manager_gui(context.device, context.language, context.skin, context.config); context.gui_manager->Initialize(); context.world_manager = new manager_world(context.device); IVideoDriver* driver = context.device->getVideoDriver(); context.gui_manager->AddConsoleLine(SColor(255,255,255,255), APP_TITLE); irrlicht_event_handler receiver(context); context.network_manager = new manager_core(); context.network_manager->setEventReceiver(&receiver); context.device->setEventReceiver(&receiver); context.network_manager->start(); ISceneManager *scene = context.device->getSceneManager(); while (context.device->run() && driver) if (!context.device->isWindowMinimized() || context.device->isWindowActive()) { driver->beginScene(true, true, SColor(0, 0, 0, 0)); scene->drawAll(); context.gui_manager->DrawAll(); driver->endScene(); } context.network_manager->stop(); delete context.world_manager; delete context.gui_manager; delete context.network_manager; delete fileManager; return 0; }
ballisticwhisper/decentralised
src/decentralised/main.cpp
C++
mit
2,662
test('has a constructor for initialization', () => { // Create an Animal class // Add a constructor that takes one param, the name. // Set this.name to the name passed in const animal = new Animal() const dog = new Animal('Dog') expect(animal.name).toBeUndefined() expect(dog.name).toBe('Dog') }) test('constructor can have default param values', () => { // Create an Animal class with a constructor // Make your class default (using default params) the name to 'Honey Badger' const animal = new Animal() const dog = new Animal('Dog') expect(animal.name).toBe('Honey Badger') expect(dog.name).toBe('Dog') }) test('can have instance methods', () => { // Create an Animal class, pass in the name to the constructor, and add a sayName function to the class definition const animal = new Animal() expect(animal.sayName).toBeDefined() expect(Animal.sayName).toBeUndefined() expect(animal.sayName()).toBe('My name is: Honey Badger') }) test('can have static methods', () => { // Create an Animal class, pass in the name to the constructor, // and add a create method that takes a name and returns an instance const animal = new Animal() expect(animal.create).toBeUndefined() expect(Animal.create).toBeDefined() }) test('can extend another class', () => { // Create an Animal class // Create a Dog class that extends Animal // Add sayName to Animal const dog = new Dog('Fido') expect(dog instanceof Dog).toBe(true) expect(dog instanceof Animal).toBe(true) }) test('can use property setters and getters', () => { // Create an Animal class (don't pass name into constructor) // Add property setter for name // Add property getter for name const animal = new Animal() animal.name = 'Dog' expect(animal.name).toBe('Dog type of animal') animal.name = 'Cat' expect(animal.name).toBe('Cat type of animal') }) //////// EXTRA CREDIT //////// // If you get this far, try adding a few more tests, then file a pull request to add them to the extra credit! // Learn more here: https://github.com/kentcdodds/es6-workshop/blob/master/CONTRIBUTING.md#development
wizzy25/es6-workshop
exercises/10_class.test.js
JavaScript
mit
2,133
using Caliburn.Micro; using FollowMe.Messages; using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace FollowMe.WebService { /// <summary> /// RemoteControl to control the Ar.Drone indirectly. /// You can start and stop the person following. /// </summary> [ServiceBehavior( ConcurrencyMode=ConcurrencyMode.Single, InstanceContextMode=InstanceContextMode.Single)] public class RemoteControl : IRemoteControl, IHandle<DangerLocationMessage>, IHandle<PersonLocationMessage> { private static readonly ILog Log = LogManager.GetLog(typeof(RemoteControl)); private readonly IEventAggregator eventAggregator; private Enums.TargetLocation personLocation = Enums.TargetLocation.Unknown; private Enums.TargetLocation dangerLocation = Enums.TargetLocation.Unknown; public RemoteControl(IEventAggregator eventAggregator) { if (eventAggregator == null) throw new ArgumentNullException("eventAggregator"); this.eventAggregator = eventAggregator; this.eventAggregator.Subscribe(this); } /// <summary> /// Start the person following /// </summary> public void Start() { Log.Info("Start - BECAUSE OF SECURITY REASONS NOT IMPLEMENTED"); } /// <summary> /// Stop the Person following /// </summary> public void Stop() { Log.Info("Stop"); eventAggregator.Publish(new StopMessage(), action => { Task.Factory.StartNew(action); }); } public Enums.TargetLocation GetPersonLocation() { Log.Info("GetPersonLocation {0}", personLocation); return personLocation; } public Enums.TargetLocation GetDangerLocation() { Log.Info("GetDangerLocation {0}", dangerLocation); return dangerLocation; } public PersonAndDangerLocation GetPersonAndDangerLocation() { Log.Info("GetPersonAndDangerLocation, person: {0}, danger: {1}", personLocation, dangerLocation); return new PersonAndDangerLocation { DangerLocation = dangerLocation, PersonLocation = personLocation }; } public void Handle(DangerLocationMessage message) { this.dangerLocation = message.DangerLocation; } public void Handle(PersonLocationMessage message) { this.personLocation = message.PersonLocation; } } }
HeinrichChristian/FlyingRobotToWarnVisuallyImpaired
FollowMe/WebService/RemoteControl.cs
C#
mit
2,774
package tests_dominio; import org.junit.Assert; import org.junit.Test; import dominio.Asesino; import dominio.Hechicero; import dominio.Humano; public class TestAsesino { @Test public void testRobar(){ } @Test public void testCritico(){ Humano h = new Humano("Nicolas",new Asesino(),1); Humano h2 = new Humano("Lautaro",new Hechicero(),2); Assert.assertEquals(105, h2.getSalud()); if (h.habilidadCasta1(h2)) Assert.assertTrue(93==h2.getSalud()); else Assert.assertEquals(105, h2.getSalud()); } @Test public void testProbEvasion(){ Humano h = new Humano("Nico",100, 100, 25, 20, 30, new Asesino(0.2, 0.3, 1.5), 0, 1, 1); Assert.assertTrue(0.3==h.getCasta().getProbabilidadEvitarDaño()); h.habilidadCasta2(null); Assert.assertEquals(0.45, h.getCasta().getProbabilidadEvitarDaño(), 0.01); h.habilidadCasta2(null); Assert.assertTrue(0.5==h.getCasta().getProbabilidadEvitarDaño()); } }
programacion-avanzada/jrpg-2017a-dominio
src/test/java/tests_dominio/TestAsesino.java
Java
mit
934
<!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.13"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>KlusterKite: KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <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="projectalign" style="padding-left: 0.5em;"> <div id="projectname">KlusterKite &#160;<span id="projectnumber">0.0.0</span> </div> <div id="projectbrief">A framework to create scalable and redundant services based on awesome Akka.Net project.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.13 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </script> <div id="main-nav"></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('class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception.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)"> </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="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>The exception of missing requested package in repository <a href="class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException:</div> <div class="dyncontent"> <div class="center"> <img src="class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception.png" usemap="#KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException_map" alt=""/> <map id="KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException_map" name="KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException_map"> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:aaf80d7ecc179a82aba0aabfaba92533d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception.html#aaf80d7ecc179a82aba0aabfaba92533d">PackageNotFoundException</a> (string message)</td></tr> <tr class="separator:aaf80d7ecc179a82aba0aabfaba92533d"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>The exception of missing requested package in repository </p> <p class="definition">Definition at line <a class="el" href="_package_not_found_exception_8cs_source.html#l00017">17</a> of file <a class="el" href="_package_not_found_exception_8cs_source.html">PackageNotFoundException.cs</a>.</p> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2> <a id="aaf80d7ecc179a82aba0aabfaba92533d"></a> <h2 class="memtitle"><span class="permalink"><a href="#aaf80d7ecc179a82aba0aabfaba92533d">&#9670;&nbsp;</a></span>PackageNotFoundException()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KlusterKite.NodeManager.Launcher.Utils.Exceptions.PackageNotFoundException.PackageNotFoundException </td> <td>(</td> <td class="paramtype">string&#160;</td> <td class="paramname"><em>message</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p></p> <p class="definition">Definition at line <a class="el" href="_package_not_found_exception_8cs_source.html#l00020">20</a> of file <a class="el" href="_package_not_found_exception_8cs_source.html">PackageNotFoundException.cs</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>KlusterKite.NodeManager/KlusterKite.NodeManager.Launcher.Utils/Exceptions/<a class="el" href="_package_not_found_exception_8cs_source.html">PackageNotFoundException.cs</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="namespace_kluster_kite.html">KlusterKite</a></li><li class="navelem"><a class="el" href="namespace_kluster_kite_1_1_node_manager.html">NodeManager</a></li><li class="navelem"><a class="el" href="namespace_kluster_kite_1_1_node_manager_1_1_launcher.html">Launcher</a></li><li class="navelem"><a class="el" href="namespace_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils.html">Utils</a></li><li class="navelem"><a class="el" href="namespace_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions.html">Exceptions</a></li><li class="navelem"><a class="el" href="class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception.html">PackageNotFoundException</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> </ul> </div> </body> </html>
KlusterKite/KlusterKite
Docs/Doxygen/html/class_kluster_kite_1_1_node_manager_1_1_launcher_1_1_utils_1_1_exceptions_1_1_package_not_found_exception.html
HTML
mit
7,930
#include <iostream> #include <seqan/graph_types.h> #include <seqan/graph_algorithms.h> #include <seqan/find_motif.h> using namespace seqan; int main () { typedef unsigned int TCargo; typedef Graph<Undirected<TCargo> > TGraph; typedef VertexDescriptor<TGraph>::Type TVertexDescriptor; TGraph g; TVertexDescriptor edges[]={1,0,0,4,2,1,4,1,5,1,6,2,3,2,2,3,7,3,5,4,6,5,5,6,7,6,7,7}; addEdges(g,edges,14); char letters[]={'a','b','c','d','e','f','g','h'}; String<char>map; assignVertexMap(g, map, letters); TVertexDescriptor start = 0; typedef Iterator<TGraph, DfsPreorder>::Type TDfsIterator; TDfsIterator dfsIt(g, start); std::cout << "Iterate from '" << getProperty(nameMap, start) << "' in depth-first-search ordering: "; while(!atEnd(dfsIt)) { std::cout << getProperty(nameMap, getValue(dfsIt)) << ", "; goNext(dfsIt); } std::cout << std::endl; ::std::cout << g << ::std::endl; return 0; }
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/fjt74l9mlcqisdus/2013-04-12T11-39-06.554+0200/sandbox/my_sandbox/apps/tutorial_20/tutorial_20.cpp
C++
mit
989
 var report_test_url = "reports\\BSV_GC_n_08_du_22_octobre_2013.pdf"; var report_dir = "files/"; var report_extension = ".pdf"; /***************************************************************************************************************************/ /* report_panel */ function report_panel(panel, report_panel){//, on_search_report) { report_panel.report_list = report_panel.find("#report_list"); report_panel.report_list_count = report_panel.find("#report_list_count"); report_panel.report_total_count = report_panel.find("#report_total_count"); report_panel.report_filter = report_panel.find("#report_filter"); report_panel.report_filter_years = report_panel.find("#report_filter_years"); report_panel.report_filter_areas = report_panel.find("#report_filter_areas"); report_panel.report_filter_reset = report_panel.find(".filter_reset"); report_panel.report_sorter_panel = report_panel.find("#report_sorter").hide(); report_panel.report_sorters = report_panel.report_sorter_panel.find(".report_sorter_item"); report_panel.current_sort = "date"; report_panel.report_text_filter = report_panel.find("#report_text_filter").hide(); report_panel.btn_filter_text = report_panel.find("#btn_filter_text"); report_panel.opened_report_ids = new Array(); // Init filter reset report_panel.report_filter.hide(); report_panel.find("#filter_reset_years").click(function () { jQuery("#report_filter_years div").removeClass("selected"); report_panel.selected_year = null; report_panel.filter_on_change(); }); report_panel.find("#filter_reset_areas").click(function () { jQuery("#report_filter_areas div").removeClass("selected"); report_panel.selected_area = null; report_panel.filter_on_change(); }); // Sorters report_panel.report_sorters.click(function () { report_panel.sort_changed(jQuery(this)); }); report_panel.cover_up = panel.get_waiting_cover_up(report_panel, 100); /* List management *********************************************************/ // Search succeeded report_panel.search_succeeded = function (response) { console.time("[Report list] Create DOM on new search"); report_panel.opened_report_ids = new Array(); report_panel.selected_year = null; report_panel.selected_area = null; report_panel.report_sorter_panel.show(); report_panel.report_text_filter.show(); report_panel.clear_list(); report_panel.reports = response.Reports; if (report_panel.current_sort != "date") report_panel.sort_reports_array(report_panel.current_sort); report_panel.set_counts(); report_panel.create_list(response); report_panel.create_filters(response); console.timeEnd("[Report list] Create DOM on new search"); report_panel.cover_up.doFadeOut(); } /* Report list DOM creation *********************************************************/ // Show report list report_panel.set_counts = function () { report_panel.report_list_count.text(report_panel.reports.length); report_panel.report_total_count.text(report_panel.reports.length); } // Show report list report_panel.create_list = function () { var html = ""; for (i = 0; i < report_panel.reports.length; i++) { html += report_panel.create_report_item(report_panel.reports[i],i); } report_panel.report_list.html(html); jQuery("#report_list a").click(function () { var report_item = jQuery(this).parent().parent(); report_panel.opened_report_ids.push(report_item.attr("id_report")); report_item.addClass("opened"); }); } // Create report item list report_panel.create_report_item = function (data, index) { var opened = jQuery.inArray("" + data.Id, report_panel.opened_report_ids) != -1; var report_item = "<div class='report_item" + ( (index % 2 == 1) ? " alt" : "") + ((opened) ? " opened" : "") + "' year='" + data.Year + "' id_area='" + data.Id_Area + "' id_report='" + data.Id + "' >" + "<div class='report_area'>" + "<div class='cube'></div>" + "<div class='report_area_name'>" + data.AreaName + "</div>" + "<div class='report_date'>" + data.DateString + "</div>" + "</div>" + "<div class='report_name'>" + "<a href='" + report_dir + data.Name + report_extension + "' target='_blank' title='" + data.Name + "'>" + data.Name + "</a>" + "<div class='report_pdf'></div>" + "</div>" + "</div>" return report_item; } // Clear list report_panel.clear_list = function () { report_panel.report_list.empty(); report_panel.report_filter_areas.empty(); report_panel.report_filter_years.empty(); report_panel.report_list_count.text("0"); report_panel.report_total_count.text("0"); } /* Filter Methods *********************************************************/ // Filters creation report_panel.create_filters = function (response) { var reports_by_year = d3.nest() .key(function (d) { return d.Year; }) .rollup(function (g) { return g.length; }) .entries(response.Reports); for (i = 0; i < response.Years.length; i++) { var year_item = jQuery("<div year='" + reports_by_year[i].key + "'></div>") .append("<span class='filter_year_item_text'>" + reports_by_year[i].key + "</span>") .append("<span class='filter_year_item_count'>(" + reports_by_year[i].values + ")</span>") .click(function () { jQuery("#report_filter_years div").removeClass("selected"); jQuery(this).addClass("selected"); report_panel.selected_year = jQuery(this).attr("year"); report_panel.filter_on_change(); }) .appendTo(report_panel.report_filter_years); } report_panel.report_filter.show(); } report_panel.filter_area = function (id_area) { report_panel.selected_area = id_area; report_panel.filter_on_change(); } // On filter selection report_panel.filter_on_change = function () { report_panel.report_list.find(".report_item").hide(); var class_to_show = ".report_item"; if (report_panel.selected_area != null) class_to_show += "[id_area='" + report_panel.selected_area + "']"; if (report_panel.selected_year != null) class_to_show += "[year='" + report_panel.selected_year + "']"; var to_show = report_panel.report_list.find(class_to_show); to_show.show(); report_panel.report_list_count.text(to_show.length); } /* Sort Methods *********************************************************/ // on Sort report_panel.sort_changed = function (sorter) { report_panel.report_sorters.removeClass("selected"); sorter.addClass("selected") var previous_sort = report_panel.current_sort; report_panel.current_sort = sorter.attr("sort"); if (previous_sort == report_panel.current_sort) { if (report_panel.current_sort.indexOf("_desc") != -1) { report_panel.current_sort = report_panel.current_sort.replace("_desc", ""); } else { report_panel.current_sort = report_panel.current_sort + "_desc"; } } report_panel.cover_up.fadeIn(duration_fade_short, function () { report_panel.sort_list(report_panel.current_sort); report_panel.cover_up.fadeOut(duration_fade_short); }); } // Sort list report_panel.sort_list = function (sort_type) { report_panel.report_list.empty(); report_panel.sort_reports_array(report_panel.current_sort); report_panel.create_list(); report_panel.filter_on_change(); } // Data sorting function report_panel.sort_reports_array = function (sort_type) { var sort_func = null; if (sort_type == "name") { sort_func = report_panel.sort_name; } else if (sort_type == "name_desc") { sort_func = report_panel.sort_name_desc; } else if (sort_type == "area_name") { sort_func = report_panel.sort_area_name; } else if (sort_type == "area_name_desc") { sort_func = report_panel.sort_area_name_desc; } else if (sort_type == "date") { sort_func = report_panel.sort_date; } else if (sort_type == "date_desc") { sort_func = report_panel.sort_date_desc; } report_panel.reports.sort(sort_func); } // Date sort delegate report_panel.sort_date = function (e_1, e_2) { var a1 = parseInt(e_1.Date.substr(6)), b1 = parseInt(e_2.Date.substr(6)); if (a1 == b1) return 0; return a1 > b1 ? 1 : -1; } // Arean name sort delegate report_panel.sort_area_name = function (e_1, e_2) { var a1 = e_1.AreaName, b1 = e_2.AreaName; if (a1 == b1) return 0; return a1 > b1 ? 1 : -1; } // file name sort delegate report_panel.sort_name = function (e_1, e_2) { var a1 = e_1.Name.toLowerCase(), b1 = e_2.Name.toLowerCase(); if (a1 == b1) return 0; return a1 > b1 ? 1 : -1; } // Date sort delegate report_panel.sort_date_desc = function (e_1, e_2) { var a1 = parseInt(e_1.Date.substr(6)), b1 = parseInt(e_2.Date.substr(6)); if (a1 == b1) return 0; return a1 < b1 ? 1 : -1; } // Arean name sort delegate report_panel.sort_area_name_desc = function (e_1, e_2) { var a1 = e_1.AreaName, b1 = e_2.AreaName; if (a1 == b1) return 0; return a1 < b1 ? 1 : -1; } // file name sort delegate report_panel.sort_name_desc = function (e_1, e_2) { var a1 = e_1.Name.toLowerCase(), b1 = e_2.Name.toLowerCase(); if (a1 == b1) return 0; return a1 < b1 ? 1 : -1; } report_panel.open_report = function (id_report) { var report_item_anchor = report_panel.find("#report_list .report_item[id_report='" + id_report + "'] a"); report_item_anchor.click(); window.open(report_item_anchor.attr("href"), "_blank"); } return report_panel; }
win-stub/PestObserver
web/scripts/report_panel.js
JavaScript
mit
11,254
--- 香港手語詞語相似打法系列: * [快、容易、近、細少]({{ site.baseurl }}/香港手語-快-容易-近-細少/) * [普通、剛剛、一筆勾消、不在]({{ site.baseurl }}/香港手語-普通-剛剛-一筆勾消-不在/) * [升職、進步]({{ site.baseurl }}/香港手語相似系列-升職-進步/) * [老師、老闆、準備]({{ site.baseurl }}/香港手語相似系列:老師、老闆、準備/) * [熙來掠往、集合、跟隨、相遇]({{ site.baseurl }}/香港手語相似系列:熙來掠往、集合、跟隨、相遇/) * [真、一倍、木材]({{ site.baseurl }}/香港手語相似系列-真-一倍-木材/) * [要、喉嚨、咳嗽]({{ site.baseurl }}/香港手語相似系列-要-喉嚨-咳嗽/) * [飯、年齡]({{ site.baseurl }}/香港手語相似系列-飯-年齡/)
roulesophy/roulesophy.github.io
_posts/index/hksl_confusion.md
Markdown
mit
811
// LICENSE package com.forgedui.editor.edit; import java.beans.PropertyChangeEvent; import java.util.ArrayList; import java.util.List; import org.eclipse.draw2d.geometry.Rectangle; import org.eclipse.gef.commands.Command; import org.eclipse.gef.requests.CreateRequest; import com.forgedui.editor.GUIEditorPlugin; import com.forgedui.editor.edit.command.AddToTableViewElementCommand; import com.forgedui.editor.edit.policy.ContainerEditPolicy; import com.forgedui.editor.figures.TableViewFigure; import com.forgedui.model.titanium.SearchBar; import com.forgedui.model.titanium.TableView; import com.forgedui.model.titanium.TableViewRow; import com.forgedui.model.titanium.TableViewSection; import com.forgedui.model.titanium.TitaniumUIBoundedElement; import com.forgedui.model.titanium.TitaniumUIElement; /** * @author Dmitry {[email protected]} * */ public class TableViewEditPart extends TitaniumContainerEditPart<TableView> { @SuppressWarnings({ "rawtypes", "unchecked" }) @Override public List<?> getModelChildren_() { List list = new ArrayList(super.getModelChildren_()); TableView model = (TableView)getModel(); if (model.getHeaderView() != null){ list.add(model.getHeaderView()); } if (model.getFooterView() != null){ list.add(model.getFooterView()); } if ((model.getSearchHidden() == null || !model.getSearchHidden()) && model.getSearch() != null){ list.add(model.getSearch()); } return list; } /** * Making sure to refresh things visual. */ @Override public void propertyChange(PropertyChangeEvent evt) { final String propName = evt.getPropertyName(); if (TableView.PROP_HEADER_VIEW.equals(propName) || TableView.PROP_FOOTER_VIEW.equals(propName) || TableView.PROP_SEARCH_VIEW.equals(propName) || TableView.PROP_SEARCH_VIEW_HIDDEN.equals(propName) || TableView.PROP_MIN_ROW_HEIGHT.equals(propName) || TableView.PROP_MAX_ROW_HEIGHT.equals(propName) ) { refresh(); } else { super.propertyChange(evt); } } @Override protected void createEditPolicies() { super.createEditPolicies(); installEditPolicy(ContainerEditPolicy.KEY, new TableViewEditPolicy()); } @Override protected void refreshVisuals() { TableView model = (TableView)getModel(); TableViewFigure figure = (TableViewFigure)getFigure(); figure.setHeaderTitle(model.getHeaderTitle()); figure.setFooterTitle(model.getFooterTitle()); figure.setHasHeaderView(model.getHeaderView() != null); figure.setHasFooterView(model.getFooterView() != null); super.refreshVisuals(); } } class TableViewEditPolicy extends ContainerEditPolicy { protected Command getCreateCommand(CreateRequest request) { // And then passed those to the validate facility. Object newObject = request.getNewObject(); Object container = getHost().getModel(); if (!GUIEditorPlugin.getComponentValidator().validate(newObject, container)) return null; if (!(newObject instanceof TableViewRow) && !(newObject instanceof TableViewSection) && newObject instanceof TitaniumUIElement){ Rectangle r = (Rectangle)getConstraintFor(request); if (r != null){ TitaniumUIBoundedElement child = (TitaniumUIBoundedElement) newObject; if (container instanceof TableView){ TableView view = (TableView) getHost().getModel(); if (child instanceof SearchBar && view.getSearch() == null){ return new AddToTableViewElementCommand(view, child, r, true); } else if (GUIEditorPlugin.getComponentValidator().isView(child)){ if (r.y <= view.getDimension().height / 2){ if (view.getHeaderView() == null){ return new AddToTableViewElementCommand(view, child, r, true); } } else if (view.getFooterView() == null){ return new AddToTableViewElementCommand(view, child, r, false); } } return null;//Can't drop } } } return super.getCreateCommand(request); } /*@Override protected Object getConstraintFor(CreateRequest request) { Rectangle r = (Rectangle) super.getConstraintFor(request); r.x = 0; return r; }*/ }
ShoukriKattan/ForgedUI-Eclipse
com.forgedui.editor/src/com/forgedui/editor/edit/TableViewEditPart.java
Java
mit
4,096
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'about', 'pt-br', { copy: 'Copyright &copy; $1. Todos os direitos reservados.', dlgTitle: 'Sobre o CKEditor 4', moreInfo: 'Para informações sobre a licença por favor visite o nosso site:' } );
otto-torino/gino
ckeditor/plugins/about/lang/pt-br.js
JavaScript
mit
400
package com.daviancorp.android.data.database; import android.database.Cursor; import android.database.CursorWrapper; import com.daviancorp.android.data.classes.Location; /** * A convenience class to wrap a cursor that returns rows from the "locations" * table. The {@link getLocation()} method will give you a Location instance * representing the current row. */ public class LocationCursor extends CursorWrapper { public LocationCursor(Cursor c) { super(c); } /** * Returns a Location object configured for the current row, or null if the * current row is invalid. */ public Location getLocation() { if (isBeforeFirst() || isAfterLast()) return null; Location location = new Location(); long locationId = getLong(getColumnIndex(S.COLUMN_LOCATIONS_ID)); String name = getString(getColumnIndex(S.COLUMN_LOCATIONS_NAME)); String fileLocation = getString(getColumnIndex(S.COLUMN_LOCATIONS_MAP)); location.setId(locationId); location.setName(name); location.setFileLocation(fileLocation); return location; } }
dbooga/MonsterHunter3UDatabase
MonsterHunter3UDatabase/src/com/daviancorp/android/data/database/LocationCursor.java
Java
mit
1,054