hexsha
stringlengths 40
40
| size
int64 5
1.05M
| ext
stringclasses 98
values | lang
stringclasses 21
values | max_stars_repo_path
stringlengths 3
945
| max_stars_repo_name
stringlengths 4
118
| max_stars_repo_head_hexsha
stringlengths 40
78
| max_stars_repo_licenses
listlengths 1
10
| max_stars_count
int64 1
368k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 3
945
| max_issues_repo_name
stringlengths 4
118
| max_issues_repo_head_hexsha
stringlengths 40
78
| max_issues_repo_licenses
listlengths 1
10
| max_issues_count
int64 1
134k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 3
945
| max_forks_repo_name
stringlengths 4
135
| max_forks_repo_head_hexsha
stringlengths 40
78
| max_forks_repo_licenses
listlengths 1
10
| max_forks_count
int64 1
105k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 5
1.05M
| avg_line_length
float64 1
1.03M
| max_line_length
int64 2
1.03M
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23696692e23dfb3eb4a72a18b6e39cff8761118e
| 1,806
|
css
|
CSS
|
source/theme/workshops/Instagram/styles/header.css
|
nataliasabadysh/react-movies_app
|
71d1c03dee0911f8235866f11ef3b60a06ec1ab0
|
[
"MIT"
] | null | null | null |
source/theme/workshops/Instagram/styles/header.css
|
nataliasabadysh/react-movies_app
|
71d1c03dee0911f8235866f11ef3b60a06ec1ab0
|
[
"MIT"
] | null | null | null |
source/theme/workshops/Instagram/styles/header.css
|
nataliasabadysh/react-movies_app
|
71d1c03dee0911f8235866f11ef3b60a06ec1ab0
|
[
"MIT"
] | null | null | null |
.header {
display: flex;
justify-content: space-between;
max-width: 1010px;
margin: 0 auto 0;
padding: 19px 40px 22px;
& .logo {
display: inline-block;
width: 176px;
height: 35px;
background-image: url('../assets/images/instagram-logo.png');
background-repeat: no-repeat;
background-size: 176px 35px;
cursor: pointer;
}
& input {
max-width: 215px;
height: 28px;
border: 1px solid var(--paletteColor3);
border-radius: 3px;
padding: 5px 10px 3px 26px;
margin-top: 6px;
font-size: 14px;
color: var(--paletteColor4);
background-image: url('../assets/images/search.png');
background-repeat: no-repeat;
background-size: 10px 10px;
background-position: 10px 50%;
box-sizing: border-box;
}
& .nav {
display: flex;
margin-top: 9px;
& div {
width: 20px;
height: 20px;
cursor: pointer;
background-size: 20px 20px;
&:not(:last-child) {
margin-right: 35px;
}
}
& .explore {
background-image: url('../assets/images/explore.png');
}
& .likes {
background-image: url('../assets/images/likes.png');
}
& .settings {
background-image: url('../assets/images/settings.png');
}
}
@media (--phonePortrait), (--phoneLandscape) {
flex-direction: column;
align-items: center;
height: auto;
& .logo {
margin-bottom: 15px;
}
& input {
margin-bottom: 15px;
}
}
@media (--tabletPortrait) {
max-width: 750px;
}
}
| 22.575
| 69
| 0.498893
|
ff2dfc570957e1d11b1df390c847ee4f7cfb2b1f
| 850
|
py
|
Python
|
tests/aws/test_ses.py
|
mchestr/pycbc
|
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
|
[
"Unlicense"
] | null | null | null |
tests/aws/test_ses.py
|
mchestr/pycbc
|
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
|
[
"Unlicense"
] | null | null | null |
tests/aws/test_ses.py
|
mchestr/pycbc
|
c215c1f177fe383ec6e797437fa2d5f4727eb9f3
|
[
"Unlicense"
] | null | null | null |
from unittest.mock import patch, MagicMock
import pytest
from pycbc.aws import ses
@pytest.fixture
def mock_ses():
ses_mock = MagicMock()
with patch('pycbc.aws.ses.boto3.client') as mock:
mock.return_value = ses_mock
yield ses_mock
def test_send_email(email, mock_ses):
ses.send_email(email, email, 'test', 'test', bcc_recipients=[email])
mock_ses.send_email.assert_called_once_with(
Destination={
'ToAddresses': [email],
'BccAddresses': [email],
},
Message={
'Body': {
'Html': {
'Charset': 'UTF-8',
'Data': 'test',
},
},
'Subject': {
'Charset': 'UTF-8',
'Data': 'test',
}
},
Source=email,
)
| 22.972973
| 72
| 0.495294
|
589d2798343aaa776890908fc20b57a7e64fc4e9
| 840
|
lua
|
Lua
|
scripting.lua
|
aedifi/edits
|
e0b6f43ce7cd71c46167c053bdb5de15ba94a0e0
|
[
"Apache-2.0"
] | 1
|
2020-06-29T22:32:50.000Z
|
2020-06-29T22:32:50.000Z
|
scripting.lua
|
aedifi/edits
|
e0b6f43ce7cd71c46167c053bdb5de15ba94a0e0
|
[
"Apache-2.0"
] | null | null | null |
scripting.lua
|
aedifi/edits
|
e0b6f43ce7cd71c46167c053bdb5de15ba94a0e0
|
[
"Apache-2.0"
] | null | null | null |
-- scripting.lua
-- Handlers for scripting-related commands.
-- Loads and executes a craftscript.
function HandleCraftScriptCommand(a_Split, a_Player)
local PlayerState = GetPlayerState(a_Player)
if (not a_Split[2]) then
a_Player:SendMessage(cChatColor.LightGray .. "Usage: " .. a_Split[1] .. " <script>")
return true
end
local Success, Err = PlayerState.CraftScript:SelectScript(a_Split[2])
if (not Success) then
a_Player:SendMessage(cChatColor.LightGray .. Err)
return true
end
local Arguments = a_Split
table.remove(Arguments, 1); table.remove(Arguments, 1)
local Success, Err = PlayerState.CraftScript:Execute(a_Player, Arguments)
if (not Success) then
a_Player:SendMessage(cChatColor.LightGray .. Err)
return true
end
a_Player:SendMessage(cChatColor.LightGray .. "Executed that script.")
return true
end
| 27.096774
| 86
| 0.758333
|
b335ee38f9e629274e4f7f2c955038cda98ed7bc
| 1,413
|
py
|
Python
|
lab1/file_client.py
|
xtutran/python-labs
|
252041d26125cfed300905a028f1c72e62a6e048
|
[
"BSD-3-Clause"
] | null | null | null |
lab1/file_client.py
|
xtutran/python-labs
|
252041d26125cfed300905a028f1c72e62a6e048
|
[
"BSD-3-Clause"
] | null | null | null |
lab1/file_client.py
|
xtutran/python-labs
|
252041d26125cfed300905a028f1c72e62a6e048
|
[
"BSD-3-Clause"
] | null | null | null |
from socket import * # Import socket module
import sys
# main method to launch the client
def main():
argv = sys.argv
if len(argv) != 4:
print 'Usage: python file_client.py 192.168.10.1 9090 filename'
sys.exit(1)
if not argv[2].isdigit():
print 'Port must be a number'
sys.exit(1)
host = argv[1]
port = int(argv[2]) # Reserve a port for your service.
request_file = argv[3]
# create a client socket and connect to server
clientsock = socket(AF_INET, SOCK_DGRAM) # Create a socket object
print 'Open a connection'
clientsock.connect((host, port))
print 'Request a file: %s' % (request_file)
clientsock.send(request_file)
with open(request_file, 'wb') as f:
while True:
# wait response from server in 5 seconds
clientsock.settimeout(5)
try:
data = clientsock.recv(1024)
if len(data) < 1024 or data == '$':
break
if not data:
break
f.write(data)
except timeout:
print 'the transmission had been aborted'
sys.exit(1)
except error:
print 'connection refuse'
print 'Successfully get the file'
f.close()
print 'Connection closed'
clientsock.close()
if __name__ == "__main__":
main()
| 26.660377
| 71
| 0.562633
|
223e84c23bbc79493597bdac5bc6a7ed34db532d
| 326
|
kt
|
Kotlin
|
src/main/java/com/dystopia/sketch/element/PagesArray.kt
|
tseylerd/dystopia-model
|
b85deba8b0517f1a32a6770225384d48651fc534
|
[
"Apache-2.0"
] | null | null | null |
src/main/java/com/dystopia/sketch/element/PagesArray.kt
|
tseylerd/dystopia-model
|
b85deba8b0517f1a32a6770225384d48651fc534
|
[
"Apache-2.0"
] | null | null | null |
src/main/java/com/dystopia/sketch/element/PagesArray.kt
|
tseylerd/dystopia-model
|
b85deba8b0517f1a32a6770225384d48651fc534
|
[
"Apache-2.0"
] | null | null | null |
package com.dystopia.sketch.element
import com.dystopia.sketch.api.SketchElement
class PagesArray(children: Array<SketchElement>): ArrayElement(children) {
val pages: MutableList<String> = ArrayList()
override fun reproduce(children: Array<SketchElement>): ArrayElement {
return PagesArray(children)
}
}
| 29.636364
| 74
| 0.757669
|
875bba0c1d216ca4fb61992c5a8300c7c2edebfc
| 479
|
swift
|
Swift
|
Chapter03/starter/NBAWatchDraft/NBAWatchDraft WatchKit Extension/Views/DraftList.swift
|
IsYet1/SwiftUI-Projects
|
83c546ad3bb006c3ba5836cd237e4c46d9b1eb31
|
[
"MIT"
] | 63
|
2020-06-02T20:37:30.000Z
|
2022-03-17T22:12:19.000Z
|
Chapter03/starter/NBAWatchDraft/NBAWatchDraft WatchKit Extension/Views/DraftList.swift
|
multitudes/SwiftUI-Projects
|
9233823d283d85b0bf00a6696359535f7f037bea
|
[
"MIT"
] | 2
|
2020-12-29T14:17:28.000Z
|
2021-01-29T14:38:35.000Z
|
Chapter03/starter/NBAWatchDraft/NBAWatchDraft WatchKit Extension/Views/DraftList.swift
|
multitudes/SwiftUI-Projects
|
9233823d283d85b0bf00a6696359535f7f037bea
|
[
"MIT"
] | 24
|
2019-12-25T17:53:37.000Z
|
2022-02-11T02:48:58.000Z
|
//
// DraftList.swift
// NBAWatchDraft WatchKit Extension
//
// Created by Craig Clayton on 12/19/19.
// Copyright © 2019 Cocoa Academy. All rights reserved.
//
import SwiftUI
struct DraftList: View {
// add properties here
var body: some View {
Text("Draft List")
}
// add topCard here
}
struct DraftList_Previews: PreviewProvider {
static var previews: some View {
DraftList()
}
}
extension DraftList_Previews {
}
| 15.966667
| 56
| 0.638831
|
4b1d16d82ff3acab9db85dfa0ed3a2182e991653
| 5,928
|
swift
|
Swift
|
Sources/HCIHoldMode.swift
|
sbrewin/Bluetooth
|
2e0d8ac67b96ab82443aec8ef21de3c522be319c
|
[
"MIT"
] | 1
|
2019-04-08T05:57:34.000Z
|
2019-04-08T05:57:34.000Z
|
Sources/HCIHoldMode.swift
|
sbrewin/Bluetooth
|
2e0d8ac67b96ab82443aec8ef21de3c522be319c
|
[
"MIT"
] | null | null | null |
Sources/HCIHoldMode.swift
|
sbrewin/Bluetooth
|
2e0d8ac67b96ab82443aec8ef21de3c522be319c
|
[
"MIT"
] | 1
|
2019-03-31T12:44:32.000Z
|
2019-03-31T12:44:32.000Z
|
//
// HCIHoldMode.swift
// Bluetooth
//
// Created by Alsey Coleman Miller on 6/15/18.
// Copyright © 2018 PureSwift. All rights reserved.
//
import Foundation
/**
Hold Mode Command
The Hold_Mode command is used to alter the behavior of the Link Manager, and have it place the ACL baseband connection associated by the specified Connection_Handle into the hold mode. The Hold_Mode_Max_Interval and Hold_Mode_Min_Interval command parameters specify the length of time the Host wants to put the connection into the hold mode. The local and remote devices will negotiate the length in the hold mode. The Hold_Mode_Max_ Interval parameter is used to specify the maximum length of the Hold interval for which the Host may actually enter into the hold mode after negotiation with the remote device. The Hold interval defines the amount of time between when the Hold Mode begins and when the Hold Mode is completed. The Hold_ Mode_Min_Interval parameter is used to specify the minimum length of the Hold interval for which the Host may actually enter into the hold mode after the negotiation with the remote device. Therefore the Hold_Mode_Min_Interval cannot be greater than the Hold_Mode_Max_Interval. The BR/EDR Controller will return the actual Hold interval in the Interval parameter of the Mode Change event, if the command is successful. This command enables the Host to support a low-power policy for itself or several other BR/EDR Controllers, and allows the devices to enter Inquiry Scan, Page Scan, and a number of other possible actions.
- Note: The Connection_Handle cannot be of the SCO or eSCO link type
If the Host sends data to the BR/EDR Controller with a Connection_Handle corresponding to a connection in hold mode, the BR/EDR Controller will keep the data in its buffers until either the data can be transmitted (the hold mode has ended) or a flush, a flush timeout or a disconnection occurs. This is valid even if the Host has not yet been notified of the hold mode through a Mode Change event when it sends the data.
- Note: The above is not valid for an HCI Data Packet sent from the Host to the BR/EDR Controller on the master side where the Connection_Handle is a Connection_Handle used for broadcast and the Broadcast_Flag is set to Active Broadcast. The broadcast data will then never be received by slaves in hold mode.
The Hold_Mode_Max_Interval shall be less than the Link Supervision Timeout configuration parameter.
*/
public struct HCIHoldMode: HCICommandParameter {
public static let command = LinkPolicyCommand.holdMode
public static let length = MemoryLayout<UInt16>.size + Interval.length
/// Connection Handle
public var connectionHandle: UInt16
/// Acceptable number of Baseband slots to wait in Hold Mode.
public var interval: Interval
public init(connectionHandle: UInt16, interval: Interval = .full) {
self.connectionHandle = connectionHandle
self.interval = interval
}
public var data: Data {
// Connection_Handle
let handleBytes = connectionHandle.littleEndian.bytes
// Hold_Mode_Max_Interval
let intervalMaxBytes = interval.rawValue.upperBound.littleEndian.bytes
// Hold_Mode_Min_Interval
let intervalMinBytes = interval.rawValue.lowerBound.littleEndian.bytes
return Data([handleBytes.0,
handleBytes.1,
intervalMaxBytes.0,
intervalMaxBytes.1,
intervalMinBytes.0,
intervalMinBytes.1])
}
}
// MARK: - Supporting Types
public extension HCIHoldMode {
/**
Hold Mode Max Interval
Maximum / Minimum acceptable number of Baseband slots to wait in Hold Mode.
Time Length of the Hold = N * 0.625 ms (1 Baseband slot)
Range for N: 0x0002-0xFFFE; only even values are valid.
Time Range: 1.25ms - 40.9 s
Mandatory Range: 0x0014 to 0x8000
*/
struct Interval: RawRepresentable, Equatable {
public static let length = MemoryLayout<UInt16>.size + MemoryLayout<UInt16>.size
public typealias RawValue = CountableClosedRange<UInt16>
public static let min: UInt16 = 0x0014
public static let max: UInt16 = 0x8000
/// Maximum interval range.
public static let full = Interval(Interval.min ... Interval.max)
public let rawValue: RawValue
public init?(rawValue: RawValue) {
assert(Interval.full.rawValue.lowerBound == Interval.min)
assert(Interval.full.rawValue.upperBound == Interval.max)
guard rawValue.lowerBound >= Interval.min,
rawValue.upperBound <= Interval.max
else { return nil }
assert(rawValue.clamped(to: Interval.full.rawValue) == rawValue)
assert(rawValue.overlaps(Interval.full.rawValue))
self.rawValue = rawValue
}
// private API, unsafe
private init(_ unchecked: RawValue) {
self.rawValue = unchecked
}
/// Time = N * 0.625 ms
/// N * 1.25ms - 40.9 s
public var miliseconds: ClosedRange<Double> {
func toMiliseconds(_ value: UInt16) -> Double {
return Double(value) * Double(0.625)
}
let min = toMiliseconds(rawValue.lowerBound)
let max = toMiliseconds(rawValue.upperBound)
return min ... max
}
// Equatable
public static func == (lhs: Interval, rhs: Interval) -> Bool {
return lhs.rawValue == rhs.rawValue
}
}
}
| 43.588235
| 1,361
| 0.662449
|
5df3bde3711d7e111f675f2b04d73527f8b74c8a
| 2,012
|
cpp
|
C++
|
Prim/PrimComToken_Enum.cpp
|
UltimateScript/FOG
|
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
|
[
"BSD-3-Clause"
] | null | null | null |
Prim/PrimComToken_Enum.cpp
|
UltimateScript/FOG
|
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
|
[
"BSD-3-Clause"
] | 2
|
2021-07-07T17:31:49.000Z
|
2021-07-16T11:40:38.000Z
|
Prim/PrimComToken_Enum.cpp
|
OuluLinux/FOG
|
edc96d916fc299f0a822f8c534a4e7487c0e3ea2
|
[
"BSD-3-Clause"
] | null | null | null |
#include <Prim/PrimIncludeAll.h>
#ifndef NO_DATA
TYPEINFO_SINGLE(PrimComToken_Enum, PrimComToken_String);
#endif
#ifndef NO_CODE
//
// Construct an aName token for a string value in theValue as part of aParser, using
// someOptions for parsing, and aUsage as a description of the token.
//
PrimComToken_Enum::PrimComToken_Enum(PrimComParse& aParser, const PrimEnum& anEnum, int& theValue,
const char* aName, const char* aUsage, const TokenOptions& someOptions)
:
Super(aParser, _buffer, aName, aUsage, someOptions),
_enum(anEnum),
_value(theValue),
_default_value(0)
{}
//
// Construct an aName token for a string value defaulting to defaultValue in theValue
// as part of aParser, using someOptions for parsing, and aUsage as a description of the token.
//
PrimComToken_Enum::PrimComToken_Enum(PrimComParse& aParser, const PrimEnum& anEnum, int& theValue,
const char* aName, const char* aUsage, int defaultValue, const TokenOptions& someOptions)
:
Super(aParser, _buffer, aName, aUsage, *PrimStringHandle(anEnum[defaultValue]), someOptions),
_enum(anEnum),
_value(theValue),
_default_value(defaultValue)
{}
//
// The default destructor does nothing.
//
PrimComToken_Enum::~PrimComToken_Enum() {}
//
// Initialise for a new parsing pass.
//
void PrimComToken_Enum::initialise_parse(PrimComParse& aParser) {
_value = _default_value;
Super::initialise_parse(aParser);
}
//
// Attempt to parse someText, returning true if accepted.
//
const char* PrimComToken_Enum::parse_text(PrimComParse& aParser, const char* someText) {
const char* p = Super::parse_text(aParser, someText);
if (p == 0) // If bad text
return 0; // parsing fails
std::istrstream s((char*)_buffer.str());
size_t aValue = _enum[s];
if (!s && aParser.diagnose_warnings()) {
PRIMWRN(BAD_PARSE, *this << " failed to resolve \"" << _buffer << "\"");
return 0;
}
_value = aValue;
return p;
}
#endif
| 28.338028
| 126
| 0.698807
|
e700ee4d1a98746e432dd828a0c768f5d2468a02
| 2,694
|
php
|
PHP
|
app/Admin/Forms/ProductActive.php
|
guojian1039/larastu
|
08dcf387369272d256f1a48b907741972a68f033
|
[
"MIT"
] | null | null | null |
app/Admin/Forms/ProductActive.php
|
guojian1039/larastu
|
08dcf387369272d256f1a48b907741972a68f033
|
[
"MIT"
] | 4
|
2021-02-02T21:10:01.000Z
|
2022-02-27T09:12:14.000Z
|
app/Admin/Forms/ProductActive.php
|
guojian1039/larastu
|
08dcf387369272d256f1a48b907741972a68f033
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Admin\Forms;
use App\Models\Product;
use Carbon\Carbon;
use Dcat\Admin\Widgets\Form;
use Symfony\Component\HttpFoundation\Response;
class ProductActive extends Form
{
protected $product_id;
protected $type;
public function __construct(int $product_id=0,string $type=null)
{
$this->product_id=$product_id;
$this->type=$type;
parent::__construct();
}
/**
* Handle the form request.
*
* @param array $input
*
* @return Response
*/
public function handle(array $input)
{
// dump($input);
$product=Product::query()->find($input['product_id']);
switch($input['type']){
case Product::TYPE_CROWDFUNDING:
$crowdfunding=$product->crowdfunding()->make(['end_at'=>$input['end_at'],'target_amount'=>$input['target_amount']]);
$r=$crowdfunding->save();
break;
case Product::TYPE_SECKILL:
$seckill=$product->seckill()->make(['end_at'=>$input['end_at'],'start_at'=>$input['start_at']]);
$r=$seckill->save();
break;
case Product::TYPE_ACTIVE:
$active=$product->active()->make(['end_at'=>$input['end_at']]);
$r=$active->save();
break;
}
$product->update(['type'=>$input['type']]);
//model::query()->create($input)
if($r){
return $this->success('操作成功', '/products');
}
else{
return $this->error('操作失败');
}
}
/**
* Build a form here.
*/
public function form()
{
$this->hidden('product_id')->value($this->product_id);
$this->hidden('type')->value($this->type);
switch ($this->type){
case Product::TYPE_ACTIVE:
$this->datetime('end_at','活动结束时间')->rules('required|date');
break;
case Product::TYPE_SECKILL:
$this->datetime('start_at','开始时间')->rules('required|date');
$this->datetime('end_at','结束时间')->rules('required|date');
break;
case Product::TYPE_CROWDFUNDING:
$this->text('target_amount','众筹目标金额')->rules('required|numeric|min:0.01');
$this->datetime('end_at','众筹结束时间')->rules('required|date');
break;
}
}
/**
* The data of the form.
*
* @return array
*/
public function default()
{
return [
'start_at' => Carbon::now(),
'end_at' =>Carbon::tomorrow(),
'target_amount' =>100000,
];
}
}
| 28.659574
| 133
| 0.50928
|
d16519d91f838ab13c2d7b8c8e51b2e9dc9367d6
| 176,428
|
sql
|
SQL
|
app_server/tl/uploads/GBPCHF_H1.sql
|
paulpierre/pp_chartvisual
|
2b7868d078084e3b8149ba460586027ff93ec614
|
[
"Unlicense"
] | null | null | null |
app_server/tl/uploads/GBPCHF_H1.sql
|
paulpierre/pp_chartvisual
|
2b7868d078084e3b8149ba460586027ff93ec614
|
[
"Unlicense"
] | null | null | null |
app_server/tl/uploads/GBPCHF_H1.sql
|
paulpierre/pp_chartvisual
|
2b7868d078084e3b8149ba460586027ff93ec614
|
[
"Unlicense"
] | 2
|
2019-07-17T07:36:45.000Z
|
2021-08-06T20:51:48.000Z
|
DROP TABLE IF EXISTS `GBPCHF_H1`;
CREATE TABLE IF NOT EXISTS `GBPCHF_H1`(
`id` int(5) NOT NULL,
`bull` varchar(10) NOT NULL,
`bear` varchar(10) NOT NULL,
`buy` varchar(10) NOT NULL,
`sell` varchar(10) NOT NULL,
`av` varchar(10) NOT NULL,
`mm` varchar(10) NOT NULL,
`time` varchar(30) NOT NULL);
ALTER TABLE `GBPCHF_H1` ADD PRIMARY KEY (`id`);
ALTER TABLE `GBPCHF_H1` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT;
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48628126','0.00000000','0.00000000','81.90714286','48.08571429','2015.09.25 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49483193','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49483193','1.49483193','0.00000000','1.50029193','0.00000000','0.00000000','2015.09.25 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49483193','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49483193','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49483193','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49483193','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49483193','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49039641','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49039641','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49039641','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48917885','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48876865','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48876865','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48874923','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48873818','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48843250','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48782274','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48493841','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48493841','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48493841','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47966366','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47966366','1.47966366','1.47601366','0.00000000','0.00000000','0.00000000','2015.09.24 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47966366','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47966366','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47966366','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47966366','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47998119','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','1.49258201','0.00000000','1.49761701','0.00000000','0.00000000','2015.09.24 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49258201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49188703','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49175724','1.49175724','1.48994224','0.00000000','0.00000000','0.00000000','2015.09.24 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49175724','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49178666','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49256652','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49256652','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49256652','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49421757','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49421757','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49610712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49611321','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49682077','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49944647','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50473995','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50473995','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50570624','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50578127','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','1.50752130','0.00000000','1.51090130','0.00000000','0.00000000','2015.09.22 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50752130','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50683411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50422380','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50320236','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50320236','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50320236','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49724515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49569388','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49292904','1.49292904','1.48936904','0.00000000','0.00000000','0.00000000','2015.09.18 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49292904','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49568958','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49776467','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49778278','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49933186','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49934377','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','1.50465897','0.00000000','1.50985731','0.00000000','0.00000000','2015.09.17 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50465897','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50376895','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50375337','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49970668','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49780896','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49780896','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49775353','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49713263','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49713263','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49713263','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49713263','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','1.49318306','1.48871639','0.00000000','0.00000000','0.00000000','2015.09.16 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','1.49318306','0.00000000','1.49493639','0.00000000','0.00000000','2015.09.16 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49318306','1.49318306','1.49191639','0.00000000','0.00000000','0.00000000','2015.09.16 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49318306','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49353227','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49365365','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49365365','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49377151','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49397339','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49402186','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49482001','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49482001','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49482001','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49482001','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49491859','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49704775','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','1.50591206','0.00000000','1.51019373','0.00000000','0.00000000','2015.09.11 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50591206','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50336378','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50285397','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50269256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49824887','1.49824887','1.49427720','0.00000000','0.00000000','0.00000000','2015.09.10 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49824887','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49980295','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50248352','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50248352','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50291563','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','1.50814402','0.00000000','1.51217569','0.00000000','0.00000000','2015.09.09 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50814402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50787603','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50690679','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50478021','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50382180','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50382180','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50382180','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50382180','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50382180','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50236280','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50177618','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49867790','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49162182','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.49074687','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48889466','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48879808','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48879808','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48725757','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48627992','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48613236','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47687729','1.47687729','1.47273396','0.00000000','0.00000000','0.00000000','2015.09.07 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47687729','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47783935','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47783935','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47907060','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48037632','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48327288','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','1.48449255','0.00000000','1.48655255','0.00000000','0.00000000','2015.09.04 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48449255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48148074','1.48148074','1.47681574','0.00000000','0.00000000','0.00000000','2015.09.03 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48148074','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48214317','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','1.48378013','0.00000000','1.48536180','0.00000000','0.00000000','2015.09.03 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48378013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48307717','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48115622','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47839303','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47695038','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.46869154','1.46869154','1.46453321','0.00000000','0.00000000','0.00000000','2015.09.02 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46869154','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47082001','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47213483','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47314514','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47579217','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47703834','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47709071','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47780105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47780105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47780105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47780105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47780105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47945249','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47945249','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47994835','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48081073','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48081073','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48081073','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48166353','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48166353','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48166353','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','1.48604461','0.00000000','1.48793628','0.00000000','0.00000000','2015.09.01 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48604461','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590023','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590023','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590023','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590023','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48549316','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48280703','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48116008','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48062498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611946','1.47611946','1.47213946','0.00000000','0.00000000','0.00000000','2015.08.31 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47611946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47745060','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47745060','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48129356','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48129356','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48129356','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48844638','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48844638','1.48844638','0.00000000','1.49138805','0.00000000','0.00000000','2015.08.28 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48844638','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48844638','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48844638','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48837357','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48837357','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48689774','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48665834','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48665834','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48615216','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590079','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590079','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48590079','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48464964','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48223875','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47642690','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47642690','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47642690','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47611791','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47537775','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47499502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47484906','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47429286','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.46923956','1.46923956','1.46617456','0.00000000','0.00000000','0.00000000','2015.08.27 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46923956','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46937984','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47440267','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47440267','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47440267','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47751900','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47751900','1.47751900','0.00000000','1.48130066','0.00000000','0.00000000','2015.08.26 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47751900','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47751900','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47751900','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47693866','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47693866','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47444181','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.47444181','1.47444181','1.47098181','0.00000000','0.00000000','0.00000000','2015.08.26 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47444181','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47444181','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47444181','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47444181','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47444181','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47615743','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47950166','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48695543','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48695543','1.48695543','0.00000000','1.49138210','0.00000000','0.00000000','2015.08.25 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48695543','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48695543','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48695543','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48681623','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48547408','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48547408','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48547408','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48547408','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.48547408','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.46874647','1.46874647','1.46290813','0.00000000','0.00000000','0.00000000','2015.08.25 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.46874647','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47475622','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47680778','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47741224','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47744545','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.47856603','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48149984','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48306617','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48496060','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48496060','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48496060','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48707288','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48867813','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.48867813','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49048307','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49048307','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49048307','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49625770','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49625770','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49625770','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49625770','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.49625770','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50167331','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50410133','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50449201','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50449201','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50449201','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50449201','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50449201','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50668767','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51353513','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51467738','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51577140','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51734872','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51818752','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51978313','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52203364','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52550185','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52550185','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52550185','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52639281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52736395','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52998889','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52998889','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52998889','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53045721','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53045721','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53045721','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53107304','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53107304','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53107304','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53107304','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53107304','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53120409','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','1.53191680','0.00000000','1.53418513','0.00000000','0.00000000','2015.08.18 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53191680','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53165837','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52961457','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52622389','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52301904','1.52301904','1.52172737','0.00000000','0.00000000','0.00000000','2015.08.18 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52301904','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52393830','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52503714','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52503714','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52503714','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','1.52960899','0.00000000','1.53379066','0.00000000','0.00000000','2015.08.17 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52960899','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52907009','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52853951','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52844725','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52829785','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52696922','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52696922','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52696922','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52696922','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52671825','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52645843','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52296025','1.52296025','1.51968691','0.00000000','0.00000000','0.00000000','2015.08.14 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52296025','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52364264','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52385173','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52389542','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','1.52596779','0.00000000','1.52894612','0.00000000','0.00000000','2015.08.13 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52596779','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52589650','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52589650','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52589650','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52589650','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52522912','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52499240','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52481531','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52384540','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51718232','1.51718232','1.51532566','0.00000000','0.00000000','0.00000000','2015.08.13 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.51718232','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52224026','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52224026','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52224026','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52224026','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52840020','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53272632','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53272632','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53272632','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53337620','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53337620','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53936936','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53936936','1.53936936','0.00000000','1.54146436','0.00000000','0.00000000','2015.08.12 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53936936','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53936936','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53936936','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53926686','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53926686','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53926686','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53926686','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53926686','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53923029','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53566150','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53275067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53200996','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53196786','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53170471','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53170471','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53101385','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53059257','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53059257','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53008294','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52936867','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52180787','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52180787','1.52180787','1.51847453','0.00000000','0.00000000','0.00000000','2015.08.10 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52180787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52180787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52180787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52184479','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52216071','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52216071','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52304990','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52304990','1.52304990','0.00000000','1.52397323','0.00000000','0.00000000','2015.08.10 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52304990','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52304990','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52304990','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52285174','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52164111','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52147400','1.52147400','1.51770900','0.00000000','0.00000000','0.00000000','2015.08.07 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52147400','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52182194','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52217055','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52217055','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52217055','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52217055','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52244595','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52273520','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.53300769','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53300769','1.53300769','0.00000000','1.53843602','0.00000000','0.00000000','2015.08.06 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53300769','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53300769','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.53300769','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','1.52995108','1.52746942','0.00000000','0.00000000','0.00000000','2015.08.06 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','1.52995108','0.00000000','1.53123608','0.00000000','0.00000000','2015.08.06 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52995108','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52947441','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52845487','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52601448','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52601448','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52601448','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52049345','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52049345','1.52049345','1.51795011','0.00000000','0.00000000','0.00000000','2015.08.05 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52049345','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52049345','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52049345','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','1.52199515','0.00000000','1.52333015','0.00000000','0.00000000','2015.08.05 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.52199515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51865959','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51865959','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51865959','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51672766','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51397496','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51307847','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51307847','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51111991','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.51083498','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50867839','1.50867839','1.50737006','0.00000000','0.00000000','0.00000000','2015.08.04 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50867839','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','1.50986307','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50986307','1.50986307','0.00000000','1.51116307','0.00000000','0.00000000','2015.08.03 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50986307','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50986307','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50986307','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50986307','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50812312','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50812312','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50654757','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('1.50650283','0.00000000','-0.00464667','0.00000000','0.00000000','0.00000000','2015.07.31 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00243333','0.00000000','0.00000000','2015.07.30 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 21:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 20:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 19:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 18:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 17:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 16:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 15:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 14:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 13:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 12:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 11:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 10:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 09:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 08:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 07:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 06:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 05:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 04:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 03:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 02:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 01:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 00:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.29 23:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.29 22:00');
INSERT INTO `GBPCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.29 21:00');
| 173.99211
| 177
| 0.647817
|
e251df2acf05176b16829a0a1aba71f06877d363
| 2,510
|
js
|
JavaScript
|
algorithms/index.js
|
kpunith8/javascript-samples
|
1c7f6c6c6de92f5d34214e1a5479bd636e85ee85
|
[
"MIT"
] | 3
|
2018-10-30T18:43:08.000Z
|
2021-03-01T10:06:57.000Z
|
algorithms/index.js
|
kpunith8/javascript-samples
|
1c7f6c6c6de92f5d34214e1a5479bd636e85ee85
|
[
"MIT"
] | 2
|
2021-08-05T04:50:37.000Z
|
2022-02-14T09:37:23.000Z
|
algorithms/index.js
|
kpunith8/javascript-samples
|
1c7f6c6c6de92f5d34214e1a5479bd636e85ee85
|
[
"MIT"
] | null | null | null |
// Rotate a 2D a array 90 degrees clockwise
const rotateImage = array => {
const n = array.length;
for (let i = 0; i < n; i++) {
for (let j = i; j < n; j++) {
const temp = array[i][j];
array[i][j] = array[j][i];
array[j][i] = temp;
}
}
for (let i = 0; i < n; i++) {
for (let j = 0; j < (n / 2); j++) {
const temp = array[i][j];
array[i][j] = array[i][n-1-j];
array[i][n-1-j] = temp;
}
}
return array
}
const arrayTranspose = array => {
const n = array.length;
const result = [];
for (let i = 0; i < n; i++) {
result[i] = [];
for (let j = 0; j < n; j++) {
result[i][j] = array[j][i];
}
}
return result;
}
const arr1 = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
];
const rotatedArray = [[7, 4, 1], [8, 5, 2], [9, 6, 3]];
console.log('transpose of an array', arrayTranspose(arr1));
console.log('Rotate an image', rotateImage(arr1));
// [-6, -4, -1, 1, 2, 5] => [1, 1, 4, 16, 25, 36]
const sortedSquaredArray = arr => {
const result = [];
let left = 0;
let right = arr.length - 1;
// Keep 2 pointers, one at the start and one at the end
// If the absolute value of the element at the start is greater than the element at the end, put the squared value to the end
for(let i = arr.length - 1; i >= 0; i--) {
if(Math.abs(arr[left]) > arr[right]) {
result[i] = arr[left] * arr[left];
left++;
} else {
result[i] = arr[right] * arr[right];
right--;
}
}
return result
}
console.log('Sorted squared array', sortedSquaredArray([-6, -4, -1, 1, 2, 5]));
// sum of two numbers in 2 arrays, takes O(a + b) time
const sumOfTwoNumbers = (arr1, arr2, target) => {
const match = {}
for (let i = 0; i < arr1.length; i++) {
const diff = target - arr1[i];
match[diff] = diff
}
for(let j = 0; j < arr2.length; j++) {
if(match[arr2[j]]) {
return true
}
}
return false
}
// Another solution would be looping through both arrays, that could take O(n^2) time
console.log('sumOfTwoNumbers:', sumOfTwoNumbers([1, 2, 3, 4, 5], [2, 3, 4, 5, 6], 8));
// Kadan's algorithm
// Maxium sum of contiguous subarray
const maxSubArray = arr => {
let maxSum = arr[0];
let currentSum = arr[0];
for (let i = 1; i < arr.length; i++) {
currentSum = Math.max(arr[i], currentSum + arr[i]);
maxSum = Math.max(maxSum, currentSum);
}
return maxSum
}
console.log('maximum sum of contiguous array:', maxSubArray([-2, 2, 5, -11, 6])); // [2, 5] => 7
| 23.240741
| 127
| 0.548606
|
24c0a6dfbafa86c8a6ad203cc7ab11b6c0b03d8b
| 319
|
php
|
PHP
|
app/Http/Controllers/WelcomeController.php
|
nikola-171/articles
|
3821f7eb3b8ffe84af1df2424b81b7caf15a33f1
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/WelcomeController.php
|
nikola-171/articles
|
3821f7eb3b8ffe84af1df2424b81b7caf15a33f1
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/WelcomeController.php
|
nikola-171/articles
|
3821f7eb3b8ffe84af1df2424b81b7caf15a33f1
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Article;
class WelcomeController extends Controller
{
function show_articles(){
$articles = Article::orderBy('id','DESC')->simplePaginate(5);
return view('welcome')->with('articles', $articles);
}
}
| 17.722222
| 69
| 0.667712
|
bb954265e1c8114a553c74b9e0644a30a66a6a2f
| 4,922
|
lua
|
Lua
|
data/BHElib/scenes/stage/stage_transition_callbacks.lua
|
Karl5766/LuaSTG-x_BHElib
|
8f4504fb39d5081016b3b8a123b475a3a8087e07
|
[
"MIT"
] | null | null | null |
data/BHElib/scenes/stage/stage_transition_callbacks.lua
|
Karl5766/LuaSTG-x_BHElib
|
8f4504fb39d5081016b3b8a123b475a3a8087e07
|
[
"MIT"
] | null | null | null |
data/BHElib/scenes/stage/stage_transition_callbacks.lua
|
Karl5766/LuaSTG-x_BHElib
|
8f4504fb39d5081016b3b8a123b475a3a8087e07
|
[
"MIT"
] | null | null | null |
---------------------------------------------------------------------------------------------------
---stage_transition_callbacks.lua
---author: Karl
---date: 2021.7.8
---desc: implements stage transition callbacks that creates the next scene and clean up the current
--- stage; these functions are supposed to be fed to the stage object as callbacks via the
--- parameters of the scene transition function
---------------------------------------------------------------------------------------------------
---@class StageTransitionCallbacks
local _callbacks = {}
local SceneInitState = require("BHElib.scenes.stage.state_of_scene_init")
local SceneGroup = require("BHElib.scenes.stage.scene_group")
local Ustorage = require("util.universal_id")
---------------------------------------------------------------------------------------------------
---from stage to menu
---create a menu scene
---@param stage Stage the stage to go from
---@param task_spec any specifies the tasks to perform on the menu
---@return GameScene the next scene to go to
local function CreateMenuWithTaskSpec(stage, task_spec)
stage:endSession(false)
-- go back to menu
local MenuSceneClass = require("BHElib.scenes.main_menu.main_menu_scene")
local menu_scene = MenuSceneClass.shortInit(task_spec)
return menu_scene
end
---create a menu scene without saving replay
---@param stage Stage the stage to go from
---@return GameScene the next scene to go to
function _callbacks.createMenuWithoutSavingReplay(stage)
return CreateMenuWithTaskSpec(stage, {"no_task"})
end
---create a menu scene while saving replay
---@param stage Stage the stage to go from
---@return GameScene the next scene to go to
function _callbacks.createMenuAndSaveReplay(stage)
return CreateMenuWithTaskSpec(stage, {"save_replay"})
end
---------------------------------------------------------------------------------------------------
---from stage to stage
---@param stage Stage the stage to go from
---@param next_init_state GameSceneInitState
local function InheritGameplayResources(stage, next_init_state)
next_init_state.score = stage:getScore()
local next_player_pos = next_init_state.player_pos
local cur_player = stage:getPlayer()
next_player_pos.x = cur_player.x
next_player_pos.y = cur_player.y
next_init_state.player_resource = cur_player:getPlayerResource():copy()
end
---create a menu scene while saving replay
---@param stage Stage the stage to go from
---@return GameScene the next scene to go to
function _callbacks.restartSceneGroup(stage)
stage:endSession(false)
-- start the game again, with the same scene init state and the scene group init state
local scene_group = stage.scene_group
local next_init_state = scene_group:getFirstSceneInitState()
local group_init_state = scene_group:getSceneGroupInitState()
local next_scene_group = SceneGroup(group_init_state)
-- find the first stage class
local stage_id = next_scene_group:getCurrentSceneId()
local StageClass = Ustorage:getById(stage_id)
local next_stage = StageClass(next_init_state, next_scene_group)
return next_stage
end
---create a menu scene while saving replay
---@param stage Stage the stage to go from
---@return GameScene the next scene to go to
function _callbacks.restartStageAndKeepRecording(stage)
local next_init_state = SceneInitState()
InheritGameplayResources(stage, next_init_state)
stage:endSession(true)
-- create scene init state for next stage
local cur_init_state = stage.scene_init_state
next_init_state.random_seed = ran:Int(0, 65535)
-- update the scene group
local scene_group = stage.scene_group
scene_group:completeCurrentScene(cur_init_state)
scene_group:restartScene()
local stage_id = stage[".classname"]
local StageClass = Ustorage:getById(stage_id)
-- pass over the scene group object and create the next stage
local next_stage = StageClass(next_init_state, scene_group)
return next_stage
end
---create a menu scene while saving replay
---@param stage Stage the stage to go from
---@return GameScene the next scene to go to
function _callbacks.goToNextStage(stage)
local next_init_state = SceneInitState()
InheritGameplayResources(stage, next_init_state)
stage:endSession(true)
-- create scene init state for next stage
local cur_init_state = stage.scene_init_state
next_init_state.random_seed = ran:Int(0, 65535)
-- update the scene group
local scene_group = stage.scene_group
scene_group:completeCurrentScene(cur_init_state)
scene_group:advanceScene()
local stage_id = stage.scene_group:getCurrentSceneId()
local StageClass = Ustorage:getById(stage_id)
-- pass over the scene group object and create the next stage
local next_stage = StageClass(next_init_state, scene_group)
return next_stage
end
return _callbacks
| 36.731343
| 99
| 0.703373
|
6406b53f842962d5fff052806a51ea4f06e283c9
| 136,735
|
py
|
Python
|
GP/python/restapi/common_types.py
|
Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018
|
afb8f9153edc04bd81335b177ff45d895bcfc711
|
[
"MIT"
] | 2
|
2018-09-25T19:38:50.000Z
|
2019-01-06T14:08:12.000Z
|
GP/python/restapi/common_types.py
|
Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018
|
afb8f9153edc04bd81335b177ff45d895bcfc711
|
[
"MIT"
] | null | null | null |
GP/python/restapi/common_types.py
|
Bolton-and-Menk-GIS/Geoprocessing-Services-JSAPI-2018
|
afb8f9153edc04bd81335b177ff45d895bcfc711
|
[
"MIT"
] | null | null | null |
# look for arcpy access, otherwise use open source version
from __future__ import print_function
import sqlite3
import base64
import shutil
import contextlib
import urlparse
from rest_utils import *
from .decorator import decorator
import sys
if sys.version_info[0] > 2:
basestring = str
try:
import arcpy
from arc_restapi import *
has_arcpy = True
except ImportError:
from open_restapi import *
has_arcpy = False
class Callable(object):
def __call__(self, *args, **kwargs):
raise NotImplementedError('No Access to arcpy!')
def __getattr__(self, attr):
"""recursively raise not implemented error for any calls to arcpy:
arcpy.management.AddField(...)
or:
arcpy.AddField_management(...)
"""
return Callable()
def __repr__(self):
return ''
class ArcpyPlaceholder(object):
def __getattr__(self, attr):
return Callable()
def __setattr__(self, attr, val):
pass
def __repr__(self):
return ''
arcpy = ArcpyPlaceholder()
USE_GEOMETRY_PASSTHROUGH = True #can be set to false to not use @geometry_passthrough
@decorator
def geometry_passthrough(func, *args, **kwargs):
"""decorator to return a single geometry if a single geometry was returned
in a GeometryCollection(), otherwise returns the full GeometryCollection()
"""
f = func(*args, **kwargs)
gc = GeometryCollection(f)
if gc.count == 1 and USE_GEOMETRY_PASSTHROUGH:
return gc[0]
else:
return gc
return f
def getFeatureExtent(in_features):
"""gets the extent for a FeatureSet() or GeometryCollection(), must be convertible
to a GeometryCollection(). Returns an envelope json structure (extent)
Required:
in_features -- input features (Feature|FeatureSet|GeometryCollection|json)
"""
if not isinstance(in_features, GeometryCollection):
in_features = GeometryCollection(in_features)
extents = [g.envelopeAsJSON() for g in iter(in_features)]
full_extent = {SPATIAL_REFERENCE: extents[0].get(SPATIAL_REFERENCE)}
for attr, op in {XMIN: min, YMIN: min, XMAX: max, YMAX: max}.iteritems():
full_extent[attr] = op([e.get(attr) for e in extents])
return munch.munchify(full_extent)
def unqualify_fields(fs):
"""removes fully qualified field names from a feature set
Required:
fs -- restapi.FeatureSet() object or JSON
"""
if not isinstance(fs, FeatureSet):
fs = FeatureSet(fs)
clean_fields = {}
for f in fs.fields:
clean = f.name.split('.')[-1]
clean_fields[f.name] = clean
f.name = clean
for i,feature in enumerate(fs.features):
feature_copy = {}
for f, val in feature.attributes.iteritems():
feature_copy[clean_fields.get(f, f)] = val
fs.features[i].attributes = munch.munchify(feature_copy)
if has_arcpy:
def exportFeatureSet(feature_set, out_fc, include_domains=False, qualified_fieldnames=False):
"""export FeatureSet (JSON result) to shapefile or feature class
Required:
feature_set -- JSON response obtained from a query or FeatureSet() object
out_fc -- output feature class or shapefile
Optional:
include_domains -- if True, will manually create the feature class and add domains to GDB
if output is in a geodatabase.
qualified_fieldnames -- default is False, in situations where there are table joins, there
are qualified table names such as ["table1.Field_from_tab1", "table2.Field_from_tab2"].
By setting this to false, exported fields would be: ["Field_from_tab1", "Field_from_tab2"]
at minimum, feature set must contain these keys:
[u'features', u'fields', u'spatialReference', u'geometryType']
"""
# validate features input (should be list or dict, preferably list)
if not isinstance(feature_set, FeatureSet):
feature_set = FeatureSet(feature_set)
if not qualified_fieldnames:
unqualify_fields(feature_set)
# find workspace type and path
ws, wsType = find_ws_type(out_fc)
isShp = wsType == 'FileSystem'
temp = time.strftime(r'in_memory\restapi_%Y%m%d%H%M%S') #if isShp else None
original = out_fc
if isShp:
out_fc = temp
try:
hasGeom = GEOMETRY in feature_set.features[0]
except:
print('could not check geometry!')
hasGeom = False
# try converting JSON features from arcpy, seems very fragile...
try:
##tmp = feature_set.dump(tmp_json_file(), indent=None)
##arcpy.conversion.JSONToFeatures(tmp, out_fc) #this tool is very buggy :(
gp = arcpy.geoprocessing._base.Geoprocessor()
arcpy_fs = gp.fromEsriJson(feature_set.dumps(indent=None)) #arcpy.FeatureSet from JSON string
arcpy_fs.save(out_fc)
except:
# manually add records with insert cursor
print('arcpy conversion failed, manually writing features...')
outSR = arcpy.SpatialReference(feature_set.getSR())
path, fc_name = os.path.split(out_fc)
g_type = G_DICT.get(feature_set.geometryType, '').upper()
arcpy.CreateFeatureclass_management(path, fc_name, g_type,
spatial_reference=outSR)
# add all fields
cur_fields = []
fMap = []
if not isShp:
gdb_domains = arcpy.Describe(ws).domains
for field in feature_set.fields:
if field.type not in [OID, SHAPE] + SKIP_FIELDS.keys():
if '.' in field.name:
if 'shape.' not in field.name.lower():
field_name = field.name.split('.')[-1] #for weird SDE fields with periods
else:
field_name = '_'.join([f.title() for f in field.name.split('.')]) #keep geometry calcs if shapefile
else:
field_name = field.name
# need to filter even more as SDE sometimes yields weird field names...sigh
restricted = ('fid', 'shape', 'objectid')
if (not any(['shape_' in field.name.lower(),
'shape.' in field.name.lower(),
'(shape)' in field.name.lower()]) \
or isShp) and field.name.lower() not in restricted:
field_length = field.length if hasattr(field, 'length') else None
arcpy.management.AddField(out_fc, field_name, FTYPES[field.type],
field_length=field_length,
field_alias=field.alias)
cur_fields.append(field_name)
fMap.append(field.name)
# insert cursor to write rows manually
with arcpy.da.InsertCursor(out_fc, cur_fields + ['SHAPE@']) as irows:
for row in Cursor(feature_set, fMap + ['SHAPE@']).get_rows():
irows.insertRow(row.values)
if not isShp and include_domains in (True, 1, TRUE):
gdb_domains = arcpy.Describe(ws).domains
dom_map = {}
for field in feature_set.fields:
if field.get(DOMAIN):
field_name = field.name.split('.')[-1]
dom_map[field_name] = field.domain[NAME]
if field.domain[NAME] not in gdb_domains:
if CODED_VALUES in field.domain:
dType = CODED
else:
dType = RANGE_UPPER
arcpy.management.CreateDomain(ws, field.domain[NAME],
field.domain[NAME],
FTYPES[field.type],
dType)
if dType == CODED:
for cv in field.domain[CODED_VALUES]:
arcpy.management.AddCodedValueToDomain(ws, field.domain[NAME], cv[CODE], cv[NAME])
elif dType == RANGE_UPPER:
_min, _max = field.domain[RANGE]
arcpy.management.SetValueForRangeDomain(ws, field.domain[NAME], _min, _max)
gdb_domains.append(field.domain[NAME])
print('Added domain "{}" to database: "{}"'.format(field.domain[NAME], ws))
# add domains
if not isShp and include_domains:
field_list = [f.name.split('.')[-1] for f in arcpy.ListFields(out_fc)]
for fld, dom_name in dom_map.iteritems():
if fld in field_list:
arcpy.management.AssignDomainToField(out_fc, fld, dom_name)
print('Assigned domain "{}" to field "{}"'.format(dom_name, fld))
# copy in_memory fc to shapefile
if isShp:
arcpy.management.CopyFeatures(out_fc, original)
if arcpy.Exists(temp):
arcpy.management.Delete(temp)
print('Created: "{0}"'.format(original))
return original
else:
def exportFeatureSet(feature_set, out_fc, outSR=None, **kwargs):
"""export features (JSON result) to shapefile or feature class
Required:
out_fc -- output feature class or shapefile
feature_set -- JSON response (feature set) obtained from a query
Optional:
outSR -- optional output spatial reference. If none set, will default
to SR of result_query feature set.
"""
# validate features input (should be list or dict, preferably list)
if not isinstance(feature_set, FeatureSet):
feature_set = FeatureSet(feature_set)
# make new shapefile
fields = feature_set.fields
this_sr = feature_set.getSR()
if not outSR:
outSR = this_sr
else:
if this_sr:
if outSR != this_sr:
# do not change without reprojecting...
outSR = this_sr
g_type = getattr(feature_set, GEOMETRY_TYPE)
# add all fields
w = shp_helper.ShpWriter(G_DICT[g_type].upper(), out_fc)
field_map = []
for fld in fields:
if fld.type not in [OID, SHAPE] + SKIP_FIELDS.keys():
if not any(['shape_' in fld.name.lower(),
'shape.' in fld.name.lower(),
'(shape)' in fld.name.lower(),
'objectid' in fld.name.lower(),
fld.name.lower() == 'fid']):
field_name = fld.name.split('.')[-1][:10]
field_type = SHP_FTYPES[fld.type]
field_length = str(fld.length) if hasattr(fld, 'length') else "50"
w.add_field(field_name, field_type, field_length)
field_map.append((fld.name, field_name))
# search cursor to write rows
s_fields = [fl for fl in fields if fl.name in [f[0] for f in field_map]]
for feat in feature_set:
row = [feat.get(field) for field in [f[0] for f in field_map]]
w.add_row(Geometry(feat.geometry).asShape(), row)
w.save()
print('Created: "{0}"'.format(out_fc))
# write projection file
project(out_fc, outSR)
return out_fc
def exportGeometryCollection(gc, output, **kwargs):
"""Exports a goemetry collection to shapefile or feature class
Required:
gc -- GeometryCollection() object
output -- output data set (will be geometry only)
"""
if isinstance(gc, Geometry):
gc = GeometryCollection(gc)
if not isinstance(gc, GeometryCollection):
raise ValueError('Input is not a GeometryCollection!')
fs_dict = {}
fs_dict[SPATIAL_REFERENCE] = {WKID: gc.spatialReference}
fs_dict[GEOMETRY_TYPE] = gc.geometryType
fs_dict[DISPLAY_FIELD_NAME] = ''
fs_dict[FIELD_ALIASES] = {OBJECTID: OBJECTID}
fs_dict[FIELDS] = [{NAME: OBJECTID,
TYPE: OID,
ALIAS: OBJECTID}]
fs_dict[FEATURES] = [{ATTRIBUTES: {OBJECTID:i+1}, GEOMETRY:ft.json} for i,ft in enumerate(gc)]
fs = FeatureSet(fs_dict)
return exportFeatureSet(fs, output, **kwargs)
def featureIterator(obj):
if hasattr(obj, 'features'):
for ft in iter(obj.features):
yield Feature(ft)
FeatureSet.__iter__ = featureIterator
class Cursor(FeatureSet):
"""Class to handle Cursor object"""
json = {}
fieldOrder = []
field_names = []
class BaseRow(object):
"""Class to handle Row object"""
def __init__(self, feature, spatialReference):
"""Row object for Cursor
Required:
feature -- features JSON object
"""
self.feature = Feature(feature) if not isinstance(feature, Feature) else feature
self.spatialReference = spatialReference
def get(self, field):
"""gets an attribute by field name
Required:
field -- name of field for which to get the value
"""
return self.feature.attributes.get(field)
def __init__(self, feature_set, fieldOrder=[]):
"""Cursor object for a feature set
Required:
feature_set -- feature set as json or restapi.FeatureSet() object
Optional:
fieldOrder -- order of fields for cursor row returns. To explicitly
specify and OBJECTID field or Shape (geometry field), you must use
the field tokens 'OID@' and 'SHAPE@' respectively.
"""
if isinstance(feature_set, FeatureSet):
feature_set = feature_set.json
super(Cursor, self).__init__(feature_set)
self.fieldOrder = self.__validateOrderBy(fieldOrder)
cursor = self
class Row(cursor.BaseRow):
"""Class to handle Row object"""
@property
def geometry(self):
"""returns a restapi Geometry() object"""
if GEOMETRY in self.feature.json:
gd = {k: v for k,v in self.feature.geometry.iteritems()}
if SPATIAL_REFERENCE not in gd:
gd[SPATIAL_REFERENCE] = cursor.spatialReference
return Geometry(gd)
return None
@property
def oid(self):
"""returns the OID for row"""
if cursor.OIDFieldName:
return self.get(cursor.OIDFieldName)
return None
@property
def values(self):
"""returns values as tuple"""
# fix date format in milliseconds to datetime.datetime()
vals = []
for field in cursor.field_names:
if field in cursor.date_fields and self.get(field):
vals.append(mil_to_date(self.get(field)))
elif field in cursor.long_fields and self.get(field):
vals.append(long(self.get(field)))
else:
if field == OID_TOKEN:
vals.append(self.oid)
elif field == SHAPE_TOKEN:
if self.geometry:
vals.append(self.geometry.asShape())
else:
vals.append(None) #null Geometry
else:
vals.append(self.get(field))
return tuple(vals)
def __getitem__(self, i):
"""allows for getting a field value by index"""
return self.values[i]
# expose Row object
self.__Row = Row
@property
def date_fields(self):
"""gets the names of any date fields within feature set"""
return [f.name for f in self.fields if f.type == DATE_FIELD]
@property
def long_fields(self):
"""field names of type Long Integer, need to know this for use with
arcpy.da.InsertCursor() as the values need to be cast to long
"""
return [f.name for f in self.fields if f.type == LONG_FIELD]
@property
def field_names(self):
"""gets the field names for feature set"""
names = []
for f in self.fieldOrder:
if f == OID_TOKEN and self.OIDFieldName:
names.append(self.OIDFieldName)
elif f == SHAPE_TOKEN and self.ShapeFieldName:
names.append(self.ShapeFieldName)
else:
names.append(f)
return names
def get_rows(self):
"""returns row objects"""
for feature in self.features:
yield self._createRow(feature, self.spatialReference)
def rows(self):
"""returns Cursor.rows() as generator"""
for feature in self.features:
yield self._createRow(feature, self.spatialReference).values
def getRow(self, index):
"""returns row object at index"""
return self._createRow(self.features[index], self.spatialReference)
def _toJson(self, row):
"""casts row to json"""
if isinstance(row, (list, tuple)):
ft = {ATTRIBUTES: {}}
for i,f in enumerate(self.field_names):
if f != self.ShapeFieldName and f.upper() != SHAPE_TOKEN:
val = row[i]
if f in self.date_fields:
ft[ATTRIBUTES][f] = date_to_mil(val) if isinstance(val, datetime.datetime) else val
elif f in self.long_fields:
ft[ATTRIBUTES][f] = long(val) if val is not None else val
else:
ft[ATTRIBUTES][f] = val
else:
geom = row[i]
if isinstance(geom, Geometry):
ft[GEOMETRY] = {k:v for k,v in geom.json.iteritems() if k != SPATIAL_REFERENCE}
else:
ft[GEOMETRY] = {k:v for k,v in Geometry(geom).json.iteritems() if k != SPATIAL_REFERENCE}
return Feature(ft)
elif isinstance(row, self.BaseRow):
return row.feature
elif isinstance(row, Feature):
return row
elif isinstance(row, dict):
return Feature(row)
def __iter__(self):
"""returns Cursor.rows()"""
return self.rows()
def _createRow(self, feature, spatialReference):
return self.__Row(feature, spatialReference)
def __validateOrderBy(self, fields):
"""fixes "fieldOrder" input fields, accepts esri field tokens too ("SHAPE@", "OID@")
Required:
fields -- list or comma delimited field list
"""
if not fields or fields == '*':
fields = [f.name for f in self.fields]
if isinstance(fields, basestring):
fields = fields.split(',')
for i,f in enumerate(fields):
if '@' in f:
fields[i] = f.upper()
if f == self.ShapeFieldName:
fields[i] = SHAPE_TOKEN
if f == self.OIDFieldName:
fields[i] = OID_TOKEN
return fields
def __repr__(self):
return object.__repr__(self)
class JsonReplica(JsonGetter):
"""represents a JSON replica"""
def __init__(self, in_json):
self.json = munch.munchify(in_json)
super(self.__class__, self).__init__()
class SQLiteReplica(sqlite3.Connection):
"""represents a replica stored as a SQLite database"""
def __init__(self, path):
"""represents a replica stored as a SQLite database, this should ALWAYS
be used with a context manager. For example:
with SQLiteReplica(r'C:\TEMP\replica.geodatabase') as con:
print con.list_tables()
# do other stuff
Required:
path -- full path to .geodatabase file (SQLite database)
"""
self.db = path
super(SQLiteReplica, self).__init__(self.db)
self.isClosed = False
@contextlib.contextmanager
def execute(self, sql):
"""Executes an SQL query. This method must be used via a "with" statement
to ensure the cursor connection is closed.
Required:
sql -- sql statement to use
>>> with restapi.SQLiteReplica(r'C:\Temp\test.geodatabase') as db:
>>> # now do a cursor using with statement
>>> with db.execute('SELECT * FROM Some_Table') as cur:
>>> for row in cur.fetchall():
>>> print(row)
"""
cursor = self.cursor()
try:
yield cursor.execute(sql)
finally:
cursor.close()
def list_tables(self, filter_esri=True):
"""returns a list of tables found within sqlite table
Optional:
filter_esri -- filters out all the esri specific tables (GDB_*, ST_*), default is True. If
False, all tables will be listed.
"""
with self.execute("select name from sqlite_master where type = 'table'") as cursor:
tables = cursor.fetchall()
if filter_esri:
return [t[0] for t in tables if not any([t[0].startswith('st_'),
t[0].startswith('GDB_'),
t[0].startswith('sqlite_')])]
else:
return [t[0] for t in tables]
def list_fields(self, table_name):
"""lists fields within a table, returns a list of tuples with the following attributes:
cid name type notnull dflt_value pk
---------- ---------- ---------- ---------- ---------- ----------
0 id integer 99 1
1 name 0 0
Required:
table_name -- name of table to get field list from
"""
with self.execute('PRAGMA table_info({})'.format(table_name)) as cur:
return cur.fetchall()
def exportToGDB(self, out_gdb_path):
"""exports the sqlite database (.geodatabase file) to a File Geodatabase, requires access to arcpy.
Warning: All cursor connections must be closed before running this operation! If there are open
cursors, this can lock down the database.
Required:
out_gdb_path -- full path to new file geodatabase (ex: r"C:\Temp\replica.gdb")
"""
if not has_arcpy:
raise NotImplementedError('no access to arcpy!')
if not hasattr(arcpy.conversion, COPY_RUNTIME_GDB_TO_FILE_GDB):
raise NotImplementedError('arcpy.conversion.{} tool not available!'.format(COPY_RUNTIME_GDB_TO_FILE_GDB))
self.cur.close()
if os.path.isdir(out_gdb_path):
out_gdb_path = os.path.join(out_gdb_path, self._fileName)
if not out_gdb_path.endswith('.gdb'):
out_gdb_path = os.path.splitext(out_gdb_path)[0] + '.gdb'
return arcpy.conversion.CopyRuntimeGdbToFileGdb(self.db, out_gdb_path).getOutput(0)
def __safe_cleanup(self):
"""close connection and remove temporary .geodatabase file"""
try:
self.close()
self.isClosed = True
if TEMP_DIR in self.db:
os.remove(self.db)
self.db = None
print('Cleaned up temporary sqlite database')
except:
pass
def __enter__(self):
return self
def __exit__(self, type, value, traceback):
self.__safe_cleanup()
def __del__(self):
self.__safe_cleanup()
class ArcServer(RESTEndpoint):
"""Class to handle ArcGIS Server Connection"""
def __init__(self, url, usr='', pw='', token='', proxy=None, referer=None):
super(ArcServer, self).__init__(url, usr, pw, token, proxy, referer)
self.service_cache = []
def getService(self, name_or_wildcard):
"""method to return Service Object (MapService, FeatureService, GPService, etc).
This method supports wildcards
Required:
name_or_wildcard -- service name or wildcard used to grab service name
(ex: "moun_webmap_rest/mapserver" or "*moun*mapserver")
"""
full_path = self.get_service_url(name_or_wildcard)
if full_path:
extension = full_path.split('/')[-1]
if extension == 'MapServer':
return MapService(full_path, token=self.token)
elif extension == 'FeatureServer':
return FeatureService(full_path, token=self.token)
elif extension == 'GPServer':
return GPService(full_path, token=self.token)
elif extension == 'ImageServer':
return ImageService(full_path, token=self.token)
elif extension == 'GeocodeServer':
return Geocoder(full_path, token=self.token)
else:
raise NotImplementedError('restapi does not support "{}" services!')
@property
def mapServices(self):
"""list of all MapServer objects"""
if not self.service_cache:
self.service_cache = self.list_services()
return [s for s in self.service_cache if s.endswith('MapServer')]
@property
def featureServices(self):
"""list of all MapServer objects"""
if not self.service_cache:
self.service_cache = self.list_services()
return [s for s in self.service_cache if s.endswith('FeatureServer')]
@property
def imageServices(self):
"""list of all MapServer objects"""
if not self.service_cache:
self.service_cache = self.list_services()
return [s for s in self.service_cache if s.endswith('ImageServer')]
@property
def gpServices(self):
"""list of all MapServer objects"""
if not self.service_cache:
self.service_cache = self.list_services()
return [s for s in self.service_cache if s.endswith('GPServer')]
def folder(self, name):
"""returns a restapi.Folder() object
Required:
name -- name of folder
"""
return Folder('/'.join([self.ur, name]), token=self.token)
def list_services(self, filterer=True):
"""returns a list of all services"""
return list(self.iter_services(filterer))
def iter_services(self, token='', filterer=True):
"""returns a generator for all services
Required:
service -- full path to a rest services directory
Optional:
token -- token to handle security (only required if security is enabled)
"""
self.service_cache = []
for s in self.services:
full_service_url = '/'.join([self.url, s[NAME], s[TYPE]])
self.service_cache.append(full_service_url)
yield full_service_url
for s in self.folders:
new = '/'.join([self.url, s])
resp = self.request(new)
for serv in resp[SERVICES]:
full_service_url = '/'.join([self.url, serv[NAME], serv[TYPE]])
self.service_cache.append(full_service_url)
yield full_service_url
def get_service_url(self, wildcard='*', _list=False):
"""method to return a service url
Optional:
wildcard -- wildcard used to grab service name (ex "moun*featureserver")
_list -- default is false. If true, will return a list of all services
matching the wildcard. If false, first match is returned.
"""
if not self.service_cache:
self.list_services()
if '*' in wildcard:
if wildcard == '*':
return self.service_cache[0]
else:
if _list:
return [s for s in self.service_cache if fnmatch.fnmatch(s, wildcard)]
for s in self.service_cache:
if fnmatch.fnmatch(s, wildcard):
return s
else:
if _list:
return [s for s in self.service_cache if wildcard.lower() in s.lower()]
for s in self.service_cache:
if wildcard.lower() in s.lower():
return s
print('"{0}" not found in services'.format(wildcard))
return ''
def get_folders(self):
"""method to get folder objects"""
folder_objects = []
for folder in self.folders:
folder_url = '/'.join([self.url, folder])
folder_objects.append(Folder(folder_url, self.token))
return folder_objects
def walk(self):
"""method to walk through ArcGIS REST Services. ArcGIS Server only supports single
folder heiarchy, meaning that there cannot be subdirectories within folders.
will return tuple of the root folder and services from the topdown.
(root, services) example:
ags = restapi.ArcServer(url, username, password)
for root, folders, services in ags.walk():
print root
print services
print '\n\n'
"""
self.service_cache = []
services = []
for s in self.services:
qualified_service = '/'.join([s[NAME], s[TYPE]])
full_service_url = '/'.join([self.url, qualified_service])
services.append(qualified_service)
self.service_cache.append(full_service_url)
yield (self.url, services)
for f in self.folders:
new = '/'.join([self.url, f])
endpt = self.request(new)
services = []
for serv in endpt[SERVICES]:
qualified_service = '/'.join([serv[NAME], serv[TYPE]])
full_service_url = '/'.join([self.url, qualified_service])
services.append(qualified_service)
self.service_cache.append(full_service_url)
yield (f, services)
def __iter__(self):
"""returns an generator for services"""
return self.list_services()
def __len__(self):
"""returns number of services"""
return len(self.service_cache)
def __repr__(self):
parsed = urlparse.urlparse(self.url)
try:
instance = parsed.path.split('/')[1]
except IndexError:
instance = '?'
return '<ArcServer: "{}" ("{}")>'.format(parsed.netloc, instance)
class MapServiceLayer(RESTEndpoint, SpatialReferenceMixin, FieldsMixin):
"""Class to handle advanced layer properties"""
def _fix_fields(self, fields):
"""fixes input fields, accepts esri field tokens too ("SHAPE@", "OID@"), internal
method used for cursors.
Required:
fields -- list or comma delimited field list
"""
field_list = []
if fields == '*':
return fields
elif isinstance(fields, basestring):
fields = fields.split(',')
if isinstance(fields, list):
all_fields = self.list_fields()
for f in fields:
if '@' in f:
if f.upper() == SHAPE_TOKEN:
if self.ShapeFieldName:
field_list.append(self.ShapeFieldName)
elif f.upper() == OID_TOKEN:
if self.OIDFieldName:
field_list.append(self.OIDFieldName)
else:
if f in all_fields:
field_list.append(f)
return ','.join(field_list)
def iter_queries(self, where='1=1', add_params={}, max_recs=None, chunk_size=None, **kwargs):
"""generator to form where clauses to query all records. Will iterate through "chunks"
of OID's until all records have been returned (grouped by maxRecordCount)
*Thanks to Wayne Whitley for the brilliant idea to use itertools.izip_longest()
Optional:
where -- where clause for OID selection
max_recs -- maximum amount of records returned for all queries for OID fetch
chunk_size -- size of chunks for each iteration of query iterator
add_params -- dictionary with any additional params you want to add (can also use **kwargs)
token -- token to handle security (only required if security is enabled)
"""
if isinstance(add_params, dict):
add_params[RETURN_IDS_ONLY] = TRUE
# get oids
resp = self.query(where=where, add_params=add_params)
oids = sorted(resp.get(OBJECT_IDS, []))[:max_recs]
oid_name = resp.get(OID_FIELD_NAME, OBJECTID)
print('total records: {0}'.format(len(oids)))
# set returnIdsOnly to False
add_params[RETURN_IDS_ONLY] = FALSE
# iterate through groups to form queries
# overwrite max_recs here with transfer limit from service
if chunk_size and chunk_size < self.json.get(MAX_RECORD_COUNT, 1000):
max_recs = chunk_size
else:
max_recs = self.json.get(MAX_RECORD_COUNT, 1000)
for each in izip_longest(*(iter(oids),) * max_recs):
theRange = filter(lambda x: x != None, each) # do not want to remove OID "0"
if theRange:
_min, _max = min(theRange), max(theRange)
del each
yield '{0} >= {1} and {0} <= {2}'.format(oid_name, _min, _max)
def query(self, where='1=1', fields='*', add_params={}, records=None, exceed_limit=False, f=JSON, kmz='', **kwargs):
"""query layer and get response as JSON
Optional:
fields -- fields to return. Default is "*" to return all fields
where -- where clause
add_params -- extra parameters to add to query string passed as dict
records -- number of records to return. Default is None to return all
records within bounds of max record count unless exceed_limit is True
exceed_limit -- option to get all records in layer. This option may be time consuming
because the ArcGIS REST API uses default maxRecordCount of 1000, so queries
must be performed in chunks to get all records.
f -- return format, default is JSON. (html|json|kmz)
kmz -- full path to output kmz file. Only used if output format is "kmz".
kwargs -- extra parameters to add to query string passed as key word arguments,
will override add_params***
# default params for all queries
params = {'returnGeometry' : 'true', 'outFields' : fields,
'where': where, 'f' : 'json'}
"""
query_url = self.url + '/query'
# default params
params = {RETURN_GEOMETRY : TRUE, WHERE: where, F : f}
for k,v in add_params.iteritems():
params[k] = v
for k,v in kwargs.iteritems():
params[k] = v
if RESULT_RECORD_COUNT in params and self.compatible_with_version('10.3'):
params[RESULT_RECORD_COUNT] = min([int(params[RESULT_RECORD_COUNT]), self.get(MAX_RECORD_COUNT)])
# check for tokens (only shape and oid)
fields = self._fix_fields(fields)
params[OUT_FIELDS] = fields
# geometry validation
if self.type == FEATURE_LAYER and GEOMETRY in params:
geom = Geometry(params.get(GEOMETRY))
if SPATIAL_REL not in params:
params[SPATIAL_REL] = ESRI_INTERSECT
if isinstance(geom, Geometry):
if IN_SR not in params and geom.getSR():
params[IN_SR] = geom.getSR()
if getattr(geom, GEOMETRY_TYPE) and GEOMETRY_TYPE not in params:
params[GEOMETRY_TYPE] = getattr(geom, GEOMETRY_TYPE)
elif self.type == TABLE:
del params[RETURN_GEOMETRY]
# create kmz file if requested (does not support exceed_limit parameter)
if f == 'kmz':
r = self.request(query_url, params)
r.encoding = 'zlib_codec'
# write kmz using codecs
if not kmz:
kmz = validate_name(os.path.join(os.path.expanduser('~'), 'Desktop', '{}.kmz'.format(self.name)))
with codecs.open(kmz, 'wb') as f:
f.write(r.content)
print('Created: "{0}"'.format(kmz))
return kmz
else:
server_response = {}
if exceed_limit:
for i, where2 in enumerate(self.iter_queries(where, params, max_recs=records)):
sql = ' and '.join(filter(None, [where.replace('1=1', ''), where2])) #remove default
params[WHERE] = sql
resp = self.request(query_url, params)
if i < 1:
server_response = resp
else:
server_response[FEATURES] += resp[FEATURES]
else:
server_response = self.request(query_url, params)
# set fields to full field definition of the layer
flds = self.fieldLookup
if FIELDS in server_response:
for i,fld in enumerate(server_response.fields):
server_response.fields[i] = flds.get(fld.name)
if self.type == FEATURE_LAYER:
for key in (FIELDS, GEOMETRY_TYPE, SPATIAL_REFERENCE):
if key not in server_response:
if key == SPATIAL_REFERENCE:
server_response[key] = getattr(self, '_' + SPATIAL_REFERENCE)
else:
server_response[key] = getattr(self, key)
elif self.type == TABLE:
if FIELDS not in server_response:
server_response[FIELDS] = getattr(self, FIELDS)
if all(map(lambda k: k in server_response, [FIELDS, FEATURES])):
if records:
server_response[FEATURES] = server_response[FEATURES][:records]
return FeatureSet(server_response)
else:
if records:
if isinstance(server_response, list):
return server_response[:records]
return server_response
def query_related_records(self, objectIds, relationshipId, outFields='*', definitionExpression=None, returnGeometry=None, outSR=None, **kwargs):
"""Queries related records
Required:
objectIds -- list of object ids for related records
relationshipId -- id of relationship
Optional:
outFields -- output fields for related features
definitionExpression -- def query for output related records
returnGeometry -- option to return Geometry
outSR -- output spatial reference
kwargs -- optional key word args
"""
if not self.json.get(RELATIONSHIPS):
raise NotImplementedError('This Resource does not have any relationships!')
if isinstance(objectIds, (list, tuple)):
objectIds = ','.join(map(str, objectIds))
query_url = self.url + '/queryRelatedRecords'
params = {
OBJECT_IDS: objectIds,
RELATIONSHIP_ID: relationshipId,
OUT_FIELDS: outFields,
DEFINITION_EXPRESSION: definitionExpression,
RETURN_GEOMETRY: returnGeometry,
OUT_SR: outSR
}
for k,v in kwargs.iteritems():
params[k] = v
return RelatedRecords(self.request(query_url, params))
def select_by_location(self, geometry, geometryType='', inSR='', spatialRel=ESRI_INTERSECT, distance=0, units=ESRI_METER, add_params={}, **kwargs):
"""Selects features by location of a geometry, returns a feature set
Required:
geometry -- geometry as JSON
Optional:
geometryType -- type of geometry object, this can be gleaned automatically from the geometry input
inSR -- input spatial reference
spatialRel -- spatial relationship applied on the input geometry when performing the query operation
distance -- distance for search
units -- units for distance, only used if distance > 0 and if supportsQueryWithDistance is True
add_params -- dict containing any other options that will be added to the query
kwargs -- keyword args to add to the query
Spatial Relationships:
esriSpatialRelIntersects | esriSpatialRelContains | esriSpatialRelCrosses | esriSpatialRelEnvelopeIntersects | esriSpatialRelIndexIntersects
| esriSpatialRelOverlaps | esriSpatialRelTouches | esriSpatialRelWithin | esriSpatialRelRelation
Unit Options:
esriSRUnit_Meter | esriSRUnit_StatuteMile | esriSRUnit_Foot | esriSRUnit_Kilometer | esriSRUnit_NauticalMile | esriSRUnit_USNauticalMile
"""
geometry = Geometry(geometry)
if not geometryType:
geometryType = geometry.geometryType
if not inSR:
inSR = geometry.getSR()
params = {GEOMETRY: geometry,
GEOMETRY_TYPE: geometryType,
SPATIAL_REL: spatialRel,
IN_SR: inSR,
}
if int(distance):
params[DISTANCE] = distance
params[UNITS] = units
# add additional params
for k,v in add_params.iteritems():
if k not in params:
params[k] = v
# add kwargs
for k,v in kwargs.iteritems():
if k not in params:
params[k] = v
return FeatureSet(self.query(add_params=params))
def layer_to_kmz(self, out_kmz='', flds='*', where='1=1', params={}):
"""Method to create kmz from query
Optional:
out_kmz -- output kmz file path, if none specified will be saved on Desktop
flds -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
where -- optional where clause
params -- dictionary of parameters for query
"""
return query(self.url, flds, where=where, add_params=params, ret_form='kmz', token=self.token, kmz=out_kmz)
def getOIDs(self, where='1=1', max_recs=None, **kwargs):
"""return a list of OIDs from feature layer
Optional:
where -- where clause for OID selection
max_recs -- maximimum number of records to return (maxRecordCount does not apply)
**kwargs -- optional key word arguments to further limit query (i.e. add geometry interesect)
"""
p = {RETURN_IDS_ONLY:TRUE,
RETURN_GEOMETRY: FALSE,
OUT_FIELDS: ''}
# add kwargs if specified
for k,v in kwargs.iteritems():
if k not in p.keys():
p[k] = v
return sorted(self.query(where=where, add_params=p)[OBJECT_IDS])[:max_recs]
def getCount(self, where='1=1', **kwargs):
"""get count of features, can use optional query and **kwargs to filter
Optional:
where -- where clause
kwargs -- keyword arguments for query operation
"""
return len(self.getOIDs(where, **kwargs))
def attachments(self, oid, gdbVersion=''):
"""query attachments for an OBJECTDID
Required:
oid -- object ID
Optional:
gdbVersion -- Geodatabase version to query, only supported if self.isDataVersioned is true
"""
if self.hasAttachments:
query_url = '{0}/{1}/attachments'.format(self.url, oid)
r = self.request(query_url)
add_tok = ''
if self.token:
add_tok = '?token={}'.format(self.token.token if isinstance(self.token, Token) else self.token)
if ATTACHMENT_INFOS in r:
for attInfo in r[ATTACHMENT_INFOS]:
att_url = '{}/{}'.format(query_url, attInfo[ID])
attInfo[URL] = att_url
if self._proxy:
attInfo[URL_WITH_TOKEN] = '?'.join([self._proxy, att_url])
else:
attInfo[URL_WITH_TOKEN] = att_url + ('?token={}'.format(self.token) if self.token else '')
keys = []
if r[ATTACHMENT_INFOS]:
keys = r[ATTACHMENT_INFOS][0].keys()
props = list(set(['id', 'name', 'size', 'contentType', 'url', 'urlWithToken'] + keys))
class Attachment(namedtuple('Attachment', ' '.join(props))):
"""class to handle Attachment object"""
__slots__ = ()
def __new__(cls, **kwargs):
return super(Attachment, cls).__new__(cls, **kwargs)
def __repr__(self):
if hasattr(self, ID) and hasattr(self, NAME):
return '<Attachment ID: {} ({})>'.format(self.id, self.name)
else:
return '<Attachment> ?'
def blob(self):
"""download the attachment to specified path
out_path -- output path for attachment
optional:
name -- name for output file. If left blank, will be same as attachment.
verbose -- if true will print sucessful download message
"""
b = ''
resp = requests.get(getattr(self, URL_WITH_TOKEN), stream=True, verify=False)
for chunk in resp.iter_content(1024 * 16):
b += chunk
return b
def download(self, out_path, name='', verbose=True):
"""download the attachment to specified path
out_path -- output path for attachment
optional:
name -- name for output file. If left blank, will be same as attachment.
verbose -- if true will print sucessful download message
"""
if not name:
out_file = assign_unique_name(os.path.join(out_path, self.name))
else:
ext = os.path.splitext(self.name)[-1]
out_file = os.path.join(out_path, name.split('.')[0] + ext)
resp = requests.get(getattr(self, URL_WITH_TOKEN), stream=True, verify=False)
with open(out_file, 'wb') as f:
for chunk in resp.iter_content(1024 * 16):
f.write(chunk)
if verbose:
print('downloaded attachment "{}" to "{}"'.format(self.name, out_path))
return out_file
return [Attachment(**a) for a in r[ATTACHMENT_INFOS]]
return []
else:
raise NotImplementedError('Layer "{}" does not support attachments!'.format(self.name))
def cursor(self, fields='*', where='1=1', add_params={}, records=None, exceed_limit=False):
"""Run Cursor on layer, helper method that calls Cursor Object
Optional:
fields -- fields to return. Default is "*" to return all fields
where -- where clause
add_params -- extra parameters to add to query string passed as dict
records -- number of records to return. Default is None to return all
records within bounds of max record count unless exceed_limit is True
exceed_limit -- option to get all records in layer. This option may be time consuming
because the ArcGIS REST API uses default maxRecordCount of 1000, so queries
must be performed in chunks to get all records.
"""
cur_fields = self._fix_fields(fields)
fs = self.query(where, cur_fields, add_params, records, exceed_limit)
return Cursor(fs, fields)
def export_layer(self, out_fc, fields='*', where='1=1', records=None, params={}, exceed_limit=False, sr=None,
include_domains=True, include_attachments=False, qualified_fieldnames=False, **kwargs):
"""Method to export a feature class or shapefile from a service layer
Required:
out_fc -- full path to output feature class
Optional:
where -- optional where clause
params -- dictionary of parameters for query
fields -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
records -- number of records to return. Default is none, will return maxRecordCount
exceed_limit -- option to get all records. If true, will recursively query REST endpoint
until all records have been gathered. Default is False.
sr -- output spatial refrence (WKID)
include_domains -- if True, will manually create the feature class and add domains to GDB
if output is in a geodatabase.
include_attachments -- if True, will export features with attachments. This argument is ignored
when the "out_fc" param is not a feature class, or the ObjectID field is not included in "fields"
param or if there is no access to arcpy.
qualified_fieldnames -- option to keep qualified field names, default is False.
"""
if self.type in (FEATURE_LAYER, TABLE):
# make new feature class
if not sr:
sr = self.getSR()
else:
params[OUT_SR] = sr
# do query to get feature set
fs = self.query(where, fields, params, records, exceed_limit, **kwargs)
# get any domain info
f_dict = {f.name: f for f in self.fields}
for field in fs.fields:
field.domain = f_dict[field.name].get(DOMAIN)
if has_arcpy:
out_fc = exportFeatureSet(fs, out_fc, include_domains)
fc_ws, fc_ws_type = find_ws_type(out_fc)
if all([include_attachments, self.hasAttachments, fs.OIDFieldName, fc_ws_type != 'FileSystem']):
# get attachments (OID will start at 1)
att_folder = os.path.join(arcpy.env.scratchFolder, '{}_Attachments'.format(os.path.basename(out_fc)))
if not os.path.exists(att_folder):
os.makedirs(att_folder)
att_dict, att_ids = {}, []
for i,row in enumerate(fs):
att_id = 'P-{}'.format(i + 1)
att_ids.append(att_id)
att_dict[att_id] = []
for att in self.attachments(row.get(fs.OIDFieldName)):
out_att = att.download(att_folder, verbose=False)
att_dict[att_id].append(os.path.join(out_att))
# photo field (hopefully this is a unique field name...)
PHOTO_ID = 'PHOTO_ID_X_Y_Z__'
arcpy.management.AddField(out_fc, PHOTO_ID, 'TEXT')
with arcpy.da.UpdateCursor(out_fc, PHOTO_ID) as rows:
for i,row in enumerate(rows):
rows.updateRow((att_ids[i],))
# create temp table
arcpy.management.EnableAttachments(out_fc)
tmp_tab = r'in_memory\temp_photo_points'
arcpy.management.CreateTable(*os.path.split(tmp_tab))
arcpy.management.AddField(tmp_tab, PHOTO_ID, 'TEXT')
arcpy.management.AddField(tmp_tab, 'PATH', 'TEXT', field_length=255)
arcpy.management.AddField(tmp_tab, 'PHOTO_NAME', 'TEXT', field_length=255)
with arcpy.da.InsertCursor(tmp_tab, [PHOTO_ID, 'PATH', 'PHOTO_NAME']) as irows:
for k, att_list in att_dict.iteritems():
for v in att_list:
irows.insertRow((k,) + os.path.split(v))
# add attachments
arcpy.management.AddAttachments(out_fc, PHOTO_ID, tmp_tab, PHOTO_ID,
'PHOTO_NAME', in_working_folder=att_folder)
arcpy.management.Delete(tmp_tab)
arcpy.management.DeleteField(out_fc, PHOTO_ID)
try:
shutil.rmtree(att_folder)
except:
pass
print('added attachments to: "{}"'.format(out_fc))
else:
exportFeatureSet(fs, out_fc, outSR=sr)
else:
print('Layer: "{}" is not a Feature Layer!'.format(self.name))
return out_fc
def clip(self, poly, output, fields='*', out_sr='', where='', envelope=False, exceed_limit=True, **kwargs):
"""Method for spatial Query, exports geometry that intersect polygon or
envelope features.
Required:
poly -- polygon (or other) features used for spatial query
output -- full path to output feature class
Optional:
fields -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
out_sr -- output spatial refrence (WKID)
where -- optional where clause
envelope -- if true, the polygon features bounding box will be used. This option
can be used if the feature has many vertices or to check against the full extent
of the feature class
"""
in_geom = Geometry(poly)
sr = in_geom.getSR()
if envelope:
geojson = in_geom.envelopeAsJSON()
geometryType = ESRI_ENVELOPE
else:
geojson = in_geom.dumps()
geometryType = in_geom.geometryType
if not out_sr:
out_sr = sr
d = {GEOMETRY_TYPE: geometryType,
RETURN_GEOMETRY: TRUE,
GEOMETRY: geojson,
IN_SR : sr,
OUT_SR: out_sr,
SPATIAL_REL: kwargs.get(SPATIAL_REL) or ESRI_INTERSECT
}
return self.export_layer(output, fields, where, params=d, exceed_limit=True, sr=out_sr)
def __repr__(self):
"""string representation with service name"""
return '<{}: "{}" (id: {})>'.format(self.__class__.__name__, self.name, self.id)
class MapServiceTable(MapServiceLayer):
pass
def export_table(self, *args, **kwargs):
"""Method to export a feature class or shapefile from a service layer
Required:
out_fc -- full path to output feature class
Optional:
where -- optional where clause
params -- dictionary of parameters for query
fields -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
records -- number of records to return. Default is none, will return maxRecordCount
exceed_limit -- option to get all records. If true, will recursively query REST endpoint
until all records have been gathered. Default is False.
sr -- output spatial refrence (WKID)
include_domains -- if True, will manually create the feature class and add domains to GDB
if output is in a geodatabase.
include_attachments -- if True, will export features with attachments. This argument is ignored
when the "out_fc" param is not a feature class, or the ObjectID field is not included in "fields"
param or if there is no access to arcpy.
"""
return self.export_layer(*args, **kwargs)
def clip(self):
raise NotImplemented('Tabular Data cannot be clipped!')
def select_by_location(self):
raise NotImplemented('Select By Location not supported for tabular data!')
def layer_to_kmz(self):
raise NotImplemented('Tabular Data cannot be converted to KMZ!')
# LEGACY SUPPORT
MapServiceLayer.layer_to_fc = MapServiceLayer.export_layer
class MapService(BaseService):
def getLayerIdByName(self, name, grp_lyr=False):
"""gets a mapservice layer ID by layer name from a service (returns an integer)
Required:
name -- name of layer from which to grab ID
Optional:
grp_lyr -- default is false, does not return layer ID for group layers. Set
to true to search for group layers too.
"""
all_layers = self.layers
for layer in all_layers:
if fnmatch.fnmatch(layer[NAME], name):
if SUB_LAYER_IDS in layer:
if grp_lyr and layer[SUB_LAYER_IDS] != None:
return layer[ID]
elif not grp_lyr and not layer[SUB_LAYER_IDS]:
return layer[ID]
return layer[ID]
for tab in self.tables:
if fnmatch.fnmatch(tab.get(NAME), name):
return tab.get(ID)
print('No Layer found matching "{0}"'.format(name))
return None
def get_layer_url(self, name, grp_lyr=False):
"""returns the fully qualified path to a layer url by pattern match on name,
will return the first match.
Required:
name -- name of layer from which to grab ID
Optional:
grp_lyr -- default is false, does not return layer ID for group layers. Set
to true to search for group layers too.
"""
return '/'.join([self.url, str(self.getLayerIdByName(name,grp_lyr))])
def list_layers(self):
"""Method to return a list of layer names in a MapService"""
return [l.name for l in self.layers]
def list_tables(self):
"""Method to return a list of layer names in a MapService"""
return [t.name for t in self.tables]
def getNameFromId(self, lyrID):
"""method to get layer name from ID
Required:
lyrID -- id of layer for which to get name
"""
return [l.name for l in self.layers if l.id == lyrID][0]
def export(self, out_image, imageSR=None, bbox=None, bboxSR=None, size=None, dpi=96, format='png', transparent=True, **kwargs):
"""exports a map image
Required:
out_image -- full path to output image
Optional:
imageSR -- spatial reference for exported image
bbox -- bounding box as comma separated string
bboxSR -- spatial reference for bounding box
size -- comma separated string for the size of image in pixels. It is advised not to use
this parameter and let this method generate it automatically
dpi -- output resolution, default is 96
format -- image format, default is png8
transparent -- option to support transparency in exported image, default is True
kwargs -- any additional keyword arguments for export operation (must be supported by REST API)
Keyword Arguments can be found here:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/
"""
query_url = self.url + '/export'
# defaults if params not specified
if bbox and not size:
if isinstance(bbox, (list, tuple)):
size = ','.join(map(str, [abs(int(bbox[0]) - int(bbox[2])), abs(int(bbox[1]) - int(bbox[3]))]))
if isinstance(bbox, dict) or (isinstance(bbox, basestring) and bbox.startswith('{')):
print('it is a geometry object')
bbox = Geometry(bbox)
if isinstance(bbox, Geometry):
geom = bbox
bbox = geom.envelope()
bboxSR = geom.spatialReference
envJson = geom.envelopeAsJSON()
size = ','.join(map(str, [abs(envJson.get(XMAX) - envJson.get(XMIN)), abs(envJson.get(YMAX) - envJson.get(YMIN))]))
print('set size from geometry object: {}'.format(size))
if not bbox:
ie = self.initialExtent
bbox = ','.join(map(str, [ie.xmin, ie.ymin, ie.xmax, ie.ymax]))
if not size:
size = ','.join(map(str, [abs(int(ie.xmin) - int(ie.xmax)), abs(int(ie.ymin) - int(ie.ymax))]))
bboxSR = self.spatialReference
if not imageSR:
imageSR = self.spatialReference
# initial params
params = {FORMAT: format,
F: IMAGE,
IMAGE_SR: imageSR,
BBOX_SR: bboxSR,
BBOX: bbox,
TRANSPARENT: transparent,
DPI: dpi,
SIZE: size
}
# add additional params from **kwargs
for k,v in kwargs.iteritems():
if k not in params:
params[k] = v
# do post
r = self.request(query_url, params, ret_json=False)
# save image
with open(out_image, 'wb') as f:
f.write(r.content)
return r
def layer(self, name_or_id, **kwargs):
"""Method to return a layer object with advanced properties by name
Required:
name -- layer name (supports wildcard syntax*) or id (must be of type <int>)
"""
if isinstance(name_or_id, int):
# reference by id directly
return MapServiceLayer('/'.join([self.url, str(name_or_id)]), token=self.token)
layer_path = self.get_layer_url(name_or_id, self.token, **kwargs)
if layer_path:
return MapServiceLayer(layer_path, token=self.token, **kwargs)
else:
print('Layer "{0}" not found!'.format(name_or_id))
def table(self, name_or_id):
"""Method to return a layer object with advanced properties by name
Required:
name -- table name (supports wildcard syntax*) or id (must be of type <int>)
"""
if isinstance(name_or_id, int):
# reference by id directly
return MapServiceTable('/'.join([self.url, str(name_or_id)]), token=self.token)
layer_path = self.get_layer_url(name_or_id, self.token)
if layer_path:
return MapServiceTable(layer_path, token=self.token)
else:
print('Table "{0}" not found!'.format(name_or_id))
def cursor(self, layer_name, fields='*', where='1=1', records=None, add_params={}, exceed_limit=False):
"""Cusor object to handle queries to rest endpoints
Required:
layer_name -- name of layer in map service
Optional:
fields -- option to limit fields returned. All are returned by default
where -- where clause for cursor
records -- number of records to return (within bounds of max record count)
token --
add_params -- option to add additional search parameters
exceed_limit -- option to get all records in layer. This option may be time consuming
because the ArcGIS REST API uses default maxRecordCount of 1000, so queries
must be performed in chunks to get all records
"""
lyr = self.layer(layer_name)
return lyr.cursor(fields, where, add_params, records, exceed_limit)
def export_layer(self, layer_name, out_fc, fields='*', where='1=1',
records=None, params={}, exceed_limit=False, sr=None):
"""Method to export a feature class from a service layer
Required:
layer_name -- name of map service layer to export to fc
out_fc -- full path to output feature class
Optional:
where -- optional where clause
params -- dictionary of parameters for query
fields -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
records -- number of records to return. Default is none, will return maxRecordCount
exceed_limit -- option to get all records. If true, will recursively query REST endpoint
until all records have been gathered. Default is False.
sr -- output spatial refrence (WKID)
"""
lyr = self.layer(layer_name)
lyr.layer_to_fc(out_fc, fields, where,records, params, exceed_limit, sr)
def layer_to_kmz(self, layer_name, out_kmz='', flds='*', where='1=1', params={}):
"""Method to create kmz from query
Required:
layer_name -- name of map service layer to export to fc
Optional:
out_kmz -- output kmz file path, if none specified will be saved on Desktop
flds -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
where -- optional where clause
params -- dictionary of parameters for query
"""
lyr = self.layer(layer_name)
lyr.layer_to_kmz(flds, where, params, kmz=out_kmz)
def clip(self, layer_name, poly, output, fields='*', out_sr='', where='', envelope=False):
"""Method for spatial Query, exports geometry that intersect polygon or
envelope features.
Required:
layer_name -- name of map service layer to export to fc
poly -- polygon (or other) features used for spatial query
output -- full path to output feature class
Optional:
fields -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
sr -- output spatial refrence (WKID)
where -- optional where clause
envelope -- if true, the polygon features bounding box will be used. This option
can be used if the feature has many vertices or to check against the full extent
of the feature class
"""
lyr = self.layer(layer_name)
return lyr.clip(poly, output, fields, out_sr, where, envelope)
def __iter__(self):
for lyr in self.layers:
yield lyr
# Legacy support
MapService.layer_to_fc = MapService.export_layer
class FeatureService(MapService):
"""class to handle Feature Service
Required:
url -- image service url
Optional (below params only required if security is enabled):
usr -- username credentials for ArcGIS Server
pw -- password credentials for ArcGIS Server
token -- token to handle security (alternative to usr and pw)
proxy -- option to use proxy page to handle security, need to provide
full path to proxy url.
"""
@property
def replicas(self):
"""returns a list of replica objects"""
if self.syncEnabled:
reps = self.request(self.url + '/replicas')
return [namedTuple('Replica', r) for r in reps]
else:
return []
def layer(self, name_or_id):
"""Method to return a layer object with advanced properties by name
Required:
name -- layer name (supports wildcard syntax*) or layer id (int)
"""
if isinstance(name_or_id, int):
# reference by id directly
return FeatureLayer('/'.join([self.url, str(name_or_id)]), token=self.token)
layer_path = self.get_layer_url(name_or_id)
if layer_path:
return FeatureLayer(layer_path, token=self.token)
else:
print('Layer "{0}" not found!'.format(name_or_id))
def layer_to_kmz(self, layer_name, out_kmz='', flds='*', where='1=1', params={}):
"""Method to create kmz from query
Required:
layer_name -- name of map service layer to export to fc
Optional:
out_kmz -- output kmz file path, if none specified will be saved on Desktop
flds -- list of fields for fc. If none specified, all fields are returned.
Supports fields in list [] or comma separated string "field1,field2,.."
where -- optional where clause
params -- dictionary of parameters for query
"""
lyr = self.layer(layer_name)
lyr.layer_to_kmz(flds, where, params, kmz=out_kmz)
def createReplica(self, layers, replicaName, geometry='', geometryType='', inSR='', replicaSR='', dataFormat='json', returnReplicaObject=True, **kwargs):
"""query attachments, returns a JSON object
Required:
layers -- list of layers to create replicas for (valid inputs below)
replicaName -- name of replica
Optional:
geometry -- optional geometry to query features, if none supplied, will grab all features
geometryType -- type of geometry
inSR -- input spatial reference for geometry
replicaSR -- output spatial reference for replica data
dataFormat -- output format for replica (sqlite|json)
**kwargs -- optional keyword arguments for createReplica request
Special Optional Args:
returnReplicaObject -- option to return replica as an object (restapi.SQLiteReplica|restapi.JsonReplica)
based on the dataFormat of the replica. If the data format is sqlite and this parameter
is False, the data will need to be fetched quickly because the server will automatically clean
out the directory. The default cleanup for a sqlite file is 10 minutes. This option is set to True
by default. It is recommended to set this option to True if the output dataFormat is "sqlite".
Documentation on Server Directory Cleaning:
http://server.arcgis.com/en/server/latest/administer/linux/about-server-directories.htm
"""
if hasattr(self, SYNC_ENABLED) and not self.syncEnabled:
raise NotImplementedError('FeatureService "{}" does not support Sync!'.format(self.url))
# validate layers
if isinstance(layers, basestring):
layers = [l.strip() for l in layers.split(',')]
elif not isinstance(layers, (list, tuple)):
layers = [layers]
if all(map(lambda x: isinstance(x, int), layers)):
layers = ','.join(map(str, layers))
elif all(map(lambda x: isinstance(x, basestring), layers)):
layers = ','.join(map(str, filter(lambda x: x is not None,
[s.id for s in self.layers if s.name.lower()
in [l.lower() for l in layers]])))
if not geometry and not geometryType:
ext = self.initialExtent
inSR = self.initialExtent.spatialReference
geometry= ','.join(map(str, [ext.xmin,ext.ymin,ext.xmax,ext.ymax]))
geometryType = ESRI_ENVELOPE
inSR = self.spatialReference
useGeometry = False
else:
useGeometry = True
geometry = Geometry(geometry)
inSR = geometry.getSR()
geometryType = geometry.geometryType
if not replicaSR:
replicaSR = self.spatialReference
validated = layers.split(',')
options = {REPLICA_NAME: replicaName,
LAYERS: layers,
LAYER_QUERIES: '',
GEOMETRY: geometry,
GEOMETRY_TYPE: geometryType,
IN_SR: inSR,
REPLICA_SR: replicaSR,
TRANSPORT_TYPE: TRANSPORT_TYPE_URL,
RETURN_ATTACHMENTS: TRUE,
RETURN_ATTACHMENTS_DATA_BY_URL: TRUE,
ASYNC: FALSE,
F: PJSON,
DATA_FORMAT: dataFormat,
REPLICA_OPTIONS: '',
}
for k,v in kwargs.iteritems():
if k != SYNC_MODEL:
if k == LAYER_QUERIES:
if options[k]:
if isinstance(options[k], basestring):
options[k] = json.loads(options[k])
for key in options[k].keys():
options[k][key][USE_GEOMETRY] = useGeometry
options[k] = json.dumps(options[k], ensure_ascii=False)
else:
options[k] = v
if self.syncCapabilities.supportsPerReplicaSync:
options[SYNC_MODEL] = PER_REPLICA
else:
options[SYNC_MODEL] = PER_LAYER
if options[ASYNC] in (TRUE, True) and self.syncCapabilities.supportsAsync:
st = self.request(self.url + '/createReplica', options, )
while STATUS_URL not in st:
time.sleep(1)
else:
options[ASYNC] = 'false'
st = self.request(self.url + '/createReplica', options)
if returnReplicaObject:
return self.fetchReplica(st)
else:
return st
@staticmethod
def fetchReplica(rep_url):
"""fetches a replica from a server resource. This can be a url or a
dictionary/JSON object with a "URL" key. Based on the file name of the
replica, this will return either a restapi.SQLiteReplica() or
restapi.JsonReplica() object. The two valid file name extensions are ".json"
(restapi.JsonReplica) or ".geodatabase" (restapi.SQLiteReplica).
Required:
rep_url -- url or JSON object that contains url to replica file on server
If the file is sqlite, it is highly recommended to use a with statement to
work with the restapi.SQLiteReplica object so the connection is automatically
closed and the file is cleaned from disk. Example:
>>> url = 'http://someserver.com/arcgis/rest/directories/TEST/SomeService_MapServer/_ags_data{B7893BA273C164D96B7BEE588627B3EBC}.geodatabase'
>>> with FeatureService.fetchReplica(url) as replica:
>>> # this is a restapi.SQLiteReplica() object
>>> # list tables in database
>>> print(replica.list_tables())
>>> # export to file geodatabase <- requires arcpy access
>>> replica.exportToGDB(r'C\Temp\replica.gdb')
"""
if isinstance(rep_url, dict):
rep_url = st.get(URL_UPPER)
if rep_url.endswith('.geodatabase'):
resp = requests.get(rep_url, stream=True, verify=False)
fileName = rep_url.split('/')[-1]
db = os.path.join(TEMP_DIR, fileName)
with open(db, 'wb') as f:
for chunk in resp.iter_content(1024 * 16):
if chunk:
f.write(chunk)
return SQLiteReplica(db)
elif rep_url.endswith('.json'):
return JsonReplica(requests.get(self.url, verify=False).json())
return None
def replicaInfo(self, replicaID):
"""get replica information
Required:
replicaID -- ID of replica
"""
query_url = self.url + '/replicas/{}'.format(replicaID)
return namedTuple('ReplicaInfo', self.request(query_url))
def syncReplica(self, replicaID, **kwargs):
"""synchronize a replica. Must be called to sync edits before a fresh replica
can be obtained next time createReplica is called. Replicas are snapshots in
time of the first time the user creates a replica, and will not be reloaded
until synchronization has occured. A new version is created for each subsequent
replica, but it is cached data.
It is also recommended to unregister a replica
AFTER sync has occured. Alternatively, setting the "closeReplica" keyword
argument to True will unregister the replica after sync.
More info can be found here:
http://server.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-offline-use.htm
and here for key word argument parameters:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Synchronize_Replica/02r3000000vv000000/
Required:
replicaID -- ID of replica
"""
query_url = self.url + '/synchronizeReplica'
params = {REPLICA_ID: replicaID}
for k,v in kwargs.iteritems():
params[k] = v
return self.request(query_url, params)
def unRegisterReplica(self, replicaID):
"""unregisters a replica on the feature service
Required:
replicaID -- the ID of the replica registered with the service
"""
query_url = self.url + '/unRegisterReplica'
params = {REPLICA_ID: replicaID}
return self.request(query_url, params)
class FeatureLayer(MapServiceLayer):
def __init__(self, url='', usr='', pw='', token='', proxy=None, referer=None):
"""class to handle Feature Service Layer
Required:
url -- feature service layer url
Optional (below params only required if security is enabled):
usr -- username credentials for ArcGIS Server
pw -- password credentials for ArcGIS Server
token -- token to handle security (alternative to usr and pw)
proxy -- option to use proxy page to handle security, need to provide
full path to proxy url.
referer -- option to add Referer Header if required by proxy, this parameter
is ignored if no proxy is specified.
"""
super(FeatureLayer, self).__init__(url, usr, pw, token, proxy, referer)
# store list of EditResult() objects to track changes
self.editResults = []
def updateCursor(self, fields='*', where='1=1', add_params={}, records=None, exceed_limit=False, auto_save=True, useGlobalIds=False, **kwargs):
"""updates features in layer using a cursor, the applyEdits() method is automatically
called when used in a "with" statement and auto_save is True.
Optional:
fields -- fields to return. Default is "*" to return all fields
where -- where clause
add_params -- extra parameters to add to query string passed as dict
records -- number of records to return. Default is None to return all
records within bounds of max record count unless exceed_limit is True
exceed_limit -- option to get all records in layer. This option may be time consuming
because the ArcGIS REST API uses default maxRecordCount of 1000, so queries
must be performed in chunks to get all records.
auto_save -- automatically apply edits when using with statement,
if True, will apply edits on the __exit__ method.
useGlobalIds -- (added at 10.4) Optional parameter which is false by default. Requires
the layer's supportsApplyEditsWithGlobalIds property to be true. When set to true, the
features and attachments in the adds, updates, deletes, and attachments parameters are
identified by their globalIds. When true, the service adds the new features and attachments
while preserving the globalIds submitted in the payload. If the globalId of a feature
(or an attachment) collides with a pre-existing feature (or an attachment), that feature
and/or attachment add fails. Other adds, updates, or deletes are attempted if rollbackOnFailure
is false. If rollbackOnFailure is true, the whole operation fails and rolls back on any failure
including a globalId collision.
When useGlobalIds is true, updates and deletes are identified by each feature or attachment
globalId rather than their objectId or attachmentId.
kwargs -- any additional keyword arguments supported by the applyEdits method of the REST API, see
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Apply_Edits_Feature_Service_Layer/02r3000000r6000000/
"""
layer = self
class UpdateCursor(Cursor):
def __init__(self, feature_set, fieldOrder=[], auto_save=auto_save, useGlobalIds=useGlobalIds, **kwargs):
super(UpdateCursor, self).__init__(feature_set, fieldOrder)
self.useGlobalIds = useGlobalIds
self._deletes = []
self._updates = []
self._attachments = {
ADDS: [],
UPDATES: [],
DELETES: []
}
self._kwargs = {}
for k,v in kwargs.iteritems():
if k not in('feature_set', 'fieldOrder', 'auto_save'):
self._kwargs[k] = v
for i, f in enumerate(self.features):
ft = Feature(f)
oid = self._get_oid(ft)
self.features[i] = ft
@property
def has_oid(self):
try:
return hasattr(self, OID_FIELD_NAME) and getattr(self, OID_FIELD_NAME)
except:
return False
@property
def has_globalid(self):
try:
return hasattr(self, GLOBALID_FIELD_NAME) and getattr(self, GLOBALID_FIELD_NAME)
except:
return False
@property
def canEditByGlobalId(self):
return all([
self.useGlobalIds,
layer.canUseGlobalIdsForEditing,
self.has_globalid,
getattr(self, GLOBALID_FIELD_NAME) in self.field_names
])
def _find_by_oid(self, oid):
"""gets a feature by its OID"""
for ft in iter(self.features):
if self._get_oid(ft) == oid:
return ft
def _find_index_by_oid(self, oid):
"""gets the index of a Feature by it's OID"""
for i, ft in enumerate(self.features):
if self._get_oid(ft) == oid:
return i
def _replace_feature_with_oid(self, oid, feature):
"""replaces a feature with OID with another Feature"""
feature = self._toJson(feature)
if self._get_oid(feature) != oid:
feature.json[ATTRIBUTES][layer.OIDFieldName] = oid
for i, ft in enumerate(self.features):
if self._get_oid(ft) == oid:
self.features[i] = feature
def _find_by_globalid(self, globalid):
"""gets a feature by its GlobalId"""
for ft in iter(self.features):
if self._get_globalid(ft) == globalid:
return ft
def _find_index_by_globalid(self, globalid):
"""gets the index of a Feature by it's GlobalId"""
for i, ft in enumerate(self.features):
if self._get_globalid(ft) == globalid:
return i
def _replace_feature_with_globalid(self, globalid, feature):
"""replaces a feature with GlobalId with another Feature"""
feature = self._toJson(feature)
if self._get_globalid(feature) != globalid:
feature.json[ATTRIBUTES][layer.OIDFieldName] = globalid
for i, ft in enumerate(self.features):
if self._get_globalid(ft) == globalid:
self.features[i] = feature
def __enter__(self):
return self
def __exit__(self, type, value, traceback):
if isinstance(type, Exception):
raise type(value)
elif type is None and bool(auto_save):
self.applyEdits()
def rows(self):
"""returns Cursor.rows() as generator"""
for feature in self.features:
yield list(self._createRow(feature, self.spatialReference).values)
def _get_oid(self, row):
if isinstance(row, (int, long)):
return row
try:
return self._toJson(row).get(layer.OIDFieldName)
except:
return None
def _get_globalid(self, row):
if isinstance(row, (int, long)):
return row
try:
return self._toJson(row).get(layer.GlobalIdFieldName or getattr(self, GLOBALID_FIELD_NAME))
except:
return None
def _get_row_identifier(self, row):
"""gets the appropriate row identifier (OBJECTID or GlobalID)"""
if self.canEditByGlobalId:
return self._get_globalid(row)
return self._get_oid(row)
def addAttachment(self, row_or_oid, attachment, **kwargs):
"""adds an attachment
Required:
row_or_oid -- row returned from cursor or an OID/GlobalId
attachment -- full path to attachment
"""
if not hasattr(layer, HAS_ATTACHMENTS) or not getattr(layer, HAS_ATTACHMENTS):
raise NotImplemented('{} does not support attachments!'.format(layer))
if not self.has_oid:
raise ValueError('No OID field found! In order to add attachments, make sure the OID field is returned in the query.')
## # cannot get this to work :(
## if layer.canApplyEditsWithAttachments:
## att_key = DATA
## if isinstance(attachment, basestring) and attachment.startswith('{'):
## # this is an upload id?
## att_key = UPLOAD_ID
## att = {
## PARENT_GLOBALID: self._get_globalid(row_or_oid),
## att_key: attachment
## }
## self._attachments[ADDS].append(att)
## return
oid = self._get_oid(row_or_oid)
if oid:
return layer.addAttachment(oid, attachment, **kwargs)
raise ValueError('No valid OID or GlobalId found to add attachment!')
def updateAttachment(self, row_or_oid, attachmentId, attachment, **kwargs):
"""adds an attachment
Required:
row_or_oid -- row returned from cursor or an OID/GlobalId
attachment -- full path to attachment
"""
if not hasattr(layer, HAS_ATTACHMENTS) or not getattr(layer, HAS_ATTACHMENTS):
raise NotImplemented('{} does not support attachments!'.format(layer))
if not self.has_oid:
raise ValueError('No OID field found! In order to add attachments, make sure the OID field is returned in the query.')
## # cannot get this to work :(
## if layer.canApplyEditsWithAttachments:
## att_key = DATA
## if isinstance(attachment, basestring) and attachment.startswith('{'):
## # this is an upload id?
## att_key = UPLOAD_ID
## att = {
## PARENT_GLOBALID: self._get_globalid(row_or_oid),
## GLOBALID_CAMEL: attachmentId,
## att_key: attachment
## }
## self._attachments[UPDATES].append(att)
## return
oid = self._get_oid(row_or_oid)
if oid:
return layer.updateAttachment(oid, attachmentId, attachment, **kwargs)
raise ValueError('No valid OID or GlobalId found to add attachment!')
def deleteAttachments(self, row_or_oid, attachmentIds, **kwargs):
"""adds an attachment
Required:
row_or_oid -- row returned from cursor or an OID/GlobalId
attachment -- full path to attachment
"""
if not hasattr(layer, HAS_ATTACHMENTS) or not getattr(layer, HAS_ATTACHMENTS):
raise NotImplemented('{} does not support attachments!'.format(layer))
if not self.has_oid:
raise ValueError('No OID field found! In order to add attachments, make sure the OID field is returned in the query.')
oid = self._get_oid(row_or_oid)
if oid:
return layer.deleteAttachments(oid, attachmentIds, **kwargs)
raise ValueError('No valid OID or GlobalId found to add attachment!')
def updateRow(self, row):
"""updates the feature with values from updated row. If not used in context of
a "with" statement, updates will have to be applied manually after all edits are
made using the UpdateCursor.applyEdits() method. When used in the context of a
"with" statement, edits are automatically applied on __exit__.
Required:
row -- list/tuple/Feature/Row that has been updated
"""
row = self._toJson(row)
if self.canEditByGlobalId:
globalid = self._get_globalid(row)
self._replace_feature_with_globalid(globalid, row)
else:
oid = self._get_oid(row)
self._replace_feature_with_oid(oid, row)
self._updates.append(row)
def deleteRow(self, row):
"""deletes the row
Required:
row -- list/tuple/Feature/Row that has been updated
"""
oid = self._get_oid(row)
self.features.remove(self._find_by_oid(oid))
if oid:
self._deletes.append(oid)
def applyEdits(self):
attCount = filter(None, [len(atts) for op, atts in self._attachments.iteritems()])
if (self.has_oid or (self.has_globalid and layer.canUseGlobalIdsForEditing and self.useGlobalIds)) \
and any([self._updates, self._deletes, attCount]):
kwargs = {UPDATES: self._updates, DELETES: self._deletes}
if layer.canApplyEditsWithAttachments and self._attachments:
kwargs[ATTACHMENTS] = self._attachments
for k,v in self._kwargs.iteritems():
kwargs[k] = v
if layer.canUseGlobalIdsForEditing:
kwargs[USE_GLOBALIDS] = self.useGlobalIds
return layer.applyEdits(**kwargs)
elif not (self.has_oid or not (self.has_globalid and layer.canUseGlobalIdsForEditing and self.useGlobalIds)):
raise RuntimeError('Missing OID or GlobalId Field in Data!')
cur_fields = self._fix_fields(fields)
fs = self.query(where, cur_fields, add_params, records, exceed_limit)
return UpdateCursor(fs, fields)
def insertCursor(self, fields=[], template_name=None, auto_save=True):
"""inserts new features into layer using a cursor, , the applyEdits() method is automatically
called when used in a "with" statement and auto_save is True.
Required:
fields -- list of fields for cursor
Optional:
template_name -- name of template from type
auto_save -- automatically apply edits when using with statement,
if True, will apply edits on the __exit__ method.
"""
layer = self
field_names = [f.name for f in layer.fields if f.type not in (GLOBALID, OID)]
class InsertCursor(object):
def __init__(self, fields, template_name=None, auto_save=True):
self._adds = []
self.fields = fields
self.has_geometry = getattr(layer, TYPE) == FEATURE_LAYER
skip = (SHAPE_TOKEN, OID_TOKEN, layer.OIDFieldName)
if template_name:
try:
self.template = self.get_template(template_name).templates[0].prototype
except:
self.template = {ATTRIBUTES: {k: NULL for k in self.fields if k not in skip}}
else:
self.template = {ATTRIBUTES: {k: NULL for k in self.fields if k not in skip}}
if self.has_geometry:
self.template[GEOMETRY] = NULL
try:
self.geometry_index = self.fields.index(SHAPE_TOKEN)
except ValueError:
try:
self.geometry_index = self.fields.index(layer.shapeFieldName)
except ValueError:
self.geometry_index = None
def insertRow(self, row):
"""inserts a row into the InsertCursor._adds cache
Required:
row -- list/tuple/dict/Feature/Row that has been updated
"""
feature = {k:v for k,v in self.template.iteritems()}
if isinstance(row, (list, tuple)):
for i, value in enumerate(row):
try:
field = self.fields[i]
if field == SHAPE_TOKEN:
feature[GEOMETRY] = Geometry(value).json
else:
if isinstance(value, datetime.datetime):
value = date_to_mil(value)
feature[ATTRIBUTES][field] = value
except IndexError:
pass
self._adds.append(feature)
return
elif isinstance(row, Feature):
row = row.json
if isinstance(row, dict):
if GEOMETRY in row and self.has_geometry:
feature[GEOMETRY] = Geometry(row[GEOMETRY]).json
if ATTRIBUTES in row:
for f, value in row[ATTRIBUTES].iteritems():
if f in feature[ATTRIBUTES]:
if isinstance(value, datetime.datetime):
value = date_to_mil(value)
feature[ATTRIBUTES][f] = value
else:
for f, value in row.iteritems():
if f in feature[ATTRIBUTES]:
if isinstance(value, datetime.datetime):
value = date_to_mil(value)
feature[ATTRIBUTES][f] = value
elif f == SHAPE_TOKEN and self.has_geometry:
feature[GEOMETRY] = Geometry(value).json
self._adds.append(feature)
return
def applyEdits(self):
"""applies the edits to the layer"""
return layer.applyEdits(adds=self._adds)
def __enter__(self):
return self
def __exit__(self, type, value, traceback):
if isinstance(type, Exception):
raise type(value)
elif type is None and bool(auto_save):
self.applyEdits()
return InsertCursor(fields, template_name, auto_save)
@property
def canUseGlobalIdsForEditing(self):
"""will be true if the layer supports applying edits where globalid values
provided by the client are used. In order for supportsApplyEditsWithGlobalIds
to be true, layers must have a globalid column and have isDataVersioned as false.
Layers with hasAttachments as true additionally require attachments with globalids
and attachments related to features via the features globalid.
"""
return all([
self.compatible_with_version(10.4),
hasattr(self, SUPPORTS_APPLY_EDITS_WITH_GLOBALIDS),
getattr(self, SUPPORTS_APPLY_EDITS_WITH_GLOBALIDS)
])
@property
def canApplyEditsWithAttachments(self):
"""convenience property to check if attachments can be edited in
applyEdits() method"""
try:
return all([
self.compatible_with_version(10.4),
hasattr(self, HAS_ATTACHMENTS),
getattr(self, HAS_ATTACHMENTS)
])
except AttributeError:
return False
@staticmethod
def guess_content_type(attachment, content_type=''):
# use mimetypes to guess "content_type"
if not content_type:
content_type = mimetypes.guess_type(os.path.basename(attachment))[0]
if not content_type:
known = mimetypes.types_map
common = mimetypes.common_types
ext = os.path.splitext(attachment)[-1].lower()
if ext in known:
content_type = known[ext]
elif ext in common:
content_type = common[ext]
return content_type
def get_template(self, name=None):
"""returns a template by name
Optional:
name -- name of template
"""
type_names = [t.get(NAME) for t in self.json.get(TYPES, [])]
if name in type_names:
for t in self.json.get(TYPES, []):
if name == t.get(NAME):
return t
try:
return self.json.get(TYPES)[0]
except IndexError:
return {}
def addFeatures(self, features, gdbVersion='', rollbackOnFailure=True):
"""add new features to feature service layer
features -- esri JSON representation of features
ex:
adds = [{"geometry":
{"x":-10350208.415443439,
"y":5663994.806146532,
"spatialReference":
{"wkid":102100}},
"attributes":
{"Utility_Type":2,"Five_Yr_Plan":"No","Rating":None,"Inspection_Date":1429885595000}}]
"""
add_url = self.url + '/addFeatures'
if isinstance(features, (list, tuple)):
features = json.dumps(features, ensure_ascii=False)
params = {FEATURES: features,
GDB_VERSION: gdbVersion,
ROLLBACK_ON_FAILURE: rollbackOnFailure,
F: PJSON}
# add features
return self.__edit_handler(self.request(add_url, params))
def updateFeatures(self, features, gdbVersion='', rollbackOnFailure=True):
"""update features in feature service layer
Required:
features -- features to be updated (JSON)
Optional:
gdbVersion -- geodatabase version to apply edits
rollbackOnFailure -- specify if the edits should be applied only if all submitted edits succeed
# example syntax
updates = [{"geometry":
{"x":-10350208.415443439,
"y":5663994.806146532,
"spatialReference":
{"wkid":102100}},
"attributes":
{"Five_Yr_Plan":"Yes","Rating":90,"OBJECTID":1}}] #only fields that were changed!
"""
if isinstance(features, (list, tuple)):
features = json.dumps(features, ensure_ascii=False)
update_url = self.url + '/updateFeatures'
params = {FEATURES: features,
GDB_VERSION: gdbVersion,
ROLLBACK_ON_FAILURE: rollbackOnFailure,
F: JSON}
# update features
return self.__edit_handler(self.reques(update_url, params))
def deleteFeatures(self, oids='', where='', geometry='', geometryType='',
spatialRel='', inSR='', gdbVersion='', rollbackOnFailure=True):
"""deletes features based on list of OIDs
Optional:
oids -- list of oids or comma separated values
where -- where clause for features to be deleted. All selected features will be deleted
geometry -- geometry JSON object used to delete features.
geometryType -- type of geometry
spatialRel -- spatial relationship. Default is "esriSpatialRelationshipIntersects"
inSR -- input spatial reference for geometry
gdbVersion -- geodatabase version to apply edits
rollbackOnFailure -- specify if the edits should be applied only if all submitted edits succeed
oids format example:
oids = [1, 2, 3] # list
oids = "1, 2, 4" # as string
"""
if not geometryType:
geometryType = ESRI_ENVELOPE
if not spatialRel:
spatialRel = ESRI_INTERSECT
del_url = self.url + '/deleteFeatures'
if isinstance(oids, (list, tuple)):
oids = ', '.join(map(str, oids))
params = {OBJECT_IDS: oids,
WHERE: where,
GEOMETRY: geometry,
GEOMETRY_TYPE: geometryType,
SPATIAL_REL: spatialRel,
GDB_VERSION: gdbVersion,
ROLLBACK_ON_FAILURE: rollbackOnFailure,
F: JSON}
# delete features
return self.__edit_handler(self.request(del_url, params))
def applyEdits(self, adds=None, updates=None, deletes=None, attachments=None, gdbVersion=None, rollbackOnFailure=TRUE, useGlobalIds=False, **kwargs):
"""apply edits on a feature service layer
Optional:
adds -- features to add (JSON)
updates -- features to be updated (JSON)
deletes -- oids to be deleted (list, tuple, or comma separated string)
attachments -- attachments to be added, updated or deleted (added at version 10.4). Attachments
in this instance must use global IDs and the layer's "supportsApplyEditsWithGlobalIds" must
be true.
gdbVersion -- geodatabase version to apply edits
rollbackOnFailure -- specify if the edits should be applied only if all submitted edits succeed
useGlobalIds -- (added at 10.4) Optional parameter which is false by default. Requires
the layer's supportsApplyEditsWithGlobalIds property to be true. When set to true, the
features and attachments in the adds, updates, deletes, and attachments parameters are
identified by their globalIds. When true, the service adds the new features and attachments
while preserving the globalIds submitted in the payload. If the globalId of a feature
(or an attachment) collides with a pre-existing feature (or an attachment), that feature
and/or attachment add fails. Other adds, updates, or deletes are attempted if rollbackOnFailure
is false. If rollbackOnFailure is true, the whole operation fails and rolls back on any failure
including a globalId collision.
When useGlobalIds is true, updates and deletes are identified by each feature or attachment
globalId rather than their objectId or attachmentId.
kwargs -- any additional keyword arguments supported by the applyEdits method of the REST API, see
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Apply_Edits_Feature_Service_Layer/02r3000000r6000000/
attachments example (supported only in 10.4 and above):
{
"adds": [{
"globalId": "{55E85F98-FBDD-4129-9F0B-848DD40BD911}",
"parentGlobalId": "{02041AEF-4174-4d81-8A98-D7AC5B9F4C2F}",
"contentType": "image/pjpeg",
"name": "Pothole.jpg",
"uploadId": "{DD1D0A30-CD6E-4ad7-A516-C2468FD95E5E}"
},
{
"globalId": "{3373EE9A-4619-41B7-918B-DB54575465BB}",
"parentGlobalId": "{6FA4AA68-76D8-4856-971D-B91468FCF7B7}",
"contentType": "image/pjpeg",
"name": "Debree.jpg",
"data": "<base 64 encoded data>"
}
],
"updates": [{
"globalId": "{8FDD9AEF-E05E-440A-9426-1D7F301E1EBA}",
"contentType": "image/pjpeg",
"name": "IllegalParking.jpg",
"uploadId": "{57860BE4-3B85-44DD-A0E7-BE252AC79061}"
}],
"deletes": [
"{95059311-741C-4596-88EF-C437C50F7C00}",
" {18F43B1C-2754-4D05-BCB0-C4643C331C29}"
]
}
"""
edits_url = self.url + '/applyEdits'
if isinstance(adds, FeatureSet):
adds = json.dumps(adds.features, ensure_ascii=False, cls=RestapiEncoder)
elif isinstance(adds, (list, tuple)):
adds = json.dumps(adds, ensure_ascii=False, cls=RestapiEncoder)
if isinstance(updates, FeatureSet):
updates = json.dumps(updates.features, ensure_ascii=False, cls=RestapiEncoder)
elif isinstance(updates, (list, tuple)):
updates = json.dumps(updates, ensure_ascii=False, cls=RestapiEncoder)
if isinstance(deletes, (list, tuple)):
deletes = ', '.join(map(str, deletes))
params = {ADDS: adds,
UPDATES: updates,
DELETES: deletes,
GDB_VERSION: gdbVersion,
ROLLBACK_ON_FAILURE: rollbackOnFailure,
USE_GLOBALIDS: useGlobalIds
}
# handle attachment edits (added at version 10.4) cannot get this to work :(
## if self.canApplyEditsWithAttachments and isinstance(attachments, dict):
## for edit_type in (ADDS, UPDATES):
## if edit_type in attachments:
## for att in attachments[edit_type]:
## if att.get(DATA) and os.path.isfile(att.get(DATA)):
## # multipart encoded files
## ct = self.guess_content_type(att.get(DATA))
## if CONTENT_TYPE not in att:
## att[CONTENT_TYPE] = ct
## if NAME not in att:
## att[NAME] = os.path.basename(att.get(DATA))
## with open(att.get(DATA), 'rb') as f:
## att[DATA] = 'data:{};base64,'.format(ct) + base64.b64encode(f.read())
## print(att[DATA][:50])
## if GLOBALID_CAMEL not in att:
## att[GLOBALID_CAMEL] = 'f5e0f368-17a1-4062-b848-48eee2dee1d5'
## temp = {k:v for k,v in att.iteritems() if k != 'data'}
## temp[DATA] = att['data'][:50]
## print(json.dumps(temp, indent=2))
## params[ATTACHMENTS] = attachments
## if any([params[ATTACHMENTS].get(k) for k in (ADDS, UPDATES, DELETES)]):
## params[USE_GLOBALIDS] = TRUE
# add other keyword arguments
for k,v in kwargs.iteritems():
kwargs[k] = v
return self.__edit_handler(self.request(edits_url, params))
def addAttachment(self, oid, attachment, content_type='', gdbVersion=''):
"""add an attachment to a feature service layer
Required:
oid -- OBJECT ID of feature in which to add attachment
attachment -- path to attachment
Optional:
content_type -- html media type for "content_type" header. If nothing provided,
will use a best guess based on file extension (using mimetypes)
gdbVersion -- geodatabase version for attachment
valid content types can be found here @:
http://en.wikipedia.org/wiki/Internet_media_type
"""
if self.hasAttachments:
content_type = self.guess_content_type(attachment, content_type)
# make post request
att_url = '{}/{}/addAttachment'.format(self.url, oid)
files = {ATTACHMENT: (os.path.basename(attachment), open(attachment, 'rb'), content_type)}
params = {F: JSON}
if isinstance(self.token, Token) and self.token.isAGOL:
params[TOKEN] = str(self.token)
if gdbVersion:
params[GDB_VERSION] = gdbVersion
return self.__edit_handler(requests.post(att_url, params, files=files, cookies=self._cookie, verify=False).json(), oid)
else:
raise NotImplementedError('FeatureLayer "{}" does not support attachments!'.format(self.name))
def deleteAttachments(self, oid, attachmentIds, gdbVersion='', **kwargs):
"""deletes attachments in a feature layer
Required:
oid -- OBJECT ID of feature in which to add attachment
attachmentIds -- IDs of attachments to be deleted. If attachmentIds param is set to "All", all
attachments for this feature will be deleted.
Optional:
kwargs -- additional keyword arguments supported by deleteAttachments method
"""
if self.hasAttachments:
att_url = '{}/{}/deleteAttachments'.format(self.url, oid)
if isinstance(attachmentIds, (list, tuple)):
attachmentIds = ','.join(map(str, attachmentIds))
elif isinstance(attachmentIds, basestring) and attachmentIds.title() == 'All':
attachmentIds = ','.join(map(str, [getattr(att, ID) for att in self.attachments(oid)]))
if not attachmentIds:
return
params = {F: JSON, ATTACHMENT_IDS: attachmentIds}
if isinstance(self.token, Token) and self.token.isAGOL:
params[TOKEN] = str(self.token)
if gdbVersion:
params[GDB_VERSION] = gdbVersion
for k,v in kwargs.iteritems():
params[k] = v
return self.__edit_handler(requests.post(att_url, params, cookies=self._cookie, verify=False).json(), oid)
else:
raise NotImplementedError('FeatureLayer "{}" does not support attachments!'.format(self.name))
def updateAttachment(self, oid, attachmentId, attachment, content_type='', gdbVersion='', validate=False):
"""add an attachment to a feature service layer
Required:
oid -- OBJECT ID of feature in which to add attachment
attachmentId -- ID of feature attachment
attachment -- path to attachment
Optional:
content_type -- html media type for "content_type" header. If nothing provided,
will use a best guess based on file extension (using mimetypes)
gdbVersion -- geodatabase version for attachment
validate -- option to check if attachment ID exists within feature first before
attempting an update, this adds a small amount of overhead to method because
a request to fetch attachments is made prior to updating. Default is False.
valid content types can be found here @:
http://en.wikipedia.org/wiki/Internet_media_type
"""
if self.hasAttachments:
content_type = self.guess_content_type(attachment, content_type)
# make post request
att_url = '{}/{}/updateAttachment'.format(self.url, oid)
if validate:
if attachmentId not in [getattr(att, ID) for att in self.attachments(oid)]:
raise ValueError('Attachment with ID "{}" not found in Feature with OID "{}"'.format(oid, attachmentId))
files = {ATTACHMENT: (os.path.basename(attachment), open(attachment, 'rb'), content_type)}
params = {F: JSON, ATTACHMENT_ID: attachmentId}
if isinstance(self.token, Token) and self.token.isAGOL:
params[TOKEN] = str(self.token)
if gdbVersion:
params[GDB_VERSION] = gdbVersion
return self.__edit_handler(requests.post(att_url, params, files=files, cookies=self._cookie, verify=False).json(), oid)
else:
raise NotImplementedError('FeatureLayer "{}" does not support attachments!'.format(self.name))
def calculate(self, exp, where='1=1', sqlFormat='standard'):
"""calculate a field in a Feature Layer
Required:
exp -- expression as JSON [{"field": "Street", "value": "Main St"},..]
Optional:
where -- where clause for field calculator
sqlFormat -- SQL format for expression (standard|native)
Example expressions as JSON:
exp = [{"field" : "Quality", "value" : 3}]
exp =[{"field" : "A", "sqlExpression" : "B*3"}]
"""
if self.json.get(SUPPORTS_CALCULATE, False):
calc_url = self.url + '/calculate'
p = {WHERE: where,
CALC_EXPRESSION: json.dumps(exp, ensure_ascii=False),
SQL_FORMAT: sqlFormat}
return self.request(calc_url, params=p)
else:
raise NotImplementedError('FeatureLayer "{}" does not support field calculations!'.format(self.name))
def __edit_handler(self, response, feature_id=None):
"""hanlder for edit results
response -- response from edit operation
"""
e = EditResult(response, feature_id)
self.editResults.append(e)
e.summary()
return e
class FeatureTable(FeatureLayer, MapServiceTable):
pass
class GeometryService(RESTEndpoint):
linear_units = sorted(LINEAR_UNITS.keys())
_default_url = 'https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer'
def __init__(self, url=None, usr=None, pw=None, token=None, proxy=None, referer=None):
if not url:
# use default arcgis online Geometry Service
url = self._default_url
super(GeometryService, self).__init__(url, usr, pw, token, proxy, referer)
@staticmethod
def getLinearUnits():
"""returns a Munch() dictionary of linear units"""
return munch.munchify(LINEAR_UNITS)
@staticmethod
def getLinearUnitWKID(unit_name):
"""gets a well known ID from a unit name
Required:
unit_name -- name of unit to fetch WKID for. It is safe to use this as
a filter to ensure a valid WKID is extracted. if a WKID is passed in,
that same value is returned. This argument is expecting a string from
linear_units list. Valid options can be viewed with GeometryService.linear_units
"""
if isinstance(unit_name, int) or unicode(unit_name).isdigit():
return int(unit_name)
for k,v in LINEAR_UNITS.iteritems():
if k.lower() == unit_name.lower():
return int(v[WKID])
@staticmethod
def validateGeometries(geometries, use_envelopes=False):
"""validates geometries to be passed into operations that use an
array of geometries.
Required:
geometries -- list of geometries. Valid inputs are GeometryCollection()'s, json,
FeatureSet()'s, or Geometry()'s.
use_envelopes -- option to use envelopes of all the input geometires
"""
return GeometryCollection(geometries, use_envelopes)
@geometry_passthrough
def buffer(self, geometries, distances, unit='', inSR=None, outSR='', use_envelopes=False, **kwargs):
"""buffer a single geoemetry or multiple
Required:
geometries -- array of geometries to be buffered. The spatial reference of the geometries
is specified by inSR. The structure of each geometry in the array is the same as the
structure of the JSON geometry objects returned by the ArcGIS REST API. This should be
a restapi.GeometryCollection().
distances -- the distances that each of the input geometries is buffered. The distance units
are specified by unit.
Optional:
units -- input units (esriSRUnit_Meter|esriSRUnit_StatuteMile|esriSRUnit_Foot|esriSRUnit_Kilometer|
esriSRUnit_NauticalMile|esriSRUnit_USNauticalMile)
inSR -- wkid for input geometry
outSR -- wkid for output geometry
use_envelopes -- not a valid option in ArcGIS REST API, this is an extra argument that will
convert the geometries to bounding box envelopes ONLY IF they are restapi.Geometry objects,
otherwise this parameter is ignored.
restapi constants for units:
restapi.ESRI_METER
restapi.ESRI_MILE
restapi.ESRI_FOOT
restapi.ESRI_KILOMETER
restapi.ESRI_NAUTICAL_MILE
restapi.ESRI_US_NAUTICAL_MILE
"""
buff_url = self.url + '/buffer'
geometries = self.validateGeometries(geometries)
params = {F: PJSON,
GEOMETRIES: geometries,
IN_SR: inSR or geometries.getSR(),
DISTANCES: distances,
UNIT: self.getLinearUnitWKID(unit) or unit,
OUT_SR: outSR,
UNION_RESULTS: FALSE,
GEODESIC: TRUE,
OUT_SR: None,
BUFFER_SR: None
}
# add kwargs
for k,v in kwargs.iteritems():
if k not in (GEOMETRIES, DISTANCES, UNIT):
params[k] = v
# perform operation
print('params: {}'.format({k:v for k,v in params.iteritems() if k != GEOMETRIES}))
return GeometryCollection(self.request(buff_url, params),
spatialReference=outSR if outSR else inSR)
@geometry_passthrough
def intersect(self, geometries, geometry, sr):
"""performs intersection of input geometries and other geometry
Required:
geometries -- input geometries (GeometryCollection|FeatureSet|json|arcpy.mapping.Layer|FeatureClass|Shapefile)
Optional:
sr -- spatial reference for input geometries, if not specified will be derived from input geometries
"""
query_url = self.url + '/intersect'
geometries = self.validateGeometries(geometries)
sr = sr or geometries.getWKID() or NULL
params = {
GEOMETRY: geometry,
GEOMETRIES: geometries,
SR: sr
}
return GeometryCollection(self.request(query_url, params), spatialReference=sr)
def union(self, geometries, sr=None):
"""performs union on input geometries
Required:
geometries -- input geometries (GeometryCollection|FeatureSet|json|arcpy.mapping.Layer|FeatureClass|Shapefile)
Optional:
sr -- spatial reference for input geometries, if not specified will be derived from input geometries
"""
url = self.url + '/union'
geometries = self.validateGeometries(geometries)
sr = sr or geometries.getWKID() or NULL
params = {
GEOMETRY: geometries,
GEOMETRIES: geometries,
SR: sr
}
return Geometry(self.request(url, params), spatialReference=sr)
def findTransformations(self, inSR, outSR, extentOfInterest='', numOfResults=1):
"""finds the most applicable transformation based on inSR and outSR
Required:
inSR -- input Spatial Reference (wkid)
outSR -- output Spatial Reference (wkid)
Optional:
extentOfInterest --e bounding box of the area of interest specified as a
JSON envelope. If provided, the extent of interest is used to return
the most applicable geographic transformations for the area. If a spatial
reference is not included in the JSON envelope, the inSR is used for the
envelope.
numOfResults -- The number of geographic transformations to return. The
default value is 1. If numOfResults has a value of -1, all applicable
transformations are returned.
return looks like this:
[
{
"wkid": 15851,
"latestWkid": 15851,
"name": "NAD_1927_To_WGS_1984_79_CONUS"
},
{
"wkid": 8072,
"latestWkid": 1172,
"name": "NAD_1927_To_WGS_1984_3"
},
{
"geoTransforms": [
{
"wkid": 108001,
"latestWkid": 1241,
"transformForward": true,
"name": "NAD_1927_To_NAD_1983_NADCON"
},
{
"wkid": 108190,
"latestWkid": 108190,
"transformForward": false,
"name": "WGS_1984_(ITRF00)_To_NAD_1983"
}
]
}
]
"""
params = {IN_SR: inSR,
OUT_SR: outSR,
EXTENT_OF_INTEREST: extentOfInterest,
NUM_OF_RESULTS: numOfResults
}
res = self.request(self.url + '/findTransformations', params)
if int(numOfResults) == 1:
return res[0]
else:
return res
@geometry_passthrough
def project(self, geometries, inSR, outSR, transformation='', transformForward='false'):
"""project a single or group of geometries
Required:
geometries --
inSR --
outSR --
Optional:
transformation --
trasnformForward --
"""
params = {GEOMETRIES: self.validateGeometries(geometries),
IN_SR: inSR,
OUT_SR: outSR,
TRANSFORMATION: transformation,
TRANSFORM_FORWARD: transformForward
}
return GeometryCollection(self.request(self.url + '/project', params),
spatialReference=outSR if outSR else inSR)
def __repr__(self):
try:
return "<restapi.GeometryService: '{}'>".format(self.url.split('://')[1].split('/')[0])
except:
return '<restapi.GeometryService>'
class ImageService(BaseService):
geometry_service = None
def adjustbbox(self, boundingBox):
"""method to adjust bounding box for image clipping to maintain
cell size.
Required:
boundingBox -- bounding box string (comma separated)
"""
cell_size = int(self.pixelSizeX)
if isinstance(boundingBox, basestring):
boundingBox = boundingBox.split(',')
return ','.join(map(str, map(lambda x: Round(x, cell_size), boundingBox)))
def pointIdentify(self, geometry=None, **kwargs):
"""method to get pixel value from x,y coordinates or JSON point object
geometry -- input restapi.Geometry() object or point as json
Recognized key word arguments:
x -- x coordinate
y -- y coordinate
inSR -- input spatial reference. Should be supplied if spatial
reference is different from the Image Service's projection
geometry example:
geometry = {"x":3.0,"y":5.0,"spatialReference":{"wkid":102100}}
"""
IDurl = self.url + '/identify'
## if geometry is not None:
## if not isinstance(geometry, Geometry):
## geometry = Geometry(geometry)
##
## elif GEOMETRY in kwargs:
## g = Geometry(kwargs[GEOMETRY])
##
## elif X in kwargs and Y in kwargs:
## g = {X: kwargs[X], Y: kwargs[Y]}
## if SR in kwargs:
## g[SPATIAL_REFERENCE] = {WKID: kwargs[SR]}
## elif SPATIAL_REFERENCE in kwargs:
## g[SPATIAL_REFERENCE] = {WKID: kwargs[SPATIAL_REFERENCE]}
## else:
## g[SPATIAL_REFERENCE] = {WKID: self.getSR()}
## geometry = Geometry(g)
##
## else:
## raise ValueError('Not a valid input geometry!')
params = {
GEOMETRY: geometry.dumps(),
GEOMETRY_TYPE: geometry.geometryType,
F: JSON,
RETURN_GEOMETRY: FALSE,
RETURN_CATALOG_ITEMS: FALSE,
}
for k,v in kwargs.iteritems():
if k not in params:
params[k] = v
j = self.request(IDurl, params)
return j.get(VALUE)
def exportImage(self, poly, out_raster, envelope=False, rendering_rule=None, interp=BILINEAR_INTERPOLATION, nodata=None, **kwargs):
"""method to export an AOI from an Image Service
Required:
poly -- polygon features
out_raster -- output raster image
Optional:
envelope -- option to use envelope of polygon
rendering_rule -- rendering rule to perform raster functions as JSON
kwargs -- optional key word arguments for other parameters
"""
if not out_raster.endswith('.tif'):
out_raster = os.path.splitext(out_raster)[0] + '.tif'
query_url = '/'.join([self.url, EXPORT_IMAGE])
if isinstance(poly, Geometry):
in_geom = poly
else:
in_geom = Geometry(poly)
sr = in_geom.getSR()
if envelope:
geojson = in_geom.envelope()
geometryType = ESRI_ENVELOPE
else:
geojson = in_geom.dumps()
geometryType = in_geom.geometryType
## if sr != self.spatialReference:
## self.geometry_service = GeometryService()
## gc = self.geometry_service.project(in_geom, in_geom.spatialReference, self.getSR())
## in_geom = gc
# The adjust aspect ratio doesn't seem to fix the clean pixel issue
bbox = self.adjustbbox(in_geom.envelope())
#if not self.compatible_with_version(10.3):
# bbox = self.adjustbbox(in_geom.envelope())
#else:
# bbox = in_geom.envelope()
# imageSR
if IMAGE_SR not in kwargs:
imageSR = sr
else:
imageSR = kwargs[IMAGE_SR]
if NO_DATA in kwargs:
nodata = kwargs[NO_DATA]
# check for raster function availability
if not self.allowRasterFunction:
rendering_rule = None
# find width and height for image size (round to whole number)
## bbox_int = map(int, map(float, bbox.split(',')))
## width = abs(bbox_int[0] - bbox_int[2])
## height = abs(bbox_int[1] - bbox_int[3])
bbox_int = map(int, map(float, bbox.split(',')))
width = abs(bbox_int[0] - bbox_int[2]) / int(self.get(PIXEL_SIZE_X))
height = abs(bbox_int[1] - bbox_int[3]) / int(self.get(PIXEL_SIZE_Y))
matchType = NO_DATA_MATCH_ANY
if ',' in str(nodata):
matchType = NO_DATA_MATCH_ALL
# set params
p = {F: PJSON,
RENDERING_RULE: rendering_rule,
ADJUST_ASPECT_RATIO: TRUE,
BBOX: bbox,
FORMAT: TIFF,
IMAGE_SR: imageSR,
BBOX_SR: sr,
SIZE: '{0},{1}'.format(width,height),
PIXEL_TYPE: self.pixelType,
NO_DATA_INTERPRETATION: '&'.join(map(str, filter(lambda x: x not in (None, ''),
['noData=' + str(nodata) if nodata != None else '', 'noDataInterpretation=%s' %matchType if nodata != None else matchType]))),
INTERPOLATION: interp
}
# overwrite with kwargs
for k,v in kwargs.iteritems():
if k not in [SIZE, BBOX_SR]:
p[k] = v
# post request
r = self.request(query_url, p)
if r.get('href', None) is not None:
tiff = self.request(r.get('href').strip(), ret_json=False).content
with open(out_raster, 'wb') as f:
f.write(tiff)
print('Created: "{0}"'.format(out_raster))
def clip(self, poly, out_raster, envelope=True, imageSR='', noData=None):
"""method to clip a raster"""
# check for raster function availability
if not self.allowRasterFunction:
raise NotImplemented('This Service does not support Raster Functions!')
if envelope:
if not isinstance(poly, Geometry):
poly = Geometry(poly)
geojson = poly.envelopeAsJSON()
geojson[SPATIAL_REFERENCE] = poly.json[SPATIAL_REFERENCE]
else:
geojson = Geometry(poly).dumps() if not isinstance(poly, Geometry) else poly.dumps()
ren = {
"rasterFunction" : "Clip",
"rasterFunctionArguments" : {
"ClippingGeometry" : geojson,
"ClippingType": CLIP_INSIDE,
},
"variableName" : "Raster"
}
self.exportImage(poly, out_raster, rendering_rule=ren, noData=noData, imageSR=imageSR)
def arithmetic(self, poly, out_raster, raster_or_constant, operation=RASTER_MULTIPLY, envelope=False, imageSR='', **kwargs):
"""perform arithmetic operations against a raster
Required:
poly -- input polygon or JSON polygon object
out_raster -- full path to output raster
raster_or_constant -- raster to perform opertion against or constant value
Optional:
operation -- arithmetic operation to use, default is multiply (3) all options: (1|2|3)
envelope -- if true, will use bounding box of input features
imageSR -- output image spatial reference
Operations:
1 -- esriRasterPlus
2 -- esriRasterMinus
3 -- esriRasterMultiply
"""
ren = {
"rasterFunction" : "Arithmetic",
"rasterFunctionArguments" : {
"Raster" : "$$",
"Raster2": raster_or_constant,
"Operation" : operation
}
}
self.exportImage(poly, out_raster, rendering_rule=json.dumps(ren, ensure_ascii=False), imageSR=imageSR, **kwargs)
class GPService(BaseService):
"""GP Service object
Required:
url -- GP service url
Optional (below params only required if security is enabled):
usr -- username credentials for ArcGIS Server
pw -- password credentials for ArcGIS Server
token -- token to handle security (alternative to usr and pw)
proxy -- option to use proxy page to handle security, need to provide
full path to proxy url.
"""
def task(self, name):
"""returns a GP Task object"""
return GPTask('/'.join([self.url, name]))
class GPTask(BaseService):
"""GP Task object
Required:
url -- GP Task url
Optional (below params only required if security is enabled):
usr -- username credentials for ArcGIS Server
pw -- password credentials for ArcGIS Server
token -- token to handle security (alternative to usr and pw)
proxy -- option to use proxy page to handle security, need to provide
full path to proxy url.
"""
@property
def isSynchronous(self):
"""task is synchronous"""
return self.executionType == SYNCHRONOUS
@property
def isAsynchronous(self):
"""task is asynchronous"""
return self.executionType == ASYNCHRONOUS
@property
def outputParameter(self):
"""returns the first output parameter (if there is one)"""
try:
return self.outputParameters[0]
except IndexError:
return None
@property
def outputParameters(self):
"""returns list of all output parameters"""
return [p for p in self.parameters if p.direction == OUTPUT_PARAMETER]
def list_parameters(self):
"""lists the parameter names"""
return [p.name for p in self.parameters]
def run(self, params_json={}, outSR='', processSR='', returnZ=False, returnM=False, **kwargs):
"""Runs a Syncrhonous/Asynchronous GP task, automatically uses appropriate option
Required:
task -- name of task to run
params_json -- JSON object with {parameter_name: value, param2: value2, ...}
Optional:
outSR -- spatial reference for output geometries
processSR -- spatial reference used for geometry opterations
returnZ -- option to return Z values with data if applicable
returnM -- option to return M values with data if applicable
kwargs -- keyword arguments, can substitute this to pass in GP params by name instead of
using the params_json dictionary. Only valid if params_json dictionary is not supplied.
"""
if self.isSynchronous:
runType = EXECUTE
else:
runType = SUBMIT_JOB
gp_exe_url = '/'.join([self.url, runType])
if not params_json:
params_json = {}
for k,v in kwargs.iteritems():
params_json[k] = v
params_json['env:outSR'] = outSR
params_json['env:processSR'] = processSR
params_json[RETURN_Z] = returnZ
params_json[RETURN_M] = returnZ
params_json[F] = JSON
r = self.request(gp_exe_url, params_json, ret_json=False)
gp_elapsed = r.elapsed
# get result object as JSON
res = r.json()
# determine if there's an output parameter: if feature set, push result value into defaultValue
if self.outputParameter and self.outputParameter.dataType == 'GPFeatureRecordSetLayer':
try:
default = self.outputParameter.defaultValue
feature_set = default
feature_set[FEATURES] = res[RESULTS][0][VALUE][FEATURES]
feature_set[FIELDS] = default['Fields'] if 'Fields' in default else default[FIELDS]
res[VALUE] = feature_set
except:
pass
else:
res[VALUE] = res[RESULTS][0].get(VALUE)
print('GP Task "{}" completed successfully. (Elapsed time {})'.format(self.name, gp_elapsed))
return GPResult(res)
| 42.267388
| 157
| 0.570278
|
f8bf84cc0c1e8879d56c766e5d1475903a4ab64f
| 2,539
|
h
|
C
|
FitSDKRelease_21.40.00/cpp/FitDecode.h
|
JoyKuan/ArchitecturalDesign_AI
|
71442dcfdba20564a772a6807e43cbb86dafc14d
|
[
"Apache-2.0"
] | 1
|
2021-02-21T05:24:21.000Z
|
2021-02-21T05:24:21.000Z
|
FitSDKRelease_21.40.00/cpp/MacStaticLib/build/ReleaseiOS-universal/usr/local/include/FitDecode.h
|
JoyKuan/ArchitecturalDesign_AI
|
71442dcfdba20564a772a6807e43cbb86dafc14d
|
[
"Apache-2.0"
] | null | null | null |
FitSDKRelease_21.40.00/cpp/MacStaticLib/build/ReleaseiOS-universal/usr/local/include/FitDecode.h
|
JoyKuan/ArchitecturalDesign_AI
|
71442dcfdba20564a772a6807e43cbb86dafc14d
|
[
"Apache-2.0"
] | null | null | null |
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Garmin Canada Inc.
// The software is being provided on an "as-is" basis and as an accommodation,
// and therefore all warranties, representations, or guarantees of any kind
// (whether express, implied or statutory) including, without limitation,
// warranties of merchantability, non-infringement, or fitness for a particular
// purpose, are specifically disclaimed.
//
// Copyright 2020 Garmin Canada Inc.
////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 21.40Release
// Tag = production/akw/21.40.00-0-g813c158
////////////////////////////////////////////////////////////////////////////////
#if !defined(FIT_DECODE_H)
#define FIT_DECODE_H
#include "fit_profile.hpp"
#include "fit_mesg_listener.hpp"
#include "fit_mesg_definition_listener.hpp"
typedef enum
{
STATE_FILE_HDR,
STATE_RECORD,
STATE_RESERVED1,
STATE_ARCH,
STATE_MESG_NUM_0,
STATE_MESG_NUM_1,
STATE_NUM_FIELDS,
STATE_FIELD_NUM,
STATE_FIELD_SIZE,
STATE_FIELD_TYPE,
STATE_NUM_DEV_FIELDS,
STATE_DEV_FIELD_NUM,
STATE_DEV_FIELD_SIZE,
STATE_DEV_FIELD_INDEX,
STATE_FIELD_DATA,
STATE_DEV_FIELD_DATA,
STATE_FILE_CRC_HIGH,
STATES
} STATE;
typedef enum
{
RETURN_CONTINUE,
RETURN_MESG,
RETURN_MESG_DEF,
RETURN_END_OF_FILE,
RETURN_ERROR,
RETURNS
} RETURN;
@interface FitDecode : NSObject
- (void)InitRead:(FILE *) file;
- (void)InitRead:(FILE *) file startOfFile:(FIT_BOOL) start;
- (FIT_BOOL)IsFit:(FILE *) file;
- (FIT_BOOL)CheckIntegrity:(FILE *) file;
- (void) SkipHeader;
- (void) IncompleteStream;
- (void) Pause;
- (FIT_BOOL) Resume;
- (FIT_BOOL) GetInvalidDataSize;
- (void) SetInvalidDataSize:(FIT_BOOL) value;
- (FIT_BOOL) Read:(FILE *)file withMesgListener:(fit::MesgListener *) listener;
- (FIT_BOOL) Read:(FILE *)file withListener:(fit::MesgListener *) listener andDefListener:(fit::MesgDefinitionListener *) defListener;
- (RETURN) ReadByte:(FIT_UINT8) data;
- (void) ExpandComponents:(fit::Field *) containingField fromComponents:(const fit::Profile::FIELD_COMPONENT*) components numComponents: (FIT_UINT16) numComponents;
@end
#endif /* FIT_DECODE_H */
| 33.853333
| 165
| 0.651831
|
5c10101c8c9592412742f322a4ed252df648f882
| 49,905
|
lua
|
Lua
|
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
|
roman-murashov/hedgewars
|
74f633d76bf95674f68f6872472bd21825f1f8c0
|
[
"Apache-2.0"
] | null | null | null |
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
|
roman-murashov/hedgewars
|
74f633d76bf95674f68f6872472bd21825f1f8c0
|
[
"Apache-2.0"
] | null | null | null |
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
|
roman-murashov/hedgewars
|
74f633d76bf95674f68f6872472bd21825f1f8c0
|
[
"Apache-2.0"
] | null | null | null |
--[[
version 1.3n
The expat (MIT) license
Copyright (C) 2012 Vatten
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.
]]
HedgewarsScriptLoad("/Scripts/Locale.lua")
HedgewarsScriptLoad("/Scripts/Utils.lua")
HedgewarsScriptLoad("/Scripts/Tracker.lua")
--approximative version of square root. This function follows the babylonian method.
function IntegerSqrt(num)
local temp=num
while(temp*temp-div(temp,2)>num)
do
temp=div((temp+div(num,temp)),2)
end
return math.abs(temp)
end
-- sqrt(x^2,y^2), work without desyncs. is approximative
function Norm(xx,yy)
--to fix overflows
if(((math.abs(xx)^2)+(math.abs(yy)^2))>2^26)
then
local bitr=2^13
return IntegerSqrt((div(math.abs(xx),bitr)^2)+(div(math.abs(yy),bitr)^2))*bitr
else
return IntegerSqrt((math.abs(xx)^2)+(math.abs(yy)^2))
end
end
-- returns 1 or -1 depending on where it is
function GetIfNegative(num)
if(num<0)
then
return -1
else
return 1
end
end
--Will end the turn + give escape time
function EndTurn()
SetState(CurrentHedgehog,bor(GetState(CurrentHedgehog),gstAttacked))
--3 sec espace time
TurnTimeLeft = GetAwayTime*10*3
end
--show health tag (will mostly be used when a hog is damaged)
function ShowDamageTag(hog,damage)
healthtag=AddVisualGear(GetX(hog), GetY(hog), vgtHealthTag, damage, false)
v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 = GetVisualGearValues(healthtag)
SetVisualGearValues(healthtag, v1, v2, v3, v4, v5, v6, v7, v8, v9, GetClanColor(GetHogClan(hog)))
end
--will use IntegerSqrt
function FireGear(hedgehog,geartype,vx,vy,timer)
local hypo=Norm(vx,vy)
return AddGear(div((GetGearRadius(hedgehog)*2*vx),hypo)+GetX(hedgehog), div((GetGearRadius(hedgehog)*2*vy),hypo)+GetY(hedgehog), geartype, 0, vx, vy, timer)
end
--This function will set the gravity on a scale from 0->100, where 50 is the standard one.
function SetGravityFromScale(grav)
if(grav>100)
then
grav=100
elseif(grav<0)
then
grav=0
end
if(grav>50)
then
SetGravity(100+((grav-50)*12))
else
SetGravity(25+grav+div(grav,2))
end
end
--====MISC GLOBALS====
--for selecting continent
local GLOBAL_INIT_TEAMS = {}
local GLOBAL_SELECT_CONTINENT_CHECK=false
local GLOBAL_TEAM_CONTINENT = {}
--variables for seeing if you have swaped around on a weapon
local GLOBAL_AUSTRALIAN_SPECIAL=0
local GLOBAL_AFRICAN_SPECIAL_SEDUCTION=0
local GLOBAL_AFRICAN_SPECIAL_STICKY=0
local GLOBAL_SOUTH_AMERICAN_SPECIAL=false
local GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER=1
local GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER_IS_ON=false
local GLOBAL_KERGUELEN_SPECIAL=1
local GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN=false
local GLOBAL_EUROPE_SPECIAL=0
--detection if something is activated
local GLOBAL_SWITCH_HOG_IS_ON=false
local GLOBAL_VAMPIRIC_IS_ON=0
local GLOBAL_EXTRA_DAMAGE_IS_ON=100
local GLOBAL_PARACHUTE_IS_ON=false
--the visual circle for kerguelen
local GLOBAL_VISUAL_CIRCLE=nil
--the global temp value
local GLOBAL_TEMP_VALUE=0
--for sabotage
local GLOBAL_SABOTAGE_COUNTER=0
local GLOBAL_SABOTAGE_HOGS={}
local GLOBAL_SABOTAGE_FREQUENCY=0
local GLOBAL_SABOTAGE_GRAVITY_SWITCH=true
--for sundaland
local GLOBAL_SUNDALAND_END_HOG=0
--====GENERAL GLOBALS (useful for handling continents)====
local GLOBAL_GENERAL_INFORMATION="- "..loc("Per team weapons").."|- 10 "..loc("weaponschemes").."|- "..loc("Unique new weapons").."| |"..loc("Select your continent/weaponset: with the \"Up\" or \"Down\" keys. You can also select one with the weapons menu.").."|"..loc("Note: Some weapons have a second option (See continent information). Find and use them with the \"")..loc("switch").."\" "..loc("key.").."|"..loc("Tip: See the \"esc\" key (this menu) if you want to see the currently playing teams continent, or that continents specials.")
local GLOBAL_SHOW_SMALL_INFO=0
local GLOBAL_WEAPON_TEXTS = {
loc("Green lipstick bullet: [Poisonous, deals no damage]"),
loc("Cluck-cluck time: [Fire an egg ~ Sabotages and cures poison ~ Cannot be fired close to another hog]"),
loc("Anno 1032: [The explosion will make a strong push ~ Wide range, wont affect hogs close to the target]"),
loc("Dust storm: [Deals 15 damage to all enemies in the circle]"),
loc("Cricket time: [Fire away a 1 sec mine! ~ Cannot be fired close to another hog]"),
loc("Drop a bomb: [Drop some heroic wind that will turn into a bomb on impact]"),
loc("Penguin roar: [Deal 15 damage + 10% of your hogs health to all hogs around you and get 2/3 back]"),
loc("Disguise as a Rockhopper Penguin: [Swap place with a random enemy hog in the circle]"),
nil,
loc("Lonely Cries: [Rise the water if no hog is in the circle and deal 6 damage to all enemy hogs.]"),
loc("Hedgehog projectile: [Fire your hog like a Sticky Bomb]"),
loc("Napalm rocket: [Fire a bomb with napalm!]"),
loc("Eagle Eye: [Blink to the impact ~ One shot]"),
loc("Medicine: [Fire some exploding medicine that will heal all hogs effected by the explosion]"),
loc("Sabotage/Flare: [Sabotage all hogs in the circle and deal ~1 dmg OR Fire a cluster up into the air]")
}
local GLOBAL_CONTINENT_INFORMATION =
{
{loc("North America"),"["..loc("Difficulty: ")..loc("EASY").."] "..loc("Area")..": 24,709,000 km2, "..loc("Population")..": 529,000,000",loc("- You can switch between hogs at the start of your turns. (Not first one)").."|"..loc("Special Weapons:").."|"..loc("Shotgun")..": "..GLOBAL_WEAPON_TEXTS[13].."|"..loc("Sniper Rifle")..": "..GLOBAL_WEAPON_TEXTS[1],amSniperRifle,
{{amShotgun,100},{amDEagle,100},{amLaserSight,2},{amSniperRifle,100},{amCake,1},{amAirAttack,2},{amSwitch,2}}},
{loc("South America"),"["..loc("Difficulty: ")..loc("MEDIUM").."] "..loc("Area")..": 17,840,000 km2, "..loc("Population")..": 387,000,000",loc("Special Weapons:").."|"..loc("GasBomb")..": "..GLOBAL_WEAPON_TEXTS[3],amGasBomb,
{{amBirdy,100},{amHellishBomb,1},{amBee,100},{amGasBomb,100},{amFlamethrower,100},{amNapalm,1},{amExtraDamage,2}}},
{loc("Europe"),"["..loc("Difficulty: ")..loc("EASY").."] "..loc("Area")..": 10,180,000 km2, "..loc("Population")..": 740,000,000",loc("Special Weapons:").."|"..loc("Molotov")..": "..GLOBAL_WEAPON_TEXTS[14],amBazooka,
{{amBazooka,100},{amGrenade,100},{amMortar,100},{amMolotov,100},{amVampiric,3},{amPiano,1},{amResurrector,2},{amJetpack,4}}},
{loc("Africa"),"["..loc("Difficulty: ")..loc("MEDIUM").."] "..loc("Area")..": 30,222,000 km2, "..loc("Population")..": 1,033,000,000",loc("Special Weapons:").."|"..loc("Seduction")..": "..GLOBAL_WEAPON_TEXTS[4].."|"..loc("Sticky Mine")..": "..GLOBAL_WEAPON_TEXTS[11].."|"..loc("Sticky Mine")..": "..GLOBAL_WEAPON_TEXTS[12],amSMine,
{{amSMine,100},{amWatermelon,1},{amDrillStrike,1},{amDrill,100},{amInvulnerable,5},{amSeduction,100},{amLandGun,2}}},
{loc("Asia"),"["..loc("Difficulty: ")..loc("MEDIUM").."] "..loc("Area")..": 44,579,000 km2, "..loc("Population")..": 3,880,000,000",loc("- Will give you a parachute every second turn.").."|"..loc("Special Weapons:").."|"..loc("Parachute")..": "..GLOBAL_WEAPON_TEXTS[6],amRope,
{{amRope,100},{amFirePunch,100},{amParachute,2},{amKnife,2},{amDynamite,1}}},
{loc("Australia"),"["..loc("Difficulty: ")..loc("EASY").."] "..loc("Area")..": 8,468,000 km2, "..loc("Population")..": 31,000,000",loc("Special Weapons:").."|"..loc("Baseballbat")..": "..GLOBAL_WEAPON_TEXTS[5].."|"..loc("Baseballbat")..": "..GLOBAL_WEAPON_TEXTS[2],amBaseballBat,
{{amBaseballBat,100},{amMine,100},{amLowGravity,4},{amBlowTorch,100},{amRCPlane,2},{amTeleport,2},{amRubber,2}}},
{loc("Antarctica"),"["..loc("Difficulty: ")..loc("HARD").."] "..loc("Area")..": 14,000,000 km2, "..loc("Population")..": ~1,000",loc("Antarctic summer: - Will give you one girder/mudball and two sineguns/portals every fourth turn."),amIceGun,
{{amSnowball,2},{amIceGun,2},{amPickHammer,100},{amSineGun,5},{amGirder,2},{amExtraTime,1},{amPortalGun,2}}},
{loc("Kerguelen"),"["..loc("Difficulty: ")..loc("EASY").."] "..loc("Area")..": 1,100,000 km2, "..loc("Population")..": ~100",loc("Special Weapons:").."|"..loc("Hammer")..": "..GLOBAL_WEAPON_TEXTS[7].."|"..loc("Hammer")..": "..GLOBAL_WEAPON_TEXTS[8].." ("..loc("Duration")..": 2)|"..loc("Hammer")..": "..GLOBAL_WEAPON_TEXTS[10].."|"..loc("Hammer")..": "..GLOBAL_WEAPON_TEXTS[15],amHammer,
{{amHammer,100},{amMineStrike,1},{amBallgun,1}}},
{loc("Zealandia"),"["..loc("Difficulty: ")..loc("MEDIUM").."] "..loc("Area")..": 3,500,000 km2, "..loc("Population")..": 5,000,000",loc("- Will Get 1-3 random weapons") .. "|" .. loc("- Massive weapon bonus on first turn"),amInvulnerable,
{{amBazooka,1},{amGrenade,1},{amBlowTorch,1},{amSwitch,100},{amRope,1},{amDrill,1},{amDEagle,1},{amPickHammer,1},{amFirePunch,1},{amWhip,1},{amMortar,1},{amSnowball,1},{amExtraTime,1},{amInvulnerable,1},{amVampiric,1},{amFlamethrower,1},{amBee,1},{amClusterBomb,1},{amTeleport,1},{amLowGravity,1},{amJetpack,1},{amGirder,1},{amLandGun,1},{amBirdy,1}}},
{loc("Sundaland"),"["..loc("Difficulty: ")..loc("HARD").."] "..loc("Area")..": 1,850,000 km2, "..loc("Population")..": 290,000,000",loc("- You will recieve 2-4 weapons on each kill! (Even on own hogs)"),amTardis,
{{amClusterBomb,4},{amTardis,4},{amWhip,100},{amKamikaze,4}}}
}
local GLOBAL_CONTINENT_SOUNDS=
{
{sndShotgunFire,sndCover},
{sndEggBreak,sndLaugh},
{sndExplosion,sndEnemyDown},
{sndMelonImpact,sndCoward},
{sndRopeAttach,sndComeonthen},
{sndBaseballBat,sndNooo},
{sndSineGun,sndOops},
{sndPiano5,sndStupid},
{sndSplash,sndFirstBlood},
{sndWarp,sndSameTeam},
{sndFrozenHogImpact,sndUhOh}
}
--weapontype,ammo,?,duration,*times your choice,affect on random team (should be placed with 1,0,1,0,1 on the 6th option for better randomness)
local GLOBAL_WEAPONS_DAMAGE = {
{amKamikaze, 0, 1, 0, 1, 0},
{amSineGun, 0, 1, 0, 1, 1},
{amBazooka, 0, 1, 0, 1, 0},
{amMineStrike, 0, 1, 5, 1, 2},
{amGrenade, 0, 1, 0, 1, 0},
{amPiano, 0, 1, 5, 1, 0},
{amClusterBomb, 0, 1, 0, 1, 0},
{amBee, 0, 1, 0, 1, 0},
{amShotgun, 0, 0, 0, 1, 1},
{amMine, 0, 1, 0, 1, 0},
{amSniperRifle, 0, 1, 0, 1, 1},
{amDEagle, 0, 1, 0, 1, 0},
{amDynamite, 0, 1, 5, 1, 1},
{amFirePunch, 0, 1, 0, 1, 0},
{amHellishBomb, 0, 1, 5, 1, 2},
{amWhip, 0, 1, 0, 1, 0},
{amNapalm, 0, 1, 5, 1, 2},
{amPickHammer, 0, 1, 0, 1, 0},
{amBaseballBat, 0, 1, 0, 1, 1},
{amMortar, 0, 1, 0, 1, 0},
{amCake, 0, 1, 4, 1, 2},
{amSeduction, 0, 0, 0, 1, 0},
{amWatermelon, 0, 1, 5, 1, 2},
{amDrill, 0, 1, 0, 1, 0},
{amBallgun, 0, 1, 5, 1, 2},
{amMolotov, 0, 1, 0, 1, 0},
{amHammer, 0, 1, 0, 1, 2},
{amBirdy, 0, 1, 0, 1, 0},
{amBlowTorch, 0, 1, 0, 1, 0},
{amRCPlane, 0, 1, 5, 1, 2},
{amGasBomb, 0, 0, 0, 1, 0},
{amAirAttack, 0, 1, 4, 1, 1},
{amFlamethrower, 0, 1, 0, 1, 0},
{amSMine, 0, 1, 0, 1, 1},
{amDrillStrike, 0, 1, 4, 1, 2},
{amSnowball, 0, 1, 0, 1, 0}
}
local GLOBAL_WEAPONS_SUPPORT = {
{amParachute, 0, 1, 0, 1, 0},
{amGirder, 0, 1, 0, 1, 0},
{amSwitch, 0, 1, 0, 1, 0},
{amLowGravity, 0, 1, 0, 1, 0},
{amExtraDamage, 0, 1, 2, 1, 0},
{amRope, 0, 1, 0, 1, 1},
{amInvulnerable, 0, 1, 0, 1, 0},
{amExtraTime, 0, 1, 0, 1, 0},
{amLaserSight, 0, 1, 0, 1, 0},
{amVampiric, 0, 1, 0, 1, 0},
{amJetpack, 0, 1, 0, 1, 1},
{amPortalGun, 0, 1, 2, 1, 1},
{amResurrector, 0, 1, 3, 1, 0},
{amTeleport, 0, 1, 0, 1, 0},
{amLandGun, 0, 1, 0, 1, 0},
{amTardis, 0, 1, 0, 1, 0},
{amIceGun, 0, 1, 0, 1, 0},
{amKnife, 0, 1, 0, 1, 0},
{amRubber, 0, 1, 0, 1, 0}
}
--will check after borders and stuff
function ValidateWeapon(hog,weapon,amount)
if(MapHasBorder() == false or (MapHasBorder() == true and weapon ~= amAirAttack and weapon ~= amMineStrike and weapon ~= amNapalm and weapon ~= amDrillStrike and weapon ~= amPiano))
then
if(amount==1)
then
AddAmmo(hog, weapon)
else
AddAmmo(hog, weapon,amount)
end
end
end
--removes one weapon
function RemoveWeapon(hog,weapon)
if(GetAmmoCount(hog, weapon)<100)
then
AddAmmo(hog,weapon,GetAmmoCount(hog, weapon)-1)
end
end
--reset all weapons for a team
function CleanWeapons(hog)
local i=1
--+1 for skip
while(i<=table.maxn(GLOBAL_WEAPONS_SUPPORT)+table.maxn(GLOBAL_WEAPONS_DAMAGE)+1)
do
AddAmmo(hog,i,0)
i=i+1
end
AddAmmo(hog,amSkip,100)
end
--get the weapons from a weaponset
function LoadWeaponset(hog, num)
for v,w in pairs(GLOBAL_CONTINENT_INFORMATION[num][5])
do
ValidateWeapon(hog, w[1],w[2])
end
end
--list up all weapons from the icons for each continent
function InitWeaponsMenu(hog)
if(GetHogLevel(hog)==0)
then
for v,w in pairs(GLOBAL_CONTINENT_INFORMATION)
do
ValidateWeapon(hog, GLOBAL_CONTINENT_INFORMATION[v][4],1)
end
AddAmmo(hog,amSwitch) --random continent
--for the computers
else
--europe
ValidateWeapon(hog, GLOBAL_CONTINENT_INFORMATION[3][4],1)
--north america
ValidateWeapon(hog, GLOBAL_CONTINENT_INFORMATION[1][4],1)
end
end
--shows the continent info
function ShowContinentInfo(continent,time,generalinf)
local geninftext=""
local ns=false
if(time==-1)
then
time=0
ns=true
end
if(generalinf)
then
geninftext="| |"..loc("General information")..": |"..GLOBAL_GENERAL_INFORMATION
end
GLOBAL_SHOW_SMALL_INFO=div(time,40)
ShowMission(GLOBAL_CONTINENT_INFORMATION[continent][1],GLOBAL_CONTINENT_INFORMATION[continent][2],GLOBAL_CONTINENT_INFORMATION[continent][3]..geninftext, -GLOBAL_CONTINENT_INFORMATION[continent][4], time)
if(ns)
then
HideMission()
end
end
--will show a circle of gears (eye candy)
function VisualExplosion(range,xpos,ypos,gear1,gear2)
local degr=0
local lap=30
while(lap<range)
do
while(degr < 6.2831)
do
AddVisualGear(xpos+math.cos(degr+0.1)*(lap+5), ypos+math.sin(degr+0.1)*(lap+5), gear1, 0, false)
if(gear2~=false)
then
AddVisualGear(xpos+math.cos(degr)*lap, ypos+math.sin(degr)*lap, gear2, 0, false)
end
degr=degr+((3.1415*3)*0.125) --1/8 = 0.125
end
lap=lap+30
degr=degr-6.2831
end
end
--zealandia (generates weapons from the weaponinfo above
function ZealandiaGetWeapons(hog)
if(GetGearType(hog) == gtHedgehog and GLOBAL_TEAM_CONTINENT[GetHogTeamName(hog)]==9 and getTeamValue(GetHogTeamName(hog), "rand-done-turn")==nil)
then
CleanWeapons(hog)
local random_weapon = 0
local old_rand_weap = 0
local rand_weaponset_power = 0
local numberofweaponssupp=table.maxn(GLOBAL_WEAPONS_SUPPORT)
local numberofweaponsdmg=table.maxn(GLOBAL_WEAPONS_DAMAGE)
local rand1=math.abs(GetRandom(numberofweaponssupp)+1)
local rand2=math.abs(GetRandom(numberofweaponsdmg)+1)
random_weapon = math.abs(GetRandom(table.maxn(GLOBAL_WEAPONS_DAMAGE))+1)
while(GLOBAL_WEAPONS_DAMAGE[random_weapon][4]>TotalRounds or (MapHasBorder() == true and (GLOBAL_WEAPONS_DAMAGE[random_weapon][1]== amAirAttack or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amMineStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amNapalm or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amDrillStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amPiano)))
do
if(random_weapon>=numberofweaponsdmg)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_DAMAGE[random_weapon][1],1)
rand_weaponset_power=GLOBAL_WEAPONS_DAMAGE[random_weapon][6]
old_rand_weap = random_weapon
if(rand_weaponset_power <2)
then
random_weapon = rand1
while(GLOBAL_WEAPONS_SUPPORT[random_weapon][4]>TotalRounds or rand_weaponset_power+GLOBAL_WEAPONS_SUPPORT[random_weapon][6]>2)
do
if(random_weapon>=numberofweaponssupp)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_SUPPORT[random_weapon][1],1)
rand_weaponset_power=rand_weaponset_power+GLOBAL_WEAPONS_SUPPORT[random_weapon][6]
end
--check again if the power is enough
if(rand_weaponset_power <1)
then
random_weapon = rand2
while(GLOBAL_WEAPONS_DAMAGE[random_weapon][4]>TotalRounds or old_rand_weap == random_weapon or GLOBAL_WEAPONS_DAMAGE[random_weapon][6]>0 or (MapHasBorder() == true and (GLOBAL_WEAPONS_DAMAGE[random_weapon][1]== amAirAttack or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amMineStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amNapalm or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amDrillStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amPiano)))
do
if(random_weapon>=numberofweaponsdmg)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_DAMAGE[random_weapon][1],1)
end
setTeamValue(GetHogTeamName(hog), "rand-done-turn", true)
end
end
--sundaland add weps
function SundalandGetWeapons(hog)
local random_weapon = 0
local old_rand_weap = 0
local rand_weaponset_power = 0
local firstTurn=0
local numberofweaponssupp=table.maxn(GLOBAL_WEAPONS_SUPPORT)
local numberofweaponsdmg=table.maxn(GLOBAL_WEAPONS_DAMAGE)
local rand1=GetRandom(numberofweaponssupp)+1
local rand2=GetRandom(numberofweaponsdmg)+1
local rand3=GetRandom(numberofweaponsdmg)+1
random_weapon = GetRandom(numberofweaponsdmg)+1
if(TotalRounds<0)
then
firstTurn=-TotalRounds
end
while(GLOBAL_WEAPONS_DAMAGE[random_weapon][4]>(TotalRounds+firstTurn) or (MapHasBorder() == true and (GLOBAL_WEAPONS_DAMAGE[random_weapon][1]== amAirAttack or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amMineStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amNapalm or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amDrillStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amPiano)))
do
if(random_weapon>=numberofweaponsdmg)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_DAMAGE[random_weapon][1],1)
rand_weaponset_power=GLOBAL_WEAPONS_DAMAGE[random_weapon][6]
old_rand_weap = random_weapon
random_weapon = rand1
while(GLOBAL_WEAPONS_SUPPORT[random_weapon][4]>(TotalRounds+firstTurn) or rand_weaponset_power+GLOBAL_WEAPONS_SUPPORT[random_weapon][6]>2)
do
if(random_weapon>=numberofweaponssupp)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_SUPPORT[random_weapon][1],1)
rand_weaponset_power=rand_weaponset_power+GLOBAL_WEAPONS_SUPPORT[random_weapon][6]
--check again if the power is enough
if(rand_weaponset_power <2)
then
random_weapon = rand2
while(GLOBAL_WEAPONS_DAMAGE[random_weapon][4]>(TotalRounds+firstTurn) or old_rand_weap == random_weapon or GLOBAL_WEAPONS_DAMAGE[random_weapon][6]>0 or (MapHasBorder() == true and (GLOBAL_WEAPONS_DAMAGE[random_weapon][1]== amAirAttack or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amMineStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amNapalm or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amDrillStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amPiano)))
do
if(random_weapon>=numberofweaponsdmg)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_DAMAGE[random_weapon][1],1)
rand_weaponset_power=GLOBAL_WEAPONS_DAMAGE[random_weapon][6]
end
if(rand_weaponset_power <1)
then
random_weapon = rand3
while(GLOBAL_WEAPONS_DAMAGE[random_weapon][4]>(TotalRounds+firstTurn) or old_rand_weap == random_weapon or GLOBAL_WEAPONS_DAMAGE[random_weapon][6]>0 or (MapHasBorder() == true and (GLOBAL_WEAPONS_DAMAGE[random_weapon][1]== amAirAttack or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amMineStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amNapalm or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amDrillStrike or GLOBAL_WEAPONS_DAMAGE[random_weapon][1] == amPiano)))
do
if(random_weapon>=numberofweaponsdmg)
then
random_weapon=0
end
random_weapon = random_weapon+1
end
ValidateWeapon(hog, GLOBAL_WEAPONS_DAMAGE[random_weapon][1],1)
end
AddVisualGear(GetX(hog), GetY(hog)-30, vgtEvilTrace,0, false)
PlaySound(sndReinforce,hog)
end
--this will take that hogs settings for the weapons and add them
function SetContinentWeapons()
CleanWeapons(CurrentHedgehog)
LoadWeaponset(CurrentHedgehog,GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)])
visualstuff=AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog)-5, vgtDust,0, false)
v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 = GetVisualGearValues(visualstuff)
SetVisualGearValues(visualstuff, v1, v2, v3, v4, v5, v6, v7, 2, v9, GetClanColor(GetHogClan(CurrentHedgehog)))
ShowContinentInfo(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)],3000,false)
end
--==========================run throw all hog/gear weapons ==========================
--will check if the mine is nicely placed
function AustraliaSpecialCheckHogs(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 40, false)==true and hog ~= CurrentHedgehog)
then
GLOBAL_TEMP_VALUE=1
end
end
end
--african special on sedunction
function AfricaSpecialSeduction(hog)
if(GetGearType(hog) == gtHedgehog)
then
local dmg=div(15*GLOBAL_EXTRA_DAMAGE_IS_ON,100)
if(gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 250, false)==true and GetHogClan(hog) ~= GetHogClan(CurrentHedgehog))
then
if(GetHealth(hog) > dmg)
then
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+div(dmg*GLOBAL_VAMPIRIC_IS_ON,100)
SetHealth(hog, GetHealth(hog)-dmg)
else
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+div(GetHealth(hog)*GLOBAL_VAMPIRIC_IS_ON,100)
SetHealth(hog, 0)
end
ShowDamageTag(hog,dmg)
end
end
end
--kerguelen special on structure
function KerguelenSpecialRed(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 120, false)==true and GetHogClan(hog) ~= GetHogClan(CurrentHedgehog))
then
local dmg=div((15+div(GetHealth(CurrentHedgehog)*10,100))*GLOBAL_EXTRA_DAMAGE_IS_ON,100)
if(GetHealth(hog)>dmg)
then
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+div(dmg*2,3)+div(dmg*GLOBAL_VAMPIRIC_IS_ON*2,100*3)
SetHealth(hog, GetHealth(hog)-dmg)
else
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+(div(GetHealth(hog)*75,100))+(div(GetHealth(CurrentHedgehog)*10,100))+div((GetHealth(hog)+div(GetHealth(CurrentHedgehog)*10,100))*GLOBAL_VAMPIRIC_IS_ON,100)
SetHealth(hog, 0)
end
ShowDamageTag(hog,dmg)
AddVisualGear(GetX(hog), GetY(hog), vgtExplosion, 0, false)
AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtSmokeWhite, 0, false)
end
end
end
--will count the hogs, used to get one random hog.
function KerguelenSpecialYellowCountHogs(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(GetHogClan(hog) ~= GetHogClan(CurrentHedgehog) and gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 420, false))
then
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+1
end
end
end
--kerguelen special swap hog
function KerguelenSpecialYellowSwap(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(GLOBAL_KERGUELEN_SPECIAL ~= -1 and GetHogClan(hog) ~= GetHogClan(CurrentHedgehog) and gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 420, false))
then
if(GLOBAL_TEMP_VALUE==0)
then
local thisX=GetX(CurrentHedgehog)
local thisY=GetY(CurrentHedgehog)
SetGearPosition(CurrentHedgehog, GetX(hog), GetY(hog))
SetGearPosition(hog, thisX, thisY)
GLOBAL_KERGUELEN_SPECIAL=-1
else
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE-1
end
end
end
end
--kerguelen special will apply sabotage
function KerguelenSpecialGreen(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(CurrentHedgehog~=hog and gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 80, false))
then
GLOBAL_TEMP_VALUE=1
GLOBAL_SABOTAGE_HOGS[hog]=1
AddGear(GetX(hog), GetY(hog), gtCluster, 0, 0, 0, 1)
PlaySound(sndNooo,hog)
end
end
end
--first part on kerguelen special (lonely cries)
function KerguelenSpecialBlueCheck(hog)
if(GetGearType(hog) == gtHedgehog and hog ~= CurrentHedgehog and gearIsInCircle(hog,GetX(CurrentHedgehog), GetY(CurrentHedgehog), 550, false))
then
GLOBAL_KERGUELEN_SPECIAL=-1
end
end
--second part on kerguelen special (lonely cries)
function KerguelenSpecialBlueActivate(hog)
if(GetGearType(hog) == gtHedgehog)
then
local dmg=div(6*GLOBAL_EXTRA_DAMAGE_IS_ON,100)
if(GetHogClan(hog) ~= GetHogClan(CurrentHedgehog))
then
if(GetHealth(hog) > dmg)
then
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+div(dmg*GLOBAL_VAMPIRIC_IS_ON,100)
SetHealth(hog, GetHealth(hog)-dmg)
else
GLOBAL_TEMP_VALUE=GLOBAL_TEMP_VALUE+div(GetHealth(hog)*GLOBAL_VAMPIRIC_IS_ON,100)
SetHealth(hog, 0)
end
ShowDamageTag(hog,dmg)
AddVisualGear(GetX(hog), GetY(hog)-30, vgtEvilTrace, 0, false)
end
end
end
--australia
function AustraliaSpecialEggHit(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(gearIsInCircle(hog,GetX(GLOBAL_TEMP_VALUE), GetY(GLOBAL_TEMP_VALUE), 18, false))
then
GLOBAL_SABOTAGE_HOGS[hog]=1
PlaySound(sndNooo,hog)
SetEffect(hog, hePoisoned, false)
end
end
end
--south american special (used fire gear)
function SouthAmericaSpecialCheeseExplosion(hog)
if(GetGearType(hog) == gtHedgehog or GetGearType(hog) == gtMine or GetGearType(hog) == gtExplosives)
then
local power_radius_outer=230
local power_radius_inner=45
local power_sa=500000
local hypo=0
if(gearIsInCircle(hog,GetX(GLOBAL_TEMP_VALUE), GetY(GLOBAL_TEMP_VALUE), power_radius_outer, false) and gearIsInCircle(hog,GetX(GLOBAL_TEMP_VALUE), GetY(GLOBAL_TEMP_VALUE), power_radius_inner, false)==false)
then
if(hog == CurrentHedgehog)
then
SetState(CurrentHedgehog, gstMoving)
end
SetGearPosition(hog, GetX(hog),GetY(hog)-3)
hypo=Norm(math.abs(GetX(hog)-GetX(GLOBAL_TEMP_VALUE)),math.abs(GetY(hog)-GetY(GLOBAL_TEMP_VALUE)))
SetGearVelocity(hog, div((power_radius_outer-hypo)*power_sa*GetIfNegative(GetX(hog)-GetX(GLOBAL_TEMP_VALUE)),power_radius_outer), div((power_radius_outer-hypo)*power_sa*GetIfNegative(GetY(hog)-GetY(GLOBAL_TEMP_VALUE)),power_radius_outer))
end
end
end
--north american special on sniper
function NorthAmericaSpecialSniper(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(gearIsInCircle(GLOBAL_TEMP_VALUE,GetX(hog), GetY(hog), 20, false))
then
SetEffect(hog, hePoisoned, 1)
PlaySound(sndBump)
end
end
end
--european special on molotov (used fire gear)
function EuropeSpecialMolotovHit(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(gearIsInCircle(GLOBAL_TEMP_VALUE,GetX(hog), GetY(hog), 100, false))
then
SetHealth(hog, GetHealth(hog)+25+(div(25*GLOBAL_VAMPIRIC_IS_ON,100)))
SetEffect(hog, hePoisoned, false)
GLOBAL_SABOTAGE_HOGS[hog]=0
end
end
end
--for sundaland
function SundalandFindOtherHogInTeam(hog)
if(GetGearType(hog) == gtHedgehog)
then
if(GetHogTeamName(GLOBAL_SUNDALAND_END_HOG)==GetHogTeamName(hog))
then
GLOBAL_SUNDALAND_END_HOG=hog
end
end
end
--============================================================================
--for custom made continent, follows the same standards as the globalism one. You can make your continent with <Name>~<Information>~<Weapons>. Take the weapons generated from globalism, if you want a GUI :P
--weapons=<ammo><types>, ammo = ascii[116(1 ammo) to 125(inf ammo)] types = ascii[36(Grenade), 37(Clusterbomb) to 90(knife)] see https://code.google.com/p/hedgewars/wiki/AmmoTypes
--ex "Own continent~this continent rocks!~tZ}$" will get 1 knife and inf grenades
function onParameters()
if(ScriptParam~=nil)
then
local continentinfo={}
local numb=0
local wepcodes=0
local where=0
local x=0
local i=1
--default icon
continentinfo[4]=amLowGravity
for c in ScriptParam:gmatch"."
do
if(where==0)
then
if(string.byte(c)==126)
then
continentinfo[1]=string.sub(ScriptParam,0,numb)
wepcodes=numb
where=1
end
elseif(where==1)
then
if(string.byte(c)==126)
then
continentinfo[2]=string.sub(ScriptParam,wepcodes+2,numb)
continentinfo[5]={}
wepcodes=numb
where=2
end
elseif(where==2)
then
x=string.byte(c)-35
if(x>90)
then
break
elseif(x>80)
then
if(x-80<10)
then
i=x-80
else
i=100
end
else
table.insert(continentinfo[5],{x,i})
end
end
numb=numb+1
end
if(continentinfo[5]~=nil and continentinfo[5][1]~=nil)
then
continentinfo[3]="- "..continentinfo[1]..loc(" was extracted from the scheme|- This continent will be able to use the specials from the other continents!")
table.insert(GLOBAL_CONTINENT_INFORMATION, continentinfo)
end
end
end
--set each weapons settings
function onAmmoStoreInit()
SetAmmo(amSkip, 9, 0, 0, 0)
for v,w in pairs(GLOBAL_WEAPONS_DAMAGE)
do
SetAmmo(w[1], w[2], w[3], w[4], w[5])
end
for v,w in pairs(GLOBAL_WEAPONS_SUPPORT)
do
SetAmmo(w[1], w[2], w[3], w[4], w[5])
end
end
--on game start
function onGameStart()
ShowMission(loc("Continental supplies"),loc("Let a continent provide your weapons!"),
GLOBAL_GENERAL_INFORMATION, -amLowGravity, 0)
end
--what happen when a turn starts
function onNewTurn()
--will refresh the info on each tab weapon
GLOBAL_AUSTRALIAN_SPECIAL=0
GLOBAL_AFRICAN_SPECIAL_SEDUCTION=0
GLOBAL_SOUTH_AMERICAN_SPECIAL=false
GLOBAL_AFRICAN_SPECIAL_STICKY=0
GLOBAL_KERGUELEN_SPECIAL=1
GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER=1
GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN=false
GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER_IS_ON=false
GLOBAL_EUROPE_SPECIAL=0
GLOBAL_VAMPIRIC_IS_ON=0
GLOBAL_EXTRA_DAMAGE_IS_ON=100
GLOBAL_TEMP_VALUE=0
GLOBAL_SUNDALAND_END_HOG=CurrentHedgehog
--when all hogs are "placed"
if(GetCurAmmoType()~=amTeleport)
then
--will run once when the game really starts (after placing hogs and so on
if(GLOBAL_INIT_TEAMS[GetHogTeamName(CurrentHedgehog)] == nil)
then
AddCaption("["..loc("Select continent!").."]")
InitWeaponsMenu(CurrentHedgehog)
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=0
GLOBAL_SELECT_CONTINENT_CHECK=true
GLOBAL_INIT_TEAMS[GetHogTeamName(CurrentHedgehog)] = 2
if(GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]~=nil and GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]==1)
then
GLOBAL_SABOTAGE_COUNTER=-750
end
else
--if its not the initialization turn
GLOBAL_SELECT_CONTINENT_CHECK=false
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==0)
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=GetRandom(table.maxn(GLOBAL_CONTINENT_INFORMATION))+1
SetContinentWeapons()
end
ShowContinentInfo(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)],-1,true)
--give zeelandia-teams new weapons so they can plan for the next turn
runOnGears(ZealandiaGetWeapons)
--some specials for some continents (GLOBAL_TEMP_VALUE is from get random weapons)
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==9)
then
setTeamValue(GetHogTeamName(CurrentHedgehog), "rand-done-turn", nil)
elseif(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==7)
then
if(getTeamValue(GetHogTeamName(CurrentHedgehog), "Antarctica2-turntick")==nil)
then
setTeamValue(GetHogTeamName(CurrentHedgehog), "Antarctica2-turntick", 1)
end
if(getTeamValue(GetHogTeamName(CurrentHedgehog), "Antarctica2-turntick")>=4)
then
AddAmmo(CurrentHedgehog,amPortalGun)
AddAmmo(CurrentHedgehog,amPortalGun)
AddAmmo(CurrentHedgehog,amSineGun)
AddAmmo(CurrentHedgehog,amSineGun)
AddAmmo(CurrentHedgehog,amGirder)
AddAmmo(CurrentHedgehog,amSnowball)
setTeamValue(GetHogTeamName(CurrentHedgehog), "Antarctica2-turntick", 0)
end
setTeamValue(GetHogTeamName(CurrentHedgehog), "Antarctica2-turntick", getTeamValue(GetHogTeamName(CurrentHedgehog), "Antarctica2-turntick")+1)
elseif(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==5)
then
if(getTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick")==nil)
then
setTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick", 1)
end
if(getTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick")>=2)
then
AddAmmo(CurrentHedgehog,amParachute)
setTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick", 0)
end
setTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick", getTeamValue(GetHogTeamName(CurrentHedgehog), "Asia-turntick")+1)
elseif(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==1)
then
AddAmmo(CurrentHedgehog,amSwitch,GetAmmoCount(CurrentHedgehog, amSwitch)+1)
ParseCommand("setweap " .. string.char(amSwitch))
GLOBAL_TEMP_VALUE=87
end
end
end
end
--what happens when you press "tab" (common button)
function onSwitch()
if(GLOBAL_SWITCH_HOG_IS_ON==false)
then
--place mine (australia)
if(GetCurAmmoType() == amBaseballBat)
then
if(GLOBAL_AUSTRALIAN_SPECIAL==0)
then
GLOBAL_AUSTRALIAN_SPECIAL = 1
AddCaption(GLOBAL_WEAPON_TEXTS[5])
elseif(GLOBAL_AUSTRALIAN_SPECIAL==1)
then
GLOBAL_AUSTRALIAN_SPECIAL = 2
AddCaption(GLOBAL_WEAPON_TEXTS[2])
else
GLOBAL_AUSTRALIAN_SPECIAL = 0
AddCaption(loc("NORMAL"))
end
--Asian special
elseif(GLOBAL_PARACHUTE_IS_ON==1)
then
asiabomb=AddGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog)+3, gtSnowball, 0, 0, 0, 0)
SetGearMessage(asiabomb, 1)
GLOBAL_PARACHUTE_IS_ON=2
GLOBAL_SELECT_CONTINENT_CHECK=false
--africa
elseif(GetCurAmmoType() == amSeduction)
then
if(GLOBAL_AFRICAN_SPECIAL_SEDUCTION==0)
then
GLOBAL_AFRICAN_SPECIAL_SEDUCTION = 1
AddCaption(GLOBAL_WEAPON_TEXTS[4])
else
GLOBAL_AFRICAN_SPECIAL_SEDUCTION = 0
AddCaption(loc("NORMAL"))
end
--south america
elseif(GetCurAmmoType() == amGasBomb)
then
if(GLOBAL_SOUTH_AMERICAN_SPECIAL==false)
then
GLOBAL_SOUTH_AMERICAN_SPECIAL = true
AddCaption(GLOBAL_WEAPON_TEXTS[3])
else
GLOBAL_SOUTH_AMERICAN_SPECIAL = false
AddCaption(loc("NORMAL"))
end
--africa
elseif(GetCurAmmoType() == amSMine)
then
if(GLOBAL_AFRICAN_SPECIAL_STICKY==0)
then
GLOBAL_AFRICAN_SPECIAL_STICKY = 1
AddCaption(GLOBAL_WEAPON_TEXTS[11])
elseif(GLOBAL_AFRICAN_SPECIAL_STICKY == 1)
then
GLOBAL_AFRICAN_SPECIAL_STICKY = 2
AddCaption(GLOBAL_WEAPON_TEXTS[12])
elseif(GLOBAL_AFRICAN_SPECIAL_STICKY == 2)
then
GLOBAL_AFRICAN_SPECIAL_STICKY = 0
AddCaption(loc("NORMAL"))
end
--north america (sniper)
elseif(GetCurAmmoType() == amSniperRifle and GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER_IS_ON==false)
then
if(GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER==2)
then
GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER = 1
AddCaption(loc("NORMAL"))
elseif(GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER==1)
then
GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER = 2
AddCaption(GLOBAL_WEAPON_TEXTS[1])
end
--north america (shotgun)
elseif(GetCurAmmoType() == amShotgun and GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN~=nil)
then
if(GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN==false)
then
GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN = true
AddCaption(GLOBAL_WEAPON_TEXTS[13])
else
GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN = false
AddCaption(loc("NORMAL"))
end
--europe
elseif(GetCurAmmoType() == amMolotov)
then
if(GLOBAL_EUROPE_SPECIAL==0)
then
GLOBAL_EUROPE_SPECIAL = 1
AddCaption(GLOBAL_WEAPON_TEXTS[14])
else
GLOBAL_EUROPE_SPECIAL = 0
AddCaption(loc("NORMAL"))
end
--kerguelen
elseif(GetCurAmmoType() == amHammer)
then
if(GLOBAL_KERGUELEN_SPECIAL==6)
then
GLOBAL_KERGUELEN_SPECIAL = 1
AddCaption("Normal")
elseif(GLOBAL_KERGUELEN_SPECIAL==1)
then
GLOBAL_KERGUELEN_SPECIAL = 2
AddCaption("#"..GLOBAL_WEAPON_TEXTS[7])
elseif(GLOBAL_KERGUELEN_SPECIAL==2 and TotalRounds>=1)
then
GLOBAL_KERGUELEN_SPECIAL = 3
AddCaption("##"..GLOBAL_WEAPON_TEXTS[8])
elseif(GLOBAL_KERGUELEN_SPECIAL==3 or (GLOBAL_KERGUELEN_SPECIAL==2 and TotalRounds<1))
then
GLOBAL_KERGUELEN_SPECIAL = 5
AddCaption("###"..GLOBAL_WEAPON_TEXTS[10])
elseif(GLOBAL_KERGUELEN_SPECIAL==5)
then
GLOBAL_KERGUELEN_SPECIAL = 6
AddCaption("####"..GLOBAL_WEAPON_TEXTS[15])
end
--for selecting weaponset, this is mostly for old players.
elseif(GetHogLevel(CurrentHedgehog)==0 and GLOBAL_SELECT_CONTINENT_CHECK==true and (GetCurAmmoType() == amSkip or GetCurAmmoType() == amNothing))
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]+1
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]> table.maxn(GLOBAL_CONTINENT_INFORMATION))
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=1
end
SetContinentWeapons()
end
--if switching out from sabotage.
elseif(GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]~=nil and GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]==2)
then
GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]=1
end
end
function onUp()
--swap forward in the weaponmenu (1.0 style)
if(GetHogLevel(CurrentHedgehog)==0 and GLOBAL_SELECT_CONTINENT_CHECK==true and (GetCurAmmoType() == amSkip or GetCurAmmoType() == amNothing))
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]+1
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]> table.maxn(GLOBAL_CONTINENT_INFORMATION))
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=1
end
SetContinentWeapons()
end
end
function onDown()
--swap backwards in the weaponmenu (1.0 style)
if(GetHogLevel(CurrentHedgehog)==0 and GLOBAL_SELECT_CONTINENT_CHECK==true and (GetCurAmmoType() == amSkip or GetCurAmmoType() == amNothing))
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]-1
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]<=0)
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=table.maxn(GLOBAL_CONTINENT_INFORMATION)
end
SetContinentWeapons()
end
end
function onGameTick20()
--if you picked a weaponset from the weaponmenu (icon)
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==0)
then
if(GetCurAmmoType()==amSwitch)
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=GetRandom(table.maxn(GLOBAL_CONTINENT_INFORMATION))+1
SetContinentWeapons()
PlaySound(sndMineTick)
else
for v,w in pairs(GLOBAL_CONTINENT_INFORMATION)
do
if(GetCurAmmoType()==GLOBAL_CONTINENT_INFORMATION[v][4])
then
GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=v
SetContinentWeapons()
PlaySound(GLOBAL_CONTINENT_SOUNDS[v][1])
PlaySound(GLOBAL_CONTINENT_SOUNDS[v][2],CurrentHedgehog)
end
end
end
end
--show the kerguelen ring
if(GLOBAL_KERGUELEN_SPECIAL > 1 and GetCurAmmoType() == amHammer)
then
if(GLOBAL_VISUAL_CIRCLE==nil)
then
GLOBAL_VISUAL_CIRCLE=AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtCircle, 0, true)
end
if(GLOBAL_KERGUELEN_SPECIAL == 2) --walrus scream
then
SetVisualGearValues(GLOBAL_VISUAL_CIRCLE, GetX(CurrentHedgehog), GetY(CurrentHedgehog),20, 200, 0, 0, 100, 120, 4, 0xff0000ee)
elseif(GLOBAL_KERGUELEN_SPECIAL == 3) --swap hog
then
SetVisualGearValues(GLOBAL_VISUAL_CIRCLE, GetX(CurrentHedgehog), GetY(CurrentHedgehog),20, 200, 0, 0, 100, 420, 3, 0xffff00ee)
elseif(GLOBAL_KERGUELEN_SPECIAL == 5) --cries
then
SetVisualGearValues(GLOBAL_VISUAL_CIRCLE, GetX(CurrentHedgehog), GetY(CurrentHedgehog),20, 200, 0, 0, 100, 550, 1, 0x0000ffee)
elseif(GLOBAL_KERGUELEN_SPECIAL == 6) --sabotage
then
SetVisualGearValues(GLOBAL_VISUAL_CIRCLE, GetX(CurrentHedgehog), GetY(CurrentHedgehog),20, 200, 0, 0, 100, 80, 10, 0x00ff00ee)
end
elseif(GLOBAL_VISUAL_CIRCLE~=nil)
then
DeleteVisualGear(GLOBAL_VISUAL_CIRCLE)
GLOBAL_VISUAL_CIRCLE=nil
end
--sabotage
if(GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]~=nil and GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]>=1)
then
--for sabotage
if(GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]==1)
then
local RND=GetRandom(2)
if(RND==0)
then
AddCaption(loc("You are sabotaged, RUN!"))
else
AddCaption(loc("WARNING: Sabotage detected!"))
end
PlaySound(sndHellish)
GLOBAL_SABOTAGE_COUNTER=-50
--update the constant at the top also to something in between
GLOBAL_SABOTAGE_FREQUENCY=(25*(RND))+70
GLOBAL_SABOTAGE_GRAVITY_SWITCH=true
GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]=2
end
if(GLOBAL_SABOTAGE_COUNTER >0)
then
if(GLOBAL_SABOTAGE_GRAVITY_SWITCH)
then
SetGravityFromScale(div(100*GLOBAL_SABOTAGE_COUNTER,GLOBAL_SABOTAGE_FREQUENCY))
else
SetGravityFromScale(100-div(100*GLOBAL_SABOTAGE_COUNTER,GLOBAL_SABOTAGE_FREQUENCY))
end
if(GLOBAL_SABOTAGE_COUNTER % 20 == 0)
then
AddVisualGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog), vgtSmokeWhite, 0, false)
end
end
if(TurnTimeLeft<(GetAwayTime*10) or band(GetState(CurrentHedgehog),gstAttacked)==1)
then
GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]=0
SetGravity(100)
elseif(GLOBAL_SABOTAGE_COUNTER >= GLOBAL_SABOTAGE_FREQUENCY)
then
if(GLOBAL_SABOTAGE_GRAVITY_SWITCH==true)
then
GLOBAL_SABOTAGE_GRAVITY_SWITCH=false
else
--AddGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog)-10, gtCluster, 0, 0, -160000, 30)
GLOBAL_SABOTAGE_GRAVITY_SWITCH=true
end
if(GetHealth(CurrentHedgehog)<=2)
then
SetHealth(CurrentHedgehog, 0)
GLOBAL_SABOTAGE_HOGS[CurrentHedgehog]=0
SetGravity(100)
else
SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)-2)
end
ShowDamageTag(CurrentHedgehog,2)
GLOBAL_SABOTAGE_COUNTER=0
else
GLOBAL_SABOTAGE_COUNTER=GLOBAL_SABOTAGE_COUNTER+1
end
end
if(GetCurAmmoType() == amSwitch and GLOBAL_TEMP_VALUE==87)
then
SetGearMessage(CurrentHedgehog,gmAttack)
GLOBAL_TEMP_VALUE=0
end
if(GLOBAL_SHOW_SMALL_INFO>0)
then
if(GLOBAL_SHOW_SMALL_INFO==1)
then
ShowContinentInfo(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)],-1,true)
end
GLOBAL_SHOW_SMALL_INFO=GLOBAL_SHOW_SMALL_INFO-1
end
end
--some ppl complained :P
function onSlot(slot)
if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==0)
then
ParseCommand("setweap " .. string.char(amSkip))
end
end
--if you used hogswitch or any similar weapon, dont enable any weaponchange
function onAttack()
GLOBAL_SELECT_CONTINENT_CHECK=false
--african special
if(GLOBAL_AFRICAN_SPECIAL_SEDUCTION == 1 and GetCurAmmoType() == amSeduction and band(GetState(CurrentHedgehog),gstAttacked)==0)
then
EndTurn()
GLOBAL_TEMP_VALUE=0
runOnGears(AfricaSpecialSeduction)
SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)+GLOBAL_TEMP_VALUE)
--visual stuff
VisualExplosion(250,GetX(CurrentHedgehog), GetY(CurrentHedgehog),vgtSmoke,vgtSmokeWhite)
PlaySound(sndParachute)
RemoveWeapon(CurrentHedgehog,amSeduction)
--Kerguelen specials
elseif(GetCurAmmoType() == amHammer and GLOBAL_KERGUELEN_SPECIAL > 1 and band(GetState(CurrentHedgehog),gstAttacked)==0)
then
--scream
if(GLOBAL_KERGUELEN_SPECIAL == 2)
then
GLOBAL_TEMP_VALUE=0
runOnGears(KerguelenSpecialRed)
SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)+GLOBAL_TEMP_VALUE)
PlaySound(sndHellish)
--swap
elseif(GLOBAL_KERGUELEN_SPECIAL == 3 and TotalRounds>=1)
then
GLOBAL_TEMP_VALUE=0
runOnGears(KerguelenSpecialYellowCountHogs)
if(GLOBAL_TEMP_VALUE>0)
then
GLOBAL_TEMP_VALUE=GetRandom(GLOBAL_TEMP_VALUE)
runOnGears(KerguelenSpecialYellowSwap)
PlaySound(sndPiano3)
else
PlaySound(sndPiano6)
end
--cries
elseif(GLOBAL_KERGUELEN_SPECIAL == 5)
then
runOnGears(KerguelenSpecialBlueCheck)
if(GLOBAL_KERGUELEN_SPECIAL~=-1)
then
AddGear(0, 0, gtWaterUp, 0, 0,0,0)
PlaySound(sndWarp)
PlaySound(sndMolotov)
GLOBAL_TEMP_VALUE=0
runOnGears(KerguelenSpecialBlueActivate)
SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)+GLOBAL_TEMP_VALUE)
else
HogSay(CurrentHedgehog, loc("Hogs in sight!"), SAY_SAY)
end
--sabotage
elseif(GLOBAL_KERGUELEN_SPECIAL == 6)
then
GLOBAL_TEMP_VALUE=0
runOnGears(KerguelenSpecialGreen)
if(GLOBAL_TEMP_VALUE==0)
then
PlaySound(sndThrowRelease)
AddGear(GetX(CurrentHedgehog), GetY(CurrentHedgehog)-20, gtCluster, 0, 0, -1000000, 32)
end
end
EndTurn()
DeleteVisualGear(GLOBAL_VISUAL_CIRCLE)
GLOBAL_VISUAL_CIRCLE=nil
GLOBAL_KERGUELEN_SPECIAL=0
RemoveWeapon(CurrentHedgehog,amHammer)
elseif(GetCurAmmoType() == amVampiric)
then
GLOBAL_VAMPIRIC_IS_ON=75
elseif(GetCurAmmoType() == amExtraDamage)
then
GLOBAL_EXTRA_DAMAGE_IS_ON=150
end
end
function onGearAdd(gearUid)
GLOBAL_SELECT_CONTINENT_CHECK=false
--track the gears im using
if(GetGearType(gearUid) == gtHedgehog or GetGearType(gearUid) == gtMine or GetGearType(gearUid) == gtExplosives)
then
trackGear(gearUid)
end
--remove gasclouds on gasbombspecial
if(GetGearType(gearUid)==gtPoisonCloud and GLOBAL_SOUTH_AMERICAN_SPECIAL == true)
then
DeleteGear(gearUid)
--african special
elseif(GetGearType(gearUid)==gtSMine)
then
vx,vy=GetGearVelocity(gearUid)
if(GLOBAL_AFRICAN_SPECIAL_STICKY == 1)
then
SetState(CurrentHedgehog, gstHHDriven+gstMoving)
SetGearPosition(CurrentHedgehog, GetX(CurrentHedgehog),GetY(CurrentHedgehog)-3)
SetGearVelocity(CurrentHedgehog, vx, vy)
DeleteGear(gearUid)
elseif(GLOBAL_AFRICAN_SPECIAL_STICKY == 2)
then
FireGear(CurrentHedgehog,gtNapalmBomb, vx, vy, 0)
DeleteGear(gearUid)
end
--north american special
elseif(GetGearType(gearUid)==gtSniperRifleShot)
then
GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER_IS_ON=true
if(GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER~=1)
then
SetHealth(gearUid, 1)
end
--north american special
elseif(GetGearType(gearUid)==gtShotgunShot)
then
if(GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN==true)
then
AddVisualGear(GetX(gearUid), GetY(gearUid), vgtFeather, 0, false)
AddVisualGear(GetX(gearUid), GetY(gearUid), vgtFeather, 0, false)
AddVisualGear(GetX(gearUid), GetY(gearUid), vgtFeather, 0, false)
PlaySound(sndBirdyLay)
else
GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN=nil
end
--european special
elseif(GetGearType(gearUid)==gtMolotov and GLOBAL_EUROPE_SPECIAL==1)
then
vx,vy=GetGearVelocity(gearUid)
e_health=FireGear(CurrentHedgehog,gtCluster, vx, vy, 1)
SetGearMessage(e_health, 2)
DeleteGear(gearUid)
--australian specials
elseif(GetGearType(gearUid)==gtShover and GLOBAL_AUSTRALIAN_SPECIAL~=0)
then
GLOBAL_TEMP_VALUE=0
runOnGears(AustraliaSpecialCheckHogs)
if(GLOBAL_TEMP_VALUE==0)
then
vx,vy=GetGearVelocity(gearUid)
if(GLOBAL_AUSTRALIAN_SPECIAL==1)
then
local austmine=FireGear(CurrentHedgehog,gtMine, vx, vy, 0)
SetHealth(austmine, 100)
SetTimer(austmine, 1000)
else
local austmine=FireGear(CurrentHedgehog,gtEgg, vx, vy, 10)
--SetHealth(austmine, 2000)
SetTimer(austmine, 6000)
SetGearMessage(austmine, 3)
end
else
PlaySound(sndDenied)
end
elseif(GetGearType(gearUid)==gtParachute)
then
GLOBAL_PARACHUTE_IS_ON=1
elseif(GetGearType(gearUid)==gtSwitcher)
then
GLOBAL_SWITCH_HOG_IS_ON=true
end
end
function onGearDelete(gearUid)
if(GetGearType(gearUid) == gtHedgehog or GetGearType(gearUid) == gtMine or GetGearType(gearUid) == gtExplosives)
then
trackDeletion(gearUid)
--sundaland special
if(GetGearType(gearUid) == gtHedgehog and GLOBAL_TEAM_CONTINENT[GetHogTeamName(GLOBAL_SUNDALAND_END_HOG)]==10)
then
if(GLOBAL_SUNDALAND_END_HOG==CurrentHedgehog)
then
runOnGears(SundalandFindOtherHogInTeam)
end
SundalandGetWeapons(GLOBAL_SUNDALAND_END_HOG)
end
end
--north american lipstick
if(GetGearType(gearUid)==gtSniperRifleShot )
then
GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER_IS_ON=false
if(GLOBAL_NORTH_AMERICAN_SPECIAL_SNIPER==2)
then
GLOBAL_TEMP_VALUE=gearUid
runOnGears(NorthAmericaSpecialSniper)
end
--north american eagle eye
elseif(GetGearType(gearUid)==gtShotgunShot and GLOBAL_NORTH_AMERICAN_SPECIAL_SHOTGUN==true)
then
EndTurn()
SetGearPosition(CurrentHedgehog, GetX(gearUid), GetY(gearUid)+7)
PlaySound(sndWarp)
--south american special
elseif(GetGearType(gearUid)==gtGasBomb and GLOBAL_SOUTH_AMERICAN_SPECIAL == true)
then
GLOBAL_TEMP_VALUE=gearUid
runOnGears(SouthAmericaSpecialCheeseExplosion)
AddVisualGear(GetX(gearUid), GetY(gearUid), vgtExplosion, 0, false)
--asian special
elseif(GetGearType(gearUid)==gtSnowball and GetGearMessage(gearUid)==1)
then
AddGear(GetX(gearUid), GetY(gearUid), gtCluster, 0, 0, 0, 22)
--europe special
elseif(GetGearType(gearUid)==gtCluster and GetGearMessage(gearUid)==2)
then
GLOBAL_TEMP_VALUE=gearUid
runOnGears(EuropeSpecialMolotovHit)
VisualExplosion(100,GetX(gearUid), GetY(gearUid),vgtSmokeWhite,vgtSmokeWhite)
AddVisualGear(GetX(gearUid), GetY(gearUid), vgtExplosion, 0, false)
PlaySound(sndGraveImpact)
--australian special
elseif(GetGearType(gearUid)==gtEgg and GetGearMessage(gearUid)==3)
then
GLOBAL_TEMP_VALUE=gearUid
runOnGears(AustraliaSpecialEggHit)
GLOBAL_TEMP_VALUE=0
--asia (using para)
elseif(GetGearType(gearUid)==gtParachute)
then
GLOBAL_PARACHUTE_IS_ON=false
elseif(GetGearType(gearUid)==gtSwitcher)
then
GLOBAL_SWITCH_HOG_IS_ON=false
end
end
--[[
sources (populations & area):
Own calculations from wikipedia.
Some are approximations.
]]
| 33.538306
| 541
| 0.744755
|
af77a10689e2ea2e637a123e83d69c8943b63169
| 378
|
dart
|
Dart
|
bitsdojo_window_macos/lib/src/app_window.dart
|
chifandeyu/bitsdojo_window
|
adad0cd40be3d3e12df11d864f18a96a2d0fb4fb
|
[
"MIT"
] | 445
|
2020-11-28T16:44:19.000Z
|
2022-03-30T07:05:04.000Z
|
bitsdojo_window_macos/lib/src/app_window.dart
|
ADRIAN3003/bitsdojo_window
|
b0ae5c9f3a3afc3666ecad9145bc17f170398794
|
[
"MIT"
] | 140
|
2020-12-01T17:14:42.000Z
|
2022-03-18T18:14:42.000Z
|
bitsdojo_window_macos/lib/src/app_window.dart
|
ADRIAN3003/bitsdojo_window
|
b0ae5c9f3a3afc3666ecad9145bc17f170398794
|
[
"MIT"
] | 101
|
2020-11-28T21:42:49.000Z
|
2022-03-31T16:10:46.000Z
|
library bitsdojo_window_macos;
import './window.dart';
import './native_api.dart';
class MacAppWindow extends MacOSWindow {
MacAppWindow._() {
super.handle = getAppWindow();
if (handle == null) {
print("Could not get Flutter window");
}
}
static final MacAppWindow _instance = MacAppWindow._();
factory MacAppWindow() {
return _instance;
}
}
| 18.9
| 57
| 0.674603
|
4ac821ed9923dc78e2bb68325d98e1c9caf681ac
| 553
|
sql
|
SQL
|
user.sql
|
mz0/tut-hazelcast
|
91d8323d07c0528d3427173be3950040ad1e8873
|
[
"Apache-2.0"
] | null | null | null |
user.sql
|
mz0/tut-hazelcast
|
91d8323d07c0528d3427173be3950040ad1e8873
|
[
"Apache-2.0"
] | null | null | null |
user.sql
|
mz0/tut-hazelcast
|
91d8323d07c0528d3427173be3950040ad1e8873
|
[
"Apache-2.0"
] | null | null | null |
-- as DB-root
-- mysql> CREATE USER zyx@localhost IDENTIFIED BY '888';
-- mysql> GRANT ALL PRIVILEGES ON xyz.* to zyx@localhost;
-- $ mysql -uzyx -p888 < user.sql
CREATE DATABASE xyz;
USE xyz;
CREATE TABLE user (
login VARCHAR(255) PRIMARY KEY,
password VARCHAR(255) NOT NULL,
salt VARCHAR(255) NOT NULL
);
INSERT INTO user(login, salt, password)
VALUES ('admin', '43e7d427e16e5dad9668b02e51227a12', CONCAT(
'5ad5220c22d98de88893cdca9cb620343404c9ef0d3f58db48160a954dead0bd',
'2321e2ae0de22b18df8e7e853638b9e68ad0d959452243c88a30c9585b01d4e1')
);
| 27.65
| 67
| 0.775769
|
c370030482e0e5a323aef2bf6e448ae5ec97d1e8
| 7,215
|
cs
|
C#
|
Assets/Mesh Tilesets/Runtime/Tileset.cs
|
studentutu/unity-mesh-tilesets
|
bc22e306b50379122a8ce8898fc66e181c833365
|
[
"MIT"
] | 50
|
2021-01-02T16:17:33.000Z
|
2022-03-08T07:44:32.000Z
|
Assets/Mesh Tilesets/Runtime/Tileset.cs
|
elopezga/unity-mesh-tilesets
|
3783c376989c0f7416de95a11531bbd39a8e0c5b
|
[
"MIT"
] | 2
|
2021-01-01T15:10:56.000Z
|
2021-01-23T13:38:07.000Z
|
Assets/Mesh Tilesets/Runtime/Tileset.cs
|
elopezga/unity-mesh-tilesets
|
3783c376989c0f7416de95a11531bbd39a8e0c5b
|
[
"MIT"
] | 9
|
2021-01-02T16:17:40.000Z
|
2021-08-23T05:58:56.000Z
|
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace MeshTilesets
{
public class Tileset : MonoBehaviour, IEnumerable<Tile>
{
public const int TILESET_FLAGS_COUNT = 16;
[HideInInspector]
[SerializeField] private List<Tile> tiles = new List<Tile>();
[SerializeField] private TilesetFlags[] tilesetFlags = new TilesetFlags[TILESET_FLAGS_COUNT];
public TilesetFlags[] TilesetFlags => tilesetFlags;
// tile id => Tile
private Dictionary<int, Tile> tileLookup;
public int NewId
{
get
{
return tiles.Aggregate(0, (current, tile) => Mathf.Max(current, tile.Id)) + 1;
}
}
public void AddTile(Tile tile)
{
if (!tiles.Contains(tile))
{
tiles.Add(tile);
tile.GetIdFromTileset(this);
}
RefreshLookup();
}
public void RemoveTile(Tile tile)
{
if (tiles.Contains(tile)) tiles.Remove(tile);
RefreshLookup();
}
public void CleanTiles()
{
for (var i = 0; i < tiles.Count; i++)
{
if (tiles[i] != null && tiles[i].transform.parent == transform) continue;
tiles.RemoveAt(i--);
}
RefreshLookup();
}
public void RefreshTileset()
{
CleanTiles();
foreach (Tile tile in GetComponentsInChildren<Tile>())
{
if (!tiles.Contains(tile)) tiles.Add(tile);
}
RefreshLookup();
}
public void RefreshLookup()
{
if(tileLookup == null) tileLookup = new Dictionary<int, Tile>();
tileLookup.Clear();
foreach (Tile tile in tiles)
{
tileLookup.Add(tile.Id, tile);
}
}
public Tile LookupTile(int id)
{
if(tileLookup == null || tileLookup.Count != tiles.Count) RefreshLookup();
return !tileLookup.ContainsKey(id) ? null : tileLookup[id];
}
public Tile MatchTile(TileInstance instance)
{
// Simple match
return tiles.FirstOrDefault(instance.Matches);
}
public Tile MatchClosestTile(TileInstance instance)
{
var minDistance = float.MaxValue;
Tile closestTile = null;
foreach (Tile tile in tiles)
{
// Check if the tile matches edges and tile flags
if (!instance.MatchesEdges(tile, out var rotation) || !instance.MatchesTileFlags(tile)) continue;
// Compute "distance" between tile dimensions and check if the tile is closer
var distance = (tile.Size - instance.RotatedSize(rotation)).SqrMagnitude();
if (!(distance < minDistance)) continue;
instance.matchedRotation = rotation;
minDistance = distance;
closestTile = tile;
}
return closestTile;
}
public IEnumerator<Tile> GetEnumerator()
{
return tiles.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
[System.Serializable]
public class TilesetFlags
{
public string name;
public bool isToggle = false;
public string[] options;
public bool IsEnabled => !string.IsNullOrEmpty(name) && (isToggle || (options != null && options.Length > 0));
public string[] OptionsWithUndefined => new[] {"Undefined"}.Concat(options).ToArray();
}
[System.Serializable]
public class TilesetFlagsMask
{
public int[] flags;
public bool IsUndefined => flags == null || flags.Length != Tileset.TILESET_FLAGS_COUNT;
public TilesetFlagsMask()
{
flags = new int[Tileset.TILESET_FLAGS_COUNT];
}
public TilesetFlagsMask(Color[] vertexColors)
{
FromVertexColors(vertexColors);
}
public int this[int index]
{
get
{
if (IsUndefined) return 0;
return flags[index];
}
set
{
if(IsUndefined && value == 0) return;
if(IsUndefined) flags = new int[Tileset.TILESET_FLAGS_COUNT];
flags[index] = value;
}
}
public Color[] AsVertexColors
{
get
{
if (IsUndefined) return null;
var colors = new Color[Tileset.TILESET_FLAGS_COUNT / 4];
ToVertexColors(colors);
return colors;
}
}
public void ToVertexColors(Color[] colors)
{
if (IsUndefined)
{
for (int i = 0; i < colors.Length; i++) colors[i] = Color.clear;
return;
}
for(int i = 0; i < flags.Length; i += 4)
colors[i / 4] = new Color(flags[i + 0], flags[i + 1], flags[i + 2], flags[i + 3]);
}
public void FromVertexColors(Color[] colors)
{
// Make sure color array is valid
if (colors == null || colors.Length * 4 != Tileset.TILESET_FLAGS_COUNT) return;
// If color array is undefined (everything is 0) and we don't already have a flags array
// we don't need to create one
if(AreVertexColorsUndefined(colors) && flags == null) return;
// Initialize a flags array if we don't have one
if(flags == null) flags = new int[Tileset.TILESET_FLAGS_COUNT];
for (int i = 0; i < colors.Length; i++)
{
var c = colors[i];
flags[i * 4 + 0] = (int)c.r;
flags[i * 4 + 1] = (int)c.g;
flags[i * 4 + 2] = (int)c.b;
flags[i * 4 + 3] = (int)c.a;
}
}
public static bool AreVertexColorsUndefined(Color[] vertexColors)
{
for (int i = 0; i < vertexColors.Length; i++)
{
if (vertexColors[i] != Color.clear) return false;
}
return true;
}
public bool Matches(TilesetFlagsMask other)
{
if (other.IsUndefined) return true;
for (int i = 0; i < other.flags.Length; i++)
{
if(other.flags[i] == 0) continue;
if (other.flags[i] != this[i]) return false;
}
return true;
}
public void Copy(TilesetFlagsMask other)
{
if (other.IsUndefined)
{
flags = null;
return;
}
else if(this.IsUndefined) flags = new int[Tileset.TILESET_FLAGS_COUNT];
other.flags.CopyTo(flags, 0);
}
}
}
| 29.44898
| 118
| 0.496743
|
fcdcd37e0f70dd0cc156ad4ba53193d36c0aa18a
| 1,710
|
kt
|
Kotlin
|
adapty/src/main/java/com/adapty/api/AdaptyCallback.kt
|
ditansu/AdaptySDK-Android
|
c16d3c1f32369967b40e7fac31e4be676b08e692
|
[
"MIT"
] | null | null | null |
adapty/src/main/java/com/adapty/api/AdaptyCallback.kt
|
ditansu/AdaptySDK-Android
|
c16d3c1f32369967b40e7fac31e4be676b08e692
|
[
"MIT"
] | null | null | null |
adapty/src/main/java/com/adapty/api/AdaptyCallback.kt
|
ditansu/AdaptySDK-Android
|
c16d3c1f32369967b40e7fac31e4be676b08e692
|
[
"MIT"
] | null | null | null |
package com.adapty.api
import com.adapty.api.entity.paywalls.DataContainer
import com.adapty.api.entity.paywalls.ProductModel
import com.adapty.api.entity.paywalls.PromoModel
import com.adapty.api.entity.purchaserInfo.AttributePurchaserInfoRes
import com.adapty.api.responses.RestoreReceiptResponse
import com.adapty.api.responses.UpdateProfileResponse
import com.adapty.api.responses.ValidateReceiptResponse
import com.android.billingclient.api.Purchase
interface AdaptyCallback {
}
interface AdaptySystemCallback : AdaptyCallback {
fun success(response: Any?, reqID: Int)
fun fail(error: AdaptyError, reqID: Int)
}
interface AdaptyPurchaseCallback : AdaptyCallback {
fun onResult(purchase: Purchase?, response: ValidateReceiptResponse?, error: AdaptyError?)
}
interface AdaptyProfileCallback : AdaptyCallback {
fun onResult(response: UpdateProfileResponse?, error: AdaptyError?)
}
interface AdaptyRestoreCallback : AdaptyCallback {
fun onResult(response: RestoreReceiptResponse?, error: AdaptyError?)
}
interface AdaptyValidateCallback : AdaptyCallback {
fun onResult(response: ValidateReceiptResponse?, error: AdaptyError?)
}
interface AdaptyPurchaserInfoCallback : AdaptyCallback {
fun onResult(response: AttributePurchaserInfoRes?, error: AdaptyError?)
}
interface AdaptyPaywallsCallback : AdaptyCallback {
fun onResult(containers: ArrayList<DataContainer>, products: ArrayList<ProductModel>, error: AdaptyError?)
}
interface AdaptyPaywallsInfoCallback : AdaptyCallback {
fun onResult(data: ArrayList<Any>, error: AdaptyError?)
}
interface AdaptyPromosCallback : AdaptyCallback {
fun onResult(promo: PromoModel?, error: AdaptyError?)
}
| 24.782609
| 110
| 0.8
|
e2b8ee50f7f76de58229f94fa1a7f208500be976
| 6,252
|
py
|
Python
|
leprikon/admin/refundrequest.py
|
leprikon-cz/leprikon
|
b1bec36fb6bcf0220bffccca53b6f200f9e95910
|
[
"BSD-3-Clause"
] | 4
|
2018-10-29T17:46:09.000Z
|
2021-12-16T08:57:48.000Z
|
leprikon/admin/refundrequest.py
|
leprikon-cz/leprikon
|
b1bec36fb6bcf0220bffccca53b6f200f9e95910
|
[
"BSD-3-Clause"
] | 68
|
2016-07-11T07:48:54.000Z
|
2022-03-18T01:32:06.000Z
|
leprikon/admin/refundrequest.py
|
leprikon-cz/leprikon
|
b1bec36fb6bcf0220bffccca53b6f200f9e95910
|
[
"BSD-3-Clause"
] | 2
|
2016-07-12T20:39:53.000Z
|
2020-10-10T03:14:42.000Z
|
from datetime import date
from random import randrange
from bankreader.models import Account
from django import forms
from django.contrib import admin
from django.http import HttpResponse
from django.shortcuts import render
from django.utils.html import format_html
from django.utils.translation import ugettext_lazy as _
from ..models.leprikonsite import LeprikonSite
from ..models.refundrequest import RefundRequest
from ..models.utils import BankAccount
from ..utils import amount_color, ascii, currency
from .export import AdminExportMixin
from .filters import SchoolYearListFilter, SubjectListFilter, SubjectTypeListFilter
from .utils import datetime_with_by
@admin.register(RefundRequest)
class RefundRequestAdmin(AdminExportMixin, admin.ModelAdmin):
actions = ("export_as_abo",)
date_hierarchy = "requested"
ordering = ("-requested",)
list_display = (
"id",
"requested_with_by",
"registration",
"amount_html",
"bank_account",
)
list_export = (
"id",
"requested",
"requested_by",
"registration",
"registration__variable_symbol",
"amount",
"bank_account",
"iban",
"bic",
)
list_filter = (
("registration__subject__school_year", SchoolYearListFilter),
"registration__subject__department",
"registration__subject__organization",
("registration__subject__subject_type", SubjectTypeListFilter),
("registration__subject", SubjectListFilter),
)
search_fields = (
"registration__variable_symbol",
"registration__subject__name",
"registration__participants__first_name",
"registration__participants__last_name",
"registration__participants__birth_num",
)
raw_id_fields = ("registration",)
def iban(self, obj):
return obj.bank_account.compact
iban.short_description = _("IBAN")
def bic(self, obj):
return obj.bank_account.bic
bic.short_description = _("BIC (SWIFT)")
def amount_html(self, obj):
return format_html(
'<b style="color: {color}">{amount}</b>',
color=amount_color(obj.amount),
amount=currency(abs(obj.amount)),
)
amount_html.short_description = _("amount")
amount_html.admin_order_field = "amount"
amount_html.allow_tags = True
requested_with_by = datetime_with_by("requested", _("requested time"))
def save_model(self, request, obj, form, change):
if not change:
obj.requested_by = request.user
super().save_model(request, obj, form, change)
def export_as_abo(self, request, queryset):
class AccountForm(forms.Form):
account = forms.ModelChoiceField(label=Account._meta.verbose_name, queryset=Account.objects.all())
constant_symbol = forms.IntegerField(label=_("Constant symbol"), max_value=9999, required=False)
message = forms.CharField(label=_("Message for recipient"), max_length=35, required=False)
if request.POST.get("post", "no") == "yes":
form = AccountForm(request.POST)
if form.is_valid():
return self._export_as_abo(
queryset,
BankAccount(form.cleaned_data["account"].iban),
form.cleaned_data["constant_symbol"] or 0,
form.cleaned_data["message"] or "",
)
else:
form = AccountForm()
adminform = admin.helpers.AdminForm(
form,
[(None, {"fields": list(form.base_fields)})],
{},
None,
model_admin=self,
)
return render(
request,
"leprikon/admin/action_form.html",
dict(
title=_("Export setup"),
opts=self.model._meta,
adminform=adminform,
media=self.media + adminform.media,
action="export_as_abo",
action_checkbox_name=admin.helpers.ACTION_CHECKBOX_NAME,
select_across=request.POST["select_across"],
selected=request.POST.getlist(admin.helpers.ACTION_CHECKBOX_NAME),
),
)
def _export_as_abo(self, queryset, bank_account: BankAccount, constant_symbol: int, message: str):
batch_id = randrange(1, 1000)
refund_requests: list[RefundRequest] = list(queryset)
today = f"{date.today():%d%m%y}"
message = ascii(message)
site_name = ascii(LeprikonSite.objects.get_current().name)
sum_amount = sum(rr.amount for rr in refund_requests if rr.amount)
response = HttpResponse(content_type="text/abo; charset=ascii")
response[
"Content-Disposition"
] = f'attachment; filename="{ascii(str(self.model._meta.verbose_name))} {today} {batch_id}.abo"'
lines = []
# write header
# header, date, customer name, customer number, batch number range, unused
lines.append(f"UHL1{today}{site_name[:20].ljust(20)}0000000000001999000000000000")
lines.append(f"1 1501 {batch_id:03}000 {bank_account.bank_code}")
lines.append(f"2 {bank_account.account_code} {sum_amount}00 {today}")
# write records
for refund_request in refund_requests:
if refund_request.amount:
lines.append(
" ".join(
[
refund_request.bank_account.account_code,
str(refund_request.amount * 100),
str(refund_request.registration.variable_symbol),
f"{refund_request.bank_account.bank_code}{constant_symbol:04}",
"0", # specific symbol
f"AV:{site_name[:35]}|{message[:35]}",
]
)
)
# write footer
lines.append("3 +")
lines.append("5 +")
lines.append("")
response.write("\r\n".join(lines).encode("ascii", errors="ignore"))
return response
export_as_abo.short_description = _("Export selected records as ABO")
| 34.733333
| 110
| 0.610845
|
5d2cdb5eed2575ef74e606ac0e99d16af6a15662
| 503
|
hpp
|
C++
|
plugins/opengl/include/sge/opengl/glx/visual/optional_srgb_flag.hpp
|
cpreh/spacegameengine
|
313a1c34160b42a5135f8223ffaa3a31bc075a01
|
[
"BSL-1.0"
] | 2
|
2016-01-27T13:18:14.000Z
|
2018-05-11T01:11:32.000Z
|
plugins/opengl/include/sge/opengl/glx/visual/optional_srgb_flag.hpp
|
cpreh/spacegameengine
|
313a1c34160b42a5135f8223ffaa3a31bc075a01
|
[
"BSL-1.0"
] | null | null | null |
plugins/opengl/include/sge/opengl/glx/visual/optional_srgb_flag.hpp
|
cpreh/spacegameengine
|
313a1c34160b42a5135f8223ffaa3a31bc075a01
|
[
"BSL-1.0"
] | 3
|
2018-05-11T01:11:34.000Z
|
2021-04-24T19:47:45.000Z
|
// Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENGL_GLX_VISUAL_OPTIONAL_SRGB_FLAG_HPP_INCLUDED
#define SGE_OPENGL_GLX_VISUAL_OPTIONAL_SRGB_FLAG_HPP_INCLUDED
#include <sge/opengl/glx/visual/optional_srgb_flag_fwd.hpp>
#include <sge/opengl/glx/visual/srgb_flag.hpp>
#include <fcppt/optional/object_impl.hpp>
#endif
| 35.928571
| 61
| 0.781312
|
18755e693113d611df1e98ccb33b45b34f87df02
| 4,098
|
tsx
|
TypeScript
|
src/pages/OrderDetail.tsx
|
marco-bertelli/fullstack-ecommerce
|
e807234c79cde0bc11c2eeab48da1bc229004aa5
|
[
"MIT"
] | null | null | null |
src/pages/OrderDetail.tsx
|
marco-bertelli/fullstack-ecommerce
|
e807234c79cde0bc11c2eeab48da1bc229004aa5
|
[
"MIT"
] | null | null | null |
src/pages/OrderDetail.tsx
|
marco-bertelli/fullstack-ecommerce
|
e807234c79cde0bc11c2eeab48da1bc229004aa5
|
[
"MIT"
] | null | null | null |
import React from "react";
import { useParams } from "react-router";
import Spinner from "../components/Spinner";
import { formatAmount } from "../helpers";
import { useQueryOrder } from "../hooks/useQuearyOrders";
import PageNotFound from "./PageNotFound";
interface Props {}
const OrderDetail: React.FC<Props> = () => {
const params = useParams<{ id: string }>();
const { order, loading, error } = useQueryOrder(params.id);
if (loading) <Spinner color="grey" height={50} width={50} />;
if (error) return <h2 className="header--center">{error}</h2>;
if (!order) return <PageNotFound />;
const {
id,
amount,
items,
shippingAddress: { fullname, address1, address2, city, zipCode, phone },
paymentStatus,
shipmentStatus,
} = order;
return (
<div className="page--order-details">
<h2 className="header">Dettaglio ordine</h2>
<div className="order-section">
<h4 className="header">Order ID:</h4>
<div className="order-section__content">
<p className="paragraph paragraph--focus">{id}</p>
</div>
</div>
<div className="order-section">
<h4 className="header">Oggetti comprati:</h4>
{items.map(({ quantity, item: { id, title, price } }, i) => (
<div key={id} className="order-section__content">
<div className="order-item">
<p className="paragraph paragraph--focus" style={{ width: "5%" }}>
{i + 1}
</p>
<p
className="paragraph paragraph--focus"
style={{ width: "50%" }}
>
{title}
</p>
<p
className="paragraph paragraph--focus"
style={{ width: "15%" }}
>
{quantity} x {formatAmount(price)}
</p>
<p className="paragraph paragraph--focus" style={{ width: "5%" }}>
=
</p>
<p
className="paragraph paragraph--focus"
style={{ width: "20%" }}
>
${formatAmount(quantity * price)}
</p>
</div>
</div>
))}
</div>
<div className="order-section">
<h4 className="header">Totale:</h4>
<div className="order-section__content">
<p className="paragraph paragraph--focus">€{formatAmount(amount)}</p>
</div>
</div>
<div className="order-section">
<h4 className="header">Indirizzo:</h4>
<div className="order-section__content">
<div className="order-address">
<p className="paragraph">
Recipient name:{" "}
<span className="paragraph--focus">{fullname}</span>
</p>
<p className="paragraph paragraph--focus">
{address1}, {address2 ? address2 : ""}, {city}, {zipCode}, Tel:{" "}
{phone}
</p>
</div>
</div>
</div>
<div className="order-section">
<h4 className="header">Stato pagamento:</h4>
<div className="order-section__content">
<p className="paragraph paragraph--focus">{paymentStatus || "n/a"}</p>
</div>
</div>
<div className="order-section">
<h4 className="header">Stato spedizione:</h4>
<div className="order-section__content">
<p
className="paragraph paragraph--focus"
style={{
color:
shipmentStatus === "New"
? "blue"
: shipmentStatus === "Preparing"
? "chocolate"
: shipmentStatus === "Shipped"
? "green"
: shipmentStatus === "Delivered"
? "grey"
: shipmentStatus === "Canceled"
? "red"
: undefined,
}}
>
{shipmentStatus || "n/a"}
</p>
</div>
</div>
</div>
);
};
export default OrderDetail;
| 31.523077
| 82
| 0.495364
|
2fc98ce0afd09d5e37cc664784f112d57bdea714
| 7,843
|
py
|
Python
|
pygenprop/testing/test_results_with_matches.py
|
G2CView/pygenprop
|
e3654ec78033d555a877974430d2e9055d514470
|
[
"Apache-2.0"
] | 8
|
2019-07-06T00:47:06.000Z
|
2022-01-19T05:25:12.000Z
|
pygenprop/testing/test_results_with_matches.py
|
Micromeda/pygenprop
|
c7236e9776305c9787fd1a6ae495992d3ca68084
|
[
"Apache-2.0"
] | 16
|
2018-11-16T23:43:22.000Z
|
2021-12-15T03:23:56.000Z
|
pygenprop/testing/test_results_with_matches.py
|
G2CView/pygenprop
|
e3654ec78033d555a877974430d2e9055d514470
|
[
"Apache-2.0"
] | 3
|
2019-07-05T13:58:25.000Z
|
2021-08-25T15:49:58.000Z
|
#!/usr/bin/env python
"""
Created by: Lee Bergstrand (2018)
Description: A simple unittest for testing the results module.
"""
import unittest
from sqlalchemy import create_engine
from io import StringIO
from pygenprop.assignment_file_parser import parse_interproscan_file_and_fasta_file
from pygenprop.database_file_parser import parse_genome_properties_flat_file
from pygenprop.results import GenomePropertiesResultsWithMatches, load_assignment_caches_from_database_with_matches, \
load_results_from_serialization
class TestResults(unittest.TestCase):
"""A unit testing class for testing the results.py module. To be called by nosetests."""
@classmethod
def setUpClass(cls):
"""Set up testing data for testing."""
with open('pygenprop/testing/test_constants/C_chlorochromatii_CaD3.faa') as fasta_one:
with open('pygenprop/testing/test_constants/C_chlorochromatii_CaD3.tsv') as assignment_file_one:
properties_one = parse_interproscan_file_and_fasta_file(assignment_file_one, fasta_file=fasta_one)
with open('pygenprop/testing/test_constants/C_luteolum_DSM_273.faa') as fasta_two:
with open('pygenprop/testing/test_constants/C_luteolum_DSM_273.tsv') as assignment_file_two:
properties_two = parse_interproscan_file_and_fasta_file(assignment_file_two, fasta_file=fasta_two)
with open('pygenprop/testing/test_constants/test_genome_properties_two.txt') as test_genome_properties_file:
genome_properties_tree = parse_genome_properties_flat_file(test_genome_properties_file)
cls.test_genome_property_results = [properties_one, properties_two]
cls.test_tree = genome_properties_tree
cls.engine = create_engine('sqlite://')
def test_get_matches(self):
"""Test that we can get matches that support the existence of steps."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results, properties_tree=self.test_tree)
self.assertEqual(len(
results.step_matches.reset_index()[['Property_Identifier', 'Step_Number']].drop_duplicates()), 1)
self.assertEqual(len(results.get_sample_matches('C_chlorochromatii_CaD3')), 5)
self.assertEqual(len(results.get_sample_matches('C_luteolum_DSM_273')), 4)
self.assertEqual(results.get_sample_matches('Your moms house'), None)
def test_get_top_step_matches(self):
"""Test that we can get top matches that support the existence of steps."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results, properties_tree=self.test_tree)
self.assertEqual(len(results._top_step_matches), 2)
cad3_top_matches = results.get_sample_matches('C_chlorochromatii_CaD3', top=True)
dsm_273_top_matches = results.get_sample_matches('C_luteolum_DSM_273', top=True)
self.assertEqual(len(cad3_top_matches), 1)
self.assertEqual(len(dsm_273_top_matches), 1)
self.assertEqual(cad3_top_matches['Protein_Accession'].tolist()[0], 'NC_007514.1_940')
self.assertEqual(dsm_273_top_matches['Protein_Accession'].tolist()[0], 'NC_007512.1_1088')
def test_get_property_matches(self):
"""Test that we can get matches that support the existence of a property."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results, properties_tree=self.test_tree)
self.assertEqual(results.get_property_matches('GenProp0236'), None)
self.assertEqual(len(results.get_property_matches('GenProp0232')), 9)
self.assertEqual(len(results.get_property_matches('GenProp0232', top=True)), 2)
self.assertEqual(len(results.get_property_matches('GenProp0232', sample='C_luteolum_DSM_273')), 4)
def test_get_step_matches(self):
"""Test that we can get matches that support the existence of specific steps."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results, properties_tree=self.test_tree)
self.assertEqual(results.get_step_matches('None', 1), None)
self.assertEqual(results.get_step_matches('GenProp0232', 1), None)
self.assertEqual(len(results.get_step_matches('GenProp0232', 4)), 9)
def test_write_fasta(self):
"""Test writing a FASTA file."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results, properties_tree=self.test_tree)
test_one = StringIO()
results.write_supporting_proteins_for_step_fasta(test_one, 'GenProp0232', 4)
first_identifiers = self.get_fasta_identifiers(test_one)
self.assertEqual(len(results.get_step_matches('GenProp0232', 4)), len(first_identifiers))
test_two = StringIO()
results.write_supporting_proteins_for_step_fasta(test_two, 'GenProp0232', 4, top=True)
first_identifiers = self.get_fasta_identifiers(test_two)
self.assertEqual(len(results.get_step_matches('GenProp0232', 4, top=True)), len(first_identifiers))
with self.assertRaises(KeyError):
results.write_supporting_proteins_for_step_fasta(test_two, 'NO', 'NO')
with self.assertRaises(KeyError):
results.write_supporting_proteins_for_step_fasta(test_two, 'GenProp0232', 5)
@staticmethod
def get_fasta_identifiers(fasta_handle):
"""
Gets the identifiers from each sequence of a FASTA file.
:param fasta_handle: A FASTA file handle.
:return: A list of FASTA file sequence identifiers.
"""
fasta_handle.seek(0)
current_identifiers = []
for line in fasta_handle:
if '>' in line:
current_id = line.split('>')[1].strip()
current_identifiers.append(current_id)
return current_identifiers
def test_save_assignment_file(self):
"""Test that we can save an SQLite assignment file."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results, properties_tree=self.test_tree)
engine = self.engine
results.to_assignment_database(engine)
assignment_caches = load_assignment_caches_from_database_with_matches(engine)
new_results = GenomePropertiesResultsWithMatches(*assignment_caches, properties_tree=self.test_tree)
self.assertEqual(results.sample_names, new_results.sample_names)
self.assertEqual(results.property_results.equals(new_results.property_results), True)
self.assertEqual(results.step_results.equals(new_results.step_results), True)
self.assertEqual(results.step_matches.equals(new_results.step_matches), True)
def test_save_serialization(self):
"""Test that we can serialize."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results,
properties_tree=self.test_tree)
serialization = results.to_serialization()
new_results = load_results_from_serialization(serialized_results=serialization, properties_tree=self.test_tree)
self.assertEqual(results.sample_names, new_results.sample_names)
self.assertEqual(results.property_results.equals(new_results.property_results), True)
self.assertEqual(results.step_results.equals(new_results.step_results), True)
self.assertEqual(results.step_matches.equals(new_results.step_matches), True)
self.assertIsInstance(new_results, GenomePropertiesResultsWithMatches)
def test_generate_json_tree(self):
"""Test that a JSON tree can be built."""
results = GenomePropertiesResultsWithMatches(*self.test_genome_property_results,
properties_tree=self.test_tree)
json = results.to_json()
self.assertIsNotNone(json)
| 47.246988
| 120
| 0.735305
|
a19be477e36f73bfea17399090f9d9a02958caac
| 1,917
|
ts
|
TypeScript
|
src/app/components/shopping-list/shopping-edit/shopping-edit.component.ts
|
mrtenketsu/ng-learn
|
e467c0b3ec34f5033575dcb4384957129002ffee
|
[
"MIT"
] | null | null | null |
src/app/components/shopping-list/shopping-edit/shopping-edit.component.ts
|
mrtenketsu/ng-learn
|
e467c0b3ec34f5033575dcb4384957129002ffee
|
[
"MIT"
] | null | null | null |
src/app/components/shopping-list/shopping-edit/shopping-edit.component.ts
|
mrtenketsu/ng-learn
|
e467c0b3ec34f5033575dcb4384957129002ffee
|
[
"MIT"
] | null | null | null |
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import { NgForm } from '@angular/forms';
import { Ingridient } from '../../../models/ingridient.model';
import { ShoppingListService } from '../../../services/shopping-list.service';
import { Subscription } from "rxjs/Subscription";
@Component({
selector: 'app-shopping-edit',
templateUrl: './shopping-edit.component.html',
styleUrls: ['./shopping-edit.component.css']
})
export class ShoppingEditComponent implements OnInit, OnDestroy {
editMode = false;
editNumberIndex: number;
editedItem: Ingridient;
@ViewChild('f') ngForm: NgForm;
private startedEditingSubscription: Subscription;
constructor(private shoppingListService: ShoppingListService) { }
ngOnInit() {
this.startedEditingSubscription = this.shoppingListService.startedEditing.subscribe(
(index: number) => {
this.editMode = true;
this.editNumberIndex = index;
this.editedItem = this.shoppingListService.getIngridient(index);
this.ngForm.setValue({
name: this.editedItem.name,
amount: this.editedItem.amount
})
}
);
}
onAddOrUpdateItem(form: NgForm) : void {
const value = form.value;
const newIngridient = new Ingridient(value.name, value.amount);
if (this.editMode) {
this.shoppingListService.updateIngridient(this.editNumberIndex, newIngridient);
}
else {
this.shoppingListService.addIngridient(newIngridient);
}
this.clear();
}
onClear() {
this.clear();
}
clear() {
this.editMode = false;
this.editedItem = null;
this.editNumberIndex = null;
this.ngForm.reset();
}
onDelete() {
if (this.editMode) {
this.shoppingListService.deleteIngridient(this.editNumberIndex);
this.clear();
}
}
ngOnDestroy() {
this.startedEditingSubscription.unsubscribe();
}
}
| 25.56
| 88
| 0.673448
|
e28d7d4ce1d0c9ab33bc88398fd0a1a2e581b476
| 5,892
|
py
|
Python
|
static/datasets/classifier_build.py
|
LukaszMalucha/Flask-Wine-Quality
|
1b7bbda54ba68bb35baad368008f6c32c52b3f6f
|
[
"MIT"
] | 4
|
2019-05-06T07:19:57.000Z
|
2020-02-20T22:04:43.000Z
|
static/datasets/classifier_build.py
|
LukaszMalucha/ML-with-Flask-deployment
|
1b7bbda54ba68bb35baad368008f6c32c52b3f6f
|
[
"MIT"
] | null | null | null |
static/datasets/classifier_build.py
|
LukaszMalucha/ML-with-Flask-deployment
|
1b7bbda54ba68bb35baad368008f6c32c52b3f6f
|
[
"MIT"
] | 1
|
2020-06-05T09:42:30.000Z
|
2020-06-05T09:42:30.000Z
|
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
### Dataset as df
dataset = pd.read_csv('winequality-red.csv')
### Shuffle data
from sklearn.utils import shuffle
dataset = shuffle(dataset)
### Separate label y from features X
X = dataset.iloc[:,:11].values
y = dataset.iloc[:,11].values
### Standardize features
from sklearn.preprocessing import StandardScaler
sc_X = StandardScaler()
X = sc_X.fit_transform(X)
### Train/Validation/Test split
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.2)
################################### MODELS ################################################################################################
### Logisitic Regression
from sklearn.linear_model import LogisticRegression
classifier_log = LogisticRegression()
classifier_log.fit(X_train,y_train)
### K-Nearest Neighbors
from sklearn.neighbors import KNeighborsClassifier
classifier_knn = KNeighborsClassifier()
classifier_knn.fit(X_train, y_train)
### SVM
from sklearn.svm import SVC
classifier_svml = SVC()
classifier_svml.fit(X_train,y_train)
### Kernel SVM
from sklearn.svm import SVC
classifier_svmg = SVC()
classifier_svmg.fit(X_train,y_train)
#### Naive Bayes - Gaussian
from sklearn.naive_bayes import GaussianNB
classifier_nb = GaussianNB()
classifier_nb.fit(X_train, y_train)
### AdaBoost
from sklearn.ensemble import AdaBoostClassifier
classifier_ada = AdaBoostClassifier()
classifier_ada.fit(X_train, y_train)
### Random Forest
from sklearn.ensemble import RandomForestClassifier
classifier_rf = RandomForestClassifier()
classifier_rf.fit(X_train, y_train)
### Gradient Tree Boosting
from sklearn.ensemble import GradientBoostingClassifier
classifier_gtb = GradientBoostingClassifier()
classifier_gtb.fit(X_train, y_train)
################################## k-Fold Cross Validation ########################################################################
from sklearn.model_selection import cross_val_score
accuracies_log = cross_val_score(estimator = classifier_log, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_knn = cross_val_score(estimator = classifier_knn, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_svml = cross_val_score(estimator = classifier_svml, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_svmg = cross_val_score(estimator = classifier_svmg, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_ada = cross_val_score(estimator = classifier_ada, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_nb = cross_val_score(estimator = classifier_nb, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_rf = cross_val_score(estimator = classifier_rf, X = X_train, y = y_train, cv = 10, n_jobs = -1)
accuracies_gtb = cross_val_score(estimator = classifier_gtb, X = X_train, y = y_train, cv = 10, n_jobs = -1)
print(accuracies_log.mean(), accuracies_log.std())
print(accuracies_knn.mean(), accuracies_knn.std())
print(accuracies_svml.mean(), accuracies_svml.std())
print(accuracies_svmg.mean(), accuracies_svmg.std())
print(accuracies_ada.mean(), accuracies_ada.std())
print(accuracies_nb.mean(), accuracies_nb.std())
print(accuracies_rf.mean(), accuracies_rf.std())
print(accuracies_gtb.mean(), accuracies_gtb.std())
## Compile top predictions into one df
from sklearn.metrics import accuracy_score
df_knn = pd.DataFrame(data=y_pred_knn, columns = {'y_pred_knn'})
df_svmg = pd.DataFrame(data=y_pred_svmg, columns = {'y_pred_svmg'})
df_rf = pd.DataFrame(data=y_pred_rf, columns = {'y_pred_rf'})
df_gtb = pd.DataFrame(data=y_pred_gtb, columns = {'y_pred_gtb'})
df_log = pd.DataFrame(data=y_pred_log, columns = {'y_pred_log'})
df_svml = pd.DataFrame(data=y_pred_svml, columns = {'y_pred_svml'})
df_vot = pd.DataFrame(data=y_pred_vot, columns = {'y_pred_vot'})
df_y_test = pd.DataFrame(data=y_test, columns = {'y_test'})
##################################### Grid Search #################################################################################
from sklearn.model_selection import GridSearchCV
### SVMS
svml_parameters = [ {'C': [1,10, 100, 1000], 'kernel' : ['linear']} ]
svmg_parameters = [{'C': [1,10, 100, 1000],'kernel' : ['rbf'], 'gamma': np.logspace(-3, 2, 6), 'degree': [1,2,3,4,5]},
{'C': [1,10, 100, 1000],'kernel' : ['poly'], 'gamma': np.logspace(-3, 2, 6), 'degree': [1,2,3,4,5]}]
### KNN
knn_parameters = [{'n_neighbors' : [3,5,8,13], 'algorithm' : ['auto', 'ball_tree', 'kd_tree', 'brute']}]
### AdaBoost
ada_parameters = [{'n_estimators': [100, 200, 300], 'learning_rate': [1, 0.1, 0.01, 0.001]}]
### Random Forest
rf_parameters = [{'min_samples_leaf': [3, 4, 5],
'n_estimators': [100, 200, 300, 500, 600] }]
### Gradient Tree Boosting
gtb_parameters = [{'learning_rate': [1, 0.1, 0.01, 0.001], 'n_estimators': [100, 200, 300, 500, 600]}]
### SPECIFY WHICH classifier_ and _parameter you want to validate:
grid_search = GridSearchCV(estimator = classifier_gtb, param_grid = gtb_parameters, scoring = 'accuracy', cv = 10, n_jobs = -1)
grid_search = grid_search.fit(X_train, y_train)
best_accuracy = grid_search.best_score_
best_parameters = grid_search.best_params_
## Optimal parameters for svml are: {'C': 1], 'kernel' : 'linear'} -- Accuracy 59% vs avg 59%
## Optimal parameters for kernel svmg are {'C': 10, 'gamma': 1.0, 'kernel': 'rbf'} -- Accuracy 65% vs avg 61%
## Optimal parameters for knn are {'algorithm': 'auto', 'n_neighbors': 13} -- Accuracy 56% vs avg 54%
## Optimal parameters for ada are {'learning_rate': 0.01, 'n_estimators': 100} -- Accuracy 57% vs 54%
## Optimal parameters for rf are {'criterion': 'entropy', 'min_samples_leaf': 3, max_depth': 110, 'max_features': 3, 'min_samples_split': 5, 'n_estimators': 200} -- Accuracy 66% vs avg 65%
print(best_parameters)
| 37.528662
| 190
| 0.681602
|
febfb4e4267043756786e048bcc4dcd2824752ce
| 117
|
lua
|
Lua
|
package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/controller/admin/privatewifi.lua
|
SvenRoederer/freifunk-gluon_core
|
1ad629e50305965844335e8e5277b05262cf6268
|
[
"BSD-2-Clause"
] | 499
|
2015-01-07T20:06:02.000Z
|
2022-03-30T11:56:37.000Z
|
package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/controller/admin/privatewifi.lua
|
SvenRoederer/freifunk-gluon_core
|
1ad629e50305965844335e8e5277b05262cf6268
|
[
"BSD-2-Clause"
] | 1,849
|
2015-01-01T04:20:31.000Z
|
2022-03-31T18:40:27.000Z
|
package/gluon-web-private-wifi/luasrc/lib/gluon/config-mode/controller/admin/privatewifi.lua
|
SvenRoederer/freifunk-gluon_core
|
1ad629e50305965844335e8e5277b05262cf6268
|
[
"BSD-2-Clause"
] | 518
|
2015-01-04T13:45:27.000Z
|
2022-03-30T21:52:50.000Z
|
package 'gluon-web-private-wifi'
entry({"admin", "privatewifi"}, model("admin/privatewifi"), _("Private WLAN"), 30)
| 29.25
| 82
| 0.700855
|
c5e3b9223f233a7228de23bd7ff2ce77e7a2ce1c
| 1,227
|
sql
|
SQL
|
probes/original/sql/tax_ascendantes.sql
|
sauloal/projects
|
79068b20251fd29cadbc80a5de550fc77332788d
|
[
"MIT"
] | null | null | null |
probes/original/sql/tax_ascendantes.sql
|
sauloal/projects
|
79068b20251fd29cadbc80a5de550fc77332788d
|
[
"MIT"
] | null | null | null |
probes/original/sql/tax_ascendantes.sql
|
sauloal/projects
|
79068b20251fd29cadbc80a5de550fc77332788d
|
[
"MIT"
] | 1
|
2018-10-26T05:13:42.000Z
|
2018-10-26T05:13:42.000Z
|
SELECT include.* FROM taxonomy INNER JOIN taxonomy AS include ON (taxonomy.left_value BETWEEN include.left_value AND include.right_value) WHERE taxonomy.name = "primate" ORDER BY left_value;
SELECT taxonomy.* FROM taxonomy.taxonomy, (SELECT left_value as innerLeft, right_value as innerRight FROM taxonomy.taxonomy WHERE ncbi_taxon_id = 36911 AND name_class = "scientific name") AS insider WHERE taxonomy.left_value <= insider.innerLeft AND taxonomy.right_value >= insider.innerRight ORDER BY left_value
SELECT taxonomy.* FROM taxonomy.taxonomy, (SELECT left_value as innerLeft, right_value as innerRight FROM taxonomy.taxonomy WHERE ncbi_taxon_id = 32291 AND name_class = "scientific name") AS insider WHERE taxonomy.left_value <= insider.innerLeft AND taxonomy.right_value >= insider.innerRight AND name_class = "scientific name" ORDER BY left_value
SELECT taxonomy.* FROM taxonomy.taxonomy, (SELECT left_value as innerLeft, right_value as innerRight FROM taxonomy.taxonomy WHERE ncbi_taxon_id = 32291 AND name_class = "scientific name") AS insider WHERE taxonomy.left_value <= insider.innerLeft AND taxonomy.right_value >= insider.innerRight AND name_class = "scientific name" AND node_rank <> "no rank" ORDER BY left_value
| 245.4
| 374
| 0.817441
|
6b6039ea45ea7e9381de9ba25334125813ad8640
| 20,104
|
js
|
JavaScript
|
bower_components/angular-validation-ghiscoding/src/validation-rules.js
|
anhhh11/AngularJS_Form_Postal_Websocket
|
771ac339ddf3abdde238f615886008f61ab7ec37
|
[
"MIT"
] | null | null | null |
bower_components/angular-validation-ghiscoding/src/validation-rules.js
|
anhhh11/AngularJS_Form_Postal_Websocket
|
771ac339ddf3abdde238f615886008f61ab7ec37
|
[
"MIT"
] | null | null | null |
bower_components/angular-validation-ghiscoding/src/validation-rules.js
|
anhhh11/AngularJS_Form_Postal_Websocket
|
771ac339ddf3abdde238f615886008f61ab7ec37
|
[
"MIT"
] | null | null | null |
/**
* angular-validation-rules (ghiscoding)
* https://github.com/ghiscoding/angular-validation
*
* @author: Ghislain B.
* @desc: angular-validation rules definition
* Each rule objects must have 3 properties {pattern, message, type}
* and in some cases you could also define a 4th properties {params} to pass extras, for example: max_len will know his maximum length by this extra {params}
* Rule.type can be {conditionalDate, conditionalNumber, match, regex}
*
* WARNING: Rule patterns are defined as String type so don't forget to escape your characters: \\
*/
angular
.module('ghiscoding.validation')
.factory('validationRules', [function () {
// return the service object
var service = {
getElementValidators: getElementValidators
};
return service;
//----
// Functions declaration
//----------------------------------
/** Get the element active validators and store it inside an array which will be returned
* @param object args: all attributes
*/
function getElementValidators(args) {
// grab all passed attributes
var alternateText = (typeof args.altText !== "undefined") ? args.altText.replace("alt=", "") : null;
var customUserRegEx = (args.hasOwnProperty('customRegEx')) ? args.customRegEx : null;
var rule = (args.hasOwnProperty('rule')) ? args.rule : null;
var ruleParams = (args.hasOwnProperty('ruleParams')) ? args.ruleParams : null;
// validators on the current DOM element, an element can have 1+ validators
var validator = {};
switch(rule) {
case "alpha" :
validator = {
pattern: /^([a-zа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ])+$/i,
message: "INVALID_ALPHA",
type: "regex"
};
break;
case "alphaSpaces" :
case "alpha_spaces" :
validator = {
pattern: /^([a-zа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ\s])+$/i,
message: "INVALID_ALPHA_SPACE",
type: "regex"
};
break;
case "alphaNum" :
case "alpha_num" :
validator = {
pattern: /^([a-zа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9])+$/i,
message: "INVALID_ALPHA_NUM",
type: "regex"
};
break;
case "alphaNumSpaces" :
case "alpha_num_spaces" :
validator = {
pattern: /^([a-zа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9\s])+$/i,
message: "INVALID_ALPHA_NUM_SPACE",
type: "regex"
};
break;
case "alphaDash" :
case "alpha_dash" :
validator = {
pattern: /^([a-zа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9_-])+$/i,
message: "INVALID_ALPHA_DASH",
type: "regex"
};
break;
case "alphaDashSpaces" :
case "alpha_dash_spaces" :
validator = {
pattern: /^([a-zа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9\s_-])+$/i,
message: "INVALID_ALPHA_DASH_SPACE",
type: "regex"
};
break;
case "betweenLen" :
case "between_len" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_len:1,5";
}
validator = {
pattern: "^.{" + ranges[0] + "," + ranges[1] + "}$",
message: "INVALID_BETWEEN_CHAR",
params: [ranges[0], ranges[1]],
type: "regex"
};
break;
case "betweenNum" :
case "between_num" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_num:1,5";
}
validator = {
condition: [">=","<="],
message: "INVALID_BETWEEN_NUM",
params: [ranges[0], ranges[1]],
type: "conditionalNumber"
};
break;
case "boolean":
validator = {
pattern: /^(true|false|0|1)$/i,
message: "INVALID_BOOLEAN",
type: "regex"
};
break;
case "checked":
validator = {
pattern: /^true$/i,
message: "INVALID_CHECKBOX_SELECTED",
type: "regex"
};
break;
case "creditCard" :
case "credit_card" :
validator = {
pattern: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35\d{3})\d{11})$/,
message: "INVALID_CREDIT_CARD",
type: "regex"
};
break;
case "dateEuroLong" :
case "date_euro_long" :
validator = {
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_EURO_LONG",
type: "regex"
};
break;
case "dateEuroLongBetween" :
case "date_euro_long_between" :
case "betweenDateEuroLong" :
case "between_date_euro_long" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_date_euro_long:01-01-1990,31-12-2015";
}
validator = {
condition: [">=","<="],
dateType: "EURO_LONG",
params: [ranges[0], ranges[1]],
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_EURO_LONG_BETWEEN",
type: "conditionalDate"
};
break;
case "dateEuroLongMax" :
case "date_euro_long_max" :
case "maxDateEuroLong" :
case "max_date_euro_long" :
validator = {
condition: "<=",
dateType: "EURO_LONG",
params: [ruleParams],
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_EURO_LONG_MAX",
type: "conditionalDate"
};
break;
case "dateEuroLongMin" :
case "date_euro_long_min" :
case "minDateEuroLong" :
case "min_date_euro_long" :
validator = {
condition: ">=",
dateType: "EURO_LONG",
params: [ruleParams],
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_EURO_LONG_MIN",
type: "conditionalDate"
};
break;
case "dateEuroShort" :
case "date_euro_short" :
validator = {
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.]\d\d$/,
message: "INVALID_DATE_EURO_SHORT",
type: "regex"
};
break;
case "dateEuroShortBetween" :
case "date_euro_short_between" :
case "betweenDateEuroShort" :
case "between_date_euro_short" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_date_euro_short:01-01-90,31-12-15";
}
validator = {
condition: [">=","<="],
dateType: "EURO_SHORT",
params: [ranges[0], ranges[1]],
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.]\d\d$/,
message: "INVALID_DATE_EURO_SHORT_BETWEEN",
type: "conditionalDate"
};
break;
case "dateEuroShortMax" :
case "date_euro_short_max" :
case "maxDateEuroShort" :
case "max_date_euro_short" :
validator = {
condition: "<=",
dateType: "EURO_SHORT",
params: [ruleParams],
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.]\d\d$/,
message: "INVALID_DATE_EURO_SHORT_MAX",
type: "conditionalDate"
};
break;
case "dateEuroShortMin" :
case "date_euro_short_min" :
case "minDateEuroShort" :
case "min_date_euro_short" :
validator = {
condition: ">=",
dateType: "EURO_SHORT",
params: [ruleParams],
pattern: /^(0[1-9]|[12][0-9]|3[01])[-\/\.](0[1-9]|1[012])[-\/\.]\d\d$/,
message: "INVALID_DATE_EURO_SHORT_MIN",
type: "conditionalDate"
};
break;
case "dateIso" :
case "date_iso" :
validator = {
pattern: /^(19|20)\d\d([-])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/,
message: "INVALID_DATE_ISO",
type: "regex"
};
break;
case "dateIsoBetween" :
case "date_iso_between" :
case "betweenDateIso" :
case "between_date_iso" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_date_iso:1990-01-01,2000-12-31";
}
validator = {
condition: [">=","<="],
dateType: "ISO",
params: [ranges[0], ranges[1]],
pattern: /^(19|20)\d\d([-])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/,
message: "INVALID_DATE_ISO_BETWEEN",
type: "conditionalDate"
};
break;
case "dateIsoMax" :
case "date_iso_max" :
case "maxDateIso" :
case "max_date_iso" :
validator = {
condition: "<=",
dateType: "ISO",
params: [ruleParams],
pattern: /^(19|20)\d\d([-])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/,
message: "INVALID_DATE_ISO_MAX",
type: "conditionalDate"
};
break;
case "dateIsoMin" :
case "date_iso_min" :
case "minDateIso" :
case "min_date_iso" :
validator = {
condition: ">=",
dateType: "ISO",
params: [ruleParams],
pattern: /^(19|20)\d\d([-])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/,
message: "INVALID_DATE_ISO_MIN",
type: "conditionalDate"
};
break;
case "dateUsLong" :
case "date_us_long" :
validator = {
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_US_LONG",
type: "regex"
};
break;
case "dateUsLongBetween" :
case "date_us_long_between" :
case "betweenDateUsLong" :
case "between_date_us_long" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_date_us_long:01/01/1990,12/31/2015";
}
validator = {
condition: [">=","<="],
dateType: "US_LONG",
params: [ranges[0], ranges[1]],
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_US_LONG_BETWEEN",
type: "conditionalDate"
};
break;
case "dateUsLongMax" :
case "date_us_long_max" :
case "maxDateUsLong" :
case "max_date_us_long" :
validator = {
condition: "<=",
dateType: "US_LONG",
params: [ruleParams],
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_US_LONG_MAX",
type: "conditionalDate"
};
break;
case "dateUsLongMin" :
case "date_us_long_min" :
case "minDateUsLong" :
case "min_date_us_long" :
validator = {
condition: ">=",
dateType: "US_LONG",
params: [ruleParams],
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.](19|20)\d\d$/,
message: "INVALID_DATE_US_LONG_MIN",
type: "conditionalDate"
};
break;
case "dateUsShort" :
case "date_us_short" :
validator = {
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.]\d\d$/,
message: "INVALID_DATE_US_SHORT",
type: "regex"
};
break;
case "dateUsShortBetween" :
case "date_us_short_between" :
case "betweenDateUsShort" :
case "between_date_us_short" :
var ranges = ruleParams.split(',');
if (ranges.length !== 2) {
throw "This validation must include exactly 2 params separated by a comma (,) ex.: between_date_us_short:01/01/90,12/31/15";
}
validator = {
condition: [">=","<="],
dateType: "US_SHORT",
params: [ranges[0], ranges[1]],
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.]\d\d$/,
message: "INVALID_DATE_US_SHORT_BETWEEN",
type: "conditionalDate"
};
break;
case "dateUsShortMax" :
case "date_us_short_max" :
case "maxDateUsShort" :
case "max_date_us_short" :
validator = {
condition: "<=",
dateType: "US_SHORT",
params: [ruleParams],
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.]\d\d$/,
message: "INVALID_DATE_US_SHORT_MAX",
type: "conditionalDate"
};
break;
case "dateUsShortMin" :
case "date_us_short_min" :
case "minDateUsShort" :
case "min_date_us_short" :
validator = {
condition: ">=",
dateType: "US_SHORT",
params: [ruleParams],
pattern: /^(0[1-9]|1[012])[-\/\.](0[1-9]|[12][0-9]|3[01])[-\/\.]\d\d$/,
message: "INVALID_DATE_US_SHORT_MIN",
type: "conditionalDate"
};
break;
case "email" :
validator = {
// Email RFC 5322, pattern pulled from http://www.regular-expressions.info/email.html
// but removed necessity of a TLD (Top Level Domain) which makes this email valid: admin@mailserver1
pattern: /^[-\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9#~!$%^&*_=+\/`\|}{\'?]+(\.[-\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9#~!$%^&*_=+\/`\|}{\'?]+)*@([\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9_][-\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9_]*(\.[-\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ0-9_]+)*([\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ]+)|(\.[\wа-яàáâãäåæçèéêëœìíïîðòóôõöøùúûñüýÿßÞďđ]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i,
message: "INVALID_EMAIL",
type: "regex"
};
break;
case "exactLen" :
case "exact_len" :
validator = {
pattern: "^.{" + ruleParams + "}$",
message: "INVALID_EXACT_LEN",
params: [ruleParams],
type: "regex"
};
break;
case "float" :
validator = {
pattern: /^\d*\.{1}\d+$/,
message: "INVALID_FLOAT",
type: "regex"
};
break;
case "floatSigned" :
case "float_signed" :
validator = {
pattern: /^[-+]?\d*\.{1}\d+$/,
message: "INVALID_FLOAT_SIGNED",
type: "regex"
};
break;
case "iban" :
validator = {
pattern: /^[a-zA-Z]{2}\d{2}\s?([0-9a-zA-Z]{4}\s?){4}[0-9a-zA-Z]{2}$/i,
message: "INVALID_IBAN",
type: "regex"
};
break;
case "int" :
case "integer" :
validator = {
pattern: /^\d+$/,
message: "INVALID_INTEGER",
type: "regex"
};
break;
case "intSigned" :
case "integerSigned" :
case "int_signed" :
case "integer_signed" :
validator = {
pattern: /^[+-]?\d+$/,
message: "INVALID_INTEGER_SIGNED",
type: "regex"
};
break;
case "ipv4" :
validator = {
pattern: /^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,
message: "INVALID_IPV4",
type: "regex"
};
break;
case "ipv6" :
validator = {
pattern: /^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/i,
message: "INVALID_IPV6",
type: "regex"
};
break;
case "match" :
var args = ruleParams.split(',');
validator = {
message: "INVALID_INPUT_MATCH",
params: args,
type: "match"
};
break;
case "maxLen" :
case "max_len" :
validator = {
pattern: "^.{0," + ruleParams + "}$",
message: "INVALID_MAX_CHAR",
params: [ruleParams],
type: "regex"
};
break;
case "maxNum" :
case "max_num" :
validator = {
condition: "<=",
message: "INVALID_MAX_NUM",
params: [ruleParams],
type: "conditionalNumber"
};
break;
case "minLen" :
case "min_len" :
validator = {
pattern: "^.{" + ruleParams + ",}$",
message: "INVALID_MIN_CHAR",
params: [ruleParams],
type: "regex"
};
break;
case "minNum" :
case "min_num" :
validator = {
condition: ">=",
message: "INVALID_MIN_NUM",
params: [ruleParams],
type: "conditionalNumber"
};
break;
case "numeric" :
validator = {
pattern: /^\d*\.?\d+$/,
message: "INVALID_NUMERIC",
type: "regex"
};
break;
case "numericSigned" :
case "numeric_signed" :
validator = {
pattern: /^[-+]?\d*\.?\d+$/,
message: "INVALID_NUMERIC_SIGNED",
type: "regex"
};
break;
case "pattern" :
case "regex" :
// Custom User Regex is a special case, the properties (message, pattern) were created and dealt separately prior to the for loop
validator = {
pattern: customUserRegEx.pattern,
message: "INVALID_PATTERN",
params: [customUserRegEx.message],
type: "regex"
};
break;
case "remote" :
validator = {
message: '', // there is no error message defined on this one since user will provide his own error message via remote response or `alt=`
params: [ruleParams],
type: "remote"
};
break;
case "required" :
validator = {
pattern: /\S+/,
message: "INVALID_REQUIRED",
type: "regex"
};
break;
case "url" :
validator = {
pattern: /^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/i,
message: "INVALID_URL",
type: "regex"
};
break;
case "time" :
validator = {
pattern: /^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$/,
message: "INVALID_TIME",
type: "regex"
};
break;
} // switch()
// add the possible alternate text user might have provided
validator.altText = alternateText;
return validator;
} // getElementValidators()
}]);
| 35.45679
| 478
| 0.480352
|
f477e5bb8fc38f4c28de42f074244d68258dd6d6
| 2,479
|
tsx
|
TypeScript
|
src/components/layout/Footer.tsx
|
tbudin/md-consultants
|
b12fce6004cabaed4fdba5a13d538a79e21a1f44
|
[
"MIT"
] | null | null | null |
src/components/layout/Footer.tsx
|
tbudin/md-consultants
|
b12fce6004cabaed4fdba5a13d538a79e21a1f44
|
[
"MIT"
] | 1
|
2022-02-19T12:57:39.000Z
|
2022-02-19T12:57:39.000Z
|
src/components/layout/Footer.tsx
|
tbudin/md-consultants
|
b12fce6004cabaed4fdba5a13d538a79e21a1f44
|
[
"MIT"
] | null | null | null |
import Link from "next/link";
import LinkedIn from "../../assets/linkedin-alt.svg";
import { Lockup } from "../Lockup";
import config from "../../lib/config";
export function Footer() {
return (
<div className="site-container">
<div className="footer-container">
<Lockup fill={"white"} />
<a
title="LinkedIn"
href={`https://linkedin.com/${config.linkedin_account}`}
target="_blank"
rel="noopener noreferrer"
className="icon-link"
>
<LinkedIn width={24} height={24} fill={"white"} />
</a>
</div>
<div className="footer-container">
<p className="text-xs">© 2022 MD Consultants, all rights reserved <br/>- <a href="https://wiridis.com" rel="noopener" target="_blank">Designed & developed by Wiridis</a></p>
<nav className="rc">
<ul>
<li>
<Link href="/">
<a>Home</a>
</Link>
</li>
<li>
<Link href="/about-us">
<a>About Us</a>
</Link>
</li>
<li>
<Link href="/contact-us">
<a>Contact Us</a>
</Link>
</li>
<li>
<Link href="/posts">
<a>Our Blog</a>
</Link>
</li>
</ul>
</nav>
</div>
<style jsx>
{`
.footer-container {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 0.75rem;
color: var(--bg-color);
}
.footer-container:nth-child(2) {
flex-direction: column-reverse;
}
.footer-container p {
opacity: 0.70;
}
.rc {
margin-right: -12px;
margin-left: -12px;
flex-shrink: 0;
}
.rc ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
white-space: nowrap;
margin-bottom: 0;
padding: 1rem 0 2rem;
list-style: none;
}
.rc a {
padding: 12px;
}
@media (min-width: 769px) {
.footer-container:nth-child(2) {
flex-direction: row;
}
}
`}
</style>
</div>
);
}
| 27.241758
| 181
| 0.428399
|
386ee8790baf0202b67a29ccdad2751ad824c468
| 9,456
|
php
|
PHP
|
application/controllers/api/Paiement_batiment_moe.php
|
rltbruce/api_paeb
|
04db60945d68de95810e099407dfa91e180e1729
|
[
"MIT"
] | null | null | null |
application/controllers/api/Paiement_batiment_moe.php
|
rltbruce/api_paeb
|
04db60945d68de95810e099407dfa91e180e1729
|
[
"MIT"
] | null | null | null |
application/controllers/api/Paiement_batiment_moe.php
|
rltbruce/api_paeb
|
04db60945d68de95810e099407dfa91e180e1729
|
[
"MIT"
] | null | null | null |
<?php
//harizo
defined('BASEPATH') OR exit('No direct script access allowed');
// afaka fafana refa ts ilaina
require APPPATH . '/libraries/REST_Controller.php';
class Paiement_batiment_moe extends REST_Controller {
public function __construct() {
parent::__construct();
$this->load->model('paiement_batiment_moe_model', 'Paiement_batiment_moeManager');
$this->load->model('demande_batiment_moe_model', 'Demande_batiment_moeManager');
}
public function index_get()
{
$id = $this->get('id');
$id_demande_batiment_moe = $this->get('id_demande_batiment_moe');
$menu = $this->get('menu');
if ($menu=='getpaiementinvalideBydemande')
{ $data = array();
$tmp = $this->Paiement_batiment_moeManager->findpaiementinvalideBydemande($id_demande_batiment_moe);
if ($tmp)
{
foreach ($tmp as $key => $value)
{
$demande_batiment_moe = array();
$demande_batiment_moe = $this->Demande_batiment_moeManager->findById($value->id_demande_batiment_moe);
$data[$key]['id'] = $value->id;
$data[$key]['montant_paiement'] = $value->montant_paiement;
$data[$key]['date_paiement'] = $value->date_paiement;
$data[$key]['observation'] = $value->observation;
$data[$key]['validation'] = $value->validation;
$data[$key]['demande_batiment_moe'] = $demande_batiment_moe;
}
}
}
elseif ($menu=='getpaiementvalideBydemande')
{ $data = array();
$tmp = $this->Paiement_batiment_moeManager->findpaiementvalideBydemand($id_demande_batiment_moe);
if ($tmp)
{
foreach ($tmp as $key => $value)
{
$demande_batiment_moe = array();
$demande_batiment_moe = $this->Demande_batiment_moeManager->findById($value->id_demande_batiment_moe);
$data[$key]['id'] = $value->id;
$data[$key]['montant_paiement'] = $value->montant_paiement;
$data[$key]['date_paiement'] = $value->date_paiement;
$data[$key]['observation'] = $value->observation;
$data[$key]['validation'] = $value->validation;
$data[$key]['demande_batiment_moe'] = $demande_batiment_moe;
}
}
}
elseif ($menu=='getpaiementBydemande')
{ $data = array();
$tmp = $this->Paiement_batiment_moeManager->findpaiementBydemande($id_demande_batiment_moe);
if ($tmp)
{
foreach ($tmp as $key => $value)
{
$demande_batiment_moe = array();
$demande_batiment_moe = $this->Demande_batiment_moeManager->findById($value->id_demande_batiment_moe);
$data[$key]['id'] = $value->id;
$data[$key]['montant_paiement'] = $value->montant_paiement;
$data[$key]['date_paiement'] = $value->date_paiement;
$data[$key]['observation'] = $value->observation;
$data[$key]['validation'] = $value->validation;
$data[$key]['demande_batiment_moe'] = $demande_batiment_moe;
}
}
}
elseif ($id)
{
$data = array();
$paiement_batiment_moe = $this->Paiement_batiment_moeManager->findById($id);
$demande_batiment_moe = $this->Demande_batiment_moeManager->findById($paiement_batiment_moe->id_demande_batiment_moe);
$data['id'] = $paiement_batiment_moe->id;
$data['montant_paiement'] = $paiement_batiment_moe->montant_paiement;
$data['date_paiement'] = $paiement_batiment_moe->date_paiement;
$data['observation'] = $paiement_batiment_moe->observation;
$data['demande_batiment_moe'] = $demande_batiment_moe;
}
else
{
$menu = $this->Paiement_batiment_moeManager->findAll();
if ($menu)
{
foreach ($menu as $key => $value)
{
$demande_batiment_moe = $this->Demande_batiment_moeManager->findById($value->id_demande_batiment_moe);
$data[$key]['id'] = $value->id;
$data[$key]['montant_paiement'] = $value->montant_paiement;
$data[$key]['date_paiement'] = $value->date_paiement;
$data[$key]['observation'] = $value->observation;
$data[$key]['demande_batiment_moe'] = $demande_batiment_moe;
}
}
else
$data = array();
}
if (count($data)>0) {
$this->response([
'status' => TRUE,
'response' => $data,
'message' => 'Get data success',
], REST_Controller::HTTP_OK);
} else {
$this->response([
'status' => FALSE,
'response' => array(),
'message' => 'No data were found'
], REST_Controller::HTTP_OK);
}
}
public function index_post()
{
$id = $this->post('id') ;
$supprimer = $this->post('supprimer') ;
if ($supprimer == 0) {
if ($id == 0) {
$data = array(
'montant_paiement' => $this->post('montant_paiement'),
'validation' => $this->post('validation'),
//'pourcentage_paiement' => $this->post('pourcentage_paiement'),
'date_paiement' => $this->post('date_paiement'),
'observation' => $this->post('observation'),
'id_demande_batiment_moe' => $this->post('id_demande_batiment_moe')
);
if (!$data) {
$this->response([
'status' => FALSE,
'response' => 0,
'message' => 'No request found'
], REST_Controller::HTTP_BAD_REQUEST);
}
$dataId = $this->Paiement_batiment_moeManager->add($data);
if (!is_null($dataId)) {
$this->response([
'status' => TRUE,
'response' => $dataId,
'message' => 'Data insert success'
], REST_Controller::HTTP_OK);
} else {
$this->response([
'status' => FALSE,
'response' => 0,
'message' => 'No request found'
], REST_Controller::HTTP_BAD_REQUEST);
}
} else {
$data = array(
'montant_paiement' => $this->post('montant_paiement'),
'validation' => $this->post('validation'),
//'cumul' => $this->post('cumul'),
//'pourcentage_paiement' => $this->post('pourcentage_paiement'),
'date_paiement' => $this->post('date_paiement'),
'observation' => $this->post('observation'),
'id_demande_batiment_moe' => $this->post('id_demande_batiment_moe')
);
if (!$data || !$id) {
$this->response([
'status' => FALSE,
'response' => 0,
'message' => 'No request found'
], REST_Controller::HTTP_BAD_REQUEST);
}
$update = $this->Paiement_batiment_moeManager->update($id, $data);
if(!is_null($update)) {
$this->response([
'status' => TRUE,
'response' => 1,
'message' => 'Update data success'
], REST_Controller::HTTP_OK);
} else {
$this->response([
'status' => FALSE,
'message' => 'No request found'
], REST_Controller::HTTP_OK);
}
}
} else {
if (!$id) {
$this->response([
'status' => FALSE,
'response' => 0,
'message' => 'No request found'
], REST_Controller::HTTP_BAD_REQUEST);
}
$delete = $this->Paiement_batiment_moeManager->delete($id);
if (!is_null($delete)) {
$this->response([
'status' => TRUE,
'response' => 1,
'message' => "Delete data success"
], REST_Controller::HTTP_OK);
} else {
$this->response([
'status' => FALSE,
'response' => 0,
'message' => 'No request found'
], REST_Controller::HTTP_OK);
}
}
}
}
/* End of file controllername.php */
/* Location: ./application/controllers/controllername.php */
| 44.186916
| 130
| 0.465102
|
3882ce39d63ef7b2163ec6ce7f07092aedd94c97
| 1,314
|
php
|
PHP
|
app/Http/Controllers/HomeController.php
|
iamoufei/team_matrix
|
78bfdb15b6ad71ff80ecaffe74a89d7cec51c9e3
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/HomeController.php
|
iamoufei/team_matrix
|
78bfdb15b6ad71ff80ecaffe74a89d7cec51c9e3
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/HomeController.php
|
iamoufei/team_matrix
|
78bfdb15b6ad71ff80ecaffe74a89d7cec51c9e3
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http\Controllers;
use App\UserProfile;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Crypt;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
// $this->middleware('auth');
}
public function registerConfirm($confirm_code){
// get the user id with confirm code
$user_id = Crypt::decryptString($confirm_code);
// check the user status
$user_status = UserProfile::where('user_id', $user_id)->first()->status;
if ($user_status!=null && $user_status === 'active'){
session()->flush();
echo 'The account had already active, Please login or enter the system. ';
echo "<a href='/dashboard'>Go >>></a>";
}elseif ($user_status!=null && $user_status === 'inactive'){
session()->flush();
UserProfile::where('user_id', $user_id)->update(['status'=>'active']);
echo 'The account had active, now you can use the system, enjoy it! ';
echo "<a href='/dashboard'>Go >>></a>";
}else{
session()->flush();
echo 'The account is not allow to use, please contact the system administor.';
}
}
}
| 32.04878
| 90
| 0.584475
|
c3940bd25f9ae7c1490e8580d7bb07ac0075018b
| 454
|
cs
|
C#
|
YoYoProject/Models/GMResourceModel.cs
|
nkrapivin/YoYoProject
|
b61cb688f3e05d058e24041d14afe6ab2bc2da27
|
[
"MIT"
] | 3
|
2019-03-28T08:04:02.000Z
|
2020-05-25T10:18:02.000Z
|
YoYoProject/Models/GMResourceModel.cs
|
nkrapivin/YoYoProject
|
b61cb688f3e05d058e24041d14afe6ab2bc2da27
|
[
"MIT"
] | 2
|
2020-06-06T15:09:11.000Z
|
2020-06-07T14:17:35.000Z
|
YoYoProject/Models/GMResourceModel.cs
|
nkrapivin/YoYoProject
|
b61cb688f3e05d058e24041d14afe6ab2bc2da27
|
[
"MIT"
] | 3
|
2018-01-18T17:31:49.000Z
|
2021-01-14T02:17:26.000Z
|
using System.Runtime.Serialization;
using YoYoProject.Models;
namespace YoYoProject
{
[DataContract]
internal class GMResourceModel : ModelBase
{
[DataMember]
public string name { get; set; }
public GMResourceModel()
: base("GMResource", "1.0")
{
}
public GMResourceModel(string modelName, string mvc)
: base(modelName, mvc)
{
}
}
}
| 18.916667
| 60
| 0.555066
|
1a3687de75b7b7338b2d74235c0f75ddfe44a428
| 4,036
|
py
|
Python
|
backend_rest/invoices/exports.py
|
ezrankayamba/twiga_sales
|
78ea9a35db7e75f3492f03559662808cb3ad59f3
|
[
"MIT"
] | null | null | null |
backend_rest/invoices/exports.py
|
ezrankayamba/twiga_sales
|
78ea9a35db7e75f3492f03559662808cb3ad59f3
|
[
"MIT"
] | 33
|
2020-03-14T17:29:33.000Z
|
2022-03-12T00:19:30.000Z
|
backend_rest/invoices/exports.py
|
ezrankayamba/twiga_sales
|
78ea9a35db7e75f3492f03559662808cb3ad59f3
|
[
"MIT"
] | null | null | null |
import io
import xlsxwriter
from . import models
from sales import models as s_models, exports as s_exports
from datetime import datetime
import decimal
def date_parse(str, fmt='%Y-%m-%d %H:%M:%S'):
if str == None:
return None
return datetime.strptime(str, fmt)
def cell(i, j):
char = "A"
char = chr(ord(char[0]) + j - 1)
return f'{char}{i}'
def date_fmt(date):
if date == None:
return None
return date.strftime("%d/%m/%Y")
# def get_refs(sale):
# exit_ref = None
# c2_ref = None
# assessment_ref = None
# exit_doc = s_models.Document.objects.filter(doc_type=s_models.Document.DOC_EXIT, sale=sale).first()
# if exit_doc:
# exit_ref = exit_doc.ref_number
# assessment_doc = s_models.Document.objects.filter(doc_type=s_models.Document.DOC_ASSESSMENT, sale=sale).first()
# if assessment_doc:
# assessment_ref = assessment_doc.ref_number
# c2_doc = s_models.Document.objects.filter(doc_type=s_models.Document.DOC_C2, sale=sale).first()
# if c2_doc:
# c2_ref = c2_doc.ref_number
# return [c2_ref, assessment_ref, exit_ref]
def export_report_inv_details(request, sales):
output = io.BytesIO()
workbook = xlsxwriter.Workbook(output)
main = workbook.add_worksheet("Report")
headers = ['ID', 'TRANS_DATE', 'CUSTOMER', 'DELIVERY NOTE', 'VEH#',
'TAX INVOICE', 'SO#', 'PRODUCT', 'QTY(TONS)', 'DESTINATION', 'VEH# TRAILER', 'AGENT', 'C2', 'ASSESSMENT', 'EXIT', 'RATE/T', 'TOTAL VALUE EX VAT', 'VAT AMOUNT 18%', 'TOTAL VALUE INC VAT', 'INV NUMBER', 'ASSIGN#'
]
rows = []
for prj in sales:
comm_amt = prj.quantity2 * prj.invoice.commission
row = []
row.append(prj.id)
row.append(date_fmt(date_parse(prj.transaction_date)))
row.append(prj.customer_name)
row.append(prj.delivery_note)
row.append(prj.vehicle_number)
row.append(prj.tax_invoice)
row.append(prj.sales_order)
row.append(prj.product_name)
row.append(float(prj.quantity2))
row.append(prj.destination)
row.append(prj.vehicle_number_trailer)
row.append(prj.agent.code if prj.agent else 'None')
row.extend(s_exports.get_refs(prj))
row.append(float(prj.invoice.commission))
row.append(float(comm_amt))
row.append(float(comm_amt * decimal.Decimal(0.18)))
row.append(float(comm_amt*decimal.Decimal(1.18)))
row.append(prj.invoice.number)
row.append(prj.assign_no)
rows.append(row)
for j, col in enumerate(headers, start=1):
main.write(f'{cell(1, j)}', col)
for i, row in enumerate(rows, start=2):
for j, col in enumerate(row, start=1):
main.write(f'{cell(i, j)}', col)
workbook.close()
xlsx_data = output.getvalue()
return xlsx_data
def export_invoices(request, invoices):
output = io.BytesIO()
workbook = xlsxwriter.Workbook(output)
main = workbook.add_worksheet("Report")
headers = ['ID', 'INVOICE NO', 'PHY INVOICE NO', 'RATE', 'AGENT',
'QUANTITY(TONS)', 'VALUE(TZS)', 'VALUE(VAT INCL.)', 'STATUS']
rows = []
def get_phy_num(inv):
d = inv.docs.first()
ref_num = int(d.ref_number) if d else None
return ref_num
for prj in invoices:
row = []
row.append(prj.id)
row.append(prj.number)
row.append(get_phy_num(prj))
row.append(prj.commission)
row.append(prj.agent.code)
row.append(prj.quantity)
row.append(prj.value)
row.append(prj.value * decimal.Decimal(1.18))
row.append('Pending' if prj.status == 0 else 'Completed')
rows.append(row)
for j, col in enumerate(headers, start=1):
main.write(f'{cell(1, j)}', col)
for i, row in enumerate(rows, start=2):
for j, col in enumerate(row, start=1):
main.write(f'{cell(i, j)}', col)
workbook.close()
xlsx_data = output.getvalue()
return xlsx_data
| 32.288
| 225
| 0.624628
|
c4df6e50171420d497d76d5afe8636009394b043
| 3,393
|
cpp
|
C++
|
mini/tor/circuit_node_crypto_state.cpp
|
geralltf/mini-tor
|
61d58749431fba970e19e0d35a53811956c69b16
|
[
"MIT"
] | 380
|
2016-07-20T10:22:37.000Z
|
2022-03-30T08:47:44.000Z
|
mini/tor/circuit_node_crypto_state.cpp
|
geralltf/mini-tor
|
61d58749431fba970e19e0d35a53811956c69b16
|
[
"MIT"
] | 24
|
2016-08-13T12:56:03.000Z
|
2021-05-26T01:59:17.000Z
|
mini/tor/circuit_node_crypto_state.cpp
|
geralltf/mini-tor
|
61d58749431fba970e19e0d35a53811956c69b16
|
[
"MIT"
] | 105
|
2016-07-20T14:34:52.000Z
|
2022-02-17T13:31:25.000Z
|
#include "circuit_node_crypto_state.h"
#include "relay_cell.h"
#include <mini/stack_buffer.h>
#include <mini/io/memory_stream.h>
#include <mini/io/stream_wrapper.h>
#include <mini/logger.h>
namespace mini::tor {
circuit_node_crypto_state::circuit_node_crypto_state(
const byte_buffer_ref key_material
)
{
io::memory_stream key_material_stream(key_material);
io::stream_wrapper key_material_buffer(key_material_stream);
stack_byte_buffer<crypto::sha1::hash_size_in_bytes> df;
key_material_buffer.read(df);
_forward_digest.update(df);
stack_byte_buffer<crypto::sha1::hash_size_in_bytes> db;
key_material_buffer.read(db);
_backward_digest.update(db);
stack_byte_buffer<aes_ctr_128::key_size_in_bytes> kf;
key_material_buffer.read(kf);
_forward_cipher.init(aes_ctr_128::key(kf));
stack_byte_buffer<aes_ctr_128::key_size_in_bytes> kb;
key_material_buffer.read(kb);
_backward_cipher.init(aes_ctr_128::key(kb));
}
void
circuit_node_crypto_state::encrypt_forward_cell(
relay_cell& cell
)
{
byte_buffer relay_payload_bytes(cell::payload_size);
if (cell.get_payload().is_empty())
{
io::memory_stream relay_payload_stream(relay_payload_bytes);
io::stream_wrapper relay_payload_buffer(relay_payload_stream, endianness::big_endian);
relay_payload_buffer.write(cell.get_relay_command());
relay_payload_buffer.write(static_cast<uint16_t>(0)); // 'recognized'
relay_payload_buffer.write(cell.get_stream_id());
relay_payload_buffer.write(static_cast<uint32_t>(0)); // digest placeholder
relay_payload_buffer.write(static_cast<payload_size_type>(cell.get_relay_payload().get_size()));
relay_payload_buffer.write(cell.get_relay_payload());
//
// update digest field in the payload
//
_forward_digest.update(relay_payload_bytes);
auto digest = _forward_digest.duplicate().get();
memory::copy(&relay_payload_bytes[5], &digest[0], sizeof(uint32_t));
}
else
{
relay_payload_bytes.insert_many(cell.get_payload(), 0);
}
//
// encrypt the payload
//
auto encrypted_payload = _forward_cipher.encrypt(relay_payload_bytes);
mini_assert(encrypted_payload.get_size() == cell::payload_size);
//
// set the payload
//
cell.set_payload(encrypted_payload);
}
bool
circuit_node_crypto_state::decrypt_backward_cell(
cell& cell
)
{
mini_assert(cell.get_payload().get_size() == cell::payload_size);
auto decrypted_payload = _backward_cipher.decrypt(cell.get_payload());
mini_assert(decrypted_payload.get_size() == cell::payload_size);
cell.set_payload(decrypted_payload);
//
// check if this is a cell for us.
//
if (cell.is_recognized())
{
//
// remove the digest from the payload
//
byte_buffer payload_without_digest(cell.get_payload());
memory::zero(payload_without_digest.get_buffer() + 5, sizeof(uint32_t));
stack_byte_buffer<sizeof(uint32_t)> payload_digest;
memory::copy(payload_digest.get_buffer(), cell.get_payload().get_buffer() + 5, sizeof(uint32_t));
auto backward_digest_clone = _backward_digest.duplicate();
backward_digest_clone.update(payload_without_digest);
auto digest = backward_digest_clone.get();
if (memory::equal(payload_digest.get_buffer(), &digest[0], sizeof(payload_digest)))
{
_backward_digest.update(payload_without_digest);
return true;
}
}
return false;
}
}
| 28.041322
| 101
| 0.7486
|
0212fd8d9ccbbe2d0104ba2f8912d0cb582aecf8
| 195
|
sql
|
SQL
|
database/migrations/1599764205766_create_form_types/up.sql
|
Rocinante32/trm
|
e8084d680222ae11db1ed5b8a8ab5e23132c6ad6
|
[
"MIT"
] | 14
|
2020-11-20T10:57:05.000Z
|
2022-03-21T22:58:55.000Z
|
database/migrations/1599764205766_create_form_types/up.sql
|
Rocinante32/trm
|
e8084d680222ae11db1ed5b8a8ab5e23132c6ad6
|
[
"MIT"
] | 14
|
2020-11-02T14:35:45.000Z
|
2022-02-27T10:03:51.000Z
|
database/migrations/1599764205766_create_form_types/up.sql
|
Rocinante32/trm
|
e8084d680222ae11db1ed5b8a8ab5e23132c6ad6
|
[
"MIT"
] | 7
|
2021-01-22T14:06:27.000Z
|
2021-11-02T20:16:27.000Z
|
CREATE TABLE form_types (
value text PRIMARY KEY
);
INSERT INTO form_types VALUES ('APPLICATION');
INSERT INTO form_types VALUES ('PERSONALIZED');
INSERT INTO form_types VALUES ('ANONYMOUS');
| 24.375
| 47
| 0.769231
|
c9c5cad28d00382af188a7ddd5153ac812c676a5
| 4,540
|
ts
|
TypeScript
|
packages/opencensus-exporter-zpages/src/zpages.ts
|
dnduffy/opencensus-node
|
e5222c4a85c430c4472a95fd389ca9e414357a75
|
[
"Apache-2.0"
] | 3
|
2018-05-28T12:32:44.000Z
|
2018-07-20T18:30:24.000Z
|
packages/opencensus-exporter-zpages/src/zpages.ts
|
dnduffy/opencensus-node
|
e5222c4a85c430c4472a95fd389ca9e414357a75
|
[
"Apache-2.0"
] | null | null | null |
packages/opencensus-exporter-zpages/src/zpages.ts
|
dnduffy/opencensus-node
|
e5222c4a85c430c4472a95fd389ca9e414357a75
|
[
"Apache-2.0"
] | null | null | null |
/**
* Copyright 2018 OpenCensus Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {Exporter, ExporterBuffer, ExporterConfig, RootSpan, Span} from '@opencensus/core';
import {logger, Logger} from '@opencensus/core';
import * as express from 'express';
import * as http from 'http';
import {createRoutes} from './zpages-frontend/routes';
/** Interface to Zpages options */
export interface ZpagesExporterOptions extends ExporterConfig {
/** Port number to Zpages server */
port: number;
/** Predefined span names to register on trace list */
spanNames: string[];
/** Define if the Zpages server will start with new instance */
startServer: boolean;
}
/** Class to ZpagesExporter */
export class ZpagesExporter implements Exporter {
/** ZpagesExporter default options */
static readonly defaultOptions = {port: 8080, startServer: true};
private app: express.Application;
private server: http.Server;
private port: number;
private traces: Map<string, Span[]> = new Map();
private logger: Logger;
constructor(options: ZpagesExporterOptions) {
/** create express app */
this.app = express();
this.port = options.port || ZpagesExporter.defaultOptions.port;
this.logger = options.logger || logger.logger();
const startServer = options.startServer != null ?
options.startServer :
ZpagesExporter.defaultOptions.startServer;
/** register predefined span names, if any */
if (options.spanNames) {
this.registerSpanNames(options.spanNames);
}
/** defining routes */
this.app.use(createRoutes(this.traces));
/** start the server if the startServer option is true */
if (startServer) {
this.startServer();
}
}
/**
* Is called whenever a span is started.
* @param root the started span
*/
onStartSpan(root: RootSpan) {
this.sendTrace(root);
}
/**
* Is called whenever a span is ended.
* @param root the ended span
*/
onEndSpan(root: RootSpan) {
this.sendTrace(root);
}
/**
* Send a trace to traces array
* @param trace the rootSpan to be sent to the array list
*/
private sendTrace(trace: RootSpan) {
/** If there is no status, put status 0 (OK) */
if (!trace.status) {
trace.status = 0;
}
this.pushSpan(trace);
for (const span of trace.spans) {
/** If there is no status, put status 0 (OK) */
if (!span.status) {
span.status = 0;
}
this.pushSpan(span);
}
this.logger.debug('Z-PAGES: trace added');
}
/**
* Push a span to the array list
* @param span the span to be push to the array list
*/
private pushSpan(span: Span): void {
if (this.traces.has(span.name)) {
const spans = this.traces.get(span.name)!;
// if a trace already in list, just update
for (let i = 0; i < spans.length; i++) {
if (spans[i].id === span.id) {
spans[i] = span;
return;
}
}
spans.push(span);
} else {
this.traces.set(span.name, [span]);
}
}
/**
* Register a span names array in the Zpages Exporter
* @param spanNames
*/
private registerSpanNames(spanNames: string[]) {
for (const name of spanNames) {
const span = {name} as Span;
this.traces.set(name, [span]);
}
}
/**
* Not used in this context.
* @param spans
*/
publish(spans: Span[]) {
return Promise.resolve();
}
/**
* Start the Zpages HTTP Server.
* @param callback A function that will be called when the server has started.
*/
startServer(callback?: () => void) {
const self = this;
this.server = this.app.listen(self.port, () => {
self.logger.debug('Zpages Server was started on port ' + self.port);
if (callback) {
callback();
}
});
}
/**
* Stop the Zpages HTTP Server.
* @param callback A function that will be called when the server is stopped.
*/
stopServer(callback?: () => void) {
this.server.close(callback);
}
}
| 27.515152
| 90
| 0.639207
|
1ab3458fda0ca2cf926609aeb287684fee977b98
| 2,577
|
py
|
Python
|
simple_neural_network/wine_test.py
|
aambrioso1/Classic_CS_Problems
|
90ee1093e99db09a81aca777435353082e6a9927
|
[
"Apache-2.0"
] | null | null | null |
simple_neural_network/wine_test.py
|
aambrioso1/Classic_CS_Problems
|
90ee1093e99db09a81aca777435353082e6a9927
|
[
"Apache-2.0"
] | null | null | null |
simple_neural_network/wine_test.py
|
aambrioso1/Classic_CS_Problems
|
90ee1093e99db09a81aca777435353082e6a9927
|
[
"Apache-2.0"
] | null | null | null |
# wine_test.py
# From Classic Computer Science Problems in Python Chapter 7
# Copyright 2018 David Kopec
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import csv
from typing import List
from util import normalize_by_feature_scaling
from network import Network
from random import shuffle
if __name__ == "__main__":
wine_parameters: List[List[float]] = []
wine_classifications: List[List[float]] = []
wine_species: List[int] = []
with open('wine.csv', mode='r') as wine_file:
wines: List = list(csv.reader(wine_file, quoting=csv.QUOTE_NONNUMERIC))
shuffle(wines) # get our lines of data in random order
for wine in wines:
parameters: List[float] = [float(n) for n in wine[1:14]]
wine_parameters.append(parameters)
species: int = int(wine[0])
if species == 1:
wine_classifications.append([1.0, 0.0, 0.0])
elif species == 2:
wine_classifications.append([0.0, 1.0, 0.0])
else:
wine_classifications.append([0.0, 0.0, 1.0])
wine_species.append(species)
normalize_by_feature_scaling(wine_parameters)
wine_network: Network = Network([13, 7, 3], 0.9)
def wine_interpret_output(output: List[float]) -> int:
if max(output) == output[0]:
return 1
elif max(output) == output[1]:
return 2
else:
return 3
# train over the first 150 wines 10 times
wine_trainers: List[List[float]] = wine_parameters[0:150]
wine_trainers_corrects: List[List[float]] = wine_classifications[0:150]
for _ in range(10):
wine_network.train(wine_trainers, wine_trainers_corrects)
# test over the last 28 of the wines in the data set
wine_testers: List[List[float]] = wine_parameters[150:178]
wine_testers_corrects: List[int] = wine_species[150:178]
wine_results = wine_network.validate(wine_testers, wine_testers_corrects, wine_interpret_output)
print(f"{wine_results[0]} correct of {wine_results[1]} = {wine_results[2] * 100}%")
| 41.564516
| 100
| 0.678696
|
a35c96017d3a6b332c6d55186f0fa6ee8feadea0
| 1,218
|
h
|
C
|
Modules/DB/Student.h
|
AndrewChe7/StudentsDB
|
09cea592cfe9cec3d5c28af6fede2e5c427ec1d2
|
[
"MIT"
] | null | null | null |
Modules/DB/Student.h
|
AndrewChe7/StudentsDB
|
09cea592cfe9cec3d5c28af6fede2e5c427ec1d2
|
[
"MIT"
] | null | null | null |
Modules/DB/Student.h
|
AndrewChe7/StudentsDB
|
09cea592cfe9cec3d5c28af6fede2e5c427ec1d2
|
[
"MIT"
] | null | null | null |
//
// Created by godknows on 17.05.2020.
//
#ifndef PROJECT_STUDENT_H
#define PROJECT_STUDENT_H
#include <string>
#include <utility>
#include <iostream>
#include <iomanip>
namespace DB {
class Student {
public:
Student(int i, std::string fn, std::string ln, int g, int c, bool s, std::string ct) :
id(i), first_name(std::move(fn)), last_name(std::move(ln)), group(g), course(c), isSettled(s), city(std::move(ct)) {}
std::string print() const {
std::ostringstream str;
str << std::setfill('0') << std::setw(6) << id << " | " << first_name << " " << last_name << " | " << group << " " << course << " | " << (isSettled ? "TRUE" : "FALSE") << " | " << city << std::endl;
return str.str();
}
std::string getCSVRepr () const {
return std::to_string(id) + "," + first_name + "," + last_name + "," + std::to_string(group) + "," + std::to_string(course) + "," + std::to_string((isSettled)?1:0) + "," + city;
}
int id;
std::string first_name;
std::string last_name;
int group;
int course;
bool isSettled;
std::string city;
};
}
#endif //PROJECT_STUDENT_H
| 31.230769
| 210
| 0.538588
|
6db5694e27e5af4b7b5a9b76cd82f8a0f94ed738
| 627
|
ts
|
TypeScript
|
src/index.ts
|
home-assistant/whoami.home-assistant.io
|
7b6198ed9cc9482abd8ca7270b13ad24aa21344c
|
[
"Apache-2.0"
] | 5
|
2021-06-30T08:38:16.000Z
|
2022-01-19T21:50:44.000Z
|
src/index.ts
|
home-assistant/whoami.home-assistant.io
|
7b6198ed9cc9482abd8ca7270b13ad24aa21344c
|
[
"Apache-2.0"
] | 54
|
2021-05-18T08:21:00.000Z
|
2022-02-07T07:58:33.000Z
|
src/index.ts
|
home-assistant/whoami.home-assistant.io
|
7b6198ed9cc9482abd8ca7270b13ad24aa21344c
|
[
"Apache-2.0"
] | 1
|
2021-07-19T10:18:44.000Z
|
2021-07-19T10:18:44.000Z
|
import Toucan from "toucan-js";
import { handleRequestWrapper } from "./handler";
declare global {
const SENTRY_DSN: string;
const WORKER_ENV: string;
}
const sentryClient = (event: FetchEvent | ScheduledEvent) => {
const client = new Toucan({
dsn: SENTRY_DSN,
allowedHeaders: ["user-agent"],
event,
environment: WORKER_ENV,
});
return client;
};
addEventListener("fetch", (event: FetchEvent) => {
if (event.request.method === "GET") {
event.respondWith(handleRequestWrapper(event.request, sentryClient(event)));
} else {
event.respondWith(new Response(null, { status: 405 }));
}
});
| 24.115385
| 80
| 0.676236
|
cdb08610755e5403055c6fe78f576fdfa50d5c2e
| 5,980
|
cs
|
C#
|
SongPlayListEditer/UI/PlaylistEditorFlowCoordinater.cs
|
denpadokei/SongPlayListEditer
|
fc4838908e9ad13f0531331f26faef9ea387d4f3
|
[
"MIT"
] | 11
|
2020-06-30T13:14:04.000Z
|
2022-03-20T01:41:56.000Z
|
SongPlayListEditer/UI/PlaylistEditorFlowCoordinater.cs
|
denpadokei/SongPlayListEditer
|
fc4838908e9ad13f0531331f26faef9ea387d4f3
|
[
"MIT"
] | null | null | null |
SongPlayListEditer/UI/PlaylistEditorFlowCoordinater.cs
|
denpadokei/SongPlayListEditer
|
fc4838908e9ad13f0531331f26faef9ea387d4f3
|
[
"MIT"
] | null | null | null |
using BeatSaberMarkupLanguage;
using BeatSaberMarkupLanguage.MenuButtons;
using HMUI;
using SongPlayListEditer.Models;
using SongPlayListEditer.UI.Views;
using SongPlayListEditer.Utilites;
using System;
using Zenject;
namespace SongPlayListEditer.UI
{
public class PlaylistEditorFlowCoordinator : FlowCoordinator
{
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // プロパティ
/// <summary>説明 を取得、設定</summary>
public BeatSaberPlaylistsLib.Types.IPlaylist CurrentPlaylist { get; private set; }
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // コマンド
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // コマンド用メソッド
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // オーバーライドメソッド
protected override void DidActivate(bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling)
{
if (firstActivation) {
this.SetTitle("PLAYLIST EDITOR");
this.showBackButton = true;
this.ProvideInitialViewControllers(this._playListMenuView);
}
}
protected override void BackButtonWasPressed(ViewController topViewController)
{
BeatSaberUI.MainFlowCoordinator.DismissFlowCoordinator(this);
base.BackButtonWasPressed(topViewController);
}
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // パブリックメソッド
public void ShowPlaylist()
{
Logger.Info("ShowPlaylistView");
this.ReplaceTopViewController(this._playListMenuView, null, ViewController.AnimationType.In, ViewController.AnimationDirection.Vertical);
}
public void ShowEdit()
{
Logger.Info("ShowEditView");
this._editView.CurrentPlaylist = this.CurrentPlaylist;
this.ReplaceTopViewController(this._editView, null, ViewController.AnimationType.Out, ViewController.AnimationDirection.Vertical);
}
public void ShowAdd()
{
this.SetCurrentPlaylist(PlaylistLibUtility.CurrentManager.CreatePlaylist(null, "", "", ""));
this.ShowEdit();
}
public void SetCurrentPlaylist(BeatSaberPlaylistsLib.Types.IPlaylist playlist)
{
this.CurrentPlaylist = playlist;
if (playlist == null) {
this._editView.Title = "";
this._editView.Author = "";
this._editView.Description = "";
return;
}
else {
this._editView.Title = playlist.Title;
this._editView.Author = playlist.Author;
this._editView.Description = playlist.Description;
}
}
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // プライベートメソッド
private void Start()
{
try {
Logger.Info($"AwakeStart");
Logger.Info($"Is playlist null? {this._playListMenuView == null}");
Logger.Info($"Is edit null? {this._editView == null}");
this._playListMenuView.ShowAddEvent -= this.ShowAdd;
this._playListMenuView.ShowEditEvent -= this.ShowEdit;
this._playListMenuView.SelectedCell -= this.SetCurrentPlaylist;
this._editView.SaveEvent -= this.Save;
this._editView.ExitEvent -= this.ShowPlaylist;
this._playListMenuView.ShowAddEvent += this.ShowAdd;
this._playListMenuView.ShowEditEvent += this.ShowEdit;
this._playListMenuView.SelectedCell += this.SetCurrentPlaylist;
this._editView.SaveEvent += this.Save;
this._editView.ExitEvent += this.ShowPlaylist;
}
catch (Exception e) {
Logger.Error(e);
}
}
private void OnDestroy()
{
this._playListMenuView.ShowAddEvent -= this.ShowAdd;
this._playListMenuView.ShowEditEvent -= this.ShowEdit;
this._playListMenuView.SelectedCell -= this.SetCurrentPlaylist;
this._editView.SaveEvent -= this.Save;
this._editView.ExitEvent -= this.ShowPlaylist;
MenuButtons.instance.UnregisterButton(this.menuButton);
}
private void Save(BeatSaberPlaylistsLib.Types.IPlaylist playlists)
{
if (playlists == null) {
return;
}
PlaylistLibUtility.CurrentManager.StorePlaylist(playlists);
}
/// <summary>
/// プレイリスト編集画面に遷移します。
/// </summary>
private void ShowMainFlowCoodniator() => BeatSaberUI.MainFlowCoordinator.PresentFlowCoordinator(this);
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // メンバ変数
[Inject]
private PlayListMenuView _playListMenuView;
[Inject]
private EditView _editView;
private MenuButton menuButton;
#endregion
//゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*゚+。*゚+。。+゚*。+゚ ゚+。*゚+。。+゚*。+゚ ゚+。*
#region // 構築・破棄
[Inject]
private void Constractor()
{
this.menuButton = new MenuButton("SONG PLAYLIST EDITER", "Edit song playlist", this.ShowMainFlowCoodniator);
MenuButtons.instance.RegisterButton(this.menuButton);
}
#endregion
}
}
| 39.866667
| 149
| 0.548495
|
0d4179ac33b4e51c9d33cd9b1db3c6102b2edd4d
| 78
|
cs
|
C#
|
ApiGateway/Clients/Models/Basket/BasketCreate.cs
|
kubilayeldemir/ecommerce-microservices
|
13ac6ea9a686e66468bfc672ae8499512df37c70
|
[
"MIT"
] | null | null | null |
ApiGateway/Clients/Models/Basket/BasketCreate.cs
|
kubilayeldemir/ecommerce-microservices
|
13ac6ea9a686e66468bfc672ae8499512df37c70
|
[
"MIT"
] | null | null | null |
ApiGateway/Clients/Models/Basket/BasketCreate.cs
|
kubilayeldemir/ecommerce-microservices
|
13ac6ea9a686e66468bfc672ae8499512df37c70
|
[
"MIT"
] | null | null | null |
namespace Clients.Models.Basket
{
public class BasketCreate
{
}
}
| 13
| 32
| 0.653846
|
da7d83b73154c7bc62c86b7b91e1cde0af4af171
| 657
|
ts
|
TypeScript
|
src/utils.ts
|
kamiazya/jest-dynamic
|
5a38155d3c83825372e7e5d3ff547bd5c9107b68
|
[
"MIT"
] | 1
|
2022-01-24T19:38:13.000Z
|
2022-01-24T19:38:13.000Z
|
src/utils.ts
|
kamiazya/jest-dynamic
|
5a38155d3c83825372e7e5d3ff547bd5c9107b68
|
[
"MIT"
] | 247
|
2020-01-17T20:37:06.000Z
|
2022-03-25T20:03:01.000Z
|
src/utils.ts
|
kamiazya/jest-dynamic
|
5a38155d3c83825372e7e5d3ff547bd5c9107b68
|
[
"MIT"
] | null | null | null |
import { Condition, ITestClosures } from './types';
function createTestClosures(mode?: 'skip' | 'only'): ITestClosures {
switch (mode) {
case 'only':
case 'skip':
return {
describe: describe[mode],
test: test[mode],
it: it[mode],
};
default:
return { describe, test, it };
}
}
export const jests: { only: ITestClosures; skip: ITestClosures; base: ITestClosures } = {
base: createTestClosures(),
skip: createTestClosures('skip'),
only: createTestClosures('only'),
};
export function judge(condition: Condition): boolean {
return typeof condition === 'boolean' ? condition : condition();
}
| 25.269231
| 89
| 0.636225
|
4bbbb22a452f0426fcfe69ed5177fd0f3c8d9699
| 987
|
h
|
C
|
src/src/Container/sorted_observable.h
|
Scorbutics/skalang
|
c8d1869a2f0c7857ee05ef45bd3aa4e537d39558
|
[
"MIT"
] | 3
|
2019-04-08T17:34:19.000Z
|
2020-01-03T04:47:06.000Z
|
src/src/Container/sorted_observable.h
|
Scorbutics/skalang
|
c8d1869a2f0c7857ee05ef45bd3aa4e537d39558
|
[
"MIT"
] | 4
|
2020-04-19T22:09:06.000Z
|
2020-11-06T15:47:08.000Z
|
src/src/Container/sorted_observable.h
|
Scorbutics/skalang
|
c8d1869a2f0c7857ee05ef45bd3aa4e537d39558
|
[
"MIT"
] | null | null | null |
#pragma once
#include <Base/Patterns/Observable.h>
#include <Base/Patterns/SubObserver.h>
#include "unique_buffered_priority_indexed_fixed_queue.h"
namespace ska {
struct PriorityObserverGetter {
template<class T>
std::size_t operator()(const T& value) const {
return value->priority;
}
};
template <class T>
class PriorityObserver : public Observer<T> {
friend struct PriorityObserverGetter;
protected:
template <class ...Args>
PriorityObserver(int p, Args&& ... args) : Observer<T>::Observer(std::forward<Args>(args)...), priority(p) {}
private:
int priority;
};
template <class T>
using priority_queue_for_observer = unique_buffered_priority_indexed_fixed_queue<T, 10, PriorityObserverGetter>;
template <class T>
using observable_priority_queue = Observable<T, priority_queue_for_observer, PriorityObserver>;
template <class T>
using subobserver_priority_queue = SubObserver<T, priority_queue_for_observer, PriorityObserver>;
}
| 28.2
| 114
| 0.751773
|
2550576a45d45865a03b8082418c94cc31e10ff0
| 896
|
cs
|
C#
|
Exersice/19. Associative Arrays - Lab/02. Odd Occurrences/Program.cs
|
Neiko7/CSharpFundamentals
|
eeaa9944680113c05d97683af5c2da6090131371
|
[
"MIT"
] | 2
|
2019-10-05T05:46:38.000Z
|
2019-11-30T16:07:11.000Z
|
Exersice/19. Associative Arrays - Lab/02. Odd Occurrences/Program.cs
|
NeikoGrozev/CSharpFundamentals
|
eeaa9944680113c05d97683af5c2da6090131371
|
[
"MIT"
] | null | null | null |
Exersice/19. Associative Arrays - Lab/02. Odd Occurrences/Program.cs
|
NeikoGrozev/CSharpFundamentals
|
eeaa9944680113c05d97683af5c2da6090131371
|
[
"MIT"
] | null | null | null |
namespace OddOccurrences
{
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
List<string> collection = Console.ReadLine()
.Split(" ")
.Select(x => x.ToLower())
.ToList();
Dictionary<string, int> dict = new Dictionary<string, int>();
foreach (var item in collection)
{
if (dict.ContainsKey(item))
{
dict[item]++;
}
else
{
dict.Add(item, 1);
}
}
foreach (var item in dict)
{
if (item.Value % 2 != 0)
{
Console.Write($"{item.Key} ");
}
}
}
}
}
| 22.4
| 73
| 0.371652
|
051162f0037d0981003d577c9db3c8c77ae26735
| 22
|
css
|
CSS
|
tests/fixtures/sample-functions/sample-functions09/stringify.css
|
ota-meshi/postcss-styl-parser
|
226702c97919d496ca80df2a54996e2778102e62
|
[
"MIT"
] | 18
|
2019-08-20T15:52:39.000Z
|
2022-01-10T18:46:42.000Z
|
tests/fixtures/sample-functions/sample-functions09/stringify.css
|
ota-meshi/postcss-styl-parser
|
226702c97919d496ca80df2a54996e2778102e62
|
[
"MIT"
] | 8
|
2019-08-24T04:01:48.000Z
|
2022-01-17T05:54:05.000Z
|
tests/fixtures/sample-functions/sample-functions09/stringify.css
|
ota-meshi/postcss-styl-parser
|
226702c97919d496ca80df2a54996e2778102e62
|
[
"MIT"
] | 1
|
2020-01-13T09:34:17.000Z
|
2020-01-13T09:34:17.000Z
|
@swap(a, b){
b: a}
| 11
| 13
| 0.363636
|
e242ce96c4f633aa115b80147809be972b813c36
| 377
|
py
|
Python
|
Python/minimum-index-sum-of-two-lists.py
|
kuanhungchen/leetcode-practice
|
b75e773ada60b685da1576ae5f2234b70bc27842
|
[
"CNRI-Python"
] | 1
|
2020-04-29T06:19:44.000Z
|
2020-04-29T06:19:44.000Z
|
Python/minimum-index-sum-of-two-lists.py
|
kuanhungchen/leetcode-practice
|
b75e773ada60b685da1576ae5f2234b70bc27842
|
[
"CNRI-Python"
] | null | null | null |
Python/minimum-index-sum-of-two-lists.py
|
kuanhungchen/leetcode-practice
|
b75e773ada60b685da1576ae5f2234b70bc27842
|
[
"CNRI-Python"
] | null | null | null |
class Solution:
def findRestaurant(self, list1, list2):
mp1, mp2 = {x: i for i, x in enumerate(list1)}, {x: i for i, x in enumerate(list2)}
ans = [10 ** 4, []]
for k, v in mp1.items():
if k in mp2 and v + mp2[k] == ans[0]: ans[1].append(k)
elif k in mp2 and v + mp2[k] < ans[0]: ans = [v + mp2[k], [k]]
return ans[1]
| 41.888889
| 91
| 0.501326
|
b73fe3fb84cd7ea97480fe292288e2d9c0e7664b
| 3,788
|
cs
|
C#
|
packages/simpleauth/src/TeamsFxSimpleAuth/Components/Auth/AadAuthorizationHandler.cs
|
zhenjiao-ms/TeamsFx
|
946cdd5d048f7493629f0ed185b1875df381c89a
|
[
"MIT"
] | 127
|
2021-05-10T04:59:45.000Z
|
2022-03-19T00:25:23.000Z
|
packages/simpleauth/src/TeamsFxSimpleAuth/Components/Auth/AadAuthorizationHandler.cs
|
zhenjiao-ms/TeamsFx
|
946cdd5d048f7493629f0ed185b1875df381c89a
|
[
"MIT"
] | 740
|
2021-05-10T06:15:23.000Z
|
2022-03-31T07:45:14.000Z
|
packages/simpleauth/src/TeamsFxSimpleAuth/Components/Auth/AadAuthorizationHandler.cs
|
zhenjiao-ms/TeamsFx
|
946cdd5d048f7493629f0ed185b1875df381c89a
|
[
"MIT"
] | 73
|
2021-05-10T05:08:45.000Z
|
2022-03-29T12:08:43.000Z
|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.AspNetCore.Authorization;
using Microsoft.Extensions.Logging;
using Microsoft.TeamsFx.SimpleAuth.Components.Auth.Exceptions;
using Microsoft.TeamsFx.SimpleAuth.Components.Auth.Models;
using Newtonsoft.Json;
using System;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
namespace Microsoft.TeamsFx.SimpleAuth.Components.Auth
{
public abstract class AuthenticatedUserHandler<TRequirement> : AuthorizationHandler<TRequirement> where TRequirement : IAuthorizationRequirement
{
protected ILogger<AuthenticatedUserHandler<TRequirement>> _logger;
protected AuthenticatedUserHandler(ILogger<AuthenticatedUserHandler<TRequirement>> logger)
{
_logger = logger;
}
public override Task HandleAsync(AuthorizationHandlerContext context)
{
var user = context.User;
var userIsNotAuthenticated =
user?.Identity == null ||
!user.Identities.Any(i => i.IsAuthenticated);
if (userIsNotAuthenticated)
{
return Task.CompletedTask;
}
return base.HandleAsync(context);
}
}
public class AppIdAuthorizationHandler : AuthenticatedUserHandler<AppIdRequirement>
{
public AppIdAuthorizationHandler(ILogger<AppIdAuthorizationHandler> logger)
: base(logger) { }
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, AppIdRequirement requirement)
{
_logger.LogDebug($"Handling app id requirement. Allowed app id list: {JsonConvert.SerializeObject(requirement.AppIds)}.");
var allowedAppIds = requirement.AppIds;
var version = context.User.FindFirstValue(JWTClaims.Version);
string appId = null;
if (string.Equals(JWTVersion.Ver2, version))
{
appId = context.User.FindFirstValue(JWTClaims.AZP);
}
else if (string.Equals(JWTVersion.Ver1, version))
{
appId = context.User.FindFirstValue(JWTClaims.AppId);
}
if (allowedAppIds != null && allowedAppIds.Contains(appId))
{
context.Succeed(requirement);
}
return Task.CompletedTask;
}
}
public class IdentityAuthorizationHandler : AuthenticatedUserHandler<IdentityRequirement>
{
public IdentityAuthorizationHandler(ILogger<IdentityAuthorizationHandler> logger)
: base(logger) { }
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, IdentityRequirement requirement)
{
_logger.LogDebug($"Handling identity requirement. Required identity type: {requirement.identity}.");
var idtype = context.User.FindFirstValue(JWTClaims.IdType);
var identity = GetIdentityTypeFromIdType(idtype);
if (identity == requirement.identity)
{
context.Succeed(requirement);
}
return Task.CompletedTask;
}
private JWTIdentityType GetIdentityTypeFromIdType(string idType)
{
if (string.IsNullOrEmpty(idType))
{
return JWTIdentityType.UserIdentity;
}
else if(string.Equals(JWTIdentityScope.AppIdentityValue, idType))
{
return JWTIdentityType.ApplicationIdentity;
}
else
{
throw new AuthorizationRequestDeniedException($"Token with idType '{idType}' is not accepted by this API");
}
}
}
}
| 35.074074
| 148
| 0.64018
|
74cc87c74e840ea54725e8da46514a4b2581892a
| 4,813
|
css
|
CSS
|
styles/header.css
|
IltaySaeedi/IltayDev-front-end
|
110c88084a5018d6dbe77c9a1821deac5ef44bb9
|
[
"MIT"
] | null | null | null |
styles/header.css
|
IltaySaeedi/IltayDev-front-end
|
110c88084a5018d6dbe77c9a1821deac5ef44bb9
|
[
"MIT"
] | null | null | null |
styles/header.css
|
IltaySaeedi/IltayDev-front-end
|
110c88084a5018d6dbe77c9a1821deac5ef44bb9
|
[
"MIT"
] | null | null | null |
header {
background-color: #cccc99;
background-color: var(--secondary-background-color);
height: 8.2rem;
z-index: 2;
position: relative;
margin-bottom: 1rem;
-ms-user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
text-align: center;
display: block;
display: flex;
align-items: center;
}
header > a#login-menu {
float: right;
cursor: pointer;
display: initial;
margin: 2.5rem 1rem;
position: relative;
padding: 0;
height: 3.2rem;
display: block;
}
header > a#login-menu > svg {
width: 3.2rem;
height: 3.2rem;
}
header > a#logo {
width: 10.4rem;
padding: 0.5rem;
margin: 0.5rem;
height: 6.2rem;
position: relative;
box-sizing: content-box;
float: left;
display: block;
}
header > a#logo > svg {
height: 6.2rem;
width: auto;
}
header > a#login-menu:active > svg > path, header > a#login-menu:active > svg > circle {
stroke: #ffffcc;
stroke: var(--primary-background-color);
}
header > a#logo:active > svg > path {
stroke: #ffffcc;
stroke: var(--primary-background-color);
}
header, header > nav#primary-nav {
direction:ltr;
}
header.rtl, header > nav#primary-nav.rtl {
direction:rtl;
}
header > nav#primary-nav {
background-color: inherit;
display: inline-block;
width: 75%;
/* 3.2rem + 1rem + 13.2rem + 1.2rem + 11.5rem */
width: calc(100% - 20rem);
padding: 0.6rem 0.55rem;
height: 7rem;
text-align: left;
flex: 1;
}
header > nav#primary-nav > ul {
background-color: #ffffcc;
background-color: var(--primary-background-color);
border-radius: 1rem;
height: inherit;
width: 100%;
padding: 0;
margin: 0;
}
header > nav#primary-nav > ul > li {
top: 2rem;
margin: 0 1%;
box-sizing: border-box;
position: relative;
display: inline-block;
list-style-type: none;
height: 3rem;
text-align: center;
}
header > nav#primary-nav > ul > li > a {
text-decoration: none;
color: inherit;
min-width: 8.5rem;
display: inline-block;
width: 100%;
}
header > nav#primary-nav > ul > li > a:active {
background-color: #666633;
background-color: var(--link-active-bgcolor);
color: white;
color: var(--link-active-color);
}
header > button#primary-nav-btn {
display: none;
}
@media (max-width: 768px) {
header {
padding: 0 5%;
text-align: center;
display: block;
}
header > a#logo {
float: none;
display: inline-block;
/* left: calc(50% - 3% - 3.2rem - 3.2rem - 2%); */
}
header > a#login-menu {
top: 2rem;
margin: 0 1%;
}
header > button#primary-nav-btn {
background-color: transparent;
position: relative;
float: left;
top: 2rem;
display: block;
margin: 0 1%;
padding: 0;
border: none;
}
header > button#primary-nav-btn:hover {
cursor: pointer;
}
header > button#primary-nav-btn > svg {
width: 3.2rem;
height: 3.2rem;
}
header > button#primary-nav-btn > svg > rect {
fill: black;
}
header > button#primary-nav-btn.show-navbar > svg > rect {
fill: black;
}
header > button#primary-nav-btn > svg > rect:last-of-type {
transition: 0.25s all;
}
header > button#primary-nav-btn.show-navbar > svg > rect:last-of-type {
fill: black;
width: 50%;
}
header > button#primary-nav-btn > svg > path {
visibility: hidden;
}
header > button#primary-nav-btn.show-navbar > svg > path {
fill: brown;
visibility: visible;
transition: 0.0s 0.075s all;
}
header > button#primary-nav-btn + nav {
display: none;
}
header > button#primary-nav-btn.show-navbar + nav {
display: block;
}
header > nav#primary-nav {
background-color: #cccc99;
background-color: var(--secondary-background-color);
top: 8.2rem;
box-sizing: border-box;
width: 100%;
right: 0;
margin: 0;
min-width: 24rem;
position: absolute;
height: auto;
border: 0.2rem solid black;
}
header > nav#primary-nav > ul {
list-style-type: none;
margin: 2%;
padding: 2%;
display: inline-block;
width: 92%;
}
header > nav#primary-nav > ul > li {
margin: 1rem 0;
flex: 0;
border-left: none;
width: 100%;
top: 0;
height: auto;
}
header > nav#primary-nav > ul > li > a {
width: 100%;
font-size: 2rem;
}
header > nav#primary-nav > ul > li > a:hover {
border: none;
}
}
| 22.386047
| 88
| 0.559734
|
4cf7d0d8bc2b874690f5b8ee9ade4c3cf60cf380
| 834
|
py
|
Python
|
Practica 7/P7E10.py
|
victoriapenasmiro/python
|
dbdbbf627b6fde48099cf0184c912472b3b67491
|
[
"MIT"
] | null | null | null |
Practica 7/P7E10.py
|
victoriapenasmiro/python
|
dbdbbf627b6fde48099cf0184c912472b3b67491
|
[
"MIT"
] | 2
|
2022-01-12T07:33:52.000Z
|
2022-01-12T08:01:58.000Z
|
Practica 7/P7E10.py
|
victoriapenasmiro/python
|
dbdbbf627b6fde48099cf0184c912472b3b67491
|
[
"MIT"
] | 1
|
2019-11-25T10:08:31.000Z
|
2019-11-25T10:08:31.000Z
|
"""P7E10 VICTORIA PEÑAS
Escribe un programa que te pida una palabra o número, pase por parámetro
estos datos a una función, y ésta te diga si es o no palíndroma o
capicúa. El programa principal imprimirá el resultado de la función:
':: significa dame la totalidad\del elemento, el -1 hacia atras' """
def comprobarPalindromo(valor):
#Otra opción:
#if secuencia[::-1] == secuencia[:]: --> [::-1] es para leer la variable al revés
# return print("es capicua")
#else:
# return print("no es capicua")
y = 1
for i in range(len(valor)//2):
if valor[i]==valor[-y]:
capicua="es capicua o palíndroma"
else:
capicua="no es capicua o palíndroma"
break
y+= 1
return print(capicua)
secuencia=str(input("Dime algo: "))
comprobarPalindromo(secuencia)
| 36.26087
| 85
| 0.645084
|
3100a93e47378d29cdac866928fca347af782c2c
| 1,985
|
rs
|
Rust
|
src/app_id.rs
|
RickyLB/algolia-rs
|
4a11a5b211d8858318270587a383212aa5c73e40
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
src/app_id.rs
|
RickyLB/algolia-rs
|
4a11a5b211d8858318270587a383212aa5c73e40
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
src/app_id.rs
|
RickyLB/algolia-rs
|
4a11a5b211d8858318270587a383212aa5c73e40
|
[
"Apache-2.0",
"MIT"
] | 1
|
2021-11-09T20:25:53.000Z
|
2021-11-09T20:25:53.000Z
|
use std::{
borrow::{Borrow, BorrowMut},
fmt::{self, Display},
ops::{Deref, DerefMut},
};
#[derive(Clone, Debug)]
// TODO: make an invariant that this _must_ be valid visible-ascii
pub struct AppId(String);
impl AppId {
pub fn new(s: String) -> Self {
Self(s)
}
}
impl AsRef<RefAppId> for AppId {
fn as_ref(&self) -> &RefAppId {
self.0.as_str().into()
}
}
impl AsMut<RefAppId> for AppId {
fn as_mut(&mut self) -> &mut RefAppId {
self.0.as_mut_str().into()
}
}
impl Deref for AppId {
type Target = RefAppId;
fn deref(&self) -> &Self::Target {
self.as_ref()
}
}
impl DerefMut for AppId {
fn deref_mut(&mut self) -> &mut Self::Target {
self.as_mut()
}
}
impl Borrow<RefAppId> for AppId {
fn borrow(&self) -> &RefAppId {
self.as_ref()
}
}
impl BorrowMut<RefAppId> for AppId {
fn borrow_mut(&mut self) -> &mut RefAppId {
self.as_mut()
}
}
#[repr(transparent)]
#[derive(Debug)]
pub struct RefAppId(str);
impl RefAppId {
pub fn as_str(&self) -> &str {
self.as_ref()
}
}
impl<'a> From<&'a str> for &'a RefAppId {
fn from(s: &'a str) -> Self {
// SAFE: RefAppId is `repr(transparent)` of a str
unsafe { &*(s as *const str as *const RefAppId) }
}
}
impl<'a> From<&'a mut str> for &'a mut RefAppId {
fn from(s: &'a mut str) -> Self {
// SAFE: RefAppId is `repr(transparent)` of a str
unsafe { &mut *(s as *mut str as *mut RefAppId) }
}
}
impl AsRef<str> for RefAppId {
fn as_ref(&self) -> &str {
&self.0
}
}
impl AsMut<str> for RefAppId {
fn as_mut(&mut self) -> &mut str {
&mut self.0
}
}
impl ToOwned for RefAppId {
type Owned = AppId;
fn to_owned(&self) -> Self::Owned {
AppId(self.0.to_owned())
}
}
impl Display for RefAppId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(self.as_ref())
}
}
| 19.460784
| 66
| 0.56272
|
a35a4144b4e2a10cdbb0058c48a7f9e984d8430a
| 31
|
java
|
Java
|
InfinityDTHServices/bean/sample1.java
|
pvsagar/TCSILP
|
0fd60fd48bf882c6c7de420c32b6e4d282279b31
|
[
"MIT"
] | null | null | null |
InfinityDTHServices/bean/sample1.java
|
pvsagar/TCSILP
|
0fd60fd48bf882c6c7de420c32b6e4d282279b31
|
[
"MIT"
] | null | null | null |
InfinityDTHServices/bean/sample1.java
|
pvsagar/TCSILP
|
0fd60fd48bf882c6c7de420c32b6e4d282279b31
|
[
"MIT"
] | null | null | null |
public class sample1 {
}
| 6.2
| 23
| 0.580645
|
dfeb2a77567da8002372ce59ab40a8326a51f044
| 3,502
|
cs
|
C#
|
WellMeadowClinic/ConsoleWellMeadowHospital/Controllers/IsInController.cs
|
commentatorboy/WellMeadowClinic
|
8738fd1f1b62992287cc7de4487c6f3afb6b85ee
|
[
"Apache-2.0"
] | null | null | null |
WellMeadowClinic/ConsoleWellMeadowHospital/Controllers/IsInController.cs
|
commentatorboy/WellMeadowClinic
|
8738fd1f1b62992287cc7de4487c6f3afb6b85ee
|
[
"Apache-2.0"
] | null | null | null |
WellMeadowClinic/ConsoleWellMeadowHospital/Controllers/IsInController.cs
|
commentatorboy/WellMeadowClinic
|
8738fd1f1b62992287cc7de4487c6f3afb6b85ee
|
[
"Apache-2.0"
] | null | null | null |
using ConsoleWellMeadowHospital.Database;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleWellMeadowHospital.Controllers
{
class IsInController
{
public SqlException Create(IsIn isin)
{
//insert "Number" is ward number
string insert = "INSERT INTO IsIn (Shift, StaffNumber, Number)" +
" VALUES(@Shift, @StaffNumber, @Number); ";
//create sql command, insert query, preparing quries, create parameterized quieries,
// 1. declare command object with parameter + insert query
SqlCommand cmd = InitializeDatabase.CreateSqlCommand(insert);
// 2. define parameters used in command object
List<SqlParameter> prm = new List<SqlParameter>()
{
new SqlParameter("@Shift", SqlDbType.NVarChar) {Value = isin.Shift},
new SqlParameter("@StaffNumber", SqlDbType.Int) {Value = isin.StaffNumber},
new SqlParameter("@Number", SqlDbType.Int) {Value = isin.WardNumber}
};
// 3. add new parameter to command object
cmd.Parameters.AddRange(prm.ToArray());
//run
SqlException res = InitializeDatabase.RunSqlCommand(cmd);
return res;
}
public SqlException Read()
{
string select = "SELECT Staff.FirstName, Staff.LastName, Ward.Number FROM Staff " +
"JOIN IsIn ON Staff.StaffNumber=IsIn.StaffNumber JOIN Ward ON Ward.Number=IsIn.Number";
// 1. declare command object with parameter + insert query
SqlCommand cmd = InitializeDatabase.CreateSqlCommand(select);
SqlException res = InitializeDatabase.RunSqlCommand(cmd);
return res;
}
public SqlException Update(IsIn isin, int wardNumber)
{
string update = "UPDATE IsIn " +
"SET Shift = @Shift, StaffNumber = @StaffNumber" + "WHERE Number = @wardNumber;";
// 1. declare command object with parameter + insert query
SqlCommand cmd = InitializeDatabase.CreateSqlCommand(update);
// 2. define parameters used in command object
List<SqlParameter> prm = new List<SqlParameter>()
{
new SqlParameter("@Shift", SqlDbType.Int) {Value = isin.Shift},
new SqlParameter("@StaffNumber", SqlDbType.NVarChar) {Value = isin.StaffNumber},
new SqlParameter("@Number", SqlDbType.Int) {Value = isin.WardNumber}
};
// 3. add new parameter to command object
cmd.Parameters.AddRange(prm.ToArray());
//run
SqlException res = InitializeDatabase.RunSqlCommand(cmd);
return res;
}
public SqlException Delete(int id)
{
string delete = "DELETE IsIn WHERE IsInNumber = @id";
SqlCommand cmd = InitializeDatabase.CreateSqlCommand(delete);
List<SqlParameter> prm = new List<SqlParameter>()
{
new SqlParameter("@id", SqlDbType.Int) {Value = id}
};
// 3. add new parameter to command object
cmd.Parameters.AddRange(prm.ToArray());
SqlException res = InitializeDatabase.RunSqlCommand(cmd);
return res;
}
}
}
| 33.352381
| 103
| 0.599657
|
8d6adb4bb69ac112ec85712d7167fd7bcdc7ebb8
| 1,441
|
js
|
JavaScript
|
project/routes/page.js
|
tedaky/website
|
b5d1bba42eb9ef9f3fb7f12c2274d97d8fe392bf
|
[
"MIT"
] | null | null | null |
project/routes/page.js
|
tedaky/website
|
b5d1bba42eb9ef9f3fb7f12c2274d97d8fe392bf
|
[
"MIT"
] | null | null | null |
project/routes/page.js
|
tedaky/website
|
b5d1bba42eb9ef9f3fb7f12c2274d97d8fe392bf
|
[
"MIT"
] | null | null | null |
var express = require('express');
var router = express.Router();
var ga = require('../ga/ga');
var birthdate = require('../extras/birthdate');
var age = require('../extras/birthday')(birthdate);
/* GET page. */
router.get('/:page', function(req, res, next) {
var params = {
title: '',
ga: ga,
age: age
};
switch (req.params.page) {
// case 'es6':
// params.title = 'ES6 Version | Game Designer and Developer | Web Designer and Developer | Portfolio | Eric Tiedeken';
// res.render('es6/index', params);
// break;
// case 'angularjs':
// params.title = 'AngularJS Version | Game Designer and Developer | Web Designer and Developer | Portfolio | Eric Tiedeken';
// res.render('angularjs/index', params);
// break;
case 'pwa':
params.title = 'PWA | Game Designer and Developer | Web Designer and Developer | Portfolio | Eric Tiedeken';
res.render('pwa/index', params);
break;
// case 'amp':
// res.header('Access-Control-Allow-Origin', '*');
// res.header('Access-Control-Expose-Headers', 'AMP-Access-Control-Allow-Source-Origin');
// res.header('AMP-Access-Control-Allow-Source-Origin', 'http://localhost:3000');
// res.render('amp/index', { title: 'AMP Version | Game Designer and Developer | Web Designer and Developer | Portfolio | Eric Tiedeken'});
// break;
default:
next();
}
});
module.exports = router;
| 36.948718
| 145
| 0.623178
|
b186a3fdbf0d1d7bf5fb4784580e2d24462dac6c
| 312
|
py
|
Python
|
docs/assets/greeting.py
|
pablodevs/StarwarsBlog
|
7f491c4a91bbd6145c78e6a404151205cfaca7b9
|
[
"OML"
] | null | null | null |
docs/assets/greeting.py
|
pablodevs/StarwarsBlog
|
7f491c4a91bbd6145c78e6a404151205cfaca7b9
|
[
"OML"
] | null | null | null |
docs/assets/greeting.py
|
pablodevs/StarwarsBlog
|
7f491c4a91bbd6145c78e6a404151205cfaca7b9
|
[
"OML"
] | null | null | null |
def blue(_str):
return f"\033[0;33m{_str}\033[0m"
print(f"""
Hello 😁 ! Use the terminal to code!
1. Start the dev server by running {blue("$ npm run start")}
2. You can find a video tutorial and explanation on the README.md file.
3. Always read the terminal output, it's your best tool for debugging!
""")
| 31.2
| 71
| 0.698718
|
fa53792e07b8d514f2c0d921a2c9b24b470b884b
| 158
|
cc
|
C++
|
src/USBAPI.cc
|
linda78/arduino-mock
|
59bc41d6a92560f64e1419083cb542a658a0f6c7
|
[
"ISC"
] | null | null | null |
src/USBAPI.cc
|
linda78/arduino-mock
|
59bc41d6a92560f64e1419083cb542a658a0f6c7
|
[
"ISC"
] | null | null | null |
src/USBAPI.cc
|
linda78/arduino-mock
|
59bc41d6a92560f64e1419083cb542a658a0f6c7
|
[
"ISC"
] | null | null | null |
/*
* File: USBAPI.cpp
* Author: Linda.Muemken
*
* Created on 21. November 2019, 08:30
*/
#include "arduino-mock/USBAPI.h"
Serial_ SerialUSB;
| 15.8
| 39
| 0.626582
|
46d3db3255de71e377112203d843af0995fb6cf3
| 558
|
py
|
Python
|
Utils/py/exportEdgels/exportEdgels.py
|
tarsoly/NaoTH
|
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
Utils/py/exportEdgels/exportEdgels.py
|
tarsoly/NaoTH
|
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
Utils/py/exportEdgels/exportEdgels.py
|
tarsoly/NaoTH
|
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
from naoth.LogReader import LogReader
from naoth.LogReader import Parser
def get_camera_matrix(frame):
cm_bottom = frame["CameraMatrix"]
cm_top = frame["CameraMatrixTop"]
return [frame.number, cm_bottom, cm_top]
def get_edgels(frame):
edgel_percepts = frame["ScanLineEdgelPercept"]
return [frame.number, edgel_percepts]
if __name__ == "__main__":
myParser = Parser()
myParser.register("CameraMatrixTop", "CameraMatrix")
for msg in LogReader("./game.log", myParser, get_edgels):
print(msg)
| 24.26087
| 61
| 0.71147
|
cfef2264d8aebfb7755cf3474c7b3f428b032da7
| 31,875
|
sql
|
SQL
|
backend/de.metas.contracts/src/main/sql/postgresql/system/50-de.metas.contracts/5493420_sys_gh3999-app_add_assignment_table_and_handler.sql
|
dram/metasfresh
|
a1b881a5b7df8b108d4c4ac03082b72c323873eb
|
[
"RSA-MD"
] | 1,144
|
2016-02-14T10:29:35.000Z
|
2022-03-30T09:50:41.000Z
|
backend/de.metas.contracts/src/main/sql/postgresql/system/50-de.metas.contracts/5493420_sys_gh3999-app_add_assignment_table_and_handler.sql
|
vestigegroup/metasfresh
|
4b2d48c091fb2a73e6f186260a06c715f5e2fe96
|
[
"RSA-MD"
] | 8,283
|
2016-04-28T17:41:34.000Z
|
2022-03-30T13:30:12.000Z
|
backend/de.metas.contracts/src/main/sql/postgresql/system/50-de.metas.contracts/5493420_sys_gh3999-app_add_assignment_table_and_handler.sql
|
vestigegroup/metasfresh
|
4b2d48c091fb2a73e6f186260a06c715f5e2fe96
|
[
"RSA-MD"
] | 441
|
2016-04-29T08:06:07.000Z
|
2022-03-28T06:09:56.000Z
|
-- 2018-05-14T10:57:21.868
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDLM,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,PersonalDataCategory,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('3',0,0,0,540981,'N',TO_TIMESTAMP('2018-05-14 10:57:21','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.contracts','N','Y','N','Y','Y','N','N','N','N',0,'C_Invoice_Candidate_Alloc','NP','L','C_Invoice_Candidate_Alloc',TO_TIMESTAMP('2018-05-14 10:57:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-05-14T10:57:21.870
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=540981 AND NOT EXISTS (SELECT 1 FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- 2018-05-14T10:57:21.932
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,554544,TO_TIMESTAMP('2018-05-14 10:57:21','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table C_Invoice_Candidate_Alloc',1,'Y','N','Y','Y','C_Invoice_Candidate_Alloc','N',1000000,TO_TIMESTAMP('2018-05-14 10:57:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-05-14T10:57:27.874
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560136,102,0,19,540981,'AD_Client_ID',TO_TIMESTAMP('2018-05-14 10:57:27','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','de.metas.contracts',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','N','N','N','N','Y','N','N','Y','N','N','Mandant',0,TO_TIMESTAMP('2018-05-14 10:57:27','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:27.877
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560136 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:27.949
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560137,113,0,19,540981,'AD_Org_ID',TO_TIMESTAMP('2018-05-14 10:57:27','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','de.metas.contracts',10,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','N','N','N','N','Y','N','Y','Y','N','N','Sektion',0,TO_TIMESTAMP('2018-05-14 10:57:27','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:27.951
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560137 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:28.023
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560138,245,0,16,540981,'Created',TO_TIMESTAMP('2018-05-14 10:57:27','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde','de.metas.contracts',29,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','N','Y','N','N','Y','N','N','Erstellt',0,TO_TIMESTAMP('2018-05-14 10:57:27','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:28.024
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560138 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:28.093
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560139,246,0,18,110,540981,'CreatedBy',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat','de.metas.contracts',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','N','Y','N','N','Y','N','N','Erstellt durch',0,TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:28.094
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560139 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:28.170
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560140,348,0,20,540981,'IsActive',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv','de.metas.contracts',1,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','N','N','N','N','Y','N','N','Y','N','Y','Aktiv',0,TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:28.172
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560140 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:28.245
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560141,607,0,16,540981,'Updated',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','de.metas.contracts',29,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert',0,TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:28.246
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560141 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:28.320
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560142,608,0,18,110,540981,'UpdatedBy',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat','de.metas.contracts',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','N','Y','N','N','Y','N','N','Aktualisiert durch',0,TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:28.322
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560142 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:28.398
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,544074,0,'C_Invoice_Candidate_Alloc_ID',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.contracts','Y','C_Invoice_Candidate_Alloc','C_Invoice_Candidate_Alloc',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-05-14T10:57:28.401
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=544074 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 2018-05-14T10:57:28.478
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560143,544074,0,13,540981,'C_Invoice_Candidate_Alloc_ID',TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.contracts',10,'Y','N','N','N','Y','Y','N','N','Y','N','N','C_Invoice_Candidate_Alloc',0,TO_TIMESTAMP('2018-05-14 10:57:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:28.480
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560143 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:57:56.177
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560144,541266,0,30,540981,'N','C_Invoice_Candidate_ID',TO_TIMESTAMP('2018-05-14 10:57:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Eindeutige Identifikationsnummer eines Rechnungskandidaten','de.metas.contracts',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Rechnungskandidat',0,0,TO_TIMESTAMP('2018-05-14 10:57:56','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T10:57:56.179
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560144 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T10:59:50.950
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,544075,0,'C_Invoice_Candidate_Assigned_ID',TO_TIMESTAMP('2018-05-14 10:59:50','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.contracts','Y','Zugeordneter Rechnungskandidat','Zugeordneter Rechnungskandidat',TO_TIMESTAMP('2018-05-14 10:59:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-05-14T10:59:50.951
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=544075 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 2018-05-14T11:00:15.535
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560145,544075,0,30,540266,540981,'N','C_Invoice_Candidate_Assigned_ID',TO_TIMESTAMP('2018-05-14 11:00:15','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.contracts',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Zugeordneter Rechnungskandidat',0,0,TO_TIMESTAMP('2018-05-14 11:00:15','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T11:00:15.536
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560145 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T11:00:27.809
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET Name='C_Invoice_Candidate_Assignment', TableName='C_Invoice_Candidate_Assignment',Updated=TO_TIMESTAMP('2018-05-14 11:00:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540981
;
-- 2018-05-14T11:00:27.813
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Sequence SET Name='C_Invoice_Candidate_Assignment',Updated=TO_TIMESTAMP('2018-05-14 11:00:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=554544
;
-- 2018-05-14T11:00:43.289
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET ColumnName='C_Invoice_Candidate_Assignment_ID', Name='C_Invoice_Candidate_Assignment', PrintName='C_Invoice_Candidate_Assignment',Updated=TO_TIMESTAMP('2018-05-14 11:00:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=544074
;
-- 2018-05-14T11:00:43.291
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='C_Invoice_Candidate_Assignment_ID', Name='C_Invoice_Candidate_Assignment', Description=NULL, Help=NULL WHERE AD_Element_ID=544074
;
-- 2018-05-14T11:00:43.292
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='C_Invoice_Candidate_Assignment_ID', Name='C_Invoice_Candidate_Assignment', Description=NULL, Help=NULL, AD_Element_ID=544074 WHERE UPPER(ColumnName)='C_INVOICE_CANDIDATE_ASSIGNMENT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2018-05-14T11:00:43.293
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='C_Invoice_Candidate_Assignment_ID', Name='C_Invoice_Candidate_Assignment', Description=NULL, Help=NULL WHERE AD_Element_ID=544074 AND IsCentrallyMaintained='Y'
;
-- 2018-05-14T11:00:43.294
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='C_Invoice_Candidate_Assignment', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=544074) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 544074)
;
-- 2018-05-14T11:00:43.304
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='C_Invoice_Candidate_Assignment', Name='C_Invoice_Candidate_Assignment' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=544074)
;
-- 2018-05-14T11:00:56.397
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:00:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=544074
;
-- 2018-05-14T11:01:09.091
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540981
;
-- 2018-05-14T11:01:27.553
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560136
;
-- 2018-05-14T11:01:31.024
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560137
;
-- 2018-05-14T11:01:32.040
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560142
;
-- 2018-05-14T11:01:32.624
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560141
;
-- 2018-05-14T11:01:33.103
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560140
;
-- 2018-05-14T11:01:33.768
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560139
;
-- 2018-05-14T11:01:34.343
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560138
;
-- 2018-05-14T11:01:35.041
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560144
;
-- 2018-05-14T11:01:35.759
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate', IsUpdateable='N',Updated=TO_TIMESTAMP('2018-05-14 11:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560143
;
-- 2018-05-14T11:01:37.364
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2018-05-14 11:01:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560145
;
-- 2018-05-14T11:02:01.174
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,560146,541447,0,30,540981,'N','C_Flatrate_Term_ID',TO_TIMESTAMP('2018-05-14 11:02:01','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.contracts',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Pauschale - Vertragsperiode',0,0,TO_TIMESTAMP('2018-05-14 11:02:01','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2018-05-14T11:02:01.175
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=560146 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2018-05-14T11:05:03.723
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540981
;
-- 2018-05-14T11:05:11.647
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560142
;
-- 2018-05-14T11:05:12.472
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560141
;
-- 2018-05-14T11:05:13.070
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560140
;
-- 2018-05-14T11:05:13.978
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560139
;
-- 2018-05-14T11:05:14.789
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560138
;
-- 2018-05-14T11:05:15.646
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560144
;
-- 2018-05-14T11:05:16.254
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts', IsUpdateable='N',Updated=TO_TIMESTAMP('2018-05-14 11:05:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560143
;
-- 2018-05-14T11:05:17.175
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560145
;
-- 2018-05-14T11:05:18.109
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560137
;
-- 2018-05-14T11:05:20.499
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='de.metas.contracts',Updated=TO_TIMESTAMP('2018-05-14 11:05:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560136
;
-- 2018-05-14T11:10:14.993
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsForceIncludeInGeneratedModel='Y',Updated=TO_TIMESTAMP('2018-05-14 11:10:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=547312
;
-- 2018-05-14T11:25:38.809
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE C_ILCandHandler SET Name='Laufender Abo-Vertrag',Updated=TO_TIMESTAMP('2018-05-14 11:25:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_ILCandHandler_ID=540004
;
UPDATE C_ILCandHandler
SET ClassName='de.metas.contracts.invoicecandidate.FlatrateTermSubscription_Handler',Updated=TO_TIMESTAMP('2018-05-14 11:25:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100
WHERE C_ILCandHandler_ID=540004;
-- 2018-05-14T11:55:18.928
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_ILCandHandler (AD_Client_ID,AD_Org_ID,C_ILCandHandler_ID,Classname,Created,CreatedBy,Description,EntityType,IsActive,Is_AD_User_InCharge_UI_Setting,Name,TableName,Updated,UpdatedBy) VALUES (0,0,540019,'de.metas.contracts.invoicecandidate.FlatrateTermRefund_Handler',TO_TIMESTAMP('2018-05-14 11:55:18','YYYY-MM-DD HH24:MI:SS'),100,'Erstellt einen Rechnungskandiaten pro laufenden Vertrag.','de.metas.contracts','Y','N','Laufender Rückvergütungsvertrag','C_Flatrate_Term',TO_TIMESTAMP('2018-05-14 11:55:18','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-05-14T11:56:37.615
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE C_ILCandHandler SET Name='Laufender Abovertrag',Updated=TO_TIMESTAMP('2018-05-14 11:56:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_ILCandHandler_ID=540004
;
| 97.776074
| 1,312
| 0.801255
|
d043f0dce85f1f9137d6821d5215a3bbe781b19e
| 620
|
cpp
|
C++
|
src/libtoast/tests/toast_test_env.cpp
|
jrs584/toast
|
c0e2a9296348a22075271236457ad5c23713af82
|
[
"BSD-2-Clause"
] | 29
|
2017-03-23T04:51:32.000Z
|
2022-02-10T13:17:42.000Z
|
src/libtoast/tests/toast_test_env.cpp
|
jrs584/toast
|
c0e2a9296348a22075271236457ad5c23713af82
|
[
"BSD-2-Clause"
] | 362
|
2016-05-06T18:26:35.000Z
|
2022-03-30T16:39:46.000Z
|
src/libtoast/tests/toast_test_env.cpp
|
jrs584/toast
|
c0e2a9296348a22075271236457ad5c23713af82
|
[
"BSD-2-Clause"
] | 37
|
2016-05-20T09:31:03.000Z
|
2022-02-24T13:56:27.000Z
|
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by
// a BSD-style license that can be found in the LICENSE file.
#include <toast_test.hpp>
TEST_F(TOASTenvTest, print) {
auto & env = toast::Environment::get();
env.print();
}
TEST_F(TOASTenvTest, setlog) {
auto & env = toast::Environment::get();
std::string check = env.log_level();
ASSERT_STREQ(check.c_str(), "INFO");
env.set_log_level("CRITICAL");
check = env.log_level();
ASSERT_STREQ(check.c_str(), "CRITICAL");
env.set_log_level("INFO");
}
| 25.833333
| 69
| 0.670968
|
74f182ff9773655c2291f24822fd221c99251f05
| 1,489
|
css
|
CSS
|
styles/style.css
|
uMaguin/Sound-Bar-Loading-Animation
|
3b161e63fb61fced7c17917906367db11689b72e
|
[
"RSA-MD"
] | null | null | null |
styles/style.css
|
uMaguin/Sound-Bar-Loading-Animation
|
3b161e63fb61fced7c17917906367db11689b72e
|
[
"RSA-MD"
] | null | null | null |
styles/style.css
|
uMaguin/Sound-Bar-Loading-Animation
|
3b161e63fb61fced7c17917906367db11689b72e
|
[
"RSA-MD"
] | null | null | null |
body {
background: #111;
}
.container {
width: 760px;
height: 1px;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%) scale(0.1);
transform: translate(-50%, -50%) scale(0.1);
}
.dot {
position: absolute;
width: 80px;
height: 80px;
background: gray;
border-top-right-radius: 50px;
border-top-left-radius: 50px;
border-bottom-right-radius: 50px;
border-bottom-left-radius: 50px;
-webkit-animation: scale 2s infinite;
animation: scale 2s infinite;
}
div:nth-child(1) {
-webkit-animation-delay: 0.2s;
animation-delay: 0.2s;
}
div:nth-child(2) {
left: 170px;
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
div:nth-child(3) {
left: 340px;
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
}
div:nth-child(4) {
left: 510px;
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
div:nth-child(5) {
left: 680px;
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
@-webkit-keyframes scale {
0% {
}
20% {
height: 600px;
-webkit-transform: translate(0, -60%);
transform: translate(0, -60%);
background-color: #fff;
}
70% {
height: 80px;
}
}
@keyframes scale {
0% {
}
20% {
height: 600px;
-webkit-transform: translate(0, -60%);
transform: translate(0, -60%);
background-color: #fff;
}
70% {
height: 80px;
}
}
/*# sourceMappingURL=style.css.map */
| 17.72619
| 54
| 0.591672
|
82417fd7298fb38d0e24c1dd7e40ec6781780127
| 361,713
|
css
|
CSS
|
src/CodeMaze.WebApp/wwwroot/assets/default/css/style.css
|
codemazenet/codemaze.net
|
ce8c5447d0d146ab4295f64d064b961dd02caf94
|
[
"MIT"
] | null | null | null |
src/CodeMaze.WebApp/wwwroot/assets/default/css/style.css
|
codemazenet/codemaze.net
|
ce8c5447d0d146ab4295f64d064b961dd02caf94
|
[
"MIT"
] | null | null | null |
src/CodeMaze.WebApp/wwwroot/assets/default/css/style.css
|
codemazenet/codemaze.net
|
ce8c5447d0d146ab4295f64d064b961dd02caf94
|
[
"MIT"
] | null | null | null |
@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hmIqOjjg.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hvIqOjjg.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hnIqOjjg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hoIqOjjg.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hkIqOjjg.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hlIqOjjg.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWyV9hrIqM.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0Udc1UAw.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0ddc1UAw.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0Vdc1UAw.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0adc1UAw.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v17/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhvIqOjjg.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhnIqOjjg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhoIqOjjg.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhkIqOjjg.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhlIqOjjg.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKXGUdhrIqM.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhmIqOjjg.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhvIqOjjg.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhnIqOjjg.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhoIqOjjg.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhkIqOjjg.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhlIqOjjg.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v17/memnYaGs126MiZpBA-UFUKWiUNhrIqM.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OX-hpOqc.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OVuhpOqc.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OXuhpOqc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OUehpOqc.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OXehpOqc.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OXOhpOqc.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN_r8OUuhp.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFW50bbck.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFVZ0b.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOX-hpOqc.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOVuhpOqc.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOXuhpOqc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOUehpOqc.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOXehpOqc.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOXOhpOqc.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UNirkOUuhp.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOX-hpOqc.woff2) format('woff2');unicode-range:U+460-52F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOVuhpOqc.woff2) format('woff2');unicode-range:U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOXuhpOqc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOUehpOqc.woff2) format('woff2');unicode-range:U+370-3FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOXehpOqc.woff2) format('woff2');unicode-range:U+102-103,U+110-111,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOXOhpOqc.woff2) format('woff2');unicode-range:U+100-24F,U+259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v17/mem5YaGs126MiZpBA-UN7rgOUuhp.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'fontello';src:url('font-ello/font/fontellodfd5.eot?70993252');src:url('font-ello/font/fontellodfd5.eot?70993252#iefix') format('embedded-opentype'),url('font-ello/font/fontellodfd5.woff?70993252') format('woff'),url('font-ello/font/fontellodfd5.ttf?70993252') format('truetype'),url('font-ello/font/fontellodfd5.svg?70993252#fontello') format('svg');font-weight:normal;font-style:normal}[class^="social_icon-"]:before,[class*=" social_icon-"]:before{font-family:"fontello";font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:auto;height:auto;text-align:center;font-variant:normal;text-transform:none;line-height:normal}.social_icon-duckduckgo:before{content:''}.social_icon-aim:before{content:''}.social_icon-delicious:before{content:''}.social_icon-paypal:before{content:''}.social_icon-flattr:before{content:''}.social_icon-android:before{content:''}.social_icon-eventful:before{content:''}.social_icon-smashmag:before{content:''}.social_icon-gplus:before{content:''}.social_icon-wikipedia:before{content:''}.social_icon-lanyrd:before{content:''}.social_icon-calendar:before{content:''}.social_icon-stumbleupon:before{content:''}.social_icon-fivehundredpx:before{content:''}.social_icon-pinterest:before{content:''}.social_icon-bitcoin:before{content:''}.social_icon-w3c:before{content:''}.social_icon-foursquare:before{content:''}.social_icon-html5:before{content:''}.social_icon-ie:before{content:''}.social_icon-call:before{content:''}.social_icon-grooveshark:before{content:''}.social_icon-ninetyninedesigns:before{content:''}.social_icon-forrst:before{content:''}.social_icon-digg:before{content:''}.social_icon-spotify:before{content:''}.social_icon-reddit:before{content:''}.social_icon-guest:before{content:''}.social_icon-gowalla:before{content:''}.social_icon-appstore:before{content:''}.social_icon-blogger:before{content:''}.social_icon-cc:before{content:''}.social_icon-dribbble:before{content:''}.social_icon-evernote:before{content:''}.social_icon-flickr:before{content:''}.social_icon-google:before{content:''}.social_icon-viadeo:before{content:''}.social_icon-instapaper:before{content:''}.social_icon-weibo:before{content:''}.social_icon-klout:before{content:''}.social_icon-linkedin:before{content:''}.social_icon-meetup:before{content:''}.social_icon-vk:before{content:''}.social_icon-plancast:before{content:''}.social_icon-disqus:before{content:''}.social_icon-rss:before{content:''}.social_icon-skype:before{content:''}.social_icon-twitter:before{content:''}.social_icon-youtube:before{content:''}.social_icon-vimeo:before{content:''}.social_icon-windows:before{content:''}.social_icon-xing:before{content:''}.social_icon-yahoo:before{content:''}.social_icon-chrome:before{content:''}.social_icon-email:before{content:''}.social_icon-macstore:before{content:''}.social_icon-myspace:before{content:''}.social_icon-podcast:before{content:''}.social_icon-amazon:before{content:''}.social_icon-steam:before{content:''}.social_icon-cloudapp:before{content:''}.social_icon-dropbox:before{content:''}.social_icon-ebay:before{content:''}.social_icon-facebook:before{content:''}.social_icon-github:before{content:''}.social_icon-googleplay:before{content:''}.social_icon-itunes:before{content:''}.social_icon-plurk:before{content:''}.social_icon-songkick:before{content:''}.social_icon-lastfm:before{content:''}.social_icon-gmail:before{content:''}.social_icon-pinboard:before{content:''}.social_icon-openid:before{content:''}.social_icon-quora:before{content:''}.social_icon-soundcloud:before{content:''}.social_icon-tumblr:before{content:''}.social_icon-eventasaurus:before{content:''}.social_icon-wordpress:before{content:''}.social_icon-yelp:before{content:''}.social_icon-intensedebate:before{content:''}.social_icon-eventbrite:before{content:''}.social_icon-scribd:before{content:''}.social_icon-posterous:before{content:''}.social_icon-stripe:before{content:''}.social_icon-opentable:before{content:''}.social_icon-cart:before{content:''}.social_icon-print:before{content:''}.social_icon-angellist:before{content:''}.social_icon-instagram:before{content:''}.social_icon-dwolla:before{content:''}.social_icon-appnet:before{content:''}.social_icon-statusnet:before{content:''}.social_icon-acrobat:before{content:''}.social_icon-drupal:before{content:''}.social_icon-buffer:before{content:''}.social_icon-pocket:before{content:''}.social_icon-github-circled:before{content:''}.social_icon-bitbucket:before{content:''}.social_icon-lego:before{content:''}.social_icon-login:before{content:''}.social_icon-stackoverflow:before{content:''}.social_icon-hackernews:before{content:''}.social_icon-lkdto:before{content:''}.social_icon-deviantart:before{content:''}.social_icon-behance:before{content:''}
/*!
* Font Awesome 3.1.0
* the iconic font designed for Bootstrap
* -------------------------------------------------------
* The full suite of pictographic icons, examples, and documentation
* can be found at: http://fontawesome.io
*
* License
* -------------------------------------------------------
* - The Font Awesome font is licensed under the SIL Open Font License v1.1 -
* http://scripts.sil.org/OFL
* - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License -
* http://opensource.org/licenses/mit-license.html
* - Font Awesome documentation licensed under CC BY 3.0 License -
* http://creativecommons.org/licenses/by/3.0/
* - Attribution is no longer required in Font Awesome 3.0, but much appreciated:
* "Font Awesome by Dave Gandy - http://fontawesome.io"
* Contact
* -------------------------------------------------------
* Email: dave@fontawesome.io
* Twitter: http://twitter.com/fortaweso_me
* Work: Lead Product Designer @ http://kyruus.com
*/@font-face{font-family:'FontAwesome';src:url('font-awesome/font/fontawesome-webfonte63c.eot?v=3.1.0');src:url('font-awesome/font/fontawesome-webfontd41d.eot?#iefix&v=3.1.0') format('embedded-opentype'),url('font-awesome/font/fontawesome-webfonte63c.woff?v=3.1.0') format('woff'),url('font-awesome/font/fontawesome-webfonte63c.ttf?v=3.1.0') format('truetype'),url('font-awesome/font/fontawesome-webfont.svg#fontawesomeregular?v=3.1.0') format('svg');font-weight:normal;font-style:normal}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}a [class^="icon-"],a [class*=" icon-"],a [class^="icon-"]:before,a [class*=" icon-"]:before{display:inline-block}[class^="icon-"].icon-fixed-width,[class*=" icon-"].icon-fixed-width{display:inline-block;width:1.2857142857142858em;text-align:center}[class^="icon-"].icon-fixed-width.icon-large,[class*=" icon-"].icon-fixed-width.icon-large{width:1.5714285714285714em}ul.icons-ul{list-style-type:none;text-indent:-0.7142857142857143em;margin-left:2.142857142857143em}ul.icons-ul>li .icon-li{width:.7142857142857143em;display:inline-block;text-align:center}[class^="icon-"].hide,[class*=" icon-"].hide{display:none}.icon-muted{color:#eee}.icon-light{color:#fff}.icon-dark{color:#333}.icon-border{border:solid 1px #eee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.icon-5x{font-size:5em}.icon-5x.icon-border{border-width:5px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.pull-right{float:right}.pull-left{float:left}[class^="icon-"].pull-left,[class*=" icon-"].pull-left{margin-right:.3em}[class^="icon-"].pull-right,[class*=" icon-"].pull-right{margin-left:.3em}[class^="icon-"],[class*=" icon-"]{display:inline-block;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0 0;background-repeat:repeat;margin-top:0}.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"]{background-image:none}.btn [class^="icon-"].icon-large,.nav [class^="icon-"].icon-large,.btn [class*=" icon-"].icon-large,.nav [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].icon-spin,.nav [class^="icon-"].icon-spin,.btn [class*=" icon-"].icon-spin,.nav [class*=" icon-"].icon-spin{display:inline-block}.nav-tabs [class^="icon-"],.nav-pills [class^="icon-"],.nav-tabs [class*=" icon-"],.nav-pills [class*=" icon-"],.nav-tabs [class^="icon-"].icon-large,.nav-pills [class^="icon-"].icon-large,.nav-tabs [class*=" icon-"].icon-large,.nav-pills [class*=" icon-"].icon-large{line-height:.9em}.btn [class^="icon-"].pull-left.icon-2x,.btn [class*=" icon-"].pull-left.icon-2x,.btn [class^="icon-"].pull-right.icon-2x,.btn [class*=" icon-"].pull-right.icon-2x{margin-top:.18em}.btn [class^="icon-"].icon-spin.icon-large,.btn [class*=" icon-"].icon-spin.icon-large{line-height:.8em}.btn.btn-small [class^="icon-"].pull-left.icon-2x,.btn.btn-small [class*=" icon-"].pull-left.icon-2x,.btn.btn-small [class^="icon-"].pull-right.icon-2x,.btn.btn-small [class*=" icon-"].pull-right.icon-2x{margin-top:.25em}.btn.btn-large [class^="icon-"],.btn.btn-large [class*=" icon-"]{margin-top:0}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x,.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-top:.05em}.btn.btn-large [class^="icon-"].pull-left.icon-2x,.btn.btn-large [class*=" icon-"].pull-left.icon-2x{margin-right:.2em}.btn.btn-large [class^="icon-"].pull-right.icon-2x,.btn.btn-large [class*=" icon-"].pull-right.icon-2x{margin-left:.2em}.icon-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:-35%}.icon-stack [class^="icon-"],.icon-stack [class*=" icon-"]{display:block;text-align:center;position:absolute;width:100%;height:100%;font-size:1em;line-height:inherit;*line-height:2em}.icon-stack .icon-stack-base{font-size:2em;*line-height:1em}.icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.icon-rotate-90:before{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.icon-rotate-180:before{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2)}.icon-rotate-270:before{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.icon-flip-horizontal:before{-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.icon-flip-vertical:before{-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}.icon-glass:before{content:"\f000"}.icon-music:before{content:"\f001"}.icon-search:before{content:"\f002"}.icon-envelope:before{content:"\f003"}.icon-heart:before{content:"\f004"}.icon-star:before{content:"\f005"}.icon-star-empty:before{content:"\f006"}.icon-user:before{content:"\f007"}.icon-film:before{content:"\f008"}.icon-th-large:before{content:"\f009"}.icon-th:before{content:"\f00a"}.icon-th-list:before{content:"\f00b"}.icon-ok:before{content:"\f00c"}.icon-remove:before{content:"\f00d"}.icon-zoom-in:before{content:"\f00e"}.icon-zoom-out:before{content:"\f010"}.icon-off:before{content:"\f011"}.icon-signal:before{content:"\f012"}.icon-cog:before{content:"\f013"}.icon-trash:before{content:"\f014"}.icon-home:before{content:"\f015"}.icon-file:before{content:"\f016"}.icon-time:before{content:"\f017"}.icon-road:before{content:"\f018"}.icon-download-alt:before{content:"\f019"}.icon-download:before{content:"\f01a"}.icon-upload:before{content:"\f01b"}.icon-inbox:before{content:"\f01c"}.icon-play-circle:before{content:"\f01d"}.icon-repeat:before,.icon-rotate-right:before{content:"\f01e"}.icon-refresh:before{content:"\f021"}.icon-list-alt:before{content:"\f022"}.icon-lock:before{content:"\f023"}.icon-flag:before{content:"\f024"}.icon-headphones:before{content:"\f025"}.icon-volume-off:before{content:"\f026"}.icon-volume-down:before{content:"\f027"}.icon-volume-up:before{content:"\f028"}.icon-qrcode:before{content:"\f029"}.icon-barcode:before{content:"\f02a"}.icon-tag:before{content:"\f02b"}.icon-tags:before{content:"\f02c"}.icon-book:before{content:"\f02d"}.icon-bookmark:before{content:"\f02e"}.icon-print:before{content:"\f02f"}.icon-camera:before{content:"\f030"}.icon-font:before{content:"\f031"}.icon-bold:before{content:"\f032"}.icon-italic:before{content:"\f033"}.icon-text-height:before{content:"\f034"}.icon-text-width:before{content:"\f035"}.icon-align-left:before{content:"\f036"}.icon-align-center:before{content:"\f037"}.icon-align-right:before{content:"\f038"}.icon-align-justify:before{content:"\f039"}.icon-list:before{content:"\f03a"}.icon-indent-left:before{content:"\f03b"}.icon-indent-right:before{content:"\f03c"}.icon-facetime-video:before{content:"\f03d"}.icon-picture:before{content:"\f03e"}.icon-pencil:before{content:"\f040"}.icon-map-marker:before{content:"\f041"}.icon-adjust:before{content:"\f042"}.icon-tint:before{content:"\f043"}.icon-edit:before{content:"\f044"}.icon-share:before{content:"\f045"}.icon-check:before{content:"\f046"}.icon-move:before{content:"\f047"}.icon-step-backward:before{content:"\f048"}.icon-fast-backward:before{content:"\f049"}.icon-backward:before{content:"\f04a"}.icon-play:before{content:"\f04b"}.icon-pause:before{content:"\f04c"}.icon-stop:before{content:"\f04d"}.icon-forward:before{content:"\f04e"}.icon-fast-forward:before{content:"\f050"}.icon-step-forward:before{content:"\f051"}.icon-eject:before{content:"\f052"}.icon-chevron-left:before{content:"\f053"}.icon-chevron-right:before{content:"\f054"}.icon-plus-sign:before{content:"\f055"}.icon-minus-sign:before{content:"\f056"}.icon-remove-sign:before{content:"\f057"}.icon-ok-sign:before{content:"\f058"}.icon-question-sign:before{content:"\f059"}.icon-info-sign:before{content:"\f05a"}.icon-screenshot:before{content:"\f05b"}.icon-remove-circle:before{content:"\f05c"}.icon-ok-circle:before{content:"\f05d"}.icon-ban-circle:before{content:"\f05e"}.icon-arrow-left:before{content:"\f060"}.icon-arrow-right:before{content:"\f061"}.icon-arrow-up:before{content:"\f062"}.icon-arrow-down:before{content:"\f063"}.icon-share-alt:before,.icon-mail-forward:before{content:"\f064"}.icon-resize-full:before{content:"\f065"}.icon-resize-small:before{content:"\f066"}.icon-plus:before{content:"\f067"}.icon-minus:before{content:"\f068"}.icon-asterisk:before{content:"\f069"}.icon-exclamation-sign:before{content:"\f06a"}.icon-gift:before{content:"\f06b"}.icon-leaf:before{content:"\f06c"}.icon-fire:before{content:"\f06d"}.icon-eye-open:before{content:"\f06e"}.icon-eye-close:before{content:"\f070"}.icon-warning-sign:before{content:"\f071"}.icon-plane:before{content:"\f072"}.icon-calendar:before{content:"\f073"}.icon-random:before{content:"\f074"}.icon-comment:before{content:"\f075"}.icon-magnet:before{content:"\f076"}.icon-chevron-up:before{content:"\f077"}.icon-chevron-down:before{content:"\f078"}.icon-retweet:before{content:"\f079"}.icon-shopping-cart:before{content:"\f07a"}.icon-folder-close:before{content:"\f07b"}.icon-folder-open:before{content:"\f07c"}.icon-resize-vertical:before{content:"\f07d"}.icon-resize-horizontal:before{content:"\f07e"}.icon-bar-chart:before{content:"\f080"}.icon-twitter-sign:before{content:"\f081"}.icon-facebook-sign:before{content:"\f082"}.icon-camera-retro:before{content:"\f083"}.icon-key:before{content:"\f084"}.icon-cogs:before{content:"\f085"}.icon-comments:before{content:"\f086"}.icon-thumbs-up:before{content:"\f087"}.icon-thumbs-down:before{content:"\f088"}.icon-star-half:before{content:"\f089"}.icon-heart-empty:before{content:"\f08a"}.icon-signout:before{content:"\f08b"}.icon-linkedin-sign:before{content:"\f08c"}.icon-pushpin:before{content:"\f08d"}.icon-external-link:before{content:"\f08e"}.icon-signin:before{content:"\f090"}.icon-trophy:before{content:"\f091"}.icon-github-sign:before{content:"\f092"}.icon-upload-alt:before{content:"\f093"}.icon-lemon:before{content:"\f094"}.icon-phone:before{content:"\f095"}.icon-check-empty:before{content:"\f096"}.icon-bookmark-empty:before{content:"\f097"}.icon-phone-sign:before{content:"\f098"}.icon-twitter:before{content:"\f099"}.icon-facebook:before{content:"\f09a"}.icon-github:before{content:"\f09b"}.icon-unlock:before{content:"\f09c"}.icon-credit-card:before{content:"\f09d"}.icon-rss:before{content:"\f09e"}.icon-hdd:before{content:"\f0a0"}.icon-bullhorn:before{content:"\f0a1"}.icon-bell:before{content:"\f0a2"}.icon-certificate:before{content:"\f0a3"}.icon-hand-right:before{content:"\f0a4"}.icon-hand-left:before{content:"\f0a5"}.icon-hand-up:before{content:"\f0a6"}.icon-hand-down:before{content:"\f0a7"}.icon-circle-arrow-left:before{content:"\f0a8"}.icon-circle-arrow-right:before{content:"\f0a9"}.icon-circle-arrow-up:before{content:"\f0aa"}.icon-circle-arrow-down:before{content:"\f0ab"}.icon-globe:before{content:"\f0ac"}.icon-wrench:before{content:"\f0ad"}.icon-tasks:before{content:"\f0ae"}.icon-filter:before{content:"\f0b0"}.icon-briefcase:before{content:"\f0b1"}.icon-fullscreen:before{content:"\f0b2"}.icon-group:before{content:"\f0c0"}.icon-link:before{content:"\f0c1"}.icon-cloud:before{content:"\f0c2"}.icon-beaker:before{content:"\f0c3"}.icon-cut:before{content:"\f0c4"}.icon-copy:before{content:"\f0c5"}.icon-paper-clip:before{content:"\f0c6"}.icon-save:before{content:"\f0c7"}.icon-sign-blank:before{content:"\f0c8"}.icon-reorder:before{content:"\f0c9"}.icon-list-ul:before{content:"\f0ca"}.icon-list-ol:before{content:"\f0cb"}.icon-strikethrough:before{content:"\f0cc"}.icon-underline:before{content:"\f0cd"}.icon-table:before{content:"\f0ce"}.icon-magic:before{content:"\f0d0"}.icon-truck:before{content:"\f0d1"}.icon-pinterest:before{content:"\f0d2"}.icon-pinterest-sign:before{content:"\f0d3"}.icon-google-plus-sign:before{content:"\f0d4"}.icon-google-plus:before{content:"\f0d5"}.icon-money:before{content:"\f0d6"}.icon-caret-down:before{content:"\f0d7"}.icon-caret-up:before{content:"\f0d8"}.icon-caret-left:before{content:"\f0d9"}.icon-caret-right:before{content:"\f0da"}.icon-columns:before{content:"\f0db"}.icon-sort:before{content:"\f0dc"}.icon-sort-down:before{content:"\f0dd"}.icon-sort-up:before{content:"\f0de"}.icon-envelope-alt:before{content:"\f0e0"}.icon-linkedin:before{content:"\f0e1"}.icon-undo:before,.icon-rotate-left:before{content:"\f0e2"}.icon-legal:before{content:"\f0e3"}.icon-dashboard:before{content:"\f0e4"}.icon-comment-alt:before{content:"\f0e5"}.icon-comments-alt:before{content:"\f0e6"}.icon-bolt:before{content:"\f0e7"}.icon-sitemap:before{content:"\f0e8"}.icon-umbrella:before{content:"\f0e9"}.icon-paste:before{content:"\f0ea"}.icon-lightbulb:before{content:"\f0eb"}.icon-exchange:before{content:"\f0ec"}.icon-cloud-download:before{content:"\f0ed"}.icon-cloud-upload:before{content:"\f0ee"}.icon-user-md:before{content:"\f0f0"}.icon-stethoscope:before{content:"\f0f1"}.icon-suitcase:before{content:"\f0f2"}.icon-bell-alt:before{content:"\f0f3"}.icon-coffee:before{content:"\f0f4"}.icon-food:before{content:"\f0f5"}.icon-file-alt:before{content:"\f0f6"}.icon-building:before{content:"\f0f7"}.icon-hospital:before{content:"\f0f8"}.icon-ambulance:before{content:"\f0f9"}.icon-medkit:before{content:"\f0fa"}.icon-fighter-jet:before{content:"\f0fb"}.icon-beer:before{content:"\f0fc"}.icon-h-sign:before{content:"\f0fd"}.icon-plus-sign-alt:before{content:"\f0fe"}.icon-double-angle-left:before{content:"\f100"}.icon-double-angle-right:before{content:"\f101"}.icon-double-angle-up:before{content:"\f102"}.icon-double-angle-down:before{content:"\f103"}.icon-angle-left:before{content:"\f104"}.icon-angle-right:before{content:"\f105"}.icon-angle-up:before{content:"\f106"}.icon-angle-down:before{content:"\f107"}.icon-desktop:before{content:"\f108"}.icon-laptop:before{content:"\f109"}.icon-tablet:before{content:"\f10a"}.icon-mobile-phone:before{content:"\f10b"}.icon-circle-blank:before{content:"\f10c"}.icon-quote-left:before{content:"\f10d"}.icon-quote-right:before{content:"\f10e"}.icon-spinner:before{content:"\f110"}.icon-circle:before{content:"\f111"}.icon-reply:before,.icon-mail-reply:before{content:"\f112"}.icon-folder-close-alt:before{content:"\f114"}.icon-folder-open-alt:before{content:"\f115"}.icon-expand-alt:before{content:"\f116"}.icon-collapse-alt:before{content:"\f117"}.icon-smile:before{content:"\f118"}.icon-frown:before{content:"\f119"}.icon-meh:before{content:"\f11a"}.icon-gamepad:before{content:"\f11b"}.icon-keyboard:before{content:"\f11c"}.icon-flag-alt:before{content:"\f11d"}.icon-flag-checkered:before{content:"\f11e"}.icon-terminal:before{content:"\f120"}.icon-code:before{content:"\f121"}.icon-reply-all:before{content:"\f122"}.icon-mail-reply-all:before{content:"\f122"}.icon-star-half-full:before,.icon-star-half-empty:before{content:"\f123"}.icon-location-arrow:before{content:"\f124"}.icon-crop:before{content:"\f125"}.icon-code-fork:before{content:"\f126"}.icon-unlink:before{content:"\f127"}.icon-question:before{content:"\f128"}.icon-info:before{content:"\f129"}.icon-exclamation:before{content:"\f12a"}.icon-superscript:before{content:"\f12b"}.icon-subscript:before{content:"\f12c"}.icon-eraser:before{content:"\f12d"}.icon-puzzle-piece:before{content:"\f12e"}.icon-microphone:before{content:"\f130"}.icon-microphone-off:before{content:"\f131"}.icon-shield:before{content:"\f132"}.icon-calendar-empty:before{content:"\f133"}.icon-fire-extinguisher:before{content:"\f134"}.icon-rocket:before{content:"\f135"}.icon-maxcdn:before{content:"\f136"}.icon-chevron-sign-left:before{content:"\f137"}.icon-chevron-sign-right:before{content:"\f138"}.icon-chevron-sign-up:before{content:"\f139"}.icon-chevron-sign-down:before{content:"\f13a"}.icon-html5:before{content:"\f13b"}.icon-css3:before{content:"\f13c"}.icon-anchor:before{content:"\f13d"}.icon-unlock-alt:before{content:"\f13e"}.icon-bullseye:before{content:"\f140"}.icon-ellipsis-horizontal:before{content:"\f141"}.icon-ellipsis-vertical:before{content:"\f142"}.icon-rss-sign:before{content:"\f143"}.icon-play-sign:before{content:"\f144"}.icon-ticket:before{content:"\f145"}.icon-minus-sign-alt:before{content:"\f146"}.icon-check-minus:before{content:"\f147"}.icon-level-up:before{content:"\f148"}.icon-level-down:before{content:"\f149"}.icon-check-sign:before{content:"\f14a"}.icon-edit-sign:before{content:"\f14b"}.icon-external-link-sign:before{content:"\f14c"}.icon-share-sign:before{content:"\f14d"}
@charset "UTF-8";/*!
Animate.css - http://daneden.me/animate
Licensed under the MIT license - http://opensource.org/licenses/MIT
Copyright (c) 2015 Daniel Eden
*/.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animated.hinge{-webkit-animation-duration:2s;animation-duration:2s}@-webkit-keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@keyframes bounce{0%,100%,20%,53%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}40%,43%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-30px,0);-ms-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}70%{-webkit-transition-timing-function:cubic-bezier(0.755,.050,.855,.060);transition-timing-function:cubic-bezier(0.755,.050,.855,.060);-webkit-transform:translate3d(0,-15px,0);-ms-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);-ms-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;-ms-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,100%,50%{opacity:1}25%,75%{opacity:0}}.flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);-ms-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}100%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.pulse{-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}30%{-webkit-transform:scale3d(1.25,.75,1);-ms-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(0.75,1.25,1);-ms-transform:scale3d(0.75,1.25,1);transform:scale3d(0.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);-ms-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);-ms-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);-ms-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}100%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}@keyframes shake{0%,100%{-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-10px,0,0);-ms-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(10px,0,0);-ms-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}}.shake{-webkit-animation-name:shake;animation-name:shake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);-ms-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);-ms-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);-ms-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);-ms-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}100%{-webkit-transform:rotate3d(0,0,1,0deg);-ms-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0deg)}}.swing{-webkit-transform-origin:top center;-ms-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);-ms-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);-ms-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);-ms-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}100%{-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;transform:none}}@keyframes wobble{0%{-webkit-transform:none;-ms-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);-ms-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);-ms-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);-ms-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);-ms-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);-ms-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes bounceIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}@keyframes bounceIn{0%,100%,20%,40%,60%,80%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);-ms-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);-ms-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);-ms-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);-ms-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}100%{opacity:1;-webkit-transform:scale3d(1,1,1);-ms-transform:scale3d(1,1,1);transform:scale3d(1,1,1)}}.bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn;-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounceInDown{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInDown{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-3000px,0);-ms-transform:translate3d(0,-3000px,0);transform:translate3d(0,-3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,25px,0);-ms-transform:translate3d(0,25px,0);transform:translate3d(0,25px,0)}75%{-webkit-transform:translate3d(0,-10px,0);-ms-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}90%{-webkit-transform:translate3d(0,5px,0);-ms-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);-ms-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);-ms-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);-ms-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);-ms-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInRight{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(3000px,0,0);-ms-transform:translate3d(3000px,0,0);transform:translate3d(3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(-25px,0,0);-ms-transform:translate3d(-25px,0,0);transform:translate3d(-25px,0,0)}75%{-webkit-transform:translate3d(10px,0,0);-ms-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}90%{-webkit-transform:translate3d(-5px,0,0);-ms-transform:translate3d(-5px,0,0);transform:translate3d(-5px,0,0)}100%{-webkit-transform:none;-ms-transform:none;transform:none}}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes bounceInUp{0%,100%,60%,75%,90%{-webkit-transition-timing-function:cubic-bezier(0.215,.61,.355,1);transition-timing-function:cubic-bezier(0.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,3000px,0);-ms-transform:translate3d(0,3000px,0);transform:translate3d(0,3000px,0)}60%{opacity:1;-webkit-transform:translate3d(0,-20px,0);-ms-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}75%{-webkit-transform:translate3d(0,10px,0);-ms-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}90%{-webkit-transform:translate3d(0,-5px,0);-ms-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}100%{-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);-ms-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);-ms-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}100%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut;-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,10px,0);-ms-transform:translate3d(0,10px,0);transform:translate3d(0,10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-20px,0);-ms-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);-ms-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);-ms-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);-ms-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);-ms-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);-ms-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-10px,0);-ms-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}40%,45%{opacity:1;-webkit-transform:translate3d(0,20px,0);-ms-transform:translate3d(0,20px,0);transform:translate3d(0,20px,0)}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);-ms-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);-ms-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);-ms-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);-ms-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);-ms-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);-ms-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,2000px,0);-ms-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);-ms-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(2000px,0,0);-ms-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-100%,0);-ms-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);-ms-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-360deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-360deg);transform:perspective(400px) rotate3d(0,1,0,-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-ms-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-ms-transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);transform:perspective(400px) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(400px) scale3d(.95,.95,.95);-ms-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}100%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animated.flip{-webkit-backface-visibility:visible;-ms-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);-ms-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);-ms-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(1,0,0,10deg);-ms-transform:perspective(400px) rotate3d(1,0,0,10deg);transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-5deg);-ms-transform:perspective(400px) rotate3d(1,0,0,-5deg);transform:perspective(400px) rotate3d(1,0,0,-5deg)}100%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}}.flipInX{-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);-ms-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-20deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-20deg);transform:perspective(400px) rotate3d(0,1,0,-20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0,1,0,10deg);-ms-transform:perspective(400px) rotate3d(0,1,0,10deg);transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-5deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-5deg);transform:perspective(400px) rotate3d(0,1,0,-5deg)}100%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}}.flipInY{-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(1,0,0,-20deg);-ms-transform:perspective(400px) rotate3d(1,0,0,-20deg);transform:perspective(400px) rotate3d(1,0,0,-20deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(1,0,0,90deg);-ms-transform:perspective(400px) rotate3d(1,0,0,90deg);transform:perspective(400px) rotate3d(1,0,0,90deg);opacity:0}}.flipOutX{-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);-ms-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotate3d(0,1,0,-15deg);-ms-transform:perspective(400px) rotate3d(0,1,0,-15deg);transform:perspective(400px) rotate3d(0,1,0,-15deg);opacity:1}100%{-webkit-transform:perspective(400px) rotate3d(0,1,0,90deg);-ms-transform:perspective(400px) rotate3d(0,1,0,90deg);transform:perspective(400px) rotate3d(0,1,0,90deg);opacity:0}}.flipOutY{-webkit-backface-visibility:visible!important;-ms-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY;-webkit-animation-duration:.75s;animation-duration:.75s}@-webkit-keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;transform:none;opacity:1}}@keyframes lightSpeedIn{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);-ms-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skewX(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);-ms-transform:skewX(20deg);transform:skewX(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);-ms-transform:skewX(-5deg);transform:skewX(-5deg);opacity:1}100%{-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@keyframes lightSpeedOut{0%{opacity:1}100%{-webkit-transform:translate3d(100%,0,0) skewX(30deg);-ms-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateIn{0%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,-200deg);-ms-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}100%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);-ms-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,45deg);-ms-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);-ms-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-90deg);-ms-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;-ms-transform:none;transform:none;opacity:1}}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}@-webkit-keyframes rotateOut{0%{-webkit-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;opacity:1}100%{-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotate3d(0,0,1,200deg);-ms-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}@-webkit-keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,45deg);-ms-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}@-webkit-keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,-45deg);-ms-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}@-webkit-keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;opacity:1}100%{-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate3d(0,0,1,-45deg);-ms-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}@-webkit-keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;opacity:1}100%{-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate3d(0,0,1,90deg);-ms-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}@-webkit-keyframes hinge{0%{-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);-ms-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);-ms-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}100%{-webkit-transform:translate3d(0,700px,0);-ms-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}.hinge{-webkit-animation-name:hinge;animation-name:hinge}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);-ms-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}100%{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none}}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}100%{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);-ms-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-ms-transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(10px,0,0);transform:scale3d(.475,.475,.475) translate3d(10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-ms-transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);-ms-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}100%{opacity:0}}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);-webkit-transform-origin:center bottom;-ms-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;transform-origin:left center}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(42px,0,0);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(-2000px,0,0);-ms-transform:scale(.1) translate3d(-2000px,0,0);transform:scale(.1) translate3d(-2000px,0,0);-webkit-transform-origin:left center;-ms-transform-origin:left center;transform-origin:left center}}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;transform-origin:right center}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);-ms-transform:scale3d(.475,.475,.475) translate3d(-42px,0,0);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}100%{opacity:0;-webkit-transform:scale(.1) translate3d(2000px,0,0);-ms-transform:scale(.1) translate3d(2000px,0,0);transform:scale(.1) translate3d(2000px,0,0);-webkit-transform-origin:right center;-ms-transform-origin:right center;transform-origin:right center}}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-ms-transform:scale3d(.475,.475,.475) translate3d(0,60px,0);transform:scale3d(.475,.475,.475) translate3d(0,60px,0);-webkit-animation-timing-function:cubic-bezier(0.55,.055,.675,.19);animation-timing-function:cubic-bezier(0.55,.055,.675,.19)}100%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-ms-transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);-webkit-transform-origin:center bottom;-ms-transform-origin:center bottom;transform-origin:center bottom;-webkit-animation-timing-function:cubic-bezier(0.175,.885,.32,1);animation-timing-function:cubic-bezier(0.175,.885,.32,1)}}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}@-webkit-keyframes slideInDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideInDown{0%{-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%);visibility:visible}100%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideInLeft{0%{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translateX(100%);transform:translateX(100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideInRight{0%{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);visibility:visible}100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideInUp{0%{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%);visibility:visible}100%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{visibility:hidden;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes slideOutDown{0%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}100%{visibility:hidden;-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{visibility:hidden;-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes slideOutLeft{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}100%{visibility:hidden;-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{visibility:hidden;-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes slideOutRight{0%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}100%{visibility:hidden;-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{visibility:hidden;-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes slideOutUp{0%{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}100%{visibility:hidden;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
html, body, #main-wrapper {
height: 100%;
}
body {
font-size: 14px;
line-height: 22px;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}
ol, ul, li {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
p {
margin: 0 0 20px 0;
line-height: 22px;
}
/* Basic Styles */
html {
-webkit-text-size-adjust: none;
}
* {
outline: none;
}
input[type='submit'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
cursor: pointer;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
::-moz-selection {
color: #fff;
text-shadow: none;
}
::selection {
color: #fff;
text-shadow: none;
}
blockquote {
font-style: italic;
font-weight: normal;
}
.google-map iframe {
width: 100%;
min-height: 400px;
}
pre {
background: #F5F5F5;
color: #888;
margin: 10px auto;
border: hidden;
word-break: break-word;
word-wrap: break-word;
white-space: pre !important;
overflow: hidden;
line-height: 24px;
margin: 10px auto;
}
.display_none {
display: none;
}
/* Main Fonts */
body, .qoute p, input, .button, label, .more, blockquote, .widget ul li, textarea {
font-family: "Open Sans", Arial, sans-serif;
}
.widget ul li h6 {
font-size: 14px;
line-height: 20px;
}
.button {
display: inline-block;
margin: 5px 5px 5px 0;
border: none;
cursor: pointer;
text-shadow: none !important;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
font-size: 15px;
font-weight: bold;
}
.button i {
margin-right: 10px;
}
.button.large {
padding: 8px 30px;
}
.button.medium {
padding: 7px 21px;
}
.button.small {
padding: 7px 15px;
}
.button.mini {
padding: 3px 10px;
}
.f_left {
float: left !important;
}
.f_right {
float: right !important;
}
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
padding: 8px;
outline: none;
font-size: 13px;
font-weight: 600;
margin: 0;
width: 200px;
max-width: 100%;
display: block;
margin-bottom: 20px;
color: #2f3239;
border: 1px solid #dedede;
-moz-transition: border .25s linear, color .25s linear, background-color .25s linear;
-webkit-transition: border .25s linear, color .25s linear, background-color .25s linear;
-o-transition: border .25s linear, color .25s linear, background-color .25s linear;
transition: border .25s linear, color .25s linear, background-color .25s linear;
background: #f3f3f3;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
}
textarea {
min-height: 60px
}
select {
width: 220px;
padding: 5px;
}
label,
legend {
cursor: pointer;
display: block;
}
/* font size */
.button.mini {
font-size: 12px;
}
.button.small {
font-size: 14px;
}
.button.medium {
font-size: 16px;
}
.button.large {
font-size: 18px;
}
.flex-direction-nav li a {
font-size: 31px;
}
.padding_t_4 {
padding-top: 4px;
}
/* margin */
.margin_r_0_l_10 {
margin-right: 0 !important;
margin-left: 10px !important;
}
.margin_r_10_l_0 {
margin-right: 10px !important;
margin-left: 0 !important;
}
.margin_0 {
margin: 0 !important;
}
.margin_r_5 {
margin-right: 5px;
}
.margin_r_7 {
margin-right: 7px;
}
.margin_r_10 {
margin-right: 10px;
}
.margin_r_15 {
margin-right: 15px;
}
.margin_r_20 {
margin-right: 20px;
}
.margin_l_5 {
margin-left: 5px;
}
.margin_l_7 {
margin-left: 7px;
}
.margin_l_10 {
margin-left: 10px;
}
.margin_l_15 {
margin-left: 15px;
}
.margin_l_20 {
margin-left: 20px;
}
.margin_t_5 {
margin-top: 5px;
}
.margin_t_7 {
margin-top: 7px;
}
.margin_t_10 {
margin-top: 10px;
}
.margin_t_15 {
margin-top: 15px;
}
.margin_t_20 {
margin-top: 20px;
}
.margin_t_25 {
margin-top: 25px;
}
.margin_t_50 {
margin-top: 50px;
}
.margin_b_5 {
margin-bottom: 5px;
}
.margin_b_7 {
margin-bottom: 7px;
}
.margin_b_10 {
margin-bottom: 10px;
}
.margin_b_15 {
margin-bottom: 15px;
}
.margin_b_20 {
margin-bottom: 20px !important;
}
.margin_b_25 {
margin-bottom: 25px !important;
}
.margin_b_30 {
margin-bottom: 30px !important;
}
.margin_b_35 {
margin-bottom: 35px;
}
.margin_b_40 {
margin-bottom: 40px !important;
}
.margin_b_50 {
margin-bottom: 50px;
}
/* Font size */
.font10 {
font-size: 10px;
}
.font11 {
font-size: 11px;
}
.font12 {
font-size: 12px;
}
.font13 {
font-size: 13px;
}
.font14 {
font-size: 14px;
}
.font15 {
font-size: 15px;
}
.font16 {
font-size: 16px;
}
.font17 {
font-size: 17px;
}
.font18 {
font-size: 18px;
}
.font19 {
font-size: 19px;
}
.font20 {
font-size: 20px;
}
.font21 {
font-size: 21px;
}
.font22 {
font-size: 22px;
}
.font23 {
font-size: 23px;
}
.font24 {
font-size: 24px;
}
.font25 {
font-size: 25px;
}
.font26 {
font-size: 26px;
}
.font27 {
font-size: 27px;
}
.font28 {
font-size: 28px;
}
.font29 {
font-size: 29px;
}
.font30 {
font-size: 30px;
}
.font31 {
font-size: 31px;
}
.font32 {
font-size: 32px;
}
.font33 {
font-size: 33px;
}
.font34 {
font-size: 34px;
}
.font35 {
font-size: 35px;
}
.font36 {
font-size: 36px;
}
.font37 {
font-size: 37px;
}
.font38 {
font-size: 38px;
}
.font39 {
font-size: 39px;
}
.font40 {
font-size: 40px;
}
.font41 {
font-size: 41px;
}
.font42 {
font-size: 42px;
}
.font43 {
font-size: 43px;
}
.font44 {
font-size: 44px;
}
.font45 {
font-size: 45px;
}
.font46 {
font-size: 46px;
}
.font47 {
font-size: 47px;
}
.font48 {
font-size: 48px;
}
.font49 {
font-size: 49px;
}
.font50 {
font-size: 50px;
}
.font51 {
font-size: 51px;
}
.font52 {
font-size: 52px;
}
.font53 {
font-size: 53px;
}
.font54 {
font-size: 54px;
}
.font55 {
font-size: 55px;
}
.font56 {
font-size: 56px;
}
.font57 {
font-size: 57px;
}
.font58 {
font-size: 58px;
}
.font59 {
font-size: 59px;
}
.font60 {
font-size: 60px;
}
.font61 {
font-size: 61px;
}
.font62 {
font-size: 62px;
}
.font63 {
font-size: 63px;
}
.font64 {
font-size: 64px;
}
.font65 {
font-size: 65px;
}
.font66 {
font-size: 66px;
}
.font67 {
font-size: 67px;
}
.font68 {
font-size: 68px;
}
.font69 {
font-size: 69px;
}
.font70 {
font-size: 70px;
}
.font71 {
font-size: 71px;
}
.font72 {
font-size: 72px;
}
.font73 {
font-size: 73px;
}
.font74 {
font-size: 74px;
}
.font75 {
font-size: 75px;
}
.font76 {
font-size: 76px;
}
.font77 {
font-size: 77px;
}
.font78 {
font-size: 78px;
}
.font79 {
font-size: 79px;
}
.font80 {
font-size: 80px;
}
.font81 {
font-size: 81px;
}
.font82 {
font-size: 82px;
}
.font83 {
font-size: 83px;
}
.font84 {
font-size: 84px;
}
.font85 {
font-size: 85px;
}
.font86 {
font-size: 86px;
}
.font87 {
font-size: 87px;
}
.font88 {
font-size: 88px;
}
.font89 {
font-size: 89px;
}
.font90 {
font-size: 90px;
}
.font91 {
font-size: 91px;
}
.font92 {
font-size: 92px;
}
.font93 {
font-size: 93px;
}
.font94 {
font-size: 94px;
}
.font95 {
font-size: 95px;
}
.font96 {
font-size: 96px;
}
.font97 {
font-size: 97px;
}
.font98 {
font-size: 98px;
}
.font99 {
font-size: 99px;
}
.font100 {
font-size: 100px;
}
/* height */
.height_10 {
height: 10px !important;
}
.height_15 {
height: 15px !important;
}
.height_20 {
height: 20px !important;
}
.height_25 {
height: 25px !important;
}
.height_30 {
height: 30px;
width: 30px;
}
.height_30 i {
line-height: 30px;
}
.height_40 {
height: 40px;
width: 40px;
}
.height_40 i {
line-height: 40px;
}
.height_50 {
height: 50px;
width: 50px;
}
.height_50 i {
line-height: 50px;
}
.height_60 {
height: 60px;
width: 60px;
}
.height_60 i {
line-height: 60px;
}
.height_70 {
height: 70px;
width: 70px;
}
.height_60 i {
line-height: 60px;
}
.height_80 {
height: 80px;
width: 80px;
}
.height_80 i {
line-height: 80px;
}
.height_90 {
height: 90px;
width: 90px;
}
.height_90 i {
line-height: 90px;
}
.height_100 {
height: 100px;
width: 100px;
}
.height_100 i {
line-height: 100px;
}
.gap {
height: 30px;
clear: both;
}
/* Backgrounds */
.button.black, .button.dark_button.color, .button.color:hover {
background: #2f3239;
}
table.style th {
background: #F3F3F3;
}
blockquote, .qoute {
background: #ffe3df;
color: #2f3239;
font-size: 13px;
font-weight: 600;
}
.more {
background: #2f3239;
}
#map {
background: #e5e3df;
}
.button.normal {
background: #f1f1f1;
}
/* Colors */
.more, .more:hover, .flex-direction-nav li a, .flex-direction-nav li a:hover {
color: #fff;
}
body, a.button.normal, a, li a:hover {
color: #2f3239;
}
p a:hover {
color: #212121;
}
.qoute p {
color: #757575;
}
.default-color {
color: #2f3239;
}
#columns p {
font-size: 13px;
color: #2f3239;
}
/* borders */
hr.line {
border: solid #EAEAEA;
border-width: 1px 0 0;
clear: both;
height: 0;
}
hr {
border: solid #EAEAEA;
border-width: 1px 0 0;
clear: both;
margin: -1px 0 0 0;
height: 0;
}
blockquote {
margin: 0 0 30px 0;
padding: 20px;
border-left: 4px solid #2f3239;
}
blockquote p {
margin: 0 !important;
}
/* Aligns */
table.style th, table.style td, .flex-direction-nav li a, .t_center {
text-align: center;
}
.t_center {
margin-right: auto;
margin-left: auto;
}
span.t_center {
display: block;
}
.t_left {
text-align: left;
}
.t_right {
text-align: right;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans", Arial, sans-serif;
font-weight: bold;
text-transform: none;
margin-top: 0;
margin-bottom: 18px;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
font-weight: inherit;
}
h1 {
font-size: 30px;
line-height: 30px;
}
h2 {
font-size: 24px;
line-height: 28px;
}
h3 {
font-size: 18px;
line-height: 24px;
}
h4 {
font-size: 16px;
line-height: 22px;
}
h5 {
font-size: 14px;
line-height: 20px;
}
h6 {
font-size: 13px;
line-height: 18px;
}
.box_icon h1, .box_icon h2, .box_icon h3, .box_icon h4, .box_icon h5, .box_icon h6 {
margin-bottom: 10px;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
abbr {
border-bottom: 1px dashed;
cursor: help;
}
address,
cite,
em {
font-style: italic
}
dfn {
border-bottom: 1px dashed;
font-style: italic;
}
big {
font-size: large
}
small,
sub,
sup {
position: relative;
font-size: 11px;
vertical-align: baseline;
}
sub {
top: 3px
}
sup {
bottom: 3px
}
strong,
b {
font-weight: bold;
}
mark {
display: inline;
padding: 2px 4px;
background-color: #f6f2d6;
color: #7c6d08;
}
mark.dark {
background-color: #333;
color: #ffffff;
}
.table-style-1 table, .table-style-2 table {
margin: 0 0 30px 0;
text-align: left;
border: 1px solid #dbdbdb;
width: 100%;
}
.table-style-1 tr:nth-child(even), .table-style-2 tr:nth-child(even) {
background: #ffffff;
}
.table-style-1 tr:nth-child(odd), .table-style-2 tr:nth-child(odd) {
background: #ffffff;
}
.table-style-1 th,
.table-style-1 td,
.table-style-2 th,
.table-style-2 td {
padding: 10px 20px;
vertical-align: middle;
border: 1px solid #e2e2e2;
}
.table-style-1 tr:hover, .table-style-2 tr:hover {
background: #fafafa;
}
.table-style-1 thead th, .table-style-2 thead th {
color: #333;
font-size: 14px;
font-weight: 700;
border: none;
border: 1px solid #dbdbdb;
padding: 15px 20px;
background-color: #F9F9F9;
}
/* Links */
a, .button, .question-type, .post-type {
-webkit-transition: color 0.1s linear, border 0.1s linear, opacity 0.1s linear, background-color 0.1s linear;
-moz-transition: color 0.1s linear, border 0.1s linear, opacity 0.1s linear, background-color 0.1s linear;
-ms-transition: color 0.1s linear, border 0.1s linear, opacity 0.1s linear, background-color 0.1s linear;
-o-transition: color 0.1s linear, border 0.1s linear, opacity 0.1s linear, background-color 0.1s linear;
transition: color 0.1s linear, border 0.1s linear, opacity 0.1s linear, background-color 0.1s linear;
}
.item img {
-webkit-transition: all 0.4s ease-in;
-moz-transition: all 0.4s ease-in;
-ms-transition: all 0.4s ease-in;
-o-transition: all 0.4s ease-in;
transition: all 0.4s ease-in;
}
a {
text-decoration: none;
}
/* Images */
img {
max-width: 100%;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
height: auto;
}
/* Column */
.one_half, .one_third, .two_third, .three_fourth, .two_fourth, .one_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .two_sixth, .three_sixth, .four_sixth, .five_sixth {
position: relative;
margin-right: 4%;
float: left;
}
.one_half {
width: 48%;
}
.one_third {
width: 30.6666%;
}
.two_third {
width: 65.3332%;
}
.one_fourth {
width: 23.5%;
margin-right: 2%;
}
.two_fourth {
width: 49%;
margin-right: 2%;
}
.three_fourth {
width: 74.5%;
margin-right: 2%;
}
.one_fifth {
width: 16.8%;
}
.two_fifth {
width: 37.6%;
}
.three_fifth {
width: 58.4%;
}
.four_fifth {
width: 79.2%;
}
.one_sixth {
width: 13.3333%;
}
.two_sixth {
width: 30.6666%;
}
.three_sixth {
width: 47.9998%;
}
.four_sixth {
width: 65.3332%;
}
.five_sixth {
width: 82.6665%;
}
.last {
margin-right: 0 !important;
clear: right;
}
.ul_list-icon-glass ul li i:before, .ul_list ul li i.icon-glass:before {
content: "\f000"
}
.ul_list-icon-music ul li i:before, .ul_list ul li i.icon-music:before {
content: "\f001"
}
.ul_list-icon-search ul li i:before, .ul_list ul li i.icon-search:before {
content: "\f002"
}
.ul_list-icon-envelope ul li i:before, .ul_list ul li i.icon-envelope:before {
content: "\f003"
}
.ul_list-icon-heart ul li i:before, .ul_list ul li i.icon-heart:before {
content: "\f004"
}
.ul_list-icon-star ul li i:before, .ul_list ul li i.icon-star:before {
content: "\f005"
}
.ul_list-icon-star-empty ul li i:before, .ul_list ul li i.icon-star-empty:before {
content: "\f006"
}
.ul_list-icon-user ul li i:before, .ul_list ul li i.icon-user:before {
content: "\f007"
}
.ul_list-icon-film ul li i:before, .ul_list ul li i.icon-film:before {
content: "\f008"
}
.ul_list-icon-th-large ul li i:before, .ul_list ul li i.icon-th-large:before {
content: "\f009"
}
.ul_list-icon-th ul li i:before, .ul_list ul li i.icon-th:before {
content: "\f00a"
}
.ul_list-icon-th-list ul li i:before, .ul_list ul li i.icon-th-list:before {
content: "\f00b"
}
.ul_list-icon-ok ul li i:before, .ul_list ul li i.icon-ok:before {
content: "\f00c"
}
.ul_list-icon-remove ul li i:before, .ul_list ul li i.icon-remove:before {
content: "\f00d"
}
.ul_list-icon-zoom-in ul li i:before, .ul_list ul li i.icon-zoom-in:before {
content: "\f00e"
}
.ul_list-icon-zoom-out ul li i:before, .ul_list ul li i.icon-zoom-out:before {
content: "\f010"
}
.ul_list-icon-off ul li i:before, .ul_list ul li i.icon-off:before {
content: "\f011"
}
.ul_list-icon-signal ul li i:before, .ul_list ul li i.icon-signal:before {
content: "\f012"
}
.ul_list-icon-cog ul li i:before, .ul_list ul li i.icon-cog:before {
content: "\f013"
}
.ul_list-icon-trash ul li i:before, .ul_list ul li i.icon-trash:before {
content: "\f014"
}
.ul_list-icon-home ul li i:before, .ul_list ul li i.icon-home:before {
content: "\f015"
}
.ul_list-icon-file ul li i:before, .ul_list ul li i.icon-file:before {
content: "\f016"
}
.ul_list-icon-time ul li i:before, .ul_list ul li i.icon-time:before {
content: "\f017"
}
.ul_list-icon-road ul li i:before, .ul_list ul li i.icon-road:before {
content: "\f018"
}
.ul_list-icon-download-alt ul li i:before, .ul_list ul li i.icon-download-alt:before {
content: "\f019"
}
.ul_list-icon-download ul li i:before, .ul_list ul li i.icon-download:before {
content: "\f01a"
}
.ul_list-icon-upload ul li i:before, .ul_list ul li i.icon-upload:before {
content: "\f01b"
}
.ul_list-icon-inbox ul li i:before, .ul_list ul li i.icon-inbox:before {
content: "\f01c"
}
.ul_list-icon-play-circle ul li i:before, .ul_list ul li i.icon-play-circle:before {
content: "\f01d"
}
.ul_list-icon-repeat ul li i:before, .ul_list ul li i.icon-repeat:before, .ul_list-icon-rotate-right ul li i:before, .ul_list ul li i.icon-rotate-right:before {
content: "\f01e"
}
.ul_list-icon-refresh ul li i:before, .ul_list ul li i.icon-refresh:before {
content: "\f021"
}
.ul_list-icon-list-alt ul li i:before, .ul_list ul li i.icon-list-alt:before {
content: "\f022"
}
.ul_list-icon-lock ul li i:before, .ul_list ul li i.icon-lock:before {
content: "\f023"
}
.ul_list-icon-flag ul li i:before, .ul_list ul li i.icon-flag:before {
content: "\f024"
}
.ul_list-icon-headphones ul li i:before, .ul_list ul li i.icon-headphones:before {
content: "\f025"
}
.ul_list-icon-volume-off ul li i:before, .ul_list ul li i.icon-volume-off:before {
content: "\f026"
}
.ul_list-icon-volume-down ul li i:before, .ul_list ul li i.icon-volume-down:before {
content: "\f027"
}
.ul_list-icon-volume-up ul li i:before, .ul_list ul li i.icon-volume-up:before {
content: "\f028"
}
.ul_list-icon-qrcode ul li i:before, .ul_list ul li i.icon-qrcode:before {
content: "\f029"
}
.ul_list-icon-barcode ul li i:before, .ul_list ul li i.icon-barcode:before {
content: "\f02a"
}
.ul_list-icon-tag ul li i:before, .ul_list ul li i.icon-tag:before {
content: "\f02b"
}
.ul_list-icon-tags ul li i:before, .ul_list ul li i.icon-tags:before {
content: "\f02c"
}
.ul_list-icon-book ul li i:before, .ul_list ul li i.icon-book:before {
content: "\f02d"
}
.ul_list-icon-bookmark ul li i:before, .ul_list ul li i.icon-bookmark:before {
content: "\f02e"
}
.ul_list-icon-print ul li i:before, .ul_list ul li i.icon-print:before {
content: "\f02f"
}
.ul_list-icon-camera ul li i:before, .ul_list ul li i.icon-camera:before {
content: "\f030"
}
.ul_list-icon-font ul li i:before, .ul_list ul li i.icon-font:before {
content: "\f031"
}
.ul_list-icon-bold ul li i:before, .ul_list ul li i.icon-bold:before {
content: "\f032"
}
.ul_list-icon-italic ul li i:before, .ul_list ul li i.icon-italic:before {
content: "\f033"
}
.ul_list-icon-text-height ul li i:before, .ul_list ul li i.icon-text-height:before {
content: "\f034"
}
.ul_list-icon-text-width ul li i:before, .ul_list ul li i.icon-text-width:before {
content: "\f035"
}
.ul_list-icon-align-left ul li i:before, .ul_list ul li i.icon-align-left:before {
content: "\f036"
}
.ul_list-icon-align-center ul li i:before, .ul_list ul li i.icon-align-center:before {
content: "\f037"
}
.ul_list-icon-align-right ul li i:before, .ul_list ul li i.icon-align-right:before {
content: "\f038"
}
.ul_list-icon-align-justify ul li i:before, .ul_list ul li i.icon-align-justify:before {
content: "\f039"
}
.ul_list-icon-list ul li i:before, .ul_list ul li i.icon-list:before {
content: "\f03a"
}
.ul_list-icon-indent-left ul li i:before, .ul_list ul li i.icon-indent-left:before {
content: "\f03b"
}
.ul_list-icon-indent-right ul li i:before, .ul_list ul li i.icon-indent-right:before {
content: "\f03c"
}
.ul_list-icon-facetime-video ul li i:before, .ul_list ul li i.icon-facetime-video:before {
content: "\f03d"
}
.ul_list-icon-picture ul li i:before, .ul_list ul li i.icon-picture:before {
content: "\f03e"
}
.ul_list-icon-pencil ul li i:before, .ul_list ul li i.icon-pencil:before {
content: "\f040"
}
.ul_list-icon-map-marker ul li i:before, .ul_list ul li i.icon-map-marker:before {
content: "\f041"
}
.ul_list-icon-adjust ul li i:before, .ul_list ul li i.icon-adjust:before {
content: "\f042"
}
.ul_list-icon-tint ul li i:before, .ul_list ul li i.icon-tint:before {
content: "\f043"
}
.ul_list-icon-edit ul li i:before, .ul_list ul li i.icon-edit:before {
content: "\f044"
}
.ul_list-icon-share ul li i:before, .ul_list ul li i.icon-share:before {
content: "\f045"
}
.ul_list-icon-check ul li i:before, .ul_list ul li i.icon-check:before {
content: "\f046"
}
.ul_list-icon-move ul li i:before, .ul_list ul li i.icon-move:before {
content: "\f047"
}
.ul_list-icon-step-backward ul li i:before, .ul_list ul li i.icon-step-backward:before {
content: "\f048"
}
.ul_list-icon-fast-backward ul li i:before, .ul_list ul li i.icon-fast-backward:before {
content: "\f049"
}
.ul_list-icon-backward ul li i:before, .ul_list ul li i.icon-backward:before {
content: "\f04a"
}
.ul_list-icon-play ul li i:before, .ul_list ul li i.icon-play:before {
content: "\f04b"
}
.ul_list-icon-pause ul li i:before, .ul_list ul li i.icon-pause:before {
content: "\f04c"
}
.ul_list-icon-stop ul li i:before, .ul_list ul li i.icon-stop:before {
content: "\f04d"
}
.ul_list-icon-forward ul li i:before, .ul_list ul li i.icon-forward:before {
content: "\f04e"
}
.ul_list-icon-fast-forward ul li i:before, .ul_list ul li i.icon-fast-forward:before {
content: "\f050"
}
.ul_list-icon-step-forward ul li i:before, .ul_list ul li i.icon-step-forward:before {
content: "\f051"
}
.ul_list-icon-eject ul li i:before, .ul_list ul li i.icon-eject:before {
content: "\f052"
}
.ul_list-icon-chevron-left ul li i:before, .ul_list ul li i.icon-chevron-left:before {
content: "\f053"
}
.ul_list-icon-chevron-right ul li i:before, .ul_list ul li i.icon-chevron-right:before {
content: "\f054"
}
.ul_list-icon-plus-sign ul li i:before, .ul_list ul li i.icon-plus-sign:before {
content: "\f055"
}
.ul_list-icon-minus-sign ul li i:before, .ul_list ul li i.icon-minus-sign:before {
content: "\f056"
}
.ul_list-icon-remove-sign ul li i:before, .ul_list ul li i.icon-remove-sign:before {
content: "\f057"
}
.ul_list-icon-ok-sign ul li i:before, .ul_list ul li i.icon-ok-sign:before {
content: "\f058"
}
.ul_list-icon-question-sign ul li i:before, .ul_list ul li i.icon-question-sign:before {
content: "\f059"
}
.ul_list-icon-info-sign ul li i:before, .ul_list ul li i.icon-info-sign:before {
content: "\f05a"
}
.ul_list-icon-screenshot ul li i:before, .ul_list ul li i.icon-screenshot:before {
content: "\f05b"
}
.ul_list-icon-remove-circle ul li i:before, .ul_list ul li i.icon-remove-circle:before {
content: "\f05c"
}
.ul_list-icon-ok-circle ul li i:before, .ul_list ul li i.icon-ok-circle:before {
content: "\f05d"
}
.ul_list-icon-ban-circle ul li i:before, .ul_list ul li i.icon-ban-circle:before {
content: "\f05e"
}
.ul_list-icon-arrow-left ul li i:before, .ul_list ul li i.icon-arrow-left:before {
content: "\f060"
}
.ul_list-icon-arrow-right ul li i:before, .ul_list ul li i.icon-arrow-right:before {
content: "\f061"
}
.ul_list-icon-arrow-up ul li i:before, .ul_list ul li i.icon-arrow-up:before {
content: "\f062"
}
.ul_list-icon-arrow-down ul li i:before, .ul_list ul li i.icon-arrow-down:before {
content: "\f063"
}
.ul_list-icon-share-alt ul li i:before, .ul_list ul li i.icon-icon-share-alt:before, .ul_list-icon-mail-forward ul li i:before, .ul_list ul li i.icon-mail-forward:before {
content: "\f064"
}
.ul_list-icon-resize-full ul li i:before, .ul_list ul li i.icon-resize-full:before {
content: "\f065"
}
.ul_list-icon-resize-small ul li i:before, .ul_list ul li i.icon-resize-small:before {
content: "\f066"
}
.ul_list-icon-plus ul li i:before, .ul_list ul li i.icon-plus:before {
content: "\f067"
}
.ul_list-icon-minus ul li i:before, .ul_list ul li i.icon-minus:before {
content: "\f068"
}
.ul_list-icon-asterisk ul li i:before, .ul_list ul li i.icon-asterisk:before {
content: "\f069"
}
.ul_list-icon-exclamation-sign ul li i:before, .ul_list ul li i.icon-exclamation-sign:before {
content: "\f06a"
}
.ul_list-icon-gift ul li i:before, .ul_list ul li i.icon-gift:before {
content: "\f06b"
}
.ul_list-icon-leaf ul li i:before, .ul_list ul li i.icon-leaf:before {
content: "\f06c"
}
.ul_list-icon-fire ul li i:before, .ul_list ul li i.icon-fire:before {
content: "\f06d"
}
.ul_list-icon-eye-open ul li i:before, .ul_list ul li i.icon-eye-open:before {
content: "\f06e"
}
.ul_list-icon-eye-close ul li i:before, .ul_list ul li i.icon-eye-close:before {
content: "\f070"
}
.ul_list-icon-warning-sign ul li i:before, .ul_list ul li i.icon-warning-sign:before {
content: "\f071"
}
.ul_list-icon-plane ul li i:before, .ul_list ul li i.icon-plane:before {
content: "\f072"
}
.ul_list-icon-calendar ul li i:before, .ul_list ul li i.icon-calendar:before {
content: "\f073"
}
.ul_list-icon-random ul li i:before, .ul_list ul li i.icon-random:before {
content: "\f074"
}
.ul_list-icon-comment ul li i:before, .ul_list ul li i.icon-comment:before {
content: "\f075"
}
.ul_list-icon-magnet ul li i:before, .ul_list ul li i.icon-magnet:before {
content: "\f076"
}
.ul_list-icon-chevron-up ul li i:before, .ul_list ul li i.icon-chevron-up:before {
content: "\f077"
}
.ul_list-icon-chevron-down ul li i:before, .ul_list ul li i.icon-chevron-down:before {
content: "\f078"
}
.ul_list-icon-retweet ul li i:before, .ul_list ul li i.icon-retweet:before {
content: "\f079"
}
.ul_list-icon-shopping-cart ul li i:before, .ul_list ul li i.icon-shopping-cart:before {
content: "\f07a"
}
.ul_list-icon-folder-close ul li i:before, .ul_list ul li i.icon-folder-close:before {
content: "\f07b"
}
.ul_list-icon-folder-open ul li i:before, .ul_list ul li i.icon-folder-open:before {
content: "\f07c"
}
.ul_list-icon-resize-vertical ul li i:before, .ul_list ul li i.icon-resize-vertical:before {
content: "\f07d"
}
.ul_list-icon-resize-horizontal ul li i:before, .ul_list ul li i.icon-resize-horizontal:before {
content: "\f07e"
}
.ul_list-icon-bar-chart ul li i:before, .ul_list ul li i.icon-bar-chart:before {
content: "\f080"
}
.ul_list-icon-twitter-sign ul li i:before, .ul_list ul li i.icon-twitter-sign:before {
content: "\f081"
}
.ul_list-icon-facebook-sign ul li i:before, .ul_list ul li i.icon-facebook-sign:before {
content: "\f082"
}
.ul_list-icon-camera-retro ul li i:before, .ul_list ul li i.icon-camera-retro:before {
content: "\f083"
}
.ul_list-icon-key ul li i:before, .ul_list ul li i.icon-key:before {
content: "\f084"
}
.ul_list-icon-cogs ul li i:before, .ul_list ul li i.icon-cogs:before {
content: "\f085"
}
.ul_list-icon-comments ul li i:before, .ul_list ul li i.icon-comments:before {
content: "\f086"
}
.ul_list-icon-thumbs-up ul li i:before, .ul_list ul li i.icon-thumbs-up:before {
content: "\f087"
}
.ul_list-icon-thumbs-down ul li i:before, .ul_list ul li i.icon-thumbs-down:before {
content: "\f088"
}
.ul_list-icon-star-half ul li i:before, .ul_list ul li i.icon-star-half:before {
content: "\f089"
}
.ul_list-icon-heart-empty ul li i:before, .ul_list ul li i.icon-heart-empty:before {
content: "\f08a"
}
.ul_list-icon-signout ul li i:before, .ul_list ul li i.icon-signout:before {
content: "\f08b"
}
.ul_list-icon-linkedin-sign ul li i:before, .ul_list ul li i.icon-linkedin-sign:before {
content: "\f08c"
}
.ul_list-icon-pushpin ul li i:before, .ul_list ul li i.icon-pushpin:before {
content: "\f08d"
}
.ul_list-icon-external-link ul li i:before, .ul_list ul li i.icon-external-link:before {
content: "\f08e"
}
.ul_list-icon-signin ul li i:before, .ul_list ul li i.icon-signin:before {
content: "\f090"
}
.ul_list-icon-trophy ul li i:before, .ul_list ul li i.icon-trophy:before {
content: "\f091"
}
.ul_list-icon-github-sign ul li i:before, .ul_list ul li i.icon-github-sign:before {
content: "\f092"
}
.ul_list-icon-upload-alt ul li i:before, .ul_list ul li i.icon-upload-alt:before {
content: "\f093"
}
.ul_list-icon-lemon ul li i:before, .ul_list ul li i.icon-lemon:before {
content: "\f094"
}
.ul_list-icon-phone ul li i:before, .ul_list ul li i.icon-phone:before {
content: "\f095"
}
.ul_list-icon-check-empty ul li i:before, .ul_list ul li i.icon-check-empty:before {
content: "\f096"
}
.ul_list-icon-bookmark-empty ul li i:before, .ul_list ul li i.icon-bookmark-empty:before {
content: "\f097"
}
.ul_list-icon-phone-sign ul li i:before, .ul_list ul li i.icon-phone-sign:before {
content: "\f098"
}
.ul_list-icon-twitter ul li i:before, .ul_list ul li i.icon-twitter:before {
content: "\f099"
}
.ul_list-icon-facebook ul li i:before, .ul_list ul li i.icon-facebook:before {
content: "\f09a"
}
.ul_list-icon-github ul li i:before, .ul_list ul li i.icon-github:before {
content: "\f09b"
}
.ul_list-icon-unlock ul li i:before, .ul_list ul li i.icon-unlock:before {
content: "\f09c"
}
.ul_list-icon-credit-card ul li i:before, .ul_list ul li i.icon-credit-card:before {
content: "\f09d"
}
.ul_list-icon-rss ul li i:before, .ul_list ul li i.icon-rss:before {
content: "\f09e"
}
.ul_list-icon-hdd ul li i:before, .ul_list ul li i.icon-hdd:before {
content: "\f0a0"
}
.ul_list-icon-bullhorn ul li i:before, .ul_list ul li i.icon-bullhorn:before {
content: "\f0a1"
}
.ul_list-icon-bell ul li i:before, .ul_list ul li i.icon-bell:before {
content: "\f0a2"
}
.ul_list-icon-certificate ul li i:before, .ul_list ul li i.icon-certificate:before {
content: "\f0a3"
}
.ul_list-icon-hand-right ul li i:before, .ul_list ul li i.icon-hand-right:before {
content: "\f0a4"
}
.ul_list-icon-hand-left ul li i:before, .ul_list ul li i.icon-hand-left:before {
content: "\f0a5"
}
.ul_list-icon-hand-up ul li i:before, .ul_list ul li i.icon-hand-up:before {
content: "\f0a6"
}
.ul_list-icon-hand-down ul li i:before, .ul_list ul li i.icon-hand-down:before {
content: "\f0a7"
}
.ul_list-icon-circle-arrow-left ul li i:before, .ul_list ul li i.icon-circle-arrow-left:before {
content: "\f0a8"
}
.ul_list-icon-circle-arrow-right ul li i:before, .ul_list ul li i.icon-circle-arrow-right:before {
content: "\f0a9"
}
.ul_list-icon-circle-arrow-up ul li i:before, .ul_list ul li i.icon-circle-arrow-up:before {
content: "\f0aa"
}
.ul_list-icon-circle-arrow-down ul li i:before, .ul_list ul li i.icon-circle-arrow-down:before {
content: "\f0ab"
}
.ul_list-icon-globe ul li i:before, .ul_list ul li i.icon-globe:before {
content: "\f0ac"
}
.ul_list-icon-wrench ul li i:before, .ul_list ul li i.icon-wrench:before {
content: "\f0ad"
}
.ul_list-icon-tasks ul li i:before, .ul_list ul li i.icon-tasks:before {
content: "\f0ae"
}
.ul_list-icon-filter ul li i:before, .ul_list ul li i.icon-filter:before {
content: "\f0b0"
}
.ul_list-icon-briefcase ul li i:before, .ul_list ul li i.icon-briefcase:before {
content: "\f0b1"
}
.ul_list-icon-fullscreen ul li i:before, .ul_list ul li i.icon-fullscreen:before {
content: "\f0b2"
}
.ul_list-icon-group ul li i:before, .ul_list ul li i.icon-group:before {
content: "\f0c0"
}
.ul_list-icon-link ul li i:before, .ul_list ul li i.icon-link:before {
content: "\f0c1"
}
.ul_list-icon-cloud ul li i:before, .ul_list ul li i.icon-cloud:before {
content: "\f0c2"
}
.ul_list-icon-beaker ul li i:before, .ul_list ul li i.icon-beaker:before {
content: "\f0c3"
}
.ul_list-icon-cut ul li i:before, .ul_list ul li i.icon-cut:before {
content: "\f0c4"
}
.ul_list-icon-copy ul li i:before, .ul_list ul li i.icon-copy:before {
content: "\f0c5"
}
.ul_list-icon-paper-clip ul li i:before, .ul_list ul li i.icon-paper-clip:before {
content: "\f0c6"
}
.ul_list-icon-save ul li i:before, .ul_list ul li i.icon-save:before {
content: "\f0c7"
}
.ul_list-icon-sign-blank ul li i:before, .ul_list ul li i.icon-sign-blank:before {
content: "\f0c8"
}
.ul_list-icon-reorder ul li i:before, .ul_list ul li i.icon-reorder:before {
content: "\f0c9"
}
.ul_list-icon-list-ul ul li i:before, .ul_list ul li i.icon-list-ul:before {
content: "\f0ca"
}
.ul_list-icon-list-ol ul li i:before, .ul_list ul li i.icon-list-ol:before {
content: "\f0cb"
}
.ul_list-icon-strikethrough ul li i:before, .ul_list ul li i.icon-strikethrough:before {
content: "\f0cc"
}
.ul_list-icon-underline ul li i:before, .ul_list ul li i.icon-underline:before {
content: "\f0cd"
}
.ul_list-icon-table ul li i:before, .ul_list ul li i.icon-table:before {
content: "\f0ce"
}
.ul_list-icon-magic ul li i:before, .ul_list ul li i.icon-magic:before {
content: "\f0d0"
}
.ul_list-icon-truck ul li i:before, .ul_list ul li i.icon-truck:before {
content: "\f0d1"
}
.ul_list-icon-pinterest ul li i:before, .ul_list ul li i.icon-pinterest:before {
content: "\f0d2"
}
.ul_list-icon-pinterest-sign ul li i:before, .ul_list ul li i.icon-pinterest-sign:before {
content: "\f0d3"
}
.ul_list-icon-google-plus-sign ul li i:before, .ul_list ul li i.icon-google-plus-sign:before {
content: "\f0d4"
}
.ul_list-icon-google-plus ul li i:before, .ul_list ul li i.icon-google-plus:before {
content: "\f0d5"
}
.ul_list-icon-money ul li i:before, .ul_list ul li i.icon-money:before {
content: "\f0d6"
}
.ul_list-icon-caret-down ul li i:before, .ul_list ul li i.icon-caret-down:before {
content: "\f0d7"
}
.ul_list-icon-caret-up ul li i:before, .ul_list ul li i.icon-caret-up:before {
content: "\f0d8"
}
.ul_list-icon-caret-left ul li i:before, .ul_list ul li i.icon-caret-left:before {
content: "\f0d9"
}
.ul_list-icon-caret-right ul li i:before, .ul_list ul li i.icon-caret-right:before {
content: "\f0da"
}
.ul_list-icon-columns ul li i:before, .ul_list ul li i.icon-columns:before {
content: "\f0db"
}
.ul_list-icon-sort ul li i:before, .ul_list ul li i.icon-sort:before {
content: "\f0dc"
}
.ul_list-icon-sort-down ul li i:before, .ul_list ul li i.icon-sort-down:before {
content: "\f0dd"
}
.ul_list-icon-sort-up ul li i:before, .ul_list ul li i.icon-sort-up:before {
content: "\f0de"
}
.ul_list-icon-envelope-alt ul li i:before, .ul_list ul li i.icon-envelope-alt:before {
content: "\f0e0"
}
.ul_list-icon-linkedin ul li i:before, .ul_list ul li i.icon-linkedin:before {
content: "\f0e1"
}
.ul_list-icon-undo ul li i:before, .ul_list ul li i.icon-undo:before, .ul_list-icon-rotate-left ul li i:before, .ul_list ul li i.icon-rotate-left:before {
content: "\f0e2"
}
.ul_list-icon-legal ul li i:before, .ul_list ul li i.icon-legal:before {
content: "\f0e3"
}
.ul_list-icon-dashboard ul li i:before, .ul_list ul li i.icon-dashboard:before {
content: "\f0e4"
}
.ul_list-icon-comment-alt ul li i:before, .ul_list ul li i.icon-comment-alt:before {
content: "\f0e5"
}
.ul_list-icon-comments-alt ul li i:before, .ul_list ul li i.icon-comments-alt:before {
content: "\f0e6"
}
.ul_list-icon-bolt ul li i:before, .ul_list ul li i.icon-bolt:before {
content: "\f0e7"
}
.ul_list-icon-sitemap ul li i:before, .ul_list ul li i.icon-sitemap:before {
content: "\f0e8"
}
.ul_list-icon-umbrella ul li i:before, .ul_list ul li i.icon-umbrella:before {
content: "\f0e9"
}
.ul_list-icon-paste ul li i:before, .ul_list ul li i.icon-paste:before {
content: "\f0ea"
}
.ul_list-icon-lightbulb ul li i:before, .ul_list ul li i.icon-lightbulb:before {
content: "\f0eb"
}
.ul_list-icon-exchange ul li i:before, .ul_list ul li i.icon-exchange:before {
content: "\f0ec"
}
.ul_list-icon-cloud-download ul li i:before, .ul_list ul li i.icon-cloud-download:before {
content: "\f0ed"
}
.ul_list-icon-cloud-upload ul li i:before, .ul_list ul li i.icon-cloud-upload:before {
content: "\f0ee"
}
.ul_list-icon-user-md ul li i:before, .ul_list ul li i.icon-user-md:before {
content: "\f0f0"
}
.ul_list-icon-stethoscope ul li i:before, .ul_list ul li i.icon-stethoscope:before {
content: "\f0f1"
}
.ul_list-icon-suitcase ul li i:before, .ul_list ul li i.icon-suitcase:before {
content: "\f0f2"
}
.ul_list-icon-bell-alt ul li i:before, .ul_list ul li i.icon-bell-alt:before {
content: "\f0f3"
}
.ul_list-icon-coffee ul li i:before, .ul_list ul li i.icon-coffee:before {
content: "\f0f4"
}
.ul_list-icon-food ul li i:before, .ul_list ul li i.icon-food:before {
content: "\f0f5"
}
.ul_list-icon-file-alt ul li i:before, .ul_list ul li i.icon-file-alt:before {
content: "\f0f6"
}
.ul_list-icon-building ul li i:before, .ul_list ul li i.icon-building:before {
content: "\f0f7"
}
.ul_list-icon-hospital ul li i:before, .ul_list ul li i.icon-hospital:before {
content: "\f0f8"
}
.ul_list-icon-ambulance ul li i:before, .ul_list ul li i.icon-ambulance:before {
content: "\f0f9"
}
.ul_list-icon-medkit ul li i:before, .ul_list ul li i.icon-medkit:before {
content: "\f0fa"
}
.ul_list-icon-fighter-jet ul li i:before, .ul_list ul li i.icon-fighter-jet:before {
content: "\f0fb"
}
.ul_list-icon-beer ul li i:before, .ul_list ul li i.icon-beer:before {
content: "\f0fc"
}
.ul_list-icon-h-sign ul li i:before, .ul_list ul li i.icon-h-sign:before {
content: "\f0fd"
}
.ul_list-icon-plus-sign-alt ul li i:before, .ul_list ul li i.icon-plus-sign-alt:before {
content: "\f0fe"
}
.ul_list-icon-double-angle-left ul li i:before, .ul_list ul li i.icon-double-angle-left:before {
content: "\f100"
}
.ul_list-icon-double-angle-right ul li i:before, .ul_list ul li i.icon-double-angle-right:before {
content: "\f101"
}
.ul_list-icon-double-angle-up ul li i:before, .ul_list ul li i.icon-double-angle-up:before {
content: "\f102"
}
.ul_list-icon-double-angle-down ul li i:before, .ul_list ul li i.icon-double-angle-down:before {
content: "\f103"
}
.ul_list-icon-angle-left ul li i:before, .ul_list ul li i.icon-angle-left:before {
content: "\f104"
}
.ul_list-icon-angle-right ul li i:before, .ul_list ul li i.icon-angle-right:before {
content: "\f105"
}
.ul_list-icon-angle-up ul li i:before, .ul_list ul li i.icon-angle-up:before {
content: "\f106"
}
.ul_list-icon-angle-down ul li i:before, .ul_list ul li i.icon-angle-down:before {
content: "\f107"
}
.ul_list-icon-desktop ul li i:before, .ul_list ul li i.icon-desktop:before {
content: "\f108"
}
.ul_list-icon-laptop ul li i:before, .ul_list ul li i.icon-laptop:before {
content: "\f109"
}
.ul_list-icon-tablet ul li i:before, .ul_list ul li i.icon-tablet:before {
content: "\f10a"
}
.ul_list-icon-mobile-phone ul li i:before, .ul_list ul li i.icon-mobile-phone:before {
content: "\f10b"
}
.ul_list-icon-circle-blank ul li i:before, .ul_list ul li i.icon-circle-blank:before {
content: "\f10c"
}
.ul_list-icon-quote-left ul li i:before, .ul_list ul li i.icon-quote-left:before {
content: "\f10d"
}
.ul_list-icon-quote-right ul li i:before, .ul_list ul li i.icon-quote-right:before {
content: "\f10e"
}
.ul_list-icon-spinner ul li i:before, .ul_list ul li i.icon-spinner:before {
content: "\f110"
}
.ul_list-icon-circle ul li i:before, .ul_list ul li i.icon-circle:before {
content: "\f111"
}
.ul_list-icon-reply ul li i:before, .ul_list ul li i.icon-reply:before, .ul_list-icon-mail-reply ul li i:before, .ul_list ul li i.icon-mail-reply:before {
content: "\f112"
}
.ul_list-icon-folder-close-alt ul li i:before, .ul_list ul li i.icon-folder-close-alt:before {
content: "\f114"
}
.ul_list-icon-folder-open-alt ul li i:before, .ul_list ul li i.icon-folder-open-alt:before {
content: "\f115"
}
.ul_list-icon-expand-alt ul li i:before, .ul_list ul li i.icon-expand-alt:before {
content: "\f116"
}
.ul_list-icon-collapse-alt ul li i:before, .ul_list ul li i.icon-collapse-alt:before {
content: "\f117"
}
.ul_list-icon-smile ul li i:before, .ul_list ul li i.icon-smile:before {
content: "\f118"
}
.ul_list-icon-frown ul li i:before, .ul_list ul li i.icon-frown:before {
content: "\f119"
}
.ul_list-icon-meh ul li i:before, .ul_list ul li i.icon-meh:before {
content: "\f11a"
}
.ul_list-icon-gamepad ul li i:before, .ul_list ul li i.icon-gamepad:before {
content: "\f11b"
}
.ul_list-icon-keyboard ul li i:before, .ul_list ul li i.icon-keyboard:before {
content: "\f11c"
}
.ul_list-icon-flag-alt ul li i:before, .ul_list ul li i.icon-flag-alt:before {
content: "\f11d"
}
.ul_list-icon-flag-checkered ul li i:before, .ul_list ul li i.icon-flag-checkered:before {
content: "\f11e"
}
.ul_list-icon-terminal ul li i:before, .ul_list ul li i.icon-terminal:before {
content: "\f120"
}
.ul_list-icon-code ul li i:before, .ul_list ul li i.icon-code:before {
content: "\f121"
}
.ul_list-icon-reply-all ul li i:before, .ul_list ul li i.icon-reply-all:before {
content: "\f122"
}
.ul_list-icon-mail-reply-all ul li i:before, .ul_list ul li i.icon-mail-reply-all:before {
content: "\f122"
}
.ul_list-icon-star-half-full ul li i:before, .ul_list ul li i.icon-star-half-full:before, .ul_list-icon-star-half-empty ul li i:before, .ul_list ul li i.icon-star-half-empty:before {
content: "\f123"
}
.ul_list-icon-location-arrow ul li i:before, .ul_list ul li i.icon-location-arrow:before {
content: "\f124"
}
.ul_list-icon-crop ul li i:before, .ul_list ul li i.icon-crop:before {
content: "\f125"
}
.ul_list-icon-code-fork ul li i:before, .ul_list ul li i.icon-code-fork:before {
content: "\f126"
}
.ul_list-icon-unlink ul li i:before, .ul_list ul li i.icon-unlink:before {
content: "\f127"
}
.ul_list-icon-question ul li i:before, .ul_list ul li i.icon-question:before {
content: "\f128"
}
.ul_list-icon-info ul li i:before, .ul_list ul li i.icon-info:before {
content: "\f129"
}
.ul_list-icon-exclamation ul li i:before, .ul_list ul li i.icon-exclamation:before {
content: "\f12a"
}
.ul_list-icon-superscript ul li i:before, .ul_list ul li i.icon-superscript:before {
content: "\f12b"
}
.ul_list-icon-subscript ul li i:before, .ul_list ul li i.icon-subscript:before {
content: "\f12c"
}
.ul_list-icon-eraser ul li i:before, .ul_list ul li i.icon-eraser:before {
content: "\f12d"
}
.ul_list-icon-puzzle-piece ul li i:before, .ul_list ul li i.icon-puzzle-piece:before {
content: "\f12e"
}
.ul_list-icon-microphone ul li i:before, .ul_list ul li i.icon-microphone:before {
content: "\f130"
}
.ul_list-icon-microphone-off ul li i:before, .ul_list ul li i.icon-microphone-off:before {
content: "\f131"
}
.ul_list-icon-shield ul li i:before, .ul_list ul li i.icon-shield:before {
content: "\f132"
}
.ul_list-icon-calendar-empty ul li i:before, .ul_list ul li i.icon-calendar-empty:before {
content: "\f133"
}
.ul_list-icon-fire-extinguisher ul li i:before, .ul_list ul li i.icon-fire-extinguisher:before {
content: "\f134"
}
.ul_list-icon-rocket ul li i:before, .ul_list ul li i.icon-rocket:before {
content: "\f135"
}
.ul_list-icon-maxcdn ul li i:before, .ul_list ul li i.icon-maxcdn:before {
content: "\f136"
}
.ul_list-icon-chevron-sign-left ul li i:before, .ul_list ul li i.icon-chevron-sign-left:before {
content: "\f137"
}
.ul_list-icon-chevron-sign-right ul li i:before, .ul_list ul li i.icon-chevron-sign-right:before {
content: "\f138"
}
.ul_list-icon-chevron-sign-up ul li i:before, .ul_list ul li i.icon-chevron-sign-up:before {
content: "\f139"
}
.ul_list-icon-chevron-sign-down ul li i:before, .ul_list ul li i.icon-chevron-sign-down:before {
content: "\f13a"
}
.ul_list-icon-html5 ul li i:before, .ul_list ul li i.icon-html5:before {
content: "\f13b"
}
.ul_list-icon-css3 ul li i:before, .ul_list ul li i.icon-css3:before {
content: "\f13c"
}
.ul_list-icon-anchor ul li i:before, .ul_list ul li i.icon-anchor:before {
content: "\f13d"
}
.ul_list-icon-unlock-alt ul li i:before, .ul_list ul li i.icon-unlock-alt:before {
content: "\f13e"
}
.ul_list-icon-bullseye ul li i:before, .ul_list ul li i.icon-bullseye:before {
content: "\f140"
}
.ul_list-icon-ellipsis-horizontal ul li i:before, .ul_list ul li i.icon-ellipsis-horizontal:before {
content: "\f141"
}
.ul_list-icon-ellipsis-vertical ul li i:before, .ul_list ul li i.icon-ellipsis-vertical:before {
content: "\f142"
}
.ul_list-icon-rss-sign ul li i:before, .ul_list ul li i.icon-rss-sign:before {
content: "\f143"
}
.ul_list-icon-play-sign ul li i:before, .ul_list ul li i.icon-play-sign:before {
content: "\f144"
}
.ul_list-icon-ticket ul li i:before, .ul_list ul li i.icon-ticket:before {
content: "\f145"
}
.ul_list-icon-minus-sign-alt ul li i:before, .ul_list ul li i.icon-minus-sign-alt:before {
content: "\f146"
}
.ul_list-icon-check-minus ul li i:before, .ul_list ul li i.icon-check-minus:before {
content: "\f147"
}
.ul_list-icon-level-up ul li i:before, .ul_list ul li i.icon-level-up:before {
content: "\f148"
}
.ul_list-icon-level-down ul li i:before, .ul_list ul li i.icon-level-down:before {
content: "\f149"
}
.ul_list-icon-check-sign ul li i:before, .ul_list ul li i.icon-check-sign:before {
content: "\f14a"
}
.ul_list-icon-edit-sign ul li i:before, .ul_list ul li i.icon-edit-sign:before {
content: "\f14b"
}
.ul_list-icon-external-link-sign ul li i:before, .ul_list ul li i.icon-external-link-sign:before {
content: "\f14c"
}
.ul_list-icon-share-sign ul li i:before, .ul_list ul li i.icon-share-sign:before {
content: "\f14d"
}
/* Social icon */
.ul_list-social_icon-duckduckgo ul li i:before, .ul_list ul li i.social_icon-duckduckgo:before {
content: '\e800';
}
.ul_list-social_icon-aim ul li i:before, .ul_list ul li i.social_icon-aim:before {
content: '\e801';
}
.ul_list-social_icon-delicious ul li i:before, .ul_list ul li i.social_icon-delicious:before {
content: '\e802';
}
.ul_list-social_icon-paypal ul li i:before, .ul_list ul li i.social_icon-paypal:before {
content: '\e803';
}
.ul_list-social_icon-flattr ul li i:before, .ul_list ul li i.social_icon-flattr:before {
content: '\e804';
}
.ul_list-social_icon-android ul li i:before, .ul_list ul li i.social_icon-android:before {
content: '\e805';
}
.ul_list-social_icon-eventful ul li i:before, .ul_list ul li i.social_icon-eventful:before {
content: '\e806';
}
.ul_list-social_icon-smashmag ul li i:before, .ul_list ul li i.social_icon-smashmag:before {
content: '\e807';
}
.ul_list-social_icon-gplus ul li i:before, .ul_list ul li i.social_icon-gplus:before {
content: '\e808';
}
.ul_list-social_icon-wikipedia ul li i:before, .ul_list ul li i.social_icon-wikipedia:before {
content: '\e809';
}
.ul_list-social_icon-lanyrd ul li i:before, .ul_list ul li i.social_icon-lanyrd:before {
content: '\e80a';
}
.ul_list-social_icon-calendar ul li i:before, .ul_list ul li i.social_icon-calendar:before {
content: '\e80b';
}
.ul_list-social_icon-stumbleupon ul li i:before, .ul_list ul li i.social_icon-stumbleupon:before {
content: '\e80c';
}
.ul_list-social_icon-fivehundredpx ul li i:before, .ul_list ul li i.social_icon-fivehundredpx:before {
content: '\e80d';
}
.ul_list-social_icon-pinterest ul li i:before, .ul_list ul li i.social_icon-pinterest:before {
content: '\e80e';
}
.ul_list-social_icon-bitcoin ul li i:before, .ul_list ul li i.social_icon-bitcoin:before {
content: '\e80f';
}
.ul_list-social_icon-w3c ul li i:before, .ul_list ul li i.social_icon-w3c:before {
content: '\e810';
}
.ul_list-social_icon-foursquare ul li i:before, .ul_list ul li i.social_icon-foursquare:before {
content: '\e811';
}
.ul_list-social_icon-html5 ul li i:before, .ul_list ul li i.social_icon-html5:before {
content: '\e812';
}
.ul_list-social_icon-ie ul li i:before, .ul_list ul li i.social_icon-ie:before {
content: '\e813';
}
.ul_list-social_icon-call ul li i:before, .ul_list ul li i.social_icon-call:before {
content: '\e814';
}
.ul_list-social_icon-grooveshark ul li i:before, .ul_list ul li i.social_icon-grooveshark:before {
content: '\e815';
}
.ul_list-social_icon-ninetyninedesigns ul li i:before, .ul_list ul li i.social_icon-ninetyninedesigns:before {
content: '\e816';
}
.ul_list-social_icon-forrst ul li i:before, .ul_list ul li i.social_icon-forrst:before {
content: '\e817';
}
.ul_list-social_icon-digg ul li i:before, .ul_list ul li i.social_icon-digg:before {
content: '\e818';
}
.ul_list-social_icon-spotify ul li i:before, .ul_list ul li i.social_icon-spotify:before {
content: '\e819';
}
.ul_list-social_icon-reddit ul li i:before, .ul_list ul li i.social_icon-reddit:before {
content: '\e81a';
}
.ul_list-social_icon-guest ul li i:before, .ul_list ul li i.social_icon-guest:before {
content: '\e81b';
}
.ul_list-social_icon-gowalla ul li i:before, .ul_list ul li i.social_icon-gowalla:before {
content: '\e81c';
}
.ul_list-social_icon-appstore ul li i:before, .ul_list ul li i.social_icon-appstore:before {
content: '\e81d';
}
.ul_list-social_icon-blogger ul li i:before, .ul_list ul li i.social_icon-blogger:before {
content: '\e81e';
}
.ul_list-social_icon-cc ul li i:before, .ul_list ul li i.social_icon-cc:before {
content: '\e81f';
}
.ul_list-social_icon-dribbble ul li i:before, .ul_list ul li i.social_icon-dribbble:before {
content: '\e820';
}
.ul_list-social_icon-evernote ul li i:before, .ul_list ul li i.social_icon-evernote:before {
content: '\e821';
}
.ul_list-social_icon-flickr ul li i:before, .ul_list ul li i.social_icon-flickr:before {
content: '\e822';
}
.ul_list-social_icon-google ul li i:before, .ul_list ul li i.social_icon-google:before {
content: '\e823';
}
.ul_list-social_icon-viadeo ul li i:before, .ul_list ul li i.social_icon-viadeo:before {
content: '\e824';
}
.ul_list-social_icon-instapaper ul li i:before, .ul_list ul li i.social_icon-instapaper:before {
content: '\e825';
}
.ul_list-social_icon-weibo ul li i:before, .ul_list ul li i.social_icon-weibo:before {
content: '\e826';
}
.ul_list-social_icon-klout ul li i:before, .ul_list ul li i.social_icon-klout:before {
content: '\e827';
}
.ul_list-social_icon-linkedin ul li i:before, .ul_list ul li i.social_icon-linkedin:before {
content: '\e828';
}
.ul_list-social_icon-meetup ul li i:before, .ul_list ul li i.social_icon-meetup:before {
content: '\e829';
}
.ul_list-social_icon-vk ul li i:before, .ul_list ul li i.social_icon-vk:before {
content: '\e82a';
}
.ul_list-social_icon-plancast ul li i:before, .ul_list ul li i.social_icon-plancast:before {
content: '\e82b';
}
.ul_list-social_icon-disqus ul li i:before, .ul_list ul li i.social_icon-disqus:before {
content: '\e82c';
}
.ul_list-social_icon-rss ul li i:before, .ul_list ul li i.social_icon-rss:before {
content: '\e82d';
}
.ul_list-social_icon-skype ul li i:before, .ul_list ul li i.social_icon-skype:before {
content: '\e82e';
}
.ul_list-social_icon-twitter ul li i:before, .ul_list ul li i.social_icon-twitter:before {
content: '\e82f';
}
.ul_list-social_icon-youtube ul li i:before, .ul_list ul li i.social_icon-youtube:before {
content: '\e830';
}
.ul_list-social_icon-vimeo ul li i:before, .ul_list ul li i.social_icon-vimeo:before {
content: '\e831';
}
.ul_list-social_icon-windows ul li i:before, .ul_list ul li i.social_icon-windows:before {
content: '\e832';
}
.ul_list-social_icon-xing ul li i:before, .ul_list ul li i.social_icon-xing:before {
content: '\e833';
}
.ul_list-social_icon-yahoo ul li i:before, .ul_list ul li i.social_icon-yahoo:before {
content: '\e834';
}
.ul_list-social_icon-chrome ul li i:before, .ul_list ul li i.social_icon-chrome:before {
content: '\e835';
}
.ul_list-social_icon-email ul li i:before, .ul_list ul li i.social_icon-email:before {
content: '\e836';
}
.ul_list-social_icon-macstore ul li i:before, .ul_list ul li i.social_icon-macstore:before {
content: '\e837';
}
.ul_list-social_icon-myspace ul li i:before, .ul_list ul li i.social_icon-myspace:before {
content: '\e838';
}
.ul_list-social_icon-podcast ul li i:before, .ul_list ul li i.social_icon-podcast:before {
content: '\e839';
}
.ul_list-social_icon-amazon ul li i:before, .ul_list ul li i.social_icon-amazon:before {
content: '\e83a';
}
.ul_list-social_icon-steam ul li i:before, .ul_list ul li i.social_icon-steam:before {
content: '\e83b';
}
.ul_list-social_icon-cloudapp ul li i:before, .ul_list ul li i.social_icon-cloudapp:before {
content: '\e83c';
}
.ul_list-social_icon-dropbox ul li i:before, .ul_list ul li i.social_icon-dropbox:before {
content: '\e83d';
}
.ul_list-social_icon-ebay ul li i:before, .ul_list ul li i.social_icon-ebay:before {
content: '\e83e';
}
.ul_list-social_icon-facebook ul li i:before, .ul_list ul li i.social_icon-facebook:before {
content: '\e83f';
}
.ul_list-social_icon-github ul li i:before, .ul_list ul li i.social_icon-github:before {
content: '\e840';
}
.ul_list-social_icon-googleplay ul li i:before, .ul_list ul li i.social_icon-googleplay:before {
content: '\e842';
}
.ul_list-social_icon-itunes ul li i:before, .ul_list ul li i.social_icon-itunes:before {
content: '\e843';
}
.ul_list-social_icon-plurk ul li i:before, .ul_list ul li i.social_icon-plurk:before {
content: '\e844';
}
.ul_list-social_icon-songkick ul li i:before, .ul_list ul li i.social_icon-songkick:before {
content: '\e845';
}
.ul_list-social_icon-lastfm ul li i:before, .ul_list ul li i.social_icon-lastfm:before {
content: '\e846';
}
.ul_list-social_icon-gmail ul li i:before, .ul_list ul li i.social_icon-gmail:before {
content: '\e847';
}
.ul_list-social_icon-pinboard ul li i:before, .ul_list ul li i.social_icon-pinboard:before {
content: '\e848';
}
.ul_list-social_icon-openid ul li i:before, .ul_list ul li i.social_icon-openid:before {
content: '\e849';
}
.ul_list-social_icon-quora ul li i:before, .ul_list ul li i.social_icon-quora:before {
content: '\e84a';
}
.ul_list-social_icon-soundcloud ul li i:before, .ul_list ul li i.social_icon-soundcloud:before {
content: '\e84b';
}
.ul_list-social_icon-tumblr ul li i:before, .ul_list ul li i.social_icon-tumblr:before {
content: '\e84c';
}
.ul_list-social_icon-eventasaurus ul li i:before, .ul_list ul li i.social_icon-eventasaurus:before {
content: '\e84d';
}
.ul_list-social_icon-wordpress ul li i:before, .ul_list ul li i.social_icon-wordpress:before {
content: '\e84e';
}
.ul_list-social_icon-yelp ul li i:before, .ul_list ul li i.social_icon-yelp:before {
content: '\e84f';
}
.ul_list-social_icon-intensedebate ul li i:before, .ul_list ul li i.social_icon-intensedebate:before {
content: '\e850';
}
.ul_list-social_icon-eventbrite ul li i:before, .ul_list ul li i.social_icon-eventbrite:before {
content: '\e851';
}
.ul_list-social_icon-scribd ul li i:before, .ul_list ul li i.social_icon-scribd:before {
content: '\e852';
}
.ul_list-social_icon-posterous ul li i:before, .ul_list ul li i.social_icon-posterous:before {
content: '\e853';
}
.ul_list-social_icon-stripe ul li i:before, .ul_list ul li i.social_icon-stripe:before {
content: '\e854';
}
.ul_list-social_icon-opentable ul li i:before, .ul_list ul li i.social_icon-opentable:before {
content: '\e855';
}
.ul_list-social_icon-cart ul li i:before, .ul_list ul li i.social_icon-cart:before {
content: '\e856';
}
.ul_list-social_icon-print ul li i:before, .ul_list ul li i.social_icon-print:before {
content: '\e857';
}
.ul_list-social_icon-angellist ul li i:before, .ul_list ul li i.social_icon-angellist:before {
content: '\e858';
}
.ul_list-social_icon-instagram ul li i:before, .ul_list ul li i.social_icon-instagram:before {
content: '\e859';
}
.ul_list-social_icon-dwolla ul li i:before, .ul_list ul li i.social_icon-dwolla:before {
content: '\e85a';
}
.ul_list-social_icon-appnet ul li i:before, .ul_list ul li i.social_icon-appnet:before {
content: '\e85b';
}
.ul_list-social_icon-statusnet ul li i:before, .ul_list ul li i.social_icon-statusnet:before {
content: '\e85c';
}
.ul_list-social_icon-acrobat ul li i:before, .ul_list ul li i.social_icon-acrobat:before {
content: '\e85d';
}
.ul_list-social_icon-drupal ul li i:before, .ul_list ul li i.social_icon-drupal:before {
content: '\e85e';
}
.ul_list-social_icon-buffer ul li i:before, .ul_list ul li i.social_icon-buffer:before {
content: '\e85f';
}
.ul_list-social_icon-pocket ul li i:before, .ul_list ul li i.social_icon-pocket:before {
content: '\e860';
}
.ul_list-social_icon-github-circled ul li i:before, .ul_list ul li i.social_icon-github-circled:before {
content: '\e841';
}
.ul_list-social_icon-bitbucket ul li i:before, .ul_list ul li i.social_icon-bitbucket:before {
content: '\e861';
}
.ul_list-social_icon-lego ul li i:before, .ul_list ul li i.social_icon-lego:before {
content: '\e862';
}
.ul_list-social_icon-login ul li i:before, .ul_list ul li i.social_icon-login:before {
content: '\e863';
}
.ul_list-social_icon-stackoverflow ul li i:before, .ul_list ul li i.social_icon-stackoverflow:before {
content: '\e864';
}
.ul_list-social_icon-hackernews ul li i:before, .ul_list ul li i.social_icon-hackernews:before {
content: '\e865';
}
.ul_list-social_icon-lkdto ul li i:before, .ul_list ul li i.social_icon-lkdto:before {
content: '\e866';
}
.ul_list-social_icon-deviantart ul li i:before, .ul_list ul li i.social_icon-deviantart:before {
content: '\e867';
}
.ul_list-social_icon-behance ul li i:before, .ul_list ul li i.social_icon-behance:before {
content: '\e868';
}
div.pp_default .pp_top, div.pp_default .pp_top .pp_middle, div.pp_default .pp_top .pp_left, div.pp_default .pp_top .pp_right, div.pp_default .pp_bottom, div.pp_default .pp_bottom .pp_left, div.pp_default .pp_bottom .pp_middle, div.pp_default .pp_bottom .pp_right {
height: 13px
}
div.pp_default .pp_top .pp_left {
background: url(../images/prettyPhoto/default/sprite.png) -78px -93px no-repeat
}
div.pp_default .pp_top .pp_middle {
background: url(../images/prettyPhoto/default/sprite_x.png) top left repeat-x
}
div.pp_default .pp_top .pp_right {
background: url(../images/prettyPhoto/default/sprite.png) -112px -93px no-repeat
}
div.pp_default .pp_content .ppt {
color: #f8f8f8
}
div.pp_default .pp_content_container .pp_left {
background: url(../images/prettyPhoto/default/sprite_y.png) -7px 0 repeat-y;
padding-left: 13px
}
div.pp_default .pp_content_container .pp_right {
background: url(../images/prettyPhoto/default/sprite_y.png) top right repeat-y;
padding-right: 13px
}
div.pp_default .pp_next:hover {
background: url(../images/prettyPhoto/default/sprite_next.png) center right no-repeat;
cursor: pointer
}
div.pp_default .pp_previous:hover {
background: url(../images/prettyPhoto/default/sprite_prev.png) center left no-repeat;
cursor: pointer
}
div.pp_default .pp_expand {
background: url(../images/prettyPhoto/default/sprite.png) 0 -29px no-repeat;
cursor: pointer;
width: 28px;
height: 28px
}
div.pp_default .pp_expand:hover {
background: url(../images/prettyPhoto/default/sprite.png) 0 -56px no-repeat;
cursor: pointer
}
div.pp_default .pp_contract {
background: url(../images/prettyPhoto/default/sprite.png) 0 -84px no-repeat;
cursor: pointer;
width: 28px;
height: 28px
}
div.pp_default .pp_contract:hover {
background: url(../images/prettyPhoto/default/sprite.png) 0 -113px no-repeat;
cursor: pointer
}
div.pp_default .pp_close {
width: 30px;
height: 30px;
background: url(../images/prettyPhoto/default/sprite.png) 2px 1px no-repeat;
cursor: pointer
}
div.pp_default .pp_gallery ul li a {
background: url(../images/prettyPhoto/default/default_thumb.png) center center #f8f8f8;
border: 1px solid #aaa
}
div.pp_default .pp_social {
margin-top: 7px
}
div.pp_default .pp_gallery a.pp_arrow_previous, div.pp_default .pp_gallery a.pp_arrow_next {
position: static;
left: auto
}
div.pp_default .pp_nav .pp_play, div.pp_default .pp_nav .pp_pause {
background: url(../images/prettyPhoto/default/sprite.png) -51px 1px no-repeat;
height: 30px;
width: 30px
}
div.pp_default .pp_nav .pp_pause {
background-position: -51px -29px
}
div.pp_default a.pp_arrow_previous, div.pp_default a.pp_arrow_next {
background: url(../images/prettyPhoto/default/sprite.png) -31px -3px no-repeat;
height: 20px;
width: 20px;
margin: 4px 0 0
}
div.pp_default a.pp_arrow_next {
left: 52px;
background-position: -82px -3px
}
div.pp_default .pp_content_container .pp_details {
margin-top: 5px
}
div.pp_default .pp_nav {
clear: none;
height: 30px;
width: 110px;
position: relative
}
div.pp_default .pp_nav .currentTextHolder {
font-family: Georgia;
font-style: italic;
color: #999;
font-size: 11px;
left: 75px;
line-height: 25px;
position: absolute;
top: 2px;
margin: 0;
padding: 0 0 0 10px
}
div.pp_default .pp_close:hover, div.pp_default .pp_nav .pp_play:hover, div.pp_default .pp_nav .pp_pause:hover, div.pp_default .pp_arrow_next:hover, div.pp_default .pp_arrow_previous:hover {
opacity: 0.7
}
div.pp_default .pp_description {
font-size: 11px;
font-weight: 700;
line-height: 14px;
margin: 5px 50px 5px 0
}
div.pp_default .pp_bottom .pp_left {
background: url(../images/prettyPhoto/default/sprite.png) -78px -127px no-repeat
}
div.pp_default .pp_bottom .pp_middle {
background: url(../images/prettyPhoto/default/sprite_x.png) bottom left repeat-x
}
div.pp_default .pp_bottom .pp_right {
background: url(../images/prettyPhoto/default/sprite.png) -112px -127px no-repeat
}
div.pp_default .pp_loaderIcon {
background: url(../images/prettyPhoto/default/loader.gif) center center no-repeat
}
div.light_rounded .pp_top .pp_left {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -53px no-repeat
}
div.light_rounded .pp_top .pp_right {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -53px no-repeat
}
div.light_rounded .pp_next:hover {
background: url(../images/prettyPhoto/light_rounded/btnNext.png) center right no-repeat;
cursor: pointer
}
div.light_rounded .pp_previous:hover {
background: url(../images/prettyPhoto/light_rounded/btnPrevious.png) center left no-repeat;
cursor: pointer
}
div.light_rounded .pp_expand {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -26px no-repeat;
cursor: pointer
}
div.light_rounded .pp_expand:hover {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -31px -47px no-repeat;
cursor: pointer
}
div.light_rounded .pp_contract {
background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -26px no-repeat;
cursor: pointer
}
div.light_rounded .pp_contract:hover {
background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -47px no-repeat;
cursor: pointer
}
div.light_rounded .pp_close {
width: 75px;
height: 22px;
background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -1px no-repeat;
cursor: pointer
}
div.light_rounded .pp_nav .pp_play {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -1px -100px no-repeat;
height: 15px;
width: 14px
}
div.light_rounded .pp_nav .pp_pause {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -24px -100px no-repeat;
height: 15px;
width: 14px
}
div.light_rounded .pp_arrow_previous {
background: url(../images/prettyPhoto/light_rounded/sprite.png) 0 -71px no-repeat
}
div.light_rounded .pp_arrow_next {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -22px -71px no-repeat
}
div.light_rounded .pp_bottom .pp_left {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -88px -80px no-repeat
}
div.light_rounded .pp_bottom .pp_right {
background: url(../images/prettyPhoto/light_rounded/sprite.png) -110px -80px no-repeat
}
div.dark_rounded .pp_top .pp_left {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -53px no-repeat
}
div.dark_rounded .pp_top .pp_right {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -53px no-repeat
}
div.dark_rounded .pp_content_container .pp_left {
background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat-y
}
div.dark_rounded .pp_content_container .pp_right {
background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top right repeat-y
}
div.dark_rounded .pp_next:hover {
background: url(../images/prettyPhoto/dark_rounded/btnNext.png) center right no-repeat;
cursor: pointer
}
div.dark_rounded .pp_previous:hover {
background: url(../images/prettyPhoto/dark_rounded/btnPrevious.png) center left no-repeat;
cursor: pointer
}
div.dark_rounded .pp_expand {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -26px no-repeat;
cursor: pointer
}
div.dark_rounded .pp_expand:hover {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -31px -47px no-repeat;
cursor: pointer
}
div.dark_rounded .pp_contract {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -26px no-repeat;
cursor: pointer
}
div.dark_rounded .pp_contract:hover {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -47px no-repeat;
cursor: pointer
}
div.dark_rounded .pp_close {
width: 75px;
height: 22px;
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -1px no-repeat;
cursor: pointer
}
div.dark_rounded .pp_description {
margin-right: 85px;
color: #fff
}
div.dark_rounded .pp_nav .pp_play {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -1px -100px no-repeat;
height: 15px;
width: 14px
}
div.dark_rounded .pp_nav .pp_pause {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -24px -100px no-repeat;
height: 15px;
width: 14px
}
div.dark_rounded .pp_arrow_previous {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) 0 -71px no-repeat
}
div.dark_rounded .pp_arrow_next {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -22px -71px no-repeat
}
div.dark_rounded .pp_bottom .pp_left {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -88px -80px no-repeat
}
div.dark_rounded .pp_bottom .pp_right {
background: url(../images/prettyPhoto/dark_rounded/sprite.png) -110px -80px no-repeat
}
div.dark_rounded .pp_loaderIcon {
background: url(../images/prettyPhoto/dark_rounded/loader.gif) center center no-repeat
}
div.dark_square .pp_left, div.dark_square .pp_middle, div.dark_square .pp_right, div.dark_square .pp_content {
background: #000
}
div.dark_square .pp_description {
color: #fff;
margin: 0 85px 0 0
}
div.dark_square .pp_loaderIcon {
background: url(../images/prettyPhoto/dark_square/loader.gif) center center no-repeat
}
div.dark_square .pp_expand {
background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -26px no-repeat;
cursor: pointer
}
div.dark_square .pp_expand:hover {
background: url(../images/prettyPhoto/dark_square/sprite.png) -31px -47px no-repeat;
cursor: pointer
}
div.dark_square .pp_contract {
background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -26px no-repeat;
cursor: pointer
}
div.dark_square .pp_contract:hover {
background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -47px no-repeat;
cursor: pointer
}
div.dark_square .pp_close {
width: 75px;
height: 22px;
background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -1px no-repeat;
cursor: pointer
}
div.dark_square .pp_nav {
clear: none
}
div.dark_square .pp_nav .pp_play {
background: url(../images/prettyPhoto/dark_square/sprite.png) -1px -100px no-repeat;
height: 15px;
width: 14px
}
div.dark_square .pp_nav .pp_pause {
background: url(../images/prettyPhoto/dark_square/sprite.png) -24px -100px no-repeat;
height: 15px;
width: 14px
}
div.dark_square .pp_arrow_previous {
background: url(../images/prettyPhoto/dark_square/sprite.png) 0 -71px no-repeat
}
div.dark_square .pp_arrow_next {
background: url(../images/prettyPhoto/dark_square/sprite.png) -22px -71px no-repeat
}
div.dark_square .pp_next:hover {
background: url(../images/prettyPhoto/dark_square/btnNext.png) center right no-repeat;
cursor: pointer
}
div.dark_square .pp_previous:hover {
background: url(../images/prettyPhoto/dark_square/btnPrevious.png) center left no-repeat;
cursor: pointer
}
div.light_square .pp_expand {
background: url(../images/prettyPhoto/light_square/sprite.png) -31px -26px no-repeat;
cursor: pointer
}
div.light_square .pp_expand:hover {
background: url(../images/prettyPhoto/light_square/sprite.png) -31px -47px no-repeat;
cursor: pointer
}
div.light_square .pp_contract {
background: url(../images/prettyPhoto/light_square/sprite.png) 0 -26px no-repeat;
cursor: pointer
}
div.light_square .pp_contract:hover {
background: url(../images/prettyPhoto/light_square/sprite.png) 0 -47px no-repeat;
cursor: pointer
}
div.light_square .pp_close {
width: 75px;
height: 22px;
background: url(../images/prettyPhoto/light_square/sprite.png) -1px -1px no-repeat;
cursor: pointer
}
div.light_square .pp_nav .pp_play {
background: url(../images/prettyPhoto/light_square/sprite.png) -1px -100px no-repeat;
height: 15px;
width: 14px
}
div.light_square .pp_nav .pp_pause {
background: url(../images/prettyPhoto/light_square/sprite.png) -24px -100px no-repeat;
height: 15px;
width: 14px
}
div.light_square .pp_arrow_previous {
background: url(../images/prettyPhoto/light_square/sprite.png) 0 -71px no-repeat
}
div.light_square .pp_arrow_next {
background: url(../images/prettyPhoto/light_square/sprite.png) -22px -71px no-repeat
}
div.light_square .pp_next:hover {
background: url(../images/prettyPhoto/light_square/btnNext.png) center right no-repeat;
cursor: pointer
}
div.light_square .pp_previous:hover {
background: url(../images/prettyPhoto/light_square/btnPrevious.png) center left no-repeat;
cursor: pointer
}
div.facebook .pp_top .pp_left {
background: url(../images/prettyPhoto/facebook/sprite.png) -88px -53px no-repeat
}
div.facebook .pp_top .pp_middle {
background: url(../images/prettyPhoto/facebook/contentPatternTop.png) top left repeat-x
}
div.facebook .pp_top .pp_right {
background: url(../images/prettyPhoto/facebook/sprite.png) -110px -53px no-repeat
}
div.facebook .pp_content_container .pp_left {
background: url(../images/prettyPhoto/facebook/contentPatternLeft.png) top left repeat-y
}
div.facebook .pp_content_container .pp_right {
background: url(../images/prettyPhoto/facebook/contentPatternRight.png) top right repeat-y
}
div.facebook .pp_expand {
background: url(../images/prettyPhoto/facebook/sprite.png) -31px -26px no-repeat;
cursor: pointer
}
div.facebook .pp_expand:hover {
background: url(../images/prettyPhoto/facebook/sprite.png) -31px -47px no-repeat;
cursor: pointer
}
div.facebook .pp_contract {
background: url(../images/prettyPhoto/facebook/sprite.png) 0 -26px no-repeat;
cursor: pointer
}
div.facebook .pp_contract:hover {
background: url(../images/prettyPhoto/facebook/sprite.png) 0 -47px no-repeat;
cursor: pointer
}
div.facebook .pp_close {
width: 22px;
height: 22px;
background: url(../images/prettyPhoto/facebook/sprite.png) -1px -1px no-repeat;
cursor: pointer
}
div.facebook .pp_description {
margin: 0 37px 0 0
}
div.facebook .pp_loaderIcon {
background: url(../images/prettyPhoto/facebook/loader.gif) center center no-repeat
}
div.facebook .pp_arrow_previous {
background: url(../images/prettyPhoto/facebook/sprite.png) 0 -71px no-repeat;
height: 22px;
margin-top: 0;
width: 22px
}
div.facebook .pp_arrow_previous.disabled {
background-position: 0 -96px;
cursor: default
}
div.facebook .pp_arrow_next {
background: url(../images/prettyPhoto/facebook/sprite.png) -32px -71px no-repeat;
height: 22px;
margin-top: 0;
width: 22px
}
div.facebook .pp_arrow_next.disabled {
background-position: -32px -96px;
cursor: default
}
div.facebook .pp_nav {
margin-top: 0
}
div.facebook .pp_nav p {
font-size: 15px;
padding: 0 3px 0 4px
}
div.facebook .pp_nav .pp_play {
background: url(../images/prettyPhoto/facebook/sprite.png) -1px -123px no-repeat;
height: 22px;
width: 22px
}
div.facebook .pp_nav .pp_pause {
background: url(../images/prettyPhoto/facebook/sprite.png) -32px -123px no-repeat;
height: 22px;
width: 22px
}
div.facebook .pp_next:hover {
background: url(../images/prettyPhoto/facebook/btnNext.png) center right no-repeat;
cursor: pointer
}
div.facebook .pp_previous:hover {
background: url(../images/prettyPhoto/facebook/btnPrevious.png) center left no-repeat;
cursor: pointer
}
div.facebook .pp_bottom .pp_left {
background: url(../images/prettyPhoto/facebook/sprite.png) -88px -80px no-repeat
}
div.facebook .pp_bottom .pp_middle {
background: url(../images/prettyPhoto/facebook/contentPatternBottom.png) top left repeat-x
}
div.facebook .pp_bottom .pp_right {
background: url(../images/prettyPhoto/facebook/sprite.png) -110px -80px no-repeat
}
div.pp_pic_holder a:focus {
outline: none
}
div.pp_overlay {
background: #000;
display: none;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 9500
}
div.pp_pic_holder {
display: none;
position: absolute;
width: 100px;
z-index: 10000
}
.pp_content {
height: 40px;
min-width: 40px
}
* html .pp_content {
width: 40px
}
.pp_content_container {
position: relative;
text-align: left;
width: 100%
}
.pp_content_container .pp_left {
padding-left: 20px
}
.pp_content_container .pp_right {
padding-right: 20px
}
.pp_content_container .pp_details {
float: left;
margin: 10px 0 2px
}
.pp_description {
display: none;
margin: 0
}
.pp_social {
float: left;
margin: 0
}
.pp_social .facebook {
float: left;
margin-left: 5px;
width: 55px;
overflow: hidden
}
.pp_social .twitter {
float: left
}
.pp_nav {
clear: right;
float: left;
margin: 3px 10px 0 0
}
.pp_nav p {
float: left;
white-space: nowrap;
margin: 2px 4px
}
.pp_nav .pp_play, .pp_nav .pp_pause {
float: left;
margin-right: 4px;
text-indent: -10000px
}
a.pp_arrow_previous, a.pp_arrow_next {
display: block;
float: left;
height: 15px;
margin-top: 3px;
overflow: hidden;
text-indent: -10000px;
width: 14px
}
.pp_hoverContainer {
position: absolute;
top: 0;
width: 100%;
z-index: 2000
}
.pp_gallery {
display: none;
left: 50%;
margin-top: -50px;
position: absolute;
z-index: 10000
}
.pp_gallery div {
float: left;
overflow: hidden;
position: relative
}
.pp_gallery ul {
float: left;
height: 35px;
position: relative;
white-space: nowrap;
margin: 0 0 0 5px;
padding: 0
}
.pp_gallery ul a {
border: 1px rgba(0,0,0,0.5) solid;
display: block;
float: left;
height: 33px;
overflow: hidden
}
.pp_gallery ul a img {
border: 0
}
.pp_gallery li {
display: block;
float: left;
margin: 0 5px 0 0;
padding: 0
}
.pp_gallery li.default a {
background: url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;
display: block;
height: 33px;
width: 50px
}
.pp_gallery .pp_arrow_previous, .pp_gallery .pp_arrow_next {
margin-top: 7px !important
}
a.pp_next {
background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
display: block;
float: right;
height: 100%;
text-indent: -10000px;
width: 49%
}
a.pp_previous {
background: url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;
display: block;
float: left;
height: 100%;
text-indent: -10000px;
width: 49%
}
a.pp_expand, a.pp_contract {
cursor: pointer;
display: none;
height: 20px;
position: absolute;
right: 30px;
text-indent: -10000px;
top: 10px;
width: 20px;
z-index: 20000
}
a.pp_close {
position: absolute;
right: 0;
top: 0;
display: block;
line-height: 22px;
text-indent: -10000px
}
.pp_loaderIcon {
display: block;
height: 24px;
left: 50%;
position: absolute;
top: 50%;
width: 24px;
margin: -12px 0 0 -12px
}
#pp_full_res {
line-height: 1 !important
}
#pp_full_res .pp_inline {
text-align: left
}
#pp_full_res .pp_inline p {
margin: 0 0 15px
}
div.ppt {
color: #fff;
display: none;
font-size: 17px;
z-index: 9999;
margin: 0 0 5px 15px
}
div.pp_default .pp_content, div.light_rounded .pp_content {
background-color: #fff
}
div.pp_default #pp_full_res .pp_inline, div.light_rounded .pp_content .ppt, div.light_rounded #pp_full_res .pp_inline, div.light_square .pp_content .ppt, div.light_square #pp_full_res .pp_inline, div.facebook .pp_content .ppt, div.facebook #pp_full_res .pp_inline {
color: #000
}
div.pp_default .pp_gallery ul li a:hover, div.pp_default .pp_gallery ul li.selected a, .pp_gallery ul a:hover, .pp_gallery li.selected a {
border-color: #fff
}
div.pp_default .pp_details, div.light_rounded .pp_details, div.dark_rounded .pp_details, div.dark_square .pp_details, div.light_square .pp_details, div.facebook .pp_details {
position: relative
}
div.light_rounded .pp_top .pp_middle, div.light_rounded .pp_content_container .pp_left, div.light_rounded .pp_content_container .pp_right, div.light_rounded .pp_bottom .pp_middle, div.light_square .pp_left, div.light_square .pp_middle, div.light_square .pp_right, div.light_square .pp_content, div.facebook .pp_content {
background: #fff
}
div.light_rounded .pp_description, div.light_square .pp_description {
margin-right: 85px
}
div.light_rounded .pp_gallery a.pp_arrow_previous, div.light_rounded .pp_gallery a.pp_arrow_next, div.dark_rounded .pp_gallery a.pp_arrow_previous, div.dark_rounded .pp_gallery a.pp_arrow_next, div.dark_square .pp_gallery a.pp_arrow_previous, div.dark_square .pp_gallery a.pp_arrow_next, div.light_square .pp_gallery a.pp_arrow_previous, div.light_square .pp_gallery a.pp_arrow_next {
margin-top: 12px !important
}
div.light_rounded .pp_arrow_previous.disabled, div.dark_rounded .pp_arrow_previous.disabled, div.dark_square .pp_arrow_previous.disabled, div.light_square .pp_arrow_previous.disabled {
background-position: 0 -87px;
cursor: default
}
div.light_rounded .pp_arrow_next.disabled, div.dark_rounded .pp_arrow_next.disabled, div.dark_square .pp_arrow_next.disabled, div.light_square .pp_arrow_next.disabled {
background-position: -22px -87px;
cursor: default
}
div.light_rounded .pp_loaderIcon, div.light_square .pp_loaderIcon {
background: url(../images/prettyPhoto/light_rounded/loader.gif) center center no-repeat
}
div.dark_rounded .pp_top .pp_middle, div.dark_rounded .pp_content, div.dark_rounded .pp_bottom .pp_middle {
background: url(../images/prettyPhoto/dark_rounded/contentPattern.png) top left repeat
}
div.dark_rounded .currentTextHolder, div.dark_square .currentTextHolder {
color: #c4c4c4
}
div.dark_rounded #pp_full_res .pp_inline, div.dark_square #pp_full_res .pp_inline {
color: #fff
}
.pp_top, .pp_bottom {
height: 20px;
position: relative
}
* html .pp_top, * html .pp_bottom {
padding: 0 20px
}
.pp_top .pp_left, .pp_bottom .pp_left {
height: 20px;
left: 0;
position: absolute;
width: 20px
}
.pp_top .pp_middle, .pp_bottom .pp_middle {
height: 20px;
left: 20px;
position: absolute;
right: 20px
}
* html .pp_top .pp_middle, * html .pp_bottom .pp_middle {
left: 0;
position: static
}
.pp_top .pp_right, .pp_bottom .pp_right {
height: 20px;
left: auto;
position: absolute;
right: 0;
top: 0;
width: 20px
}
.pp_fade, .pp_gallery li.default a img {
display: none
}
body {
background-color: #f3f3f3;
color: #2f3239;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
#warp {
background-color: #f3f3f3;
display: none;
}
.container > .row > .col-md-9 {
overflow: hidden;
height: 100%;
}
.wrap-pop {
position: fixed;
height: 100%;
width: 100%;
background: rgba(0,0,0,0.5);
z-index: 997;
}
.boxed_body2 .wrap-pop {
margin-top: -30px;
}
.loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #f3f3f3;
z-index: 999;
}
.loader_html {
position: fixed;
top: 50%;
left: 50%;
margin: -25px 0 0 -25px;
width: 50px;
height: 50px;
border-width: 8px;
border-style: solid;
border-right-color: rgba(0, 0, 0, 0) !important;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
background-color: rgba(0, 0, 0, 0);
-webkit-animation: spin 1s linear infinite;
animation: spin 1s linear infinite;
}
.boxed_body {
background: url(images/patterns/bg13.png) repeat;
}
.boxed_body_2 {
background: url(../../ask-me/images/demo/bg_big.jpg) no-repeat center center fixed;
background-size: 100% 100%;
}
.boxed_body2 {
background: url(../../ask-me/images/demo/bg-image1.jpg) no-repeat center center fixed;
background-size: cover;
}
.boxed, .boxed2 {
background-color: #f3f3f3;
width: 970px;
margin: 0 auto;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
position: relative;
}
.index-no-box {
margin-bottom: 70px;
}
.grid_970 .container {
width: 970px;
}
.boxed2 {
margin-top: 30px;
margin-bottom: 30px;
}
/* Login panel */
.login-panel {
padding: 20px 0;
background-color: #2f3239;
}
.login-panel .page-content {
background: transparent;
border: none;
padding: 0;
box-shadow: none;
}
.login-panel h2 {
font-size: 16px;
font-weight: bold;
margin-bottom: 10px;
}
.login-panel p {
color: #c2c8d4;
}
.login-panel input[type="text"], .login-panel input[type="password"] {
border: 1px solid #373b43;
background-color: #373b43;
color: #FFF;
padding-left: 37px;
}
.login-panel .form-inputs p {
margin-bottom: 10px;
}
.login-panel input[type="submit"], .login-panel .signup {
font-size: 15px;
font-weight: bold;
border: none;
}
.login-panel input[type="submit"]:hover, .login-panel .signup:hover {
background-color: #373b43;
}
/* Panel pop */
.panel-pop {
background-color: #FFF;
border: 1px solid #e5e5e5;
box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
width: 580px;
position: fixed;
padding: 20px;
top: -100%;
left: 50%;
margin-left: -290px;
z-index: 998;
overflow: hidden;
color: #2f3239;
display: none;
}
.panel-pop p {
font-size: 13px;
}
.panel-pop h2, .login h2, .contact-us h2, #related-posts h2, .user-profile h2 {
border-bottom: 1px solid #dedede;
margin-bottom: 20px;
padding-bottom: 10px;
font-size: 20px;
font-weight: 400;
}
.panel-pop h2 i {
float: right;
font-size: 15px;
margin-top: 5px;
cursor: pointer;
}
.panel-pop .form-style input.submit {
width: 100%;
}
/* header-top */
#header-top {
height: 42px;
}
.header-top-nav li {
float: left;
line-height: 42px;
margin-right: 5px;
font-size: 13px;
}
.header-top-nav li::after {
content: "|";
color: #2f3239;
float: left;
margin-left: 10px;
}
.header-top-nav li:last-child::after {
content: "";
}
.header-top-nav li a {
display: block;
float: left;
}
.header-top-nav li:hover a, .header-top-nav li a.header-top-active, .header-top-nav li:hover a i, .header-top-nav li a.header-top-active i {
color: #2f3239;
}
.header-top-nav li i {
margin-right: 5px;
}
.header-search {
float: right;
position: relative;
}
.header-search input {
margin-bottom: 0;
padding: 7px 0 7px 30px;
background: transparent;
border: none;
font-size: 13px;
font-weight: normal;
height: 42px;
width: 120px;
}
.header-search input::-webkit-input-placeholder {
color: white;
}
.header-search input::-moz-placeholder {
color: white;
}
.header-search input:-ms-input-placeholder {
color: white;
}
.header-search input::-ms-input-placeholder {
color: white;
}
.header-search input::placeholder {
color: white;
}
.header-search button {
position: absolute;
top: 0;
left: 0;
background: transparent;
border: none;
margin: 0;
padding: 0;
line-height: 42px;
}
/* header */
#header {
height: 70px;
position: relative;
}
div[class*="slider_shadow"]:before, div[class^="header_shadow"] {
background-size: 100% 100%;
}
#header .logo {
float: left;
line-height: 70px;
transition: padding 0.8s;
margin-top: 0px;
}
#header .logo.logo_center {
margin-right: 0;
margin-left: 0;
text-align: center;
float: none;
}
/* navigation */
.navigation {
float: right;
}
.navigation > ul li {
float: left;
line-height: 1;
position: relative;
height: 100%;
font-size: 14px;
font-weight: bold;
margin-right: 1px;
}
.navigation > ul li:last-child {
margin-right: 0;
}
.navigation > ul > li > a {
display: block;
position: relative;
float: left;
padding: 17px 15px;
line-height: 36px;
}
.navigation li:hover ul {
display: block;
top: 0;
background-color: #FFF;
box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.navigation > ul > li:hover > ul {
top: 70px;
}
.navigation li ul li ul {
position: absolute;
left: 201px;
margin-top: -1px;
}
.navigation ul > li > ul > li {
float: none;
border: none;
margin: 0;
}
.navigation ul > li ul {
display: none;
position: absolute;
left: 0;
top: 100%;
z-index: 993;
width: 200px;
}
.navigation li ul li a {
height: inherit;
float: inherit;
text-align: left;
line-height: 35px;
display: block;
margin: 0 !important;
padding: 0 15px;
z-index: 993;
color: #2f3239;
font-size: 13px;
font-weight: normal;
}
.navigation li > ul, .navigation li > ul li > ul, .navigation li ul li ul {
display: none;
overflow: hidden;
}
.navigation ul > li ul li {
position: relative;
float: none;
line-height: 35px;
height: 35px;
}
.menu-nav-arrow {
margin-left: 5px;
}
.navigation ul > li ul li .menu-nav-arrow {
float: right;
}
/* fixed-nav */
#header.fixed-nav {
position: fixed;
height: 70px;
line-height: 70px;
opacity: 1;
filter: alpha(opacity=100);
top: 0;
left: 0;
width: 100%;
z-index: 993;
box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.05);
}
.boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 1000px;
left: inherit;
}
#header.fixed-nav .logo {
line-height: 70px;
}
#header.fixed-nav .logo img {
max-height: 50px;
}
#header.fixed-nav .navigation > ul > li.current_page_item:before {
content: "";
}
#header.fixed-nav .navigation > ul li {
margin-top: 17px;
}
/* Navigation mobile */
.navigation_mobile {
height: 35px;
line-height: 35px;
position: relative;
width: 300px;
margin-top: 25.5px;
float: right;
}
.navigation_mobile ul {
margin-bottom: 0;
}
.navigation_mobile_click {
border: 1px solid #ebebeb;
padding: 0 10px;
background-color: #f7f7f7;
color: #2f3239;
cursor: pointer;
height: 35px;
line-height: 35px;
font-size: 14px;
}
.navigation_mobile > ul {
background-color: #FAFAFA;
border: 1px solid #dedede;
border-top: none;
overflow: hidden;
position: absolute;
left: 0;
top: 35px;
width: 100%;
z-index: 993;
border-radius: 0 0 2px 2px;
display: none;
box-sizing: border-box;
}
.navigation_mobile > ul li ul {
position: relative;
margin-bottom: 0;
border-top: 1px solid #ebebeb;
margin: 0 -20px;
}
.navigation_mobile_click:before {
content: "\f0c9";
font-family: "FontAwesome";
font-size: 20px;
position: absolute;
right: 0;
top: 0;
height: 35px;
width: 35px;
text-align: center;
}
.navigation_mobile > ul li {
float: none;
padding: 0 15px;
line-height: 33px;
border-bottom: 1px solid #ebebeb;
color: #2f3239;
text-align: left;
font-size: 14px;
}
.navigation_mobile > ul a {
color: #2f3239;
background: transparent;
}
.navigation_mobile > ul a i {
margin-right: 5px;
color: #2f3239;
}
.navigation_mobile > ul li ul li {
border-bottom: 0;
line-height: 30px;
margin-left: 10px;
}
.navigation_mobile > ul li ul li a {
font-size: 14px;
}
.navigation_mobile > ul li ul li:before {
content: "\f054";
font-family: "FontAwesome";
font-size: 10px;
margin-right: 8px;
speak: none;
position: relative;
top: 1px;
}
/* social_icons */
.social_icons ul {
float: right;
overflow: hidden;
}
.social_icons ul li {
float: left;
margin: 0 0 0 20px;
}
.social_icons.f_left ul li {
margin-right: 20px;
margin-left: 0;
}
.social_icons ul li a {
transition: all 0.2s ease 0s;
display: inline-block;
text-transform: none !important;
color: #ababab;
}
.social_icons ul li.twitter a:hover {
color: #00baf0;
}
.social_icons ul li.facebook a:hover {
color: #3b5997;
}
.social_icons ul li.gplus a:hover {
color: #c43c2c;
}
.social_icons ul li.linkedin a:hover {
color: #006599;
}
.social_icons ul li.youtube a:hover {
color: #ff0000;
}
.social_icons ul li.rss a:hover {
color: #ff6600;
}
.social_icons ul li.skype a:hover {
color: #00b0f6;
}
.social_icons ul li.feedburner a:hover {
color: #ee3d43;
}
.social_icons ul li.flickr a:hover {
color: #ff0084;
}
.social_icons ul li.picasa a:hover {
color: #000;
}
.social_icons ul li.digg a:hover {
color: #006094;
}
.social_icons ul li.vimeo a:hover {
color: #1ab7ea;
}
.social_icons ul li.tumblr a:hover {
color: #2d4961;
}
/* ask-me */
.ask-me {
padding-bottom: 0 !important;
height: auto;
margin-bottom: 70px !important;
}
.ask-me .col-md-3 {
padding-top: 0;
width: 100%;
text-align: center;
}
.ask-me .col-md-9 {
margin: auto;
float: none;
}
.ask-me .col-md-3 a, .ask-me .col-md-12 a {
font-size: 15px;
font-weight: bold;
}
.ask-me .col-md-3 a:hover {
background-color: #373b43 !important;
}
.ask-me h2 {
font-size: 25px;
margin-bottom: 30px;
}
.ask-me p {
font-size: 13px !important;
line-height: 22px;
}
.ask-me .col-md-12 p {
margin-bottom: 30px !important;
}
.ask-me .col-md-9 form {
background: url("images/chrome.png") no-repeat center bottom;
height: 324px;
width: 100%;
background-size: 100% 100%;
float: right;
margin-top: 40px;
}
.ask-me .col-md-9 p {
margin: 90px 20px 20px;
box-sizing: border-box;
position: relative;
}
.ask-me .col-md-9 p textarea {
border: none;
color: #2f3239;
font-size: 13px;
font-style: italic;
resize: none;
height: 214px;
text-indent: 38px;
line-height: 30px;
border-radius: 2px;
}
.ask-me .col-md-9 p i, .ask-me .col-md-12 p i {
position: absolute;
width: 28px;
height: 28px;
line-height: 28px;
text-align: center;
font-size: 14px;
background-color: #2f3239;
top: 10px;
left: 10px;
}
.ask-me .publish-question {
margin: 0;
position: absolute;
bottom: 10px;
right: 10px;
font-size: 14px;
font-weight: bold;
}
.ask-me .box_icon.box_warp.box_no_border {
margin-bottom: 0;
position: relative;
z-index: 991;
}
.ask-me .form-style-2 {
position: relative;
}
.ask-me .col-md-12 {
text-align: center;
padding-top: 41px;
}
.ask-me .col-md-12 a {
margin-right: 30px;
}
.ask-me .col-md-12 a:hover {
background-color: #373b43 !important;
}
.ask-me .col-md-12 p input {
background-color: #FFF;
border: none;
color: #2f3239;
font-size: 13px;
font-style: italic;
resize: none;
text-indent: 38px;
line-height: 48px;
border-radius: 2px;
height: 48px;
margin-top: 71px;
}
.ask-me .col-md-12 .publish-question {
bottom: 6px;
right: 6px;
}
/* page-content */
.container.main-content {
position: relative;
z-index: 991;
margin-top: 40px;
margin-bottom: 30px;
min-height: calc(100% - 197px);
}
.page-content, .about-author, .user-question, #related-posts {
box-sizing: border-box;
padding: 20px;
border: 1px solid #dedede;
background: #FFF;
box-shadow: 0 0 5px #dedede;
}
.page-content .widget, .widget .related-posts {
padding: 0 !important;
border: none;
box-shadow: none;
}
.page-content .boxedtitle, .main-content .boxedtitle {
margin-bottom: 20px;
padding-left: 20px;
border-bottom: 0;
}
.page-content p {
font-size: 13px;
font-weight: normal;
}
.main-content .boxedtitle {
margin-left: 0;
margin-right: 0;
}
.main-content .page-content .boxedtitle.page-title, .post-box .boxedtitle {
margin: -20px -20px 20px;
}
.main-content .page-content .boxedtitle.page-title {
box-shadow: none;
background: transparent;
position: relative;
margin-bottom: 10px !important;
}
.main-content .page-content .boxedtitle.page-title h2 {
padding: 20px 0 10px;
margin: 0 20px 20px 0;
border-bottom: 1px solid #dedede;
font-size: 20px;
font-weight: 400;
}
.boxedtitle.page-title h2 {
font-size: 16px;
font-weight: bold;
}
.main-content .boxedtitle h1, .main-content .boxedtitle h2, .main-content .boxedtitle h3, .main-content .boxedtitle h4, .main-content .boxedtitle h5, .main-content .boxedtitle h6 {
padding-top: 10px;
padding-bottom: 10px;
}
.body-header {
margin-bottom: 10px;
border-bottom: 1px solid #dedede;
}
.body-header .header-text {
font-size: 22px;
font-weight: 400;
display: inline-block;
text-transform: capitalize;
}
/*.body-header .header-text:first-letter {
text-transform: uppercase;
}*/
.body-header .header-note {
font-size: 14px;
font-weight: 400;
display: inline-block;
color: #6c757d;
margin-left: 10px;
text-transform: capitalize;
}
.single-post .post-inner {
padding: 0 20px 20px;
position: relative;
}
.about-author, .user-question {
background: #FFF;
}
.page-content {
overflow: hidden;
height: 100%;
}
.comment-respond {
background: #FFF;
border-radius: .25rem;
}
/* question */
.question {
box-sizing: border-box;
margin-bottom: 30px;
padding: 20px;
border: 1px solid #dedede;
background: #FFF;
box-shadow: 0 0 5px #dedede;
position: relative;
}
.tab-inner .question:first-child {
margin-top: 0;
}
.question-inner {
position: relative;
margin-left: 101px;
}
.question-tab .tabs {
margin-bottom: 30px;
}
.question-tab .tab a {
color: #2f3239;
font-size: 15px;
font-weight: normal;
background-color: transparent;
}
.question-tab .tab a:hover {
color: #2f3239;
}
.question-tab .tab a.current:hover {
color: #FFF;
}
.question-tab .tab-inner-warp {
background: transparent;
padding: 0;
}
.single-question {
padding: 20px 0;
margin-bottom: 10px;
}
.single-question .form-inputs p {
margin-bottom: 20px;
}
.question-meta {
padding: 0 20px 20px;
border-bottom: 1px solid #dedede;
overflow: hidden;
height: 100%;
}
.question-meta div, .question-meta span {
margin-bottom: 0 !important;
}
.single-question .question-inner {
margin-left: 0;
padding: 0 20px;
}
.question-author {
position: absolute;
top: 20px;
left: 20px;
float: left;
text-align: center;
width: 71px;
height: 71px;
overflow: hidden;
padding: 2px;
border: 1px solid #dedede;
border-radius: 50%;
}
.question-author img {
width: 65px;
height: 65px;
overflow: hidden;
border-radius: 50%;
}
.question-author-img {
position: relative;
display: block;
}
.question-author-img span {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 99;
display: block;
line-height: 65px;
overflow: hidden;
transition: all 0.2s linear;
border-radius: 50%;
}
.question-author-img:hover span:before {
opacity: 0.7;
filter: alpha(opacity=70);
content: "\f0fe";
font-family: "FontAwesome";
}
.question-author-name {
margin-top: 10px;
display: block;
}
.question-type {
text-align: center;
display: inline-block;
width: 30px;
height: 30px;
line-height: 30px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
font-size: 14px;
margin-right: 10px;
}
.question-type-main {
font-size: 11px;
margin: 0;
display: inline-block;
padding: 4px 10px;
position: absolute;
top: 20px;
right: 86px;
}
.question-type-main i {
margin-right: 5px;
}
.single-question .question-type {
position: absolute;
top: -50px;
left: 0;
font-size: 21px;
margin: 0;
}
.single-question.question h2 {
margin-left: 20px;
}
.question-content {
overflow: hidden;
height: 100%;
position: relative;
}
.question h2 {
margin: 0 0 5px 101px;
color: #474D5D;
overflow: hidden;
font-size: 20px;
font-weight: bold;
}
.question h2 a {
color: #2f3239;
}
.post .boxedtitle i, .single-question-title i {
padding: 15px;
display: inline-block;
line-height: 1;
margin-right: 10px;
}
.question h3 a {
color: #2f3239;
}
.question-vote {
float: left;
margin: 0 10px 0 0;
position: relative;
overflow: hidden;
height: 100%;
width: 14px;
}
.question-user-vote {
float: left;
margin-right: 10px;
font-size: 12px;
color: #6D8297;
}
.user-question .question-user-vote, .user-question .question-vote-result, .user-question .question-reply, .user-question .question-comment, .user-question .question-category, .user-question .question-date, .user-question .question-view, .user-question .question-answered, .user-question .question-favorite {
margin-bottom: 5px;
}
.user-question h3 {
font-size: 20px;
font-weight: bold;
padding-right: 89px;
}
.user-question h3 a:hover {
color: #2f3239 !important;
}
.user-question .question-type-main {
top: 20px;
bottom: inherit;
right: 20px;
}
.single-question .question-vote {
margin-left: 0;
}
.question-vote li {
display: block;
float: left;
}
.question-vote-up, .comment-vote-up, .question-vote-down, .comment-vote-down {
font-size: 23px;
color: #2f3239 !important;
display: block;
float: left;
height: 12px;
line-height: 12px;
margin-bottom: 2px;
}
.question-vote-down, .comment-vote-down {
margin-bottom: 0;
}
.question-vote-up:before, .comment-vote-up:before, .question-vote-down:before, .comment-vote-down:before {
font-family: "FontAwesome";
content: "\f0d8";
float: left;
height: 12px;
}
.question-vote-down:before, .comment-vote-down:before {
content: "\f0d7";
}
.question-vote-up i, .comment-vote-up i, .question-vote-down i, .comment-vote-down i, .question-vote-up i:before, .comment-vote-up i:before, .question-vote-down i:before, .comment-vote-down i:before {
float: right;
height: 13px;
display: block;
position: relative;
z-index: 2;
}
.question-vote-down i, .comment-vote-down i, .question-vote-down i:before, .comment-vote-down i:before {
transform: rotate(90deg);
-ms-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
-o-transform: rotate(90deg);
z-index: 1;
}
.question-vote-result, .single-question-vote-result {
float: left;
font-size: 13px;
color: #2f3239;
}
.single-question-vote-result {
float: right;
}
.single-question-vote > li:first-child a {
margin-right: 10px;
}
.single-question-vote-up, .single-question-vote-down {
background-color: #eee;
color: #666;
transition: all 0.6s linear;
float: right;
font-size: 13px;
height: 20px;
width: 20px;
line-height: 20px;
text-align: center;
margin-right: 5px;
}
.single-question-vote-up:hover {
background-color: #338338;
}
.single-question-vote-down:hover {
background-color: #990707;
}
.question-details {
float: left;
}
.single-question .question-details {
margin-right: 0;
}
.question-reply {
margin: 0 10px 0 0;
}
.question-reply, .question-date, .question-view, .question-comment, .question-category, .question-tags, .post-tags, .question-favorite, .question-answered {
margin: 0 20px 0 0;
float: left;
display: block;
}
.question-view {
margin-right: 0;
}
.question-date i, .question-view i, .question-comment i, .question-category i, .question-tags i, .post-tags i, .question-reply i, .question-answered i, .question-favorite i, .share-inside i {
margin-right: 5px;
}
.share-tags {
border-radius: .25rem;
-moz-border-radius: .25rem;
-webkit-border-radius: .25rem;
position: relative;
margin-bottom: 20px;
overflow: initial;
}
.question-tags, .post-tags {
margin-bottom: 0;
}
.question-tags, .post-tags {
text-transform: capitalize;
font-size: 12px;
display: inline-block;
float: left;
}
.share-inside {
float: left;
font-size: 12px;
cursor: pointer;
}
.share-inside-warp {
background-color: #FFF;
border: 1px solid #e5e5e5;
padding: 10px;
position: absolute;
bottom: 50px;
left: 20px;
font-size: 14px;
box-shadow: 1px 1px 3px #eee;
width: 150px;
display: none;
}
.single-post .share-inside {
margin-right: 0;
}
.single-post .share-inside-warp {
left: 20px;
}
.share-inside-show {
display: block;
}
.share-inside-l-arrow:before {
font-family: "FontAwesome";
content: "\f0d7";
position: absolute;
bottom: -17px;
left: 21px;
font-size: 20px;
color: #FFF;
}
.share-inside-f-arrow:before {
font-family: "FontAwesome";
content: "\f0d7";
position: absolute;
bottom: -19px;
left: 20px;
font-size: 22px;
color: #e5e5e5;
}
.single-post .share-inside-l-arrow:before {
bottom: -16px;
}
.single-post .share-inside-f-arrow:before {
bottom: -19px;
}
.share-inside-warp ul li {
margin-bottom: 10px;
}
.share-inside-warp ul li:last-child {
margin-bottom: 0;
}
.share-inside-warp ul li a {
margin: 0 10px 0 0;
color: #2f3239;
font-size: 12px;
}
.question-report {
float: right;
font-size: 12px;
background-color: #2f3239;
padding: 4px 10px;
position: absolute;
top: 20px;
right: 20px;
height: 23px;
line-height: 15px;
}
.question-answered {
float: left;
font-size: 14px;
font-weight: bold;
}
.question-desc {
margin-bottom: 20px;
padding-bottom: 30px;
line-height: 22px;
font-size: 13px;
border-bottom: 1px solid #dedede;
color: #848991;
}
.question-bottom-2 {
margin-top: 15px;
}
.user-question .question-answered i, .user-question .question-favorite i {
color: #5a5c5d;
}
.question .question-answered, .question .question-answered i {
font-size: 13px;
}
.question .question-answered, .user-question .question-answered i {
color: #ff2700;
}
.question-answered-done {
color: #318e08;
}
.question .question-answered-done, .user-question .question-answered-done i {
color: #318e08;
font-size: 13px;
}
.question-remove {
display: inline-block;
margin-right: 10px;
}
.question-date, .question-view, .question-favorite, .question-reply, .question-category a, .question-comment a {
font-size: 13px;
color: #2f3239;
}
.question-favorite i.icon-star, .question-remove i.icon-star {
color: #dfaa63;
}
.question-favorite {
color: #dfaa63;
}
.question-tags, .post-tags {
float: right;
margin-right: 0;
}
.question-tags i, .question-tags a, .post-tags i, .post-tags a {
font-size: 12px;
}
.question-tags a:after, .post-tags a:after {
content: ",";
padding: 0px 2px 0px 1px;
}
.question-tags a:last-child:after, .post-tags a:last-child:after {
content: "";
padding: 0px;
}
.question-tags a:hover, .post-tags a:hover {
color: #2f3239;
}
.question-favorite, .question-category, .question-date, .question-comment, .question-view, .question-category a, .question-comment a {
float: left;
}
.question-date i, .question-view i, .question-comment i, .question-category i, .question-reply i {
color: #2f3239;
}
.load-questions {
font-size: 16px;
font-weight: bold;
padding: 12px 10px;
display: block;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
text-align: center;
}
.load-questions i {
margin-right: 10px;
}
.load-questions:hover {
background-color: #2f3239;
}
.single-question .question-desc {
color: #2f3239;
}
.poll_1 {
width: 50%;
margin-top: 10px;
}
.poll_2 {
margin-top: 10px;
}
.poll_1 .progressbar-percent {
background-color: #c54133;
height: 20px;
}
.poll_1 .progressbar-percent.poll-result {
width: 100% !important;
}
.poll_1 .progressbar {
height: auto;
}
/* user profile */
.user-profile {
overflow: hidden;
height: 100%;
position: relative;
}
.user-profile .col-md-12 {
margin-bottom: 30px;
}
.page-content-user-profile {
padding-bottom: 0;
}
.user-profile-widget .ul_list li {
width: 49%;
float: left;
margin-bottom: 20px !important;
}
.user-profile-widget .ul_list li:nth-child(2n+1) {
margin-right: 2%;
}
.user-profile-p {
margin-bottom: 15px;
}
.about-user {
color: #2f3239;
margin-bottom: 10px !important;
}
.about-user span {
color: #2f3239;
}
.user-profile p {
margin: 30px 0;
font-weight: normal;
color: #848991;
}
.about-user li {
color: #2f3239;
font-size: 13px;
}
.user-profile-widget .ul_list {
margin-bottom: 0;
}
.user-profile-widget .ul_list *:last-child {
margin-bottom: 0;
}
.user-profile-widget li, .user-profile-widget li a {
color: #2f3239;
}
.user-profile-widget li i {
width: 15px;
font-size: 14px !important;
}
.user-follow-me {
color: #2f3239;
margin: 0 15px 0 0;
display: inline-block;
font-size: 13px;
}
.user-profile-img {
width: 85px;
float: left;
margin-right: 15px;
padding: 2px;
border: 1px solid #e0e0e0;
background-color: #FFF;
border-radius: 50%;
}
.user-profile-img img {
width: 100%;
border-radius: 50%;
}
.page-content-user {
padding-top: 0;
}
.user-question {
overflow: hidden;
height: 100%;
margin: 0 -20px;
border-top: none;
border-left: none;
border-right: none;
padding-bottom: 20px;
box-shadow: none;
}
.user-questions .user-question:last-child {
padding-bottom: 0;
border-bottom: none;
}
.user-points h3 {
float: left;
margin-right: 0;
margin-bottom: 0;
padding-right: 20px;
}
.user-points .question-user-vote, .user-points .question-vote-result, .user-points .question-date {
line-height: 25px;
}
.user-points .question-user-vote, .user-points .question-vote-result {
font-size: 13px;
color: #2f3239 !important;
margin-right: 20px;
}
.user-points .question-user-vote {
margin-right: 5px;
}
/* block-stats */
.block-stats {
margin-top: 30px;
overflow: hidden;
height: 100%;
}
.stats-head, .block-stats-1, .block-stats-2, .block-stats-3, .block-stats-4 {
width: 23.4%;
padding: 10px 15px;
float: left;
box-sizing: border-box;
margin: 0;
border: 1px solid #E8E7E7;
background-color: #FAFAFA;
font-weight: bold;
}
.block-stats-1 {
width: 29.7%;
color: #2f3239 !important;
font-weight: bold !important;
font-size: 14px !important;
}
.block-stats-4 {
margin-right: 0;
border-right: none !important;
}
.block-stats-1, .block-stats-2, .block-stats-3, .block-stats-4 {
text-align: center;
}
/* User stats */
.user-stats {
overflow: hidden;
height: 100%;
border: 1px solid #dedede;
}
.user-stats-head {
background-color: #f3f3f3;
border-bottom: 1px solid #dedede;
overflow: hidden;
height: 100%;
}
.stats-head {
background-color: transparent;
border: none;
border-right: 1px solid #dedede;
font-size: 14px;
margin-bottom: 0;
}
.user-stats-item {
background-color: #FFF;
border-bottom: 1px solid #e0e6ed;
overflow: hidden;
height: 100%;
}
.user-stats-item-last {
border-bottom: none;
}
.user-stats-item div {
border: none;
border-right: 1px solid #e0e6ed;
margin-bottom: 0;
color: #2f3239;
font-size: 13px;
}
/* Pagination */
.pagination {
overflow: hidden;
box-sizing: border-box;
float: right;
font-size: 13px;
font-weight: bold;
}
.page-content .pagination {
margin-bottom: 0;
}
.pagination li {
float: left;
}
.pagination .current span {
color: white;
}
.pagination a, .pagination span {
margin: 5px 5px 0 0;
padding: 5px 11px;
background-color: #dedede;
float: left;
border-radius: 2px;
}
.pagination a {
background-color: #e6e6e6;
}
.pagination a.next-button, .pagination a.prev-button {
padding: 4px 10px 3px 11px;
font-size: 21px;
line-height: 1;
}
.pagination a.next-button {
margin-right: 0;
}
.pagination a, .pagination, .pagination span {
color: #2f3239;
}
.pagination span {
transition: all 0.2s ease 0s;
}
/* single */
.social_icon ul li {
margin: 0 5px 5px 0;
float: left;
line-height: 31px;
}
.social_icon.f_right ul li {
margin: 0 0 5px 5px;
}
.social_icon a {
display: block;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
border: 1px solid #f1f1f1;
}
.social_icon a:hover {
background-color: #333;
border: 1px solid #333;
}
.social_icon.social_icon_2 a {
background-color: #666;
border: 1px solid #666;
}
.social_icon.social_icon_2 a:hover {
background-color: #EAEAEA;
border: 1px solid #E2E2E2;
color: #666;
}
.post-next-prev {
margin: 30px 0;
}
.post-next-prev p {
margin-bottom: 0;
}
.post-next-prev .prev-post {
float: left;
}
.post-next-prev .next-post {
float: right;
}
.post-next-prev .prev-post a, .post-next-prev .next-post a {
display: inline-block;
font-size: 14px;
font-weight: bold;
}
.about-author {
border-radius: .25rem;
-moz-border-radius: .25rem;
-webkit-border-radius: .25rem;
overflow: hidden;
display: block;
margin: 0 0 20px;
}
.author-image {
float: left;
position: relative;
margin-right: 20px;
overflow: hidden;
width: 71px;
height: 71px;
padding: 2px;
border: 1px solid #dedede;
border-radius: 50%;
}
.about-author .author-image img {
display: block;
float: left;
width: 65px;
height: 65px;
overflow: hidden;
border-radius: 50%;
}
.about-author .author-image a:before {
position: absolute;
width: 65px;
height: 65px;
top: 2px;
left: 2px;
z-index: 99;
display: block;
font-family: "FontAwesome";
text-align: center;
line-height: 65px;
border-radius: 50%;
}
.about-author .author-image a:hover:before {
content: "\f007";
opacity: 0.9;
filter: alpha(opacity=90);
}
.about-author .author-bio {
overflow: hidden;
height: 100%;
color: #2f3239;
font-size: 13px;
font-weight: normal;
}
.about-author .author-bio h4 {
margin: 0px 0 10px 0;
font-size: 16px;
font-weight: bold;
}
#related-posts {
padding: 20px;
margin-bottom: 20px;
border-radius: .25rem;
-moz-border-radius: .25rem;
-webkit-border-radius: .25rem;
}
#related-posts h2 {
margin-left: 0;
}
#related-posts li i {
margin: 0 5px 5px 0;
color: #2f3239;
}
.related-posts li {
margin-bottom: 10px;
}
.related-posts li i {
margin: 0 5px 5px 0;
color: #2f3239;
}
.related-posts li:last-child {
margin-bottom: 0;
}
.related-posts li a {
color: #2f3239;
}
.related-posts .post-type {
position: inherit;
float: left;
margin-right: 10px;
margin-left: 0;
text-transform: capitalize;
}
.related-item {
overflow: hidden;
}
.related-item .question-type {
float: left;
}
.related-posts li:hover .question-type {
background-color: #333;
}
.related-item .question-comments {
float: left;
margin-right: 10px;
position: relative;
}
.question-comments a {
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
display: block;
border-radius: 50%;
transition: all .20s;
}
.question-comments a:hover {
background-color: #333;
}
.related-item h3 {
padding-top: 2px;
font-size: 14px !important;
margin-bottom: 0;
font-weight: 400;
}
.related-item p {
margin: 5px 0;
font-size: 13px;
color: #848991;
font-weight: normal;
line-height: 22px;
}
.related-item span {
font-size: 12px;
color: #c5c4c4;
}
/* Comments */
#commentlist {
margin-bottom: 30px;
padding-bottom: 0;
border-bottom: 0;
}
.commentlist > li:first-child {
margin-top: -20px;
}
.comments {
margin-top: 30px;
}
.comment-body {
padding: 20px;
}
.commentlist {
list-style: none;
margin: 0;
}
.comment {
margin: 0 -20px;
border-bottom: 1px solid #dedede;
}
.children .comment {
margin: 0;
border-top: 1px solid #dedede;
border-bottom: none;
}
.children {
padding-left: 80px;
}
.comment-reply {
float: right;
font-size: 13px;
margin-top: 9px;
}
.comment-reply:hover {
color: #2f3239 !important;
}
.comment-reply i {
margin-right: 5px;
}
.commentlist li p {
margin-bottom: 0;
color: #848991;
font-weight: normal;
}
.commentlist li ul {
list-style: none;
}
.commentlist li .avatar {
float: left;
display: block;
overflow: hidden;
width: 71px;
height: 71px;
position: relative;
margin-right: 10px;
overflow: hidden;
padding: 2px;
border: 1px solid #dedede;
border-radius: 50%;
}
.commentlist li .avatar img {
display: block;
float: left;
width: 65px;
height: 65px;
overflow: hidden;
border-radius: 50%;
}
.commentlist li .comment-text {
overflow: hidden;
position: relative;
}
.comment-text .question-answered {
margin-top: 10px;
margin-bottom: 0;
}
.commentlist li .author {
margin-bottom: 10px;
}
.comment-author {
margin-top: 5px;
font-size: 14px;
font-weight: bold;
}
.comment-author a {
color: #2f3239;
}
.comment-vote {
float: left;
margin-top: 5px;
margin-right: 0;
}
.comment .question-vote-result {
margin-top: 10px;
margin-right: 20px;
}
.commentlist li .comment-meta {
float: left;
margin-top: 4px;
overflow: hidden;
height: 100%;
display: flex;
align-content: flex-start;
}
.commentlist li .author span {
display: block;
color: #2f3239;
}
.commentlist li .date {
font-size: 12px;
margin-top: 1px;
color: #a1a1a1;
margin-left: 8px;
}
.commentlist li .date i::before {
content: "\f044";
}
.commentlist li .date i {
color: #999;
margin-right: 2px;
}
.commentlist li em {
font-size: 11px;
color: #ccc;
font-style: normal;
margin-bottom: 30px;
display: block;
}
/* Respond */
#respond-inputs .input {
width: 45%;
margin-right: 10%;
float: left;
margin-bottom: 10px;
}
#respond-inputs input.last {
margin: 0;
}
#respond input, #respond-inputs input {
display: block;
width: 100%;
box-sizing: border-box;
margin: 0;
}
#respond textarea, #respond-inputs textarea {
display: block;
width: 100%;
box-sizing: border-box;
}
.form-submit {
overflow: hidden;
height: 100%;
margin-top: 10px !important;
margin-bottom: 0 !important;
}
.form-submit input[type="submit"] {
font-size: 15px;
font-weight: bold;
-webkit-font-smoothing: antialiased;
}
.form-style p span.required-error {
color: #ED2C3A;
font-size: 13px;
}
.message-done {
border: 1px solid #398f14;
padding: 20px;
}
#respond input#submit {
float: right;
font-size: 15px;
font-weight: bold;
width: 100%;
}
#respond label {
color: #2f3239;
display: block;
font-size: 13px;
font-weight: bold;
}
#respond label.required span {
margin-left: 3px;
color: #F00;
}
.full_width #respond-inputs p {
width: 300px;
}
.full_width #respond input {
width: 282px;
}
.full_width #respond textarea {
width: 922px;
height: 200px;
}
/* Widgets */
.widget {
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid rgba(0,0,0,.125);
border-radius: .25rem;
/*border-radius: 1rem;*/
margin-bottom: 20px;
}
.widget-header {
padding: .65rem 1.25rem;
margin-bottom: 0;
background-color: rgba(0,0,0,.03);
border-bottom: 1px solid rgba(0,0,0,.125);
}
.widget:last-child {
margin-bottom: 0;
}
.widget h3.widget_title {
font-size: 16px;
font-weight: 400;
padding: 0px;
margin: 2px 0px;
}
.widget a {
color: #555;
}
.widget-body {
margin: 0;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
border-radius: .25rem;
}
.widget .widget-body .category-item {
padding: 0px;
border-bottom: 1px solid rgba(0,0,0,.125);
position: relative;
display: block;
padding: .65rem 1.25rem;
}
.widget .widget-body .category-item:hover {
background-color: rgba(0,0,0,.03);
}
.widget .widget-body .category-item:last-child {
border-bottom-width: 0px;
}
#footer .widget h3.widget_title {
margin: 0 0 20px;
background: transparent;
box-shadow: none;
padding: 0;
border-bottom: none;
font-size: 18px;
}
.widget ul {
margin: 0;
padding: 0;
list-style: none;
}
.widget ul li {
position: relative;
overflow: hidden;
font-size: 14px;
padding-bottom: 10px;
}
#footer .widget ul li {
padding-bottom: 5px;
}
/* Widget Social */
.widget_social {
overflow: hidden;
height: 100%;
}
.widget_social li {
line-height: 15px;
float: left;
width: 100%;
height: 75px;
padding: 0;
transition: .4s linear;
margin-bottom: 10px;
}
.widget_social li a {
display: block;
}
.widget_social li a strong {
display: inline-block;
width: 100%;
height: 75px;
line-height: 24px;
font-size: 14px;
font-weight: bold;
color: #FFF;
margin-bottom: 10px;
transition: all 0.4s ease-in-out;
border-radius: 2px;
position: relative;
}
.widget_social li.facebook-fans a strong {
background-color: #5d82d1;
}
.widget_social li.twitter-followers a strong {
background-color: #40bff5;
}
.widget_social li.youtube-subs a strong {
background-color: #c4302b;
}
.widget_social li.rss-subscribers a strong {
background-color: #faa33d;
}
.widget_social li:hover a strong {
background-color: #2f3239;
}
.widget_social li span {
padding: 13.5px 0 0 10px;
display: inline-block;
}
.widget_social li a small {
font-size: 14px;
font-weight: bold;
padding-left: 10px;
}
.widget_social li i {
float: right;
font-size: 37.5px;
line-height: 75px;
margin: 0 10px;
width: 45px;
text-align: center;
}
/* Widget Menu */
.widget_menu_jquery {
top: inherit;
bottom: inherit;
position: inherit;
}
.widget_menu {
padding: 0;
}
.widget_menu li {
margin: 0 !important;
padding: 0 !important;
}
.widget_menu li a {
display: block;
padding: 10px 15px;
border-bottom: 1px solid #e5e5e5;
color: #2f3239;
border-left: 2px solid rgba(0,0,0,0);
}
.widget_menu li:last-child a {
border-bottom: none;
}
.widget_menu li.current_page_item a {
border-left-color: #2f3239;
position: relative;
}
.widget_menu li.current_page_item a:before {
content: '';
position: absolute;
height: 4px;
width: 4px;
top: 50%;
margin-top: -4px;
left: 0;
border-left: 4px solid #2f3239;
border-top: 4px solid rgba(0,0,0,0);
border-bottom: 4px solid rgba(0,0,0,0);
}
.widget_menu li a i {
font-size: 12px;
margin-right: 10px;
}
/* Widget Stats */
.widget.widget_stats li, .user-profile-widget .ul_list li {
color: #2f3239;
font-size: 14px;
font-weight: bold;
background-color: #eaeaeb;
margin-bottom: 10px;
padding: 10px !important;
}
.widget_stats li i, .user-profile-widget .ul_list li i {
width: 23px;
height: 23px;
line-height: 23px !important;
font-size: 11.5px !important;
text-align: center;
background-color: #2f3239;
}
.widget .ul_list {
margin-bottom: 0;
}
.widget ul li:last-child, .widget_contact ul li:last-child, .popular_posts ul li:last-child, .widget_contact ul li:last-child {
padding-bottom: 0;
margin-bottom: 0;
}
.popular_posts ul li:before, .widget_contact ul li:before {
margin: 0;
}
.popular_posts ul li h6 {
margin-bottom: 5px;
}
.sidebar_box {
border: 1px solid #dedede
}
.sidebar_box ul li {
padding: 0;
}
.sidebar_box ul li:last-child {
border-bottom: none;
}
.sidebar_box ul li:before {
content: "";
margin: 0;
}
.sidebar_box ul li a {
padding: 10px 15px;
display: block;
font-size: 14px;
color: #999;
}
.sidebar_box ul li a:hover {
background-color: #FAFAFA;
}
.sidebar_box ul li a:before {
content: "\f054";
margin: 0 5px 5px 0;
color: #c3c3c3;
font: 12px "FontAwesome";
transition: all 0.2s ease 0s;
}
.sidebar_box ul li a:hover:before {
color: #5a5c5d;
}
/* Highest points Widget */
.widget_highest_points ul li {
padding-bottom: 15px;
}
.widget_highest_points li h6 {
margin: 10px 0 5px;
font-weight: bold;
}
.widget_highest_points li h6 a:hover {
color: #2f3239;
}
.widget_highest_points .comment {
padding: 0;
border-bottom: 0;
color: #2f3239;
font-size: 13px;
}
.author-img {
float: left;
display: block;
overflow: hidden;
width: 71px;
height: 71px;
position: relative;
margin-right: 20px;
overflow: hidden;
padding: 2px;
border: 1px solid #dedede;
border-radius: 50%;
}
.author-img img {
display: block;
float: left;
width: 65px;
height: 65px;
overflow: hidden;
border-radius: 50%;
}
.widget_highest_points a:before {
position: absolute;
width: 65px;
height: 65px;
top: 2px;
z-index: 99;
display: block;
font-family: "FontAwesome";
text-align: center;
line-height: 65px;
border-radius: 50%;
}
.widget_highest_points .author-img a:hover:before {
content: "\f0fe";
opacity: 0.9;
filter: alpha(opacity=90);
}
/* Search Widget */
.widget_search form {
position: relative;
}
.widget_search input[type="text"] {
padding-left: 35px;
margin-bottom: 0;
width: 100%;
}
.widget_search .search-submit {
background: transparent;
border: none;
padding: 9px;
position: absolute;
top: 0;
left: 0;
cursor: pointer;
}
.search-submit:before {
content: "\f002";
font-family: "FontAwesome";
color: #999;
font-size: 15px;
}
/* Tag Cloud Widget */
.widget_tag_cloud {
display: block;
padding: 20px;
min-height: 1px;
padding: 1.25rem;
}
.widget_tag_cloud a {
display: inline-block;
margin-bottom: 10px;
margin-right: 1px;
padding: 5px 10px;
background-color: #596b77;
border-radius: 4px;
}
/* Embed Widget */
.widget_embed p {
margin-top: 10px;
}
.widget_embed iframe {
max-width: 100%;
}
/* Flickr Widget */
.widget_flickr img {
display: block;
width: 100%;
height: 100%;
overflow: hidden;
}
.widget_flickr a {
float: left;
height: 60.1px;
width: 60.1px;
position: relative;
margin-right: 5px;
margin-bottom: 5px;
overflow: hidden;
}
#footer .widget_flickr a {
height: 67.5px;
width: 67.5px;
}
.widget_flickr a:nth-child(3n) {
margin-right: 0;
}
/* Twitter Widget */
.widget_twitter ul {
list-style: none;
}
.widget_twitter ul li {
margin-bottom: 10px;
font-size: 12px;
line-height: 24px;
}
.widget_twitter ul li:before {
content: "\f099" !important;
font-family: "FontAwesome";
margin: 0 5px 5px 0 !important;
}
.widget_twitter ul li b a {
display: block;
font-size: 11px;
color: #c2c8d4;
}
.tweet_time {
font-size: 11px;
}
#footer .widget_twitter ul li {
color: #c2c8d4;
}
.widget_tp_widget_recent_tweets .tp_recent_tweets {
margin-bottom: 30px !important;
}
.widget_tp_widget_recent_tweets ul {
list-style: none;
}
/* Portfolio Widget */
.widget_portfolio .portfolio-item:last-child {
margin: 0;
}
.widget_portfolio .portfolio-widget-item {
float: left;
padding: 0 0 0px 0;
margin: 0 10px 10px 0;
overflow: hidden;
}
.col-sm-3.sidebar .widget_portfolio .portfolio-widget-item:nth-child(4n) {
margin-right: 10px;
}
.col-sm-3 .widget_portfolio .portfolio-widget-item:nth-child(3n), .col-sm-3.sidebar .widget_portfolio .portfolio-widget-item:nth-child(3n) {
border: none !important;
padding: 0;
margin-right: 0;
}
.widget_portfolio .portfolio-widget-item .portfolio_img {
float: left;
display: block;
overflow: hidden;
width: 60px;
height: 60px;
position: relative;
}
.widget_portfolio .portfolio-widget-item .portfolio_img img, .popular_img a img {
width: 100%;
height: 100%;
display: block;
position: relative;
}
.widget_portfolio .portfolio-widget-item .portfolio_img:before, .popular_posts .popular_img a:before, .widget_flickr a:before {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 99;
display: block;
font-family: "FontAwesome";
text-align: center;
line-height: 60.1px;
}
#footer .widget_portfolio .portfolio-widget-item .portfolio_img:before, #footer .popular_posts .popular_img a:before, #footer .widget_flickr a:before {
line-height: 67.5px;
}
.widget_portfolio .portfolio-widget-item:hover .portfolio_img:before, .popular_posts .popular_img:hover a:before, .widget_flickr a:hover:before {
content: "\f0fe";
opacity: 0.9;
filter: alpha(opacity=90);
}
/* Popular Posts Widget */
.popular_img {
margin: 0 15px 10px 0;
position: relative;
line-height: 0;
float: left;
margin: 0 10px 0 0;
height: 60px;
width: 60px;
overflow: hidden;
}
.popular_img a {
display: block;
overflow: hidden;
}
.popular_posts .popular_img a:before {
line-height: 60px;
}
.popular_img img:hover {
opacity: .7;
filter: alpha(opacity=70);
}
span.date, span.comment {
margin: 5px 0;
font-size: 12px;
color: #999;
}
span.date i, span.comment i {
margin: 0 5px 0 0;
}
/* Contact Widget */
.contact-us {
overflow: hidden;
height: 100%;
}
.contact-us .col-md-12 {
margin-bottom: 30px;
}
.contact-us iframe {
width: 100%;
display: block;
}
.contact-us p {
color: #848991;
}
.contact-us p.form-submit {
margin-bottom: 0;
}
.contact-us .form-style input.submit {
width: 100%;
}
.widget_contact ul li {
font-size: 13px !important;
font-weight: normal !important;
margin-bottom: 0;
color: #2f3239;
line-height: 26px !important;
padding-bottom: 0;
}
.widget_contact ul li p {
margin: 0 0 0 25px;
font-size: 13px;
color: #2f3239;
}
.widget_contact ul li span {
display: block;
margin-bottom: 10px;
font-size: 15px;
font-weight: bold;
}
.widget_contact ul li .tipsy span {
display: block;
}
.widget_contact ul li .icon_i span {
float: left;
margin-right: 10px;
}
.widget_contact ul li:last-child {
margin-bottom: 0;
}
.widget_contact ul li {
margin-bottom: 10px;
}
.widget_contact ul li i {
width: 25px;
}
.widget_contact ul li .icon_i {
margin-top: 11px;
display: inline-block;
margin-bottom: 0;
}
.widget_contact ul li .icon_i i {
margin-right: 0;
}
.widget_contact > p {
font-size: 13px;
line-height: 22px;
color: #c2c8d4;
}
.widget_contact ul li span {
font-size: 15px;
font-weight: bold;
}
/* Login Widget */
.widget_login .form-style-2 .form-inputs p {
width: 100% !important;
margin-bottom: 10px;
}
.widget_login input[type="text"], .widget_login input[type="password"] {
width: 100% !important;
color: #2f3239;
font-size: 12px;
font-weight: bold;
padding-left: 37px;
}
/* sidebar position */
.page-left-sidebar .sidebar {
float: left;
}
.page-left-sidebar > .row > .col-md-9 {
float: right;
}
.page-full-width .sidebar {
display: none;
}
/* boxedtitle */
.boxedtitle {
margin-bottom: 30px !important;
border-bottom: 2px solid #E8E7E7;
}
.boxedtitle h1, .boxedtitle h2, .boxedtitle h3, .boxedtitle h4, .boxedtitle h5, .boxedtitle h6 {
color: #474D5D;
padding-bottom: 10px;
margin: 0;
text-transform: capitalize;
}
.question .boxedtitle h2, .post-meta .boxedtitle h2, .post-meta .boxedtitle h3, .single-post .boxedtitle h2, .single-question-title h2 {
padding-bottom: 1px;
margin-bottom: 1px;
}
.boxedtitle h1 a, .boxedtitle h2 a, .boxedtitle h3 a, .boxedtitle h4 a, .boxedtitle h5 a, .boxedtitle h6 a {
color: #2B363C;
}
/* footer */
#footer {
background-color: #2f3239;
margin-top: 70px;
padding: 50px 0 30px;
}
#footer .widget {
color: #c2c8d4;
background: transparent;
border: none;
padding: 0;
box-shadow: none;
}
#footer .widget li {
font-size: 13px;
line-height: 23px
}
#footer .widget li::before {
content: "-";
margin-right: 5px;
}
#footer .widget_twitter li::before, #footer .related-posts li::before, #footer .widget_contact li::before {
content: "";
margin: 0;
}
#footer .widget a {
color: #c2c8d4;
}
#footer .related-item p {
color: #c2c8d4;
}
#footer-bottom {
padding: 16px 0;
font-size: 12px;
line-height: 24px;
}
#footer-bottom .social_icons ul li {
margin: 0 0 0 5px;
}
#footer-bottom .social_icons ul li a {
height: 24px;
width: 24px;
line-height: 24px;
color: #1d1e22;
border: 1px solid #1d1e22;
text-align: center;
border-radius: 100%;
}
#footer-bottom .social_icons ul li a i {
font-size: 12px;
}
.copyrights {
font-size: 13px;
}
.go-up {
position: fixed;
width: 40px;
height: 40px;
line-height: 40px;
font-size: 17px;
right: -60px;
bottom: 20px;
cursor: pointer;
text-align: center;
transition: all 0.2s linear;
z-index: 998;
border-radius: 2px;
}
.go-up:hover {
opacity: 1;
filter: alpha(opacity=100);
background-color: #2f3239;
}
/* Tipsy */
.tipsy {
font-size: 14px;
position: absolute;
padding: 5px;
z-index: 100000000;
}
.tipsy-inner {
background-color: #000;
max-width: 200px;
padding: 5px 8px 4px 8px;
text-align: center;
box-shadow: 0 0 2px #000;
}
.tipsy-arrow {
position: absolute;
width: 0;
height: 0;
line-height: 0;
border: 5px dashed #000;
}
.tipsy-arrow-n {
border-bottom-color: #000;
}
.tipsy-arrow-s {
border-top-color: #000;
}
.tipsy-arrow-e {
border-left-color: #000;
}
.tipsy-arrow-w {
border-right-color: #000;
}
.tipsy-n .tipsy-arrow {
top: 0;
left: 50%;
margin-left: -5px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-nw .tipsy-arrow {
top: 0;
left: 10px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-ne .tipsy-arrow {
top: 0;
right: 10px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-s .tipsy-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-sw .tipsy-arrow {
bottom: 0;
left: 10px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-se .tipsy-arrow {
bottom: 0;
right: 10px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.tipsy-e .tipsy-arrow {
right: 0;
top: 50%;
margin-top: -5px;
border-left-style: solid;
border-right: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
.tipsy-w .tipsy-arrow {
left: 0;
top: 50%;
margin-top: -5px;
border-right-style: solid;
border-left: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
/* breadcrumbs */
.breadcrumbs {
margin-bottom: 70px;
line-height: 50px;
}
.breadcrumbs .container {
padding-top: 24px;
padding-bottom: 24px;
position: relative;
z-index: 991;
}
.breadcrumbs h1 {
float: left;
margin: 0;
font-size: 25px;
}
.breadcrumbs h1 i {
margin-right: 10px;
}
.crumbs {
float: left;
line-height: 24px;
padding-top: 15px;
font-size: 13px;
}
.crumbs a {
color: #FFF !important;
}
.crumbs .current {
color: #2f3239;
}
.crumbs i {
font-size: 17px;
margin-right: 10px;
}
.crumbs-span {
margin: 0 5px;
}
/* Forms */
.form-inputs p {
width: 32%;
margin-right: 2%;
margin-bottom: 10px;
float: left;
overflow: hidden;
height: 100%;
}
.form-textarea p {
overflow: hidden;
height: 100%;
}
.form-inputs p:last-child {
margin-right: 0;
}
.form-style input, .form-style textarea {
display: block;
width: 100%;
margin: 0;
box-sizing: border-box;
}
.form-style select {
display: block;
margin: 0;
box-sizing: border-box;
}
.form-style input[type="checkbox"], .form-style input[type="radio"] {
width: auto;
float: left;
margin: 5px 10px 0 1px;
}
.form-style input[type="checkbox"] {
margin: 2px 10px 0 1px;
}
.form-style textarea {
display: block;
width: 100%;
box-sizing: border-box;
resize: vertical;
}
.form-style label {
color: #2f3239;
display: block;
font-size: 13px;
font-weight: bold;
margin-top: 9px;
}
.form-style-3 label, .form-style-4 label {
margin-top: 0;
}
.form-style label.required span {
margin-left: 3px;
color: #F00;
}
.full_width .form-inputs p {
width: 32%;
}
.full_width .form-style input[type="checkbox"], .full_width .form-style input[type="radio"] {
width: auto;
}
.full_width .form-style textarea {
height: 200px;
}
.form-style input.submit {
width: 100%;
float: right;
}
.form-style p span {
font-size: 12px;
font-weight: normal;
margin-top: 5px;
color: #848991;
}
.form-style p span span.color {
color: #b9b7b7;
}
.form-style-2 .form-inputs p {
width: 60%;
margin-right: 0;
float: none;
}
.box_icon .form-style textarea {
border-color: #E8E7E7;
}
.form-style-2 .form-style input:not([tpye=checkbox]) {
width: 100%;
}
.form-style-3 .form-inputs p {
width: 100% !important;
margin-right: 0;
float: none;
}
.form-style-3 .form-style input:not([tpye=checkbox]) {
width: 100%;
}
.form-style-4 .form-inputs p {
width: 49%;
}
.form-style-4 .form-inputs p:nth-child(2n) {
margin-right: 0;
}
.form-style-3 input[type="file"], .form-style-4 input[type="file"] {
width: auto;
display: inline-block;
}
.form-style-5.form-style label {
float: left;
width: 19%;
margin-top: 9px;
margin-right: 1%;
}
.form-style-5.form-style input[type="text"], .form-style-5.form-style input[type="email"], .form-style-5.form-style input[type="password"], .form-style-5.form-style textarea {
width: 80%;
float: left;
}
.form-description {
margin-left: 18%;
}
/* Checkboxes and Radio inputs */
input[type="radio"] {
cursor: pointer;
margin: 0;
-webkit-appearance: none;
-webkit-margin-start: 0;
-webkit-margin-end: 3px;
display: inline-block;
height: 19px;
position: relative;
vertical-align: baseline;
width: 19px !important;
background: #FFF;
border-radius: 100%;
border: 1px solid #dedede;
}
input[type="radio"]:checked::before {
-webkit-margin-start: 3px;
background: #2f3239;
border-radius: 100%;
content: '';
display: inline-block;
font-size: 9px;
height: 9px;
left: 1px;
margin-top: 4px;
opacity: 1;
position: absolute;
top: 0;
vertical-align: top;
width: 9px;
}
input[type="checkbox"] {
cursor: pointer;
margin: 0;
-webkit-appearance: none;
-webkit-margin-start: 0;
-webkit-margin-end: 3px;
display: inline-block;
height: 16px;
position: relative;
vertical-align: baseline;
width: 16px !important;
border: none;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
}
input[type="checkbox"]:checked::before {
-webkit-margin-start: 0;
font-family: "FontAwesome";
content: "\f00c";
font-size: 12px;
height: 22px;
display: block;
position: relative;
top: 1px;
text-align: center;
}
/* Ask Question */
.ask-question .form-style label {
float: left;
width: 17%;
margin-right: 1%;
margin-top: 9px;
}
.ask-question .form-description {
width: 80%;
display: inline-block;
}
#question-title, #question-details, .taglist .input input {
float: left;
width: 82%;
}
.taglist .input input {
width: 100% !important;
}
.poll-li {
overflow: hidden;
position: relative;
}
.del-poll-li {
display: block;
overflow: hidden;
cursor: pointer;
line-height: 29px;
font-size: 14.5px;
height: 29px;
width: 29px;
position: absolute;
top: 5px;
right: 6px;
background-color: #2f3239;
text-align: center;
border-radius: 2px;
}
.move-poll-li {
display: block;
overflow: hidden;
cursor: pointer;
line-height: 0;
font-size: 12px;
position: absolute;
top: 15px;
left: 15px;
color: #bdbbbb;
}
.poll-li input[type="text"] {
padding-left: 35px;
padding-right: 35px;
}
.ui-state-highlight, .removered {
background: #fffdea;
border: none;
display: block;
width: 100%;
box-sizing: border-box;
margin-bottom: 10px;
height: 43px;
}
.removered, .removered input[type="text"] {
background: #ffb7b7;
border: 1px solid #ffb7b7;
}
.taglist {
position: relative;
height: 100%;
overflow: hidden;
}
.taglist .tag {
margin-right: 5px;
float: left;
}
.taglist .tag span {
font-size: 14px;
font-style: normal;
}
.taglist .tag a.delete span {
display: none;
}
.taglist .tag a.delete {
cursor: pointer;
}
.taglist .tag a.delete:before {
font-family: "FontAwesome";
content: "\f057";
margin-left: 5px;
cursor: pointer;
font-size: 16px;
}
.fileinputs {
position: relative;
float: left;
margin-bottom: 20px;
width: 82%;
}
.form-style-2 .fileinputs {
width: 84%;
}
.fakefile {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 100%;
}
.fakefile button {
cursor: pointer;
background-color: #f3f3f3;
border: 1px solid #dedede;
padding: 10px;
position: relative;
width: 100%;
text-align: left;
font-size: 13px !important;
padding: 12px 15px !important;
height: 43px;
}
.fileinputs span {
padding: 7px 8px;
font-size: 11px;
font-style: normal;
position: absolute;
top: 7px;
right: 7px;
border-radius: 2px;
}
.fileinputs:hover span {
background-color: #212121;
}
.fileinputs span i {
margin-right: 5px;
color: #2f3239;
}
.fileinputs input.file {
position: relative;
padding: 12px;
cursor: pointer;
-moz-opacity: 0;
filter: alpha(opacity= 0);
opacity: 0;
z-index: 2;
width: 100%;
}
.fileinputs:hover input[type="button"] {
background-color: #333;
}
#publish-question {
width: 100%;
}
#question-submit .form-inputs p {
margin-bottom: 30px;
}
#question-submit .form-inputs p.question_poll_p {
margin-bottom: 20px;
line-height: 26px;
}
#question-submit .form-inputs p.question_poll_p label, #question-submit .form-inputs p.question_poll_p span {
margin-top: 4px;
}
.styled-select {
position: relative;
float: none;
clear: right;
display: inline-block;
margin-top: 0 !important;
}
select {
border: 0;
padding: 8px;
outline: none;
font-size: 13px;
border-radius: 0;
-webkit-appearance: button;
-webkit-user-select: none;
color: #2f3239;
border: 1px solid #dedede;
transition: border .25s linear, color .25s linear, background-color .25s linear;
background-color: #f3f3f3;
width: 100%;
}
.styled-select {
position: relative;
float: none;
clear: right;
display: inline-block;
width: 82%;
}
.styled-select::before {
content: "\f107";
font: normal 14.5px/29px "FontAwesome";
text-align: center;
height: 29px;
width: 29px;
position: absolute;
top: 5px;
right: 5px;
-webkit-margin-start: 3px;
border-radius: 2px;
}
.question_poll {
margin: 0 10px 0 0 !important;
font-size: 13px !important;
color: #2f3239 !important;
font-style: normal !important;
float: left;
}
.poll-description {
float: left;
margin: 0 !important;
}
.poll_options {
position: relative;
margin-bottom: 20px;
}
.form-style-3 .form-inputs p.add_poll {
float: right;
width: auto !important;
margin: 0 !important;
position: absolute;
bottom: 16px;
right: 42px;
z-index: 9;
height: 29px;
}
.form-style-3 .form-inputs p #add_poll {
padding: 0 8px;
font-size: 11px;
height: 29px;
}
.form-style-3 .form-inputs p #add_poll i {
margin-right: 5px;
color: #2f3239;
}
#question_poll_item {
float: left;
width: 82%;
margin-left: 18%;
}
.form-inputs #question_poll_item p {
margin-bottom: 10px;
}
#add_poll {
margin: 0;
}
#add_poll:hover {
background-color: #212121;
}
#question_poll::before {
top: 2px;
}
#question-submit input[type="checkbox"] {
height: 29px;
width: 29px !important;
border: 1px solid #dedede;
background-color: #f3f3f3;
margin-top: 0;
}
#question-submit input[type="checkbox"]:checked::before {
color: #2f3239;
height: 29px;
}
/* login */
.login .page-content {
padding: 20px;
}
.login p {
font-size: 13px;
margin-bottom: 20px;
}
.login .form-inputs p {
margin-bottom: 10px;
}
.login-submit {
float: left;
margin: 10px 0 0 0;
display: block;
width: 100%;
}
.login-submit input {
width: 100% !important;
font-size: 15px !important;
font-weight: bold;
-webkit-font-smoothing: antialiased;
}
.rememberme {
float: left;
margin-top: 20px;
}
.rememberme label {
margin: 0;
display: inline;
font-size: 13px;
}
ul.login-links {
margin-top: 20px;
float: left;
}
ul.login-links li {
padding: 0;
font-size: 13px;
}
ul.login-links a {
color: #2f3239;
}
.login-links i {
margin-right: 10px;
}
.login-text {
position: relative;
}
.login-password {
position: relative;
}
.login-text i, .login-password i {
position: absolute;
top: 10px;
left: 10px;
font-size: 21.5px;
}
.login-text input, .login-password input {
padding-left: 37px;
}
.login-password a {
background-color: #2f3239;
position: absolute;
top: 9px;
right: 9px;
padding: 0 10px;
font-size: 11px;
border-radius: 2px;
}
.signup {
font-size: 15px;
font-weight: bold;
margin: 0;
}
/* Box icons and icons */
.box_icon {
position: relative;
margin-bottom: 30px;
}
.icon_i .icon_circle {
position: relative;
}
.box_warp {
padding: 20px;
}
.box_warp, .box_warp_colored:hover {
background-color: #FAFAFA;
border: 1px solid #E8E7E7;
border-bottom-width: 4px;
color: #555;
}
.box_warp_colored:hover a {
color: #555;
}
.box_icon.box_warp.box_no_background {
background-color: transparent !important;
color: #555;
}
.box_icon.box_warp.box_no_border {
border: none;
padding: 0;
}
.box_icon:hover span i {
color: #474747;
}
.box_icon p {
font-size: 13px;
color: #2f3239;
}
.box_icon .icon_i span, .box_icon .icon_i img {
margin-bottom: 15px;
}
.icon_i {
vertical-align: middle;
display: inline-block;
}
.icon_i i, .icon_i span {
transition: all 0.2s linear;
box-sizing: initial !important;
}
.icon_i.f_left {
margin-right: 15px;
}
.icon_i.f_right {
margin-left: 15px;
}
.box_warp_colored .icon_i i, .box_warp_colored a {
transition: all 0s linear;
}
.bg_white {
background-color: #FFF;
}
.bg_moderate_red {
background-color: #c4503e;
}
.icon_circle, .icon_square, .icon_soft_r {
background-color: #474747;
text-align: center;
transition: all 0.2s linear;
display: inline-block;
position: relative;
}
.icon_circle span.icons, .icon_square span.icons, .icon_soft_r span.icons {
margin: 0;
}
.box_text .icon_circle, .box_text .icon_square, .box_text .icon_soft_r {
margin-right: 10px;
}
.box_text h3 .icon_i span {
margin-bottom: 0;
}
.box_text h3 .icon_i {
margin-bottom: 2px;
}
.box_icon > div p:last-child, .box_icon .button {
margin-bottom: 0;
}
.icon_circle {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
}
.icon_soft_r {
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
span.small_arrow_dowm {
margin-bottom: 25px;
}
.icon_soft_r:before {
border-color: #f78f1e transparent transparent transparent;
}
.box_icon:hover .icon_soft_r i, .box_icon:hover .icon_square i {
color: #474747;
}
.ul_icons li {
margin-bottom: 10px;
}
.page-shortcode *:last-child {
margin-bottom: 0;
}
.icon_shortcode .ul_icons li {
font-size: 13px;
}
.icon_shortcode .ul_icons li i {
color: #2f3239;
width: 25px;
}
.ul_icons li [class^="icon-"], .ul_icons li [class*=" icon-"], .ul_icons li [class^="social_icon-"], .ul_icons li [class*=" social_icon-"], .ul_icons li [class^="icons-"], .ul_icons li [class*=" icons-"] {
font-size: 20px;
float: left;
margin-right: 10px;
}
.ul_icons li [class^="icon-"], .ul_icons li [class*=" icon-"] {
margin-top: -2px;
}
.ul_icons li [class^="icons-"], .ul_icons li [class*=" icons-"] {
float: inherit;
}
.ul_icons [class^="icon-"], .ul_icons [class*=" icon-"] {
line-height: inherit;
}
[class^="icons-"],
[class*=" icons-"] {
display: inline-block;
background-image: url(images/icons.png);
background-position: top left;
background-repeat: no-repeat;
line-height: 1;
vertical-align: middle !important;
width: 32px;
height: 32px;
}
.icons-64 {
background-position: 0 0;
}
.icons-addressbook {
background-position: 0 -82px;
}
.icons-archive-delete {
background-position: 0 -164px;
}
.icons-archive-download {
background-position: 0 -246px;
}
.icons-archive-new {
background-position: 0 -328px;
}
.icons-back {
background-position: 0 -410px;
}
.icons-bookmark {
background-position: 0 -492px;
}
.icons-burn {
background-position: 0 -574px;
}
.icons-calculator {
background-position: 0 -656px;
}
.icons-cash {
background-position: 0 -738px;
}
.icons-cd {
background-position: 0 -820px;
}
.icons-chat {
background-position: 0 -902px;
}
.icons-clapperboard {
background-position: 0 -984px;
}
.icons-color {
background-position: 0 -1070px;
}
.icons-copy {
background-position: 0 -1148px;
}
.icons-creditcard {
background-position: 0 -1230px;
}
.icons-desktop-alternative {
background-position: 0 -1312px;
}
.icons-desktop {
background-position: 0 -1394px;
}
.icons-down {
background-position: 0 -1476px;
}
.icons-edit {
background-position: 0 -1558px;
}
.icons-exclamation {
background-position: 0 -1640px;
}
.icons-exit {
background-position: 0 -1722px;
}
.icons-folder-forward {
background-position: 0 -1804px;
}
.icons-folder-smart {
background-position: 0 -1886px;
}
.icons-folder {
background-position: -82px 0;
}
.icons-forward-black {
background-position: -82px -82px;
}
.icons-forward-mail {
background-position: -82px -164px;
}
.icons-forward {
background-position: -82px -246px;
}
.icons-globe {
background-position: -82px -328px;
}
.icons-harddrive {
background-position: -82px -410px;
}
.icons-heineken {
background-position: -82px -492px;
}
.icons-help {
background-position: -82px -574px;
}
.icons-info {
background-position: -82px -656px;
}
.icons-install {
background-position: -82px -738px;
}
.icons-intel {
background-position: -82px -820px;
}
.icons-keyboard {
background-position: -82px -902px;
}
.icons-lock {
background-position: -82px -984px;
}
.icons-mac-alternative {
background-position: -82px -1066px;
}
.icons-mac-alternative2 {
background-position: -82px -1148px;
}
.icons-mac {
background-position: -82px -1230px;
}
.icons-mail {
background-position: -82px -1312px;
}
.icons-minus-white {
background-position: -82px -1394px;
}
.icons-minus {
background-position: -82px -1476px;
}
.icons-monitor {
background-position: -82px -1558px;
}
.icons-moon-alternative {
background-position: -82px -1640px;
}
.icons-moon {
background-position: -82px -1722px;
}
.icons-movies {
background-position: -82px -1804px;
}
.icons-music {
background-position: -82px -1886px;
}
.icons-new {
background-position: -164px 0;
}
.icons-next {
background-position: -164px -82px;
}
.icons-notebook {
background-position: -164px -164px;
}
.icons-open {
background-position: -164px -246px;
}
.icons-pause {
background-position: -164px -328px;
}
.icons-phone {
background-position: -164px -410px;
}
.icons-picture-cast {
background-position: -164px -492px;
}
.icons-picture {
background-position: -164px -574px;
}
.icons-play {
background-position: -164px -656px;
}
.icons-plus {
background-position: -164px -738px;
}
.icons-podcast {
background-position: -164px -820px;
}
.icons-preferences {
background-position: -164px -902px;
}
.icons-public {
background-position: -164px -984px;
}
.icons-record {
background-position: -164px -1066px;
}
.icons-refresh {
background-position: -164px -1148px;
}
.icons-remove {
background-position: -164px -1230px;
}
.icons-rewind-black {
background-position: -164px -1312px;
}
.icons-rewind {
background-position: -164px -1394px;
}
.icons-rss-alternative {
background-position: -164px -1476px;
}
.icons-rss {
background-position: -164px -1558px;
}
.icons-search {
background-position: -164px -1640px;
}
.icons-send {
background-position: -164px -1722px;
}
.icons-server {
background-position: -164px -1804px;
}
.icons-settings {
background-position: -164px -1886px;
}
.icons-smiley-sad {
background-position: -246px 0;
}
.icons-smiley {
background-position: -246px -82px;
}
.icons-splash {
background-position: -246px -164px;
}
.icons-star {
background-position: -246px -246px;
}
.icons-stop-alternative2 {
background-position: -246px -328px;
}
.icons-stop {
background-position: -246px -410px;
}
.icons-stop-alternative {
background-position: -246px -492px;
}
.icons-sun-alternative {
background-position: -246px -574px;
}
.icons-sun {
background-position: -246px -656px;
}
.icons-terminal {
background-position: -246px -738px;
}
.icons-trash-full {
background-position: -246px -820px;
}
.icons-trash {
background-position: -246px -902px;
}
.icons-unarchive {
background-position: -246px -984px;
}
.icons-universal {
background-position: -246px -1066px;
}
.icons-unread {
background-position: -246px -1148px;
}
.icons-up {
background-position: -246px -1230px;
}
.icons-user {
background-position: -246px -1312px;
}
.icons-users {
background-position: -246px -1394px;
}
.icons-window {
background-position: -246px -1476px;
}
.icons-work {
background-position: -246px -1558px;
}
.icons-zoom-in {
background-position: -246px -1640px;
}
.icons-zoom-out {
background-position: -246px -1722px;
}
.icons-none {
background: none;
}
h1 [class^="icons-"], h1 [class*=" icons-"],
h2 [class^="icons-"], h2 [class*=" icons-"],
h3 [class^="icons-"], h3 [class*=" icons-"],
h4 [class^="icons-"], h4 [class*=" icons-"],
h5 [class^="icons-"], h5 [class*=" icons-"],
h6 [class^="icons-"], h6 [class*=" icons-"] {
margin-top: -2px;
margin-right: 12px;
}
h1 [class^="icons-"], h1 [class*=" icons-"] {
margin-top: -5px;
}
h2 [class^="icons-"], h2 [class*=" icons-"] {
margin-top: -3px;
}
.icons {
margin: 0;
}
.icons [class^="icons-"], .icons [class*=" icons-"] {
display: block;
float: left;
margin: 0px 15px 0px 0;
line-height: 32px;
vertical-align: text-bottom;
}
.icons p {
margin: 0 0 0 47px;
}
.icons h3 {
font-size: 16px;
margin: -21px 0 8px 47px;
}
/* Lists */
.ul_list {
margin-bottom: 30px;
}
.ul_list ul {
margin-bottom: 0;
}
.ul_list li {
line-height: 25px;
margin-bottom: 5px;
transition: all 0.2s linear;
list-style: none;
color: #2f3239;
font-size: 13px;
}
.ul_list[class^=" ul_list-social_icon-"] li:before, .ul_list[class*=" ul_list-social_icon-"] li:before, .ul_list[class^=" ul_list-social_icon-"] li i, .ul_list[class*=" ul_list-social_icon-"] li i {
font-family: "fontello";
}
.ul_list li:before, .ul_list li i, .ul_list[class^="ul_list-icon-"] li:before, .ul_list li i[class^="icon-"], .ul_list[class*="ul_list-icon-"] li:before, .ul_list li i[class*="ul_list-icon-"], .ul_list[class^="ul_list-social_icon-"] li:before, .ul_list li i[class^="social_icon-"], .ul_list[class*="ul_list-social_icon-"] li:before, .ul_list li i[class*="social_icon-"] {
content: "\f105";
font-family: "FontAwesome";
text-transform: none !important;
margin-right: 9px;
font-size: 14px;
display: inline-block;
line-height: normal;
vertical-align: baseline;
transition: all 0.2s linear;
}
.ul_list[class^="ul_list-icon-"] li:before, .ul_list[class*=" ul_list-icon-"] li:before, .ul_list[class^="ul_list-social_icon-"] li:before, .ul_list[class*=" ul_list-social_icon-"] li:before {
content: "";
margin-right: 0;
font-size: 0;
}
.ul_list_square ul li i, i.ul_l_square {
height: 22px;
width: 22px;
padding: 1px;
line-height: 22px !important;
}
.ul_list_circle ul li i, i.ul_l_circle {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
height: 23px;
width: 23px;
line-height: 23px !important;
}
.ul_list_circle i.ul_l_square {
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
}
.ul_list_square i.ul_l_circle {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
}
.ul_list_square ul li i, .ul_list_circle ul li i, i.ul_l_square, i.ul_l_circle {
background-color: #474747;
font-size: 11px !important;
display: inline-block;
text-align: center;
margin-right: 10px;
position: relative;
}
.ul_list li ul {
margin: 10px 0 10px 30px;
}
.ul_list_default ul li {
list-style: inside;
}
.ul_list_default ol li {
list-style: decimal inside;
font-size: 13px;
}
.ul_list_default ul li, .ul_list_default ol li {
margin-bottom: 5px;
line-height: 25px;
color: #2f3239;
}
/* Sections */
.section-warp {
padding: 30px 0;
margin-bottom: 30px;
width: 100%;
position: relative;
}
.section-warp.parallax {
background-size: cover !important;
background-clip: padding-box !important;
background-attachment: fixed;
}
.section-warp > .container > section > *:last-child {
margin-bottom: 0;
}
.section-warp.section-transparent {
background-color: #FAFAFA;
}
.section-warp iframe, .section-warp object, .section-warp embed {
width: 100%;
border: none;
max-width: 100%;
display: block;
}
/* Accordion & Toggle */
.accordion {
margin-bottom: 30px;
}
.accordion .accordion-title {
display: block;
margin-bottom: 10px;
background-color: #4b4c4d;
position: relative;
font-size: 14px;
}
.accordion .accordion-title.active {
margin-bottom: 0;
}
.accordion .accordion-title a {
display: block;
padding: 10px 15px;
background-color: #2f3239;
}
.accordion .accordion-title a:before, .accordion .accordion-title.active a:before {
font-family: "FontAwesome";
float: right;
font-size: 10px;
position: absolute;
top: 50%;
right: 10px;
line-height: 0;
}
.accordion .accordion-title a:before {
content: "\f067";
}
.accordion .accordion-title.active a:before {
content: "\f068";
}
.accordion .accordion-title a i {
margin: 0 8px 0 0;
}
.accordion .accordion-inner {
padding: 15px;
display: none;
color: #2f3239;
}
.accordion .accordion-inner div {
max-width: 100%;
}
.accordion.acc-style-2 .accordion-title, .accordion.acc-style-3 .accordion-title {
border: 1px solid #E8E7E7;
background-color: #F7F7F7;
}
.accordion.acc-style-2 .accordion-title a, .accordion.acc-style-3 .accordion-title a {
color: #333;
}
.accordion.acc-style-3 .accordion-title:hover {
background-color: #333;
}
.accordion.acc-style-2 .accordion-title a, .accordion.acc-style-2 .accordion-title {
background-color: #F7F7F7;
color: #333;
}
.accordion.acc-style-2 .accordion-title a:before {
background-color: #e6e6e6;
position: absolute;
color: #767676;
top: 0;
right: 0;
line-height: 0;
padding: 21px 18px;
}
.accordion.acc-style-2 .accordion-title.active, .accordion.acc-style-4 .accordion-title.active {
background-color: transparent;
}
.accordion.acc-style-4 .accordion-title {
background: transparent;
}
.accordion.acc-style-4 .accordion-title {
border-bottom: 1px solid #DEDEDE;
}
.accordion.acc-style-4 .accordion-title a {
padding: 10px 0;
}
.accordion.acc-style-4 .accordion-inner {
padding: 14px 0;
}
.accordion.acc-style-4 .accordion-title.active {
border-bottom: none;
}
.accordion.acc-style-4 .accordion-title a, .accordion.acc-style-4 .accordion-title.active a, .accordion.acc-style-4 .accordion-title.active a:before, .accordion.acc-style-4 .accordion-title.active a i {
color: #4B4C4D;
}
.accordion.accordion-no-before .accordion-title a:before {
content: "";
}
/* Tabs */
.tabs-warp {
margin-bottom: 30px;
}
.tabs {
overflow: hidden;
height: 100%;
position: relative;
border-bottom: 2px solid #e5e5e5;
}
.tab a {
float: left;
margin-right: 5px;
display: block;
padding: 10px 16px 11px 16px;
background-color: #2f3239;
cursor: pointer;
font-size: 14px;
}
.tab a.current {
cursor: default;
border-color: #e5e5e5;
}
.tabs-vertical .tab a {
border: 1px solid rgba(0,0,0,0);
border-left: 2px solid rgba(0,0,0,0);
}
.tabs-vertical .tab a.current {
border-right: none;
}
.tab a i, .tab a [class^="icons-"], .tab a [class*=" icons-"] {
margin-right: 5px;
}
.tab a.current i {
opacity: 0.9;
filter: alpha(opacity=90);
}
.tab-inner-warp {
padding: 20px;
color: #2f3239;
}
.tab-inner-warp .tab-inner > *:last-child {
margin-bottom: 0;
}
.tabs-style-2 .tabs, .tabs-style-3 .tabs {
border-bottom: none;
top: 1px;
}
.tabs-style-2 .tab a, .tabs-style-3 .tab a {
color: #666;
border: 1px solid #d3d3d3;
background-color: #FAFAFA;
margin-right: -1px;
margin-bottom: 0;
}
.tabs-style-2 .tab a:hover, .tabs-style-3 .tab a {
color: #666;
background-color: #FAFAFA;
}
.tabs-style-3 .tab a:hover {
background-color: #333;
}
.tabs-style-2 .tab a.current {
background-color: #FAFAFA;
border-bottom-color: #FFF;
color: #333;
}
.tabs-style-2 .tab-inner-warp, .tabs-style-3 .tab-inner-warp {
background-color: #FAFAFA;
border: 1px solid #d3d3d3;
padding: 20px;
box-shadow: 0px 1px 1px 0px rgba(180, 180, 180, 0.1);
}
.tabs-vertical .tabs {
float: left;
width: 160px;
border-bottom: none;
}
.tabs-vertical.tabs-long .tabs {
width: 235px;
}
.tabs-vertical .tab {
width: 100%;
height: auto;
}
.tabs-vertical .tab a {
margin-bottom: 3px;
margin-right: 0;
float: none;
}
.tabs-vertical.tabs-style-2 .tab a.current, .tabs-vertical.tabs-style-3 .tab a.current {
border-bottom-color: #d3d3d3;
border-right-color: #FFF;
}
.tabs-vertical.tabs-style-2 .tabs, .tabs-vertical.tabs-style-3 .tabs {
top: 0;
left: 1px;
}
.tabs-vertical.tabs-style-2 .tab a, .tabs-vertical.tabs-style-3 .tab a {
margin-right: 0;
margin-bottom: -1px;
}
.tabs-vertical.tabs-style-2 .tab:last-child a, .tabs-vertical.tabs-style-3 .tab:last-child a {
margin-bottom: 0;
}
.tabs-vertical .tab-inner-warp {
float: none;
margin-left: 160px;
}
.tabs-vertical.tabs-long .tab-inner-warp {
margin-left: 235px;
}
.tabs-style-2.tabs-vertical .tab-inner-warp, .tabs-style-3.tabs-vertical .tab-inner-warp {
margin-left: 160px;
}
.tabs-style-2.tabs-vertical.tabs-long .tab-inner-warp, .tabs-style-3.tabs-vertical.tabs-long .tab-inner-warp {
margin-left: 235px;
}
/* Alerts */
.alert-message {
position: relative;
display: block;
background-color: #FAFAFA;
padding: 20px;
margin-bottom: 20px;
font-size: 14px;
font-weight: bold;
border-radius: 4px;
color: #2f3239;
}
.alert-message i {
margin: 0 15px 0 0;
float: left;
height: 42px;
width: 42px;
line-height: 42px;
text-align: center;
font-size: 21px;
}
.alert-message span {
font-weight: bold !important;
font-size: 13px !important;
text-transform: uppercase;
}
.alert-message p {
margin: 0 !important;
padding: 0;
line-height: 22px;
font-size: 13px;
color: #2f3239;
font-weight: 400;
}
.alert-message.warning {
background-color: #FFFFF3;
border: 1px solid rgba(0,0,0,.125);
}
.alert-message.warning i {
background-color: #FED44C;
border-radius: 50%;
}
.alert-message.warning span, .alert-message.warning a {
color: #fd8900;
}
.alert-message.success {
background-color: #aeddb6;
}
.alert-message.success i {
background-color: #09a526;
}
.alert-message.success a, .alert-message.success span {
color: #09a526;
}
.alert-message.error {
background-color: #f6d8d4;
}
.alert-message.error i {
background-color: #ff0000;
}
.alert-message.error span, .alert-message.error a {
color: #fe0000;
}
.alert-message.info {
background-color: #F0F9FE;
border: 1px solid rgba(0,0,0,.125);
}
.alert-message.info i {
background-color: #A7D6F0;
color: #447DAF;
border-radius: 50%;
}
.alert-message.info a, .alert-message.info span {
color: #447DAF;
}
.alert-message.info p {
color: #80ABCF;
}
.alert-message a:hover {
color: #5a5c5d !important;
}
.alert-border-radius {
border-radius: 10px;
}
/* Buttons */
.button {
border-radius: 4px;
}
.button .icons {
margin-right: 5px;
}
.button-custom {
border-bottom-width: 3px !important;
}
/* Green button */
.green-button {
background-color: #1abc9c;
}
.green-button:hover {
background-color: #16a085;
}
.custom-button.green-button {
border: 1px solid #16a085;
background: linear-gradient(to bottom, #1abc9c 0%,#13a981 100%);
}
.custom-button.green-button:hover {
background: linear-gradient(to bottom, #118d6d 0%,#16a78e 100%);
}
/* Lime green button */
.lime-green-button {
background-color: #2ecc71;
}
.lime-green-button:hover {
background-color: #27ae60;
}
.custom-button.lime-green-button {
border: 1px solid #27ae60;
background: linear-gradient(to bottom, #33d37e 0%,#23be55 100%);
}
.custom-button.lime-green-button:hover {
background: linear-gradient(to bottom, #1d9848 0%,#27b361 100%);
}
/* Orange button */
.orange-button {
background-color: #f39c12;
}
.orange-button:hover {
background-color: #cf850f;
}
.custom-button.orange-button {
border: 1px solid #cf850f;
background: linear-gradient(to bottom, #f4a814 0%,#ef7d0d 100%);
}
.custom-button.orange-button:hover {
background: linear-gradient(to bottom, #c4690b 0%,#d28e0f 100%);
}
/* Dark blue button */
.dark-blue-button {
background-color: #34495e;
}
.dark-blue-button:hover {
background-color: #2c3e50;
}
.custom-button.dark-blue-button {
border: 1px solid #2c3e50;
background: linear-gradient(to bottom, #395168 0%,#273747 100%);
}
.custom-button.dark-blue-button:hover {
background: linear-gradient(to bottom, #23303e 0%,#2c3f51 100%);
}
/* Blue button */
.blue-button {
background-color: #3498db;
}
.blue-button:hover {
background-color: #2c81ba;
}
.custom-button.blue-button {
border: 1px solid #2c81ba;
background: linear-gradient(to bottom, #39a5df 0%,#2578cf 100%);
}
.custom-button.blue-button:hover {
background: linear-gradient(to bottom, #2469ac 0%,#2e8cc0 100%);
}
/* Red button */
.red-button {
background-color: #e74c3c;
}
.red-button:hover {
background-color: #c54133;
}
.custom-button.red-button {
border: 1px solid #c33f31;
background: linear-gradient(to bottom, #e95341 0%,#e13a2d 100%);
}
.custom-button.red-button:hover {
background: linear-gradient(to bottom, #b53127 0%,#ca4535 100%);
}
/* Yellow button */
.yellow-button {
background-color: #f1c40f;
}
.yellow-button:hover {
background-color: #cda70d;
}
.custom-button.yellow-button {
border: 1px solid #cca50d;
background: linear-gradient(to bottom, #f2cb11 0%,#ecb10b 100%);
}
.custom-button.yellow-button:hover {
background: linear-gradient(to bottom, #c1920a 0%,#d1af0d 100%);
}
/* Gray button */
.gray-button {
background-color: #b7b7b7;
}
.gray-button:hover {
background-color: #8e8e8e;
}
.custom-button.gray-button {
border: 1px solid #858585;
background: linear-gradient(to bottom, #c1c1c1 0%,#a3a3a3 100%);
}
.custom-button.gray-button:hover {
background: linear-gradient(to bottom, #777 0%,#969696 100%);
}
/* Custom button */
.custom-button {
box-shadow: inset 0 1px rgba(255,255,255,0.3),inset 0 0 0 rgba(0, 0, 0, 0.1);
}
.custom-button:hover {
box-shadow: inset 0 rgba(0, 0, 0, 0.2);
}
/* Audio */
.audio-soundcloud {
margin-bottom: 30px;
}
.audio-soundcloud iframe {
display: block;
}
/* Dropcaps */
.dropcap {
float: left;
line-height: 30px;
font-size: 62px;
color: #2f3239;
margin: 0 10px 0 0;
line-height: 85%;
text-transform: uppercase;
}
.dropcap.dropcap_square, .dropcap.dropcap_soft_r {
background-color: #2f3239;
height: 35px;
width: 35px;
line-height: 35px;
font-size: 22px;
text-align: center;
margin-top: 5px 10px 0 0;
}
.dropcap.dropcap_soft_r {
border-radius: 5px;
}
.dropcap.dropcap_circle {
background-color: #2f3239;
height: 40px;
width: 40px;
line-height: 40px;
font-size: 22px;
text-align: center;
margin-top: 5px 10px 0 0;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
}
/* Divider */
.divider {
margin-bottom: 30px;
border-bottom: 1px solid #dedede;
clear: both;
}
.divider span {
width: 30px;
height: 3px;
float: left;
position: relative;
top: -1.5px;
}
.divider-2 {
border-bottom: 1px dotted #dedede;
}
.divider-3 {
height: 30px;
border-bottom: none;
position: relative;
}
.divider-3:after {
height: 7px;
background: url(images/shadow_1.html) repeat-x;
content: '';
position: absolute;
width: 100%;
}
.divider-4 {
position: relative;
border-bottom: none;
height: 10px;
}
.divider-4:after {
height: 10px;
background: url(images/splitter.html) bottom repeat-x;
content: '';
position: absolute;
width: 100%;
top: 0;
left: 0;
}
.divider-4-dark:after {
background: url(images/splitter_dark.html) bottom repeat-x;
}
/* Quote */
.quote-left {
float: left;
width: 260px;
margin: 0 20px 20px 0;
}
.quote-right {
float: right;
width: 260px;
margin: 0 0 20px 20px;
border-left: none;
border-right: 4px solid #888;
}
/* Progess Bars */
.progressbar-warp {
margin-bottom: 30px;
}
.progressbar {
height: 20px;
background-color: #f3f3f3;
position: relative;
margin-bottom: 10px;
overflow: hidden;
border: 1px solid #dedede;
border-radius: 2px;
}
.progressbar-percent {
height: 100%;
background-image: -moz-linear-gradient( -45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent );
background-size: 30px 30px;
-webkit-animation: move 5s linear infinite;
animation: move 5s linear infinite;
width: 0;
border-radius: 2px;
}
@-webkit-animation expandWidth {
0% {
width: 0
}
100% {
width: auto
}
}
@-webkit-keyframes move {
0% {
background-position: 0 0
}
100% {
background-position: 90px 90px
}
}
.progressbar-title {
font-size: 13px;
color: #2f3239;
margin-bottom: 5px;
display: inline-block;
}
/* Callout */
.callout_warp {
padding: 20px;
}
.callout_inner *:last-child {
margin-bottom: 0;
}
.button_right {
position: absolute;
right: 30px;
top: 27%;
}
.box_no_border.box_no_background.callout_warp .button_right {
right: 0;
}
.button_right a {
transition: all 0s ease 0s;
}
.callout_button * {
margin: 0;
}
.callout_button i, .callout_button span {
position: static !important;
}
.button_bottom {
margin-top: 20px;
}
/* Carousel */
.images-warp {
width: 100%;
}
.images-warp.images-warp-grid {
margin-bottom: 5px;
}
.images-warp ul {
list-style: none;
overflow: hidden;
position: relative;
height: initial !important;
box-sizing: border-box;
}
.images-warp ul li {
position: relative;
height: initial !important;
margin-right: 30px !important;
margin-left: 0 !important;
width: auto;
overflow: hidden;
box-sizing: border-box;
}
.images-warp .grid-images {
height: initial;
box-sizing: border-box;
}
.caroufredsel_wrapper {
height: initial;
box-sizing: border-box;
width: 100% !important;
}
.images-warp ul li > div.columns, .images-warp ul li > div.column {
position: relative;
}
.images-warp ul li img, .grid-images {
transition: all .2s linear;
}
.images-warp ul li img {
opacity: 1;
filter: alpha(opacity=100);
width: 100%;
height: auto;
border: 1px solid #E8E7E7;
}
.grid-images {
position: relative;
overflow: hidden;
}
.style-grid-2 ul li img {
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.06);
border: 1px solid #E8E7E7;
padding: 6px;
background-color: #FAFAFA;
}
.images-warp .carousel-arrow {
right: 20px;
}
.images-warp ul li img:hover, .images-warp ul li:hover img {
opacity: 0.8;
filter: alpha(opacity=80);
}
.images-warp ul li:hover .light-box-images, .style-grid-2 img {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
}
.carousel-arrow a.hidden {
display: none !important;
}
/* Lightbox */
.lightbox-warp {
position: relative;
margin-bottom: 30px;
}
.light-box-images {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
color: #DCDCDC;
text-align: center;
font-size: 20px;
background: rgba(0,0,0,0.40);
opacity: 0;
filter: alpha(opacity=0);
transition: all .2s linear;
}
.light-box-images i {
position: absolute;
width: 100%;
height: 20px;
margin-top: -12px;
left: 0;
top: 50%;
}
.light-box-images i:before {
content: "\f002";
font-family: "FontAwesome";
}
.lightbox-warp:hover .light-box-images {
opacity: 1;
filter: alpha(opacity=100);
}
.light-box-video i:before {
content: "\f04b";
font-family: "FontAwesome";
}
.images-warp-grid li {
margin-bottom: 20px;
}
/* Carousel */
.carousel-all {
position: relative;
width: 100%;
margin-bottom: 30px;
}
.carousel-all ul {
margin: 0;
padding: 0;
list-style: none;
display: block;
left: 0;
}
.carousel-all li {
position: relative;
color: #999;
padding: 0;
display: block;
float: left;
height: 100% !important;
}
.carousel-all ul li img {
width: 100%;
height: auto;
float: left;
}
.carousel-all ul li .our-clients img {
width: auto;
}
.carousel-all.responsive {
width: auto;
margin-left: 0;
}
.carousel-arrow {
position: absolute;
bottom: -67px;
margin-top: -7px;
z-index: 999;
width: 81px;
height: 38px;
right: 4px;
}
a.carousel-prev {
float: left;
margin-right: 5px;
margin-left: 0;
}
a.carousel-next {
float: right;
margin: 0px;
}
.carousel-arrow a {
font-size: 25px;
line-height: 25px;
padding: 6px;
padding-top: 5px;
background-color: #e8e8e8;
color: #999;
text-align: center;
height: 38px;
width: 38px;
display: block !important;
}
.with-title .carousel-arrow {
top: -67px;
}
.with-title .carousel-prev {
float: left;
margin-right: 5px;
margin-left: 0;
}
.with-title .carousel-next {
float: right;
margin: 0px;
}
.with-title .carousel-arrow a:hover {
background-color: #333;
}
/* Testimonial */
.testimonial {
background-color: #FFF;
padding: 20px;
box-sizing: border-box;
position: relative;
color: #2f3239;
font-size: 13px;
}
.testimonial-f-arrow, .testimonial-l-arrow {
top: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
border-left: 0;
border-color: transparent;
}
.testimonial-f-arrow {
border-top-color: #FFF;
border-width: 22px;
left: 19px;
}
.testimonial-l-arrow {
border-top-color: #FFF;
border-width: 20px;
left: 20px;
}
.testimonial-client {
margin: 25px 0 30px;
overflow: hidden;
height: 100%;
}
.testimonial-client span {
padding-top: 3px;
font-size: 12px;
font-weight: bold;
}
.testimonial-client span span {
font-weight: normal;
}
.testimonial-client img {
float: left;
margin-right: 10px;
width: 50px;
padding: 1px;
border: 1px solid #FFF;
background-color: #FFF;
border-radius: 50%;
}
.carousel-all.testimonial-carousel {
margin-bottom: 0;
}
.testimonial-carousel .testimonial-warp {
float: left;
margin-right: 20px;
}
.testimonial-carousel .carousel-arrow {
bottom: 33px;
}
.carousel-pagination {
text-align: center;
position: absolute;
right: 0;
bottom: 30px;
z-index: 99;
}
.carousel-pagination a {
background-color: #d8e0e5;
width: 5px;
height: 5px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
margin: 0 5px 0 0;
display: inline-block;
}
.carousel-pagination a:last-child {
margin: 0;
}
.carousel-pagination a.selected {
background-color: #2f3239;
cursor: default;
}
.carousel-pagination a span {
display: none;
}
.testimonial-warp-2 {
background-color: #FFF;
padding: 20px;
color: #2f3239;
margin-bottom: 30px !important;
box-sizing: border-box;
}
.testimonial-warp-2 .testimonial {
background-color: transperant;
border: none;
padding: 0;
}
.testimonial-warp-2 .carousel-pagination {
right: 20px;
}
.testimonial-warp-2 .caroufredsel_wrapper {
width: auto !important;
}
.testimonial-warp-2 .testimonial-client {
margin-bottom: 0;
}
.testimonial-warp-2 .testimonial-f-arrow, .testimonial-warp-2 .testimonial-l-arrow {
border: none;
}
.testimonial-warp-2 .carousel-pagination {
bottom: 20px;
}
.testimonial-warp-2 .testimonial-client {
margin-top: 10px;
}
.testimonial-warp-2 .testimonial-client span {
padding-top: 6px;
display: inline-block;
}
.testimonial-client span span {
color: #2f3239;
}
/* Error 404 */
.error_404 {
text-align: center;
}
.error_404 h2 {
color: #E8E7E7;
font-size: 220px;
line-height: 1;
}
.error_404 h3 {
font-size: 35px;
}
/* Blog */
.post {
margin-bottom: 20px !important;
box-sizing: border-box;
color: #2f3239;
font-size: 13px;
padding: 20px;
border: 1px solid #dedede;
background: #FFF;
position: relative;
border-radius: .25rem;
}
.single-post {
padding-left: 0;
padding-right: 0;
margin-bottom: 10px !important;
font-family: Helvetica, Arial, sans-serif !important;
}
.single-post .post-content p, .single-post .post-content span {
font-size: 14px !important;
}
.post-type {
position: absolute;
top: -2px;
left: 20px;
float: left;
text-align: center;
width: 36px;
height: 36px;
line-height: 36px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
font-size: 14px;
}
.post .post-type {
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
position: inherit;
height: 26px;
width: 26px;
line-height: 26px;
font-size: 14px;
margin-right: 8px;
border-radius: 2px;
}
.post-title {
border-bottom: 1px solid #dedede;
margin-bottom: 20px;
padding-bottom: 10px;
font-size: 16px;
font-weight: 400;
}
.post-title::first-letter {
text-transform: uppercase;
}
.post-title a:hover {
color: #2f3239 !important;
}
.post .boxedtitle i {
padding-right: 15px;
}
.post-meta {
overflow: hidden;
height: 100%;
margin-bottom: 15px;
}
.post .post-meta .meta-author, .post .post-meta .meta-date, .post .post-meta .meta-comment a {
margin: 0 20px 5px 0;
display: inline-block;
}
.post .post-meta .meta-author, .post .post-meta .meta-date, .post .post-meta .meta-categories, .post .post-meta .meta-comment {
font-size: 13px;
float: left;
}
.post .post-meta .meta-author a, .post .post-meta .meta-date, .post .post-meta .meta-categories a, .post .post-meta .meta-comment a {
color: #2f3239;
}
.post .post-meta .meta-author i, .post .post-meta .meta-date i, .post .post-meta .meta-categories i, .post .post-meta .meta-comment i {
margin-right: 5px;
color: #2f3239;
}
.post .post-meta .meta-categories a {
margin: 0;
display: inline-block;
}
.post .post-meta .meta-categories a:last-child {
margin: 0 20px 5px 0;
display: inline-block;
}
.post .post-meta .meta-categories a:after {
content: ",";
padding-left: 1px;
padding-right: 2px;
}
.post .post-meta .meta-categories a:last-child:after {
content: "";
}
.post .post-img {
margin-bottom: 20px;
}
.video_embed {
width: 100%;
padding: 0;
margin-bottom: 30px;
}
.video_embed iframe, .video_embed object, .video_embed embed {
width: 100%;
border: none;
max-width: 100%;
display: block;
}
.post-content {
line-height: 23px;
color: #848991;
margin: 30px 0;
}
.post-content p {
font-size: 14px !important;
font-weight: 400;
color: rgba(0,0,0,.8);
line-height: 25px;
}
.post-content *:last-child {
margin-bottom: 0;
}
.post .post-img a img {
display: block;
width: 100%;
}
.blog_2.post .post-img {
width: 250px;
height: auto;
float: left;
margin-right: 20px;
margin-bottom: 0 !important;
}
.post-read-more {
float: right;
margin: 0;
font-size: 13px;
padding: 5px 15px;
border-radius: 4px;
font-weight: 400;
}
.post-read-more::after {
font-family: "FontAwesome";
content: "";
margin-left: 5px;
font-size: 12px;
color: #fff;
border: 1px solid;
padding: 2px 4px;
border-radius: 50%;
width: 20px;
height: 42px;
font-weight: 400;
}
.blog_2.post .post-img.video_embed iframe, .blog_2.post .post-img.video_embed object, .blog_2.post .post-img.video_embed embed {
height: auto;
}
.blog_2.post .post-img a img {
height: auto;
width: 100%;
}
.blog_2.post .post-img.video_embed iframe {
height: 170px;
}
.sixteen.columns .blog_2.post .post-img {
width: 350px;
}
.sixteen.columns .blog_2.post .post-img.video_embed iframe, .sixteen.columns .blog_2.post .post-img.video_embed object, .sixteen.columns .blog_2.post .post-img.video_embed embed {
height: 250px;
}
/* Flex Slider */
.flex-container a:active, .flexslider a:active, .flex-container a:focus, .flexslider a:focus {
outline: none;
}
.slides, .flex-control-nav, .flex-direction-nav {
margin: 0;
padding: 0;
list-style: none;
}
.flexslider {
margin: 0 0 30px;
padding: 0;
position: relative;
zoom: 1;
overflow: hidden;
height: 100%;
}
.flexslider .slides > li {
display: none;
-webkit-backface-visibility: hidden;
}
.flexslider .slides img {
max-width: 100%;
display: block;
width: 100%;
}
.flex-pauseplay span {
text-transform: capitalize;
}
.slides:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .slides {
display: block;
}
* html .slides {
height: 1%;
}
.no-js .slides > li:first-child {
display: block;
}
.flexslider .slides {
zoom: 1;
}
.flexslider .slides > li {
position: relative;
}
.flex-container {
zoom: 1;
position: relative;
}
.flex-direction-nav {
height: 0;
}
.flex-direction-nav li a {
height: 48px;
margin: 0;
display: block;
position: absolute;
top: 45%;
cursor: pointer;
padding: 8px 15px;
opacity: .6;
filter: alpha(opacity=60);
z-index: 150;
line-height: 0;
border-radius: 2px 0 0 2px;
-webkit-border-radius: 2px 0 0 2px;
-moz-border-radius: 2px 0 0 2px;
}
.blog_2 .flex-direction-nav li a {
top: 35%;
}
.flex-direction-nav li a:hover {
opacity: .9;
filter: alpha(opacity=90);
}
.flex-direction-nav li .flex-next {
right: -50px;
transition: all .3s ease;
}
.flex-direction-nav li .flex-prev {
left: -50px;
transition: all .3s ease;
border-radius: 0 2px 2px 0;
-webkit-border-radius: 0 2px 2px 0;
-moz-border-radius: 0 2px 2px 0;
}
.flexslider:hover .flex-direction-nav li .flex-next {
right: 0;
}
.flexslider:hover .flex-direction-nav li .flex-prev {
left: 0;
}
.flex-direction-nav li .disabled {
opacity: .3;
filter: alpha(opacity=30);
cursor: default;
}
.flex-caption {
zoom: 1;
width: 100%;
height: 100%;
background: transparent;
}
.flex-caption h2 {
margin: 0;
padding: 7px 10px;
float: left;
font-size: 24px;
margin-bottom: 5px;
}
.flex-caption h3 {
background-color: #2f3239;
padding: 10px;
float: left;
font-size: 14px;
}
.flex-caption .text {
position: absolute;
left: 0;
text-align: center;
bottom: 50px;
}
.flex-caption .text .flex_title {
float: left;
width: 100%;
}
.flex-caption .text .flex_subtitle {
float: left;
width: 100%;
}
/* control nav */
.flex-control-nav {
width: 100%;
position: absolute;
margin-top: -20px;
text-align: center;
transition: all .3s ease;
}
.flex-control-nav li {
margin: 0 0 0 5px;
display: inline-block;
zoom: 1;
*display: inline;
}
.flex-control-nav li:first-child {
margin: 0;
}
.flex-control-nav li a {
width: 8px;
height: 8px;
display: block;
background-color: #FFF;
cursor: pointer;
text-indent: -999em;
opacity: 0.4;
filter: alpha(opacity=40);
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
}
.flex-control-nav li a.flex-active {
cursor: default;
opacity: 1;
filter: alpha(opacity=100);
}
.flex-direction-nav .flex-next, .flex-direction-nav .flex-prev {
background: rgba(0,0,0,0.6);
}
.flex-direction-nav .flex-next:hover, .flex-direction-nav .flex-prev:hover {
opacity: 0.9;
filter: alpha(opacity=90);
}
/* Bxslider */
.bx-wrapper {
position: relative;
overflow: hidden;
}
.grid-bxslider {
position: relative;
margin-bottom: 30px;
}
.bxslider-overlay {
display: block;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
opacity: 0;
filter: alpha(opacity=0);
width: 100%;
height: 100%;
transition: all 0s ease-in;
}
.bxslider-overlay:before {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
content: "";
opacity: 0.7;
filter: alpha(opacity=70);
transition: all 0s ease-in;
}
.grid-bxslider:hover .bxslider-overlay {
opacity: 1;
filter: alpha(opacity=1);
}
.bx-pager {
display: none;
}
.bxslider-title {
position: absolute;
left: 0;
top: 50%;
width: 100%;
height: 50px;
}
.bxslider-title h4 {
font-size: 12px;
margin-bottom: 0;
}
.bxslider-title span {
font-size: 11px;
}
.overlay-lightbox, .overlay-link {
position: absolute;
top: 20px;
height: 30px;
width: 30px;
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
background-color: #2f3239;
}
.overlay-lightbox {
left: 50%;
margin-left: -35px;
}
.overlay-link {
right: 50%;
margin-right: -35px;
}
.overlay-lightbox i, .overlay-link i {
font-size: 12px;
line-height: 30px;
text-align: center;
}
.bx-prev, .bx-next {
position: absolute;
top: 50%;
margin-top: -30px;
height: 30px;
width: 30px;
line-height: 30px;
font-size: 14px;
background-color: #2f3239;
text-align: center;
transition: all 0s ease-in;
}
.bx-prev:before {
content: "\f104";
font-family: "FontAwesome";
}
.bx-next:before {
content: "\f105";
font-family: "FontAwesome";
}
.bx-prev {
left: -30px;
}
.bx-next {
right: -30px;
}
.bx-wrapper:hover .bx-prev, .bx-wrapper:hover .bx-next {
opacity: 1;
filter: alpha(opacity=1);
}
.bx-wrapper:hover .bx-prev {
left: 0;
}
.bx-wrapper:hover .bx-next {
right: 0;
}
/* panel_light */
.panel_light {
background-color: #FFF;
color: #848991;
}
.panel_light.login-panel h2, .panel_light.login-panel .rememberme label, .panel_light.login-panel input[type="text"], .panel_light.login-panel input[type="password"] {
color: #2f3239;
}
.panel_light.login-panel p {
color: #848991;
}
/* header_light */
#header.header_light {
background-color: #FFF;
}
#header.header_light .navigation > ul > li > a {
color: #2f3239;
}
/* footer_light */
#footer.footer_light_top {
background-color: #FFF;
color: #848991;
border-top: 1px solid #eee;
}
#footer.footer_light_top a, #footer.footer_light_top .related-item h3 a, #footer.footer_light_top .widget_twitter ul li a {
color: #2f3239;
}
#footer.footer_light_top .widget_contact > p, #footer.footer_light_top .related-item p, #footer.footer_light_top .widget, #footer.footer_light_top .widget_contact ul li, #footer.footer_light_top .widget_contact ul li, #footer.footer_light_top .widget_twitter ul li {
color: #848991;
}
#footer-bottom.footer_light_bottom {
background-color: #FFF;
color: #848991;
border-top: 1px solid #eee;
}
/* Color #FFF */
.widget_tag_cloud a, .question-comments a, .removered, .removered i, .removered input[type="text"], .bxslider-title, .bx-prev, .bx-next, .login-password a, .question-report, .load-questions, .ask-me .publish-question {
color: #FFF !important;
}
.go-up, .widget_bxslider .bxslider-widget-item .bxslider_img:before, .popular_posts .popular_img a:before, .widget_flickr a:before, .button, .button:hover, .pagination a:hover, .pagination span:hover, .pagination span.current, .tipsy-inner, .widget_highest_points a:before, .social_icon a, .social_icon a:hover, .social_icon_2 a, .about-author .author-image a:hover:before, .question-author-img:hover span:before, .icon_circle, .icon_square, .tabs-style-3 .tab a:hover, .ul_list_square ul li:before, .ul_list_circle ul li:before, .ul_list_square ul li i, i.ul_l_square, .ul_list_circle ul li i, i.ul_l_circle, .table-style-2 thead th, .dropcap.dropcap_circle, .dropcap.dropcap_square, .dropcap.dropcap_soft_r, .carousel-arrow a:hover, .color_white, .icon_circle, .icon_square, .icon_soft_r, .box_icon:hover .icon_circle i, .box_icon:hover .icon_soft_r i, .box_icon:hover .icon_square i, .box_warp_hover:hover, .box_warp_hover:hover .icon_i i, .box_warp_colored, .box_warp_colored a, .large_bg, .navigation_mobile_click:before, .post .boxedtitle i, .single-question-title i, .question-type, .post-type, .breadcrumbs, #header .logo a, .navigation > ul > li:hover > a, #header.header_light .navigation > ul > li:hover > a, .navigation > ul > li.current_page_item > a, #header.header_light .navigation > ul > li.current_page_item > a, .main-content .boxedtitle h1, .main-content .boxedtitle h2, .main-content .boxedtitle h3, .main-content .boxedtitle h4, .main-content .boxedtitle h5, .main-content .boxedtitle h6, .header-top-nav li a, .header-top-nav li i, .header-search input[type="text"], .header-search input:focus, .header-search .search-submit:before, .login-panel h2, .login-panel li a:hover, .login-panel .rememberme label, .flex-caption .text, .overlay-lightbox, .overlay-link, .ask-me, .ask-me h2, .ask-me p, .navigation ul li ul li:hover > a, .navigation > ul > li > a, .navigation ul li ul li.current_page_item > a, .navigation > ul > li > a:hover > .menu-nav-arrow, .navigation > ul > li.current_page_item > a > .menu-nav-arrow, .navigation > ul > li:hover > a .menu-nav-arrow, #footer-bottom, #footer, #footer .widget_contact ul li, #footer-bottom .social_icons ul li a:hover, #footer .related-item h3 a, #footer .widget_twitter ul li a, #footer a, #footer .widget a:hover, #footer .widget_contact ul li, input[type="checkbox"]:checked::before, .widget_stats li i, .widget_social li span, .widget_social li a small, .ask-me .col-md-9 p i, .tab a.current, .question-type-main, .login-panel ul.login-links a, .del-poll-li, .form-style-3 .form-inputs p #add_poll:hover i, .styled-select::before, .fileinputs:hover span i, .fileinputs span, .alert-message i, .single-question-vote-up:hover, .single-question-vote-down:hover, .user-profile-widget .ul_list li i, .post-read-more:hover:before, .widget_menu li.current_page_item a, .accordion .accordion-title a, .tab a, .tab a:hover, .ask-me .box_icon h2 {
color: #FFF;
}
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px
}
.alert h4 {
margin-top: 0;
color: inherit
}
.alert .alert-link {
font-weight: 700
}
.alert > p, .alert > ul {
margin-bottom: 0
}
.alert > p + p {
margin-top: 5px
}
.alert-dismissable, .alert-dismissible {
padding-right: 35px
}
.alert-dismissable .close, .alert-dismissible .close {
position: relative;
top: -2px;
right: -21px;
color: inherit
}
.alert-success {
color: #3c763d;
background-color: #dff0d8;
border-color: #d6e9c6
}
.alert-success hr {
border-top-color: #c9e2b3
}
.alert-success .alert-link {
color: #2b542c
}
.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1
}
.alert-info hr {
border-top-color: #a6e1ec
}
.alert-info .alert-link {
color: #245269
}
.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc
}
.alert-warning hr {
border-top-color: #f7e1b5
}
.alert-warning .alert-link {
color: #66512c
}
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1
}
.alert-danger hr {
border-top-color: #e4b9c0
}
.alert-danger .alert-link {
color: #843534
}
@-webkit-keyframes progress-bar-stripes {
from {
background-position: 40px 0
}
to {
background-position: 0 0
}
}
@keyframes progress-bar-stripes {
from {
background-position: 40px 0
}
to {
background-position: 0 0
}
}
.progress {
height: 20px;
margin-bottom: 20px;
overflow: hidden;
background-color: #f5f5f5;
border-radius: 4px;
box-shadow: inset 0 1px 2px rgba(0,0,0,.1)
}
.progress-bar {
float: left;
width: 0;
height: 100%;
font-size: 12px;
line-height: 20px;
color: #fff;
text-align: center;
background-color: #337ab7;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
transition: width .6s ease
}
.progress-bar-striped, .progress-striped .progress-bar {
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
background-size: 40px 40px
}
.progress-bar.active, .progress.active .progress-bar {
-webkit-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 2s linear infinite
}
.progress-bar-success {
background-color: #5cb85c
}
.progress-striped .progress-bar-success {
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)
}
.progress-bar-info {
background-color: #5bc0de
}
.progress-striped .progress-bar-info {
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)
}
.progress-bar-warning {
background-color: #f0ad4e
}
.progress-striped .progress-bar-warning {
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)
}
.progress-bar-danger {
background-color: #d9534f
}
.progress-striped .progress-bar-danger {
background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)
}
::-moz-selection {
background: #006690;
}
::selection {
background: #006690;
}
.more:hover, .button.color, .button.black:hover, .go-up, .widget_portfolio .portfolio-widget-item:hover .portfolio_img:before, .popular_posts .popular_img:hover a:before, .widget_flickr a:hover:before, .widget_highest_points .author-img a:hover:before, .question-author-img:hover span, .pagination a:hover, .pagination span:hover, .pagination .current span, .about-author .author-image a:hover:before, .question-comments a, .flex-direction-nav li a:hover, .button.dark_button.color:hover, .table-style-2 thead th, .progressbar-percent, .carousel-arrow a:hover, .box_icon:hover .icon_circle, .box_icon:hover .icon_soft_r, .box_icon:hover .icon_square, .bg_default, .box_warp_colored, .box_warp_hover:hover, .post .boxedtitle i, .single-question-title i, .question-type, .post-type, .social_icon a, .page-content .boxedtitle, .main-content .boxedtitle, .flex-caption h2, .flex-control-nav li a.flex-active, .bxslider-overlay:before, .navigation ul li ul li:hover > a, .navigation ul li ul li.current_page_item > a, #header-top, .navigation > ul > li:hover > a, .navigation > ul > li.current_page_item > a, .ask-me, .breadcrumbs, #footer-bottom .social_icons ul li a:hover, .widget_tag_cloud a:hover, input[type="checkbox"], .login-password a:hover, .tab a.current, .question-type-main, .question-report:hover, .load-questions, .del-poll-li:hover, .styled-select::before, .fileinputs span, .post .post-type, .divider span, .widget_menu li.current_page_item a, .accordion .accordion-title.active a, .tab-inner-warp, .navigation_mobile_click:before, .active {
background-color: #006690;
}
p a, li a, a:hover, .button.normal:hover, span.color, #footer a:hover, .widget a:hover, .question h3 a:hover, .boxedtitle h1 a:hover, .boxedtitle h2 a:hover, .boxedtitle h3 a:hover, .boxedtitle h4 a:hover, .boxedtitle h5 a:hover, .boxedtitle h6 a:hover, .box_icon:hover span i, .color_default, .navigation_mobile > ul a:hover, .navigation_mobile > ul li ul li:hover:before, .post .post-meta .meta-author a:hover, .post .post-meta .meta-categories a:hover, .post .post-meta .meta-comment a:hover, .question h2 a:hover, .question-category a:hover, .question-reply:hover i, .question-category a:hover i, .question-comment a:hover, .question-comment a:hover i, .question-reply:hover, .post .post-meta .meta-author:hover a, .post .post-meta .meta-author:hover i, .post .post-meta .meta-categories:hover a, .post .post-meta .meta-categories:hover i, .post .post-meta .meta-comment:hover a, .post .post-meta .meta-comment:hover i, .post-title a:hover, .question-tags a, .question .question-type, .comment-author a:hover, .comment-reply:hover, .user-profile-widget li a:hover, .taglist .tag a.delete:before, .form-style p span.color, .post-tags, .post-tags a, .related-posts li a:hover, #footer.footer_light_top .related-posts li a:hover, .share-inside, .share-inside-warp ul li a:hover, .user-points .question-vote-result, .widget h3.widget_title, #footer .related-item span, .widget_twitter ul li:before, #footer .widget_twitter .tweet_time a, .widget_highest_points li h6 a, #footer .widget_contact ul li span, .rememberme label, .login-text i, .login-password i, .question-tags, .question-tags i, .panel-pop h2, input[type="text"], input[type="password"], input[type="email"], textarea, select, .panel-pop p, .main-content .page-content .boxedtitle.page-title h2, .fakefile button, .login p, .login h2, .contact-us h2, .share-inside i, #related-posts h2, .comment-reply, .post-title, .post-title a, .user-profile h2, .stats-head, .block-stats-1, .block-stats-2, .block-stats-3, .block-stats-4, .user-question h3 a, .icon_shortcode .ul_icons li, .testimonial-client span, .box_icon h1, .box_icon h2, .box_icon h3, .box_icon h4, .box_icon h5, .box_icon h6, .widget_contact ul li i, #footer.footer_light_top .widget a:hover {
color: #006690;
}
.navigation > ul > li > a > .menu-nav-arrow, #footer-bottom a {
color: #FFFFFF;
}
.go-up {
background-color: #006690;
}
.loader_html, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus, .box_icon .form-style textarea:focus, .social_icon a, #footer-bottom .social_icons ul li a:hover, .widget_login input[type="text"], .widget_login input[type="password"], .panel_light.login-panel input[type="text"], .panel_light.login-panel input[type="password"] {
border-color: #006690;
}
.tabs {
border-bottom-color: #006690;
}
.tab a.current {
border-top-color: #006690;
}
.tabs-vertical .tab a.current, blockquote {
border-left-color: #006690;
}
.box_warp_hover:hover, .box_warp_colored {
border-color: #216694;
}
#header .logo span {
color: #216694;
}
#header.header_light {
/*background-color: #2D3A4B;*/
background-color: #FFF;
}
#header.header_light .navigation > ul > li > a {
color: #2D3A4B;
}
.ask-me .col-md-9 p textarea, .widget_login input[type="text"], .widget_login input[type="password"], .panel_light.login-panel input[type="text"], .panel_light.login-panel input[type="password"], blockquote, .qoute {
background: rgba(52,152,219,0.20);
}
#header, #footer-bottom {
background-color: #007db1;
}
/****************************************************************
* @media Qurey
****************************************************************/
/*------------------------------------------------------------------------------*/
/* Width : 992
/*------------------------------------------------------------------------------*/
@media (min-width: 992px) {
.boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 970px;
}
}
/*------------------------------------------------------------------------------*/
/* Width : 768
/*------------------------------------------------------------------------------*/
@media (min-width: 768px) and (max-width: 984px) {
.boxed, .boxed2, .boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 100%;
}
.boxed2 {
margin-top: 0;
margin-bottom: 0;
}
}
/*------------------------------------------------------------------------------*/
/* Width : 1200
/*------------------------------------------------------------------------------*/
@media (min-width: 1200px) {
.grid_1200.boxed, .grid_1200.boxed2, .grid_1200.boxed #header.fixed-nav, .grid_1200.boxed2 #header.fixed-nav {
width: 1200px !important;
}
.grid_1200 .ask-me .col-md-3 {
padding-top: 60px;
text-align: left;
width: 25%;
}
.grid_1200 .ask-me .col-md-9 {
float: left;
}
.grid_1200 .ask-me .col-md-9 form {
width: 800px;
}
.grid_1200 .ask-me .col-md-12 {
padding-top: 51px;
}
.grid_1200 .ask-me .col-md-12 p input {
margin-top: 81px;
}
.grid_1200 .navigation > ul > li > a {
padding: 17px 15px;
}
.grid_1200 .col-md-3.sidebar {
float: right;
}
.grid_1200 .widget_menu_jquery {
position: fixed !important;
top: 90px;
width: 263px;
}
.grid_1200 .widget_flickr a, .grid_1200 .widget_portfolio .portfolio-widget-item .portfolio_img, .grid_1200 .popular_img {
width: 70.1px;
height: 70.1px;
}
.grid_1200 .widget_portfolio .portfolio-widget-item .portfolio_img:before, .grid_1200 .popular_posts .popular_img a:before, .grid_1200 .widget_flickr a:before, .grid_1200 .popular_posts .popular_img a:before {
line-height: 70.1px;
}
.grid_1200 #footer .widget_flickr a, .grid_1200 #footer .widget_portfolio .portfolio-widget-item .portfolio_img, .grid_1200 #footer .popular_img {
width: 61.8px;
height: 61.8px;
}
.grid_1200 #footer .widget_portfolio .portfolio-widget-item .portfolio_img:before, .grid_1200 #footer .popular_posts .popular_img a:before, .grid_1200 #footer .widget_flickr a:before, .grid_1200 #footer .popular_posts .popular_img a:before {
line-height: 61.8px;
}
.grid_1200 .col-md-3.sidebar .widget_flickr a:nth-child(4n), .grid_1200 #footer .col-md-3 .widget_flickr a:nth-child(3n), .grid_1200 #footer .col-md-3 .widget_portfolio .portfolio-widget-item:nth-child(3n), .grid_1200 .col-md-3.sidebar .widget_portfolio .portfolio-widget-item:nth-child(4n) {
margin-right: 5px;
}
.grid_1200 #footer .col-md-3 .widget_flickr a:nth-child(4n), .grid_1200 .col-md-3.sidebar .widget_flickr a:nth-child(3n) {
margin-right: 0;
}
.grid_1200 .col-md-3 .widget_portfolio .portfolio-widget-item:nth-child(4n), .grid_1200 .col-md-3.sidebar .widget_portfolio .portfolio-widget-item:nth-child(3n) {
margin-right: 0 !important;
}
/* user-profile */
.grid_1200 .stats-head, .grid_1200 .block-stats-visibility, .grid_1200 .block-stats-1, .grid_1200 .block-stats-2, .grid_1200 .block-stats-3, .grid_1200 .block-stats-4 {
width: 23.3%;
}
.grid_1200 .block-stats-1 {
width: 30%;
}
.grid_1200 #question-title, .grid_1200 #question-details, .grid_1200 .taglist .input input, .grid_1200 .form-style-5.form-style input[type="text"], .grid_1200 .form-style-5.form-style input[type="email"], .grid_1200 .form-style-5.form-style input[type="password"], .grid_1200 .form-style-5.form-style textarea {
width: 82%;
}
.grid_1200 .ask-question .form-style label, .grid_1200 .form-style-5.form-style label {
width: 17%;
}
.grid_1200 .form-description, .grid_1200 #question_poll_item {
margin-left: 18%;
}
.grid_1200 .form-style-2 .fileinputs {
width: 87%;
}
.grid_1200 ul.login-links {
float: right;
}
}
/*------------------------------------------------------------------------------*/
/* Width : 960
/*------------------------------------------------------------------------------*/
@media only screen and (min-width: 767px) and (max-width: 960px) {
body {
width: 100%;
}
.inner {
width: 768px;
}
.boxed, .boxed2, .boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 100%;
}
.boxed2 {
margin-top: 0;
margin-bottom: 0;
}
/* Navigation */
.navigation_mobile > ul, .navigation, .navigation_mobile > ul {
display: none;
}
.navigation_mobile > ul li ul {
display: block;
}
.breadcrumbs h1 {
float: none;
display: block;
}
.crumbs {
float: left;
}
.breadcrumbs h1 {
margin-right: 10px;
float: none;
display: block;
}
.box_icon.box_warp.box_no_border.box_no_background .col-md-4 .height_40 {
height: 0;
}
/* user-profile */
.stats-head, .block-stats-visibility, .block-stats-1, .block-stats-2, .block-stats-3, .block-stats-4 {
padding: 10px;
font-size: 14px;
}
.block-stats-1 {
width: 29.2%;
}
/* sidebar */
.sidebar {
margin-top: 30px;
}
/* Widgets */
#footer .widget {
margin-bottom: 30px;
}
.widget_flickr a, .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 63.3px !important;
height: 63.3px !important;
}
.widget_portfolio .portfolio-widget-item .portfolio_img:before, .popular_posts .popular_img a:before, .widget_flickr a:before {
line-height: 63.3px !important;
}
.widget_flickr a:nth-child(3n), .widget_flickr a:nth-child(4n), .widget_portfolio .portfolio-widget-item:nth-child(3n), .widget_portfolio .portfolio-widget-item:nth-child(4n) {
margin-right: 5px !important;
}
.widget_flickr a:nth-child(10n), .widget_portfolio .portfolio-widget-item:nth-child(10n) {
margin-right: 0 !important;
}
#footer .widget_flickr a, #footer .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 67.5px !important;
height: 67.5px !important;
}
#footer .widget_portfolio .portfolio-widget-item .portfolio_img:before, #footer .popular_posts .popular_img a:before, #footer .widget_flickr a:before {
line-height: 67.5px !important;
}
#footer .widget_flickr a:nth-child(3n), #footer .widget_flickr a:nth-child(4n), #footer .widget_portfolio .portfolio-widget-item:nth-child(3n), #footer .widget_portfolio .portfolio-widget-item:nth-child(4n) {
margin-right: 5px !important;
}
#footer .widget_flickr a:nth-child(10n), #footer .widget_portfolio .portfolio-widget-item:nth-child(10n) {
margin-right: 0 !important;
}
}
/*------------------------------------------------------------------------------*/
/* width : 991px
/*------------------------------------------------------------------------------*/
@media (min-width: 991px) and (max-width: 1200px) {
.widget_menu_jquery {
top: inherit !important;
}
}
/*------------------------------------------------------------------------------*/
/* width : 768
/*------------------------------------------------------------------------------*/
@media (min-width: 768px) {
.boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 970px;
}
}
/*------------------------------------------------------------------------------*/
/* width : 991px
/*------------------------------------------------------------------------------*/
@media (min-width: 768px) and (max-width: 991px) {
.grid_970 .container {
width: 750px;
}
.grid-images img {
width: 100%;
height: auto;
}
.ask-me .col-md-3 {
padding-top: 0;
text-align: center;
}
.ask-me .col-md-12 {
padding-top: 31px;
}
.ask-me .col-md-12 p input {
margin-top: 51px;
}
.widget_menu_jquery {
display: none;
}
/* Navigation */
#header .navigation_mobile {
position: relative;
margin-top: 25.5px;
}
#header.fixed-nav .navigation_mobile {
position: relative;
margin-top: 17.5px;
}
.navigation_mobile > ul, .navigation, .navigation_mobile > ul {
display: none;
}
.navigation_mobile > ul li ul {
display: block;
}
.ask-question {
margin-bottom: 30px;
}
.contact-us .page-content, .login .page-content {
margin-bottom: 30px;
}
.breadcrumbs h1 {
float: none;
display: block;
}
.crumbs {
float: left;
}
.widget_flickr a:nth-child(3n), .widget_portfolio .portfolio-widget-item:nth-child(3n), #footer .widget_flickr a:nth-child(3n), #footer .widget_portfolio .portfolio-widget-item:nth-child(3n) {
margin-right: 5px !important;
}
#footer .widget, .user-stats {
margin-bottom: 30px;
}
.overlay-lightbox, .overlay-link {
top: 10px;
}
.form-style-2 .fileinputs {
width: 85%;
}
.sidebar {
margin-top: 30px;
}
.sidebar .widget_social, .sidebar .widget_login {
display: none;
}
}
/*------------------------------------------------------------------------------*/
/* width : 767px
/*------------------------------------------------------------------------------*/
@media (max-width: 767px) {
.grid_970 .container {
width: auto;
}
.ask-me .col-md-12 {
padding-top: 31px;
}
.ask-me .col-md-12 p input {
margin-top: 51px;
}
#header {
height: auto;
}
/* Widgets */
.widget_menu_jquery {
display: none;
}
.widget_flickr a, .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 68.4px !important;
height: 68.4px !important;
}
.widget_portfolio .portfolio-widget-item .portfolio_img:before, .popular_posts .popular_img a:before, .widget_flickr a:before {
line-height: 68.4px !important;
}
#footer .widget_flickr a, #footer .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 73px !important;
height: 73px !important;
}
#footer .widget_portfolio .portfolio-widget-item .portfolio_img:before, #footer .popular_posts .popular_img a:before, #footer .widget_flickr a:before {
line-height: 73px !important;
}
.widget_flickr a:nth-child(9n), .widget_portfolio .portfolio-widget-item:nth-child(9n), #footer .widget_flickr a:nth-child(9n), #footer .widget_portfolio .portfolio-widget-item:nth-child(9n) {
margin-right: 5px !important;
}
.login-panel .page-content.registere {
margin-top: 30px;
}
.form-style label {
width: 100% !important;
}
.form-style-5.form-style label {
margin-top: 0;
}
.contact-us .page-content, .login .page-content {
margin-bottom: 30px;
}
.user-profile-widget .ul_list li {
width: 100%;
margin-right: 0 !important;
margin-bottom: 10px !important;
}
.sidebar .widget_social, .sidebar .widget_login {
display: none;
}
}
/*------------------------------------------------------------------------------*/
/* Width : 480
/*------------------------------------------------------------------------------*/
@media only screen and (min-width: 452px) and (max-width: 767px) {
body {
width: 100%;
}
.grid_970 .container {
width: auto;
}
.inner {
width: 420px;
}
.boxed, .boxed2, .boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 100%;
}
.boxed2 {
margin-top: 0;
margin-bottom: 0;
}
.ask-me {
height: auto;
}
.ask-me .col-md-9 form {
background: transparent;
height: auto;
margin-top: 0;
}
.ask-me .col-md-9 p {
width: 220px;
width: 100%;
margin: 20px 0 0;
}
.ask-me .col-md-9 p textarea {
background-color: #FFF;
border: none;
color: #2f3239;
font-size: 13px;
font-weight: 600;
font-style: italic;
resize: none;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
margin-top: 20px;
}
.ask-me .col-md-9 .publish-question {
right: 10px;
}
.ask-me .col-md-3 {
padding-top: 0;
text-align: center;
}
.ask-me .col-md-12 {
padding-top: 31px;
}
.ask-me .col-md-12 p input {
margin-top: 51px;
}
.widget_menu_jquery {
display: none;
}
/* Columns */
.one_half, .one_third, .two_third, .three_fourth, .two_fourth, .one_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .two_sixth, .three_sixth, .four_sixth, .five_sixth {
float: none !important;
width: auto !important;
margin-right: 0 !important;
}
.panel-pop {
width: 90%;
}
/* Header */
#header {
padding-bottom: 15px;
}
#header, #header.fixed-nav {
height: auto;
line-height: 70px;
}
#header .logo {
text-align: center;
margin: 0;
float: none;
}
#footer-bottom .social_icons ul li {
margin-left: 10px !important;
}
#footer-bottom {
height: auto;
}
#footer-bottom .social_icons {
float: inherit !important;
display: inline-block;
}
#footer-bottom .social_icons li:first-child {
margin-left: 0 !important;
}
#footer-bottom > .container > div {
float: inherit !important;
display: inline-block;
margin-left: 0 !important;
margin-right: 0 !important;
width: 100%;
text-align: center;
}
#footer-bottom > .container > div:first-child {
margin-bottom: 10px;
}
#footer-bottom > .container > .social_icons {
margin-bottom: 0;
}
#footer-bottom > .container ul {
display: inline-block;
float: none;
}
#footer-bottom > .container > .social_icons li {
display: inline-block;
}
#footer-bottom_nav > ul > li:last-child, #footer-bottom_nav.f_right > ul > li:last-child {
margin-right: 0;
margin-left: 0;
}
/* Navigation */
#header .navigation_mobile {
position: relative;
margin-top: 0;
}
.navigation_mobile > ul, .navigation, .navigation_mobile > ul {
display: none;
}
.navigation_mobile {
width: 100% !important;
margin-right: 0 !important;
margin-left: 0 !important;
}
.navigation_mobile > ul li ul {
display: block;
}
/* Breadcrumbs */
.crumbs {
display: none;
}
.breadcrumbs h1 {
margin: 0;
}
.box_icon.box_warp.box_no_border.box_no_background .col-md-4 .height_40 {
height: 0;
}
/* Sidebar */
.sidebar {
margin-top: 30px !important;
}
/* Footer */
#footer-bottom > .container > div {
margin-left: 0;
margin-right: 0;
}
#footer-bottom_nav.f_right > ul > li:first-child {
margin-left: 0;
}
/* Widgets */
.widget_flickr a, .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 65.1px !important;
height: 65.1px !important;
}
.widget_portfolio .portfolio-widget-item .portfolio_img:before, .popular_posts .popular_img a:before, .widget_flickr a:before {
line-height: 65.1px !important;
}
.widget_flickr a:nth-child(3n), .widget_flickr a:nth-child(4n), .widget_portfolio .portfolio-widget-item:nth-child(3n), .widget_portfolio .portfolio-widget-item:nth-child(4n) {
margin-right: 5px !important;
}
#footer .widget_flickr a, #footer .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 69.7px !important;
height: 69.7px !important;
}
#footer .widget_portfolio .portfolio-widget-item .portfolio_img:before, #footer .popular_posts .popular_img a:before, #footer .widget_flickr a:before {
line-height: 69.7px !important;
}
#footer .widget_flickr a:nth-child(3n), #footer .widget_flickr a:nth-child(4n), #footer .widget_portfolio .portfolio-widget-item:nth-child(3n), #footer .widget_portfolio .portfolio-widget-item:nth-child(4n), #footer .widget_flickr a:nth-child(5n), #footer .widget_portfolio .portfolio-widget-item:nth-child(5n) {
margin-right: 5px !important;
}
.widget:last-child {
margin-bottom: 30px;
}
.sidebar .widget:last-child {
margin-bottom: 0;
}
/* Single post */
.post-next-prev p {
font-size: 14px;
}
/* Respond */
#respond-inputs p, .full_width #respond-inputs p {
width: 100%;
margin-right: 0;
}
#respond-inputs p.last {
margin-bottom: 20px;
}
/* Blog 2 */
.blog_2.post .post-img {
margin-right: 0;
width: 100% !important;
margin-bottom: 20px !important;
}
/* Shortcodes */
/* Tabs */
.tabs-vertical.tabs-long .tabs {
width: 200px !important;
}
.tabs-vertical.tabs-long .tab-inner-warp {
margin-left: 204px !important;
}
.tabs-style-2.tabs-vertical.tabs-long .tab-inner-warp, .tabs-style-3.tabs-vertical.tabs-long .tab-inner-warp {
margin-left: 200px !important;
}
/* Callout */
.button_right {
margin-top: 10px;
top: inherit !important;
right: inherit !important;
position: relative;
}
.callout_inner {
margin-right: 0 !important;
}
/* Carousel */
.images-warp ul li {
width: 420px;
}
.images-warp-grid li.columns, .images-warp-grid li.column {
margin-bottom: 20px;
}
/* Forms */
.form-inputs p {
float: none;
width: 100%;
}
.form-inputs p {
width: 60% !important;
}
.form-style input.submit {
width: auto;
}
.form-style-4 .form-inputs p {
width: 100% !important;
}
#question-title, #question-details, .taglist .input input, .ask-question .form-description, #question_poll_item, .taglist, .form-style-5.form-style input[type="text"], .form-style-5.form-style input[type="email"], .form-style-5.form-style input[type="password"], .form-style-5.form-style textarea, .styled-select, .fileinputs {
width: 100%;
}
.ask-question .form-style label {
margin-top: 0;
}
.fileinputs {
margin-top: 5px;
}
.form-description, #question_poll_item {
margin-left: 0;
}
.login-panel ul.login-links, .login ul.login-links {
width: 100%;
margin: 20px 0 0 0;
}
.user-profile-img {
float: none;
margin-bottom: 10px;
}
.user-profile .user-profile-img {
float: left;
}
.form-style-2 .fileinputs {
width: 100%;
}
/* Slider */
.flex-caption, .nivo-caption, .br-slideinfo {
display: none !important;
}
/* Questions */
.question-type-normal .question-type-main, .question-type-poll .question-type-main {
left: 121px;
right: inherit;
}
.question-type-normal .question-report {
left: 213px;
right: inherit;
display: none;
}
.question-type-poll .question-report {
left: 187px;
right: inherit;
display: none;
}
.question-type-normal.question h2, .question-type-poll.question h2 {
padding-right: 0;
margin-left: 0px;
}
.single-question.question-type-normal .question-type-main, .single-question.question-type-poll .question-type-main {
left: 20px;
right: inherit;
}
.question-type-normal .question-author, .question-type-poll .question-author {
display: none;
}
.question-type-normal .question-inner, .question-type-poll .question-inner {
margin-left: 0px;
}
.single-question.question-type-normal .question-report {
left: 104px;
right: inherit;
}
.single-question.question-type-poll .question-report {
left: 78px;
right: inherit;
}
.poll_1 {
width: 100%;
}
.question-favorite, .question-category, .question-comment, .question-category a, .question-comment a {
margin-bottom: 5px;
}
.question-date, .question-view {
margin-bottom: 10px;
}
.user-points h3 {
float: none;
padding-right: 0;
margin-bottom: 10px;
}
.user-points .question-user-vote, .user-points .question-vote-result, .user-points .question-date {
margin-bottom: 0;
}
.question-tags, .post-tags {
display: block;
float: none;
margin-bottom: 10px;
}
/* user-profile */
.stats-head, .block-stats-visibility, .block-stats-1, .block-stats-2, .block-stats-3, .block-stats-4 {
padding: 10px 5px;
font-size: 13px;
width: 21.2%;
margin: 0;
}
.block-stats-1 {
width: 36.4%;
}
.overlay-lightbox, .overlay-link {
top: 50%;
margin-top: -15px;
}
.bxslider-title {
display: none;
}
.sidebar .widget_social, .sidebar .widget_login {
display: none;
}
}
/*------------------------------------------------------------------------------*/
/* width : 479px
/*------------------------------------------------------------------------------*/
@media only screen and (max-width: 479px) {
body {
width: 100%;
}
.grid_970 .container {
width: auto;
}
.inner {
width: 260px;
}
.boxed, .boxed2, .boxed #header.fixed-nav, .boxed2 #header.fixed-nav {
width: 100%;
}
.boxed2 {
margin-top: 0;
margin-bottom: 0;
}
.panel-pop {
width: 90%;
}
.ask-me {
height: auto;
}
.ask-me .col-md-9 form {
background: transparent;
height: auto;
margin-top: 0;
}
.ask-me .col-md-9 p {
width: 220px;
width: 100%;
margin: 20px 0 0;
}
.ask-me .col-md-9 p textarea {
background-color: #FFF;
border: none;
color: #2f3239;
font-size: 13px;
font-weight: 600;
font-style: italic;
resize: none;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
margin-top: 20px;
}
.ask-me .col-md-9 .publish-question {
right: 10px;
}
.ask-me .col-md-3 {
padding-top: 0;
text-align: center;
}
.widget_menu_jquery {
display: none;
}
iframe {
height: auto;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 13px;
}
h6 {
font-size: 12px;
}
/* Columns */
.one_half, .one_third, .two_third, .three_fourth, .two_fourth, .one_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .two_sixth, .three_sixth, .four_sixth, .five_sixth {
float: none !important;
width: auto !important;
margin-right: 0 !important;
}
/* Header */
#header-top {
height: auto;
}
.header-search {
float: left;
width: 100%;
}
.header-search input {
width: 100%;
}
#header {
padding-bottom: 15px;
}
#header, #header.fixed-nav {
height: auto;
line-height: 70px;
}
#header .logo {
text-align: center;
margin: 0;
float: none;
}
.login-panel ul.login-links, .login ul.login-links {
margin: 20px 0 0 0;
}
#footer-bottom .social_icons ul li {
margin-left: 10px !important;
}
#footer-bottom .social_icons ul li, .social_icon ul li {
line-height: normal;
}
#footer-bottom .social_icons.f_left ul li {
margin-left: 0 !important;
margin-right: 10px !important;
}
#footer-bottom {
height: auto;
}
#footer-bottom .social_icons {
float: inherit !important;
display: inline-block;
}
#footer-bottom .social_icons li:first-child {
margin-left: 0 !important;
}
#footer-bottom > .container {
text-align: center;
}
#footer-bottom > .container > div {
float: inherit !important;
display: inline-block;
margin-left: 0 !important;
margin-right: 0 !important;
}
#footer-bottom > .container > div:first-child {
margin-bottom: 10px;
}
#footer-bottom > .container > .social_icons {
margin-bottom: 0;
}
#footer-bottom > .container > div, #footer-bottom_nav > ul > li > a {
height: auto;
line-height: auto;
text-align: center;
}
#footer-bottom_nav > ul li, #footer-bottom_nav > ul li a {
display: inline-block;
line-height: normal;
float: none;
}
#footer-bottom_nav > ul > li:last-child, #footer-bottom_nav.f_right > ul > li:last-child {
margin-right: 0;
margin-left: 0;
}
/* Navigation */
#header .navigation_mobile {
position: relative;
margin-top: 0;
}
.navigation_mobile > ul, .navigation, .navigation_mobile > ul {
display: none;
}
.navigation_mobile {
width: 100% !important;
margin-right: 0 !important;
margin-left: 0 !important;
}
.navigation_mobile > ul li ul {
display: block;
}
/* Breadcrumbs */
.crumbs {
display: none;
}
/* Sidebar */
.sidebar {
margin-top: 30px !important;
}
/* Footer */
#footer-bottom > .container > div {
margin-left: 0;
margin-right: 0;
}
#footer-bottom_nav.f_right > ul > li, #footer-bottom_nav > ul > li {
margin-right: 15px;
margin-left: 0;
display: inline-block;
text-align: center;
}
#footer-bottom_nav > ul > li:last-child, #footer-bottom_nav.f_right > ul > li:last-child {
margin-right: 0;
margin-left: 0;
}
/* Widgets */
.widget_flickr a, .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 68.4px !important;
height: 68.4px !important;
}
.widget_portfolio .portfolio-widget-item .portfolio_img:before, .popular_posts .popular_img a:before, .widget_flickr a:before {
line-height: 68.4px !important;
}
#footer .widget_flickr a, #footer .widget_portfolio .portfolio-widget-item .portfolio_img, .popular_img {
width: 73px !important;
height: 73px !important;
}
#footer .widget_portfolio .portfolio-widget-item .portfolio_img:before, #footer .popular_posts .popular_img a:before, #footer .widget_flickr a:before {
line-height: 73px !important;
}
.widget_flickr a:nth-child(9n), .widget_portfolio .portfolio-widget-item:nth-child(9n), #footer .widget_flickr a:nth-child(9n), #footer .widget_portfolio .portfolio-widget-item:nth-child(9n), .widget_flickr a:nth-child(3n), .widget_portfolio .portfolio-widget-item:nth-child(3n), #footer .widget_flickr a:nth-child(3n), #footer .widget_portfolio .portfolio-widget-item:nth-child(3n) {
margin-right: 5px !important;
}
.sidebar .widget_social, .sidebar .widget_login {
display: none;
}
.widget:last-child {
margin-bottom: 20px;
}
.sidebar .widget:last-child {
margin-bottom: 0;
}
.widget_contact ul li .icon_i {
margin-top: 5px;
}
/* Blog */
.blog_2.post .post-img {
margin-right: 0;
width: 100% !important;
margin-bottom: 30px !important;
}
/* Single post */
.post-next-prev {
text-align: center;
}
.post-next-prev p {
font-size: 14px;
float: none !important;
}
/* Respond */
#respond-inputs p, .full_width #respond-inputs p {
width: 100%;
margin-right: 0;
}
#respond input#submit {
width: 100%;
}
#respond-inputs p.last {
margin-bottom: 20px;
}
/* Comments */
.commentlist li .avatar {
float: none;
margin: 0 auto 10px;
}
.commentlist li .author {
text-align: center;
margin-bottom: 10px;
}
.commentlist li .comment-meta {
float: none;
margin-bottom: 10px;
}
.author a.button.mini {
float: none !important;
margin: auto !important;
}
.post-next-prev .prev-post a, .post-next-prev .next-post a {
display: block;
margin-bottom: 5px;
}
.comment-reply, .commentlist li .date {
float: none;
}
.commentlist li .date {
margin-top: 10px;
}
.children {
padding-left: 40px;
}
/* Shortcodes */
/* Tabs */
.tab a {
float: none;
margin-right: 0;
margin-bottom: 3px !important;
}
.tab a.current {
border-bottom: 1px solid #e5e5e5;
}
.tabs {
border-bottom: 1px solid #e5e5e5;
border-right: none;
}
.tabs-vertical .tabs {
float: none;
width: 100% !important;
}
.tabs-vertical.tabs-style-2 .tabs, .tabs-vertical.tabs-style-3 .tabs {
left: 0;
}
.tabs-vertical.tabs-style-2 .tab:last-child a, .tabs-vertical.tabs-style-3 .tab:last-child a {
border-bottom: none;
}
.tabs-vertical.tabs-style-2 .tab a.current, .tabs-vertical.tabs-style-3 .tab a.current {
border-right-color: #d3d3d3;
}
.tabs-vertical .tab-inner-warp, .tabs-style-2.tabs-vertical.tabs-long .tab-inner-warp, .tabs-style-3.tabs-vertical.tabs-long .tab-inner-warp {
margin-left: 0 !important;
}
.tabs-vertical .tab-inner {
padding: 20px 0 0;
}
.tabs-style-2 .tab a.current {
border-bottom-color: #d3d3d3;
}
.tabs-style-2 .tab a, .tabs-style-3 .tab a {
margin-right: 0;
margin-bottom: -1px;
}
.tabs-style-2 .tab:last-child a, .tabs-style-3 .tab:last-child a {
margin-bottom: 0;
}
/* Callout */
.button_right {
margin-top: 10px;
top: inherit !important;
right: inherit !important;
position: relative;
}
.callout_inner {
margin-right: 0 !important;
}
/* Carousel */
.images-warp ul li {
width: 260px;
}
.images-warp-grid li.columns, .images-warp-grid li.column {
margin-bottom: 20px;
}
/* Forms */
.form-inputs p {
float: none;
width: 100%;
}
.form-inputs p {
width: 100% !important;
}
#question-title, #question-details, .taglist .input input, .ask-question .form-description, #question_poll_item, .taglist, .form-style-5.form-style input[type="text"], .form-style-5.form-style input[type="email"], .form-style-5.form-style input[type="password"], .form-style-5.form-style textarea, .styled-select, .fileinputs {
width: 100%;
}
.form-description, #question_poll_item {
margin-left: 0;
}
.ask-question .form-style label {
margin-top: 0;
}
.user-profile-img {
float: none;
margin-bottom: 10px;
}
.user-profile .user-profile-img {
float: left;
}
.form-style-2 .fileinputs {
width: 100%;
}
.user-question h3 {
padding: 38px 0 0 0;
}
.user-question .question-type-main {
left: 20px;
right: inherit;
}
/* Slider */
.flex-caption, .nivo-caption, .br-slideinfo {
display: none !important;
}
.tp-rightarrow.default, .tp-leftarrow.default, .nivo-directionNav a.nivo-nextNav, .nivo-directionNav a.nivo-prevNav, .br-next, .br-previous {
height: 24px;
line-height: 23px;
font-size: 21px;
padding: 6px 10px;
}
.flex-direction-nav li a {
height: 24px;
padding: 6px 10px;
font-size: 25px;
}
/* Questions */
.question-type-normal .question-type-main, .question-type-poll .question-type-main {
left: 121px;
right: inherit;
}
.question-type-normal .question-report, .question-type-poll .question-report {
left: 121px;
right: inherit;
top: 58px;
}
.question-type-normal.question h2, .question-type-poll.question h2 {
padding-right: 0;
margin-top: 0;
}
.question-type-normal .question-author, .question-type-poll .question-author {
display: none;
}
.question-type-normal .question-inner, .question-type-poll .question-inner {
margin-left: 0px;
}
.single-question.question-type-normal .question-type-main, .single-question.question-type-poll .question-type-main {
left: 20px;
right: inherit;
}
.single-question.question-type-normal .question-report {
left: 104px;
right: inherit;
}
.single-question.question-type-poll .question-report {
left: 78px;
right: inherit;
}
.single-question.question-type-normal .question-report, .single-question.question-type-poll .question-report {
top: 20px;
}
.question-tab .tab-inner-warp {
padding-top: 0;
}
.question h2 {
margin-top: 121px;
}
.question h2, .question-inner {
margin-left: 0;
}
.question-author {
top: 20px;
left: 20px;
}
.user-points h3 {
float: none;
padding-right: 0;
margin-bottom: 10px;
}
.user-points .question-user-vote, .user-points .question-vote-result, .user-points .question-date {
margin-bottom: 0;
}
.poll_1 {
width: 100%;
}
.post-next-prev {
margin-bottom: 0;
}
.question-tags, .post-tags {
display: block;
float: none;
width: 100%;
}
.question-reply, .question-date, .question-view, .question-comment, .question-category, .question-tags, .post-tags, .question-favorite, .question-answered {
width: 100%;
margin-bottom: 10px !important;
}
.single-question.question h2 {
margin: 38px 20px 10px;
padding: 0;
}
.comment-vote, .question-vote {
margin-top: 5px;
}
.comment .question-vote-result {
margin-top: 15px;
}
/* user-profile */
.user-profile-img {
float: none;
margin: 0 0 20px;
}
.user-profile .user-profile-img {
float: left;
margin: 0 15px 10px 0;
}
.stats-head, .block-stats-visibility, .block-stats-1, .block-stats-2, .block-stats-3, .block-stats-4 {
padding: 10px 5px;
font-size: 13px;
width: 33.3%;
}
.block-stats-1 {
border-top: 1px solid #E0E6ED;
border-bottom: 1px solid #E0E6ED !important;
}
.block-stats-visibility {
display: none;
}
.block-stats-1 {
position: relative;
width: 100%;
}
/* error 404 */
.error_404 h2 {
font-size: 140px;
}
.overlay-lightbox, .overlay-link {
top: 50%;
margin-top: -15px;
}
.bxslider-title {
display: none;
}
.sidebar .widget_social, .sidebar .widget_login {
display: none;
}
}
/*------------------------------------------------------------------------------*/
/* width : 320
/*------------------------------------------------------------------------------*/
@media only screen and (min-width: 0px) and (max-width: 450px) {
.question-type-normal .question-author, .question-type-poll .question-author {
display: none;
}
.question-type-normal .question-inner, .question-type-poll .question-inner {
margin-left: 0px;
}
.sidebar .widget_social, .sidebar .widget_login {
display: none;
}
}
| 41.528473
| 61,192
| 0.639999
|
b8aa40fb72b7d25556db50030c35509d1924e701
| 696
|
dart
|
Dart
|
Language/Classes/Superclasses/superclass_of_itself_t04.dart
|
tvolkert/co19
|
435727789062a45da3d20da09024651fdeb8cafe
|
[
"BSD-3-Clause"
] | null | null | null |
Language/Classes/Superclasses/superclass_of_itself_t04.dart
|
tvolkert/co19
|
435727789062a45da3d20da09024651fdeb8cafe
|
[
"BSD-3-Clause"
] | null | null | null |
Language/Classes/Superclasses/superclass_of_itself_t04.dart
|
tvolkert/co19
|
435727789062a45da3d20da09024651fdeb8cafe
|
[
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion It is a compile-time error if a class C is a superclass of itself.
* @description Checks that it is a compile-time error if a class attempts to
* extend itself indirectly, by transition. Test type aliases
* @compile-error
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=nonfunction-type-aliases
class A extends DAlias {}
class B extends A {}
class C extends B {}
class D extends C {}
typedef DAlias = D;
main() {
new A();
}
| 27.84
| 80
| 0.716954
|
5d9dbbcbd81496978b9c2a77c8da97ad64cfd84f
| 2,631
|
sql
|
SQL
|
dbv-1/data/schema/fnVendorSippySheet.sql
|
devatsrs/neon.web
|
2ca8024fa58ecb881694b5308ff622468c181765
|
[
"MIT"
] | null | null | null |
dbv-1/data/schema/fnVendorSippySheet.sql
|
devatsrs/neon.web
|
2ca8024fa58ecb881694b5308ff622468c181765
|
[
"MIT"
] | null | null | null |
dbv-1/data/schema/fnVendorSippySheet.sql
|
devatsrs/neon.web
|
2ca8024fa58ecb881694b5308ff622468c181765
|
[
"MIT"
] | null | null | null |
CREATE DEFINER=`neon-user`@`%` PROCEDURE `fnVendorSippySheet`(
IN `p_AccountID` int,
IN `p_Trunks` longtext,
IN `p_Effective` VARCHAR(50)
)
BEGIN
CREATE TEMPORARY TABLE IF NOT EXISTS tmp_VendorSippySheet_(
RateID int,
`Action [A|D|U|S|SA` varchar(50),
id varchar(10),
Prefix varchar(50),
COUNTRY varchar(200),
Preference int,
`Interval 1` int,
`Interval N` int,
`Price 1` float,
`Price N` float,
`1xx Timeout` int,
`2xx Timeout` INT,
Huntstop int,
Forbidden int,
`Activation Date` varchar(10),
`Expiration Date` varchar(10),
AccountID int,
TrunkID int
);
call vwVendorCurrentRates(p_AccountID,p_Trunks,p_Effective);
SELECT NULL AS RateID,
'A' AS `Action [A|D|U|S|SA]`,
'' AS id,
Concat(tblTrunk.Prefix , vendorRate.Code) AS PREFIX,
vendorRate.Description AS COUNTRY,
5 AS Preference,
vendorRate.`Interval 1` AS `Interval 1`,
vendorRate.`Interval N` AS `Interval N`,
vendorRate.Rate AS `Price 1`,
vendorRate.Rate AS `Price N`,
10 AS `1xx Timeout`,
60 AS `2xx Timeout`,
0 AS Huntstop,
CASE WHEN (tblVendorBlocking.VendorBlockingId IS NOT NULL AND FIND_IN_SET(vendorRate.TrunkId,p_Trunks) != 0) OR (blockCountry.VendorBlockingId IS NOT NULL AND FIND_IN_SET(vendorRate.TrunkId,p_Trunks) != 0 )
THEN 1
ELSE 0
END AS Forbidden,
'NOW' AS `Activation Date`,
'' AS `Expiration Date`,
tblAccount.AccountID,
tblTrunk.TrunkID
FROM tmp_VendorSippySheet_ AS vendorRate
INNER JOIN tblAccount ON vendorRate.AccountId = tblAccount.AccountID
LEFT OUTER JOIN tblVendorBlocking ON vendorRate.RateID = tblVendorBlocking.RateId
AND tblAccount.AccountID = tblVendorBlocking.AccountId
AND vendorRate.TrunkID = tblVendorBlocking.TrunkID
LEFT OUTER JOIN tblVendorBlocking AS blockCountry ON vendorRate.CountryID = blockCountry.CountryId
AND tblAccount.AccountID = blockCountry.AccountId
AND vendorRate.TrunkID = blockCountry.TrunkID
INNER JOIN tblTrunk ON tblTrunk.TrunkID = vendorRate.TrunkID
WHERE vendorRate.AccountId = p_AccountID
AND FIND_IN_SET(vendorRate.TrunkId,p_Trunks) != 0
AND vendorRate.Rate > 0;
END
| 41.109375
| 222
| 0.594831
|
4d53dde561e3a0c0282b15d593f67cbfea2cbbee
| 87
|
cs
|
C#
|
src/Services/Ordering/Ordering.Application/Class1.cs
|
bornehill/AspnetMicroservices
|
ae027b99dac1458c31c5484aae32f7d64884f957
|
[
"MIT"
] | null | null | null |
src/Services/Ordering/Ordering.Application/Class1.cs
|
bornehill/AspnetMicroservices
|
ae027b99dac1458c31c5484aae32f7d64884f957
|
[
"MIT"
] | null | null | null |
src/Services/Ordering/Ordering.Application/Class1.cs
|
bornehill/AspnetMicroservices
|
ae027b99dac1458c31c5484aae32f7d64884f957
|
[
"MIT"
] | null | null | null |
using System;
namespace Ordering.Application
{
public class Class1
{
}
}
| 9.666667
| 30
| 0.643678
|
2f0c468e1eb719a8e12990f6b81d7e879c4d46f5
| 8,652
|
js
|
JavaScript
|
src/queryEverbridge.js
|
sbonnick/everbridge-proxy
|
d3857ac1beda86aa0b6a37410f8c6294518fda5a
|
[
"MIT"
] | null | null | null |
src/queryEverbridge.js
|
sbonnick/everbridge-proxy
|
d3857ac1beda86aa0b6a37410f8c6294518fda5a
|
[
"MIT"
] | null | null | null |
src/queryEverbridge.js
|
sbonnick/everbridge-proxy
|
d3857ac1beda86aa0b6a37410f8c6294518fda5a
|
[
"MIT"
] | null | null | null |
var request = require('request-promise');
require('string.format');
var moment = require('moment-timezone');
var cache = require('memory-cache');
//TODO: expose this as env or auto detect
const tz = "America/New_York";
const tzFormat = 'YYYY-MM-DDTHH:mm:ss';
const tdDateFormat = 'YYYY-MM-DD';
const _ebBaseUrl = 'https://api.everbridge.net/rest';
var _baseRequest;
var _orgId;
var _cacheTimeouts = {
contacts: undefined,
calendars: undefined,
assignment: undefined
};
//TODO: assuming UTC. should either auto-discover or leave conversion to the UI and pass through time zone
function convertDate(date, zone) {
var src = moment.tz(date.toISOString(), 'UTC');
var tor = src.clone().tz(zone);
return tor;
}
function connection(user, pass, organizationId) {
_baseRequest = request.defaults({
auth: {
user: user,
pass: pass,
sendImmediately: true
},
json: true
});
_orgId = organizationId;
}
function cacheTimouts(contacts, calendar) {
_cacheTimeouts = {
contacts: contacts,
calendars: calendar
}
}
function getContacts(groupId) {
var cached = cache.get('contacts-{id}'.format({id: groupId}))
if (cached != null) return cached;
var url = '{baseUrl}/contacts/{org}?pageNumber=1&groupIds={group}&searchType=AND'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
group: groupId
});
var query = _baseRequest({uri: url, method: "GET"})
cache.put('contacts-{id}'.format({id: groupId}), query, _cacheTimeouts.contacts);
return query;
}
function getCalendars() {
var cached = cache.get('calendars-{org}'.format({org: _orgId}))
if (cached != null) return cached;
var url = '{baseUrl}/calendars/{org}'.format({
baseUrl: _ebBaseUrl,
org: _orgId
});
var query = _baseRequest({uri: url, method: "GET"});
cache.put('calendars-{org}'.format({org: _orgId}), query, _cacheTimeouts.calendars);
return query;
}
//TODO: handle paging
function getAssignments(calendarExtId, dateRange) {
var url = '{baseUrl}/staff/{org}/assignment/{calExt}?from={start}&to={end}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
calExt: calendarExtId,
start: dateRange.start.toISOString().replace(/:/g, '%3A'),
end: dateRange.end.toISOString().replace(/:/g, '%3A')
});
return _baseRequest({uri: url, method: "GET"})
}
function getStaffSchedules(calendarId, page=1, data) {
return _getStaffSchedulesPage(calendarId, page)
.then(function(response) {
if (!data) data = [];
data = data.concat(response.data);
if (response.totalPageCount > page) {
return getShiftSchedules(calendarId, page + 1, data)
}
return {data: data};
});
}
function _getStaffSchedulesPage(calendarId, page) {
var url = '{baseUrl}/scheduling/{org}/staffSchedules?filter%5BcalendarId%5D={cal}&pageSize=50&pageNo={page}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
cal: calendarId,
page: page,
});
return _baseRequest({uri: url, method: "GET"})
}
function getShiftSchedules(calendarId, page=1, data) {
return _getShiftSchedulesPage(calendarId, page)
.then(function(response) {
if (!data) data = [];
data = data.concat(response.data);
if (response.totalPageCount > page) {
return getShiftSchedules(calendarId, page + 1, data)
}
return {data: data};
});
}
function _getShiftSchedulesPage(calendarId, page) {
var url = '{baseUrl}/scheduling/{org}/shiftSchedules?filter%5BcalendarId%5D={cal}&pageSize=50&pageNo={page}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
cal: calendarId,
page: page,
});
return _baseRequest({uri: url, method: "GET"})
}
function getShiftSubstitutions(calendarId, page=1, data) {
return _getShiftSubstitutionsPage(calendarId, page)
.then(function(response) {
if (!data) data = [];
data = data.concat(response.data);
if (response.totalPageCount > page) {
return getShiftSubstitutions(calendarId, page + 1, data)
}
return {data: data};
});
}
function _getShiftSubstitutionsPage(calendarId, page) {
var url = '{baseUrl}/scheduling/{org}/shiftSubstitutions?filter%5BcalendarId%5D={cal}&pageSize=50&pageNo={page}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
cal: calendarId,
page: page,
});
return _baseRequest({uri: url, method: "GET"})
}
function setShiftSubstitution(calendarId, shiftScheduleId, syncContacts, dates) {
var url = '{baseUrl}/scheduling/{org}/shiftSubstitutions'.format({
baseUrl: _ebBaseUrl,
org: _orgId
});
var payload = {
"data": {
"type": "shiftSubstitution",
"calendarId": calendarId,
"shiftScheduleId": shiftScheduleId,
"recurrence": {
"type": "occurrence",
"datesApplicable": dates
},
"staffAssignment": {
"type": "contact",
"contactIds": syncContacts
},
"timeZoneString": tz
}
}
return _baseRequest({uri: url, method: "POST", json: payload})
}
function updateShiftSubstitution(substitutionId, calendarId, shiftScheduleId, syncContacts, dates) {
var url = '{baseUrl}/scheduling/{org}/shiftSubstitutions/{sub}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
sub: substitutionId,
});
var payload = {
"data": {
"type": "shiftSubstitution",
"calendarId": calendarId,
"shiftScheduleId": shiftScheduleId,
"recurrence": {
"type": "occurrence",
"datesApplicable": dates
},
"staffAssignment": {
"type": "contact",
"contactIds": syncContacts
},
"timeZoneString": tz
}
}
return _baseRequest({uri: url, method: "PUT", json: payload})
}
function removeShiftSubstitution(substitutionId) {
var url = '{baseUrl}/scheduling/{org}/shiftSubstitutions/{sub}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
sub: substitutionId,
});
return _baseRequest({uri: url, method: "DELETE"})
}
function getSubstitutions(calendarId, page=1, data) {
return _getSubstitutionsPage(calendarId, page)
.then(function(response) {
if (!data) data = [];
data = data.concat(response.data);
if (response.totalPageCount > page) {
return getSubstitutions(calendarId, page + 1, data)
}
return {data: data};
});
}
function _getSubstitutionsPage(calendarId, page) {
var url = '{baseUrl}/scheduling/{org}/substitutions?filter%5BcalendarId%5D={cal}&sort=createdDate&pageSize=50&pageNo={page}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
cal: calendarId,
page: page,
});
return _baseRequest({uri: url, method: "GET"})
}
function setSubstitution(calendarId, sourceContact, syncContact, dateRange) {
var url = '{baseUrl}/scheduling/{org}/substitutions'.format({
baseUrl: _ebBaseUrl,
org: _orgId
});
var payload = {
"data": {
"type": "staffSubstitution",
"calendarId": calendarId,
"contactId": sourceContact,
"recurrence": {
"type": "ical",
"event": {
"end": convertDate(dateRange.end, tz).format(tzFormat),
"start": convertDate(dateRange.start, tz).format(tzFormat)
}
},
"staffAssignment": {
"type": "contact",
"contactIds": [ syncContact ]
},
"timeZoneString": tz
}
}
return _baseRequest({uri: url, method: "POST", json: payload})
}
function removeSubstitution(substitutionId) {
var url = '{baseUrl}/scheduling/{org}/substitutions/{sub}'.format({
baseUrl: _ebBaseUrl,
org: _orgId,
sub: substitutionId,
});
return _baseRequest({uri: url, method: "DELETE"})
}
module.exports = {
connection: connection,
cacheTimouts: cacheTimouts,
getContacts: getContacts,
getCalendars: getCalendars,
getAssignments: getAssignments,
getStaffSchedules: getStaffSchedules,
getShiftSchedules: getShiftSchedules,
getShiftSubstitutions: getShiftSubstitutions,
setShiftSubstitution: setShiftSubstitution,
updateShiftSubstitution: updateShiftSubstitution,
removeShiftSubstitution: removeShiftSubstitution,
getSubstitutions: getSubstitutions,
setSubstitution: setSubstitution,
removeSubstitution: removeSubstitution
};
| 26.869565
| 136
| 0.62448
|
b08730524968dd7a9fd18149716d7843be04b85b
| 6,455
|
swift
|
Swift
|
SecureVK/VK.swift
|
Rubikoid/secure_vk
|
7b3f910812b3f11025a620910e7b3f5cdbe915da
|
[
"BSD-2-Clause"
] | 3
|
2017-01-12T14:32:05.000Z
|
2021-12-28T12:32:20.000Z
|
SecureVK/VK.swift
|
Rubikoid/secure_vk
|
7b3f910812b3f11025a620910e7b3f5cdbe915da
|
[
"BSD-2-Clause"
] | null | null | null |
SecureVK/VK.swift
|
Rubikoid/secure_vk
|
7b3f910812b3f11025a620910e7b3f5cdbe915da
|
[
"BSD-2-Clause"
] | null | null | null |
//
// VK.swift
// SecureVK
//
// Created by Rubikoid on 03.01.17.
// Copyright © 2017 Rubikoid. All rights reserved.
//
import Foundation
import Cocoa
import SwiftyVK
//*global vars
//Не очень красивое решение проблемы обмена данными между контролами, но...
var storadge: AppStoradge = AppStoradge()
var worker: VKWorker = VKWorker()
//*global vars
class VKWorker
{
init() { }
func getCurrentUserID() {
let userIdGet = VK.API.Users.get()
userIdGet.send(onSuccess: {resp in
storadge.currentUserID = resp[0]["id"].int!
storadge.users.updateValue(User(id_: resp[0]["id"].int!, fname_: resp[0]["first_name"].stringValue, lname_: resp[0]["last_name"].stringValue), forKey: resp[0]["id"].int!)
Log.put("Loading status","User id loaded")
},
onError: {err in
storadge.currentUserID = -1
Log.put("Error","getCurrentUserID: \(err)")
})
}
func TokenChanged(_ state: Bool) {
storadge.appDeleg?.loginStatus.state = state ? 1 : 0
let view = state ? storadge.storyboard?.instantiateController(withIdentifier: "MainWind") as? NSViewController : storadge.storyboard?.instantiateController(withIdentifier: "LoginWind") as? NSViewController
DispatchQueue.main.async { storadge.window?.contentViewController = view }
NotificationCenter.default.addObserver(self, selector: #selector(self.newMessage), name: VK.LP.notifications.type4, object: nil)
}
func IMsLoad()
{
self.getCurrentUserID()
let req = VK.API.Messages.getDialogs()
req.send(onSuccess: {resp in
for i in 0..<resp["items"].count {
self.IMPrepare(resp["items"][i]["message"], id: i, maxID: resp["items"].count)
}
Log.put("Loading status","Loading IMs end")
storadge.messagesLoadCurrentRow = 0
self.messagesGet()
}, onError: {resp in Log.put("Error","getDialogs: \(resp)")}
)
}
func IMPrepare(_ dialog: JSON, id: Int, maxID: Int) {
var next = IM()
if dialog["chat_id"].int != nil {
next.title = dialog["title"].stringValue;
next.id = dialog["chat_id"].int! + 2000000000
let req = VK.API.Messages.getChatUsers([VK.Arg.chatId: String(dialog["chat_id"].int!), VK.Arg.fields: "online"])
req.send(onSuccess: {resp in
for i in 0..<resp.count {
if !storadge.users.keys.contains(resp[i]["id"].int!) {
storadge.users.updateValue(User(id_: resp[i]["id"].int!, fname_: resp[i]["first_name"].stringValue, lname_: resp[i]["last_name"].stringValue), forKey: resp[i]["id"].int!)
}
}
}, onError: {err in Log.put("Error","getChatUsers: \(err)")})
}
else {
let usr = User(id_: dialog["user_id"].int!)
next.title = usr.toString()
if !storadge.users.keys.contains(dialog["user_id"].int!) {
storadge.users.updateValue(usr, forKey: dialog["user_id"].int!)
}
next.id = dialog["user_id"].int!
}
next.last = dialog["body"].string!
if next.last.contains("RUBIVK_") && next.last.contains("_VKRUBI") {
next.last = next.last.replacingOccurrences(of: "RUBIVK_", with: "")
next.last = next.last.replacingOccurrences(of: "_VKRUBI", with: "")
next.last = storadge.secure.decrypt(next.last) ?? "_decryption error_"
}
storadge.IMs.append(next)
if maxID - 1 == id {
storadge.IMTableUpdate()
}
}
func userGet(_ id: String) -> JSON {
let url: URL = URL(string: "https://api.vk.com/method/users.get?user_ids="+id+"&v=5.60")!
let (data, _, _) = URLSession.shared.synchronousDataTaskWithURL(url)
let jsonResult = JSON(data: data!)
return jsonResult["response"]
}
func messagesGet() {
var req = VK.API.Messages.getHistory([VK.Arg.peerId: String(storadge.IMs[storadge.messagesLoadCurrentRow].id), VK.Arg.count: "20"])
req.next(self.messageWork)
req.send(onSuccess: {succ in
storadge.IMs[storadge.messagesLoadCurrentRow].messages = self.messagesParse(resp: succ)
Log.put("Loading status","Loaind messages end")
VK.LP.start()
}, onError: { err in
if err.localizedDescription.contains("Too many requests per second") {
if storadge.messagesLoadCurrentRow == storadge.IMs.count - 1 {
Log.put("Error","Too many requests per second error - to last")
let req = VK.API.Messages.getHistory([VK.Arg.peerId: String(storadge.IMs[storadge.messagesLoadCurrentRow].id), VK.Arg.count: "20"])
req.send(onSuccess: {succ in storadge.IMs[storadge.messagesLoadCurrentRow].messages = self.messagesParse(resp: succ); Log.put("Loading status","Loaind messages end"); }, onError: { err in Log.put("Error","restarted messagesGet: \(err)") })
}
else {
Log.put("Error","Too many requests per second error - restart")
self.messagesGet()
}
}
else { Log.put("Error","messagesGet: \(err)") }
})
}
func messageWork(resp: JSON) -> RequestConfig {
var new_req = VK.API.Messages.getHistory([VK.Arg.peerId: String(storadge.IMs[storadge.messagesLoadCurrentRow+1].id), VK.Arg.count: "20"])
if storadge.messagesLoadCurrentRow < storadge.IMs.count - 2 { new_req.next(self.messageWork) }
storadge.IMs[storadge.messagesLoadCurrentRow].messages = self.messagesParse(resp: resp)
storadge.messagesLoadCurrentRow += 1
return new_req
}
func messagesParse(resp: JSON) -> [Message] {
var ret: [Message] = [Message]()
var i = resp["items"].array!.count - 1
while i>=0 {
let res = resp["items"][i]
ret.append(Message(res))
i -= 1
}
return ret
}
func getMessagesHistory(_ vkarg: [VK.Arg: String], IMID: Int, doUpdate: Bool = false) {
let req = VK.API.Messages.getHistory(vkarg)
req.send(
onSuccess: {resp in
storadge.IMs[IMID].messages = self.messagesParse(resp: resp)
Log.put("Loading status","Messages for \(storadge.IMs[IMID].title) loaded")
},
onError: {err in Log.put("Error","getMessagesHistory: \(err)")}
)
}
@objc func newMessage(_ notif: Notification) {
Log.put("Messages","Recived new message")
let json = (notif.object! as! JSONWrapper).unwrap
let req = VK.API.Messages.getById([VK.Arg.messageIds: String(json[0][1].int!)])
req.send(onSuccess: {resp in
let res = resp["items"][0]
let next: Message = Message(res)
let uid = json[0][3].int!
let id = storadge.IMs.index(where: {$0.id == uid})! // TODO: Сделать подгрузку диалога при новом сообщении в неподгруженном изначально диалоге
storadge.IMs[id].last = next.body
storadge.IMs[id].messages.append(next)
storadge.IMTableUpdate()
storadge.messageTableUpdate()
Log.put("Messages","Processed new message")
},
onError: {err in Log.put("Error","newMessage: \(err)")}
)
}
}
| 37.748538
| 244
| 0.682262
|
f217aaea17f8a57ecb3b96c89935b9862d806b2b
| 2,485
|
cpp
|
C++
|
src/blinkit/blink/renderer/platform/shared_buffer.cpp
|
titilima/blink
|
2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad
|
[
"MIT"
] | 13
|
2020-04-21T13:14:00.000Z
|
2021-11-13T14:55:12.000Z
|
src/blinkit/blink/renderer/platform/shared_buffer.cpp
|
titilima/blink
|
2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad
|
[
"MIT"
] | null | null | null |
src/blinkit/blink/renderer/platform/shared_buffer.cpp
|
titilima/blink
|
2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad
|
[
"MIT"
] | 4
|
2020-04-21T13:15:43.000Z
|
2021-11-13T14:55:00.000Z
|
// -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
// File Name: shared_buffer.cpp
// Description: SharedBuffer Class
// Author: Ziming Li
// Created: 2019-09-29
// -------------------------------------------------
// Copyright (C) 2019 MingYang Software Technology.
// -------------------------------------------------
#include "./SharedBuffer.h"
#include "third_party/zed/include/zed/memory.hpp"
namespace blink {
SharedBuffer::SharedBuffer(const char *data, size_t length)
{
if (length > 0)
append(data, length);
}
std::shared_ptr<SharedBuffer> SharedBuffer::adoptVector(std::vector<char> &v)
{
auto ret = create();
if (ret)
ret->m_data.swap(v);
return ret;
}
void SharedBuffer::append(const char *data, size_t length)
{
ASSERT(length > 0);
size_t oldLength = m_data.size();
m_data.resize(oldLength + length);
memcpy(m_data.data() + oldLength, data, length);
}
std::shared_ptr<SharedBuffer> SharedBuffer::create(void)
{
return zed::wrap_shared(new SharedBuffer);
}
std::shared_ptr<SharedBuffer> SharedBuffer::create(const char *data, size_t length)
{
return zed::wrap_shared(new SharedBuffer(data, length));
}
std::shared_ptr<SharedBuffer> SharedBuffer::create(const unsigned char* data, size_t length)
{
return zed::wrap_shared(new SharedBuffer(reinterpret_cast<const char *>(data), length));
}
size_t SharedBuffer::getSomeData(const char *&data, size_t position) const
{
if (position >= m_data.size())
{
data = nullptr;
return 0;
}
ASSERT(position < m_data.size());
data = m_data.data();
return m_data.size();
}
bool SharedBuffer::isLocked(void) const
{
return true; // BKTODO: Check the logic.
}
#ifdef BLINKIT_UI_ENABLED
PassRefPtr<SkData> SharedBuffer::getAsSkData() const
{
size_t bufferLength = size();
SkData *data = SkData::NewUninitialized(bufferLength);
char *buffer = static_cast<char *>(data->writable_data());
const char *segment = nullptr;
size_t position = 0;
while (size_t segmentSize = getSomeData(segment, position))
{
memcpy(buffer + position, segment, segmentSize);
position += segmentSize;
}
if (position != bufferLength)
{
ASSERT_NOT_REACHED();
// Don't return the incomplete SkData.
return nullptr;
}
return adoptRef(data);
}
#endif
} // namespace blink
| 24.85
| 92
| 0.616901
|
b05daf76fc78b421a39622de700ce91e7647e140
| 2,148
|
py
|
Python
|
regression-tests/sparktkregtests/testcases/frames/frame_multiclass_classification_test.py
|
lewisc/spark-tk
|
5548fc925b5c278263cbdebbd9e8c7593320c2f4
|
[
"ECL-2.0",
"Apache-2.0"
] | 34
|
2016-05-20T22:26:05.000Z
|
2022-01-21T12:55:13.000Z
|
regression-tests/sparktkregtests/testcases/frames/frame_multiclass_classification_test.py
|
aayushidwivedi01/spark-tk-old
|
fcf25f86498ac416cce77de0db4cf0aa503d20ac
|
[
"ECL-2.0",
"Apache-2.0"
] | 70
|
2016-06-28T01:11:21.000Z
|
2021-03-15T21:40:01.000Z
|
regression-tests/sparktkregtests/testcases/frames/frame_multiclass_classification_test.py
|
aayushidwivedi01/spark-tk-old
|
fcf25f86498ac416cce77de0db4cf0aa503d20ac
|
[
"ECL-2.0",
"Apache-2.0"
] | 34
|
2016-04-21T22:25:22.000Z
|
2020-10-06T09:23:43.000Z
|
# vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
""" tests multiclass classification metrics"""
import unittest
from sparktkregtests.lib import sparktk_test
class ClassificationMetrics(sparktk_test.SparkTKTestCase):
def test_multinomial_frame_classification(self):
"""Tests the confusion matrix functionality"""
schema = [("actual", int), ("predicted", int), ("count", int)]
class_csv = self.get_file("class_data.csv") # the name of our data file, needs to be in hdfs for the test to run
frame = self.context.frame.import_csv(class_csv, schema=schema) # uploading our data file, will return a frame
actual_result = [5, 2, 3, 0, 5, 3, 0, 2, 5] # the values we expect to get from our test
classMetrics = frame.multiclass_classification_metrics('actual', 'predicted', frequency_column='count') # the label column, result column, and frequency column are the params
conf_matrix = classMetrics.confusion_matrix.values
cumulative_matrix_list = [conf_matrix[0][0],
conf_matrix[0][1],
conf_matrix[0][2],
conf_matrix[1][0],
conf_matrix[1][1],
conf_matrix[1][2],
conf_matrix[2][0],
conf_matrix[2][1],
conf_matrix[2][2]]
self.assertEqual(actual_result, cumulative_matrix_list)
if __name__ == '__main__':
unittest.main()
| 42.117647
| 182
| 0.630819
|
cd6f6c4c03c57a2a795dc2c55200336cdcff4576
| 2,088
|
cs
|
C#
|
playground/Pype.Benchmarks/BackgroundProcessingComparison/BackgroundQueueBenchmark.cs
|
darjanbogdan/pype
|
49bec1e8e664a5185e374e1fe334cb8a059c78c6
|
[
"MIT"
] | 10
|
2020-01-24T14:51:59.000Z
|
2022-01-08T16:55:03.000Z
|
playground/Pype.Benchmarks/BackgroundProcessingComparison/BackgroundQueueBenchmark.cs
|
darjanbogdan/pype
|
49bec1e8e664a5185e374e1fe334cb8a059c78c6
|
[
"MIT"
] | 2
|
2021-02-02T22:10:53.000Z
|
2021-03-11T18:36:17.000Z
|
playground/Pype.Benchmarks/BackgroundProcessingComparison/BackgroundQueueBenchmark.cs
|
darjanbogdan/pype
|
49bec1e8e664a5185e374e1fe334cb8a059c78c6
|
[
"MIT"
] | 1
|
2020-07-01T22:21:01.000Z
|
2020-07-01T22:21:01.000Z
|
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using Microsoft.Extensions.Logging;
using Moq;
using Nito.AsyncEx;
using Pype.Background.Queue;
using Pype.Background.Queue.Processing;
using Pype.Notifications;
using SimpleInjector;
using System.Linq;
using System.Threading.Tasks;
namespace Pype.Benchmarks.BackgroundProcessing
{
[MemoryDiagnoser]
[HtmlExporter]
public class BackgroundQueueBenchmark
{
private static readonly Container _container = new Container();
private readonly AsyncAutoResetEvent _resetEvent = new AsyncAutoResetEvent(false);
private BackgroundHandleProxyProcessor _processor;
private IBus _bus;
//[Params(1, 1000, 100000)]
[Params(1, 1000)]
public int N;
[GlobalSetup]
public void Setup()
{
var assemblies = new[] { typeof(BackgroundQueueBenchmark).Assembly };
_container.RegisterSingleton<IBus>(() => new Bus(_container.GetInstance));
_container.RegisterInstance(_resetEvent);
_container.Collection.Register(typeof(INotificationHandler<>), assemblies);
_container.RegisterSingleton<IBackgroundHandleProxyQueue, BackgroundHandleProxyQueue>();
_container.RegisterDecorator(typeof(INotificationHandler<>), typeof(BackgroundNotificationHandler<>));
_bus = _container.GetInstance<IBus>();
var queue = _container.GetInstance<IBackgroundHandleProxyQueue>();
_processor = new BackgroundHandleProxyProcessor(queue, Mock.Of<ILogger<BackgroundHandleProxyProcessor>>());
_ = _processor.StartAsync(default);
}
[Benchmark(Description = "Queue")]
public async Task ProcessNotification()
{
_ = Enumerable.Range(0, N).Select(i => _bus.PublishAsync(new EmptyNotification(signalEnd: i + 1 == N))).ToArray();
await _resetEvent.WaitAsync();
}
[GlobalCleanup]
public void Cleanup()
{
_ = _processor.StopAsync(default);
}
}
}
| 30.705882
| 126
| 0.674808
|
a35208c97a04f39f1e0eb317c414c1b6f7ea0406
| 152
|
java
|
Java
|
src/main/java/dto/AuthDto.java
|
sabant88/Api_QA11
|
6e5e26f057004a003b15f3aed555bca847c1597d
|
[
"Apache-2.0"
] | null | null | null |
src/main/java/dto/AuthDto.java
|
sabant88/Api_QA11
|
6e5e26f057004a003b15f3aed555bca847c1597d
|
[
"Apache-2.0"
] | null | null | null |
src/main/java/dto/AuthDto.java
|
sabant88/Api_QA11
|
6e5e26f057004a003b15f3aed555bca847c1597d
|
[
"Apache-2.0"
] | null | null | null |
package dto;
import lombok.*;
@Setter
@Getter
@ToString
@Builder
@AllArgsConstructor
public class AuthDto {
String email;
String password;
}
| 10.133333
| 22
| 0.723684
|
a1448137ed13f97da7549154f2996292e43c6fad
| 827
|
ts
|
TypeScript
|
src/api/src/resolvers/user/helpers/sendVerificationEmail.ts
|
mwmouawad/ocean-academy
|
756d3afc4072e6988022112ef451baa9270efa1b
|
[
"MIT"
] | null | null | null |
src/api/src/resolvers/user/helpers/sendVerificationEmail.ts
|
mwmouawad/ocean-academy
|
756d3afc4072e6988022112ef451baa9270efa1b
|
[
"MIT"
] | null | null | null |
src/api/src/resolvers/user/helpers/sendVerificationEmail.ts
|
mwmouawad/ocean-academy
|
756d3afc4072e6988022112ef451baa9270efa1b
|
[
"MIT"
] | null | null | null |
import { MailDataRequired } from '@sendgrid/helpers/classes/mail'
import * as sendgrid from '@sendgrid/mail';
interface SendVerificationEmail{
(email: string, verificationToken: string) : Promise<void>
}
export const sendVerificationEmail: SendVerificationEmail = async(email, verificationToken) => {
sendgrid.setApiKey(process.env.SENDGRID_API_KEY as string)
const verificationMessage: MailDataRequired = {
to: email,
from: { name: 'OceanAcademy', email: process.env.FROM_EMAIL as string },
subject: 'Email Verification - Ocean Academy',
text: `Please enter the folowing verification code: ${verificationToken.toUpperCase()} `,
html: `Please enter the folowing verification code: ${verificationToken.toUpperCase()}`,
}
await sendgrid.send(verificationMessage)
}
| 41.35
| 97
| 0.727932
|
e4024958c2079cb446a22609b67fc0d7942153b9
| 3,250
|
cs
|
C#
|
src/IF.Lastfm.Core/Api/AlbumApi.cs
|
PCurd/lastfm
|
34d6e617ea21fd50d97125c2a83d00fdd866e6bd
|
[
"MIT"
] | 1
|
2015-01-11T19:46:20.000Z
|
2015-01-11T19:46:20.000Z
|
src/IF.Lastfm.Core/Api/AlbumApi.cs
|
PCurd/lastfm
|
34d6e617ea21fd50d97125c2a83d00fdd866e6bd
|
[
"MIT"
] | null | null | null |
src/IF.Lastfm.Core/Api/AlbumApi.cs
|
PCurd/lastfm
|
34d6e617ea21fd50d97125c2a83d00fdd866e6bd
|
[
"MIT"
] | null | null | null |
using System;
using System.Threading.Tasks;
using IF.Lastfm.Core.Api.Commands.AlbumApi;
using IF.Lastfm.Core.Api.Helpers;
using IF.Lastfm.Core.Objects;
namespace IF.Lastfm.Core.Api
{
public class AlbumApi : IAlbumApi
{
public ILastAuth Auth { get; private set; }
public AlbumApi(ILastAuth auth)
{
Auth = auth;
}
public async Task<LastResponse<LastAlbum>> GetAlbumInfoAsync(string artistname, string albumname, bool autocorrect = false)
{
var command = new GetAlbumInfoCommand(Auth, albumname, artistname)
{
Autocorrect = autocorrect
};
return await command.ExecuteAsync();
}
public async Task<LastResponse<LastAlbum>> GetAlbumInfoByMbidAsync(string albumMbid, bool autocorrect = false)
{
var command = new GetAlbumInfoCommand(Auth)
{
AlbumMbid = albumMbid,
Autocorrect = autocorrect
};
return await command.ExecuteAsync();
}
//public Task<PageResponse<BuyLink>> GetBuyLinksForAlbumAsync(string artist, string album, CountryCode country, bool autocorrect = false)
//{
// throw new NotImplementedException();
//}
public Task<PageResponse<LastTag>> GetTagsByUserAsync(string artist, string album, string username, bool autocorrect = false)
{
var command = new AlbumGetTagsByUserCommand(Auth, artist, album, username)
{
Autocorrect = autocorrect
};
return command.ExecuteAsync();
}
public async Task<PageResponse<LastTag>> GetTopTagsForAlbumAsync(string artist, string album, bool autocorrect = false)
{
var command = new GetAlbumTopTagsCommand(Auth)
{
ArtistName = artist,
AlbumName = album
};
return await command.ExecuteAsync();
}
public async Task<PageResponse<LastAlbum>> SearchForAlbumAsync(string albumname, int page = 1, int itemsPerPage = LastFm.DefaultPageLength)
{
var command = new SearchAlbumsCommand(Auth, albumname)
{
Page = page,
Count = itemsPerPage
};
return await command.ExecuteAsync();
}
public async Task<PageResponse<LastShout>> GetShoutsAsync(string albumname, string artistname, bool autocorrect = false, int page = 1, int count = LastFm.DefaultPageLength)
{
var command = new GetAlbumShoutsCommand(Auth, albumname, artistname)
{
Page = page,
Autocorrect = autocorrect,
Count = count
};
return await command.ExecuteAsync();
}
//public async Task<LastResponse> AddShoutAsync(string albumname, string artistname, string message)
//{
// var command = new AddShoutCommand(Auth, albumname, artistname, message);
// return await command.ExecuteAsync();
//}
}
}
| 34.210526
| 180
| 0.573538
|
25d5f5ece7002531b15e99afb78701ea91a33e81
| 263
|
cs
|
C#
|
Assets/Scripts/6.OdinToolkit/EditorCoroutine/interface/IYield.cs
|
dotlive/Odin-Inspector-Chinese-Tutorial
|
69e8d9bf988c8ec2fe303f8518f117f75e12e3a4
|
[
"Apache-2.0"
] | 163
|
2019-08-29T00:55:01.000Z
|
2022-03-29T06:38:23.000Z
|
Assets/Scripts/6.OdinToolkit/EditorCoroutine/interface/IYield.cs
|
dotlive/Odin-Inspector-Chinese-Tutorial
|
69e8d9bf988c8ec2fe303f8518f117f75e12e3a4
|
[
"Apache-2.0"
] | null | null | null |
Assets/Scripts/6.OdinToolkit/EditorCoroutine/interface/IYield.cs
|
dotlive/Odin-Inspector-Chinese-Tutorial
|
69e8d9bf988c8ec2fe303f8518f117f75e12e3a4
|
[
"Apache-2.0"
] | 49
|
2019-08-29T01:49:31.000Z
|
2022-03-25T10:42:25.000Z
|
internal interface IYield
{
/// <summary>
/// 判断迭代是否可以跳转下一次迭代
/// </summary>
/// <param name="deltaTime"></param>
/// <param name="frameCount"></param>
/// <returns></returns>
bool IsReadyToYield(double deltaTime, int frameCount);
}
| 21.916667
| 58
| 0.604563
|
b34f1f069756b47ea138f9f0665fda1440591521
| 927
|
py
|
Python
|
Problems/twoSum.py
|
vlaksi/algorithms-and-data-structure
|
43b2206e919c653c2168d14bb0a9050ee9622a2f
|
[
"MIT"
] | 5
|
2021-07-17T14:10:02.000Z
|
2022-01-02T18:58:36.000Z
|
Problems/twoSum.py
|
vlaksi/Algorithms-and-data-structures
|
43b2206e919c653c2168d14bb0a9050ee9622a2f
|
[
"MIT"
] | null | null | null |
Problems/twoSum.py
|
vlaksi/Algorithms-and-data-structures
|
43b2206e919c653c2168d14bb0a9050ee9622a2f
|
[
"MIT"
] | null | null | null |
"""
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1].
"""
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
indeksi = []
for i in range(len(nums)):
for j in range(len(nums)):
if (i != j) and (nums[i]+nums[j] == target):
indeksi.append(i)
indeksi.append(j)
return indeksi
return indeksi
if __name__ == "__main__":
# execute only if run as a script
s = Solution()
nums = [2, 7, 11, 15]
target = 9
print(s.twoSum(nums,target))
| 22.609756
| 107
| 0.560949
|
20eed3246b31f0fa94dde998c5adafa289b2bf4a
| 1,388
|
cs
|
C#
|
LinFu.Loaders/Interfaces/IActionLoader.cs
|
philiplaureano/LinFu.Loaders
|
95621ace7a16293af3a39cf9da973a5f4243e8c4
|
[
"MIT"
] | 1
|
2019-04-10T21:02:29.000Z
|
2019-04-10T21:02:29.000Z
|
LinFu.Loaders/Interfaces/IActionLoader.cs
|
philiplaureano/LinFu.Loaders
|
95621ace7a16293af3a39cf9da973a5f4243e8c4
|
[
"MIT"
] | null | null | null |
LinFu.Loaders/Interfaces/IActionLoader.cs
|
philiplaureano/LinFu.Loaders
|
95621ace7a16293af3a39cf9da973a5f4243e8c4
|
[
"MIT"
] | 3
|
2016-01-06T07:57:52.000Z
|
2018-12-13T08:13:34.000Z
|
using System;
using System.Collections.Generic;
namespace LinFu.Loaders
{
/// <summary>
/// Represents a class that can configure
/// a target of type <typeparamref name="TTarget" />
/// using an input type of <typeparamref name="TInput" />.
/// </summary>
/// <typeparam name="TTarget">The target type to configure.</typeparam>
/// <typeparam name="TInput">The input that will be used to configure the target.</typeparam>
public interface IActionLoader<in TTarget, in TInput>
{
/// <summary>
/// Generates a set of <see cref="Action{T}" /> instances
/// using the given <paramref name="input" />.
/// </summary>
/// <param name="input">The input that will be used to configure the target.</param>
/// <returns>A set of <see cref="Action{TTarget}" /> instances. This cannot be <c>null</c>.</returns>
IEnumerable<Action<TTarget>> Load(TInput input);
/// <summary>
/// Determines if the PluginLoader can load the <paramref name="inputType" />.
/// </summary>
/// <param name="inputType">The target type that might contain the target <typeparamref name="TAttribute" /> instance.</param>
/// <returns><c>true</c> if the type can be loaded; otherwise, it returns <c>false</c>.</returns>
bool CanLoad(TInput inputType);
}
}
| 46.266667
| 134
| 0.618156
|
d731c9dc8c0f437db614ba2c4dfb56b827314766
| 1,729
|
swift
|
Swift
|
Sources/Views/MainViewController.swift
|
bongzniak/reactorKit-karrotFlex-example
|
bb03f37a52d55368211bf4ee042b37f8d12f78bc
|
[
"MIT"
] | 10
|
2022-01-21T08:37:23.000Z
|
2022-03-14T09:36:44.000Z
|
Sources/Views/MainViewController.swift
|
bongzniak/reactorKit-karrotFlex-example
|
bb03f37a52d55368211bf4ee042b37f8d12f78bc
|
[
"MIT"
] | null | null | null |
Sources/Views/MainViewController.swift
|
bongzniak/reactorKit-karrotFlex-example
|
bb03f37a52d55368211bf4ee042b37f8d12f78bc
|
[
"MIT"
] | null | null | null |
//
// MainViewController.swift
// ReactorKit-KarrotFlex-Example
//
// Created Fernando on 2020/09/30.
// Copyright © 2020 tmsae. All rights reserved.
//
import UIKit
import ReactorKit
import RxCocoa
import RxSwift
import RxViewController
final class MainViewController: BaseViewController<MainBodyView>, ReactorKit.View {
// MARK: typealias
typealias Reactor = MainViewReactor
// MARK: Constants
// MARK: Properties
// MARK: Initializing
init(reactor: Reactor, view: MainBodyView) {
defer {
self.reactor = reactor
}
super.init(view: view)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
// MARK: Life Cycle
override func viewDidLoad() {
super.viewDidLoad()
title = "Sherlock"
}
// MARK: Binding
func bind(reactor: Reactor) {
// View
rx.viewDidLoad.map {
Reactor.Action.load
}
.bind(to: reactor.action)
.disposed(by: disposeBag)
// State
reactor.state.map {
$0.series
}
.distinctUntilChanged()
.filterNil()
.subscribe(onNext: { [weak self] series in
self?.bodyView.bind(action: .updateSeries(series))
})
.disposed(by: disposeBag)
}
}
extension MainViewController {
class func resolve() -> MainViewController {
MainViewController(
reactor: Reactor(seriesService: SeriesService()),
view: MainBodyView.resolve()
)
}
}
| 21.085366
| 83
| 0.551186
|
5aece2fbaec6aaae7a3686cc27740dc9e3c4a6ee
| 2,405
|
cs
|
C#
|
Development/nJupiter.DataAccess.Ldap.Tests.Unit/DirectoryServices/PropertyValueParserTests.cs
|
twilek/njupiter
|
5cd6c8976ddea3639b2956092bfcad17ee944fed
|
[
"X11",
"MIT"
] | null | null | null |
Development/nJupiter.DataAccess.Ldap.Tests.Unit/DirectoryServices/PropertyValueParserTests.cs
|
twilek/njupiter
|
5cd6c8976ddea3639b2956092bfcad17ee944fed
|
[
"X11",
"MIT"
] | null | null | null |
Development/nJupiter.DataAccess.Ldap.Tests.Unit/DirectoryServices/PropertyValueParserTests.cs
|
twilek/njupiter
|
5cd6c8976ddea3639b2956092bfcad17ee944fed
|
[
"X11",
"MIT"
] | null | null | null |
#region Copyright & License
//
// Copyright (c) 2005-2012 nJupiter
//
// 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.
//
#endregion
using System;
using NUnit.Framework;
using nJupiter.DataAccess.Ldap.DirectoryServices;
namespace nJupiter.DataAccess.Ldap.Tests.Unit.DirectoryServices {
[TestFixture]
public class PropertyValueParserTests {
[Test]
public void ParseString_SendInString_ReturnsCorrectString() {
var result = PropertyValueParser.Parse<string>("hello world");
Assert.AreEqual("hello world", result);
}
[Test]
public void ParseString_SendInStringAsByteArray_ReturnsCorrectString() {
var byteArray = System.Text.Encoding.UTF8.GetBytes("hello world");
var result = PropertyValueParser.Parse<string>(byteArray);
Assert.AreEqual("hello world", result);
}
[Test]
public void ParseDateTime_SendInDateAsFileTime_ReturnsCorrectDateTime() {
var date = new DateTime(2000, 1, 1);
var result = PropertyValueParser.Parse<DateTime>(date.ToFileTime());
Assert.AreEqual(date, result);
}
[Test]
public void ParseDateTime_SendInDateAsFileTimeString_ReturnsCorrectDateTime() {
var date = new DateTime(2000, 1, 1);
var result = PropertyValueParser.Parse<DateTime>(date.ToFileTime().ToString());
Assert.AreEqual(date, result);
}
}
}
| 37
| 83
| 0.731809
|
b75582d23033bd9636bd190462cb22da89e5bd0b
| 61,137
|
cpp
|
C++
|
vphysics_bullet/Physics_Environment.cpp
|
SwagSoftware/Kisak-Strike
|
7498c886b5199b37cbd156ceac9377ecac73b982
|
[
"Unlicense"
] | 252
|
2020-12-16T15:34:43.000Z
|
2022-03-31T23:21:37.000Z
|
vphysics_bullet/Physics_Environment.cpp
|
SwagSoftware/Kisak-Strike
|
7498c886b5199b37cbd156ceac9377ecac73b982
|
[
"Unlicense"
] | 23
|
2020-12-20T18:02:54.000Z
|
2022-03-28T16:58:32.000Z
|
vphysics_bullet/Physics_Environment.cpp
|
SwagSoftware/Kisak-Strike
|
7498c886b5199b37cbd156ceac9377ecac73b982
|
[
"Unlicense"
] | 42
|
2020-12-19T04:32:33.000Z
|
2022-03-30T06:00:28.000Z
|
#include "StdAfx.h"
#include <cmodel.h>
#include <cstring>
#include "Physics_Environment.h"
#include "Physics.h"
#include "Physics_Object.h"
#include "Physics_ShadowController.h"
#include "Physics_PlayerController.h"
#include "Physics_FluidController.h"
#include "Physics_DragController.h"
#include "Physics_MotionController.h"
#include "Physics_Constraint.h"
#include "Physics_Collision.h"
#include "Physics_VehicleController.h"
#include "miscmath.h"
#include "convert.h"
#if DEBUG_DRAW
#include "DebugDrawer.h"
#endif
#include "BulletCollision/CollisionDispatch/btDefaultCollisionConfiguration.h"
#include "BulletDynamics/MLCPSolvers/btMLCPSolver.h"
#include "BulletDynamics/MLCPSolvers/btLemkeSolver.h"
#include "BulletDynamics/MLCPSolvers/btDantzigSolver.h"
#include "BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h"
#include "BulletDynamics/ConstraintSolver/btNNCGConstraintSolver.h"
#include "BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolverMt.h"
#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorldMt.h"
#include "BulletCollision/CollisionDispatch/btCollisionDispatcherMt.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
/*****************************
* MISC. CLASSES
*****************************/
class IDeleteQueueItem {
public:
virtual void Delete() = 0;
};
template <typename T>
class CDeleteProxy : public IDeleteQueueItem {
public:
CDeleteProxy(T *pItem) : m_pItem(pItem) {}
virtual void Delete() override { delete m_pItem; }
private:
T *m_pItem;
};
class CDeleteQueue {
public:
void Add(IDeleteQueueItem *pItem) {
m_list.AddToTail(pItem);
}
template <typename T>
void QueueForDelete(T *pItem) {
Add(new CDeleteProxy<T>(pItem));
}
void DeleteAll() {
for (int i = m_list.Count()-1; i >= 0; --i) {
m_list[i]->Delete();
delete m_list[i];
}
m_list.RemoveAll();
}
private:
CUtlVector<IDeleteQueueItem *> m_list;
};
bool CCollisionSolver::needBroadphaseCollision(btBroadphaseProxy *proxy0, btBroadphaseProxy *proxy1) const {
btRigidBody *body0 = btRigidBody::upcast(static_cast<btCollisionObject*>(proxy0->m_clientObject));
btRigidBody *body1 = btRigidBody::upcast(static_cast<btCollisionObject*>(proxy1->m_clientObject));
if(!body0 || !body1)
{
// Check if one of them is a soft body
// btCollisionObject *colObj0 = static_cast<btCollisionObject*>(proxy0->m_clientObject);
// btCollisionObject *colObj1 = static_cast<btCollisionObject*>(proxy1->m_clientObject);
// if (colObj0->getInternalType() & btCollisionObject::CO_SOFT_BODY || colObj1->getInternalType() & btCollisionObject::CO_SOFT_BODY) {
// return true;
// }
return (body0 != nullptr && !body0->isStaticObject()) || (body1 != nullptr && !body1->isStaticObject());
}
CPhysicsObject *pObject0 = static_cast<CPhysicsObject*>(body0->getUserPointer());
CPhysicsObject *pObject1 = static_cast<CPhysicsObject*>(body1->getUserPointer());
bool collides = NeedsCollision(pObject0, pObject1) &&
(proxy0->m_collisionFilterGroup & proxy1->m_collisionFilterMask) && (proxy1->m_collisionFilterGroup & proxy0->m_collisionFilterMask);
if (!collides) {
// Clean this pair from the cache
m_pEnv->GetBulletEnvironment()->getBroadphase()->getOverlappingPairCache()->removeOverlappingPair(proxy0, proxy1, m_pEnv->GetBulletEnvironment()->getDispatcher());
}
return collides;
}
bool CCollisionSolver::NeedsCollision(CPhysicsObject *pObject0, CPhysicsObject *pObject1) const {
if (pObject0 && pObject1) {
// No static->static collisions
if (pObject0->IsStatic() && pObject1->IsStatic())
{
return false;
}
// No shadow->shadow collisions
if (pObject0->GetShadowController() && pObject1->GetShadowController())
{
return false;
}
if (!pObject0->IsCollisionEnabled() || !pObject1->IsCollisionEnabled())
{
return false;
}
if ((pObject0->GetCallbackFlags() & CALLBACK_ENABLING_COLLISION) || (pObject1->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE))
{
return false;
}
// No kinematic->static collisions
if ((pObject0->GetObject()->getCollisionFlags() & btCollisionObject::CF_KINEMATIC_OBJECT && pObject1->IsStatic())
|| (pObject1->GetObject()->getCollisionFlags() & btCollisionObject::CF_KINEMATIC_OBJECT && pObject0->IsStatic()))
{
return false;
}
if ((pObject1->GetCallbackFlags() & CALLBACK_ENABLING_COLLISION) || (pObject0->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE))
{
return false;
}
// Most expensive call, do this check last
if (m_pSolver && !m_pSolver->ShouldCollide(pObject0, pObject1, pObject0->GetGameData(), pObject1->GetGameData()))
{
return false;
}
}
else
{
// One of the objects has no phys object...
if (pObject0 && !pObject0->IsCollisionEnabled())
return false;
if (pObject1 && !pObject1->IsCollisionEnabled())
return false;
}
return true;
}
void SerializeWorld_f(const CCommand &args) {
if (args.ArgC() != 3) {
Msg("Usage: bt_serialize <index> <name>\n");
return;
}
CPhysicsEnvironment *pEnv = (CPhysicsEnvironment *)g_Physics.GetActiveEnvironmentByIndex(atoi(args.Arg(2)));
if (pEnv) {
btDiscreteDynamicsWorld *pWorld = static_cast<btDiscreteDynamicsWorld*>(pEnv->GetBulletEnvironment());
Assert(pWorld);
btSerializer *pSerializer = new btDefaultSerializer;
pWorld->serialize(pSerializer);
// FIXME: We shouldn't be using this. Find the appropiate method from valve interfaces.
const char *pName = args.Arg(2);
FILE *pFile = fopen(pName, "wb");
if (pFile) {
fwrite(pSerializer->getBufferPointer(), pSerializer->getCurrentBufferSize(), 1, pFile);
fclose(pFile);
} else {
Warning("Couldn't open \"%s\" for writing!\n", pName);
}
} else {
Warning("Invalid environment index supplied!\n");
}
}
static ConCommand cmd_serializeworld("bt_serialize", SerializeWorld_f, "Serialize environment by index (usually 0=server, 1=client)\n\tDumps the file out to the exe directory.");
/*******************************
* CLASS CObjectTracker
*******************************/
class CObjectTracker {
public:
CObjectTracker(CPhysicsEnvironment *pEnv, IPhysicsObjectEvent *pObjectEvents) {
m_pEnv = pEnv;
m_pObjEvents = pObjectEvents;
}
int GetActiveObjectCount() const {
return m_activeObjects.Count();
}
void GetActiveObjects(IPhysicsObject **pOutputObjectList) const {
if (!pOutputObjectList) return;
const int size = m_activeObjects.Count();
for (int i = 0; i < size; i++) {
pOutputObjectList[i] = m_activeObjects[i];
}
}
void SetObjectEventHandler(IPhysicsObjectEvent *pEvents) {
m_pObjEvents = pEvents;
}
void ObjectRemoved(CPhysicsObject *pObject) {
m_activeObjects.FindAndRemove(pObject);
}
void Tick() {
btDiscreteDynamicsWorld *pBulletEnv = m_pEnv->GetBulletEnvironment();
btCollisionObjectArray &colObjArray = pBulletEnv->getCollisionObjectArray();
for (int i = 0; i < colObjArray.size(); i++) {
CPhysicsObject *pObj = static_cast<CPhysicsObject*>(colObjArray[i]->getUserPointer());
if (!pObj) continue; // Internal object that the game doesn't need to know about
Assert(*(char *)pObj != 0xDD); // Make sure the object isn't deleted (only works in debug builds) TODO: This can be removed, result is always true
// Don't add objects marked for delete
if (pObj->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE) {
continue;
}
if (colObjArray[i]->getActivationState() != pObj->GetLastActivationState()) {
const int newState = colObjArray[i]->getActivationState();
// Not a state we want to track.
if (newState == WANTS_DEACTIVATION)
continue;
if (m_pObjEvents) {
switch (newState) {
// FIXME: Objects may call objectwake twice if they go from disable_deactivation -> active_tag
case DISABLE_DEACTIVATION:
case ACTIVE_TAG:
m_pObjEvents->ObjectWake(pObj);
break;
case ISLAND_SLEEPING:
m_pObjEvents->ObjectSleep(pObj);
break;
case DISABLE_SIMULATION:
// Don't call ObjectSleep on DISABLE_SIMULATION on purpose.
break;
default:
NOT_IMPLEMENTED;
assert(false);
}
}
switch (newState) {
case DISABLE_DEACTIVATION:
case ACTIVE_TAG:
// Don't add the object twice!
if (m_activeObjects.Find(pObj) == -1)
m_activeObjects.AddToTail(pObj);
break;
case DISABLE_SIMULATION:
case ISLAND_SLEEPING:
m_activeObjects.FindAndRemove(pObj);
break;
default:
NOT_IMPLEMENTED;
assert(false);
}
pObj->SetLastActivationState(newState);
}
}
}
private:
CPhysicsEnvironment *m_pEnv;
IPhysicsObjectEvent *m_pObjEvents;
CUtlVector<IPhysicsObject *> m_activeObjects;
};
/*******************************
* CLASS CPhysicsCollisionData
*******************************/
class CPhysicsCollisionData : public IPhysicsCollisionData {
public:
CPhysicsCollisionData(btManifoldPoint *manPoint) {
ConvertDirectionToHL(manPoint->m_normalWorldOnB, m_surfaceNormal);
ConvertPosToHL(manPoint->getPositionWorldOnA(), m_contactPoint);
ConvertPosToHL(manPoint->m_lateralFrictionDir1, m_contactSpeed); // FIXME: Need the correct variable from the manifold point
}
// normal points toward second object (object index 1)
void GetSurfaceNormal(Vector &out) override
{
out = m_surfaceNormal;
}
// contact point of collision (in world space)
void GetContactPoint(Vector &out) override
{
out = m_contactPoint;
}
// speed of surface 1 relative to surface 0 (in world space)
void GetContactSpeed(Vector &out) override
{
out = m_contactSpeed;
}
private:
Vector m_surfaceNormal;
Vector m_contactPoint;
Vector m_contactSpeed;
};
/*********************************
* CLASS CCollisionEventListener
*********************************/
class CCollisionEventListener : public btSolveCallback {
public:
CCollisionEventListener(CPhysicsEnvironment *pEnv) {
m_pEnv = pEnv;
m_pCallback = NULL;
}
// TODO: Optimize this, heavily!
void preSolveContact(btSolverBody *body0, btSolverBody *body1, btManifoldPoint *cp) override
{
CPhysicsObject *pObj0 = static_cast<CPhysicsObject*>(body0->m_originalColObj->getUserPointer());
CPhysicsObject *pObj1 = static_cast<CPhysicsObject*>(body1->m_originalColObj->getUserPointer());
if (pObj0->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE || pObj1->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE)
return;
const unsigned int flags0 = pObj0->GetCallbackFlags();
const unsigned int flags1 = pObj1->GetCallbackFlags();
// Clear it
memset(&m_tmpEvent, 0, sizeof(m_tmpEvent));
m_tmpEvent.collisionSpeed = 0.f; // Invalid pre-collision
m_tmpEvent.deltaCollisionTime = 10.f; // FIXME: Find a way to track the real delta time
m_tmpEvent.isCollision = (flags0 & flags1 & CALLBACK_GLOBAL_COLLISION); // False when either one of the objects don't have CALLBACK_GLOBAL_COLLISION
m_tmpEvent.isShadowCollision = ((flags0 ^ flags1) & CALLBACK_SHADOW_COLLISION) != 0; // True when only one of the objects is a shadow (if both are shadow, it's handled by the game)
m_tmpEvent.pObjects[0] = pObj0;
m_tmpEvent.pObjects[1] = pObj1;
m_tmpEvent.surfaceProps[0] = pObj0->GetMaterialIndex();
m_tmpEvent.surfaceProps[1] = pObj1->GetMaterialIndex();
if ((pObj0->IsStatic() && !(flags1 & CALLBACK_GLOBAL_COLLIDE_STATIC)) || (pObj1->IsStatic() && !(flags0 & CALLBACK_GLOBAL_COLLIDE_STATIC))) {
m_tmpEvent.isCollision = false;
}
if (!m_tmpEvent.isCollision && !m_tmpEvent.isShadowCollision) return;
CPhysicsCollisionData data(cp);
m_tmpEvent.pInternalData = &data;
// Give the game its stupid velocities
if (body0->m_originalBody) {
m_tmpVelocities[0] = body0->m_originalBody->getLinearVelocity();
m_tmpAngVelocities[0] = body0->m_originalBody->getAngularVelocity();
body0->m_originalBody->setLinearVelocity(m_tmpVelocities[0] + body0->internalGetDeltaLinearVelocity());
body0->m_originalBody->setAngularVelocity(m_tmpAngVelocities[0] + body0->internalGetDeltaAngularVelocity());
}
if (body1->m_originalBody) {
m_tmpVelocities[1] = body1->m_originalBody->getLinearVelocity();
m_tmpAngVelocities[1] = body1->m_originalBody->getAngularVelocity();
body1->m_originalBody->setLinearVelocity(m_tmpVelocities[1] + body1->internalGetDeltaLinearVelocity());
body1->m_originalBody->setAngularVelocity(m_tmpAngVelocities[1] + body1->internalGetDeltaAngularVelocity());
}
if (m_pCallback)
m_pCallback->PreCollision(&m_tmpEvent);
// Restore the velocities
// UNDONE: No need, postSolveContact will do this.
/*
if (body0->m_originalBody) {
body0->m_originalBody->setLinearVelocity(m_tmpVelocities[0]);
body0->m_originalBody->setAngularVelocity(m_tmpAngVelocities[0]);
}
if (body1->m_originalBody) {
body1->m_originalBody->setLinearVelocity(m_tmpVelocities[1]);
body1->m_originalBody->setAngularVelocity(m_tmpAngVelocities[1]);
}
*/
}
// TODO: Optimize this, heavily!
void postSolveContact(btSolverBody *body0, btSolverBody *body1, btManifoldPoint *cp) override
{
btRigidBody *rb0 = btRigidBody::upcast(body0->m_originalColObj);
btRigidBody *rb1 = btRigidBody::upcast(body1->m_originalColObj);
// FIXME: Problem with bullet code, only one solver body created for static objects!
// There could be more than one static object created by us!
CPhysicsObject *pObj0 = static_cast<CPhysicsObject*>(body0->m_originalColObj->getUserPointer());
CPhysicsObject *pObj1 = static_cast<CPhysicsObject*>(body1->m_originalColObj->getUserPointer());
if (pObj0->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE || pObj1->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE)
return;
//unsigned int flags0 = pObj0->GetCallbackFlags();
//unsigned int flags1 = pObj1->GetCallbackFlags();
const btScalar combinedInvMass = rb0->getInvMass() + rb1->getInvMass();
m_tmpEvent.collisionSpeed = BULL2HL(cp->m_appliedImpulse * combinedInvMass); // Speed of body 1 rel to body 2 on axis of constraint normal
// FIXME: Find a way to track the real delta time
// IVP tracks this delta time between object pairs
// lwss: I had a method in here to track the delta times between the pairs.
// I wondered what it was for, turns out it's all 95% for a sound hack
// in which they don't play sounds too often on 2 colliding objects.
// so for now, I'll just leave this as is and play all physics sounds
m_tmpEvent.deltaCollisionTime = 10.f;
//lwss hack - ragdoll sounds are a bit too loud
if( pObj0->GetCollisionHints() & COLLISION_HINT_RAGDOLL || pObj1->GetCollisionHints() & COLLISION_HINT_RAGDOLL )
{
// value determined from testing :))
m_tmpEvent.collisionSpeed *= 0.4f;
}
//lwss end
/*
m_tmpEvent.isCollision = (flags0 & flags1 & CALLBACK_GLOBAL_COLLISION); // False when either one of the objects don't have CALLBACK_GLOBAL_COLLISION
m_tmpEvent.isShadowCollision = (flags0 ^ flags1) & CALLBACK_SHADOW_COLLISION; // True when only one of the objects is a shadow
m_tmpEvent.pObjects[0] = pObj0;
m_tmpEvent.pObjects[1] = pObj1;
m_tmpEvent.surfaceProps[0] = pObj0 ? pObj0->GetMaterialIndex() : 0;
m_tmpEvent.surfaceProps[1] = pObj1 ? pObj1->GetMaterialIndex() : 0;
*/
if (!m_tmpEvent.isCollision && !m_tmpEvent.isShadowCollision) return;
CPhysicsCollisionData data(cp);
m_tmpEvent.pInternalData = &data;
// Give the game its stupid velocities
if (body0->m_originalBody) {
body0->m_originalBody->setLinearVelocity(m_tmpVelocities[0] + body0->internalGetDeltaLinearVelocity());
body0->m_originalBody->setAngularVelocity(m_tmpAngVelocities[0] + body0->internalGetDeltaAngularVelocity());
}
if (body1->m_originalBody) {
body1->m_originalBody->setLinearVelocity(m_tmpVelocities[1] + body1->internalGetDeltaLinearVelocity());
body1->m_originalBody->setAngularVelocity(m_tmpAngVelocities[1] + body1->internalGetDeltaAngularVelocity());
}
if (m_pCallback)
m_pCallback->PostCollision(&m_tmpEvent);
// Restore the velocities
if (body0->m_originalBody) {
body0->m_originalBody->setLinearVelocity(m_tmpVelocities[0]);
body0->m_originalBody->setAngularVelocity(m_tmpAngVelocities[0]);
}
if (body1->m_originalBody) {
body1->m_originalBody->setLinearVelocity(m_tmpVelocities[1]);
body1->m_originalBody->setAngularVelocity(m_tmpAngVelocities[1]);
}
}
void friction(btSolverBody *body0, btSolverBody *body1, btSolverConstraint *constraint) override
{
/*
btRigidBody *rb0 = btRigidBody::upcast(body0->m_originalColObj);
btRigidBody *rb1 = btRigidBody::upcast(body1->m_originalColObj);
// FIXME: Problem with bullet code, only one solver body created for static objects!
// There could be more than one static object created by us!
CPhysicsObject *pObj0 = (CPhysicsObject *)body0->m_originalColObj->getUserPointer();
CPhysicsObject *pObj1 = (CPhysicsObject *)body1->m_originalColObj->getUserPointer();
unsigned int flags0 = pObj0->GetCallbackFlags();
unsigned int flags1 = pObj1->GetCallbackFlags();
// Don't do the callback if it's disabled on either object
if (!(flags0 & flags1 & CALLBACK_GLOBAL_FRICTION)) return;
// If the solver uses 2 friction directions
btSolverConstraint *constraint2 = NULL;
if (m_pEnv->GetBulletEnvironment()->getSolverInfo().m_solverMode & SOLVER_USE_2_FRICTION_DIRECTIONS) {
constraint2 = constraint + 1; // Always stored after the first one
}
// Calculate the energy consumed
float totalImpulse = constraint->m_appliedImpulse + (constraint2 ? constraint2->m_appliedImpulse : 0);
totalImpulse *= rb0->getInvMass(); // Get just the velocity
totalImpulse *= totalImpulse; // Square it
totalImpulse *= SAFE_DIVIDE(.5, rb0->getInvMass()); // Add back the mass (1/2*mv^2)
if (m_pCallback)
m_pCallback->Friction(pObj0)
*/
}
void SetCollisionEventCallback(IPhysicsCollisionEvent *pCallback) {
m_pCallback = pCallback;
}
private:
CPhysicsEnvironment *m_pEnv;
IPhysicsCollisionEvent *m_pCallback;
// Temp. variables saved between Pre/PostCollision
btVector3 m_tmpVelocities[2];
btVector3 m_tmpAngVelocities[2];
vcollisionevent_t m_tmpEvent{};
};
/*******************************
* Bullet Dynamics World Static References
*******************************/
// TODO: See if this dynamics world pointer is right, it's assigned twice
static bool gBulletDynamicsWorldGuard = false;
static btDynamicsWorld* gBulletDynamicsWorld = NULL;
#ifdef BT_THREADSAFE
static bool gMultithreadedWorld = true;
static SolverType gSolverType = SOLVER_TYPE_SEQUENTIAL_IMPULSE_MT;
#else
static bool gMultithreadedWorld = false;
static SolverType gSolverType = SOLVER_TYPE_SEQUENTIAL_IMPULSE;
#endif
static int gSolverMode = SOLVER_SIMD | SOLVER_USE_WARMSTARTING |
/* SOLVER_RANDMIZE_ORDER | SOLVER_INTERLEAVE_CONTACT_AND_FRICTION_CONSTRAINTS | SOLVER_USE_2_FRICTION_DIRECTIONS |*/ 0;
/*******************************
* Bullet Dynamics World ConVars
*******************************/
// bt_solveriterations
static void cvar_solver_iterations_Change(IConVar *var, const char *pOldValue, float flOldValue);
static ConVar cvar_solver_iterations("bt_solver_iterations", "4", FCVAR_REPLICATED, "Number of collision solver iterations", true, 1, true, 32, cvar_solver_iterations_Change);
static void cvar_solver_iterations_Change(IConVar *var, const char *pOldValue, float flOldValue)
{
if(gBulletDynamicsWorld)
{
gBulletDynamicsWorld->getSolverInfo().m_numIterations = cvar_solver_iterations.GetInt();
Msg("Solver iteration count is changed from %i to %i\n", static_cast<int>(flOldValue), cvar_solver_iterations.GetInt());
}
}
// bt_solver_residualthreshold
static void cvar_solver_residualthreshold_Change(IConVar *var, const char *pOldValue, float flOldValue);
static ConVar cvar_solver_residualthreshold("bt_solver_residualthreshold", "0.0", FCVAR_REPLICATED, "Solver leastSquaresResidualThreshold (used to run fewer solver iterations when convergence is good)", true, 0.0f, true, 0.25f, cvar_solver_residualthreshold_Change);
static void cvar_solver_residualthreshold_Change(IConVar *var, const char *pOldValue, float flOldValue)
{
if (gBulletDynamicsWorld)
{
gBulletDynamicsWorld->getSolverInfo().m_leastSquaresResidualThreshold = cvar_solver_residualthreshold.GetFloat();
Msg("Solver residual threshold is changed from %f to %f\n", flOldValue, cvar_solver_residualthreshold.GetFloat());
}
}
// bt_substeps
static ConVar bt_max_world_substeps("bt_max_world_substeps", "5", FCVAR_REPLICATED, "Maximum amount of catchup simulation-steps BulletPhysics is allowed to do per Simulation()", true, 1, true, 12);
// Threadsafe specific console variables
#ifdef BT_THREADSAFE
// bt_threadcount
static void cvar_threadcount_Change(IConVar *var, const char *pOldValue, float flOldValue);
static ConVar cvar_threadcount("bt_threadcount", "1", FCVAR_REPLICATED, "Number of cores utilized by bullet task scheduler. By default, TBB sets this to optimal value", true, 1, true, static_cast<float>(BT_MAX_THREAD_COUNT), cvar_threadcount_Change);
static void cvar_threadcount_Change(IConVar *var, const char *pOldValue, float flOldValue)
{
const int newNumThreads = MIN(cvar_threadcount.GetInt(), int(BT_MAX_THREAD_COUNT));
const int oldNumThreads = btGetTaskScheduler()->getNumThreads();
// only call when the thread count is different
if (newNumThreads != oldNumThreads)
{
btGetTaskScheduler()->setNumThreads(newNumThreads);
Msg("Changed %s task scheduler thread count from %i to %i\n", btGetTaskScheduler()->getName(), oldNumThreads, newNumThreads);
}
}
// bt_island_batchingthreshold
static void cvar_island_batchingthreshold_Change(IConVar *var, const char *pOldValue, float flOldValue);
static ConVar cvar_island_batchingthreshold("bt_solver_islandbatchingthreshold", std::to_string(btSequentialImpulseConstraintSolverMt::s_minimumContactManifoldsForBatching).c_str(), FCVAR_REPLICATED, "If the number of manifolds that an island have reaches to that value, they will get batched", true, 1, true, 2000, cvar_island_batchingthreshold_Change);
static void cvar_island_batchingthreshold_Change(IConVar *var, const char *pOldValue, float flOldValue)
{
btSequentialImpulseConstraintSolverMt::s_minimumContactManifoldsForBatching = cvar_island_batchingthreshold.GetInt();
Msg("Island batching threshold is changed from %i to %i\n", static_cast<int>(flOldValue), cvar_island_batchingthreshold.GetInt());
}
// bt_solver_minbatchsize
static void cvar_solver_minbatchsize_Change(IConVar *var, const char *pOldValue, float flOldValue);
static ConVar cvar_solver_minbatchsize("bt_solver_minbatchsize", std::to_string(btSequentialImpulseConstraintSolverMt::s_minBatchSize).c_str(), FCVAR_REPLICATED, "Minimum size of batches for solver", true, 1, true, 1000, cvar_solver_minbatchsize_Change);
// bt_solver_maxbatchsize
static void cvar_solver_maxbatchsize_Change(IConVar *var, const char *pOldValue, float flOldValue);
static ConVar cvar_solver_maxbatchsize("bt_solver_maxbatchsize", std::to_string(btSequentialImpulseConstraintSolverMt::s_maxBatchSize).c_str(), FCVAR_REPLICATED, "Maximum size of batches for solver", true, 1, true, 1000, cvar_solver_maxbatchsize_Change);
static void cvar_solver_minbatchsize_Change(IConVar *var, const char *pOldValue, float flOldValue)
{
cvar_solver_maxbatchsize.SetValue(MAX(cvar_solver_maxbatchsize.GetInt(), cvar_solver_minbatchsize.GetInt()));
btSequentialImpulseConstraintSolverMt::s_minBatchSize = cvar_solver_minbatchsize.GetInt();
btSequentialImpulseConstraintSolverMt::s_maxBatchSize = cvar_solver_maxbatchsize.GetInt();
Msg("Min batch size for solver is changed from %i to %i\n", flOldValue, cvar_solver_minbatchsize.GetFloat());
}
static void cvar_solver_maxbatchsize_Change(IConVar *var, const char *pOldValue, float flOldValue)
{
cvar_solver_minbatchsize.SetValue(MIN(cvar_solver_maxbatchsize.GetInt(), cvar_solver_minbatchsize.GetInt()));
btSequentialImpulseConstraintSolverMt::s_minBatchSize = cvar_solver_minbatchsize.GetInt();
btSequentialImpulseConstraintSolverMt::s_maxBatchSize = cvar_solver_maxbatchsize.GetInt();
Msg("Max batch size for solver is changed from %i to %i\n", flOldValue, cvar_solver_maxbatchsize.GetFloat());
}
#endif
/*******************************
* CLASS CPhysicsEnvironment
*******************************/
CPhysicsEnvironment::CPhysicsEnvironment() {
m_multithreadedWorld = false;
m_multithreadCapable = false;
m_deleteQuick = false;
m_bUseDeleteQueue = false;
m_inSimulation = false;
m_bConstraintNotify = false;
m_pDebugOverlay = NULL;
m_pConstraintEvent = NULL;
m_pObjectEvent = NULL;
m_pObjectTracker = NULL;
m_pCollisionEvent = NULL;
m_pThreadManager = NULL;
m_pBulletBroadphase = NULL;
m_pBulletConfiguration = NULL;
m_pBulletDispatcher = NULL;
m_pBulletDynamicsWorld = NULL;
m_pBulletGhostCallback = NULL;
m_pBulletSolver = NULL;
m_timestep = 0.f;
m_invPSIScale = 0.f;
m_simPSICurrent = 0;
m_simPSI = 0;
m_simTime = 0.0f;
#ifdef BT_THREADSAFE
// Initilize task scheduler, we will be using TBB
// btSetTaskScheduler(btGetSequentialTaskScheduler()); // Can be used for debugging purposes
//btSetTaskScheduler(btGetTBBTaskScheduler());
//const int maxNumThreads = btGetTBBTaskScheduler()->getMaxNumThreads();
//btGetTBBTaskScheduler()->setNumThreads(maxNumThreads);
btSetTaskScheduler(btGetOpenMPTaskScheduler());
//lwss: this is silly to use all cpu threads, how about just 2
btGetOpenMPTaskScheduler()->setNumThreads(2);
cvar_threadcount.SetValue(2);
#endif
// Create a fresh new dynamics world
CreateEmptyDynamicsWorld();
}
CPhysicsEnvironment::~CPhysicsEnvironment() {
#if DEBUG_DRAW
delete m_debugdraw;
#endif
CPhysicsEnvironment::SetQuickDelete(true);
for (int i = m_objects.Count() - 1; i >= 0; --i) {
delete m_objects[i];
}
m_objects.RemoveAll();
CPhysicsEnvironment::CleanupDeleteList();
delete m_pDeleteQueue;
delete m_pPhysicsDragController;
delete m_pBulletDynamicsWorld;
delete m_pBulletSolver;
delete m_pBulletBroadphase;
delete m_pBulletDispatcher;
delete m_pBulletConfiguration;
delete m_pBulletGhostCallback;
// delete m_pCollisionListener;
delete m_pCollisionSolver;
delete m_pObjectTracker;
}
btConstraintSolver* createSolverByType(SolverType t)
{
btMLCPSolverInterface* mlcpSolver = NULL;
switch (t)
{
case SOLVER_TYPE_SEQUENTIAL_IMPULSE:
return new btSequentialImpulseConstraintSolver();
case SOLVER_TYPE_SEQUENTIAL_IMPULSE_MT:
return new btSequentialImpulseConstraintSolverMt();
case SOLVER_TYPE_NNCG:
return new btNNCGConstraintSolver();
case SOLVER_TYPE_MLCP_PGS:
mlcpSolver = new btSolveProjectedGaussSeidel();
break;
case SOLVER_TYPE_MLCP_DANTZIG:
mlcpSolver = new btDantzigSolver();
break;
case SOLVER_TYPE_MLCP_LEMKE:
mlcpSolver = new btLemkeSolver();
break;
default:
assert(false);
break;
}
if (mlcpSolver)
{
return new btMLCPSolver(mlcpSolver);
}
return NULL;
}
IVPhysicsDebugOverlay *g_pDebugOverlay = NULL;
void CPhysicsEnvironment::CreateEmptyDynamicsWorld()
{
if(gBulletDynamicsWorldGuard)
{
gBulletDynamicsWorld = m_pBulletDynamicsWorld;
}
else
{
gBulletDynamicsWorldGuard = true;
}
m_pCollisionListener = new CCollisionEventListener(this);
m_solverType = gSolverType;
#ifdef BT_THREADSAFE
btAssert(btGetTaskScheduler() != NULL);
if (btGetTaskScheduler() != NULL && btGetTaskScheduler()->getNumThreads() > 1)
{
m_multithreadCapable = true;
}
#endif
if (gMultithreadedWorld)
{
#ifdef BT_THREADSAFE
btAssert(btGetTaskScheduler() != NULL);
m_pBulletDispatcher = NULL;
btDefaultCollisionConstructionInfo cci;
cci.m_defaultMaxPersistentManifoldPoolSize = 80000;
cci.m_defaultMaxCollisionAlgorithmPoolSize = 80000;
m_pBulletConfiguration = new btDefaultCollisionConfiguration(cci);
// Dispatcher generates around 360 pair objects on average. Maximize thread usage by using this value
m_pBulletDispatcher = new btCollisionDispatcherMt(m_pBulletConfiguration, 360 / cvar_threadcount.GetInt() + 1);
m_pBulletBroadphase = new btDbvtBroadphase();
// Enable deferred collide, increases performance with many collisions calculations going on at the same time
static_cast<btDbvtBroadphase*>(m_pBulletBroadphase)->m_deferedcollide = true;
btConstraintSolverPoolMt* solverPool;
{
SolverType poolSolverType = m_solverType;
if (poolSolverType == SOLVER_TYPE_SEQUENTIAL_IMPULSE_MT)
{
// pool solvers shouldn't be parallel solvers, we don't allow that kind of
// nested parallelism because of performance issues
poolSolverType = SOLVER_TYPE_SEQUENTIAL_IMPULSE;
}
CUtlVector<btConstraintSolver*> solvers;
const int threadCount = cvar_threadcount.GetInt();
for (int i = 0; i < threadCount; ++i)
{
auto solver = createSolverByType(poolSolverType);
solver->setSolveCallback(m_pCollisionListener);
solvers.AddToTail(solver);
}
solverPool = new btConstraintSolverPoolMt(solvers.Base(), threadCount);
m_pBulletSolver = solverPool;
m_pBulletSolver->setSolveCallback(m_pCollisionListener);
}
btSequentialImpulseConstraintSolverMt* solverMt = NULL;
if (m_solverType == SOLVER_TYPE_SEQUENTIAL_IMPULSE_MT)
{
solverMt = new btSequentialImpulseConstraintSolverMt();
}
btDiscreteDynamicsWorld* world = new btDiscreteDynamicsWorldMt(m_pBulletDispatcher, m_pBulletBroadphase, solverPool, solverMt, m_pBulletConfiguration);
m_pBulletDynamicsWorld = world;
m_pBulletDynamicsWorld->setForceUpdateAllAabbs(false);
gBulletDynamicsWorld = world; // Also keep a static ref for ConVar callbacks
m_multithreadedWorld = true;
#endif // #if BT_THREADSAFE
}
else
{
// single threaded world
m_multithreadedWorld = false;
///collision configuration contains default setup for memory, collision setup
m_pBulletConfiguration = new btDefaultCollisionConfiguration();
// Use the default collision dispatcher. For parallel processing you can use a different dispatcher (see Extras/BulletMultiThreaded)
m_pBulletDispatcher = new btCollisionDispatcher(m_pBulletConfiguration);
m_pBulletBroadphase = new btDbvtBroadphase();
SolverType solverType = m_solverType;
if (solverType == SOLVER_TYPE_SEQUENTIAL_IMPULSE_MT)
{
// using the parallel solver with the single-threaded world works, but is
// disabled here to avoid confusion
solverType = SOLVER_TYPE_SEQUENTIAL_IMPULSE;
}
m_pBulletSolver = createSolverByType(solverType);
m_pBulletSolver->setSolveCallback(m_pCollisionListener);
m_pBulletDynamicsWorld = new btDiscreteDynamicsWorld(m_pBulletDispatcher, m_pBulletBroadphase, m_pBulletSolver, m_pBulletConfiguration);
}
m_pBulletDynamicsWorld->getSolverInfo().m_solverMode = gSolverMode;
m_pBulletDynamicsWorld->getSolverInfo().m_numIterations = cvar_solver_iterations.GetInt();
m_pBulletGhostCallback = new btGhostPairCallback;
m_pCollisionSolver = new CCollisionSolver(this);
m_pBulletDynamicsWorld->getPairCache()->setOverlapFilterCallback(m_pCollisionSolver);
m_pBulletBroadphase->getOverlappingPairCache()->setInternalGhostPairCallback(m_pBulletGhostCallback);
m_pDeleteQueue = new CDeleteQueue;
m_pPhysicsDragController = new CPhysicsDragController;
m_pObjectTracker = new CObjectTracker(this, NULL);
m_perfparams.Defaults();
memset(&m_stats, 0, sizeof(m_stats));
// TODO: Threads solve any oversized batches (>32?), otherwise solving done on main thread.
m_pBulletDynamicsWorld->getSolverInfo().m_minimumSolverBatchSize = 128; // Combine islands up to this many constraints
m_pBulletDynamicsWorld->getDispatchInfo().m_allowedCcdPenetration = 0.0001f;
m_pBulletDynamicsWorld->setApplySpeculativeContactRestitution(true);
m_pBulletDynamicsWorld->setInternalTickCallback(TickCallback, (void *)this);
// HACK: Get ourselves a debug overlay on the client
// CreateInterfaceFn engine = Sys_GetFactory("engine");
// CPhysicsEnvironment::SetDebugOverlay(engine);
m_pDebugOverlay = g_Physics.GetPhysicsDebugOverlay();
g_pDebugOverlay = m_pDebugOverlay;
#if DEBUG_DRAW
m_debugdraw = new CDebugDrawer(m_pBulletDynamicsWorld);
m_debugdraw->SetDebugOverlay( m_pDebugOverlay );
#endif
}
// Don't call this directly
void CPhysicsEnvironment::TickCallback(btDynamicsWorld *world, btScalar timeStep) {
if (!world) return;
CPhysicsEnvironment *pEnv = static_cast<CPhysicsEnvironment*>(world->getWorldUserInfo());
if (pEnv)
pEnv->BulletTick(timeStep);
}
//void CPhysicsEnvironment::SetDebugOverlay(CreateInterfaceFn debugOverlayFactory) {
// if (debugOverlayFactory && !g_pDebugOverlay)
// g_pDebugOverlay = static_cast<IVPhysicsDebugOverlay*>(debugOverlayFactory(VPHYSICS_DEBUG_OVERLAY_INTERFACE_VERSION, NULL));
//
//#if DEBUG_DRAW
// if (g_pDebugOverlay)
// m_debugdraw->SetDebugOverlay(g_pDebugOverlay);
//#endif
//}
IVPhysicsDebugOverlay *CPhysicsEnvironment::GetDebugOverlay() {
return g_pDebugOverlay;
}
btIDebugDraw *CPhysicsEnvironment::GetDebugDrawer() const
{
return reinterpret_cast<btIDebugDraw*>(m_debugdraw);
}
void CPhysicsEnvironment::SetGravity(const Vector &gravityVector) {
btVector3 temp;
ConvertPosToBull(gravityVector, temp);
m_pBulletDynamicsWorld->setGravity(temp);
}
void CPhysicsEnvironment::GetGravity(Vector *pGravityVector) const {
if (!pGravityVector) return;
const btVector3 temp = m_pBulletDynamicsWorld->getGravity();
ConvertPosToHL(temp, *pGravityVector);
}
void CPhysicsEnvironment::SetAirDensity(float density) {
m_pPhysicsDragController->SetAirDensity(density);
}
float CPhysicsEnvironment::GetAirDensity() const {
return m_pPhysicsDragController->GetAirDensity();
}
IPhysicsObject *CPhysicsEnvironment::CreatePolyObject(const CPhysCollide *pCollisionModel, int materialIndex, const Vector &position, const QAngle &angles, objectparams_t *pParams) {
IPhysicsObject *pObject = CreatePhysicsObject(this, pCollisionModel, materialIndex, position, angles, pParams, false);
m_objects.AddToTail(pObject);
return pObject;
}
IPhysicsObject *CPhysicsEnvironment::CreatePolyObjectStatic(const CPhysCollide *pCollisionModel, int materialIndex, const Vector &position, const QAngle &angles, objectparams_t *pParams) {
IPhysicsObject *pObject = CreatePhysicsObject(this, pCollisionModel, materialIndex, position, angles, pParams, true);
m_objects.AddToTail(pObject);
return pObject;
}
// Deprecated. Create a sphere model using collision interface.
IPhysicsObject *CPhysicsEnvironment::CreateSphereObject(float radius, int materialIndex, const Vector &position, const QAngle &angles, objectparams_t *pParams, bool isStatic) {
IPhysicsObject *pObject = CreatePhysicsSphere(this, radius, materialIndex, position, angles, pParams, isStatic);
m_objects.AddToTail(pObject);
return pObject;
}
void CPhysicsEnvironment::DestroyObject(IPhysicsObject *pObject) {
if (!pObject) return;
Assert(m_deadObjects.Find(pObject) == -1); // If you hit this assert, the object is already on the list!
m_objects.FindAndRemove(pObject);
m_pObjectTracker->ObjectRemoved(dynamic_cast<CPhysicsObject*>(pObject));
if (m_inSimulation || m_bUseDeleteQueue) {
// We're still in the simulation, so deleting an object would be disastrous here. Queue it!
dynamic_cast<CPhysicsObject*>(pObject)->AddCallbackFlags(CALLBACK_MARKED_FOR_DELETE);
m_deadObjects.AddToTail(pObject);
} else {
delete pObject;
}
}
IPhysicsFluidController *CPhysicsEnvironment::CreateFluidController(IPhysicsObject *pFluidObject, fluidparams_t *pParams) {
CPhysicsFluidController *pFluid = ::CreateFluidController(this, static_cast<CPhysicsObject*>(pFluidObject), pParams);
if (pFluid)
m_fluids.AddToTail(pFluid);
return pFluid;
}
void CPhysicsEnvironment::DestroyFluidController(IPhysicsFluidController *pController) {
m_fluids.FindAndRemove(dynamic_cast<CPhysicsFluidController*>(pController));
delete pController;
}
IPhysicsSpring *CPhysicsEnvironment::CreateSpring(IPhysicsObject *pObjectStart, IPhysicsObject *pObjectEnd, springparams_t *pParams) {
return ::CreateSpringConstraint(this, pObjectStart, pObjectEnd, pParams);
}
void CPhysicsEnvironment::DestroySpring(IPhysicsSpring *pSpring) {
if (!pSpring) return;
CPhysicsConstraint* pConstraint = reinterpret_cast<CPhysicsConstraint*>(pSpring);
if (m_deleteQuick) {
IPhysicsObject *pObj0 = pConstraint->GetReferenceObject();
if (pObj0 && !pObj0->IsStatic())
pObj0->Wake();
IPhysicsObject *pObj1 = pConstraint->GetAttachedObject();
if (pObj1 && !pObj0->IsStatic())
pObj1->Wake();
}
if (m_inSimulation) {
pConstraint->Deactivate();
m_pDeleteQueue->QueueForDelete(pSpring);
} else {
delete pSpring;
}
}
IPhysicsConstraint *CPhysicsEnvironment::CreateRagdollConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_ragdollparams_t &ragdoll) {
return ::CreateRagdollConstraint(this, pReferenceObject, pAttachedObject, pGroup, ragdoll);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateHingeConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_hingeparams_t &hinge) {
return ::CreateHingeConstraint(this, pReferenceObject, pAttachedObject, pGroup, hinge);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateFixedConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_fixedparams_t &fixed) {
return ::CreateFixedConstraint(this, pReferenceObject, pAttachedObject, pGroup, fixed);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateSlidingConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_slidingparams_t &sliding) {
return ::CreateSlidingConstraint(this, pReferenceObject, pAttachedObject, pGroup, sliding);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateBallsocketConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_ballsocketparams_t &ballsocket) {
return ::CreateBallsocketConstraint(this, pReferenceObject, pAttachedObject, pGroup, ballsocket);
}
IPhysicsConstraint *CPhysicsEnvironment::CreatePulleyConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_pulleyparams_t &pulley) {
return ::CreatePulleyConstraint(this, pReferenceObject, pAttachedObject, pGroup, pulley);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateLengthConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_lengthparams_t &length) {
return ::CreateLengthConstraint(this, pReferenceObject, pAttachedObject, pGroup, length);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateGearConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, const constraint_gearparams_t &gear) {
return ::CreateGearConstraint(this, pReferenceObject, pAttachedObject, pGroup, gear);
}
IPhysicsConstraint *CPhysicsEnvironment::CreateUserConstraint(IPhysicsObject *pReferenceObject, IPhysicsObject *pAttachedObject, IPhysicsConstraintGroup *pGroup, IPhysicsUserConstraint *pConstraint) {
return ::CreateUserConstraint(this, pReferenceObject, pAttachedObject, pGroup, pConstraint);
}
void CPhysicsEnvironment::DestroyConstraint(IPhysicsConstraint *pConstraint) {
if (!pConstraint) return;
if (m_deleteQuick) {
IPhysicsObject *pObj0 = pConstraint->GetReferenceObject();
if (pObj0 && !pObj0->IsStatic())
pObj0->Wake();
IPhysicsObject *pObj1 = pConstraint->GetAttachedObject();
if (pObj1 && !pObj1->IsStatic())
pObj1->Wake();
}
if (m_inSimulation) {
pConstraint->Deactivate();
m_pDeleteQueue->QueueForDelete(pConstraint);
} else {
delete pConstraint;
}
}
IPhysicsConstraintGroup *CPhysicsEnvironment::CreateConstraintGroup(const constraint_groupparams_t &groupParams) {
return ::CreateConstraintGroup(this, groupParams);
}
void CPhysicsEnvironment::DestroyConstraintGroup(IPhysicsConstraintGroup *pGroup) {
delete pGroup;
}
IPhysicsShadowController *CPhysicsEnvironment::CreateShadowController(IPhysicsObject *pObject, bool allowTranslation, bool allowRotation) {
CShadowController *pController = ::CreateShadowController(pObject, allowTranslation, allowRotation);
if (pController)
m_controllers.AddToTail(pController);
return pController;
}
void CPhysicsEnvironment::DestroyShadowController(IPhysicsShadowController *pController) {
if (!pController) return;
m_controllers.FindAndRemove(static_cast<CShadowController*>(pController));
delete pController;
}
IPhysicsPlayerController *CPhysicsEnvironment::CreatePlayerController(IPhysicsObject *pObject) {
CPlayerController *pController = ::CreatePlayerController(this, pObject);
if (pController)
m_controllers.AddToTail(pController);
return pController;
}
void CPhysicsEnvironment::DestroyPlayerController(IPhysicsPlayerController *pController) {
if (!pController) return;
m_controllers.FindAndRemove(dynamic_cast<CPlayerController*>(pController));
delete pController;
}
IPhysicsMotionController *CPhysicsEnvironment::CreateMotionController(IMotionEvent *pHandler) {
CPhysicsMotionController *pController = dynamic_cast<CPhysicsMotionController*>(::CreateMotionController(this, pHandler));
if (pController)
m_controllers.AddToTail(pController);
return pController;
}
void CPhysicsEnvironment::DestroyMotionController(IPhysicsMotionController *pController) {
if (!pController) return;
m_controllers.FindAndRemove(static_cast<CPhysicsMotionController*>(pController));
delete pController;
}
IPhysicsVehicleController *CPhysicsEnvironment::CreateVehicleController(IPhysicsObject *pVehicleBodyObject, const vehicleparams_t ¶ms, unsigned int nVehicleType, IPhysicsGameTrace *pGameTrace) {
return ::CreateVehicleController(this, static_cast<CPhysicsObject*>(pVehicleBodyObject), params, nVehicleType, pGameTrace);
}
void CPhysicsEnvironment::DestroyVehicleController(IPhysicsVehicleController *pController) {
delete pController;
}
void CPhysicsEnvironment::SetCollisionSolver(IPhysicsCollisionSolver *pSolver) {
m_pCollisionSolver->SetHandler(pSolver);
}
void CPhysicsEnvironment::Simulate(float deltaTime) {
Assert(m_pBulletDynamicsWorld);
// Input deltaTime is how many seconds have elapsed since the previous frame
// phys_timescale can scale this parameter however...
// Can cause physics to slow down on the client environment when the game's window is not in focus
// Also is affected by the tickrate as well
if (deltaTime > 1.0 || deltaTime < 0.0) {
deltaTime = 0;
} else if (deltaTime > 0.1) {
deltaTime = 0.1f;
}
// sim PSI: How many substeps are done in a single simulation step
m_simPSI = bt_max_world_substeps.GetInt() != 0 ? bt_max_world_substeps.GetInt() : 1;
m_simPSICurrent = m_simPSI; // Substeps left in this step
m_numSubSteps = m_simPSI;
m_curSubStep = 0;
// Simulate no less than 1 ms
if (deltaTime > 0.001) {
// Now mark us as being in simulation. This is used for callbacks from bullet mid-simulation
// so we don't end up doing stupid things like deleting objects still in use
m_inSimulation = true;
m_subStepTime = m_timestep;
// Okay, how this fixed timestep shit works:
// The game sends in deltaTime which is the amount of time that has passed since the last frame
// Bullet will add the deltaTime to its internal counter
// When this internal counter exceeds m_timestep (param 3 to the below), the simulation will run for fixedTimeStep seconds
// If the internal counter does not exceed fixedTimeStep, bullet will just interpolate objects so the game can render them nice and happy
//if( deltaTime > (bt_max_world_substeps.GetInt() * m_timestep) )
//{
// Msg("Warning! We are losing physics-time! - deltaTime(%f) - maxTime(%f)\n", deltaTime, (bt_max_world_substeps.GetInt() * m_timestep));
//}
int stepsTaken = m_pBulletDynamicsWorld->stepSimulation(deltaTime, bt_max_world_substeps.GetInt(), m_timestep, m_simPSICurrent);
//lwss: stepSimulation returns the number of steps taken in the simulation this go-around.
// We can simply multiply this by the timestep(60hz client - 64hz server) to get the time simulated.
// and add it to our simtime.
m_simTime += ( stepsTaken * m_timestep );
// No longer in simulation!
m_inSimulation = false;
}
#if DEBUG_DRAW
m_debugdraw->DrawWorld();
#endif
}
bool CPhysicsEnvironment::IsInSimulation() const {
return m_inSimulation;
}
float CPhysicsEnvironment::GetSimulationTimestep() const {
return m_timestep;
}
void CPhysicsEnvironment::SetSimulationTimestep(float timestep) {
m_timestep = timestep;
}
float CPhysicsEnvironment::GetSimulationTime() const {
//lwss - add simulation time. (mainly used for forced ragdoll sleeping hack in csgo)
return m_simTime;
}
void CPhysicsEnvironment::ResetSimulationClock() {
m_simTime = 0.0f;
}
float CPhysicsEnvironment::GetNextFrameTime() const {
NOT_IMPLEMENTED
return 0;
}
void CPhysicsEnvironment::SetCollisionEventHandler(IPhysicsCollisionEvent *pCollisionEvents) {
//lwss: This enables the CCollisionEvent::PreCollision() and CCollisionEvent::PostCollision()
// in client/physics.cpp and server/physics.cpp
// Used for: Physics hit sounds, dust particles, and screen shake(unused?)
// The accuracy of the physics highly depends on the stepSimulation() maxSteps and resolution.
//
// There is another section that calls m_pCollisionEvent->Friction().
// That section is somewhat similar, But deals with friction Scrapes instead of impacts.
// It is ran on the server, which sends the particle/sound commands to the client
// TODO
m_pCollisionListener->SetCollisionEventCallback(pCollisionEvents);
m_pCollisionEvent = pCollisionEvents;
}
void CPhysicsEnvironment::SetObjectEventHandler(IPhysicsObjectEvent *pObjectEvents) {
m_pObjectEvent = pObjectEvents;
m_pObjectTracker->SetObjectEventHandler(pObjectEvents);
}
void CPhysicsEnvironment::SetConstraintEventHandler(IPhysicsConstraintEvent *pConstraintEvents) {
m_pConstraintEvent = pConstraintEvents;
}
void CPhysicsEnvironment::SetQuickDelete(bool bQuick) {
m_deleteQuick = bQuick;
}
int CPhysicsEnvironment::GetActiveObjectCount() const {
return m_pObjectTracker->GetActiveObjectCount();
}
void CPhysicsEnvironment::GetActiveObjects(IPhysicsObject **pOutputObjectList) const {
return m_pObjectTracker->GetActiveObjects(pOutputObjectList);
}
int CPhysicsEnvironment::GetObjectCount() const {
return m_objects.Count();
}
const IPhysicsObject **CPhysicsEnvironment::GetObjectList(int *pOutputObjectCount) const {
if (pOutputObjectCount) {
*pOutputObjectCount = m_objects.Count();
}
return const_cast<const IPhysicsObject**>(m_objects.Base());
}
bool CPhysicsEnvironment::TransferObject(IPhysicsObject *pObject, IPhysicsEnvironment *pDestinationEnvironment) {
if (!pObject || !pDestinationEnvironment) return false;
if (pDestinationEnvironment == this) {
dynamic_cast<CPhysicsObject*>(pObject)->TransferToEnvironment(this);
m_objects.AddToTail(pObject);
if (pObject->IsFluid())
m_fluids.AddToTail(dynamic_cast<CPhysicsObject*>(pObject)->GetFluidController());
return true;
} else {
m_objects.FindAndRemove(pObject);
if (pObject->IsFluid())
m_fluids.FindAndRemove(dynamic_cast<CPhysicsObject*>(pObject)->GetFluidController());
return pDestinationEnvironment->TransferObject(pObject, pDestinationEnvironment);
}
}
void CPhysicsEnvironment::CleanupDeleteList() {
for (int i = 0; i < m_deadObjects.Count(); i++) {
delete m_deadObjects.Element(i);
}
m_deadObjects.Purge();
m_pDeleteQueue->DeleteAll();
}
void CPhysicsEnvironment::EnableDeleteQueue(bool enable) {
m_bUseDeleteQueue = enable;
}
bool CPhysicsEnvironment::Save(const physsaveparams_t ¶ms) {
NOT_IMPLEMENTED
return false;
}
void CPhysicsEnvironment::PreRestore(const physprerestoreparams_t ¶ms) {
NOT_IMPLEMENTED
}
bool CPhysicsEnvironment::Restore(const physrestoreparams_t ¶ms) {
NOT_IMPLEMENTED
return false;
}
void CPhysicsEnvironment::PostRestore() {
NOT_IMPLEMENTED
}
//lwss add
void CPhysicsEnvironment::SetAlternateGravity(const Vector &gravityVector)
{
ConvertPosToBull(gravityVector, m_vecRagdollGravity);
}
void CPhysicsEnvironment::GetAlternateGravity(Vector *pGravityVector) const
{
ConvertPosToHL( m_vecRagdollGravity, *pGravityVector );
}
float CPhysicsEnvironment::GetDeltaFrameTime(int maxTicks) const
{
//TODO - implement this for bullet
// this is fully accurate, the IDA king has spoken.
//double timeDiff = m_pPhysEnv->time_of_next_psi.get_time() - m_pPhysEnv->current_time.get_time();
//return float( (float(maxTicks) * m_pPhysEnv->delta_PSI_time) + timeDiff );
// HACK ALERT!!
return 1.0f;
}
void CPhysicsEnvironment::ForceObjectsToSleep(IPhysicsObject **pList, int listCount)
{
//lwss: Technically this does not force the objects to sleep, but works OK.
for( int i = 0; i < listCount; i++ )
{
pList[i]->Sleep();
}
}
void CPhysicsEnvironment::SetPredicted(bool bPredicted)
{
// This check is a little different from retail
if( m_objects.Count() > 0 || m_deadObjects.Count() > 0 )
{
Error( "Predicted physics are not designed to change once objects have been made.\n");
/* Exit */
}
if( bPredicted )
Warning("WARNING: Kisak physics does NOT have prediction!\n");
//m_predictionEnabled = bPredicted;
}
bool CPhysicsEnvironment::IsPredicted()
{
//lwss hack - I didn't redo the whole physics prediction.
// return false so it doesn't try to use it.
return false;
//return m_predictionEnabled;
}
void CPhysicsEnvironment::SetPredictionCommandNum(int iCommandNum)
{
if( !m_predictionEnabled )
return;
//lwss hack - didn't reimplement the entire physics prediction system.
m_predictionCmdNum = iCommandNum;
Warning("LWSS didn't implement SetPredictionCommandNum\n");
}
int CPhysicsEnvironment::GetPredictionCommandNum()
{
return m_predictionCmdNum;
}
void CPhysicsEnvironment::DoneReferencingPreviousCommands(int iCommandNum)
{
//lwss hack
//Warning("LWSS didn't implement DoneReferencingPreviousCommands\n");
}
void CPhysicsEnvironment::RestorePredictedSimulation()
{
//lwss hack
Warning("LWSS didn't implement RestorePredictedSimulation\n");
}
void CPhysicsEnvironment::DestroyCollideOnDeadObjectFlush(CPhysCollide *)
{
//lwss hack
Warning("LWSS didn't implement DestroyCollideOnDeadObjectFlush\n");
// m_lastObjectThisTick // +20 bytes
}
//lwss end
bool CPhysicsEnvironment::IsCollisionModelUsed(CPhysCollide *pCollide) const {
for (int i = 0; i < m_objects.Count(); i++) {
if (dynamic_cast<CPhysicsObject*>(m_objects[i])->GetObject()->getCollisionShape() == pCollide->GetCollisionShape())
return true;
}
// Also scan the to-be-deleted objects list
for (int i = 0; i < m_deadObjects.Count(); i++) {
if (dynamic_cast<CPhysicsObject*>(m_deadObjects[i])->GetObject()->getCollisionShape() == pCollide->GetCollisionShape())
return true;
}
return false;
}
void CPhysicsEnvironment::TraceRay(const Ray_t &ray, unsigned int fMask, IPhysicsTraceFilter *pTraceFilter, trace_t *pTrace) {
if (!ray.m_IsRay || !pTrace) return;
btVector3 vecStart, vecEnd;
ConvertPosToBull(ray.m_Start + ray.m_StartOffset, vecStart);
ConvertPosToBull(ray.m_Start + ray.m_StartOffset + ray.m_Delta, vecEnd);
// TODO: Override this class to use the mask and trace filter.
btCollisionWorld::ClosestRayResultCallback cb(vecStart, vecEnd);
m_pBulletDynamicsWorld->rayTest(vecStart, vecEnd, cb);
pTrace->fraction = cb.m_closestHitFraction;
ConvertPosToHL(cb.m_hitPointWorld, pTrace->endpos);
ConvertDirectionToHL(cb.m_hitNormalWorld, pTrace->plane.normal);
}
// Is this function ever called?
// TODO: This is a bit more complex, bullet doesn't support compound sweep tests.
void CPhysicsEnvironment::SweepCollideable(const CPhysCollide *pCollide, const Vector &vecAbsStart, const Vector &vecAbsEnd, const QAngle &vecAngles, unsigned int fMask, IPhysicsTraceFilter *pTraceFilter, trace_t *pTrace) {
NOT_IMPLEMENTED
}
class CFilteredConvexResultCallback : public btCollisionWorld::ClosestConvexResultCallback {
public:
CFilteredConvexResultCallback(IPhysicsTraceFilter *pFilter, unsigned int mask, const btVector3 &convexFromWorld, const btVector3 &convexToWorld):
btCollisionWorld::ClosestConvexResultCallback(convexFromWorld, convexToWorld) {
m_pTraceFilter = pFilter;
m_mask = mask;
}
virtual bool needsCollision(btBroadphaseProxy *proxy0) const {
btCollisionObject *pColObj = (btCollisionObject *)proxy0->m_clientObject;
CPhysicsObject *pObj = (CPhysicsObject *)pColObj->getUserPointer();
if (pObj && !m_pTraceFilter->ShouldHitObject(pObj, m_mask)) {
return false;
}
bool collides = (proxy0->m_collisionFilterGroup & m_collisionFilterMask) != 0;
collides = collides && (m_collisionFilterGroup & proxy0->m_collisionFilterMask);
return collides;
}
private:
IPhysicsTraceFilter *m_pTraceFilter;
unsigned int m_mask;
};
void CPhysicsEnvironment::SweepConvex(const CPhysConvex *pConvex, const Vector &vecAbsStart, const Vector &vecAbsEnd, const QAngle &vecAngles, unsigned int fMask, IPhysicsTraceFilter *pTraceFilter, trace_t *pTrace) {
if (!pConvex || !pTrace) return;
btVector3 vecStart, vecEnd;
ConvertPosToBull(vecAbsStart, vecStart);
ConvertPosToBull(vecAbsEnd, vecEnd);
btMatrix3x3 matAng;
ConvertRotationToBull(vecAngles, matAng);
btTransform transStart, transEnd;
transStart.setOrigin(vecStart);
transStart.setBasis(matAng);
transEnd.setOrigin(vecEnd);
transEnd.setBasis(matAng);
btConvexShape *pShape = (btConvexShape *)pConvex;
CFilteredConvexResultCallback cb(pTraceFilter, fMask, vecStart, vecEnd);
m_pBulletDynamicsWorld->convexSweepTest(pShape, transStart, transEnd, cb, 0.0001f);
pTrace->fraction = cb.m_closestHitFraction;
ConvertPosToHL(cb.m_hitPointWorld, pTrace->endpos);
ConvertDirectionToHL(cb.m_hitNormalWorld, pTrace->plane.normal);
}
void CPhysicsEnvironment::GetPerformanceSettings(physics_performanceparams_t *pOutput) const {
if (!pOutput) return;
*pOutput = m_perfparams;
}
void CPhysicsEnvironment::SetPerformanceSettings(const physics_performanceparams_t *pSettings) {
if (!pSettings) return;
m_perfparams = *pSettings;
}
void CPhysicsEnvironment::ReadStats(physics_stats_t *pOutput) {
if (!pOutput) return;
*pOutput = m_stats;
}
void CPhysicsEnvironment::ClearStats() {
memset(&m_stats, 0, sizeof(m_stats));
}
unsigned int CPhysicsEnvironment::GetObjectSerializeSize(IPhysicsObject *pObject) const {
NOT_IMPLEMENTED
return 0;
}
void CPhysicsEnvironment::SerializeObjectToBuffer(IPhysicsObject *pObject, unsigned char *pBuffer, unsigned int bufferSize) {
NOT_IMPLEMENTED
}
IPhysicsObject *CPhysicsEnvironment::UnserializeObjectFromBuffer(void *pGameData, unsigned char *pBuffer, unsigned int bufferSize, bool enableCollisions) {
NOT_IMPLEMENTED
return NULL;
}
void CPhysicsEnvironment::EnableConstraintNotify(bool bEnable) {
// Notify game about broken constraints?
m_bConstraintNotify = bEnable;
}
// FIXME: What do? Source SDK mods call this every frame in debug builds.
void CPhysicsEnvironment::DebugCheckContacts() {
}
// UNEXPOSED
btDiscreteDynamicsWorld *CPhysicsEnvironment::GetBulletEnvironment() const
{
return m_pBulletDynamicsWorld;
}
// UNEXPOSED
float CPhysicsEnvironment::GetInvPSIScale() const
{
return m_invPSIScale;
}
// UNEXPOSED
void CPhysicsEnvironment::BulletTick(btScalar dt) {
// Dirty hack to spread the controllers throughout the current simulation step
if (m_simPSICurrent) {
m_invPSIScale = 1.0f / static_cast<float>(m_simPSICurrent);
m_simPSICurrent--;
} else {
m_invPSIScale = 0;
}
m_pPhysicsDragController->Tick(dt);
for (int i = 0; i < m_controllers.Count(); i++)
m_controllers[i]->Tick(dt);
for (int i = 0; i < m_fluids.Count(); i++)
m_fluids[i]->Tick(dt);
m_inSimulation = false;
// Update object sleep states
m_pObjectTracker->Tick();
if (!m_bUseDeleteQueue) {
CleanupDeleteList();
}
//lwss: This part of the code is used by the server to send FRICTION sounds/dust
// these are separate from collisions.
DoCollisionEvents(dt);
//lwss end.
if (m_pCollisionEvent)
m_pCollisionEvent->PostSimulationFrame();
m_inSimulation = true;
m_curSubStep++;
}
// UNEXPOSED
CPhysicsDragController *CPhysicsEnvironment::GetDragController() const
{
return m_pPhysicsDragController;
}
CCollisionSolver *CPhysicsEnvironment::GetCollisionSolver() const
{
return m_pCollisionSolver;
}
btVector3 CPhysicsEnvironment::GetMaxLinearVelocity() const {
return btVector3(HL2BULL(m_perfparams.maxVelocity), HL2BULL(m_perfparams.maxVelocity), HL2BULL(m_perfparams.maxVelocity));
}
btVector3 CPhysicsEnvironment::GetMaxAngularVelocity() const {
return btVector3(HL2BULL(m_perfparams.maxAngularVelocity), HL2BULL(m_perfparams.maxAngularVelocity), HL2BULL(m_perfparams.maxAngularVelocity));
}
// UNEXPOSED
// Purpose: To be the biggest eyesore ever
// Bullet doesn't provide many callbacks such as the ones we're looking for, so
// we have to iterate through all the contact manifolds and generate the callbacks ourselves.
// FIXME: Remove this function and implement callbacks in bullet code
void CPhysicsEnvironment::DoCollisionEvents(float dt) {
if (m_pCollisionEvent) {
const int numManifolds = m_pBulletDynamicsWorld->getDispatcher()->getNumManifolds();
for (int i = 0; i < numManifolds; i++) {
btPersistentManifold *contactManifold = m_pBulletDynamicsWorld->getDispatcher()->getManifoldByIndexInternal(i);
if (contactManifold->getNumContacts() <= 0)
continue;
const btCollisionObject *obA = contactManifold->getBody0();
const btCollisionObject *obB = contactManifold->getBody1();
if (!obA || !obB) continue;
CPhysicsObject *physObA = static_cast<CPhysicsObject*>(obA->getUserPointer());
CPhysicsObject *physObB = static_cast<CPhysicsObject*>(obB->getUserPointer());
// These are our own internal objects, don't do callbacks on them.
if (obA->getInternalType() == btCollisionObject::CO_GHOST_OBJECT || obB->getInternalType() == btCollisionObject::CO_GHOST_OBJECT)
continue;
if (!(physObA->GetCallbackFlags() & CALLBACK_GLOBAL_FRICTION) || !(physObB->GetCallbackFlags() & CALLBACK_GLOBAL_FRICTION))
continue;
for (int j = 0; j < contactManifold->getNumContacts(); j++) {
btManifoldPoint manPoint = contactManifold->getContactPoint(j);
// FRICTION CALLBACK
// FIXME: We need to find the energy used by the friction! Bullet doesn't provide this in the manifold point.
// This may not be the proper variable but whatever, as of now it works.
const float energy = abs(manPoint.m_appliedImpulseLateral1);
if (energy > 0.05f) {
CPhysicsCollisionData data(&manPoint);
m_pCollisionEvent->Friction(static_cast<CPhysicsObject*>(obA->getUserPointer()),
ConvertEnergyToHL(energy),
static_cast<CPhysicsObject*>(obA->getUserPointer())->GetMaterialIndex(),
static_cast<CPhysicsObject*>(obB->getUserPointer())->GetMaterialIndex(),
&data);
}
// TODO: Collision callback
// Source wants precollision and postcollision callbacks (pre velocity and post velocity, etc.)
// How do we generate a callback before the collision happens?
}
}
}
}
// ==================
// EVENTS
// ==================
// UNEXPOSED
void CPhysicsEnvironment::HandleConstraintBroken(CPhysicsConstraint *pConstraint) const
{
if (m_bConstraintNotify && m_pConstraintEvent)
m_pConstraintEvent->ConstraintBroken(pConstraint);
}
// UNEXPOSED
void CPhysicsEnvironment::HandleFluidStartTouch(CPhysicsFluidController *pController, CPhysicsObject *pObject) const
{
if (pObject->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE) return;
if (m_pCollisionEvent)
m_pCollisionEvent->FluidStartTouch(pObject, pController);
}
// UNEXPOSED
void CPhysicsEnvironment::HandleFluidEndTouch(CPhysicsFluidController *pController, CPhysicsObject *pObject) const
{
if (pObject->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE) return;
if (m_pCollisionEvent)
m_pCollisionEvent->FluidEndTouch(pObject, pController);
}
// UNEXPOSED
void CPhysicsEnvironment::HandleObjectEnteredTrigger(CPhysicsObject *pTrigger, CPhysicsObject *pObject) const
{
if (pObject->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE) return;
if (m_pCollisionEvent)
m_pCollisionEvent->ObjectEnterTrigger(pTrigger, pObject);
}
// UNEXPOSED
void CPhysicsEnvironment::HandleObjectExitedTrigger(CPhysicsObject *pTrigger, CPhysicsObject *pObject) const
{
if (pObject->GetCallbackFlags() & CALLBACK_MARKED_FOR_DELETE) return;
if (m_pCollisionEvent)
m_pCollisionEvent->ObjectLeaveTrigger(pTrigger, pObject);
}
| 36.0053
| 354
| 0.762828
|
392baaf59fc73e26e9e7cb18e53e3e9efda07d70
| 112
|
lua
|
Lua
|
lua/pl_git_signs.lua
|
Reicr/nvim
|
37d5534d2222e5eef484198634d00522db42b4fc
|
[
"MIT"
] | null | null | null |
lua/pl_git_signs.lua
|
Reicr/nvim
|
37d5534d2222e5eef484198634d00522db42b4fc
|
[
"MIT"
] | null | null | null |
lua/pl_git_signs.lua
|
Reicr/nvim
|
37d5534d2222e5eef484198634d00522db42b4fc
|
[
"MIT"
] | null | null | null |
local gitsigns_ok, gitsigns = pcall(require, 'gitsigns')
if not gitsigns_ok then
return
end
gitsigns.setup()
| 16
| 56
| 0.767857
|
ba208f9415ec0787c2f9cf93ae680095face5075
| 1,119
|
go
|
Go
|
models/heroesSpellsSpecialty.go
|
rudnovd/heroes3toolsApi
|
cc2a7537fee065ea8d5cae0b438c38740cb9089c
|
[
"MIT"
] | null | null | null |
models/heroesSpellsSpecialty.go
|
rudnovd/heroes3toolsApi
|
cc2a7537fee065ea8d5cae0b438c38740cb9089c
|
[
"MIT"
] | null | null | null |
models/heroesSpellsSpecialty.go
|
rudnovd/heroes3toolsApi
|
cc2a7537fee065ea8d5cae0b438c38740cb9089c
|
[
"MIT"
] | null | null | null |
package models
import (
"database/sql"
"log"
"github.com/rudnovd/heroes3toolsApi/common"
)
type HeroesSpellsSpecialty struct {
ID int8 `json:"id,omitempty"`
SpellID int8 `json:"spellId,omitempty"`
}
func (hss *HeroesSpellsSpecialty) GetAll() []HeroesSpellsSpecialty {
db := common.GetDatabase()
query := `SELECT * FROM heroes_spells_specialty`
rows, err := db.Query(query)
if err != nil {
log.Fatalln(err)
}
defer rows.Close()
var heroes []HeroesSpellsSpecialty
for rows.Next() {
var hero HeroesSpellsSpecialty
err := rows.Scan(&hero.ID, &hero.SpellID)
if err != nil {
log.Fatalln(err)
}
heroes = append(heroes, hero)
}
err = rows.Err()
if err != nil && err != sql.ErrNoRows {
log.Fatalln(err)
}
return heroes
}
func (hss *HeroesSpellsSpecialty) GetOne(id int8) HeroesSpellsSpecialty {
db := common.GetDatabase()
query := `SELECT * FROM heroes_spells_specialty WHERE id = $1`
row := db.QueryRow(query, id)
var hero HeroesSpellsSpecialty
err := row.Scan(&hero.ID, &hero.SpellID)
if err != nil && err != sql.ErrNoRows {
log.Fatalln(err)
}
return hero
}
| 17.761905
| 73
| 0.682752
|
dbcbb06eaeb4f11fba8076d025b27630f125d754
| 2,919
|
php
|
PHP
|
app/Http/Kernel.php
|
lwl1989/liuliu
|
1b76546e018029798a09352e594ce8d6e8f19423
|
[
"MIT"
] | null | null | null |
app/Http/Kernel.php
|
lwl1989/liuliu
|
1b76546e018029798a09352e594ce8d6e8f19423
|
[
"MIT"
] | null | null | null |
app/Http/Kernel.php
|
lwl1989/liuliu
|
1b76546e018029798a09352e594ce8d6e8f19423
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http;
use App\Http\Middleware\AuthAdmin;
use App\Http\Middleware\FormatResponse;
use App\Http\Middleware\JsonInput;
use Illuminate\Database\DatabaseManager;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
'json_input',
//'throttle:600,1',
'bindings'
],
'format' => [
FormatResponse::class
],
'auth_admin' => [
AuthAdmin::class
]
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'json_input' => JsonInput::class,
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class
];
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
$dba = $this->app->get("db");
if($dba instanceof DatabaseManager) {
$dba->disconnect();
}
if($this->app['redis']) {
unset($this->app['redis']);
}
}
}
| 30.40625
| 85
| 0.615622
|
e7c62a309ce240893c4ce840cbcd34233af74f78
| 193
|
go
|
Go
|
api/utils/goroutine_utils.go
|
LegalForceLawRAPC/go-template
|
4b18f1bee1bf41f4d186b611eea0b8e8ec697376
|
[
"Apache-2.0"
] | null | null | null |
api/utils/goroutine_utils.go
|
LegalForceLawRAPC/go-template
|
4b18f1bee1bf41f4d186b611eea0b8e8ec697376
|
[
"Apache-2.0"
] | null | null | null |
api/utils/goroutine_utils.go
|
LegalForceLawRAPC/go-template
|
4b18f1bee1bf41f4d186b611eea0b8e8ec697376
|
[
"Apache-2.0"
] | 1
|
2022-02-09T05:42:57.000Z
|
2022-02-09T05:42:57.000Z
|
package utils
import (
"log"
"runtime/debug"
)
func Recover() {
if r := recover(); r != nil {
log.Println("Recovering from panic:", string(debug.Stack()))
}
}
// defer utils.Recover()
| 12.866667
| 62
| 0.621762
|
8d9ad444906108854b95212447094a34c34df8b9
| 181
|
js
|
JavaScript
|
svelte-app/scripts/gh-pages.js
|
endsong/endsong.github.io
|
114e5f2aefa28e94af829e9725e317ea3c5f5239
|
[
"MIT"
] | null | null | null |
svelte-app/scripts/gh-pages.js
|
endsong/endsong.github.io
|
114e5f2aefa28e94af829e9725e317ea3c5f5239
|
[
"MIT"
] | null | null | null |
svelte-app/scripts/gh-pages.js
|
endsong/endsong.github.io
|
114e5f2aefa28e94af829e9725e317ea3c5f5239
|
[
"MIT"
] | null | null | null |
var ghpages = require('gh-pages');
ghpages.publish(
'public',
{
branch: 'gh-pages',
message: 'Deploy website'
},
() => {
console.log('Completed deploy!')
}
)
| 13.923077
| 36
| 0.563536
|
9fd2f6260761860d33735593b334dfb3f437918d
| 1,010
|
py
|
Python
|
setup.py
|
dergraf/slackin-python
|
126f5f25ec51807f7bf170a62ee3c0db2e8c027e
|
[
"MIT"
] | null | null | null |
setup.py
|
dergraf/slackin-python
|
126f5f25ec51807f7bf170a62ee3c0db2e8c027e
|
[
"MIT"
] | null | null | null |
setup.py
|
dergraf/slackin-python
|
126f5f25ec51807f7bf170a62ee3c0db2e8c027e
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import os
import sys
import platform
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "slackin-python",
version = "1.0",
packages = ["slackin"],
package_data = {
"slackin": ["static/*", "templates/*"],
},
include_package_data = True,
zip_safe = False,
scripts = ["scripts/slackin"],
install_requires = ["cachelib", "requests[security]", "docopt", "flask", "django-htmlmin"],
author = "Felix \"KoffeinFlummi\" Wiegand",
author_email = "koffeinflummi@gmail.com",
description = "Python port of the slackin Slack auto-inviter",
long_description = read("README.md"),
license = "MIT",
keywords = "",
url = "https://github.com/acemod/slackin-python",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4"
]
)
| 28.857143
| 95
| 0.630693
|
f4ed17e9635acb28081e9a7a8cf1c320432d953e
| 1,020
|
tsx
|
TypeScript
|
src/pages/about.tsx
|
rajatkulkarni95/pretty-news
|
a57b994d17844560b582794fe90a91ba9f94eb50
|
[
"MIT"
] | 21
|
2021-12-11T16:39:11.000Z
|
2022-03-03T12:15:24.000Z
|
src/pages/about.tsx
|
rajatkulkarni95/pretty-news
|
a57b994d17844560b582794fe90a91ba9f94eb50
|
[
"MIT"
] | 26
|
2021-12-07T17:08:26.000Z
|
2022-03-12T14:49:04.000Z
|
src/pages/about.tsx
|
rajatkulkarni95/pretty-news
|
a57b994d17844560b582794fe90a91ba9f94eb50
|
[
"MIT"
] | 2
|
2022-01-13T16:05:36.000Z
|
2022-03-03T04:09:36.000Z
|
import { Container } from "styles/";
import { NextPage } from "next";
import { styled } from "../../stitches.config";
const Text = styled("p", {
color: "$primaryText",
margin: "16px 0",
});
const Section = styled("section", {
display: "flex",
flexDirection: "column",
});
const Hyperlink = styled("a", {
textDecoration: "none",
color: "$coloredLink",
margin: "16px 0",
});
const About: NextPage = () => {
const github = "https://github.com/rajatkulkarni95/hckrnws";
const twitter = "https://twitter.com/JokingRajat";
return (
<Container>
<Text>Hope you like this version of Hacker News!</Text>
<Section>
<Hyperlink href={github} target="_blank" rel="noopener noreferrer">
Source Code
</Hyperlink>
<Text>
Designed and Developed by{" "}
<Hyperlink href={twitter} target="_blank" rel="noopener noreferrer">
Rajat
</Hyperlink>
</Text>
</Section>
</Container>
);
};
export default About;
| 23.72093
| 78
| 0.598039
|
8fa93cc55c68075ab16ce26472096397c6aace7c
| 85
|
dart
|
Dart
|
lib/repositories/notifications/export.dart
|
social-game/mooncake
|
79ea10dd4a1ba5a5d2684d733c92791175491ba1
|
[
"MIT"
] | 42
|
2020-01-17T18:50:00.000Z
|
2022-03-14T07:51:10.000Z
|
lib/repositories/notifications/export.dart
|
desmos-labs/dwitter
|
007c6df3b4b5be65340e9bc29c92a4728021e904
|
[
"MIT"
] | 153
|
2020-01-18T04:43:27.000Z
|
2021-05-28T11:16:58.000Z
|
lib/repositories/notifications/export.dart
|
desmos-labs/dwitter
|
007c6df3b4b5be65340e9bc29c92a4728021e904
|
[
"MIT"
] | 9
|
2020-02-29T04:35:51.000Z
|
2021-09-15T03:51:43.000Z
|
export 'source_notifications_local.dart';
export 'source_notifications_remote.dart';
| 28.333333
| 42
| 0.858824
|
30d85143248adf3b056fbcd1b30cc7835ac0ff5d
| 298
|
rs
|
Rust
|
src/mscm/cp1num.rs
|
rv32m1-rust/rv32m1_ri5cy-pac
|
1f98f7ab62b6f99f9de0157085ecd09855b6560f
|
[
"Apache-2.0",
"MIT"
] | 5
|
2019-09-09T17:12:39.000Z
|
2021-05-25T10:33:24.000Z
|
src/mscm/cp1num.rs
|
rv32m1-rust/rv32m1_ri5cy-pac
|
1f98f7ab62b6f99f9de0157085ecd09855b6560f
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
src/mscm/cp1num.rs
|
rv32m1-rust/rv32m1_ri5cy-pac
|
1f98f7ab62b6f99f9de0157085ecd09855b6560f
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
#[doc = "Reader of register CP1NUM"]
pub type R = crate::R<u32, super::CP1NUM>;
#[doc = "Reader of field `CPN`"]
pub type CPN_R = crate::R<bool, bool>;
impl R {
#[doc = "Bit 0 - Processor 1 Number"]
#[inline(always)]
pub fn cpn(&self) -> CPN_R {
CPN_R::new((self.bits & 0x01) != 0)
}
}
| 24.833333
| 42
| 0.590604
|
c99a77102a4d1fa272098d2f8523b0cbca2fb391
| 1,773
|
ts
|
TypeScript
|
www/src/app/request/back-office/components/procedure/procedure-form/procedure-form-documents/procedure-form-documents.component.ts
|
narg1s1/gpnmarket
|
d007dd993ce9fa6afd74a65be6462d1da5f2ada0
|
[
"Apache-2.0"
] | null | null | null |
www/src/app/request/back-office/components/procedure/procedure-form/procedure-form-documents/procedure-form-documents.component.ts
|
narg1s1/gpnmarket
|
d007dd993ce9fa6afd74a65be6462d1da5f2ada0
|
[
"Apache-2.0"
] | null | null | null |
www/src/app/request/back-office/components/procedure/procedure-form/procedure-form-documents/procedure-form-documents.component.ts
|
narg1s1/gpnmarket
|
d007dd993ce9fa6afd74a65be6462d1da5f2ada0
|
[
"Apache-2.0"
] | null | null | null |
import { AfterContentInit, Component, EventEmitter, forwardRef, Input, Output } from '@angular/core';
import { ControlValueAccessor, FormArray, FormBuilder, FormGroup, NG_VALUE_ACCESSOR } from "@angular/forms";
import { RequestDocument } from "../../../../../common/models/request-document";
@Component({
selector: 'app-request-procedure-form-documents',
templateUrl: './procedure-form-documents.component.html',
styleUrls: ['./procedure-form-documents.component.scss'],
providers: [{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => ProcedureFormDocumentsComponent),
multi: true
}]
})
export class ProcedureFormDocumentsComponent implements AfterContentInit, ControlValueAccessor {
@Input() documents: RequestDocument[];
@Output() addDocuments = new EventEmitter();
public onTouched: (value) => void;
public onChange: (value) => void;
public form: FormGroup;
public value: RequestDocument[];
constructor(private fb: FormBuilder) {}
get formDocuments() {
return this.form.get("documents") as FormArray;
}
ngAfterContentInit() {
this.form = this.fb.group({
checked: false,
documents: this.documents ? this.fb.array(this.documents.map(document => this.fb.group({
checked: this.value && !!this.value.find(({id}) => document.id === id),
document }))) : this.fb.array([])
});
this.form.valueChanges.subscribe(value => {
const documents = this.formDocuments.value.filter(data => data.checked).map(({document}) => document);
this.writeValue(documents);
this.onChange(documents);
});
}
registerOnChange(fn: any): void { this.onChange = fn; }
registerOnTouched(fn: any): void { this.onTouched = fn; }
writeValue(value): void { this.value = value; }
}
| 36.9375
| 108
| 0.690355
|
a345ff145978c123ec5b13b728121455882b6f27
| 1,566
|
h
|
C
|
SmartDeviceLink/public/SDLTextField.h
|
codelynx/sdl_ios
|
90317e17d408426547b4afed91620bc695a3279c
|
[
"BSD-3-Clause"
] | null | null | null |
SmartDeviceLink/public/SDLTextField.h
|
codelynx/sdl_ios
|
90317e17d408426547b4afed91620bc695a3279c
|
[
"BSD-3-Clause"
] | 2
|
2021-02-03T15:13:18.000Z
|
2021-02-04T15:54:25.000Z
|
SmartDeviceLink/public/SDLTextField.h
|
codelynx/sdl_ios
|
90317e17d408426547b4afed91620bc695a3279c
|
[
"BSD-3-Clause"
] | null | null | null |
// SDLTextField.h
//
#import "SDLRPCMessage.h"
#import "SDLCharacterSet.h"
#import "SDLTextFieldName.h"
NS_ASSUME_NONNULL_BEGIN
/**
* Struct defining the characteristics of a displayed field on the HMI.
*
* @since SDL 1.0
*/
@interface SDLTextField : SDLRPCStruct
/**
* The enumeration identifying the field.
*
* @see SDLTextFieldName
*
* Required
*/
@property (strong, nonatomic) SDLTextFieldName name;
/**
* The set of characters that are supported by this text field. All text is sent in UTF-8 format, but not all systems may support all of the characters expressed by UTF-8. All systems will support at least ASCII, but they may support more, either the LATIN-1 character set, or the full UTF-8 character set.
*/
@property (strong, nonatomic) SDLCharacterSet characterSet;
/**
* The number of characters in one row of this field.
*
* Required, Integer 1 - 500
*/
@property (strong, nonatomic) NSNumber<SDLInt> *width;
/**
* The number of rows for this text field.
*
* Required, Integer 1 - 8
*/
@property (strong, nonatomic) NSNumber<SDLInt> *rows;
/// Convenience initalizer for the TextField RPC struct
/// @param name The name identifying this text field
/// @param characterSet The character set of this text field
/// @param width The number of characters per row allowed in this text field
/// @param rows The number of rows allowed in this text field
- (instancetype)initWithName:(SDLTextFieldName)name characterSet:(SDLCharacterSet)characterSet width:(NSUInteger)width rows:(NSUInteger)rows;
@end
NS_ASSUME_NONNULL_END
| 27.473684
| 306
| 0.743934
|
03234dceb18937d6e251fffd3cf118b92efc9725
| 3,755
|
cpp
|
C++
|
src/WindowsEventListener.cpp
|
bilmich1/windows-event-listener
|
6002dd0f92704cf3fe4d518f764f76012e202358
|
[
"MIT"
] | null | null | null |
src/WindowsEventListener.cpp
|
bilmich1/windows-event-listener
|
6002dd0f92704cf3fe4d518f764f76012e202358
|
[
"MIT"
] | null | null | null |
src/WindowsEventListener.cpp
|
bilmich1/windows-event-listener
|
6002dd0f92704cf3fe4d518f764f76012e202358
|
[
"MIT"
] | null | null | null |
#include "WindowsEventListener.h"
#include <algorithm>
#include <iterator>
#include <sstream>
#include <fstream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/format.hpp>
// Link with the event lib
#pragma comment(lib, "wevtapi.lib")
DWORD WINAPI eventListenerCallback(EVT_SUBSCRIBE_NOTIFY_ACTION action, PVOID context, EVT_HANDLE event_handle)
{
auto* event_listener = reinterpret_cast<WindowsEventListener*>(context);
return event_listener->callbackImpl(action, EventHandleUniquePtr(event_handle));
}
WindowsEventListener::WindowsEventListener(
const std::filesystem::path& query_path,
const std::optional<std::filesystem::path>& bookmark_path)
: query_path_(query_path)
, bookmark_path_(bookmark_path)
{
if (!std::filesystem::exists(query_path_))
{
const auto message = boost::format("Query file doesn't exist: %1%") % query_path;
throw std::runtime_error(message.str());
}
}
WindowsEventListener::~WindowsEventListener()
{
EvtClose(subscription_handle_.release());
bookmark_.reset();
}
void WindowsEventListener::start()
{
constexpr EVT_HANDLE local_computer = nullptr;
constexpr HANDLE null_signal_event_because_using_callback = nullptr;
constexpr LPCWSTR unused_channel_name = nullptr;
PVOID context = reinterpret_cast<PVOID>(this);
if (bookmark_path_.has_value())
{
bookmark_.emplace(*bookmark_path_);
}
auto query = readXmlFile(query_path_);
subscription_handle_.reset(EvtSubscribe(local_computer,
null_signal_event_because_using_callback,
unused_channel_name,
query.c_str(),
bookmark_.has_value() ? bookmark_->getHandle() : nullptr,
context,
eventListenerCallback,
bookmark_.has_value() ? EvtSubscribeStartAfterBookmark : EvtSubscribeStartAtOldestRecord));
if (subscription_handle_ == nullptr)
{
auto status = GetLastError();
std::stringstream message_stream;
if (ERROR_EVT_CHANNEL_NOT_FOUND == status)
{
message_stream << "Channel was not found\n";
}
else if (ERROR_EVT_INVALID_QUERY == status)
{
message_stream << "Query is not valid\n";
DWORD buffer_size = 0;
EvtGetExtendedStatus(0, nullptr, &buffer_size);
std::vector<WCHAR> buffer(buffer_size);
EvtGetExtendedStatus(buffer_size, buffer.data(), &buffer_size);
message_stream << "details: " << toString(buffer) << "\n";
}
else
{
message_stream << "EvtSubscribe failed with code: " << status << "\n";
}
throw std::runtime_error(message_stream.str());
}
}
void WindowsEventListener::updateBookmark()
{
if (bookmark_.has_value())
{
bookmark_->save();
}
}
DWORD WindowsEventListener::callbackImpl(EVT_SUBSCRIBE_NOTIFY_ACTION action, EventHandleUniquePtr event_handle) noexcept
{
try
{
switch (action)
{
case EvtSubscribeActionDeliver:
{
if (bookmark_.has_value())
{
bookmark_->update(event_handle.get());
}
constexpr EVT_RENDER_FLAGS render_flag = EvtRenderEventXml;
const auto event_message = renderEvent(event_handle.get(), render_flag);
publish(event_message);
break;
}
default:
{
throw std::runtime_error("WindowsEventListener::callbackImpl failed with: Unkown action");
}
}
}
catch (const std::exception&)
{
publish(std::current_exception());
}
constexpr auto ignored = ERROR_SUCCESS;
return ignored;
}
| 27.610294
| 120
| 0.655659
|
a31a9c18d59c5028e624bb9ae3f896704f5ef333
| 404
|
h
|
C
|
BLLetBase/Classes/BLLetCore.framework/Headers/BLDeviceTimeResult.h
|
ibroadlink/appsdk
|
376e3d0c9e64fcff84e7a23c46b6eb8027dbb931
|
[
"MIT"
] | null | null | null |
BLLetBase/Classes/BLLetCore.framework/Headers/BLDeviceTimeResult.h
|
ibroadlink/appsdk
|
376e3d0c9e64fcff84e7a23c46b6eb8027dbb931
|
[
"MIT"
] | null | null | null |
BLLetBase/Classes/BLLetCore.framework/Headers/BLDeviceTimeResult.h
|
ibroadlink/appsdk
|
376e3d0c9e64fcff84e7a23c46b6eb8027dbb931
|
[
"MIT"
] | 1
|
2020-02-12T07:22:54.000Z
|
2020-02-12T07:22:54.000Z
|
//
// DeviceTimeResult.h
// Let
//
// Created by yzm on 16/5/17.
// Copyright © 2016年 BroadLink Co., Ltd. All rights reserved.
//
#import "BLBaseResult.h"
@interface BLDeviceTimeResult : BLBaseResult
/**
Device time string in UTC-8
*/
@property (nonatomic, strong, getter=getTime) NSString *time;
/**
Device time diff with local time
*/
@property (nonatomic, assign) NSInteger difftime;
@end
| 17.565217
| 62
| 0.69802
|
5be60602eac1d3a067cc2fa47ccf6c0b7bb436cd
| 2,829
|
css
|
CSS
|
src/css/custom.css
|
esmeraldjs/website-core
|
ce50e3153085afd737031322acd88674fcb2922f
|
[
"MIT"
] | 2
|
2022-02-23T21:08:11.000Z
|
2022-02-27T21:22:59.000Z
|
src/css/custom.css
|
esmeraldjs/website-core
|
ce50e3153085afd737031322acd88674fcb2922f
|
[
"MIT"
] | null | null | null |
src/css/custom.css
|
esmeraldjs/website-core
|
ce50e3153085afd737031322acd88674fcb2922f
|
[
"MIT"
] | null | null | null |
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
}
/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #71f171;
--ifm-color-primary-dark: #21af57;
--ifm-color-primary-darker: #2aa51f;
--ifm-color-primary-darkest: #1a883b;
--ifm-color-primary-light: #24f150;
--ifm-color-primary-lighter: #24f17a;
--ifm-color-primary-lightest: #86ee91;
}
.docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.1);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}
[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}
[data-theme='dark'] .navbar__item.navbar__link[href*="github"] {
padding: 0 1.5rem 0 0;
display: flex;
font-size: 0;
}
[data-theme='dark'] .navbar__item.navbar__link[href*="github"]:before {
content: "";
width: 1.5rem;
height: 1.5rem;
background-image: url("/img/brand-github-inverted.svg");
background-repeat: no-repeat;
}
[data-theme='dark'] .navbar__item.navbar__link[href*="discord"] {
padding: 0 1.5rem 0 0;
display: flex;
font-size: 0;
}
[data-theme='dark'] .navbar__item.navbar__link[href*="discord"]:before {
content: "";
width: 1.5rem;
height: 1.5rem;
background-image: url("/img/Discord-Logo-White.svg");
background-repeat: no-repeat;
}
.navbar__item.navbar__link[href*="discord"] {
padding: 0 1.5rem 0 0;
display: flex;
font-size: 0;
}
.navbar__item.navbar__link[href*="discord"]:before {
content: "";
width: 1.5rem;
height: 1.5rem;
background-image: url("/img/Discord-Logo-Black.svg");
background-repeat: no-repeat;
}
.navbar__item.navbar__link[href*="github"] {
padding: 0 1.5rem 0 0;
display: flex;
font-size: 0;
}
.navbar__item.navbar__link[href*="github"]:before {
content: "";
width: 1.5rem;
height: 1.5rem;
background-image: url("/img/brand-github.svg");
background-repeat: no-repeat;
}
.subtitle_esmerald {
font-size: 1.5rem;
color: #86ee91 !important;
}
.button_esmerald {
background-color: #86ee91;
border-color: #86ee91;
}
.button_esmerald:hover {
background-color: #64f573cc;
border-color: #64f573cc;
}
.hero--primary {
--ifm-hero-background-color: #303130;
--ifm-hero-text-color: var(--ifm-font-color-base-inverse);
}
| 24.6
| 81
| 0.680099
|
a156b26d75367054eddb7748da02956f2fbc70d1
| 1,623
|
tsx
|
TypeScript
|
frontend/src/components/Tape/sidebar/cards/dialog/index.tsx
|
pashuka/tape
|
a5adf2faacb726e3f11680b916ac67159ef38115
|
[
"MIT"
] | null | null | null |
frontend/src/components/Tape/sidebar/cards/dialog/index.tsx
|
pashuka/tape
|
a5adf2faacb726e3f11680b916ac67159ef38115
|
[
"MIT"
] | null | null | null |
frontend/src/components/Tape/sidebar/cards/dialog/index.tsx
|
pashuka/tape
|
a5adf2faacb726e3f11680b916ac67159ef38115
|
[
"MIT"
] | 2
|
2021-07-16T16:46:32.000Z
|
2022-02-24T09:07:26.000Z
|
import React from 'react';
import { useRecoilValueLoadable } from 'recoil';
import {
dialogMembersSelector,
dialogSelector,
DialogIdType,
DialogType,
instanceOfDialog,
} from '../../../../../hooks/recoil/dialog';
import CardDialogDirect from './direct';
import { UserNameType } from '../../../../../hooks/recoil/user';
import CardDialogGroup from './group';
type PropsType = {
dialog_id: DialogIdType;
};
const CardDialog = ({ dialog_id }: PropsType) => {
const [dialog, setDialog] = React.useState<DialogType | undefined>();
const { state: dState, contents: dContents } = useRecoilValueLoadable(
dialogSelector(dialog_id),
);
const [members, setMembers] = React.useState<UserNameType[]>(
[] as UserNameType[],
);
const { state: mState, contents: mContents } = useRecoilValueLoadable(
dialogMembersSelector({ dialog_id, offset: 0 }),
);
React.useEffect(() => {
if (dState === 'hasValue' && instanceOfDialog(dContents)) {
setDialog(dContents);
}
}, [dState, dContents]);
React.useEffect(() => {
if (mState === 'hasValue' && Array.isArray(mContents)) {
setMembers(mContents);
}
}, [mState, mContents]);
if (!dialog) {
return null;
}
switch (dialog.dialog_type) {
case 'direct':
if (members.length) {
return (
<CardDialogDirect
dialog={dialog}
username={members.length ? members[0].username : ''}
/>
);
}
return null;
case 'group':
return <CardDialogGroup dialog={dialog} />;
default:
return null;
}
};
export default CardDialog;
| 24.590909
| 72
| 0.621688
|
da76bb8fa3023b765771b8cd49b58be6cfcf5ef6
| 3,011
|
php
|
PHP
|
resources/views/admin/users/manage.blade.php
|
ipatco/event_app1
|
419d1d464194e065811f19b3028a605116316c98
|
[
"MIT"
] | null | null | null |
resources/views/admin/users/manage.blade.php
|
ipatco/event_app1
|
419d1d464194e065811f19b3028a605116316c98
|
[
"MIT"
] | null | null | null |
resources/views/admin/users/manage.blade.php
|
ipatco/event_app1
|
419d1d464194e065811f19b3028a605116316c98
|
[
"MIT"
] | null | null | null |
@extends('admin')
@section('title', 'Users')
@section('css')
<link href="{{ asset('assets/vendor/datatables/dataTables.bootstrap4.min.css') }}" rel="stylesheet">
@endsection
@section('page')
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Users</h1>
</div>
<!-- DataTales Example -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">List of Users</h6>
</div>
<div class="card-body">
@if (session('success'))
<div class="alert alert-success">
{{ session('success') }}
</div>
@endif
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Role</th>
<th width=150>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
<th>Name</th>
<th>Email</th>
<th>Role</th>
<th width=150>Action</th>
</tr>
</tfoot>
<tbody>
@foreach ($users as $user)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $user->name }}</td>
<td>{{ $user->email }}</td>
<td>{{ $user->role }}</td>
<td>
{{-- link to send password reset link --}}
{{-- <a href="{{ route('admin.user.send-reset-link', ['id' => $user->id]) }}" class="btn btn-primary btn-sm">Send Reset Link</a> --}}
@if($user->role != 'vendor' && $user->role != 'admin')
<a href="{{ route('admin.user.vendor', ['id' => $user->id]) }}" class="btn btn-primary btn-sm">Make Vendor</a>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@section('js')
<script src="{{ asset('assets/vendor/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('assets/vendor/datatables/dataTables.bootstrap4.min.js') }}"></script>
<script src="{{ asset('assets/js/demo/datatables-demo.js') }}"></script>
@endsection
| 40.689189
| 169
| 0.381933
|
33d80ce09b2403449df13b142b7d34f121dd5765
| 205
|
h
|
C
|
ios/oplayer/View/UITableViewBase.h
|
citshares/bitshares-mobile-app
|
ecc2061384f17a5bf9f17aaefe9c036106a765e2
|
[
"MIT"
] | null | null | null |
ios/oplayer/View/UITableViewBase.h
|
citshares/bitshares-mobile-app
|
ecc2061384f17a5bf9f17aaefe9c036106a765e2
|
[
"MIT"
] | null | null | null |
ios/oplayer/View/UITableViewBase.h
|
citshares/bitshares-mobile-app
|
ecc2061384f17a5bf9f17aaefe9c036106a765e2
|
[
"MIT"
] | null | null | null |
//
// UITableViewBase.h
// oplayer
//
// Created by Aonichan on 16/1/29.
//
//
#import <UIKit/UIKit.h>
@interface UITableViewBase : UITableView
@property (nonatomic, assign) BOOL hideAllLines;
@end
| 12.8125
| 48
| 0.687805
|
540d5534f17e9099073a724c40fb2bf11243e360
| 169
|
css
|
CSS
|
dist/VueBootstrapTypeahead.css
|
jhalag/vue-bootstrap-typeahead
|
a9cfc7ec4a0a7afa866bee14304890b8b26c58d1
|
[
"MIT"
] | null | null | null |
dist/VueBootstrapTypeahead.css
|
jhalag/vue-bootstrap-typeahead
|
a9cfc7ec4a0a7afa866bee14304890b8b26c58d1
|
[
"MIT"
] | null | null | null |
dist/VueBootstrapTypeahead.css
|
jhalag/vue-bootstrap-typeahead
|
a9cfc7ec4a0a7afa866bee14304890b8b26c58d1
|
[
"MIT"
] | 1
|
2019-11-16T22:07:51.000Z
|
2019-11-16T22:07:51.000Z
|
.vbt-highlighted[data-v-244e82d6]{font-weight:700}.vbt-autocomplete-list[data-v-3a168738]{max-height:350px;overflow-y:auto;padding-top:5px;position:absolute;z-index:999}
| 169
| 169
| 0.810651
|
f2632226f363415cdd99c765903859a37bd9c4c3
| 1,066
|
swift
|
Swift
|
App/Sources/Networking/DomainErrorFactory.swift
|
LinkAndreas/Licenses
|
32f20f6e274b3017ed4fc26b8e93d7447f5a4517
|
[
"MIT"
] | 24
|
2021-03-10T12:47:44.000Z
|
2022-03-25T16:18:13.000Z
|
App/Sources/Networking/DomainErrorFactory.swift
|
LinkAndreas/Licenses
|
32f20f6e274b3017ed4fc26b8e93d7447f5a4517
|
[
"MIT"
] | null | null | null |
App/Sources/Networking/DomainErrorFactory.swift
|
LinkAndreas/Licenses
|
32f20f6e274b3017ed4fc26b8e93d7447f5a4517
|
[
"MIT"
] | 1
|
2022-03-10T02:19:19.000Z
|
2022-03-10T02:19:19.000Z
|
// Copyright © 2021 Andreas Link. All rights reserved.
import Aphrodite
import Foundation
enum DomainError: Error {
case forbidden(HTTPURLResponse, Data)
case serviceCancelled
case notConnectedToInternet
case githubRateLimitExceeded
case unauthorized
case unexpected
}
enum DomainErrorFactory: AphroditeDomainErrorFactory {
static func make(from error: AphroditeError) -> DomainError {
switch error {
case let .forbidden(response, data):
guard
let status: GithubRequestStatus = GithubRequestStatusFactory.make(from: response.allHeaderFields),
status.remaining == 0
else {
return .forbidden(response, data)
}
return .githubRateLimitExceeded
case .serviceCancelled:
return .serviceCancelled
case .notConnectedToInternet:
return .notConnectedToInternet
case .unauthorized:
return .unauthorized
default:
return .unexpected
}
}
}
| 25.380952
| 114
| 0.639775
|
3d9e0f10265ec297346181c6a674bf3e4c761b44
| 47
|
ps1
|
PowerShell
|
Chapter03/4.1.18.Select-Object_Unique.ps1
|
wagnerhsu/packt-Mastering-Windows-PowerShell-Scripting-Fourth-Edition
|
be9f5cad2bf28de7c0a250590c65b72994800aeb
|
[
"MIT"
] | 27
|
2020-04-21T13:28:29.000Z
|
2022-03-09T12:19:24.000Z
|
Chapter03/4.1.18.Select-Object_Unique.ps1
|
wagnerhsu/packt-Mastering-Windows-PowerShell-Scripting-Fourth-Edition
|
be9f5cad2bf28de7c0a250590c65b72994800aeb
|
[
"MIT"
] | null | null | null |
Chapter03/4.1.18.Select-Object_Unique.ps1
|
wagnerhsu/packt-Mastering-Windows-PowerShell-Scripting-Fourth-Edition
|
be9f5cad2bf28de7c0a250590c65b72994800aeb
|
[
"MIT"
] | 15
|
2020-05-03T01:24:33.000Z
|
2022-01-26T04:57:23.000Z
|
1, 1, 1, 3, 5, 2, 2, 4 | Select-Object -Unique
| 23.5
| 46
| 0.553191
|
e27d8e1da38b6a86cff41571fdc556e2598d1c13
| 248
|
py
|
Python
|
Demo/run.py
|
pkeech/Docker-Flask-Waitress-Demo
|
9fe3f84bb6a24b8c652f40e2d7eaa304e202fbc7
|
[
"MIT"
] | null | null | null |
Demo/run.py
|
pkeech/Docker-Flask-Waitress-Demo
|
9fe3f84bb6a24b8c652f40e2d7eaa304e202fbc7
|
[
"MIT"
] | null | null | null |
Demo/run.py
|
pkeech/Docker-Flask-Waitress-Demo
|
9fe3f84bb6a24b8c652f40e2d7eaa304e202fbc7
|
[
"MIT"
] | null | null | null |
## IMPORT MODULES
from app import create_app
from waitress import serve
from paste.translogger import TransLogger
## START FLASK APPLICATION WITH WAITRESS
if __name__ == "__main__":
app = create_app()
serve(TransLogger(app), listen='*:80')
| 27.555556
| 42
| 0.754032
|
e2b9e4fc59998fe6e7374d4b1ced481763f136fc
| 1,106
|
py
|
Python
|
Chapter02/MyThreadClass_lock_2.py
|
ayulestarinasution/Python-Pararel_SISTER
|
64b63275c795b303de12ca1b20aec5876bb154f7
|
[
"MIT"
] | null | null | null |
Chapter02/MyThreadClass_lock_2.py
|
ayulestarinasution/Python-Pararel_SISTER
|
64b63275c795b303de12ca1b20aec5876bb154f7
|
[
"MIT"
] | null | null | null |
Chapter02/MyThreadClass_lock_2.py
|
ayulestarinasution/Python-Pararel_SISTER
|
64b63275c795b303de12ca1b20aec5876bb154f7
|
[
"MIT"
] | null | null | null |
import threading
import time
import os
from threading import Thread
from random import randint
# Lock Definition
threadLock = threading.Lock()
class MyPasien (Thread):
def _init_(self, name, duration):
Thread._init_(self)
self.name = name
self.duration = duration
def run(self):
#Acquire the Lock
threadLock.acquire()
print ("---> " + self.name + \
" pasien, ID pasiens "\
+ str(os.getpid()) + "\n")
threadLock.release()
time.sleep(self.duration)
print ("---> " + self.name + " selesai\n")
#Release the Lock
def main():
start_time = time.time()
# Thread Creation
thread1 = MyPasien("daftar pasien {}", randint(1,10))
thread2 = MyPasien("daftar pasien {}", randint(1,10))
# Thread Running
thread1.start()
thread2.start()
# Thread joining
thread1.join()
thread2.join()
# End
print("End")
#Execution Time
print("--- %s detik ---" % (time.time() - start_time))
if __name__ == "__main__":
main()
#class_lock2
| 18.745763
| 58
| 0.574141
|