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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58956a62894f74fed10913e3d0d31a2035ab8fd8
| 1,146
|
css
|
CSS
|
Tanahashi/calculator/main.css
|
tes-inc/internship-20190204
|
f57cad12c7ddbd06005fb541eaa41b2cf6aa3cc9
|
[
"MIT"
] | null | null | null |
Tanahashi/calculator/main.css
|
tes-inc/internship-20190204
|
f57cad12c7ddbd06005fb541eaa41b2cf6aa3cc9
|
[
"MIT"
] | 6
|
2019-02-13T05:57:45.000Z
|
2019-03-15T06:24:37.000Z
|
Tanahashi/calculator/main.css
|
tes-inc/internship-20190204
|
f57cad12c7ddbd06005fb541eaa41b2cf6aa3cc9
|
[
"MIT"
] | null | null | null |
.container {
display: flex;
justify-content: center;
align-items: center;
}
button {
width: 80px;
height: 80px;
font-size: 2rem;
text-align: center;
border-collapse: collapse;
display: inline-block;
padding: 0.5em 1em;
text-decoration: none;
border-radius: 3px;
}
*:focus {
outline: none;
}
#arith{
background-color: darkorange;
margin: 0;
padding: 0;
border-bottom: solid 4px rgb(236, 131, 3);
}
.num-btn{
background-color: dimgrey;
width: 80px;
height: 80px;
margin: 0;
padding: 0;
border-bottom: solid 4px rgb(94, 93, 93);
}
button:active{
-webkit-transform: translateY(4px);
transform: translateY(4px);/*下に動く*/
border-bottom: none;/*線を消す*/
}
.calc-frame{
margin-top: 80px;
padding: 10px;
border: 2px solid black;
background-color: lightgray;
border-radius: 15px;
}
.flex-row{
margin-bottom: 5px;
}
.resultInput{
text-align: right;
font-size: 40px;
font-weight: bold;
padding-top: 20px;
padding-right: 20px;
border: 2px solid black;
margin: 10px 0;
background-color: white;
height: 80px;
}
h1{
text-align: center;
margin-bottom: 0;
}
| 15.69863
| 44
| 0.652705
|
d6857aa26394f68f4969a8c975c7a893766bda61
| 79
|
sql
|
SQL
|
prisma/migrations/20210503124908_/migration.sql
|
PedroPovedaQ/fleet-suite-server
|
6bb6a948aa042fb764e8672329fbf79a1d6d483a
|
[
"MIT"
] | null | null | null |
prisma/migrations/20210503124908_/migration.sql
|
PedroPovedaQ/fleet-suite-server
|
6bb6a948aa042fb764e8672329fbf79a1d6d483a
|
[
"MIT"
] | null | null | null |
prisma/migrations/20210503124908_/migration.sql
|
PedroPovedaQ/fleet-suite-server
|
6bb6a948aa042fb764e8672329fbf79a1d6d483a
|
[
"MIT"
] | null | null | null |
-- AlterTable
ALTER TABLE "Truck" ALTER COLUMN "status" SET DEFAULT E'active';
| 26.333333
| 64
| 0.746835
|
e7059c3b3e8fcc5be6cd679a5287605021b5fc1b
| 232
|
dart
|
Dart
|
tool/templates/code/other_code.dart
|
upperxcode/shelf_plus
|
d570fded28cbef3803ac1f3097973f2e41add08a
|
[
"MIT"
] | null | null | null |
tool/templates/code/other_code.dart
|
upperxcode/shelf_plus
|
d570fded28cbef3803ac1f3097973f2e41add08a
|
[
"MIT"
] | null | null | null |
tool/templates/code/other_code.dart
|
upperxcode/shelf_plus
|
d570fded28cbef3803ac1f3097973f2e41add08a
|
[
"MIT"
] | null | null | null |
class Person {
final String name;
final int age;
Person({required this.name, required this.age});
// created with tools like @jsonSerializable
Map<String, dynamic> toJson() {
return {'name': name, 'age': age};
}
}
| 19.333333
| 50
| 0.655172
|
071043d821b4412ff9fdfd932577d8e2d751af72
| 10,932
|
cpp
|
C++
|
interfaces/innerkits/native_cpp/framework/test/unittest/gatt/gatt_client_test.cpp
|
openharmony-gitee-mirror/communication_bluetooth
|
444309918cd00a65a10b8d798a0f5a78f8cf13be
|
[
"Apache-2.0"
] | null | null | null |
interfaces/innerkits/native_cpp/framework/test/unittest/gatt/gatt_client_test.cpp
|
openharmony-gitee-mirror/communication_bluetooth
|
444309918cd00a65a10b8d798a0f5a78f8cf13be
|
[
"Apache-2.0"
] | null | null | null |
interfaces/innerkits/native_cpp/framework/test/unittest/gatt/gatt_client_test.cpp
|
openharmony-gitee-mirror/communication_bluetooth
|
444309918cd00a65a10b8d798a0f5a78f8cf13be
|
[
"Apache-2.0"
] | 1
|
2021-09-13T11:16:33.000Z
|
2021-09-13T11:16:33.000Z
|
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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.
*/
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "bluetooth_gatt_client.h"
#include "bluetooth_gatt_descriptor.h"
#include "bluetooth_host.h"
#include "uuid.h"
#include "vector"
using namespace testing;
using namespace testing::ext;
using namespace bluetooth;
namespace OHOS {
namespace Bluetooth {
class GattClientCallbackTest : public GattClientCallback {
public:
GattClientCallbackTest()
{}
~GattClientCallbackTest()
{}
void OnConnectionStateChanged(int connectionState, int ret)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnConnectionStateChanged called";
}
void OnCharacteristicChanged(const GattCharacteristic &characteristic)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnCharacteristicChanged called";
}
void OnCharacteristicReadResult(const GattCharacteristic &characteristic, int ret)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnCharacteristicReadResult called";
}
void OnCharacteristicWriteResult(const GattCharacteristic &characteristic, int ret)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnCharacteristicWriteResult called";
}
void OnDescriptorReadResult(const GattDescriptor &descriptor, int ret)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnDescriptorReadResult called";
}
void OnDescriptorWriteResult(const GattDescriptor &descriptor, int ret)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnDescriptorWriteResult called";
}
void OnMtuUpdate(int mtu, int ret)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnMtuUpdate called";
}
void OnServicesDiscovered(int status)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnServicesDiscovered called";
}
void OnConnectionParameterChanged(int interval, int latency, int timeout, int status)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnConnectionParameterChanged called";
}
void OnSetNotifyCharacteristic(int status)
{
GTEST_LOG_(INFO) << "GattClientCallbackTest::OnSetNotifyCharacteristic called";
}
};
class GattClientTest : public testing::Test {
public:
GattClientTest()
{}
~GattClientTest()
{}
int tempData_ = 0;
static void SetUpTestCase(void);
static void TearDownTestCase(void);
void SetUp();
void TearDown();
};
void GattClientTest::SetUpTestCase(void)
{}
void GattClientTest::TearDownTestCase(void)
{}
void GattClientTest::SetUp()
{
tempData_ = 0;
}
void GattClientTest::TearDown()
{}
HWTEST_F(GattClientTest, GattClient_ModuleTest_GattClient, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_GattClient start";
BluetoothRemoteDevice device;
GattClient client(device);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_GattClient end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_Connect, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_Connect start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
int result = client.Connect(callback_, isAutoConnect, transport);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_Connect end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_Disconnect, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_Disconnect start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
int result = client.Disconnect();
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_Disconnect end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_DiscoverServices, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_DiscoverServices start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
int result = client.DiscoverServices();
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_DiscoverServices end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_GetService_1, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_GetService_1 start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
UUID id = UUID::RandomUUID();
client.GetService(id);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_GetService_1 end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_GetService_2, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_GetService_2 start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
client.GetService();
GTEST_LOG_(INFO) << "GattClient_ModuleTest_GetService_2 end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_ReadCharacteristic, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_ReadCharacteristic start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
UUID uuid_ = UUID::RandomUUID();
int permissions = 17;
int properties = 37;
GattCharacteristic characteristic = GattCharacteristic(uuid_, permissions, properties);
int result = client.ReadCharacteristic(characteristic);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_ReadCharacteristic end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_ReadDescriptor, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_ReadDescriptor start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
UUID uuid_ = UUID::RandomUUID();
int permissions = 17;
GattDescriptor descriptor = GattDescriptor(uuid_, permissions);
int result = client.ReadDescriptor(descriptor);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_ReadDescriptor end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_RequestBleMtuSize, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_RequestBleMtuSize start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
int result = client.Connect(callback_, isAutoConnect, transport);
int mtu = 17;
result = client.RequestBleMtuSize(mtu);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_RequestBleMtuSize end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_SetNotifyCharacteristic, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_SetNotifyCharacteristic start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
UUID uuid_ = UUID::RandomUUID();
int permissions = 17;
int properties = 37;
GattCharacteristic characteristic = GattCharacteristic(uuid_, permissions, properties);
bool enable = true;
int result = client.SetNotifyCharacteristic(characteristic, enable);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_SetNotifyCharacteristic end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_WriteCharacteristic, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_WriteCharacteristic start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
UUID uuid_ = UUID::RandomUUID();
int permissions = 17;
int properties = 37;
GattCharacteristic characteristic = GattCharacteristic(uuid_, permissions, properties);
int result = client.WriteCharacteristic(characteristic);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_WriteCharacteristic end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_WriteDescriptor, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_WriteDescriptor start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
UUID uuid_ = UUID::RandomUUID();
int permissions = 17;
GattDescriptor descriptor = GattDescriptor(uuid_, permissions);
int result = client.WriteDescriptor(descriptor);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_WriteDescriptor end";
}
HWTEST_F(GattClientTest, GattClient_ModuleTest_RequestConnectionPriority, TestSize.Level1)
{
GTEST_LOG_(INFO) << "GattClient_ModuleTest_RequestConnectionPriority start";
BluetoothRemoteDevice device;
GattClient client(device);
GattClientCallbackTest callback_;
bool isAutoConnect = true;
int transport = 12;
client.Connect(callback_, isAutoConnect, transport);
int connPriority = 2;
int result = client.RequestConnectionPriority(connPriority);
EXPECT_EQ(result, (int)bluetooth::GattStatus::GATT_SUCCESS);
GTEST_LOG_(INFO) << "GattClient_ModuleTest_RequestConnectionPriority end";
}
} // namespace Bluetooth
} // namespace OHOS
| 35.151125
| 91
| 0.751372
|
799f0f2a1670d15729de6a4701c8b93dfce5c270
| 928
|
php
|
PHP
|
application/views/toko/cemilan.php
|
nurarifin256/pariwisata_situ_singabangsa
|
cac40c8d76eb12c5fa291cdfb82438897353d183
|
[
"MIT"
] | null | null | null |
application/views/toko/cemilan.php
|
nurarifin256/pariwisata_situ_singabangsa
|
cac40c8d76eb12c5fa291cdfb82438897353d183
|
[
"MIT"
] | null | null | null |
application/views/toko/cemilan.php
|
nurarifin256/pariwisata_situ_singabangsa
|
cac40c8d76eb12c5fa291cdfb82438897353d183
|
[
"MIT"
] | null | null | null |
<br>
<div class="container mt-5">
<h3 class="text-center mb-3">Laporan Cemilan</h3>
<form action="<?= base_url() ?>Toko2/laporanCemilan" method="get">
<div class="row justify-content-center">
<div class="col-sm-4">
<div class="form-group">
<label for="tanggal1">Dari</label>
<input type="date" class="form-control" name="tanggal1" value="<?= date('Y-m-01') ?>">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<label for="">Sampai</label>
<input type="date" class="form-control" name="tanggal2" value="<?= date('Y-m-d') ?>">
</div>
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Lihat</button>
</div>
</form>
</div>
</div>
| 32
| 106
| 0.47306
|
a34a1610614cf3f211f6364369c273696e59a83e
| 3,647
|
java
|
Java
|
antioch-java-client/src/main/java/nl/knaw/huygens/antioch/client/model/SubResourceList.java
|
HuygensING/antioch
|
dfa6af02ed964075054ba2b949310296c98b9f75
|
[
"Apache-2.0"
] | null | null | null |
antioch-java-client/src/main/java/nl/knaw/huygens/antioch/client/model/SubResourceList.java
|
HuygensING/antioch
|
dfa6af02ed964075054ba2b949310296c98b9f75
|
[
"Apache-2.0"
] | null | null | null |
antioch-java-client/src/main/java/nl/knaw/huygens/antioch/client/model/SubResourceList.java
|
HuygensING/antioch
|
dfa6af02ed964075054ba2b949310296c98b9f75
|
[
"Apache-2.0"
] | null | null | null |
package nl.knaw.huygens.antioch.client.model;
/*
* #%L
* antioch-java-client
* =======
* Copyright (C) 2015 - 2017 Huygens ING (KNAW)
* =======
* 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.
* #L%
*/
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.google.common.collect.Lists;
import nl.knaw.huygens.antioch.api.JsonTypeNames;
import nl.knaw.huygens.antioch.api.model.JsonWrapperObject;
@JsonTypeName(JsonTypeNames.SUBRESOURCELIST)
public class SubResourceList extends JsonWrapperObject implements List<SubResourcePojo> {
final List<SubResourcePojo> delegate = Lists.newArrayList();
// delegated methods
@Override
public int size() {
return delegate.size();
}
@Override
public boolean isEmpty() {
return delegate.isEmpty();
}
@Override
public boolean contains(Object o) {
return delegate.contains(o);
}
@Override
public Iterator<SubResourcePojo> iterator() {
return delegate.iterator();
}
@Override
public Object[] toArray() {
return delegate.toArray();
}
@Override
public <T> T[] toArray(T[] a) {
return delegate.toArray(a);
}
@Override
public boolean add(SubResourcePojo e) {
return delegate.add(e);
}
@Override
public boolean remove(Object o) {
return delegate.remove(o);
}
@Override
public boolean containsAll(Collection<?> c) {
return delegate.containsAll(c);
}
@Override
public boolean addAll(Collection<? extends SubResourcePojo> c) {
return delegate.addAll(c);
}
@Override
public boolean addAll(int index, Collection<? extends SubResourcePojo> c) {
return delegate.addAll(index, c);
}
@Override
public boolean removeAll(Collection<?> c) {
return delegate.removeAll(c);
}
@Override
public boolean retainAll(Collection<?> c) {
return delegate.retainAll(c);
}
@Override
public void clear() {
delegate.clear();
}
@Override
public boolean equals(Object o) {
return delegate.equals(o);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
@Override
public SubResourcePojo get(int index) {
return delegate.get(index);
}
@Override
public SubResourcePojo set(int index, SubResourcePojo element) {
return delegate.set(index, element);
}
@Override
public void add(int index, SubResourcePojo element) {
delegate.add(index, element);
}
@Override
public SubResourcePojo remove(int index) {
return delegate.remove(index);
}
@Override
public int indexOf(Object o) {
return delegate.indexOf(o);
}
@Override
public int lastIndexOf(Object o) {
return delegate.lastIndexOf(o);
}
@Override
public ListIterator<SubResourcePojo> listIterator() {
return delegate.listIterator();
}
@Override
public ListIterator<SubResourcePojo> listIterator(int index) {
return delegate.listIterator(index);
}
@Override
public List<SubResourcePojo> subList(int fromIndex, int toIndex) {
return delegate.subList(fromIndex, toIndex);
}
}
| 21.96988
| 89
| 0.703318
|
eb696d64c655e84e24f3a1bc90c517da07d73057
| 3,433
|
css
|
CSS
|
doc/doc.css
|
christopheparisse/trjs
|
ffd9a14bf2ee0f5769ccca18d84ab3617c68d72e
|
[
"CC0-1.0"
] | 1
|
2021-11-25T10:39:50.000Z
|
2021-11-25T10:39:50.000Z
|
doc/doc.css
|
christopheparisse/trjs
|
ffd9a14bf2ee0f5769ccca18d84ab3617c68d72e
|
[
"CC0-1.0"
] | 20
|
2018-10-04T15:02:42.000Z
|
2022-03-25T19:27:00.000Z
|
doc/doc.css
|
christopheparisse/trjs
|
ffd9a14bf2ee0f5769ccca18d84ab3617c68d72e
|
[
"CC0-1.0"
] | 1
|
2018-11-23T15:06:53.000Z
|
2018-11-23T15:06:53.000Z
|
body {
font:13px Helvetica, sans-serif;
counter-reset: h1counter;
}
h1:before {
content: counter(h1counter) ".\0000a0\0000a0";
counter-increment: h1counter;
}
h1 {
counter-reset: h2counter;
}
h2:before {
content: counter(h1counter) "." counter(h2counter) ".\0000a0\0000a0";
counter-increment: h2counter;
}
h2 {
counter-reset: h3counter;
}
h3:before {
content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) ".\0000a0\0000a0";
counter-increment: h3counter;
}
header {
position: fixed;
top: 0%;
width: 100%;
height: auto;
padding-bottom: 0.5em;
background-color: #0B4C5F;
color: white;
}
#main {
width: 75%;
height: auto;
float: left;
margin-top: 8%;
padding-top: 1%;
margin-bottom: 3%;
margin-left: 3%;
margin-right: 3%;
/*background-color: #F1F2FC; #ECEEFE; #EFF5FB;*/
}
#menu {
position: fixed;
margin-top: 8%;
right: 1%;
width: 15%;
height: auto;
padding-top: 0.4em;
padding-left: 0.4em;
background-color: #E6E6E6;
box-shadow: 3px 3px 3px #888888;
}
#menu a:hover {
text-decoration: underline;
color: black
}
#menu2 {
width: 90%;
height: auto;
margin-bottom: 3%;
display: block;
}
.clear {
clear: both;
}
#menu2 a {
height: 100px;
width: 100px;
display: block;
color: #000;
background: #d0d0d0; /*#0489B1*/
border-radius: 0.5em;
text-decoration: none;
float: left;
font-size: 12px;
font-weight: bold;
margin: 1.5em 1.5em 1.5em 1.5em;
padding-top: 0.4em;
padding-left: 0.4em;
padding-right: 0.4em;
}
#menu2 a:hover {
background: #FE6102;
text-decoration: none;
color: #fff;
border-bottom: 1px;
}
nav {font: 12px Helvetica, sans-serif;}
nav span {
font: 16px Helvetica, sans-serif;
font-weight: bold;
margin: 0.2em 1em 0.3em 0;
background-color: #E6E6E6;
width: 50%;
}
nav span:hover {background-color: white;}
nav ul {
list-style-type: none;
margin: 0 0 0 0;
}
nav a {
text-decoration: none;
color: #2E2E2E;
}
nav a:hover {
text-decoration: none;
color:black;
}
p {margin: 0 2em 0.5em 0;}
#nb {
background-color: #EFF2FB;
border-style: dotted;
border-width: 1px;
border-color: #D8D8D8;
width: 85%;
padding : 0.5em 0em 0.5em 0.5em;
margin-top: 1em;
margin-bottom: 1em;
font:12px Helvetica, sans-serif;
}
h1 {
padding-top: 35px;
margin-top: 2em;
color: #0B4C5F;
}
h2 {
color: #0B4C5F;
margin: 1.7em 1em 0.5em 1em;
}
h3 {
color: #2E2E2E;
margin: 1.5em 1em 1em 1em;
}
h4 {
color: #424242;
margin: 1.3em 1em 1em 2em;
}
hr {
border:0;
height: 1px;
background-color: #CED8F6;
width: 90%;
text-align: left;
margin:-1em 0 1em 0;
padding:0;
}
a {
color: #0B0B61;
text-decoration: underline;
}
a:hover {
background-color: #E6E6E6;
text-decoration: none;
}
ul {
margin: 0.2em 1em 0.4em 0;
list-style-type: square;
}
li {margin: 0 1em 0 0;}
table {
border-collapse: collapse;
margin-left: 10%;
margin-right: 15%;
}
th {
background-color: #CED8F6;
padding: 0.5em;
text-align: center;
border: 1px solid #A4A4A4;
font-size: 90%;
}
td {
padding: 3px;
text-align: left;
border: 1px solid #A4A4A4;
font-size: 90%;
}
.a {text-align: center;}
.b {font-weight: bold;}
i.fa-check {color: #0B610B;}
i.fa-remove {color: #B40404;}
i.pl {padding-left: 20px;}
div.spoiler {cursor: pointer;}
div.spoiler div.contenuSpoiler {display: none;}
img.align {display:block;
width:auto;
margin-left:auto;
margin-right:auto;
}
img.winwidth {
width:60%;
height:auto;
}
img.key {
width: 35px;
height: 35px;
}
| 17.338384
| 94
| 0.664142
|
c67b1887e025ab82c4c68cf6bb98cdde205968d7
| 3,217
|
py
|
Python
|
fabfile/common/lib/template.py
|
hnakamur/my-fabfiles
|
3b5ac68ebaa185f06a5dffc27533b2906b599c27
|
[
"MIT"
] | 1
|
2015-06-12T02:05:02.000Z
|
2015-06-12T02:05:02.000Z
|
fabfile/common/lib/template.py
|
hnakamur/my-fabfiles
|
3b5ac68ebaa185f06a5dffc27533b2906b599c27
|
[
"MIT"
] | null | null | null |
fabfile/common/lib/template.py
|
hnakamur/my-fabfiles
|
3b5ac68ebaa185f06a5dffc27533b2906b599c27
|
[
"MIT"
] | null | null | null |
from datetime import datetime
import hashlib
import os
from StringIO import StringIO
from fabric.api import env, hide, put, settings
from fabric.contrib import files
from fabric.utils import apply_lcwd
from fabfile.common.lib.operations import run_or_sudo
from fabfile.common.lib import file
FABRIC_MANAGED_DEFAULT_FORMAT = "Fabric managed: %(dest)s copied from %(src)s"
def ensure_template(filename, destination, context=None, template_dir=None, use_sudo=False, backup=True, mirror_local_mode=False, mode=None, fabric_managed_format=FABRIC_MANAGED_DEFAULT_FORMAT):
run_fn = run_or_sudo(use_sudo)
# Normalize destination to be an actual filename, due to using StringIO
with settings(hide('everything'), warn_only=True):
if run_fn('test -d %s' % _expand_path(destination)).succeeded:
sep = "" if destination.endswith('/') else "/"
destination += sep + os.path.basename(filename)
context = modify_context(filename, destination, context=context,
fabric_managed_format=fabric_managed_format)
text = render_as_text(filename, context=context, template_dir=template_dir)
local_sum = hashlib.sha256(text).hexdigest()
remote_sum = file.calc_sha256sum(destination, use_sudo=use_sudo)
if remote_sum == local_sum:
return False
# Use mode kwarg to implement mirror_local_mode, again due to using
# StringIO
if mirror_local_mode and mode is None:
mode = os.stat(filename).st_mode
# To prevent put() from trying to do this
# logic itself
mirror_local_mode = False
# Back up original file
if backup and exists(destination):
run_fn("cp %s{,.bak}" % _expand_path(destination))
# Upload the file.
put(
local_path=StringIO(text),
remote_path=destination,
use_sudo=use_sudo,
mirror_local_mode=mirror_local_mode,
mode=mode
)
return True
def modify_context(filename, destination, context=None, fabric_managed_format=FABRIC_MANAGED_DEFAULT_FORMAT):
if context is None:
context = {}
context['fabric_managed'] = format_fabric_managed(filename, destination,
fabric_managed_format)
return context
def format_fabric_managed(filename, destination,
fabric_managed_format=FABRIC_MANAGED_DEFAULT_FORMAT):
return fabric_managed_format % {
'dest': destination,
'src': filename
}
def render_as_text(filename, context=None, template_dir=None):
try:
template_dir = template_dir or os.getcwd()
template_dir = apply_lcwd(template_dir, env)
from jinja2 import Environment, FileSystemLoader
jenv = Environment(loader=FileSystemLoader(template_dir))
text = jenv.get_template(filename).render(**context or {})
# Force to a byte representation of Unicode, or str()ification
# within Paramiko's SFTP machinery may cause decode issues for
# truly non-ASCII characters.
text = text.encode('utf-8')
return text
except ImportError:
import traceback
tb = traceback.format_exc()
abort(tb + "\nUnable to import Jinja2 -- see above.")
def _expand_path(path):
return '"$(echo %s)"' % path
| 37.847059
| 194
| 0.707181
|
c972d7f16a50fed78142f84281b2e5e4e4b11ae6
| 2,611
|
ts
|
TypeScript
|
packages/collection-agent/src/messages/xApiEncoder.test.ts
|
learningtapestry/ssdn
|
a358d46276cd64d15fe2ed16a3c3cf045a53101d
|
[
"Apache-2.0"
] | null | null | null |
packages/collection-agent/src/messages/xApiEncoder.test.ts
|
learningtapestry/ssdn
|
a358d46276cd64d15fe2ed16a3c3cf045a53101d
|
[
"Apache-2.0"
] | 1
|
2022-03-24T07:45:09.000Z
|
2022-03-24T07:45:09.000Z
|
packages/collection-agent/src/messages/xApiEncoder.test.ts
|
learningtapestry/ssdn
|
a358d46276cd64d15fe2ed16a3c3cf045a53101d
|
[
"Apache-2.0"
] | null | null | null |
import { HeartbeatMessage } from "./heartbeatMessage";
import { VideoMessage } from "./videoMessage";
import { XApiEncoder } from "./xApiEncoder";
describe("XApiEncoder", () => {
describe("encode", () => {
it("encodes a hearbeat message", () => {
const message = new HeartbeatMessage(
{
extensions: { homePage: "https://www.test.com" },
id: "test@example.com",
},
{
heartbeatId: "1234567890",
pageTitle: "Khan Academy",
pageUrl: "https://www.khanacademy.org",
timeSpentOnPage: 10,
},
);
const encodedMessage = new XApiEncoder().encode(message);
expect(encodedMessage).toEqual({
actor: {
account: {
homePage: "https://www.test.com",
name: "test@example.com",
},
objectType: "Agent",
},
context: {
extensions: {
"https://learningtapestry.github.io/xapi/ssdn/collection/extensions/heartbeatId":
"1234567890",
"https://learningtapestry.github.io/xapi/ssdn/collection/extensions/pageTitle":
"Khan Academy",
"https://learningtapestry.github.io/xapi/ssdn/collection/extensions/timeSpentOnPage": 10,
},
},
object: {
definition: {
type: "https://learningtapestry.github.io/xapi/ssdn/collection/activities/page",
},
id: "https://www.khanacademy.org",
objectType: "Activity",
},
verb: {
id: "https://learningtapestry.github.io/xapi/ssdn/collection/verbs/heartbeat",
},
});
});
it("encodes a video message", () => {
const message = new VideoMessage(
{
extensions: { homePage: "https://www.test.com" },
id: "test@example.com",
},
{
state: "playing",
videoUrl: "https://www.youtube.com/watch?v=I6xQtFsODIQ",
},
);
const encodedMessage = new XApiEncoder().encode(message);
expect(encodedMessage).toEqual({
actor: {
account: {
homePage: "https://www.test.com",
name: "test@example.com",
},
objectType: "Agent",
},
object: {
definition: {
type: "https://w3id.org/xapi/video/activity-type/video",
},
id: "https://www.youtube.com/watch?v=I6xQtFsODIQ",
objectType: "Activity",
},
verb: {
id: "https://w3id.org/xapi/video/verbs/played",
},
});
});
});
});
| 30.011494
| 101
| 0.518958
|
5afcc53d94ddafd99444f27b10eed3741d0d7941
| 262
|
cs
|
C#
|
MundoBalloonApi.infrastructure/Data/Models/VerificationRequest.cs
|
interactivelabsmx/mundoballoonapi
|
c461ae1c49f32080430bf8b7304a743e2e76bd8e
|
[
"MIT"
] | null | null | null |
MundoBalloonApi.infrastructure/Data/Models/VerificationRequest.cs
|
interactivelabsmx/mundoballoonapi
|
c461ae1c49f32080430bf8b7304a743e2e76bd8e
|
[
"MIT"
] | null | null | null |
MundoBalloonApi.infrastructure/Data/Models/VerificationRequest.cs
|
interactivelabsmx/mundoballoonapi
|
c461ae1c49f32080430bf8b7304a743e2e76bd8e
|
[
"MIT"
] | null | null | null |
namespace MundoBalloonApi.infrastructure.Data.Models;
public class VerificationRequest : BaseEntity
{
public int Id { get; set; }
public string? Identifier { get; set; }
public string? Token { get; set; }
public DateTime Expires { get; set; }
}
| 29.111111
| 54
| 0.698473
|
200dad3241641847194bc595f851a82f6aed6048
| 709
|
py
|
Python
|
pgapp/inversiones/doctype/sil_obra/sil_obra.py
|
edwinorlando83/pgapp
|
fcc5c6d879d904e825bf0a2cf5390ba7eafb3a7b
|
[
"MIT"
] | null | null | null |
pgapp/inversiones/doctype/sil_obra/sil_obra.py
|
edwinorlando83/pgapp
|
fcc5c6d879d904e825bf0a2cf5390ba7eafb3a7b
|
[
"MIT"
] | null | null | null |
pgapp/inversiones/doctype/sil_obra/sil_obra.py
|
edwinorlando83/pgapp
|
fcc5c6d879d904e825bf0a2cf5390ba7eafb3a7b
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2021, orlando and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
class sil_obra(Document):
@frappe.whitelist()
def getCantones(self):
return get_cantones()
@frappe.whitelist()
def getParroquias(self, canton):
return get_parroquias(canton)
@frappe.whitelist()
def get_cantones():
sql = """select distinct dpa_ncanton from tabsil_dpa where dpa_provincia = (select value from tabSingles ts where field = 'dpa_provincia')"""
return frappe.db.sql(sql)
def get_parroquias(canton):
sql = """select dpa_nparroquia from tabsil_dpa where dpa_ncanton = %s """
return frappe.db.sql(sql,canton)
| 27.269231
| 147
| 0.7433
|
84fff96cf36cf3aac317b6166212908818a2c9c2
| 3,331
|
kt
|
Kotlin
|
GudiCafeteria_a/app/src/main/java/com/duzi/gudicafeteria_a/repository/AppRepository.kt
|
pennya/GudiCafeteria
|
e44d2a01574cd0e2d086d6bad936137056374b75
|
[
"MIT"
] | null | null | null |
GudiCafeteria_a/app/src/main/java/com/duzi/gudicafeteria_a/repository/AppRepository.kt
|
pennya/GudiCafeteria
|
e44d2a01574cd0e2d086d6bad936137056374b75
|
[
"MIT"
] | null | null | null |
GudiCafeteria_a/app/src/main/java/com/duzi/gudicafeteria_a/repository/AppRepository.kt
|
pennya/GudiCafeteria
|
e44d2a01574cd0e2d086d6bad936137056374b75
|
[
"MIT"
] | 2
|
2018-10-14T02:14:22.000Z
|
2018-12-16T04:32:58.000Z
|
package com.duzi.gudicafeteria_a.repository
import com.duzi.gudicafeteria_a.data.*
import io.reactivex.Observable
import io.reactivex.Single
import retrofit2.Call
import java.util.*
class AppRepository(
private val localDataSource: LocalAppDataSource,
private val remoteDataSource: RemoteAppDataSource): AppDataSource {
private val cachedCafeList: ArrayList<Cafe> = arrayListOf() // 지도화면에서 사용할 카페리스트 캐시
private val cachedCafeMap = LinkedHashMap<String, Cafe>() // 상세페이지에서 사용할 카페리스트 캐시
fun addCache(cafes: List<Cafe>) {
cachedCafeList.addAll(cafes)
for(cafe in cafes) {
cachedCafeMap[cafe.cafe_Id] = cafe
}
}
fun getCachedCafeList(): List<Cafe> = cachedCafeList
fun clearCache() {
cachedCafeList.clear()
cachedCafeMap.clear()
}
override fun getCafes(date: String, sortType: Int, lat: Double, lon: Double, count: Int): Observable<List<Cafe>> {
// TODO local 값 비교 루틴 추가
return remoteDataSource.getCafes(date, sortType, lat, lon, count)
}
override fun getCafeById(id: String): Cafe {
if(cachedCafeMap[id] != null) {
// TODO 캐시에 데이터없는 경우 DB, Network에서 get하는 기능 추가
}
return cachedCafeMap[id]!!
}
override fun getWeeklyMenus(id: String, start: Long, end: Long): Observable<List<Menu>> {
return remoteDataSource.getWeeklyMenus(id, start, end)
}
override fun getCommentsById(id: String): Observable<List<Comment>> {
// TODO local 값 비교 루틴 추가
return remoteDataSource.getCommentsById(id)
}
override fun insertComment(comment: Comment): Call<Int> {
return remoteDataSource.insertComment(comment)
}
override fun deleteComment(cafeId: String, userId: String, seq: String): Call<Int> {
return remoteDataSource.deleteComment(cafeId, userId, seq)
}
override fun updateComment(cafeId: String, userId: String, seq: String, score: String, comment: String): Call<Int> {
return remoteDataSource.updateComment(cafeId, userId, seq, score, comment)
}
override fun getUserById(id: String): Observable<User> {
return remoteDataSource.getUserById(id)
}
override fun insertUser(user: User): Call<Int> {
return remoteDataSource.insertUser(user)
}
override fun deleteUser(userId: String): Call<Int> {
return remoteDataSource.deleteUser(userId)
}
override fun getFavoritesById(userId: String): Observable<List<Favorite>> {
return remoteDataSource.getFavoritesById(userId)
}
override fun insertFavorite(favorite: Favorite): Single<Int> {
return remoteDataSource.insertFavorite(favorite)
}
override fun deleteFavorite(cafeId: String, userId: String): Single<Int> {
return remoteDataSource.deleteFavorite(cafeId, userId)
}
companion object {
private var INSTANCE: AppRepository? = null
fun getInstance(localDataSource: LocalAppDataSource,
remoteDataSource: RemoteAppDataSource) =
INSTANCE ?: synchronized(AppRepository::class.java) {
INSTANCE ?: AppRepository(localDataSource, remoteDataSource).also { INSTANCE = it }
}
fun distoryInstance() {
INSTANCE = null
}
}
}
| 32.980198
| 121
| 0.667667
|
ebafa298e540c569eedada8b724d2e8ae1512aaf
| 27,105
|
css
|
CSS
|
frontend/css/swarm.css
|
awenandy/crane_note
|
0beeab483b40f71a0f38b0b21a3d6194fb410eff
|
[
"Apache-2.0"
] | 1
|
2018-01-01T16:28:16.000Z
|
2018-01-01T16:28:16.000Z
|
frontend/css/swarm.css
|
swe-zzf/docker-crane
|
f83cd3069d3a44e9efe4d4b27c3a9cdcba440fa5
|
[
"Apache-2.0"
] | null | null | null |
frontend/css/swarm.css
|
swe-zzf/docker-crane
|
f83cd3069d3a44e9efe4d4b27c3a9cdcba440fa5
|
[
"Apache-2.0"
] | null | null | null |
/* 重置 */
body {
font-family: 'Helvetica Neue', 'Helvetica', 'PingHei', 'PingFang SC', 'STHeitiSC-Light', 'Arial', sans-serif;
font-size: 14px;
font-weight: normal;
height: 100%;
color: #354052;
background-color: #252D31;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizelegibility;
}
* {
box-sizing: border-box;
-moz-box-sizing: border-box; /* Firefox */
-webkit-box-sizing: border-box;
}
ul,
ol,
li,
dt,
dd,
dl,
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1;
margin: 0;
padding: 0;
list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 12px;
}
a, a:visited {
color: #FFF; /*#00bdda;*/
text-decoration: none;
}
a:hover {
color: #FFF; /*#46ACC6;*/
text-decoration: underline;
}
a:active {
color: #FFF; /*#93CCDC;*/
text-decoration: underline;
}
::selection {
background: #00bdda;
color: #FFF;
}
::-moz-selection {
background: #00bdda;
color: #FFF;
}
::-webkit-selection {
background: #00bdda;
color: #FFF;
}
section {
margin: 0;
}
code {
background-color: #f9f2f4;
color: #c7254e;
font-size: 11px;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
display: inline-block;
padding: 10px;
word-break: break-all;
max-width: 450px;
}
.no-info {
color: #3F4855 !important;
}
.no-info-main {
color: #3F4855 !important;
padding-top: 100px;
padding-bottom: 100px;
font-size: 36px;
text-align: center;
}
.text-info {
color: #93CCDC;
}
.text-danger {
color: #FF3333;
}
.text-warning {
color: #E76C4C;
}
.text-success {
color: #89B832;
}
.ellipsis {
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
#main {
position: relative;
overflow-x: hidden;
overflow-y: auto;
height: 100%;
}
/* 通用左侧导航 */
#sidebar-main {
width: 150px;
-transition-duration: 0.5s;
-moz-transition-duration: 0.5s; /* Firefox */
-webkit-transition-duration: 0.5s; /* Safari 和 Chrome */
-o-transition-duration: 0.5;
}
#sidebar-main .logo {
background-color: #0C1C1B;
display: block;
height: 60px;
text-align: center;
}
#sidebar-main .logo img {
height: 30px;
margin-top: 15px;
}
#sidebar-main > ul {
margin: 25px 0 40px 0;
}
#sidebar-main li {
text-align: left;
}
#sidebar-main li i {
font-size: 16px;
margin-right: 15px;
margin-left: 15px;
width: 18px;
}
#sidebar-main li a, #sidebar-main li button {
font-size: 16px;
font-weight: bold;
line-height: 42px;
display: inline-block;
padding: 0;
height: 42px;
margin: 0;
border-radius: 0;
text-align: left;
color: #93929D;
border-left: 3px solid transparent;
}
#sidebar-main li a:hover, #sidebar-main li button:hover {
text-decoration: none;
color: #fff;
background-color: transparent !important;
}
#sidebar-main li.active a {
color: #FFF;
border-left: 3px solid #00bdda;
border-radius: 0;
}
#sidebar-main > ul ul {
padding: 0 0 10px 0;
background-color: rgba(0, 0, 0, 0.15);
}
#sidebar-main > ul ul a {
font-size: 12px;
height: 30px;
line-height: 30px;
min-height: 30px;
padding-left: 50px;
}
#sidebar-main > ul ul i {
display: none;
}
#sidebar-main.min-aside {
width: 42px;
-transition-duration: 0.5s;
-moz-transition-duration: 0.5s; /* Firefox */
-webkit-transition-duration: 0.5s; /* Safari 和 Chrome */
-o-transition-duration: 0.5;
overflow: hidden;
}
#sidebar-main.min-aside > ul ul a {
padding-left: 3px;
}
#sidebar-main.min-aside li i {
margin-left: 12px;
margin-right: 12px;
}
#sidebar-main.min-aside > ul ul i {
display: inline-block;
font-size: 11px;
margin-right: 15px;
}
#sidebar-main.min-aside li a {
min-width: auto;
border: none;
}
#sidebar-main.min-aside li.active a {
color: #FFF;
background-color: #00bdda;
}
#sidebar-main .md-button[disabled], #sidebar-main .md-button[disabled]:hover {
background-color: transparent !important;
color: #93929d !important;
}
/* 通用顶部导航 */
#nav-main {
background-color: #0C1C1B;
}
#nav-main md-toolbar {
height: 60px;
min-height: 60px;
width: auto;
}
#nav-main .md-toolbar-tools {
height: 60px;
max-height: 60px;
padding: 0;
}
#nav-main .md-button {
font-size: 20px;
width: 60px;
min-width: 60px;
height: 60px;
margin: 0;
padding: 0;
border-radius: 0;
background-color: transparent;
color: #93929D;
}
#nav-main md-toolbar:not(.md-menu-toolbar) {
background-color: transparent;
}
/* 面包屑导航样式 */
#breadcrumb-main {
font-size: 16px;
}
#breadcrumb-main a {
color: #93929D;
cursor: pointer;
}
#breadcrumb-main a:hover {
color: #E8EAEC;
text-decoration: none;
}
#breadcrumb-main i {
color: #3F4855;
margin: 0 12px;
}
#breadcrumb-main span {
color: #FFF;
font-weight: bold;
}
#container-main {
color: #D3D1D5;
padding: 25px;
}
#container-main #header-main {
margin-bottom: 30px;
font-size: 0;
}
#container-main #header-main h1 {
margin-bottom: 0;
font-size: 28px;
display: inline-block;
position: relative;
}
#container-main #header-main h1 i {
width: 30px;
margin-right: 10px;
}
#container-main #header-main h1 .label-node-ip {
position: absolute;
right: -95px;
top: 0px;
font-size: 12px;
color: #FFF;
background-color: #89B832;
border-radius: 3px;
padding: 2px 3px;
}
#container-main #header-main .sub-info-main {
margin-top: 15px;
margin-left: 40px;
}
#container-main {
color: #D3D1D5;
padding: 25px;
margin-bottom: 80px;
}
#container-main .header-main {
margin-bottom: 30px;
font-size: 0;
}
#container-main .header-main h1 {
margin-bottom: 0;
font-size: 28px;
display: inline-block;
position: relative;
}
#container-main .header-main h1 i {
width: 30px;
margin-right: 10px;
}
#container-main .header-main h1 .label-node-ip {
position: absolute;
right: -95px;
top: 0px;
font-size: 12px;
color: #FFF;
background-color: #89B832;
border-radius: 3px;
padding: 2px;
}
#container-main .header-main .sub-info-main {
margin-top: 15px;
margin-left: 40px;
}
#search-main {
position: absolute;
top: 60px;
left: 0;
width: 100%;
height: calc(100% - 60px);
background: -webkit-linear-gradient(rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0)); /* Safari 5.1 - 6.0 */
background: -o-linear-gradient(rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0)); /* Opera 11.1 - 12.0 */
background: -moz-linear-gradient(rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0)); /* Firefox 3.6 - 15 */
background: linear-gradient(rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0));
}
#search-main form {
position: relative;
z-index: 10001;
}
#search-main .blank-hidden {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#search-main md-autocomplete {
margin: 50px;
height: 100px;
background-color: transparent;
}
#search-main md-autocomplete md-autocomplete-wrap {
height: 100px;
}
#search-main md-autocomplete input[type='search'] {
height: 100px;
font-size: 80px;
color: #FFF;
font-weight: bold;
}
.md-autocomplete-suggestions-container .item-metadata i, .md-autocomplete-suggestions-container .item-title i {
font-style: normal;
margin-left: 5px;
color: #3F4855;
}
.md-autocomplete-suggestions-container .item-metadata span, .md-autocomplete-suggestions-container .item-title span {
color: #D3D1D5;
margin-left: 5px;
margin-right: 20px;
}
#serviceLog {
max-height: 1000px;
overflow-y: scroll;
}
/* 表单样式 */
label {
color: #D3D1D5;
}
label .required {
margin-left: 5px;
color: #E76C4C;
}
label small {
margin-left: 10px;
color: #93929D;
}
input[type='text'] {
background-color: rgba(63, 72, 85, 0.3);
border: 1px solid rgba(63, 72, 85, 1);
width: 580px;
height: 40px;
color: #D3D1D5;
font-size: 16px;
padding-left: 15px;
padding-right: 15px;
}
input[type='number'] {
background-color: rgba(63, 72, 85, 0.3);
border: 1px solid rgba(63, 72, 85, 1);
width: 100px;
height: 40px;
color: #D3D1D5;
font-size: 16px;
padding-left: 15px;
padding-right: 5px;
}
input[type='password'] {
background-color: rgba(63, 72, 85, 0.3);
border: 1px solid rgba(63, 72, 85, 1);
width: 580px;
height: 40px;
color: #D3D1D5;
font-size: 16px;
padding-left: 15px;
padding-right: 15px;
}
input:focus, textarea:focus {
background-color: #3F4855;
border: 1px solid #00bdda;
box-shadow: none;
outline: none;
}
textarea {
background-color: rgba(63, 72, 85, 0.3);
border: 1px solid rgba(63, 72, 85, 1);
width: 580px;
height: 120px;
color: #D3D1D5;
font-size: 14px;
padding-left: 15px;
padding-right: 15px;
padding-top: 10px;
padding-bottom: 10px;
line-height: 1.5;
}
md-select {
margin: 0;
width: 580px;
}
.md-select-value {
height: 38px;
background-color: #3F4855;
border: 1px solid #666C71 !important;
padding: 0 0 0 15px;
}
.md-select-value .md-text {
color: #D3D1D5;
}
md-select:focus:not([disabled]) .md-select-value {
border-bottom-width: 1px;
}
.md-select-value .md-select-icon:after {
color: #666C71;
top: 0;
}
md-radio-button {
margin-bottom: 0;
display: inline-block;
}
md-radio-group.layout-row md-radio-button:last-of-type {
margin-right: 15px;
}
md-radio-group.layout-row md-radio-button {
margin-right: 15px;
}
md-radio-group.md-default-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-default-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-default-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-default-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-group:not([disabled]).md-primary.md-checked .md-off, md-radio-button.md-default-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-button:not([disabled]) .md-primary .md-checked .md-off, md-radio-button.md-default-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-button:not([disabled]) .md-primary.md-checked .md-off, md-radio-button.md-default-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-button:not([disabled]).md-primary .md-checked .md-off, md-radio-button.md-default-theme:not([disabled]).md-primary.md-checked .md-off, md-radio-button:not([disabled]).md-primary.md-checked .md-off {
color: #00bdda;
border-color: #00bdda;
}
md-radio-group.md-default-theme:not([disabled]) .md-primary .md-on, md-radio-group:not([disabled]) .md-primary .md-on, md-radio-group.md-default-theme:not([disabled]).md-primary .md-on, md-radio-group:not([disabled]).md-primary .md-on, md-radio-button.md-default-theme:not([disabled]) .md-primary .md-on, md-radio-button:not([disabled]) .md-primary .md-on, md-radio-button.md-default-theme:not([disabled]).md-primary .md-on, md-radio-button:not([disabled]).md-primary .md-on {
color: #00bdda;
background-color: #00bdda;
}
md-radio-group.md-default-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-default-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-default-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-default-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-group:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button.md-default-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-button.md-default-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-button.md-default-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-button.md-default-theme:not([disabled]).md-primary.md-checked .md-ink-ripple, md-radio-button:not([disabled]).md-primary.md-checked .md-ink-ripple {
color: #00bdda;
}
md-radio-button .md-off {
border-color: #D3D1D5;
}
.md-primary.md-checked .md-label {
color: #00bdda;
}
md-radio-button .md-label {
color: #D3D1D5;
}
input::-webkit-input-placeholder {
color: #5A616E; /* WebKit browsers */
}
input:-moz-placeholder {
color: #5A616E; /* Mozilla Firefox 4 to 18 */
}
input::-moz-placeholder {
color: #5A616E; /* Mozilla Firefox 19+ */
}
input:-ms-input-placeholder {
color: #5A616E; /* Internet Explorer 10+ */
}
.form-main .form-group {
margin-bottom: 20px;
}
.form-main .form-group:last-of-type {
margin-bottom: 50px;
}
.form-main .help-text {
margin: 0;
font-size: 12px;
}
.form-main label {
margin-bottom: 5px;
display: inline-block;
}
.form-main .form-control {
margin-bottom: 10px;
min-height: 40px;
}
.form-main .form-control:last-of-type {
margin-bottom: 10px;
}
.form-main .sub-group .sub-label {
margin-right: 15px;
}
.form-main .sub-group input[type='text'], .form-main .sub-group md-select {
width: 100%;
margin-right: 15px;
}
.form-main .sub-group input[type='number'] {
margin-right: 15px;
}
.form-main .sub-group input[type='text']:last-of-type {
margin-right: 0px;
}
.form-main .sub-button {
margin: 5px 0 15px 0;
}
.form-main .fold-line {
height: 20px;
margin-bottom: 25px;
background: url(../pics/bg-line-gray.png) repeat-x 0 8px;
}
.form-main .fold-line a i {
margin-right: 10px;
width: 12px;
}
.form-main .fold-line a {
background-color: #252D31;
color: #93929D;
display: inline-block;
padding-right: 25px;
}
.form-main .fold-line a:hover {
text-decoration: none;
}
/* 按钮样式 */
.md-button {
margin: 0 25px 0 0;
border-radius: 3px;
min-height: 40px;
line-height: 40px;
min-width: 110px;
box-shadow: none !important;
border: none;
font-size: 16px;
text-transform: none;
font-weight: bold;
}
.md-button:hover {
color: #000;
}
.md-button:last-of-type {
margin: 0;
}
.md-button.md-raised {
background-color: #E8EAEC;
color: #475263;
}
a.md-button.md-default-theme.md-primary, a.md-button.md-primary, .md-button.md-default-theme.md-primary, .md-button.md-primary {
color: #00bdda;
}
a.md-button.md-default-theme.md-success, a.md-button.md-success, .md-button.md-default-theme.md-success, .md-button.md-success {
color: #E8EAEC;
}
a.md-button.md-default-theme[disabled], a.md-button[disabled], a.md-button.md-default-theme.md-raised[disabled], a.md-button.md-raised[disabled], a.md-button.md-default-theme.md-fab[disabled], a.md-button.md-fab[disabled], a.md-button.md-default-theme.md-accent[disabled], a.md-button.md-accent[disabled], a.md-button.md-default-theme.md-warn[disabled], a.md-button.md-warn[disabled], .md-button.md-default-theme[disabled], .md-button[disabled], .md-button.md-default-theme.md-raised[disabled], .md-button.md-raised[disabled], .md-button.md-default-theme.md-fab[disabled], .md-button.md-fab[disabled], .md-button.md-default-theme.md-accent[disabled], .md-button.md-accent[disabled], .md-button.md-default-theme.md-warn[disabled], .md-button.md-warn[disabled] {
color: #AFB6BC !important;
background-color: #C7CACF;
}
a.md-button.md-default-theme.md-primary.md-raised, a.md-button.md-primary.md-raised, a.md-button.md-default-theme.md-primary.md-fab, a.md-button.md-primary.md-fab, .md-button.md-default-theme.md-primary.md-raised, .md-button.md-primary.md-raised, .md-button.md-default-theme.md-primary.md-fab, .md-button.md-primary.md-fab {
background-color: #00bdda;
color: #E8EAEC;
}
.md-button.md-primary:hover {
background-color: #46ACC6 !important;
}
.md-button.md-success {
background-color: #78AD26;
}
.md-button.md-success:hover {
background-color: #86B53A !important;
}
.md-button.md-small {
height: 24px;
min-height: 24px;
line-height: 24px;
min-width: 110px;
font-size: 14px;
font-weight: 700;
padding: 0 12px;
}
.md-button[disabled], .md-button[disabled]:hover {
background-color: #C7CACF !important;
color: #AFB6BC !important;
}
.md-primary.md-ink-ripple:hover {
color: #FFF !important;
}
/* switch 样式 */
md-switch {
display: inline-flex;
}
md-switch.md-default-theme.md-checked.md-primary .md-thumb, md-switch.md-checked.md-primary .md-thumb {
background-color: #00bdda;
}
md-switch.md-default-theme.md-checked.md-primary .md-ink-ripple, md-switch.md-checked.md-primary .md-ink-ripple {
color: #00bdda;
}
md-switch.md-default-theme.md-checked.md-primary .md-bar, md-switch.md-checked.md-primary .md-bar {
background-color: rgba(31, 162, 191, 0.5);
}
/* tab 样式 */
md-tabs {
margin-bottom: 25px;
}
md-tabs-canvas {
height: 40px;
margin-bottom: -1px;
}
md-tabs-content-wrapper {
margin-top: 25px;
}
md-pagination-wrapper {
height: 40px;
}
md-tabs md-tabs-wrapper {
border-color: #93929D;
}
md-tabs .md-tab {
height: 40px;
line-height: 40px;
padding: 0 10px;
min-width: 180px;
border-top: 1px solid #93929D;
border-left: 1px solid #93929D;
border-bottom: 1px solid #93929D;
color: #93929D;
font-size: 16px;
text-transform: none;
}
md-tabs .md-tab:last-of-type {
border-right: 1px solid #93929D;
}
md-tabs.md-default-theme .md-tab.md-active, md-tabs .md-tab.md-active, md-tabs.md-default-theme .md-tab.md-active md-icon, md-tabs .md-tab.md-active md-icon, md-tabs.md-default-theme .md-tab.md-focused, md-tabs .md-tab.md-focused, md-tabs.md-default-theme .md-tab.md-focused md-icon, md-tabs .md-tab.md-focused md-icon {
color: #FFF; /*#00bdda;*/
border-bottom: 1px solid #252D31;
font-weight: bold;
}
md-tabs md-ink-bar {
color: #00bdda;
background: #00bdda;
}
md-ink-bar {
top: 0;
}
md-content {
background-color: transparent;
padding: 0;
color: #354052;
}
md-select-menu md-content {
background-color: #FFF;
}
.info-list {
margin-bottom: 5px;
font-size: 0;
}
.info-list:last-of-type {
margin-bottom: 0;
}
.info-list dt, .info-list dd {
display: inline-block;
font-size: 14px;
}
.info-list dt {
color: #93929D;
margin-right: 5px;
}
.info-list dd {
color: #D3D1D5;
margin-right: 25px;
}
.info-list-detail {
border-bottom: 1px solid #93929D;
margin-bottom: 25px;
padding-bottom: 25px;
color: #93929D;
}
.info-list-detail h2 {
color: #D3D1D5;
font-size: 20px;
}
.info-list-detail > div > div {
min-height: 20px;
margin-bottom: 20px;
}
.info-list-detail h5 {
color: #93929D;
font-size: 14px;
display: inline-block;
position: relative;
}
.info-list-detail h5.help-info i {
position: absolute;
left: -10px;
top: 4px;
font-size: 8px;
color: #B5D17C;
}
.info-list-detail h5 small {
color: #5A616E;
margin-left: 10px;
}
.info-list-detail p {
color: #D3D1D5;
margin: 0;
word-wrap: break-word;
word-break: normal;
}
.info-list-detail table {
width: 100%;
}
.info-list-detail th, .info-list-detail td {
text-align: left;
min-height: 40px;
margin: 0;
padding: 13px 0;
min-width: 100px;
}
.info-list-detail th {
color: #93929D;
border-bottom: 1px solid #5A616E;
padding-top: 0;
font-size: 12px;
font-weight: bold;
white-space: nowrap;
}
.info-list-detail th small {
color: #5A616E;
margin-left: 10px;
}
.info-list-detail td {
color: #D3D1D5;
padding-right: 24px;
}
.info-list-detail tr:hover td {
background-color: #5A616E;
}
table td li {
color: #93929D;
margin-bottom: 5px;
}
table td li:last-of-type {
margin-bottom: 0;
}
/* table 样式 */
table.md-table thead.md-head > tr.md-row {
min-height: 40px;
height: 40px;
}
table.md-table tbody.md-body > tr.md-row, table.md-table tfoot.md-foot > tr.md-row {
min-height: 40px;
height: 40px;
}
table.md-table:not(.md-row-select) td.md-cell:first-child,
table.md-table:not(.md-row-select) th.md-column:first-child,
table.md-table:not(.md-row-select) td.md-cell:nth-child(n+2):nth-last-child(n+2),
table.md-table:not(.md-row-select) th.md-column:nth-child(n+2):nth-last-child(n+2) {
padding-left: 6px;
padding-right: 18px;
}
table.md-table td.md-cell.md-numeric, table.md-table th.md-column.md-numeric {
text-align: left;
}
table.md-table th.md-column {
color: #5A616E;
border-bottom: 2px solid rgba(63, 72, 85, 0.5);
}
table.md-table td.md-cell {
font-size: 14px;
color: #93929D;
border-bottom: 1px solid rgba(63, 72, 85, 0.5);
border-top: 0;
padding-top: 5px !important;
padding-bottom: 5px !important;
}
table.md-table tr:hover td.md-cell {
background-color: rgba(63, 72, 85, 0.5);
}
table.md-table td.md-cell p {
margin: 0;
word-break: break-all;
}
table.md-table th.md-column a.help-info {
position: relative;
display: inline-block;
}
table.md-table th.md-column a.help-info i {
position: absolute;
left: -10px;
top: 4px;
font-size: 8px;
color: #B5D17C;
}
table.md-table td.md-cell .md-icon-button {
padding: 5px;
height: 30px;
min-height: 30px;
width: 30px;
line-height: 14px;
}
.chart-panel {
margin-right: 25px;
margin-bottom: 25px;
background: #101515;
padding: 10px;
}
.log-panel {
background: #101515;
padding: 10px;
color: #d3d1d5;
}
.log-panel .no-info {
padding-top: 100px;
padding-bottom: 100px;
font-size: 36px;
text-align: center;
}
.app-panel {
background-color: rgba(211, 209, 213, 0.1);
padding: 15px 15px 30px 15px;
margin-right: 25px;
margin-bottom: 25px;
color: #93929D;
position: relative;
border-radius: 3px;
}
.app-panel:hover {
background-color: rgba(211, 209, 213, 0.15);
}
.app-panel .time {
right: 10px;
bottom: 5px;
font-size: 11px;
position: absolute;
color: rgba(255,255,255,0.2);
}
.app-panel h1 {
color: #252D31;
margin-bottom: 15px;
font-size: 24px;
}
.app-panel table {
width: 100%;
}
.app-panel td, .app-panel th {
text-align: left;
padding-bottom: 0;
padding-right: 15px;
vertical-align: top;
}
.app-panel td i {
font-size: 12px;
margin-right: 5px;
}
.app-panel a {
color: #FFF;
padding: 0 3px;
border-radius: 3px;
text-align: center;
cursor: pointer;
}
.app-panel a:hover {
color: #FFF;
text-decoration: none;
background-color: rgba(211, 209, 213, 0.25);
}
.app-panel td a i {
margin: 0;
}
.app-panel.create-stack {
text-align: center;
border: 2px solid rgba(211, 209, 213, 0.1);
background-color: transparent;
padding: 15px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
outline: none;
}
.app-panel.create-stack:hover {
border: 2px solid rgba(211, 209, 213, 0.15);
background-color: rgba(211, 209, 213, 0.05);
color: #FFF;
}
.app-panel.create-stack i {
/*color: #00bdda;*/
font-size: 30px;
margin-bottom: 5px;
}
article {
color: #D3D1D5;
max-width: 600px;
font-size: 14px;
}
article p {
line-height: 1.5;
margin: 0 0 2em 0;
}
article code {
margin-bottom: 2em;
}
article ol li {
list-style: decimal;
margin-bottom: 2em;
line-height: 1.5;
}
article ol li code {
display: inline;
line-height: 1;
padding: 0 1px;
margin-left: 6px;
margin-right: 6px;
}
md-dialog md-dialog-content {
padding: 25px;
max-width: 800px;
min-width: 300px;
}
md-dialog md-toolbar.md-default-theme:not(.md-menu-toolbar), md-dialog md-toolbar:not(.md-menu-toolbar) {
background-color: #00bdda !important;
}
md-dialog md-dialog-content input[type="number"], md-dialog md-dialog-content input[type="text"] {
width: auto;
background-color: rgba(63, 72, 85, 0.1);
color: #333;
}
md-dialog md-dialog-content label {
color: #354052;
}
md-dialog .md-actions .md-button, md-dialog md-dialog-actions .md-button {
margin-right: 20px !important;
}
md-dialog .md-actions .md-button:last-of-type, md-dialog md-dialog-actions .md-button:last-of-type {
margin-right: 0 !important;
}
md-card.md-default-theme .md-card-image, md-card .md-card-image {
width: 100%;
}
/* D3样式 */
/* 信息图标题 */
nvd3 .title {
font-size: 18px;
color: #D3D1D5;
}
/* 纵轴线 */
.nvd3 .nv-x.nv-axis .tick line {
display: none;
}
/* 横轴线 */
.nvd3 .nv-y.nv-axis .tick line {
stroke: #252D31;
}
/* 纵轴文字 */
.nvd3 .nv-x.nv-axis .tick text {
fill: #93929D;
font-size: 11px;
}
/* 横轴文字 */
.nvd3 .nv-y.nv-axis .tick text {
fill: #93929D;
font-size: 11px;
}
/* 横轴极值文字 */
.nvd3 .nv-axis .nv-axisMaxMin text {
fill: #93929D;
font-size: 11px;
}
.nvd3 .nv-axis path {
display: none;
}
/* 标签 */
nvd3 .nv-axislabel {
display: none;
}
/* legend文字颜色 */
.nv-series .nv-legend-text {
fill: #93929D;
font-size: 11px;
}
/* licence */
.licence-alert {
background-color: #E76C4C;
color: #D3D1D5;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 18px;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
font-weight: bold;
}
.licence-alert a {
color: #FFF;
text-decoration: underline;
}
.licence-alert a:hover {
text-decoration: none;
}
.feedback-btn, .feedback-btn:visited {
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
color: rgba(0, 189, 218, 0.8);
display: block;
font-size: 24px;
position: absolute;
left: 15px;
bottom: 60px;
}
.feedback-btn:hover {
color: rgba(0, 189, 218, 1);
}
md-card {
margin: 0 25px 25px 0;
}
md-dialog md-card {
margin: 0;
text-align: center;
cursor: pointer;
}
md-dialog md-card:hover {
background-color: #00bdda;
color: #FFF;
}
md-dialog md-card i {
font-size: 30px !important;
margin-bottom: 15px;
}
.md-button.md-default-theme.md-primary.md-raised.md-focused:not([disabled]), .md-button.md-primary.md-raised.md-focused:not([disabled]), .md-button.md-default-theme.md-primary.md-fab.md-focused:not([disabled]), .md-button.md-primary.md-fab.md-focused:not([disabled]) {
background: #00bdda;
}
md-menu-item > a.md-button {
color: rgba(0,0,0,0.87);
}
.ace_editor {
height : 600px;
width: 80%;
}
| 20.898227
| 1,264
| 0.638148
|
38667fba33633dcaddfb8e589f6d20e011c91645
| 9,532
|
php
|
PHP
|
src/ThreadAndMirror/ProductsBundle/Parser/MatchesParser.php
|
ScragLabs/ThreadAndMirror
|
85a8733d1a3cc81a3c88e3a04bab3f67e65afd6a
|
[
"MIT"
] | 2
|
2016-03-15T11:18:33.000Z
|
2019-01-20T21:30:48.000Z
|
src/ThreadAndMirror/ProductsBundle/Parser/MatchesParser.php
|
ScragLabs/ThreadAndMirror
|
85a8733d1a3cc81a3c88e3a04bab3f67e65afd6a
|
[
"MIT"
] | null | null | null |
src/ThreadAndMirror/ProductsBundle/Parser/MatchesParser.php
|
ScragLabs/ThreadAndMirror
|
85a8733d1a3cc81a3c88e3a04bab3f67e65afd6a
|
[
"MIT"
] | null | null | null |
<?php
namespace ThreadAndMirror\ProductsBundle\Parser;
use ThreadAndMirror\ProductsBundle\Parser\BaseParser,
Symfony\Component\DomCrawler\Crawler;
class MatchesParser extends BaseParser
{
protected $shop = 3;
protected $selector = 'div.products > div.product';
protected $urlSale = 'http://www.matchesfashion.com/womens/style-steals?pagesize=60&pagenumber={page}';
protected $urlLatest = 'http://www.matchesfashion.com/womens/justin/last-7-days?pagesize=60&pagenumber={page}';
/**
* Check the product page exists at all
*/
protected function getExpired()
{
try
{
$error = $this->services->getCrawler()->filter('.empty-lines')->text();
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the core details of the product, such as the name, url, pid etc. (Whilst also checking if the product page exists)
*/
protected function getDetails()
{
try
{
// strip the pid from the product url
$this->product->setUrl($this->url);
$pid = explode('/product/', $this->url);
$this->product->setPid(end($pid));
$this->product->setName(ucwords($this->services->getCrawler()->filter('.images img.product-image')->eq(0)->attr('alt')));
// the big images are in a random order, so find the main one
$images = $this->services->getCrawler()->filter('a.zoom img')->each(function ($node, $i) {
// get the image url from the node
$subcrawler = new Crawler($node);
return $subcrawler->attr('src');
});
foreach ($images as $image) {
if (stristr($image, '_1_')) {
$this->product->setImage($image);
}
}
// only update the thumbnail if we don't have one already
if (!$this->product->getThumbnail()) {
$thumbnail = $this->getThumbnailFromImage($this->product->getImage());
$this->product->setThumbnail($thumbnail);
}
// try and build a description for the page
$description = $this->services->getCrawler()->filter('.v-panels .scroll p')->eq(0)->text();
$this->product->setDescription($description);
// confirm the parsing as successfully
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the stock availability of the product
*/
protected function getAvailability()
{
try
{
$message = $this->services->getCrawler()->filter('span.soldout')->text();
if ($message) {
$this->product->setAvailable(false);
return false;
} else {
$this->product->setAvailable(true);
return true;
}
}
catch (\Exception $e)
{
// if the out of stock message isn't there then it's in stock
$this->product->setAvailable(true);
return true;
}
}
/**
* Get the sale prices for the product
*/
protected function getSalePrices()
{
// try parsing the sale prices, otherwise parse as a normal if there are no sale prices nodes
try
{
$was = explode('£', $this->services->getCrawler()->filter('.pricing')->eq(0)->filter('div.price > span.full')->text());
$was = str_replace(',', '', end($was));
$now = explode('£', $this->services->getCrawler()->filter('.pricing')->eq(0)->filter('div.price > span.sale')->text());
$now = str_replace(',', '', end($now));
$this->product->setNow($now);
$this->product->setWas($was);
$this->product->setSale($this->timestamp);
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the normal price for the product
*/
protected function getPrices()
{
try
{
$now = str_replace(',', '', $this->services->getCrawler()->filter('.pricing')->eq(0)->filter('div.price')->text());
$now = preg_replace('/[^0-9,.]/', '', $now);
$this->product->setNow($now);
$this->product->setWas(0);
$this->product->setSale(null);
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the sizes of the product
*/
protected function getSizes()
{
try
{
// work out all available sizes if we don't have them already
if (!count($this->product->getAvailableSizes())) {
$available = $this->services->getCrawler()->filter('.buy select.size')->eq(0)->filter('option')->each(function ($node, $i) {
// create a new crawler for the size dropdown
$item = new Crawler($node);
$size = explode('-', $item->text());
$size = reset($size);
return $size;
});
// remove the label field
foreach ($available as $key => $size) {
if ($size == 'SELECT SIZE') {
unset($available[$key]);
}
}
$this->product->setAvailableSizes($available);
}
// find only the sizes that are in stock
$stocked = $this->services->getCrawler()->filter('.buy select.size')->eq(0)->filter('option')->each(function ($node, $i) {
// create a new crawler for the size dropdown
$item = new Crawler($node);
return $item->text();
});
// remove the label field and those out of stock
foreach ($stocked as $key => $size) {
if (stristr($size, '-') || $size == 'SELECT SIZE') {
unset($stocked[$key]);
}
}
$this->product->setStockedSizes($stocked);
// mark as OOS if there are no sizes left
if ($this->product->getAvailableSizes() && !$stocked) {
$this->product->setAvailable(false);
} else {
$this->product->setAvailable(true);
}
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the style recommendations for the product
*/
protected function getStyleWith()
{
try
{
// find only the sizes that are in stock
$styleWith = $this->services->getCrawler()->filter('#styled-with-tab-content-container .product')->each(function ($node, $i) {
// create a new crawler for the size dropdown
$item = new Crawler($node);
$product = $item->attr('data-wpc');
return $product;
});
$styleWith = array_filter($styleWith);
// convert the pids into products
foreach ($styleWith as $key => $pid) {
// store the pid if it exists, or crawl if it doesn't
$product = $this->services->getManager()->getRepository('ThreadAndMirrorProductsBundle:Product')->findOneByPid($pid);
if (!$product) {
$product = $this->services->getManager()->getRepository('ThreadAndMirrorProductsBundle:Product')->getProductFromUrl('http://www.matchesfashion.com/product/'.$pid);
}
if (is_object($product)) {
$styleWith[$key] = $product->getId();
} else {
unset($styleWith[$key]);
}
}
$this->product->setStyleWith($styleWith);
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Parse the amount of pages
*/
protected function getPages()
{
try
{
$pages = $this->services->getCrawler()->filter('div.pager > a');
$pages = count($pages);
$this->pages = $this->services->getCrawler()->filter('div.pager > a')->eq($pages-2)->text();
}
catch (\InvalidArgumentException $e)
{
// if the page node doesn't exist then there's only one page
$this->pages = 1;
}
return $this->pages;
}
/**
* Get the core details of the product if it's being parsed from a list (eg. sales or latest additions)
*/
protected function getDetailsList($product, $subcrawler)
{
try
{
$product->setUrl('http://www.matchesfashion.com'.$subcrawler->filter('div.product > a')->eq(2)->attr('href'));
$product->setName(ucwords($subcrawler->filter('h4.designer')->text().' '.$subcrawler->filter('div.description')->text()));
$product->setThumbnail($subcrawler->filter('img.product-image')->attr('src'));
$product->setImage($product->getThumbnail());
// strip the pid from the product url
$pid = explode('/', $product->getUrl());
$product->setPid(end($pid));
// confirm the parsing as successful
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the sale prices for the product if it's being parsed from a list
*/
protected function getSalePricesList($product, $subcrawler)
{
// try parsing the sale prices, otherwise parse as a normal if there are no sale prices nodes
try
{
$was = explode('£', $subcrawler->filter('div.details > div.price > span.full')->text());
$was = str_replace(',', '', end($was));
$now = explode('£', $subcrawler->filter('div.details > div.price > span.sale')->text());
$now = str_replace(',', '', end($now));
$product->setNow($now);
$product->setWas($was);
$product->setSale($this->timestamp);
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* Get the normal price for the product if it's being parsed from a list
*/
protected function getPricesList($product, $subcrawler)
{
try
{
$now = str_replace(',', '', $subcrawler->filter('div.details > div.price')->text());
$now = preg_replace('/[^0-9,.]/', '', $now);
$product->setNow($now);
$product->setWas(0);
$product->setSale(null);
return true;
}
catch (\Exception $e)
{
return false;
}
}
/**
* calculate the thumbnail image url using the image url
*/
public function getThumbnailFromImage($image)
{
$thumbnail = str_replace('large', 'medium', $image);
$thumbnail = str_replace('zoom', 'medium', $thumbnail);
return $thumbnail;
}
}
| 26.186813
| 169
| 0.597776
|
a37e7d518841de44bcfef115bb4231a6128b6e7d
| 4,582
|
java
|
Java
|
platforms/android/app-components/alexa-auto-navigation/src/test/java/com/amazon/alexa/auto/navigation/receiver/LocalSearchTemplateRuntimeReceiverTest.java
|
krishnaprasad/alexa-auto-sdk
|
2fb8d28a9c4138111f9b19c2527478562acc4643
|
[
"Apache-2.0"
] | null | null | null |
platforms/android/app-components/alexa-auto-navigation/src/test/java/com/amazon/alexa/auto/navigation/receiver/LocalSearchTemplateRuntimeReceiverTest.java
|
krishnaprasad/alexa-auto-sdk
|
2fb8d28a9c4138111f9b19c2527478562acc4643
|
[
"Apache-2.0"
] | null | null | null |
platforms/android/app-components/alexa-auto-navigation/src/test/java/com/amazon/alexa/auto/navigation/receiver/LocalSearchTemplateRuntimeReceiverTest.java
|
krishnaprasad/alexa-auto-sdk
|
2fb8d28a9c4138111f9b19c2527478562acc4643
|
[
"Apache-2.0"
] | null | null | null |
package com.amazon.alexa.auto.navigation.receiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.amazon.aacsconstants.Action;
import com.amazon.aacsconstants.Topic;
import com.amazon.alexa.auto.aacs.common.AACSMessage;
import com.amazon.alexa.auto.navigation.handlers.LocalSearchDirectiveHandler;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.robolectric.RobolectricTestRunner;
import java.util.Optional;
@RunWith(RobolectricTestRunner.class)
public class LocalSearchTemplateRuntimeReceiverTest {
private LocalSearchTemplateRuntimeReceiver mClassUnderTest;
private LocalSearchDirectiveHandler mLocalSearchDirectiveHandler;
@Before
public void setup() {
mClassUnderTest = new LocalSearchTemplateRuntimeReceiver();
mLocalSearchDirectiveHandler = Mockito.mock(LocalSearchDirectiveHandler.class);
mClassUnderTest.mLocalSearchDirectiveHandler = mLocalSearchDirectiveHandler;
}
@Test
public void renderLocalSearchListTemplateTest() {
Intent renderTemplateIntent =
generateIntent("aacs/RenderTemplateLocalSearchList.json", "com.amazon.aacs.aasb.RenderTemplate");
mClassUnderTest.onReceive(Mockito.mock(Context.class), renderTemplateIntent);
ArgumentCaptor<AACSMessage> aacsMessageArgumentCaptor = ArgumentCaptor.forClass(AACSMessage.class);
Mockito.verify(mLocalSearchDirectiveHandler, Mockito.times(1))
.renderLocalSearchListTemplate(aacsMessageArgumentCaptor.capture());
AACSMessage aacsMessage = aacsMessageArgumentCaptor.getValue();
Assert.assertEquals(aacsMessage.topic, Topic.TEMPLATE_RUNTIME);
Assert.assertEquals(aacsMessage.action, Action.TemplateRuntime.RENDER_TEMPLATE);
Optional<String> sampleAACSNavigationMessage =
TestResourceFileReader.readFileContent("aacs/RenderTemplateLocalSearchList.json");
try {
JSONObject sampleMessageJsonObject = new JSONObject(sampleAACSNavigationMessage.get());
sampleMessageJsonObject.get("payload").equals(aacsMessage.payload);
} catch (JSONException e) {
throw new IllegalArgumentException();
}
}
@Test
public void renderLocalSearchDetailTemplateTest() {
Intent renderTemplateIntent =
generateIntent("aacs/RenderTemplateLocalSearchDetail.json", "com.amazon.aacs.aasb.RenderTemplate");
mClassUnderTest.onReceive(Mockito.mock(Context.class), renderTemplateIntent);
ArgumentCaptor<AACSMessage> aacsMessageArgumentCaptor = ArgumentCaptor.forClass(AACSMessage.class);
Mockito.verify(mLocalSearchDirectiveHandler, Mockito.times(1))
.renderLocalSearchDetailTemplate(aacsMessageArgumentCaptor.capture());
AACSMessage aacsMessage = aacsMessageArgumentCaptor.getValue();
Assert.assertEquals(aacsMessage.topic, Topic.TEMPLATE_RUNTIME);
Assert.assertEquals(aacsMessage.action, Action.TemplateRuntime.RENDER_TEMPLATE);
Optional<String> sampleAACSNavigationMessage =
TestResourceFileReader.readFileContent("aacs/RenderTemplateLocalSearchDetail.json");
try {
JSONObject sampleMessageJsonObject = new JSONObject(sampleAACSNavigationMessage.get());
sampleMessageJsonObject.get("payload").equals(aacsMessage.payload);
} catch (JSONException e) {
throw new IllegalArgumentException();
}
}
@Test
public void clearTemplateTest() {
Intent clearTemplateIntent = generateIntent("aacs/ClearTemplate.json", "com.amazon.aacs.aasb.ClearTemplate");
mClassUnderTest.onReceive(Mockito.mock(Context.class), clearTemplateIntent);
ArgumentCaptor<AACSMessage> aacsMessageArgumentCaptor = ArgumentCaptor.forClass(AACSMessage.class);
Mockito.verify(mLocalSearchDirectiveHandler, Mockito.times(1)).clearTemplate();
}
private Intent generateIntent(String resPath, String action) {
Intent intent = new Intent(action);
Optional<String> sampleAACSNavigationMessage = TestResourceFileReader.readFileContent(resPath);
Bundle sampleListeningPayload = new Bundle();
sampleListeningPayload.putString("message", sampleAACSNavigationMessage.get());
intent.putExtra("payload", sampleListeningPayload);
return intent;
}
}
| 47.237113
| 117
| 0.753601
|
7699e0c30c731708bb059fe633eb23f3bf78638a
| 7,139
|
dart
|
Dart
|
lib/src/rest_clients/rest_client.dart
|
pcrady/coinbase_exchange
|
b09835abdb7423fe097b77789834280d5f32b532
|
[
"MIT"
] | 1
|
2021-11-06T16:00:17.000Z
|
2021-11-06T16:00:17.000Z
|
lib/src/rest_clients/rest_client.dart
|
pcrady/coinbase_exchange
|
b09835abdb7423fe097b77789834280d5f32b532
|
[
"MIT"
] | 4
|
2021-11-05T02:48:15.000Z
|
2022-01-14T13:25:06.000Z
|
lib/src/rest_clients/rest_client.dart
|
pcrady/coinbase_exchange
|
b09835abdb7423fe097b77789834280d5f32b532
|
[
"MIT"
] | null | null | null |
import 'dart:convert';
import 'package:crypto/crypto.dart';
import 'package:http/http.dart' as http;
/// An abstract class for clients which return http.Response objects
abstract class RestClient {
static const String defaultProductId = 'BTC-USD';
static const String defaultCurrencyId = 'BTC';
static const String apiAuthority = 'api.exchange.coinbase.com';
static const String sandboxApiAuthority =
'api-public.sandbox.exchange.coinbase.com';
final bool sandbox;
String? apiKey;
String? secretKey;
String? passphrase;
RestClient({
this.sandbox = false,
this.apiKey,
this.secretKey,
this.passphrase,
});
String get _authority => sandbox ? sandboxApiAuthority : apiAuthority;
Map<String, dynamic> createPaginationQueryParameters({
int? before,
int? after,
int? limit,
}) {
Map<String, dynamic> queryParameters = {};
if (before != null) queryParameters['before'] = before.toString();
if (after != null) queryParameters['after'] = after.toString();
if (limit != null) queryParameters['limit'] = limit.toString();
return queryParameters;
}
int? getBeforeHeader(http.Response response) {
String? beforeString = response.headers['cb-before'];
return beforeString == null ? null : int.parse(beforeString);
}
int? getAfterHeader(http.Response response) {
String? afterString = response.headers['cb-after'];
return afterString == null ? null : int.parse(afterString);
}
String _calculateSignature({
required String method,
required String requestPath,
required String timestamp,
Map<String, dynamic>? body,
}) {
method = method.toUpperCase();
String preHashMessage = timestamp + method + requestPath;
if (body != null) preHashMessage += jsonEncode(body);
List<int> preHashMessageByes = utf8.encode(preHashMessage);
List<int> hmacKey = base64.decode(secretKey ?? '');
Hmac hmac = Hmac(sha256, hmacKey);
Digest digest = hmac.convert(preHashMessageByes);
return base64.encode(digest.bytes);
}
// Note request path includes query parameters
Map<String, String> _addHeaders({
String? method,
String? requestPath,
Map<String, dynamic>? body,
Map<String, String>? additionalHeaders,
}) {
Map<String, String> headers = {
'User-Agent': 'coinbase-pro-node-client',
'Accept': 'application/json',
'Content-Type': 'application/json',
...?additionalHeaders,
};
if (apiKey == null ||
secretKey == null ||
passphrase == null ||
method == null ||
requestPath == null) return headers;
String timestamp =
(DateTime.now().millisecondsSinceEpoch * 0.001).toString();
String signature = _calculateSignature(
method: method,
requestPath: requestPath,
body: body,
timestamp: timestamp,
);
headers = {
...headers,
'CB-ACCESS-KEY': apiKey ?? '',
'CB-ACCESS-PASSPHRASE': passphrase ?? '',
'CB-ACCESS-TIMESTAMP': timestamp,
'CB-ACCESS-SIGN': signature,
};
return headers;
}
// queryParameters must be either String or Iterable<String> types.
Map<String, dynamic> _convertQueryParametersTypes(
Map<String, dynamic> queryParameters,
) {
return queryParameters.map((key, value) {
if (value is! String || value is! Iterable<String>) {
if (value is! Iterable) {
return MapEntry(
key,
value is DateTime ? value.toIso8601String() : value.toString(),
);
} else {
return MapEntry(
key,
value.map((element) => element is DateTime
? element.toIso8601String()
: element.toString()),
);
}
}
return MapEntry(key, value);
});
}
/// A GET method for coinbase exchange which automatically manages signing
/// for authorization.
Future<http.Response> get({
required String path,
Map<String, String>? headers,
Map<String, dynamic>? queryParameters,
}) async {
if (queryParameters != null) {
queryParameters = _convertQueryParametersTypes(queryParameters);
}
Uri url = Uri.https(_authority, path, queryParameters);
var response = await http.get(
url,
headers: _addHeaders(
method: 'GET',
requestPath:
queryParameters != null ? '${url.path}?${url.query}' : url.path,
additionalHeaders: headers,
),
);
if (response.statusCode == 429) {
await Future.delayed(Duration(seconds: 1));
return get(
path: path,
headers: headers,
queryParameters: queryParameters,
);
}
return response;
}
/// A POST method for coinbase exchange which automatically manages signing
/// for authorization.
Future<http.Response> post({
required String path,
Map<String, String>? headers,
Map<String, dynamic>? body,
}) async {
Uri url = Uri.https(_authority, path);
var response = await http.post(
url,
body: body != null ? jsonEncode(body) : null,
headers: _addHeaders(
method: 'POST',
requestPath: url.path,
additionalHeaders: headers,
body: body,
),
);
if (response.statusCode == 429) {
await Future.delayed(Duration(seconds: 1));
return post(
path: path,
headers: headers,
body: body,
);
}
return response;
}
/// A PUT method for coinbase exchange which automatically manages signing
/// for authorization.
Future<http.Response> put({
required String path,
Map<String, String>? headers,
Map<String, dynamic>? body,
}) async {
Uri url = Uri.https(_authority, path);
var response = await http.put(
url,
body: body != null ? jsonEncode(body) : null,
headers: _addHeaders(
method: 'PUT',
requestPath: url.path,
additionalHeaders: headers,
body: body,
),
);
if (response.statusCode == 429) {
await Future.delayed(Duration(seconds: 1));
return put(
path: path,
headers: headers,
body: body,
);
}
return response;
}
/// A DELETE method for coinbase exchange which automatically manages signing
/// for authorization.
Future<http.Response> delete({
required String path,
Map<String, String>? headers,
Map<String, dynamic>? queryParameters,
}) async {
if (queryParameters != null) {
queryParameters = _convertQueryParametersTypes(queryParameters);
}
Uri url = Uri.https(_authority, path, queryParameters);
var response = await http.delete(
url,
headers: _addHeaders(
method: 'DELETE',
requestPath:
queryParameters != null ? '${url.path}?${url.query}' : url.path,
additionalHeaders: headers,
),
);
if (response.statusCode == 429) {
await Future.delayed(Duration(seconds: 1));
return delete(
path: path,
headers: headers,
queryParameters: queryParameters,
);
}
return response;
}
}
| 27.35249
| 79
| 0.621796
|
7d92af93e7490bd2a4f4827194753262a1d8d104
| 2,535
|
css
|
CSS
|
css/style.css
|
getcreate/Form-validation
|
e6cee8d507e398e9e8305761070b5f3431ee370a
|
[
"MIT"
] | null | null | null |
css/style.css
|
getcreate/Form-validation
|
e6cee8d507e398e9e8305761070b5f3431ee370a
|
[
"MIT"
] | null | null | null |
css/style.css
|
getcreate/Form-validation
|
e6cee8d507e398e9e8305761070b5f3431ee370a
|
[
"MIT"
] | null | null | null |
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #fff;
color: #3B3D43;
font-family: 'Roboto', sans-serif;
}
.form-wrapper {
height: 100vh;
width: 100%;
}
.form-box {
background: #F7F5F9;
border-radius: 12px;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.25);
box-sizing: border-box;
margin: 0 auto;
max-width: 480px;
padding: 40px;
position: relative;
transform: translateY(-50%);
top: 50%;
width: 100%;
}
.form-box__title {
font-size: 24px;
font-weight: bold;
line-height: 20px;
margin-bottom: 25px;
}
.form__group {
margin-bottom: 25px;
position: relative;
}
.form__error {
color: #FF647C;
margin-top: 0;
line-height: 1.5;
font-size: 0;
opacity: 0;
position: absolute;
transition: opacity .2s linear, font-size .2s linear;
top: 0;
z-index: -1;
}
.input-field {
background: #fff;
border: 1px solid #fff;
border-radius: 6px;
box-shadow: 0px 7px 64px rgba(0, 0, 0, 0.07);
color: #3B3D43;
font-family: 'Roboto', sans-serif;
font-size: 15px;
line-height: 20px;
outline: none;
display: block;
padding: 14px 15px;
-moz-transition: border-color .05s ease-in-out;
-o-transition: border-color .05s ease-in-out;
-webkit-transition: border-color .05s ease-in-out;
width: 100%;
}
.input-field:focus {
border-color: #854FC8;
}
.input-field:hover {
border-color: rgba(133, 79, 200, 0.5);
}
.input-field::-moz-placeholder {
color: #D0C9D6;
}
.input-field::-webkit-input-placeholder {
color: #D0C9D6;
}
.input-field:-ms-input-placeholder {
color: #D0C9D6;
}
.input-field::-ms-input-placeholder {
color: #D0C9D6;
}
.input-field::placeholder {
color: #D0C9D6;
}
.input-field:valid:not(:placeholder-shown) {
border-color: #00C48C;
}
.input-field:invalid:not(:placeholder-shown) {
border-color: #FF647C;
}
.input-field:invalid:not(:placeholder-shown) + .form__error {
display: block;
font-size: 12px;
opacity: 1;
margin-top: 5px;
height: auto;
position: static;
}
.btn {
border: 0;
border-radius: 6px;
cursor: pointer;
font-family: 'Roboto', sans-serif;
font-size: 17px;
text-transform: uppercase;
padding: 13px 0;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
-webkit-transition: all .2s ease-in-out;
}
.btn--accent {
background-color: #6979F8;
color: #fff;
}
.btn--accent:hover, .btn--accent:focus {
background-color: #384df6;
}
.btn--full {
width: 100%;
}
@media screen and (max-width: 480px) {
.form-box {
padding: 25px;
}
}
| 18.50365
| 61
| 0.651677
|
f75129bfb9303b276710dce702a473237203460d
| 3,855
|
dart
|
Dart
|
lib/src/log_record_formatter.dart
|
ltackmann/log4dart
|
05d576095bf6d156bf9c6d7f23d0dae4369e426d
|
[
"Apache-2.0"
] | 7
|
2015-02-17T16:05:32.000Z
|
2021-08-15T14:12:45.000Z
|
lib/src/log_record_formatter.dart
|
ltackmann/log4dart
|
05d576095bf6d156bf9c6d7f23d0dae4369e426d
|
[
"Apache-2.0"
] | 1
|
2015-08-05T09:21:35.000Z
|
2015-08-05T09:21:35.000Z
|
lib/src/log_record_formatter.dart
|
ltackmann/log4dart
|
05d576095bf6d156bf9c6d7f23d0dae4369e426d
|
[
"Apache-2.0"
] | 1
|
2018-08-13T07:32:00.000Z
|
2018-08-13T07:32:00.000Z
|
// Copyright (c) 2013, the project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed
// by a Apache license that can be found in the LICENSE file.
part of log4dart;
/**
* A log record formatter for the given log format
*/
class LogRecordFormatter {
LogRecordFormatter(String _logFormat)
: recordContext = false,
_formatters = new List<_RecordFormatter>()
{
_formatReader = new _LogFormatReader(_logFormat);
_parseLogFormat();
}
// TODO parse fullname log configurations like logback http://logback.qos.ch/manual/layouts.html
_parseLogFormat() {
while(_hasMore()) {
_currentChar = _peek();
_advance();
if(_currentChar == " ") {
_parseSpace();
} else if(_currentChar == "%") {
// we have a punctuator
_currentChar = _peek();
_advance();
if(_currentChar == "c") {
_parseCategory();
} else if(_currentChar == "d") {
_parseDate();
} else if(_currentChar == "m") {
_parseMessage();
} else if(_currentChar == "n") {
_parseSimpleName();
} else if(_currentChar == "N") {
_parseQualifiedName();
} else if(_currentChar == "x") {
recordContext = true;
_parseContext();
} else {
throw new FormatException("illegal format ${_currentChar} in ${_formatReader.toString()}");
}
} else {
_parseText();
}
}
}
_parseSpace() {
String space = " ";
while(_hasMore() && _peek() == " ") {
_advance();
space += " ";
}
_formatters.add((LogRecord record) => space);
}
_parseCategory() {
_formatters.add((LogRecord record) => record.logLevel.name);
}
_parseDate() {
_formatters.add((LogRecord record) => record.date.toString());
}
_parseMessage() {
_formatters.add((LogRecord record) => record.message);
}
_parseQualifiedName() {
_formatters.add((LogRecord record) => record.qualifiedLoggerName);
}
_parseSimpleName() {
_formatters.add((LogRecord record) => record.simpleLoggerName);
}
_parseContext() {
_formatters.add((LogRecord record) => record.context);
}
_parseText() {
String text = "${_currentChar}";
while(_hasMore() && _peek() != "%") {
text += _peek();
_advance();
}
_formatters.add((LogRecord record) => text);
}
String _peek([int distance = 0]) => _formatReader.peek(distance);
_advance() => _formatReader.advance();
bool _hasMore() => _peek() != "";
/**
* Returns the formatted version of a [LogRecord]
*/
String format(LogRecord record) {
var res = "";
_formatters.forEach((_RecordFormatter formatter) => res += formatter(record));
return res;
}
String _currentChar;
_LogFormatReader _formatReader;
bool recordContext;
final List<_RecordFormatter> _formatters;
}
/**
* Signature for the log record formatter
*/
typedef String _RecordFormatter(LogRecord record);
/**
* Reads format strings one token at a time
*/
class _LogFormatReader {
factory _LogFormatReader(String formatString) {
if(formatString == null && formatString.isEmpty) {
throw new ArgumentError("log format cannot be null or empty");
}
return new _LogFormatReader._internal(formatString, formatString.length);
}
_LogFormatReader._internal(this._formatString, this._formatLength) {
_position = 0;
}
String peek(int distance) {
final int ahead = _position+distance;
if (ahead >= _formatLength) {
return "";
}
return _formatString.substring(ahead, ahead+_offset);
}
advance() {
_position += _offset;
}
String toString() => _formatString;
final int _offset = 1;
final String _formatString;
final int _formatLength;
int _position;
}
| 25.032468
| 101
| 0.626978
|
dc6aa9e03f7ff1204df43c99076af2e6efa2b223
| 814
|
gemspec
|
Ruby
|
i18n-debug.gemspec
|
ozzyaaron/i18n-debug
|
632cc46a60fe80cfb8ef61caa1656ad2dc9add70
|
[
"MIT"
] | 148
|
2015-01-11T20:13:51.000Z
|
2022-02-20T17:24:12.000Z
|
i18n-debug.gemspec
|
ozzyaaron/i18n-debug
|
632cc46a60fe80cfb8ef61caa1656ad2dc9add70
|
[
"MIT"
] | 10
|
2015-04-11T19:26:51.000Z
|
2021-03-25T18:28:22.000Z
|
i18n-debug.gemspec
|
ozzyaaron/i18n-debug
|
632cc46a60fe80cfb8ef61caa1656ad2dc9add70
|
[
"MIT"
] | 14
|
2015-01-01T13:09:59.000Z
|
2021-07-17T21:27:26.000Z
|
require File.expand_path('../lib/i18n/debug/version', __FILE__)
Gem::Specification.new do |spec|
spec.name = 'i18n-debug'
spec.version = I18n::Debug::VERSION
spec.author = 'Philipe Fatio'
spec.email = 'me@phili.pe'
spec.homepage = 'https://github.com/fphilipe/i18n-debug'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
spec.test_files = `git ls-files -z -- test`.split("\x0")
spec.summary = %q{Ever wondered which translations are being looked up by Rails, a gem, or simply your app? Wonder no more!}
spec.description = spec.summary
spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'minitest', '~> 5.8'
spec.add_dependency 'i18n', '< 2'
end
| 40.7
| 130
| 0.664619
|
6b8fac1ba5aec86dd18c2d6bc1a2e71ccf8ce3f0
| 964
|
js
|
JavaScript
|
dist/tiny-data-safe.min.js
|
orianda/tiny-data-safe
|
d9ca4f6bfc31226672ce54a1e9101bbcf743468e
|
[
"MIT"
] | null | null | null |
dist/tiny-data-safe.min.js
|
orianda/tiny-data-safe
|
d9ca4f6bfc31226672ce54a1e9101bbcf743468e
|
[
"MIT"
] | null | null | null |
dist/tiny-data-safe.min.js
|
orianda/tiny-data-safe
|
d9ca4f6bfc31226672ce54a1e9101bbcf743468e
|
[
"MIT"
] | null | null | null |
/*!
* tiny-data-safe
* Store data in safe and prevent them from being accessed without the valid key.
*
* @version v1.0.0
* @link https://github.com/orianda/tiny-data-safe
* @author Orianda <orianda@paan.de>
* @license MIT
*/
!function(t){"use strict";var n=t();if("object"==typeof module&&module instanceof Object&&module.exports instanceof Object)module.exports=n;else{if(!("object"==typeof window&&window instanceof Object))throw new Error("No valid context available.");window[n.name]=n}}(function(){"use strict";function t(t,n){var e,o;for(e=0,o=t.length;e<o;e++)if(t[e][0]===n)return e;return-1}function n(){var e=[];return this instanceof n?(this.add=function(t){var n={};return e.push([n,t]),n},this.set=function(n,o){var i=t(e,n);i<0?e.push([n,o]):e[i][1]=o},this.get=function(n){var o=t(e,n);return o<0?void 0:e[o][1]},void(this.rid=function(n){var o=t(e,n);o>=0&&e.splice(o,1)})):new n}return n});
//# sourceMappingURL=tiny-data-safe.min.js.map
| 80.333333
| 682
| 0.684647
|
b897e76ea5e6b99745d4879876e6eb4c976cdcba
| 544
|
h
|
C
|
include/ntt1536.h
|
vincentvbh/NTRUPrime-PolyMul
|
d755e16086dd66ad62f3a7465f6c90e2cf12cc78
|
[
"CC0-1.0"
] | 4
|
2021-03-31T22:08:28.000Z
|
2022-03-08T11:41:20.000Z
|
include/ntt1536.h
|
vincentvbh/NTRUPrime-PolyMul
|
d755e16086dd66ad62f3a7465f6c90e2cf12cc78
|
[
"CC0-1.0"
] | null | null | null |
include/ntt1536.h
|
vincentvbh/NTRUPrime-PolyMul
|
d755e16086dd66ad62f3a7465f6c90e2cf12cc78
|
[
"CC0-1.0"
] | null | null | null |
#ifndef NTT1536_H
#define NTT1536_H
#include <stdint.h>
void NTT_forward_8(const signed char* g, const int32_t*, int, int, int32_t *);
void NTT_forward_16(const short* g, const int32_t*, int, int, int32_t *);
void __asm_my_mul(int32_t*, int32_t*, int, int);
void __asm_NTT_inv_1_2_3(int32_t*, const int32_t*, int, int);
void __asm_NTT_inv_4_5_6(int32_t*, const int32_t*, int, int);
void __asm_NTT_inv_7_8_9(int32_t*, const int32_t*, int, int);
void __asm_final_map_and_pack(short*, int, int32_t*, int32_t*, int, int, int, int, int);
#endif
| 38.857143
| 89
| 0.746324
|
ea59d38554f8ddbd9db89e2b643e4d7084526950
| 959
|
sql
|
SQL
|
Check progress of database commands.sql
|
NotTheDBAYoureLookingFor/Resources
|
005dd6745a2f4b98b18e0aee5e84839cca81e33a
|
[
"MIT"
] | null | null | null |
Check progress of database commands.sql
|
NotTheDBAYoureLookingFor/Resources
|
005dd6745a2f4b98b18e0aee5e84839cca81e33a
|
[
"MIT"
] | null | null | null |
Check progress of database commands.sql
|
NotTheDBAYoureLookingFor/Resources
|
005dd6745a2f4b98b18e0aee5e84839cca81e33a
|
[
"MIT"
] | null | null | null |
SET NOCOUNT ON
DECLARE @Midnight AS DATETIME = '00:00:00'
SELECT ER.session_id AS SPID,
CAST( DB_NAME(ER.database_id) AS VARCHAR) AS 'Database Name',
ER.command AS 'Database Command',
LEFT(CAST(ER.start_time AS TIME), 8) AS 'Time Command Executed',
LEFT(CAST(DATEADD(MILLISECOND, ER.estimated_completion_time, GETDATE()) AS TIME), 8) AS 'Completion Time',
LEFT(CAST(DATEADD(MILLISECOND, ER.estimated_completion_time, @Midnight) AS TIME), 8) AS 'Time Left',
LEFT(CAST(DATEADD(SECOND, DATEDIFF(SECOND, ER.start_time, GETDATE()), @Midnight) AS TIME), 8) AS 'Time Elapsed',
CONCAT(ROUND(ER.percent_complete, 2), '%') AS 'Percent Complete'
FROM sys.dm_exec_requests AS ER
WHERE ER.command IN ('DBCC TABLE CHECK',
'RESTORE DATABASE',
'BACKUP DATABASE',
'BACKUP LOG',
'RESTORE HEADERONLY',
'RESTORE LOG')
RAISERROR('', 0, 1) WITH NOWAIT
WAITFOR DELAY '00:00:10'
GO 5000
| 38.36
| 117
| 0.672576
|
4d3624c902d228fcd29ae6c67edc0fbce9bbb3ce
| 812
|
cs
|
C#
|
PropertyManagerMyApp/PropertyManagerMyApp/Controllers/MailAFOController.cs
|
isabella232/Property-Inspection-Code-Sample
|
2ae69961a31bb85c14a9a345a7313d0ac482a3c7
|
[
"Apache-2.0"
] | 40
|
2015-02-10T13:22:40.000Z
|
2020-05-28T12:50:30.000Z
|
PropertyManagerMyApp/PropertyManagerMyApp/Controllers/MailAFOController.cs
|
1010101012101/Property-Inspection-Code-Sample
|
47a429fc3cb8b9b7588aac330d529e4057be631a
|
[
"Apache-2.0"
] | 4
|
2015-03-02T15:17:07.000Z
|
2019-06-04T19:32:36.000Z
|
PropertyManagerMyApp/PropertyManagerMyApp/Controllers/MailAFOController.cs
|
1010101012101/Property-Inspection-Code-Sample
|
47a429fc3cb8b9b7588aac330d529e4057be631a
|
[
"Apache-2.0"
] | 50
|
2015-01-28T21:32:30.000Z
|
2020-12-06T12:22:25.000Z
|
using SuiteLevelWebApp.Models;
using SuiteLevelWebApp.Utils;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace SuiteLevelWebApp.Controllers
{
[Authorize, HandleAdalException]
public class MailAFOController : Controller
{
public async Task<ActionResult> Index(int Id)
{
var token = await AuthenticationHelper.GetAccessTokenAsync(AppSettings.DemoSiteServiceResourceId);
MailAFOModel dashboardModel = new MailAFOModel(token);
var model = await dashboardModel.GetMailAFOViewModelAsync(Id);
if (model == null)
{
return Content("Incident not found");
}
return View(model);
}
public ActionResult Redir()
{
return View();
}
}
}
| 27.066667
| 110
| 0.626847
|
a9351605d2836b285b12dc205dabff99cb162863
| 239
|
css
|
CSS
|
frontend/src/homePage/NavBar.css
|
googleinterns/step197-2020
|
299e78e824cf6a5b235cfc96cc5c143c7788367c
|
[
"Apache-2.0"
] | null | null | null |
frontend/src/homePage/NavBar.css
|
googleinterns/step197-2020
|
299e78e824cf6a5b235cfc96cc5c143c7788367c
|
[
"Apache-2.0"
] | 8
|
2020-07-31T16:47:51.000Z
|
2022-02-27T09:32:37.000Z
|
frontend/src/homePage/NavBar.css
|
googleinterns/step197-2020
|
299e78e824cf6a5b235cfc96cc5c143c7788367c
|
[
"Apache-2.0"
] | null | null | null |
/* Add a black background color to the top navigation */
.navBar {
background-color: #5A90A1;
overflow: hidden;
display:flex;
justify-content:flex-end;
padding:10px 0;
position: fixed;
top:0;
width:100%;
}
| 21.727273
| 56
| 0.635983
|
7f496f0c95313520a40847b68ea05e251fac79a9
| 5,810
|
dart
|
Dart
|
test/tokeniser_test.dart
|
oreal-solutions/night-script
|
fde7fe7e1aa9792246d1b52b0ee43f5ca669e25f
|
[
"MIT"
] | 1
|
2022-01-03T11:55:23.000Z
|
2022-01-03T11:55:23.000Z
|
test/tokeniser_test.dart
|
oreal-solutions/night-script
|
fde7fe7e1aa9792246d1b52b0ee43f5ca669e25f
|
[
"MIT"
] | null | null | null |
test/tokeniser_test.dart
|
oreal-solutions/night-script
|
fde7fe7e1aa9792246d1b52b0ee43f5ca669e25f
|
[
"MIT"
] | 1
|
2021-12-12T11:05:29.000Z
|
2021-12-12T11:05:29.000Z
|
import 'package:night_script/night_script.dart';
import 'package:test/test.dart';
void main() {
group('Tokeniser Test', () {
group('tokenise(source)', () {
late Tokeniser instance;
setUp(() {
instance = Tokeniser();
});
test('Should return an empty list when given an empty source', () {
expect(instance.tokenise(''), isEmpty);
});
test('Should capture the correct starting indices for tokens', () {
final source = ' 56>=\n"myString"\ntype\nany\n';
final expectedTokens = [
Token(1, 1, '56', TokenType.integerLiteral),
Token(3, 1, '>=', TokenType.opGreaterThanOrEqualTo),
Token(5, 1, '\n', TokenType.newline),
Token(6, 2, '"myString"', TokenType.stringLiteral),
Token(16, 2, '\n', TokenType.newline),
Token(17, 3, 'type', TokenType.typeKeyword),
Token(21, 3, '\n', TokenType.newline),
Token(22, 4, 'any', TokenType.anyKeyword),
Token(25, 4, '\n', TokenType.newline),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should tokenise keywords and symbols literally', () {
final source = 'function ==';
final expectedTokens = [
Token(0, 1, 'function', TokenType.functionKeyword),
Token(9, 1, '==', TokenType.opEqualTo),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should not capture keywords that are part of a word', () {
final source = 'oh_import_here';
final expectedTokens = [
Token(0, 1, 'oh_import_here', TokenType.identifier),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should recognise single line strings with comments', () {
final source =
'"This is a string, // with a comment here and /// another comment here"';
final expectedTokens = [
Token(0, 1, source, TokenType.stringLiteral),
];
expect(instance.tokenise(source), expectedTokens);
});
test(
'Should recognise a not closed single line string as a parsable substring',
() {
final source = '"abc\n';
final unknownSymbols = [
Token(0, 1, '"', TokenType.unknown),
];
final expectedTokens = [
...unknownSymbols,
Token(1, 1, 'abc', TokenType.identifier),
Token(4, 1, '\n', TokenType.newline),
];
final returnedTokens = instance.tokenise(source);
expect(instance.unknownSymbols, unknownSymbols);
expect(returnedTokens, expectedTokens);
});
test(r'Given "#\n¢" should return correct unknown tokens', () {
final source = '#\n¢';
final unknownSymbols = [
Token(0, 1, '#', TokenType.unknown),
Token(2, 2, '¢', TokenType.unknown),
];
instance.tokenise(source);
expect(instance.unknownSymbols, unknownSymbols);
});
test('Should recognise multiline strings with comments', () {
final source =
'"""This is a string, \n // with a comment here and \n /// another comment here"""';
final expectedTokens = [
Token(0, 1, source, TokenType.stringLiteral),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should recognise single line comment with strings', () {
final source =
'// This is a comment "with string here" and """another string here"""';
final expectedTokens = [
Token(0, 1, source, TokenType.lineComment),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should terminate comments by newline and EOF', () {
final source = '//abc\n//func';
final expectedTokens = [
Token(0, 1, '//abc', TokenType.lineComment),
Token(5, 1, '\n', TokenType.newline),
Token(6, 2, '//func', TokenType.lineComment),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should recognise doc comment with strings', () {
final source =
'/// This is a comment "with string here" and """another string here"""';
final expectedTokens = [
Token(0, 1, source, TokenType.docComment),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should identify decimals as numbers', () {
final source = '0.5';
final expectedTokens = [
Token(0, 1, '0.5', TokenType.numberLiteral),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should identify decimals with E as numbers', () {
final source = '0.5E3';
final expectedTokens = [
Token(0, 1, '0.5E3', TokenType.numberLiteral),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should identify positive integers', () {
final source = '967';
final expectedTokens = [
Token(0, 1, '967', TokenType.integerLiteral),
];
expect(instance.tokenise(source), expectedTokens);
});
test('Should identify positive hexadecimal integers', () {
final source = '0xFF';
final expectedTokens = [
Token(0, 1, '0xFF', TokenType.integerLiteral),
];
expect(instance.tokenise(source), expectedTokens);
});
test(
'Should recognise Vector3 as a single identifier and not Vector and 3',
() {
final source = 'Vector3';
final expectedTokens = [
Token(0, 1, 'Vector3', TokenType.identifier),
];
expect(instance.tokenise(source), expectedTokens);
});
});
});
}
| 31.923077
| 96
| 0.56506
|
9f85c006b9ad59f2490d777f5e8cb1ffe7acd4a3
| 121
|
lua
|
Lua
|
fxmanifest.lua
|
MOXHAFOREVA/mx-vehiclekey
|
42a737c732846b3d1add9bb1f45808c75da015b7
|
[
"MIT"
] | 1
|
2021-09-07T21:41:44.000Z
|
2021-09-07T21:41:44.000Z
|
fxmanifest.lua
|
MOXHAFOREVA/mx-vehiclekey
|
42a737c732846b3d1add9bb1f45808c75da015b7
|
[
"MIT"
] | null | null | null |
fxmanifest.lua
|
MOXHAFOREVA/mx-vehiclekey
|
42a737c732846b3d1add9bb1f45808c75da015b7
|
[
"MIT"
] | 3
|
2021-09-19T23:57:02.000Z
|
2022-01-08T23:00:07.000Z
|
fx_version 'cerulean'
games { 'gta5' }
author 'MOXHA'
client_script 'debug/C_main.js'
server_script 'debug/S_main.js'
| 24.2
| 32
| 0.743802
|
e41b06e6fe97ffbd9472421ba92d27507858e10f
| 335
|
cs
|
C#
|
Programming/3.ObjectOrientedProgramming/3.ExtensionMethodsDelegatesLambdaLINQ/1.StringBuilderExtensions/Program.cs
|
trinityimma/TelerikAcademy
|
92c48a177a24c1bc91b9b2673ff31837f0f64bf5
|
[
"MIT"
] | null | null | null |
Programming/3.ObjectOrientedProgramming/3.ExtensionMethodsDelegatesLambdaLINQ/1.StringBuilderExtensions/Program.cs
|
trinityimma/TelerikAcademy
|
92c48a177a24c1bc91b9b2673ff31837f0f64bf5
|
[
"MIT"
] | null | null | null |
Programming/3.ObjectOrientedProgramming/3.ExtensionMethodsDelegatesLambdaLINQ/1.StringBuilderExtensions/Program.cs
|
trinityimma/TelerikAcademy
|
92c48a177a24c1bc91b9b2673ff31837f0f64bf5
|
[
"MIT"
] | null | null | null |
using System;
using System.Text;
static class Program
{
static StringBuilder Substring(this StringBuilder str, int startIndex, int length)
{
return new StringBuilder(str.ToString(startIndex, length));
}
static void Main()
{
Console.WriteLine(new StringBuilder("0123456").Substring(4, 3));
}
}
| 20.9375
| 86
| 0.677612
|
afe2ca84f733537d17ce881cb5c58e568bbb9eca
| 3,256
|
py
|
Python
|
src/learning/train.py
|
mari-linhares/deep-audio
|
a3074a5977710e70d836130f23316c6fd660633d
|
[
"Apache-2.0"
] | null | null | null |
src/learning/train.py
|
mari-linhares/deep-audio
|
a3074a5977710e70d836130f23316c6fd660633d
|
[
"Apache-2.0"
] | null | null | null |
src/learning/train.py
|
mari-linhares/deep-audio
|
a3074a5977710e70d836130f23316c6fd660633d
|
[
"Apache-2.0"
] | null | null | null |
import tensorflow as tf
tf.enable_eager_execution()
import tensorflowjs as tfjs
import numpy as np
from data_sources.data_source import DataSource
from optimizers.optimizer import Optimizer
import models.model_factory as mf
import utilities.utils as utils
from tensorflow.python.client import device_lib
print(device_lib.list_local_devices())
def train():
ds_train = DataSource('audio_files/speech/train_data.npy', 'audio_files/speech/train_labels.npy', classes_dict='audio_files/speech/classes')
ds_eval = DataSource('audio_files/speech/eval_data.npy', 'audio_files/speech/eval_labels.npy', classes_dict='audio_files/speech/classes')
ds_test = DataSource('audio_files/speech/test_data.npy', 'audio_files/speech/test_labels.npy', classes_dict='audio_files/speech/classes')
model = mf.build_model('CNN', input_shape=ds_train.input_shape, num_classes = ds_train.num_classes)
optimizer = Optimizer('Adam')
EPOCHS = 1
for epoch in range(EPOCHS):
train_losses = []
train_accuracy = 0
train_instances = 0
for (batch, (img_tensor, label)) in enumerate(ds_train.dataset):
train_loss, predicted = optimizer.compute_and_apply_gradients(model, img_tensor, label)
train_losses.append(train_loss)
train_accuracy += sum(np.argmax(predicted, axis=1) == label.numpy())
train_instances += label.numpy().shape[0]
# print ('Epoch {} Batch {} Train Loss {:.6f}'.format(epoch + 1, batch + 1, sum(train_losses)/len(train_losses)))
eval_losses = []
accuracy = 0
instances = 0
for (batch, (img_tensor, label)) in enumerate(ds_eval.dataset):
eval_loss, predicted = model.compute_loss(img_tensor, label, training=False)
accuracy += sum(np.argmax(predicted, axis=1) == label.numpy())
instances += label.numpy().shape[0]
eval_losses.append(eval_loss)
print ('Epoch {} Train Accuracy: {:.6f} | Test Accuracy: {:.6f}'.format(epoch +1, train_accuracy/train_instances, accuracy/instances))
print ('Epoch {} Train Loss {:.6f} | Eval Loss {:.6f}'.format(epoch + 1, sum(train_losses)/len(train_losses), sum(eval_losses)/len(eval_losses)))
eval_losses = []
accuracy = 0
instances = 0
for (batch, (img_tensor, label)) in enumerate(ds_test.dataset):
eval_loss, predicted = model.compute_loss(img_tensor, label, training=False)
accuracy += sum(np.argmax(predicted, axis=1) == label.numpy())
instances += label.numpy().shape[0]
eval_losses.append(eval_loss)
print ('Epoch {} Train Accuracy: {:.6f} | Test Accuracy: {:.6f}'.format(epoch +1, train_accuracy/train_instances, accuracy/instances))
print ('Epoch {} Train Loss {:.6f} | Eval Loss {:.6f}'.format(epoch + 1, sum(train_losses)/len(train_losses), sum(eval_losses)/len(eval_losses)))
import ipdb; ipdb.set_trace()
saver = tf.train.Checkpoint(model=model, optimizer=optimizer.optimizer)
saver.save('/home/marianne/deep-audio/saver/save')
tfjs.converters.convert_tf_saved_model('/home/marianne/deep-audio/saver/save.ckpt', output_node_names=['test'], output_dir='/home/marianne/deep-audio/')
if __name__ == '__main__':
train()
| 45.222222
| 156
| 0.693182
|
c8d37aa70581964ddd0e13c82c7a6c433a258a0d
| 720
|
css
|
CSS
|
7-assets/past-student-repos/HTTP-AJAX-master/friends/src/components/AddFriend.css
|
eengineergz/Lambda
|
1fe511f7ef550aed998b75c18a432abf6ab41c5f
|
[
"MIT"
] | null | null | null |
7-assets/past-student-repos/HTTP-AJAX-master/friends/src/components/AddFriend.css
|
eengineergz/Lambda
|
1fe511f7ef550aed998b75c18a432abf6ab41c5f
|
[
"MIT"
] | null | null | null |
7-assets/past-student-repos/HTTP-AJAX-master/friends/src/components/AddFriend.css
|
eengineergz/Lambda
|
1fe511f7ef550aed998b75c18a432abf6ab41c5f
|
[
"MIT"
] | null | null | null |
.input-wrapper {
margin: 10px 0 150px 0;
position: relative;
left: 50%;
transform: translate(-50%);
width: 600px;
}
span.add-a-friend {
background-color: #fff;
color: #333;
font-size: 1.2em;
font-style: italic;
font-weight: 100;
vertical-align: middle;
}
input {
border: none;
height: 18px;
box-shadow: 1px 1px 3px 0px #DDDDDD;
}
input.input-name {
margin: 0 0 0 30px;
}
input::-webkit-input-placeholder {
color: #333;
font-family: inherit;
font-size: 1.2em;
font-style: italic;
font-weight: 100;
}
button {
bottom: 11px;
background: none;
border: none;
height: 18px;
width: 18px;
margin: 0;
padding: 0;
position: absolute;
}
svg {
height: 18px;
width: 18px;
}
| 16.363636
| 38
| 0.643056
|
db1623e0399cc932910a53ed077911c853ff44e9
| 972
|
rs
|
Rust
|
tests/run.rs
|
salewski/ketos
|
011287590ebeb6e6a199e34c8b9da14e2daeb1ce
|
[
"Apache-2.0",
"MIT"
] | 813
|
2016-02-08T22:19:04.000Z
|
2022-03-25T21:12:46.000Z
|
tests/run.rs
|
salewski/ketos
|
011287590ebeb6e6a199e34c8b9da14e2daeb1ce
|
[
"Apache-2.0",
"MIT"
] | 60
|
2016-02-09T11:07:50.000Z
|
2021-05-18T17:52:33.000Z
|
tests/run.rs
|
salewski/ketos
|
011287590ebeb6e6a199e34c8b9da14e2daeb1ce
|
[
"Apache-2.0",
"MIT"
] | 61
|
2016-02-08T22:31:52.000Z
|
2022-01-28T19:38:26.000Z
|
extern crate ketos;
use ketos::{
BuiltinModuleLoader, FileModuleLoader, ModuleLoader,
Error, Interpreter,
};
use std::fs::read_dir;
use std::path::{Path, PathBuf};
fn run_file(path: &Path) -> Result<(), Error> {
let mut loader = FileModuleLoader::with_search_paths(vec![PathBuf::from("lib")]);
loader.set_read_bytecode(false);
loader.set_write_bytecode(false);
let interp = Interpreter::with_loader(
Box::new(BuiltinModuleLoader.chain(loader)));
interp.run_file(path)
}
// Runs all the tests matching `lib/test-*.ket`
#[test]
fn test_run() {
let dir = read_dir("lib").expect("failed to read dir");
for ent in dir {
let ent = ent.expect("failed to read dir entry");
let fname = ent.file_name();
let name = fname.to_str().expect("failed to convert filename to string");
if name.starts_with("test-") && name.ends_with(".ket") {
run_file(&ent.path()).unwrap();
}
}
}
| 25.578947
| 85
| 0.638889
|
14f429fe6deb0a7e454a9e34d5f94c0f5058f2f9
| 1,498
|
ts
|
TypeScript
|
src/app/system-configuration/backup-storage/disk-storage/shared/storage-stat.model.ts
|
svullupala/Learn-angular
|
7bc3efa5b6d37ad131f08ff6409a1e433141e2d8
|
[
"MIT"
] | null | null | null |
src/app/system-configuration/backup-storage/disk-storage/shared/storage-stat.model.ts
|
svullupala/Learn-angular
|
7bc3efa5b6d37ad131f08ff6409a1e433141e2d8
|
[
"MIT"
] | null | null | null |
src/app/system-configuration/backup-storage/disk-storage/shared/storage-stat.model.ts
|
svullupala/Learn-angular
|
7bc3efa5b6d37ad131f08ff6409a1e433141e2d8
|
[
"MIT"
] | null | null | null |
import {JsonObject, JsonProperty} from 'json2typescript';
import {BaseModel} from 'shared/models/base.model';
@JsonObject
export class StorageStatModel extends BaseModel {
@JsonProperty('storageId', String, true)
public storageId: string = undefined;
@JsonProperty('sizeTotal', Number, true)
public sizeTotal: number = 0;
@JsonProperty('sizeUsed', Number, true)
public sizeUsed: number = 0;
@JsonProperty('sizeFree', Number, true)
public sizeFree: number = 0;
@JsonProperty('writable', Boolean, true)
public writable: boolean = false;
@JsonProperty('site', String, true)
public site: string = undefined;
@JsonProperty('description', String, true)
public description: string = undefined;
@JsonProperty('errorDescription', String, true)
public errorDescription: string = undefined;
@JsonProperty('deduplicationRatio', String, true)
public deduplicationRatio: string = undefined;
@JsonProperty('compressionRatio', String, true)
public compressionRatio: string = undefined;
@JsonProperty('time', undefined, true)
public time: any = 0;
@JsonProperty('type', String, true)
public type: string = 'vsnap';
@JsonProperty('jobId', String, true)
public jobId: string = undefined;
@JsonProperty('jobSessionId', String, true)
public jobSessionId: string = undefined;
@JsonProperty('logId', String, true)
public logId: string = undefined;
canLocateLog(): boolean {
return !!(this.jobId && this.jobSessionId && this.logId);
}
}
| 26.75
| 61
| 0.720961
|
96c5986749a8ae5fa6d0ef5c43c8ab5aa502f594
| 768
|
cs
|
C#
|
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/TrimmingTests/EnumConverterTest.cs
|
pyracanda/runtime
|
72bee25ab532a4d0636118ec2ed3eabf3fd55245
|
[
"MIT"
] | 9,402
|
2019-11-25T23:26:24.000Z
|
2022-03-31T23:19:41.000Z
|
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/TrimmingTests/EnumConverterTest.cs
|
pyracanda/runtime
|
72bee25ab532a4d0636118ec2ed3eabf3fd55245
|
[
"MIT"
] | 37,522
|
2019-11-25T23:30:32.000Z
|
2022-03-31T23:58:30.000Z
|
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/TrimmingTests/EnumConverterTest.cs
|
pyracanda/runtime
|
72bee25ab532a4d0636118ec2ed3eabf3fd55245
|
[
"MIT"
] | 3,629
|
2019-11-25T23:29:16.000Z
|
2022-03-31T21:52:28.000Z
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
namespace SerializerTrimmingTest
{
/// <summary>
/// Tests that the enum converter factory works with trimming.
/// </summary>
internal class Program
{
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicProperties, typeof(ClassWithDay))]
static int Main(string[] args)
{
string json = JsonSerializer.Serialize(new ClassWithDay());
return json == @"{""Day"":0}" ? 100 : -1;
}
}
internal class ClassWithDay
{
public DayOfWeek Day { get; set; }
}
}
| 27.428571
| 98
| 0.653646
|
01a780e7b61f6c11051406d656c1c6f9891b1061
| 7,344
|
rs
|
Rust
|
src/boot.rs
|
dwbrite/teensy-k20dx256
|
f56e111c7d1088fa4a9745634c76bb0cf0e6f0f4
|
[
"Unlicense"
] | 10
|
2019-08-03T09:26:49.000Z
|
2022-03-31T17:05:00.000Z
|
src/boot.rs
|
dwbrite/teensy-k20dx256
|
f56e111c7d1088fa4a9745634c76bb0cf0e6f0f4
|
[
"Unlicense"
] | null | null | null |
src/boot.rs
|
dwbrite/teensy-k20dx256
|
f56e111c7d1088fa4a9745634c76bb0cf0e6f0f4
|
[
"Unlicense"
] | 1
|
2019-08-07T05:52:13.000Z
|
2019-08-07T05:52:13.000Z
|
//! Here is the most important file of this crate.
//! When you add this crate as a dependency it will move the bootloader to the good section. Enable
//! **all** the port, the clock at 72MHz and disable the watchdog and **then** call your `main`.
//! Right now if you don't want something you'll need to either disable it in your `main` or edit
//! this crate.
use crate::*;
/// The first function to be executed by the teensy
/// Enable all the clocks:
/// - Core: 72MHz
/// - Peripherals: 36MHz
/// - Flash: 24MHz
/// Enable all the ports clock gate. This may consume more power than what you need if you don't
/// use all the ports.
/// Disable the watchdog.
#[no_mangle]
extern "C" fn __boot() {
unsafe {
init();
main();
}
core::panic!("Came out of main");
}
#[cfg(not(feature = "manual_init"))]
#[no_mangle]
fn init() {
let (wdog, sim, mcg, osc) = unsafe {
(
watchdog::Watchdog::new(),
sim::Sim::new(),
mcg::Mcg::new(),
osc::Osc::new(),
)
};
wdog.disable();
// Enable the crystal oscillator with 10pf of capacitance
osc.enable(10);
// Turn on all the port clock gate
sim.enable_clock(sim::Clock::PortA);
sim.enable_clock(sim::Clock::PortB);
sim.enable_clock(sim::Clock::PortC);
sim.enable_clock(sim::Clock::PortD);
sim.enable_clock(sim::Clock::PortE);
// Set our clocks:
// core: 72Mhz
// peripheral: 36MHz
// flash: 24MHz
sim.set_dividers(1, 2, 3);
// We would also set the USB divider here if we wanted to use it.
// Now we can start setting up the MCG for our needs.
if let mcg::Clock::Fei(mut fei) = mcg.clock() {
// Our 16MHz xtal is "very fast", and needs to be divided
// by 512 to be in the acceptable FLL range.
fei.enable_xtal(mcg::OscRange::VeryHigh);
let fbe = fei.use_external(512);
// PLL is 27/6 * xtal == 72MHz
let pbe = fbe.enable_pll(27, 6);
pbe.use_pll();
} else {
panic!("Somehow the clock wasn't in FEI mode");
}
}
/// This is the Interrupt Descriptor Table
#[link_section = ".vector_table.interrupts"]
#[no_mangle]
pub static _INTERRUPTS: [unsafe extern "C" fn(); 111] = [
__boot, // TODO: Move this to a different vector?
interrupts::isr_non_maskable,
interrupts::isr_hard_fault,
interrupts::isr_memmanage_fault,
interrupts::isr_bus_fault,
interrupts::isr_usage_fault,
interrupts::isr_ignore_no_args, // Reserved 7
interrupts::isr_ignore_no_args, // Reserved 8
interrupts::isr_ignore_no_args, // Reserved 9
interrupts::isr_ignore_no_args, // Reserved 10
interrupts::isr_svcall,
interrupts::isr_debug_monitor,
interrupts::isr_ignore_no_args, // Reserved 13
interrupts::isr_pendablesrvreq,
interrupts::isr_systick,
interrupts::isr_dma_ch0_complete,
interrupts::isr_dma_ch1_complete,
interrupts::isr_dma_ch2_complete,
interrupts::isr_dma_ch3_complete,
interrupts::isr_dma_ch4_complete,
interrupts::isr_dma_ch5_complete,
interrupts::isr_dma_ch6_complete,
interrupts::isr_dma_ch7_complete,
interrupts::isr_dma_ch8_complete,
interrupts::isr_dma_ch9_complete,
interrupts::isr_dma_ch10_complete,
interrupts::isr_dma_ch11_complete,
interrupts::isr_dma_ch12_complete,
interrupts::isr_dma_ch13_complete,
interrupts::isr_dma_ch14_complete,
interrupts::isr_dma_ch15_complete,
interrupts::isr_dma_error,
interrupts::isr_ignore_no_args, // Unused ? INT_MCM ?
interrupts::isr_flash_cmd_complete,
interrupts::isr_flash_read_collision,
interrupts::isr_low_voltage_warning,
interrupts::isr_low_voltage_wakeup,
interrupts::isr_wdog_or_emw,
interrupts::isr_ignore_no_args, // Reserved 39
interrupts::isr_i2c0,
interrupts::isr_i2c1,
interrupts::isr_spi0,
interrupts::isr_spi1,
interrupts::isr_ignore_no_args, // Teensy does not have SPI2
interrupts::isr_can0_or_msg_buf,
interrupts::isr_can0_bus_off,
interrupts::isr_can0_error,
interrupts::isr_can0_transmit_warn,
interrupts::isr_can0_receive_warn,
interrupts::isr_can0_wakeup,
interrupts::isr_i2s0_transmit,
interrupts::isr_i2s0_receive,
interrupts::isr_ignore_no_args, // Teensy does not have CAN1
interrupts::isr_ignore_no_args, // Teensy does not have CAN1
interrupts::isr_ignore_no_args, // Teensy does not have CAN1
interrupts::isr_ignore_no_args, // Teensy does not have CAN1
interrupts::isr_ignore_no_args, // Teensy does not have CAN1
interrupts::isr_ignore_no_args, // Teensy does not have CAN1
interrupts::isr_ignore_no_args, // Reserved 59
interrupts::isr_uart0_lon,
interrupts::isr_uart0_status,
interrupts::isr_uart0_error,
interrupts::isr_uart1_status,
interrupts::isr_uart1_error,
interrupts::isr_uart2_status,
interrupts::isr_uart2_error,
interrupts::isr_ignore_no_args, // Teensy does not have UART3
interrupts::isr_ignore_no_args, // Teensy does not have UART3
interrupts::isr_ignore_no_args, // Teensy does not have UART4
interrupts::isr_ignore_no_args, // Teensy does not have UART4
interrupts::isr_ignore_no_args, // Teensy does not have UART5
interrupts::isr_ignore_no_args, // Teensy does not have UART5
interrupts::isr_adc0,
interrupts::isr_adc1,
interrupts::isr_cmp0,
interrupts::isr_cmp1,
interrupts::isr_cmp2,
interrupts::isr_ftm0,
interrupts::isr_ftm1,
interrupts::isr_ftm2,
interrupts::isr_cmt,
interrupts::isr_rtc_alarm,
interrupts::isr_rtc_seconds,
interrupts::isr_pit_ch0,
interrupts::isr_pit_ch1,
interrupts::isr_pit_ch2,
interrupts::isr_pit_ch3,
interrupts::isr_pdb,
interrupts::isr_usb_otg,
interrupts::isr_usb_charger,
interrupts::isr_ignore_no_args, // Reserved 91
interrupts::isr_ignore_no_args, // Reserved 92
interrupts::isr_ignore_no_args, // Reserved 93
interrupts::isr_ignore_no_args, // Reserved 94
interrupts::isr_ignore_no_args, // Nothing according to manual, I2S0 according to headers
interrupts::isr_ignore_no_args, // Nothing according to manual, SDHC according to headers
interrupts::isr_dac0,
interrupts::isr_ignore_no_args, // Teensy does not have DAC1
interrupts::isr_tsi,
interrupts::isr_mcg,
interrupts::isr_lpt,
interrupts::isr_ignore_no_args, // Reserved 102
interrupts::isr_port_a,
interrupts::isr_port_b,
interrupts::isr_port_c,
interrupts::isr_port_d,
interrupts::isr_port_e,
interrupts::isr_ignore_no_args, // Reserved 108
interrupts::isr_ignore_no_args, // Reserved 109
interrupts::isr_software,
interrupts::isr_ignore_no_args, // Reserved 111
];
/// Flash configuration
/// Controls how the flash can be read or written.
/// The Teensy bootloader makes assumptions about these values, so
/// we will use the same set of bytes as the Teensy Arduino tooling.
/// Specifically, we disable all flash security through the FSEC
/// field, and tell the processor to boot into high-power mode with FOPT.
#[link_section = ".flashconfig"]
#[no_mangle]
pub static _FLASHCONFIG: [u8; 16] = [
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xDE, 0xF9, 0xFF, 0xFF,
// FSEC, FOPT
];
| 36.537313
| 99
| 0.703023
|
247713d5d42453e05e3061573e28351cbf171845
| 56,359
|
php
|
PHP
|
resources/views/layouts/spacedcustomlayout.blade.php
|
frankcodedKing/laravelinvestmentscript
|
f04904cd65cba8b98b3a32d1b54cf5f491d0d3ac
|
[
"MIT"
] | 1
|
2021-07-24T13:41:15.000Z
|
2021-07-24T13:41:15.000Z
|
resources/views/layouts/spacedcustomlayout.blade.php
|
frankcodedKing/laravelinvestmentscript
|
f04904cd65cba8b98b3a32d1b54cf5f491d0d3ac
|
[
"MIT"
] | null | null | null |
resources/views/layouts/spacedcustomlayout.blade.php
|
frankcodedKing/laravelinvestmentscript
|
f04904cd65cba8b98b3a32d1b54cf5f491d0d3ac
|
[
"MIT"
] | 2
|
2021-07-24T13:32:10.000Z
|
2021-08-28T08:09:13.000Z
|
<!DOCTYPE html>
<html class="html" lang="en-US" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="UTF-8">
<link rel="profile" href="http://gmpg.org/xfn/11">
<title>Penultimate Finance – Simplifying complex finance</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='dns-prefetch' href='https://s.w.org/' />
<link rel="alternate" type="application/rss+xml" title="Penultimate Finance » Feed" href="feed/index.html" />
<link rel="alternate" type="application/rss+xml" title="Penultimate Finance » Comments Feed"
href="comments/feed/index.html" />
<script type="text/javascript">
window._wpemojiSettings = { "baseUrl": "https:\/\/s.w.org\/images\/core\/emoji\/11\/72x72\/", "ext": ".png", "svgUrl": "https:\/\/s.w.org\/images\/core\/emoji\/11\/svg\/", "svgExt": ".svg", "source": { "concatemoji": "https:\/\/www.penultimatefinance.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.9.13" } };
!function (a, b, c) { function d(a, b) { var c = String.fromCharCode; l.clearRect(0, 0, k.width, k.height), l.fillText(c.apply(this, a), 0, 0); var d = k.toDataURL(); l.clearRect(0, 0, k.width, k.height), l.fillText(c.apply(this, b), 0, 0); var e = k.toDataURL(); return d === e } function e(a) { var b; if (!l || !l.fillText) return !1; switch (l.textBaseline = "top", l.font = "600 32px Arial", a) { case "flag": return !(b = d([55356, 56826, 55356, 56819], [55356, 56826, 8203, 55356, 56819])) && (b = d([55356, 57332, 56128, 56423, 56128, 56418, 56128, 56421, 56128, 56430, 56128, 56423, 56128, 56447], [55356, 57332, 8203, 56128, 56423, 8203, 56128, 56418, 8203, 56128, 56421, 8203, 56128, 56430, 8203, 56128, 56423, 8203, 56128, 56447]), !b); case "emoji": return b = d([55358, 56760, 9792, 65039], [55358, 56760, 8203, 9792, 65039]), !b }return !1 } function f(a) { var c = b.createElement("script"); c.src = a, c.defer = c.type = "text/javascript", b.getElementsByTagName("head")[0].appendChild(c) } var g, h, i, j, k = b.createElement("canvas"), l = k.getContext && k.getContext("2d"); for (j = Array("flag", "emoji"), c.supports = { everything: !0, everythingExceptFlag: !0 }, i = 0; i < j.length; i++)c.supports[j[i]] = e(j[i]), c.supports.everything = c.supports.everything && c.supports[j[i]], "flag" !== j[i] && (c.supports.everythingExceptFlag = c.supports.everythingExceptFlag && c.supports[j[i]]); c.supports.everythingExceptFlag = c.supports.everythingExceptFlag && !c.supports.flag, c.DOMReady = !1, c.readyCallback = function () { c.DOMReady = !0 }, c.supports.everything || (h = function () { c.readyCallback() }, b.addEventListener ? (b.addEventListener("DOMContentLoaded", h, !1), a.addEventListener("load", h, !1)) : (a.attachEvent("onload", h), b.attachEvent("onreadystatechange", function () { "complete" === b.readyState && c.readyCallback() })), g = c.source || {}, g.concatemoji ? f(g.concatemoji) : g.wpemoji && g.twemoji && (f(g.twemoji), f(g.wpemoji))) }(window, document, window._wpemojiSettings);
</script>
<style type="text/css">
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<link rel='stylesheet' id='eae-css-css'
href='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/css/4.9.13.css'
type='text/css' media='all' />
<link rel='stylesheet' id='vegas-css-css'
href='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/lib/vegas/4.9.13.css'
type='text/css' media='all' />
<link rel='stylesheet' id='sticky-header-oceanwp-style-css'
href='wp-content/plugins/sticky-header-oceanwp/4.9.13.css' type='text/css' media='all' />
<link rel='stylesheet' id='font-awesome-css'
href='wp-content/themes/oceanwp/assets/css/third/4.7.0.css' type='text/css'
media='all' />
<link rel='stylesheet' id='simple-line-icons-css'
href='wp-content/themes/oceanwp/assets/css/third/2.4.0.css' type='text/css'
media='all' />
<link rel='stylesheet' id='magnific-popup-css'
href='wp-content/themes/oceanwp/assets/css/third/1.0.0.css' type='text/css'
media='all' />
<link rel='stylesheet' id='slick-css' href='wp-content/themes/oceanwp/assets/css/third/1.6.0.css'
type='text/css' media='all' />
<link rel='stylesheet' id='oceanwp-style-css'
href='wp-content/themes/oceanwp/assets/css/1.6.7.css' type='text/css' media='all' />
<style id='oceanwp-style-inline-css' type='text/css'>
.page-template-builder-fullwidth-std .page-header {
display: none;
}
</style>
<link rel='stylesheet' id='elementor-frontend-css'
href='wp-content/plugins/elementor/assets/css/2.7.4.css' type='text/css' media='all' />
<link rel='stylesheet' id='elementor-post-278-css'
href='wp-content/uploads/elementor/css/1570107791.css' type='text/css' media='all' />
<link rel='stylesheet' id='elementor-icons-css'
href='wp-content/plugins/elementor/assets/lib/eicons/css/5.4.0.css' type='text/css'
media='all' />
<link rel='stylesheet' id='elementor-animations-css'
href='wp-content/plugins/elementor/assets/lib/animations/2.7.4.css' type='text/css'
media='all' />
<link rel='stylesheet' id='font-awesome-5-all-css'
href='wp-content/plugins/elementor/assets/lib/font-awesome/css/3.7.2.css' type='text/css'
media='all' />
<link rel='stylesheet' id='font-awesome-4-shim-css'
href='wp-content/plugins/elementor/assets/lib/font-awesome/css/3.7.2_2.css' type='text/css'
media='all' />
<link rel='stylesheet' id='elementor-global-css'
href='wp-content/uploads/elementor/css/1571930855.css' type='text/css' media='all' />
<link rel='stylesheet' id='elementor-post-11-css'
href='wp-content/uploads/elementor/css/1582956487.css' type='text/css' media='all' />
<link rel='stylesheet' id='oe-widgets-style-css'
href='wp-content/plugins/ocean-extra/assets/css/4.9.13.css' type='text/css' media='all' />
<link rel='stylesheet' id='google-fonts-1-css'
href='https://fonts.googleapis.com/css?family=Roboto%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRoboto+Slab%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CMontserrat%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7COvo%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CRaleway%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CPlayfair+Display%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CCinzel%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CPoppins%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic%7CShadows+Into+Light%3A100%2C100italic%2C200%2C200italic%2C300%2C300italic%2C400%2C400italic%2C500%2C500italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%2C900%2C900italic&ver=4.9.13'
type='text/css' media='all' />
<link rel='stylesheet' id='elementor-icons-shared-0-css'
href='wp-content/plugins/elementor/assets/lib/font-awesome/css/5.9.0.css'
type='text/css' media='all' />
<link rel='stylesheet' id='elementor-icons-fa-brands-css'
href='wp-content/plugins/elementor/assets/lib/font-awesome/css/5.9.0_2.css' type='text/css'
media='all' />
<link rel='stylesheet' id='elementor-icons-fa-solid-css'
href='wp-content/plugins/elementor/assets/lib/font-awesome/css/5.9.0_3.css' type='text/css'
media='all' />
<link rel='stylesheet' id='elementor-icons-fa-regular-css'
href='wp-content/plugins/elementor/assets/lib/font-awesome/css/5.9.0_4.css' type='text/css'
media='all' />
<link rel="stylesheet" type="text/css"
href="wp-content/plugins/smart-slider-3/library/media/smartslider.min.css@1580205970.css" media="all" />
<style type="text/css">
.n2-ss-spinner-simple-white-container {
position: absolute;
top: 50%;
left: 50%;
margin: -20px;
background: #fff;
width: 20px;
height: 20px;
padding: 10px;
border-radius: 50%;
z-index: 1000;
}
.n2-ss-spinner-simple-white {
outline: 1px solid RGBA(0, 0, 0, 0);
width: 100%;
height: 100%;
}
.n2-ss-spinner-simple-white:before {
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin-top: -11px;
margin-left: -11px;
}
.n2-ss-spinner-simple-white:not(:required):before {
content: '';
border-radius: 50%;
border-top: 2px solid #333;
border-right: 2px solid transparent;
animation: n2SimpleWhite .6s linear infinite;
}
@keyframes n2SimpleWhite {
to {
transform: rotate(360deg);
}
}
</style>
<script type='text/javascript' src='wp-includes/js/jquery/1.12.4'></script>
<script type='text/javascript' src='wp-includes/js/jquery/1.4.1'></script>
<script type='text/javascript' src='wp-content/plugins/sticky-header-oceanwp/1.0.0'></script>
<script type='text/javascript'
src='wp-content/plugins/elementor/assets/lib/font-awesome/js/3.7.2'></script>
<link rel='https://api.w.org/' href='wp-json/index.html' />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="xmlrpc.xml" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="wp-includes/wlwmanifest.xml" />
<meta name="generator" content="WordPress 4.9.13" />
<link rel="canonical" href="{{route('index')}}" />
<link rel='shortlink' href='index.html' />
<link rel="alternate" type="application/json+oembed"
href="https://penultimatefinance.com/wp-json/oembed/1.0/embed@url=https%253A%252F%252Fwww.penultimatefinance.com%252F" />
<link rel="alternate" type="text/xml+oembed"
href="https://penultimatefinance.com/wp-json/oembed/1.0/embed@url=https%253A%252F%252Fwww.penultimatefinance.com%252F&format=xml" />
<script>var sticky_header_style = "";</script>
<style type="text/css">
.recentcomments a {
display: inline !important;
padding: 0 !important;
margin: 0 !important;
}
</style>
<link rel="icon" href="wp-content/uploads/2019/09/cropped-favicon-32x32.png" sizes="32x32" />
<link rel="icon" href="wp-content/uploads/2019/09/cropped-favicon-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon-precomposed" href="wp-content/uploads/2019/09/cropped-favicon-180x180.png" />
<meta name="msapplication-TileImage"
content="https://www.penultimatefinance.com/wp-content/uploads/2019/09/cropped-favicon-270x270.png" />
<!-- OceanWP CSS -->
<style type="text/css">
/* General CSS */
a:hover,
a.light:hover,
.theme-heading .text::before,
#top-bar-content>a:hover,
#top-bar-social li.oceanwp-email a:hover,
#site-navigation-wrap .dropdown-menu>li>a:hover,
#site-header.medium-header #medium-searchform button:hover,
.oceanwp-mobile-menu-icon a:hover,
.blog-entry.post .blog-entry-header .entry-title a:hover,
.blog-entry.post .blog-entry-readmore a:hover,
.blog-entry.thumbnail-entry .blog-entry-category a,
ul.meta li a:hover,
.dropcap,
.single nav.post-navigation .nav-links .title,
body .related-post-title a:hover,
body #wp-calendar caption,
body .contact-info-widget.default i,
body .contact-info-widget.big-icons i,
body .custom-links-widget .oceanwp-custom-links li a:hover,
body .custom-links-widget .oceanwp-custom-links li a:hover:before,
body .posts-thumbnails-widget li a:hover,
body .social-widget li.oceanwp-email a:hover,
.comment-author .comment-meta .comment-reply-link,
#respond #cancel-comment-reply-link:hover,
#footer-widgets .footer-box a:hover,
#footer-bottom a:hover,
#footer-bottom #footer-bottom-menu a:hover,
.sidr a:hover,
.sidr-class-dropdown-toggle:hover,
.sidr-class-menu-item-has-children.active>a,
.sidr-class-menu-item-has-children.active>a>.sidr-class-dropdown-toggle,
input[type=checkbox]:checked:before {
color: #2642d3
}
input[type="button"],
input[type="reset"],
input[type="submit"],
button[type="submit"],
.button,
#site-navigation-wrap .dropdown-menu>li.btn>a>span,
.thumbnail:hover i,
.post-quote-content,
.omw-modal .omw-close-modal,
body .contact-info-widget.big-icons li:hover i,
body div.wpforms-container-full .wpforms-form input[type=submit],
body div.wpforms-container-full .wpforms-form button[type=submit],
body div.wpforms-container-full .wpforms-form .wpforms-page-button {
background-color: #2642d3
}
.widget-title {
border-color: #2642d3
}
blockquote {
border-color: #2642d3
}
#searchform-dropdown {
border-color: #2642d3
}
.dropdown-menu .sub-menu {
border-color: #2642d3
}
.blog-entry.large-entry .blog-entry-readmore a:hover {
border-color: #2642d3
}
.oceanwp-newsletter-form-wrap input[type="email"]:focus {
border-color: #2642d3
}
.social-widget li.oceanwp-email a:hover {
border-color: #2642d3
}
#respond #cancel-comment-reply-link:hover {
border-color: #2642d3
}
body .contact-info-widget.big-icons li:hover i {
border-color: #2642d3
}
#footer-widgets .oceanwp-newsletter-form-wrap input[type="email"]:focus {
border-color: #2642d3
}
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button[type="submit"]:focus,
.button:hover,
#site-navigation-wrap .dropdown-menu>li.btn>a:hover>span,
.post-quote-author,
.omw-modal .omw-close-modal:hover,
body div.wpforms-container-full .wpforms-form input[type=submit]:hover,
body div.wpforms-container-full .wpforms-form button[type=submit]:hover,
body div.wpforms-container-full .wpforms-form .wpforms-page-button:hover {
background-color: #61ce70
}
a {
color: #2642d3
}
a:hover {
color: #000000
}
/* Header CSS */
#site-header,
.has-transparent-header .is-sticky #site-header,
.has-vh-transparent .is-sticky #site-header.vertical-header,
#searchform-header-replace {
background-color: #000000
}
#site-header.has-header-media .overlay-header-media {
background-color: rgba(0, 0, 0, 0.5)
}
#site-logo #site-logo-inner a img,
#site-header.center-header #site-navigation-wrap .middle-site-logo a img {
max-width: 285px
}
@media (max-width:480px) {
#site-logo #site-logo-inner a img,
#site-header.center-header #site-navigation-wrap .middle-site-logo a img {
max-width: 200px
}
}
.effect-one #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:after,
.effect-three #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:after,
.effect-five #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:before,
.effect-five #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:after,
.effect-nine #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:before,
.effect-nine #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:after {
background-color: #c4c4c4
}
.effect-four #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:before,
.effect-four #site-navigation-wrap .dropdown-menu>li>a.menu-link>span:after,
.effect-seven #site-navigation-wrap .dropdown-menu>li>a.menu-link:hover>span:after,
.effect-seven #site-navigation-wrap .dropdown-menu>li.sfHover>a.menu-link>span:after {
color: #c4c4c4
}
.effect-seven #site-navigation-wrap .dropdown-menu>li>a.menu-link:hover>span:after,
.effect-seven #site-navigation-wrap .dropdown-menu>li.sfHover>a.menu-link>span:after {
text-shadow: 10px 0 #c4c4c4, -10px 0 #c4c4c4
}
#site-navigation-wrap .dropdown-menu>li>a,
.oceanwp-mobile-menu-icon a,
#searchform-header-replace-close {
color: #c4c4c4
}
#site-navigation-wrap .dropdown-menu>li>a:hover,
.oceanwp-mobile-menu-icon a:hover,
#searchform-header-replace-close:hover {
color: #00d458
}
.dropdown-menu .sub-menu,
#searchform-dropdown,
.current-shop-items-dropdown {
border-color: #00d458
}
.dropdown-menu ul li a.menu-link {
color: #00d458
}
a.sidr-class-toggle-sidr-close {
background-color: #ffffff
}
#sidr,
#mobile-dropdown {
background-color: #000000
}
body .sidr a:hover,
body .sidr-class-dropdown-toggle:hover,
body .sidr-class-dropdown-toggle .fa,
body .sidr-class-menu-item-has-children.active>a,
body .sidr-class-menu-item-has-children.active>a>.sidr-class-dropdown-toggle,
#mobile-dropdown ul li a:hover,
#mobile-dropdown ul li a .dropdown-toggle:hover,
#mobile-dropdown .menu-item-has-children.active>a,
#mobile-dropdown .menu-item-has-children.active>a>.dropdown-toggle,
#mobile-fullscreen ul li a:hover,
#mobile-fullscreen .oceanwp-social-menu.simple-social ul li a:hover {
color: #18d39f
}
#mobile-fullscreen a.close:hover .close-icon-inner,
#mobile-fullscreen a.close:hover .close-icon-inner::after {
background-color: #18d39f
}
/* Footer Widgets CSS */
#footer-widgets {
padding: 30px 0 10px 0
}
#footer-widgets {
background-color: #0c0c0c
}
/* Typography CSS */
#site-navigation-wrap .dropdown-menu>li>a,
#site-header.full_screen-header .fs-dropdown-menu>li>a,
#site-header.top-header #site-navigation-wrap .dropdown-menu>li>a,
#site-header.center-header #site-navigation-wrap .dropdown-menu>li>a,
#site-header.medium-header #site-navigation-wrap .dropdown-menu>li>a,
.oceanwp-mobile-menu-icon a {
font-weight: 600
}
</style>
<script
type="text/javascript">(function () { var N = this; N.N2_ = N.N2_ || { r: [], d: [] }, N.N2R = N.N2R || function () { N.N2_.r.push(arguments) }, N.N2D = N.N2D || function () { N.N2_.d.push(arguments) } }).call(window); if (!window.n2jQuery) { window.n2jQuery = { ready: function (cb) { console.error('n2jQuery will be deprecated!'); N2R(['$'], cb) } } } window.nextend = { localization: {}, ready: function (cb) { console.error('nextend.ready will be deprecated!'); N2R('documentReady', function ($) { cb.call(window, $) }) } }; nextend.fontsLoaded = false; nextend.fontsLoadedActive = function () { nextend.fontsLoaded = true }; var requiredFonts = ["Roboto:n3", "Roboto:n4", "Average:n3", "Average:n4"], fontData = { google: { families: ["Roboto:300,400", "Average:300,400:latin"] }, active: function () { nextend.fontsLoadedActive() }, inactive: function () { nextend.fontsLoadedActive() }, fontactive: function (f, s) { fontData.resolveFont(f + ':' + s) }, fontinactive: function (f, s) { fontData.resolveFont(f + ':' + s) }, resolveFont: function (n) { for (var i = requiredFonts.length - 1; i >= 0; i--) { if (requiredFonts[i] === n) { requiredFonts.splice(i, 1); break } } if (!requiredFonts.length) nextend.fontsLoadedActive() } }; if (typeof WebFontConfig !== 'undefined' && typeof WebFont === 'undefined') { var _WebFontConfig = WebFontConfig; for (var k in WebFontConfig) { if (k == 'active') { fontData.active = function () { nextend.fontsLoadedActive(); _WebFontConfig.active() } } else if (k == 'inactive') { fontData.inactive = function () { nextend.fontsLoadedActive(); _WebFontConfig.inactive() } } else if (k == 'fontactive') { fontData.fontactive = function (f, s) { fontData.resolveFont(f + ':' + s); _WebFontConfig.fontactive.apply(this, arguments) } } else if (k == 'fontinactive') { fontData.fontinactive = function (f, s) { fontData.resolveFont(f + ':' + s); _WebFontConfig.fontinactive.apply(this, arguments) } } else if (k == 'google') { if (typeof WebFontConfig.google.families !== 'undefined') { for (var i = 0; i < WebFontConfig.google.families.length; i++) { fontData.google.families.push(WebFontConfig.google.families[i]) } } } else { fontData[k] = WebFontConfig[k] } } } fontData.classes = true; fontData.events = true; if (typeof WebFont === 'undefined') { window.WebFontConfig = fontData } else { WebFont.load(fontData) }</script>
<script type="text/javascript"
src="wp-content/plugins/smart-slider-3/nextend/media/dist/n2.min.js@1580205970"></script>
<script type="text/javascript"
src="wp-content/plugins/smart-slider-3/nextend/media/dist/nextend-frontend.min.js@1580205970"></script>
<script type="text/javascript"
src="wp-content/plugins/smart-slider-3/library/media/dist/smartslider-frontend.min.js@1580205970"></script>
<script type="text/javascript"
src="wp-content/plugins/smart-slider-3/library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.min.js@1580205970"></script>
<script type="text/javascript"
src="wp-content/plugins/smart-slider-3/nextend/media/dist/nextend-webfontloader.min.js@1580205970"></script>
<script
type="text/javascript">N2R('documentReady', function ($) { nextend.fontsDeferred = $.Deferred(); if (nextend.fontsLoaded) { nextend.fontsDeferred.resolve() } else { nextend.fontsLoadedActive = function () { nextend.fontsLoaded = true; nextend.fontsDeferred.resolve() }; var intercalCounter = 0; nextend.fontInterval = setInterval(function () { if (intercalCounter > 3 || document.documentElement.className.indexOf('wf-active') !== -1) { nextend.fontsLoadedActive(); clearInterval(nextend.fontInterval) } intercalCounter++ }, 1000) } N2R(["nextend-frontend", "smartslider-frontend", "smartslider-simple-type-frontend"], function () { new N2Classes.SmartSliderSimple('#n2-ss-2', { "admin": false, "translate3d": 1, "callbacks": "", "background.video.mobile": 1, "align": "normal", "isDelayed": 0, "load": { "fade": 1, "scroll": 0 }, "playWhenVisible": 1, "playWhenVisibleAt": 0.5, "responsive": { "desktop": 1, "tablet": 1, "mobile": 1, "onResizeEnabled": true, "type": "fullwidth", "downscale": 1, "upscale": 1, "minimumHeight": 0, "maximumHeight": 600, "maximumSlideWidth": 3000, "maximumSlideWidthLandscape": 3000, "maximumSlideWidthTablet": 3000, "maximumSlideWidthTabletLandscape": 3000, "maximumSlideWidthMobile": 3000, "maximumSlideWidthMobileLandscape": 3000, "maximumSlideWidthConstrainHeight": 0, "forceFull": 1, "forceFullOverflowX": "body", "forceFullHorizontalSelector": "", "constrainRatio": 1, "sliderHeightBasedOn": "real", "decreaseSliderHeight": 0, "focusUser": 1, "focusEdge": "auto", "deviceModes": { "desktopPortrait": 1, "desktopLandscape": 0, "tabletPortrait": 1, "tabletLandscape": 0, "mobilePortrait": 1, "mobileLandscape": 0 }, "normalizedDeviceModes": { "unknownUnknown": ["unknown", "Unknown"], "desktopPortrait": ["desktop", "Portrait"], "desktopLandscape": ["desktop", "Portrait"], "tabletPortrait": ["tablet", "Portrait"], "tabletLandscape": ["tablet", "Portrait"], "mobilePortrait": ["mobile", "Portrait"], "mobileLandscape": ["mobile", "Portrait"] }, "verticalRatioModifiers": { "unknownUnknown": 1, "desktopPortrait": 1, "desktopLandscape": 1, "tabletPortrait": 1, "tabletLandscape": 1, "mobilePortrait": 1, "mobileLandscape": 1 }, "minimumFontSizes": { "desktopPortrait": 4, "desktopLandscape": 4, "tabletPortrait": 4, "tabletLandscape": 4, "mobilePortrait": 4, "mobileLandscape": 4 }, "ratioToDevice": { "Portrait": { "tablet": 0.7, "mobile": 0.5 }, "Landscape": { "tablet": 0, "mobile": 0 } }, "sliderWidthToDevice": { "desktopPortrait": 1300, "desktopLandscape": 1300, "tabletPortrait": 910, "tabletLandscape": 0, "mobilePortrait": 650, "mobileLandscape": 0 }, "basedOn": "combined", "orientationMode": "width_and_height", "overflowHiddenPage": 0, "desktopPortraitScreenWidth": 1200, "tabletPortraitScreenWidth": 800, "mobilePortraitScreenWidth": 440, "tabletLandscapeScreenWidth": 800, "mobileLandscapeScreenWidth": 440, "focus": { "offsetTop": "#wpadminbar", "offsetBottom": "" } }, "controls": { "mousewheel": 0, "touch": "horizontal", "keyboard": 1, "blockCarouselInteraction": 1 }, "lazyLoad": 0, "lazyLoadNeighbor": 0, "blockrightclick": 0, "maintainSession": 0, "autoplay": { "enabled": 1, "start": 1, "duration": 10000, "autoplayToSlide": -1, "autoplayToSlideIndex": -1, "allowReStart": 0, "pause": { "click": 1, "mouse": "0", "mediaStarted": 1 }, "resume": { "click": 0, "mouse": 0, "mediaEnded": 1, "slidechanged": 0 } }, "perspective": 1500, "layerMode": { "playOnce": 0, "playFirstLayer": 1, "mode": "skippable", "inAnimation": "mainInEnd" }, "initCallbacks": ["N2D(\"SmartSliderWidgetArrowImage\",function(i,e){function s(e,s,t,h){this.slider=e,this.slider.started(i.proxy(this.start,this,s,t,h))}return s.prototype.start=function(e,s,t){return this.slider.sliderElement.data(\"arrow\")?!1:(this.slider.sliderElement.data(\"arrow\",this),this.deferred=i.Deferred(),this.slider.sliderElement.on(\"SliderDevice\",i.proxy(this.onDevice,this)).trigger(\"addWidget\",this.deferred),this.previous=i(\"#\"+this.slider.elementID+\"-arrow-previous\").on(\"click\",i.proxy(function(i){i.stopPropagation(),this.slider[this.slider.getDirectionPrevious()]()},this)),this.previousResize=this.previous.find(\".n2-resize\"),0===this.previousResize.length&&(this.previousResize=this.previous),this.next=i(\"#\"+this.slider.elementID+\"-arrow-next\").on(\"click\",i.proxy(function(i){i.stopPropagation(),this.slider[this.slider.getDirectionNext()]()},this)),this.nextResize=this.next.find(\".n2-resize\"),0===this.nextResize.length&&(this.nextResize=this.next),this.desktopRatio=e,this.tabletRatio=s,this.mobileRatio=t,void i.when(this.previous.n2imagesLoaded(),this.next.n2imagesLoaded()).always(i.proxy(this.loaded,this)))},s.prototype.loaded=function(){this.previous.css(\"display\",\"inline-block\"),this.previousResize.css(\"display\",\"inline-block\"),this.previousWidth=this.previousResize.width(),this.previousHeight=this.previousResize.height(),this.previousResize.css(\"display\",\"\"),this.previous.css(\"display\",\"\"),this.next.css(\"display\",\"inline-block\"),this.nextResize.css(\"display\",\"inline-block\"),this.nextWidth=this.nextResize.width(),this.nextHeight=this.nextResize.height(),this.nextResize.css(\"display\",\"\"),this.next.css(\"display\",\"\"),this.previousResize.find(\"img\").css(\"width\",\"100%\"),this.nextResize.find(\"img\").css(\"width\",\"100%\"),this.onDevice(null,{device:this.slider.responsive.getDeviceMode()}),this.deferred.resolve()},s.prototype.onDevice=function(i,e){var s=1;switch(e.device){case\"tablet\":s=this.tabletRatio;break;case\"mobile\":s=this.mobileRatio;break;default:s=this.desktopRatio}this.previousResize.width(this.previousWidth*s),this.previousResize.height(this.previousHeight*s),this.nextResize.width(this.nextWidth*s),this.nextResize.height(this.nextHeight*s)},s});", "new N2Classes.SmartSliderWidgetArrowImage(this, 1, 0.7, 0.5);", "N2D(\"SmartSliderWidgetBulletTransition\",function(t,e){function i(e,i){this.slider=e,this.slider.started(t.proxy(this.start,this,i))}return i.prototype.start=function(e){if(this.slider.sliderElement.data(\"bullet\"))return!1;if(this.slider.sliderElement.data(\"bullet\",this),this.axis=\"horizontal\",this.offset=0,this.parameters=e,this.bar=this.slider.sliderElement.find(\".nextend-bullet-bar\"),this.event=\"universalclick\",\"mouseenter\"===this.parameters.action&&(this.event=\"universalenter\"),this.slider.sliderElement.on({slideCountChanged:t.proxy(this.onSlideCountChanged,this),sliderSwitchTo:t.proxy(this.onSlideSwitch,this)}),this.slider.firstSlideReady.done(t.proxy(this.onFirstSlideSet,this)),0===e.overlay){var i=!1;switch(e.area){case 1:i=\"Top\";break;case 12:i=\"Bottom\";break;case 5:i=\"Left\",this.axis=\"vertical\";break;case 8:i=\"Right\",this.axis=\"vertical\"}i&&(this.offset=parseFloat(this.bar.data(\"offset\")),this.slider.responsive.addStaticMargin(i,this))}},i.prototype.onFirstSlideSet=function(t){this.onSlideCountChanged(),this.$dots.eq(t.index).addClass(\"n2-active\").attr(\"aria-current\",\"true\")},i.prototype.onDotClick=function(e,i){this.slider.directionalChangeTo(e),t(i.target).blur()},i.prototype.onSlideSwitch=function(t,e){this.$dots.filter(\".n2-active\").removeClass(\"n2-active\").removeAttr(\"aria-current\"),this.$dots.eq(e).addClass(\"n2-active\").attr(\"aria-current\",\"true\")},i.prototype.isVisible=function(){return this.bar.is(\":visible\")},i.prototype.getSize=function(){return\"horizontal\"===this.axis?this.bar.height()+this.offset:this.bar.width()+this.offset},i.prototype.showThumbnail=function(e,i){var s=this.getThumbnail(e);NextendTween.to(s,.3,{opacity:1}),this.$dots.eq(e).one(\"universalleave.thumbnailleave\",t.proxy(this.hideThumbnail,this,e,s))},i.prototype.hideThumbnail=function(t,e,i){i.stopPropagation(),NextendTween.to(e,.3,{opacity:0,onComplete:function(){e.remove()}})},i.prototype.getThumbnail=function(e){var i=this.$dots.eq(e),s=this.slider.sliderElement.offset(),a=i.offset(),r=i.outerWidth(),o=i.outerHeight(),n=t(\"<div\/>\").append(t(\"<div\/>\").css({width:this.parameters.thumbnailWidth,height:this.parameters.thumbnailHeight,backgroundImage:'url(\"'+this.slider.slides[e].getThumbnail()+'\")'}).addClass(\"n2-ss-bullet-thumbnail\")).addClass(this.parameters.thumbnailStyle).addClass(\"n2-ss-bullet-thumbnail-container\").appendTo(this.slider.sliderElement);switch(this.parameters.thumbnailPosition){case\"right\":n.css({left:a.left-s.left+r,top:a.top-s.top+o\/2-n.outerHeight(!0)\/2});break;case\"left\":n.css({left:a.left-s.left-n.outerWidth(!0),top:a.top-s.top+o\/2-n.outerHeight(!0)\/2});break;case\"top\":n.css({left:a.left-s.left+r\/2-n.outerWidth(!0)\/2,top:a.top-s.top-n.outerHeight(!0)});break;case\"bottom\":n.css({left:a.left-s.left+r\/2-n.outerWidth(!0)\/2,top:a.top-s.top+o})}return i.data(\"thumbnail\",n),n},i.prototype.onSlideCountChanged=function(){this.bar.html(\"\");for(var e=0;e<this.slider.slides.length;e++){var i=this.slider.slides[e],s=t('<div class=\"n2-ow n2-bullet '+this.parameters.dotClasses+'\" tabindex=\"0\"><\/div>').attr(\"role\",\"button\").attr(\"aria-label\",i.getTitle()).appendTo(this.bar);switch(s.wrap(t('<div class=\"n2-ow\"><\/div>').on(this.event,t.proxy(this.onDotClick,this,e))).on(\"n2Activate\",t.proxy(this.onDotClick,this,e)),this.parameters.mode){case\"numeric\":s.html(e+1);break;case\"title\":s.html(i.getTitle())}if(1===this.parameters.thumbnail){var a=i.getThumbnail();a&&s.on({universalenter:t.proxy(this.showThumbnail,this,e)},{leaveOnSecond:!0})}}this.$dots=this.bar.find(\">div>*\")},i});", "new N2Classes.SmartSliderWidgetBulletTransition(this, {\"overlay\":0,\"area\":10,\"dotClasses\":\"n2-style-61eca1b6fdf733fdba302f7e87f2740b-dot \",\"mode\":\"\",\"action\":\"click\"});"], "allowBGImageAttachmentFixed": false, "bgAnimationsColor": "RGBA(51,51,51,1)", "bgAnimations": 0, "mainanimation": { "type": "horizontal", "duration": 600, "delay": 0, "ease": "easeOutQuad", "parallax": 0, "shiftedBackgroundAnimation": 0 }, "carousel": 1, "dynamicHeight": 0 }) }) });</script>
</head>
<body
class="home page-template-default page page-id-11 wp-custom-logo oceanwp-theme sidebar-mobile default-breakpoint content-full-screen page-header-disabled has-breadcrumbs elementor-default elementor-page elementor-page-11">
<div id="outer-wrap" class="site clr">
<div id="wrap" class="clr">
<header id="site-header" class="minimal-header effect-one clr" data-height="74" itemscope="itemscope"
itemtype="http://schema.org/WPHeader">
<div id="site-header-inner" class="clr container">
<div id="site-logo" class="clr" itemscope itemtype="http://schema.org/Brand">
<div id="site-logo-inner" class="clr">
<a href="{{route('index')}}" class="custom-logo-link" rel="home" itemprop="url"><img width="742"
height="161" src="wp-content/uploads/2019/09/logo-1.png" class="custom-logo"
alt="Penultimate Finance" itemprop="logo"
srcset="wp-content/uploads/2019/09/logo-1.png 742w, wp-content/uploads/2019/09/logo-1-300x65.png 300w"
sizes="(max-width: 742px) 100vw, 742px" /></a>
</div><!-- #site-logo-inner -->
</div><!-- #site-logo -->
<div id="site-navigation-wrap" class="clr">
<nav id="site-navigation" class="navigation main-navigation clr" itemscope="itemscope"
itemtype="http://schema.org/SiteNavigationElement">
<ul id="menu-menu" class="main-menu dropdown-menu sf-menu">
<li id="menu-item-305"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-305 nav-no-click">
<a href="{{route('index')}}" class="menu-link"><span class="text-wrap">COMPANY <span
class="nav-arrow fa fa-angle-down"></span></span></a>
<ul class="sub-menu">
<li id="menu-item-949"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-949">
<a href="about.html" class="menu-link"><span class="text-wrap">About
Us</span></a></li>
<li id="menu-item-951"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-951">
<a href="testimony.html" class="menu-link"><span class="text-wrap">What Our
Investors Say</span></a></li>
<li id="menu-item-1072"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1072">
<a href="terms-and-condition.html" class="menu-link"><span
class="text-wrap">T&C</span></a></li>
</ul>
</li>
<li id="menu-item-306"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-306"><a
href="contact.html" class="menu-link"><span class="text-wrap">CONTACT
US</span></a></li>
<li id="menu-item-950"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-950"><a
href="faq.html" class="menu-link"><span class="text-wrap">F.A.Q</span></a></li>
<li id="menu-item-20"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20"><a
href='{{ route("login") }}' class="menu-link"><span
class="text-wrap">LOGIN</span></a></li>
<li id="menu-item-19"
class="menu-item menu-item-type-custom menu-item-object-custom menu-item-19"><a
href='{{ route("register") }}' class="menu-link"><span
class="text-wrap">REGISTER</span></a></li>
</ul>
</nav><!-- #site-navigation -->
</div><!-- #site-navigation-wrap -->
<div class="oceanwp-mobile-menu-icon clr mobile-right">
<a href="{{route('index')}}" class="mobile-menu">
<i class="fa fa-bars"></i>
<span class="oceanwp-text">Menu</span>
</a>
</div><!-- #oceanwp-mobile-menu-navbar -->
</div><!-- #site-header-inner -->
</header><!-- #site-header -->
</div>
</div>
<div style="margin-top: 100px">
</div>
@yield("body")
<div style="margin-top: 20px">
<div>
<footer id="footer" class="site-footer" itemscope="itemscope" itemtype="http://schema.org/WPFooter">
<div id="footer-inner" class="clr">
<div id="footer-widgets" class="oceanwp-row clr">
<div class="footer-widgets-inner container">
<div data-elementor-type="wp-post" data-elementor-id="278" class="elementor elementor-278"
data-elementor-settings="[]">
<div class="elementor-inner">
<div class="elementor-section-wrap">
<section
class="has_eae_slider elementor-element elementor-element-1e51ad02 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default elementor-section elementor-top-section"
data-id="1e51ad02" data-element_type="section"
data-settings="{"background_background":"classic","stretch_section":"section-stretched"}">
<div class="elementor-container elementor-column-gap-default">
<div class="elementor-row">
<div class="has_eae_slider elementor-element elementor-element-4fab9254 elementor-column elementor-col-100 elementor-top-column"
data-id="4fab9254" data-element_type="column">
<div class="elementor-column-wrap elementor-element-populated">
<div class="elementor-widget-wrap">
<div class="elementor-element elementor-element-25610f11 elementor-widget elementor-widget-text-editor"
data-id="25610f11" data-element_type="widget"
data-widget_type="text-editor.default">
<div class="elementor-widget-container">
<div
class="elementor-text-editor elementor-clearfix">
<div
style="position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; float: left; width: 250px; color: #999999; font-family: Lato, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; background-color: #0c0c0c;">
<h4
style="line-height: 28px; color: #2cbe4e; margin-bottom: 15px; font-size: 16px; text-transform: uppercase;">
OUR COMPANY</h4>
<div>
<ul
style="margin-top: 0px; margin-bottom: 10px; list-style-type: none;">
<li style="margin-bottom: 5px;">
HOME</li>
<li style="margin-bottom: 5px;">
<a style="color: #999999; text-transform: uppercase; font-size: 13px; font-weight: 600; font-family: 'Open Sans', sans-serif; transition-duration: 0.1s;"
href="963.html">ABOUT
US</a></li>
<li style="margin-bottom: 5px;">
<a style="color: #999999; text-transform: uppercase; font-size: 13px; font-weight: 600; font-family: 'Open Sans', sans-serif; transition-duration: 0.1s;"
href="contact.html"><b>CONTACT
Us</b></a></li>
<li><a
href="502.html">T&C</a>
</li>
</ul>
</div>
</div>
<div
style="position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; float: left; width: 250px; color: #999999; font-family: Lato, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; background-color: #0c0c0c;">
<h4
style="line-height: 28px; color: #2cbe4e; margin-bottom: 15px; font-size: 16px; text-transform: uppercase;">
MORE TO EXPLORE</h4>
<div>
<ul
style="margin-top: 0px; margin-bottom: 10px; list-style-type: none;">
<li style="margin-bottom: 5px;">
<a style="color: #999999; text-transform: uppercase; font-size: 13px; font-weight: 600; font-family: 'Open Sans', sans-serif; transition-duration: 0.1s;"
href="1019.html">FAQ</a>
</li>
<li style="margin-bottom: 5px;">
<a style="color: #999999; text-transform: uppercase; font-size: 13px; font-weight: 600; font-family: 'Open Sans', sans-serif; transition-duration: 0.1s;"
href="502.html">TERMS
OF SERVICES</a></li>
<li style="margin-bottom: 5px;">
<a style="color: #999999; text-transform: uppercase; font-size: 13px; font-weight: 600; font-family: 'Open Sans', sans-serif; transition-duration: 0.1s;"
href='{{ route("register") }}'>REGISTER</a>
</li>
<li style="margin-bottom: 5px;">
<a style="color: #999999; text-transform: uppercase; font-size: 13px; font-weight: 600; font-family: 'Open Sans', sans-serif; transition-duration: 0.1s;"
href='{{ route("login") }}'>LOGIN</a>
</li>
</ul>
</div>
</div>
<div
style="position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px; float: left; width: 250px; background-color: #0c0c0c;">
<h4
style="color: #2cbe4e; font-family: Lato, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; line-height: 28px; margin-bottom: 15px; text-transform: uppercase;">
<b>CONTACT US</b></h4>
<div>
<div style="padding-bottom: 12px;">
<span
style="color: #999999; font-family: Open Sans, sans-serif;"><span
style="font-size: 13px; text-transform: uppercase;"><b> 8221
Preston Ct, Jessup, MD
20794, United
States</b></span></span>
</div>
<div
style="color: #999999; font-family: 'Open Sans', sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 600; padding-bottom: 12px; text-transform: uppercase;">
info@penultimatefinance.com
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section
class="has_eae_slider elementor-element elementor-element-c0e41f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default elementor-section elementor-top-section"
data-id="c0e41f2" data-element_type="section"
data-settings="{"background_background":"classic"}">
<div class="elementor-container elementor-column-gap-default">
<div class="elementor-row">
<div class="has_eae_slider elementor-element elementor-element-4328f48 elementor-column elementor-col-50 elementor-top-column"
data-id="4328f48" data-element_type="column">
<div class="elementor-column-wrap">
<div class="elementor-widget-wrap">
</div>
</div>
</div>
<div class="has_eae_slider elementor-element elementor-element-1d9af19 elementor-hidden-phone elementor-column elementor-col-50 elementor-top-column"
data-id="1d9af19" data-element_type="column">
<div class="elementor-column-wrap elementor-element-populated">
<div class="elementor-widget-wrap">
<div class="elementor-element elementor-element-2532978 elementor-widget elementor-widget-image"
data-id="2532978" data-element_type="widget"
data-widget_type="image.default">
<div class="elementor-widget-container">
<div class="elementor-image">
<img width="742" height="161"
src="wp-content/uploads/2019/09/logo-1.png"
class="attachment-large size-large" alt=""
srcset="wp-content/uploads/2019/09/logo-1.png 742w, wp-content/uploads/2019/09/logo-1-300x65.png 300w"
sizes="(max-width: 742px) 100vw, 742px" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div><!-- .container -->
</div><!-- #footer-widgets -->
<div id="footer-bottom" class="clr no-footer-nav">
<div id="footer-bottom-inner" class="container clr">
<div id="copyright" class="clr" role="contentinfo">
Copyright 2020 -Penultimate Finance. All Rights Reserved </div><!-- #copyright -->
</div><!-- #footer-bottom-inner -->
</div><!-- #footer-bottom -->
</div><!-- #footer-inner -->
</footer><!-- #footer -->
</div><!-- #wrap -->
</div><!-- #outer-wrap -->
<a id="scroll-top" class="scroll-top-right" href="{{route('index')}}"><span class="fa fa-angle-up"></span></a>
<div id="sidr-close">
<a href="{{route('index')}}" class="toggle-sidr-close">
<i class="icon icon-close"></i><span class="close-text">Close </span>
</a>
</div>
<!--Start of Tawk.to Script (0.3.3)-->
<script type="text/javascript">
var Tawk_API = Tawk_API || {};
var Tawk_LoadStart = new Date();
(function () {
var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0];
s1.async = true;
s1.src = 'https://embed.tawk.to/5e6cc3838d24fc226587906e/default';
s1.charset = 'UTF-8';
s1.setAttribute('crossorigin', '*');
s0.parentNode.insertBefore(s1, s0);
})();
</script>
<!--End of Tawk.to Script (0.3.3)-->
<link rel='stylesheet' id='ccpw-bootstrap-css'
href='wp-content/plugins/cryptocurrency-price-ticker-widget/assets/css/4.9.13.css'
type='text/css' media='all' />
<link rel='stylesheet' id='ccpw-custom-icons-css'
href='wp-content/plugins/cryptocurrency-price-ticker-widget/assets/css/4.9.13_2.css'
type='text/css' media='all' />
<link rel='stylesheet' id='ccpw-styles-css'
href='wp-content/plugins/cryptocurrency-price-ticker-widget/assets/css/ccpw-styles.css' type='text/css'
media='all' />
<style id='ccpw-styles-inline-css' type='text/css'>
.tickercontainer #ccpw-ticker-widget-35 {
background-color: #ffffff;
}
.tickercontainer #ccpw-ticker-widget-35 span.name,
.tickercontainer #ccpw-ticker-widget-35 .ccpw-credits a {
color: #000000;
}
.tickercontainer #ccpw-ticker-widget-35 span.coin_symbol {
color: #000000;
}
.tickercontainer #ccpw-ticker-widget-35 span.price {
color: #000000;
}
.tickercontainer .price-value {
color: #000000;
}
.ccpw-header-ticker-fixedbar {
top: 33px !important;
}
</style>
<script type='text/javascript'>
/* <![CDATA[ */
var eae_editor = { "plugin_url": "https:\/\/www.penultimatefinance.com\/wp-content\/plugins\/addon-elements-for-elementor-page-builder\/" };
/* ]]> */
</script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/js/1.0'></script>
<script type='text/javascript' src='wp-includes/js/3.2.0'></script>
<script type='text/javascript' src='wp-includes/js/3.3.2'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/js/1_2.0'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/js/1_3.0'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/lib/1.9'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/lib/vegas/2.4.0'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/lib/swiper/js/4.4.6'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/lib/isotope/2.6.2'></script>
<script type='text/javascript'
src='wp-content/plugins/addon-elements-for-elementor-page-builder/assets/lib/tilt/4.9.13'></script>
<script type='text/javascript'
src='wp-content/themes/oceanwp/assets/js/third/1.6.7'></script>
<script type='text/javascript' src='wp-content/themes/oceanwp/assets/js/third/1.6_2.7'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var oceanwpLocalize = { "isRTL": "", "menuSearchStyle": "disabled", "sidrSource": "#sidr-close, #site-navigation", "sidrDisplace": "1", "sidrSide": "left", "sidrDropdownTarget": "icon", "verticalHeaderTarget": "icon", "customSelects": ".woocommerce-ordering .orderby, #dropdown_product_cat, .widget_categories select, .widget_archive select, .single-product .variations_form .variations select", "ajax_url": "https:\/\/www.penultimatefinance.com\/wp-admin\/admin-ajax.php" };
/* ]]> */
</script>
<script type='text/javascript' src='wp-content/themes/oceanwp/assets/js/1.6.7'></script>
<script type='text/javascript' src='wp-includes/js/4.9.13'></script>
<!--[if lt IE 9]>
<script type='text/javascript' src='https://www.penultimatefinance.com/wp-content/themes/oceanwp/assets/js//third/html5.min.js?ver=1.6.7'></script>
<![endif]-->
<script type='text/javascript'>
jQuery(document).ready(function ($) {
$(".ccpw-ticker-cont").fadeIn();
});
</script>
<script type='text/javascript' src='https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.min.js'></script>
<script type='text/javascript'>
jQuery(document).ready(function ($) {
$(".ccpw-ticker-cont #ccpw-ticker-widget-35").each(function (index) {
var tickerCon = $(this);
var ispeed = Number(tickerCon.attr("data-tickerspeed"));
$(this).bxSlider({
ticker: true,
minSlides: 1,
maxSlides: 12,
slideWidth: "auto",
tickerHover: true,
wrapperClass: "tickercontainer",
speed: ispeed + ispeed,
infiniteLoop: true
});
});
});
</script>
<script type='text/javascript'
src='https://penultimatefinance.com/wp-content/plugins/elementor/assets/js/2.7.4'></script>
<script type='text/javascript' src='https://penultimatefinance.com/wp-includes/js/jquery/ui/1.11.4'></script>
<script type='text/javascript'
src='https://penultimatefinance.com/wp-content/plugins/elementor/assets/lib/dialog/4.7.3'></script>
<script type='text/javascript'
src='https://penultimatefinance.com/wp-content/plugins/elementor/assets/lib/waypoints/4.0.2'></script>
<script type='text/javascript'
src='https://penultimatefinance.com/wp-content/plugins/elementor/assets/lib/swiper/4.4.6'></script>
<script type='text/javascript'>
var elementorFrontendConfig = { "environmentMode": { "edit": false, "wpPreview": false }, "is_rtl": false, "breakpoints": { "xs": 0, "sm": 480, "md": 768, "lg": 1025, "xl": 1440, "xxl": 1600 }, "version": "2.7.4", "urls": { "assets": "https:\/\/www.penultimatefinance.com\/wp-content\/plugins\/elementor\/assets\/" }, "settings": { "page": [], "general": { "elementor_global_image_lightbox": "yes", "elementor_enable_lightbox_in_editor": "yes" } }, "post": { "id": 11, "title": "Penultimate Finance", "excerpt": "" } };
</script>
<script type='text/javascript' src='https://penultimatefinance.com/wp-content/plugins/elementor/assets/js/2.7_2.4'></script>
</body>
</html>
| 64.190205
| 9,958
| 0.608403
|
6dbc73138d45366434dce034e08214304ccb671b
| 8,018
|
rs
|
Rust
|
libcerberus/src/runner.rs
|
CPSSD/cerberus
|
7368332255984c02de930d4590b681100d6ba401
|
[
"MIT"
] | null | null | null |
libcerberus/src/runner.rs
|
CPSSD/cerberus
|
7368332255984c02de930d4590b681100d6ba401
|
[
"MIT"
] | null | null | null |
libcerberus/src/runner.rs
|
CPSSD/cerberus
|
7368332255984c02de930d4590b681100d6ba401
|
[
"MIT"
] | null | null | null |
use std::collections::HashMap;
use std::io::{stdin, stdout};
use chrono::prelude::*;
use clap::{App, ArgMatches, SubCommand};
use serde::de::DeserializeOwned;
use serde::Serialize;
use serde_json;
use uuid::Uuid;
use super::VERSION;
use combiner::Combine;
use emitter::IntermediateVecEmitter;
use errors::*;
use intermediate::IntermediateInputKV;
use io::*;
use mapper::Map;
use partition::{Partition, PartitionInputKV};
use reducer::Reduce;
use registry::UserImplRegistry;
use serialise::{FinalOutputObject, FinalOutputObjectEmitter, IntermediateOutputObject,
IntermediateOutputPair, VecEmitter};
/// `parse_command_line` uses `clap` to parse the command-line arguments passed to the payload.
///
/// The output of this function is required by the `run` function, to decide what subcommand to
/// run.
pub fn parse_command_line<'a>() -> ArgMatches<'a> {
let current_time = Utc::now();
let id = Uuid::new_v4();
let payload_name = format!("{}_{}", current_time.format("%+"), id);
let app = App::new(payload_name)
.version(VERSION.unwrap_or("unknown"))
.subcommand(SubCommand::with_name("map"))
.subcommand(SubCommand::with_name("reduce"))
.subcommand(SubCommand::with_name("combine"))
.subcommand(SubCommand::with_name("has-combine"))
.subcommand(SubCommand::with_name("sanity-check"));
app.get_matches()
}
/// `run` begins the primary operations of the payload, and delegates to sub-functions.
///
/// # Arguments
///
/// `matches` - The output of the `parse_command_line` function.
/// `registry` - The output of the `register_mapper_reducer` function.
pub fn run<M, R, P, C>(matches: &ArgMatches, registry: &UserImplRegistry<M, R, P, C>) -> Result<()>
where
M: Map,
R: Reduce<M::Key, M::Value>,
P: Partition<M::Key, M::Value>,
C: Combine<M::Key, M::Value>,
{
match matches.subcommand_name() {
Some("map") => {
run_map(registry.mapper, registry.partitioner, registry.combiner)
.chain_err(|| "Error running map")?;
Ok(())
}
Some("reduce") => {
run_reduce(registry.reducer).chain_err(|| "Error running reduce")?;
Ok(())
}
Some("combine") => {
let combiner = registry
.combiner
.chain_err(|| "Attempt to run combine command when combiner is not implemented")?;
run_combine(combiner).chain_err(|| "Error running combine")?;
Ok(())
}
Some("has-combine") => {
run_has_combine(registry.combiner);
Ok(())
}
Some("sanity-check") => {
run_sanity_check();
Ok(())
}
None => {
eprintln!("{}", matches.usage());
Ok(())
}
Some(other) => Err(format!("Unknown command {}", other).into()),
}
}
fn run_map<M, P, C>(mapper: &M, partitioner: &P, combiner_option: Option<&C>) -> Result<()>
where
M: Map,
P: Partition<M::Key, M::Value>,
C: Combine<M::Key, M::Value>,
{
let mut source = stdin();
let mut sink = stdout();
let input_kv = read_map_input(&mut source).chain_err(|| "Error getting input to map.")?;
let mut pairs_vec: Vec<(M::Key, M::Value)> = Vec::new();
mapper
.map(input_kv, IntermediateVecEmitter::new(&mut pairs_vec))
.chain_err(|| "Error running map operation.")?;
if let Some(combiner) = combiner_option {
let new_pairs_vec = run_internal_combine(combiner, &mut pairs_vec)
.chain_err(|| "Error running combine on map results")?;
pairs_vec = new_pairs_vec;
}
let mut output_object = IntermediateOutputObject::<M::Key, M::Value>::default();
for pair in pairs_vec.drain(0..) {
let partition = partitioner
.partition(PartitionInputKV::new(&pair.0, &pair.1))
.chain_err(|| "Error partitioning map output")?;
let output_array = output_object
.partitions
.entry(partition)
.or_insert_with(Default::default);
output_array.push(IntermediateOutputPair {
key: pair.0,
value: pair.1,
});
}
write_intermediate_output(&mut sink, &output_object)
.chain_err(|| "Error writing map output to stdout.")?;
Ok(())
}
fn run_reduce<K, V, R: Reduce<K, V>>(reducer: &R) -> Result<()>
where
K: Default + Serialize + DeserializeOwned,
V: Default + Serialize + DeserializeOwned,
{
let mut source = stdin();
let mut sink = stdout();
let input_kvs =
read_intermediate_input(&mut source).chain_err(|| "Error getting input to reduce.")?;
let mut output_objects = Vec::new();
for input_kv in input_kvs {
let mut output_object = FinalOutputObject::<R::Output>::default();
reducer
.reduce(input_kv, FinalOutputObjectEmitter::new(&mut output_object))
.chain_err(|| "Error running reduce operation.")?;
output_objects.push(output_object);
}
write_reduce_output(&mut sink, &output_objects)
.chain_err(|| "Error writing reduce output to stdout.")?;
Ok(())
}
fn run_combine<K, V, C>(combiner: &C) -> Result<()>
where
K: Default + Serialize + DeserializeOwned,
V: Default + Serialize + DeserializeOwned,
C: Combine<K, V>,
{
let mut source = stdin();
let mut sink = stdout();
let input_kvs =
read_intermediate_input(&mut source).chain_err(|| "Error getting input to combine.")?;
let mut output_objects = Vec::new();
for input_kv in input_kvs {
let mut output_object = Vec::<V>::new();
combiner
.combine(input_kv, VecEmitter::new(&mut output_object))
.chain_err(|| "Error running combine operation.")?;
output_objects.push(output_object);
}
write_intermediate_vectors(&mut sink, &output_objects)
.chain_err(|| "Error writing combine output to stdout.")?;
Ok(())
}
fn run_internal_combine<K, V, C>(combiner: &C, pairs: &mut Vec<(K, V)>) -> Result<Vec<(K, V)>>
where
K: Default + Serialize + DeserializeOwned,
V: Default + Serialize + DeserializeOwned,
C: Combine<K, V>,
{
let mut kv_map: HashMap<String, Vec<V>> = HashMap::new();
for pair in pairs.drain(0..) {
let mut key = pair.0;
let mut value = pair.1;
// Use serde_json to serialize the key to a string.
let key_str = json!(key).to_string();
let vec = kv_map.entry(key_str).or_insert_with(Vec::new);
vec.push(value);
}
let mut results = Vec::new();
for (key_str, mut values) in kv_map.drain() {
let key_json: serde_json::Value =
serde_json::from_str(&key_str).chain_err(|| "Error parsing combine key.")?;
// Retrieve the original key from the serialized version.
let key = serde_json::from_value(key_json.clone())
.chain_err(|| "Error converting combine key string to key type")?;
if values.len() > 1 {
let input_kv = IntermediateInputKV { key, values };
let mut result_values = Vec::<V>::new();
combiner
.combine(input_kv, VecEmitter::new(&mut result_values))
.chain_err(|| "Error running combine operation.")?;
for value in result_values {
let key = serde_json::from_value(key_json.clone())
.chain_err(|| "Error converting combine key string to key type")?;
results.push((key, value));
}
} else if values.len() == 1 {
results.push((key, values.remove(0)));
}
}
Ok(results)
}
fn run_has_combine<K, V, C>(combiner: Option<&C>)
where
K: Default + Serialize + DeserializeOwned,
V: Default + Serialize + DeserializeOwned,
C: Combine<K, V>,
{
match combiner {
Some(_) => println!("yes"),
None => println!("no"),
}
}
fn run_sanity_check() {
println!("sanity located");
}
| 32.200803
| 99
| 0.603392
|
21bc1b67fe3f0d9605eae639a2def8f6df614ce7
| 1,534
|
js
|
JavaScript
|
controllers/credit.js
|
nicholasmullikin/fresh-start
|
c69a3949cf44372afb64a8d73edfba55a8534038
|
[
"MIT"
] | null | null | null |
controllers/credit.js
|
nicholasmullikin/fresh-start
|
c69a3949cf44372afb64a8d73edfba55a8534038
|
[
"MIT"
] | null | null | null |
controllers/credit.js
|
nicholasmullikin/fresh-start
|
c69a3949cf44372afb64a8d73edfba55a8534038
|
[
"MIT"
] | null | null | null |
const Loan = require('../models/Loan');
const User = require('../models/User');
/**
* GET /credit
* Login page.
*/
exports.getCredit = (req, res) => {
if (!req.user) {
return res.redirect('/');
}
User.findById(req.user._id, (err) => {
if (err) {
console.log(err);
}
})
.then((user) => {
Loan.find({
user: req.user._id,
}, (err, loans) => {
res.render('credit/update_credit', {
title: 'Your Credit',
array: loans,
creditImpact: calculateCreditImpact(loans),
creditScore: user.creditScore
});
});
});
};
function calculateCreditImpact (loans){
var impacts = [];
for(var i = 0; i < loans.length; i++){
let impact = 0;
if(loans[i].overdue){
impact = loans[i].amountLoaned/10 * -1;
}
else{
impact = loans[i].amountLoaned / 10;
}
impacts.push(impact);
}
return impacts;
}
function recalculateCreditImpact (impacts){
var counter = 20;
for(var i = 0; i < impacts.length; i++){
counter +=impacts[i];
}
return counter;
}
exports.calcCredit = (req, res) => {
if (!req.user) {
return res.redirect('/');
}
User.findById(req.user._id, (err) => {
if (err) {
console.log(err);
}
})
.then((user) => {
Loan.find({
user: req.user._id,
}, (err, loans) => {
user.creditScore = recalculateCreditImpact(calculateCreditImpact(loans));
user.save((err)=>{});
});
});
return res.redirect('/credit');
};
| 20.72973
| 81
| 0.535854
|
797946c1be47d28be4298f7983f602ae94f7d040
| 3,528
|
php
|
PHP
|
app/Http/Controllers/OwnerController.php
|
popeJohnPakart/ams
|
25829422beb66db6d5432115166cba36f52bf765
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/OwnerController.php
|
popeJohnPakart/ams
|
25829422beb66db6d5432115166cba36f52bf765
|
[
"MIT"
] | null | null | null |
app/Http/Controllers/OwnerController.php
|
popeJohnPakart/ams
|
25829422beb66db6d5432115166cba36f52bf765
|
[
"MIT"
] | null | null | null |
<?php
namespace App\Http\Controllers;
// use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Owner;
use Redirect;
use Request;
use Input;
use Validator;
class OwnerController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
public function viewAllOwners()
{
$allOwners = Owner::orderBy('id','ASC')->get();
return view('url.addOwner',compact('allOwners'));
}
// public function showOwnerInformation()
// {
// $owner = Category::lists('owner_name', 'owner_id');
// }
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
return View('url.addOwner');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
$data = Request::all();
$rules = [
'owner_name' => 'required',
'address' => 'required',
'phone' => 'required|numeric',
];
$messages = [
'owner_name.required' => 'fields with * is a required Field',
'address.required' => 'fields with * is a required Field',
'phone.numeric' => 'Provide Numeric Input ',
];
$validation = Validator::make($data, $rules, $messages);
if ($validation->passes()) {
$owner = new Owner;
$owner->id = $data['id'];
$owner->owner_name = $data['owner_name'];
$owner->address = $data['address'];
$owner->phone = $data['phone'];
$owner->email = $data['email'];
$owner->save();
return Redirect('admin/owner');
}
else
{
return Redirect::back()->withInput()->withErrors($validation);
}
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$owner = Owner::findOrFail($id);
return View('url.editOwner',compact('owner')) ;
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request)
{
$id = Request::input('id');
$owner = Owner::find($id);
$owner->owner_name = Request::input('owner_name');
$owner->address = Request::input('address');
$owner->phone = Request::input('phone');
$owner->email = Request::input('email');
$owner->save();
return Redirect('admin/owner');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
Owner::find($id)->delete();
return Redirect('admin/owner');
}
public function deleteOwner($id)
{
}
}
| 24
| 82
| 0.524093
|
b0102d9c4c9d7a5a8296de027bde65c54af8d482
| 2,092
|
py
|
Python
|
domino.py
|
trisberg/domino
|
051bbdc139e88b69b7f6b694b8c02a2d22439c41
|
[
"Apache-2.0"
] | null | null | null |
domino.py
|
trisberg/domino
|
051bbdc139e88b69b7f6b694b8c02a2d22439c41
|
[
"Apache-2.0"
] | 1
|
2019-07-22T22:30:55.000Z
|
2019-07-22T22:30:55.000Z
|
domino.py
|
trisberg/domino
|
051bbdc139e88b69b7f6b694b8c02a2d22439c41
|
[
"Apache-2.0"
] | 1
|
2019-03-20T01:55:50.000Z
|
2019-03-20T01:55:50.000Z
|
import sys
import time
import argparse
import util
if __name__ == "__main__":
start_time = time.time()
print("riff is for functions")
print("Domino is FaaS Acceptance Test Suite for riff and PFS on Windows\n")
parser = argparse.ArgumentParser()
parser.add_argument("--pfs", help="test using pfs CLI", action="store_true")
parser.add_argument("--manifest", help="the manifest to test with", type=str)
parser.add_argument("--push-secret", help="the push secret to use for builds", type=str)
parser.add_argument("--pull-secret", help="an optional pull secret to use for builds", type=str)
parser.add_argument("--image-prefix", help="the image prefix to use", type=str)
parser.add_argument("--skip-install", help="whether to skip the system install/uninstall", action="store_true")
args = parser.parse_args()
util.skip_install = args.skip_install
if args.pfs:
util.cli = "pfs"
else:
util.cli = "riff"
if args.push_secret is None or len(args.push_secret) <= 0:
util.push_secret = ""
else:
if args.image_prefix is None or len(args.image_prefix) <= 0:
raise Exception("An --image-prefix must be provided when using --push-secret")
util.push_secret = args.push_secret
util.image_prefix = args.image_prefix
if args.pull_secret is None or len(args.pull_secret) <= 0:
util.pull_secret = ""
else:
util.pull_secret = args.pull_secret
if args.manifest is None or len(args.manifest) <= 0:
if args.pfs:
raise Exception("A manifest must be provided for PFS")
util.manifest = "stable"
else:
util.manifest = args.manifest
import setup, teardown, functions, eventing
setup.run()
functions.run()
eventing.run()
teardown.run()
elapsed_time = time.time() - start_time
elapsed_min = int(elapsed_time / 60)
elapsed_sec = int(elapsed_time - (elapsed_min * 60))
print("DONE in {m} min {s} sec".format(m=elapsed_min, s=elapsed_sec))
| 38.740741
| 116
| 0.64914
|
ef3fef71735c29508e7bc364aaf5bfa652d4f28f
| 87
|
sh
|
Shell
|
1.import.sh
|
culebron/nskparks
|
7ab5a5b69ad426527aa8e1692862c231768a083d
|
[
"CC0-1.0"
] | 1
|
2019-01-11T15:00:15.000Z
|
2019-01-11T15:00:15.000Z
|
1.import.sh
|
culebron/nskparks
|
7ab5a5b69ad426527aa8e1692862c231768a083d
|
[
"CC0-1.0"
] | null | null | null |
1.import.sh
|
culebron/nskparks
|
7ab5a5b69ad426527aa8e1692862c231768a083d
|
[
"CC0-1.0"
] | null | null | null |
osm2pgsql --slim --style 1.parks.style -d nskparks 1.parks.osm -p osm --multi-geometry
| 43.5
| 86
| 0.735632
|
8435eb258ffa83584c61ae99135ade127c36586b
| 969
|
ps1
|
PowerShell
|
images/win/scripts/Installers/Install-WindowsFeatures.ps1
|
Toughee/virtual-environments
|
df27520b1f223f23188191ec1a3fdce76f5cddd8
|
[
"MIT"
] | 5,673
|
2019-09-27T23:08:40.000Z
|
2022-03-31T23:57:06.000Z
|
images/win/scripts/Installers/Install-WindowsFeatures.ps1
|
Toughee/virtual-environments
|
df27520b1f223f23188191ec1a3fdce76f5cddd8
|
[
"MIT"
] | 3,368
|
2019-09-30T04:59:16.000Z
|
2022-03-31T20:16:26.000Z
|
images/win/scripts/Installers/Install-WindowsFeatures.ps1
|
Toughee/virtual-environments
|
df27520b1f223f23188191ec1a3fdce76f5cddd8
|
[
"MIT"
] | 2,247
|
2019-09-29T13:59:05.000Z
|
2022-03-31T21:46:45.000Z
|
$windowsFeatures = (Get-ToolsetContent).windowsFeatures
foreach ($feature in $windowsFeatures) {
if ($feature.optionalFeature) {
Write-Host "Activating Windows Optional Feature '$($feature.name)'..."
Enable-WindowsOptionalFeature -Online -FeatureName $feature.name -NoRestart
$resultSuccess = $?
} else {
Write-Host "Activating Windows Feature '$($feature.name)'..."
$Arguments = @{
Name = $feature.name
IncludeAllSubFeature = [System.Convert]::ToBoolean($feature.includeAllSubFeatures)
IncludeManagementTools = [System.Convert]::ToBoolean($feature.includeManagementTools)
}
$result = Install-WindowsFeature @Arguments
$resultSuccess = $result.Success
}
if ($resultSuccess) {
Write-Host "Windows Feature '$($feature.name)' was activated successfully"
} else {
throw "Failed to activate Windows Feature '$($feature.name)'"
}
}
| 37.269231
| 97
| 0.652219
|
d317340d9128c54c7422833d31ef0558ab569d6d
| 2,198
|
cs
|
C#
|
VkNet.Tests/Categories/StreamingCategoryTests.cs
|
slay9090/vk
|
1fea63e75989f78434c083a2051bae62f4fb3811
|
[
"MIT"
] | null | null | null |
VkNet.Tests/Categories/StreamingCategoryTests.cs
|
slay9090/vk
|
1fea63e75989f78434c083a2051bae62f4fb3811
|
[
"MIT"
] | null | null | null |
VkNet.Tests/Categories/StreamingCategoryTests.cs
|
slay9090/vk
|
1fea63e75989f78434c083a2051bae62f4fb3811
|
[
"MIT"
] | null | null | null |
using System;
using System.Linq;
using NUnit.Framework;
using VkNet.Enums.SafetyEnums;
namespace VkNet.Tests.Categories
{
public class StreamingCategoryTests : BaseTest
{
[Test]
public void GetServerUrl()
{
Url = "https://api.vk.com/method/streaming.getServerUrl";
Json =
@"{
""response"": {
""endpoint"": ""streaming.vk.com"",
""key"": ""be8d29c05546e58cb52420aaf2b9f51f0a440f89""
}
}
";
var result = Api.Streaming.GetServerUrl();
Assert.IsNotNull(anObject: result);
Assert.AreEqual(expected: "streaming.vk.com", actual: result.Endpoint);
Assert.AreEqual(expected: "be8d29c05546e58cb52420aaf2b9f51f0a440f89", actual: result.Key);
}
[Test]
public void GetSettings()
{
Url = "https://api.vk.com/method/streaming.getSettings";
Json =
@"{
""response"": {
""monthly_limit"": ""tier_6""
}
}
";
var result = Api.Streaming.GetSettings();
Assert.IsNotNull(anObject: result);
Assert.AreEqual(expected: MonthlyLimit.Tier6, actual: result.MonthlyLimit);
}
[Test]
public void GetStats()
{
Url = "https://api.vk.com/method/streaming.getStats";
Json =
@"{
response: [
{
event_type: ""post"",
stats: [
{
timestamp: 1525208400,
value: 160
},
{
timestamp: 1525294800,
value: 155
}
]
}
]
}
";
var result = Api.Streaming.GetStats(type: "prepared"
, interval: "24h"
, startTime: new DateTime(year: 2018, month: 5, day: 1)
, endTime: new DateTime(year: 2018, month: 5, day: 20));
Assert.IsNotEmpty(collection: result);
var stats = result.FirstOrDefault();
Assert.NotNull(anObject: stats);
Assert.AreEqual(expected: StreamingEventType.Post, actual: stats.EventType);
Assert.IsNotEmpty(collection: stats.Stats);
}
[Test]
public void SetSettings()
{
Url = "https://api.vk.com/method/streaming.setSettings";
Json =
@"{
response: 1
}
";
var result = Api.Streaming.SetSettings(monthlyTier: MonthlyLimit.Tier6);
Assert.IsTrue(condition: result);
}
}
}
| 21.134615
| 93
| 0.605096
|
b0f421213a87668cd2537c284e6cd254612111ec
| 1,105
|
py
|
Python
|
tests/unit/transformations/test_poinstToHist.py
|
gnafit/gna
|
c1a58dac11783342c97a2da1b19c97b85bce0394
|
[
"MIT"
] | 5
|
2019-10-14T01:06:57.000Z
|
2021-02-02T16:33:06.000Z
|
tests/unit/transformations/test_poinstToHist.py
|
gnafit/gna
|
c1a58dac11783342c97a2da1b19c97b85bce0394
|
[
"MIT"
] | null | null | null |
tests/unit/transformations/test_poinstToHist.py
|
gnafit/gna
|
c1a58dac11783342c97a2da1b19c97b85bce0394
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
"""Check PointsToHist adapter class
"""
from load import ROOT as R
from matplotlib import pyplot as plt
import numpy as N
from matplotlib.ticker import MaxNLocator
import gna.constructors as C
from gna.bindings import DataType
from gna.unittest import *
# Create the matrix
def test_points_to_hist_01():
mat = N.arange(1, 13, dtype='d')
# Create transformations
points = C.Points(mat)
adapter = C.PointsToHist(points.points, 0.)
hist_edges = N.array(adapter.adapter.hist.datatype().hist().edges())
# Add zero as initial bin edge
orig = N.concatenate((N.zeros(1), mat), axis=0)
assert (orig==hist_edges).all(), "C++ and Python results doesn't match"
# Create the matrix
def test_points_to_hist_02():
mat = N.arange(1, 13, dtype='d')
# Create transformations
points = C.Points(mat)
adapter = C.PointsToHist(points.points)
hist_edges = N.array(adapter.adapter.hist.datatype().hist().edges())
assert (mat==hist_edges).all(), "C++ and Python results doesn't match"
if __name__ == "__main__":
run_unittests(globals())
| 26.309524
| 75
| 0.699548
|
8e56dd2f88a81961801d4ac4368b94b7ae06d600
| 508
|
js
|
JavaScript
|
front/src/hooks/Socket/useInitSocket.js
|
Einere/2019-15
|
ad0c504cbbd9a1393a11acb3a84dd63246eb6e63
|
[
"MIT"
] | 21
|
2019-11-07T05:14:02.000Z
|
2021-11-12T11:45:48.000Z
|
front/src/hooks/Socket/useInitSocket.js
|
eminem54/2019-15
|
f552af6eaa3e6a797264b6bceef58852921fb6be
|
[
"MIT"
] | 133
|
2019-11-07T05:15:05.000Z
|
2022-02-19T00:19:24.000Z
|
front/src/hooks/Socket/useInitSocket.js
|
Einere/2019-15
|
ad0c504cbbd9a1393a11acb3a84dd63246eb6e63
|
[
"MIT"
] | 24
|
2019-11-05T01:53:46.000Z
|
2021-09-14T15:51:17.000Z
|
import { useEffect, useState } from 'react';
import socketIo from 'socket.io-client';
import APP_URI from 'constants/uri';
import socketOptions from 'config/socket';
export default function useInitSocket(path) {
const [onlineSocket, setOnlineSocket] = useState(null);
useEffect(() => {
const newOnlineSocket = socketIo.connect(
`${APP_URI.REACT_APP_API_URI}${path}`,
socketOptions,
);
setOnlineSocket(newOnlineSocket);
}, [path]);
return [onlineSocket, setOnlineSocket];
}
| 26.736842
| 57
| 0.712598
|
6f2e7a9b09905808b94b8c1a93544f88a7972401
| 585
|
php
|
PHP
|
database/seeds/PrioritasSeeder.php
|
fuadtanjung/talayanan
|
0a4859137468af9c2742bfc0b7e611247950e8bf
|
[
"MIT"
] | null | null | null |
database/seeds/PrioritasSeeder.php
|
fuadtanjung/talayanan
|
0a4859137468af9c2742bfc0b7e611247950e8bf
|
[
"MIT"
] | null | null | null |
database/seeds/PrioritasSeeder.php
|
fuadtanjung/talayanan
|
0a4859137468af9c2742bfc0b7e611247950e8bf
|
[
"MIT"
] | null | null | null |
<?php
use Illuminate\Database\Seeder;
class PrioritasSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('prioritas')->insert([
'id_prioritas' => 'T',
'nama_prioritas' => 'Tinggi',
]);
DB::table('prioritas')->insert([
'id_prioritas' => 'M',
'nama_prioritas' => 'Menengah',
]);
DB::table('prioritas')->insert([
'id_prioritas' => 'R',
'nama_prioritas' => 'Rendah',
]);
}
}
| 20.892857
| 43
| 0.471795
|
66c537a2ced3853b6f8d83db5f264f10d8b5e8e4
| 69
|
css
|
CSS
|
src/core/client/admin/routes/Configure/sections/WebhookEndpoints/ConfigureWebhookEndpointForm/EventsSelectField.css
|
maybesmurf/talk
|
37978d5c829d6d4641722bb52654d68d95c71e23
|
[
"Apache-2.0"
] | 1,877
|
2016-10-29T15:57:15.000Z
|
2022-03-31T03:53:11.000Z
|
src/core/client/admin/routes/Configure/sections/WebhookEndpoints/ConfigureWebhookEndpointForm/EventsSelectField.css
|
maybesmurf/talk
|
37978d5c829d6d4641722bb52654d68d95c71e23
|
[
"Apache-2.0"
] | 1,635
|
2016-10-27T14:45:46.000Z
|
2022-03-30T15:09:17.000Z
|
src/core/client/admin/routes/Configure/sections/WebhookEndpoints/ConfigureWebhookEndpointForm/EventsSelectField.css
|
maybesmurf/talk
|
37978d5c829d6d4641722bb52654d68d95c71e23
|
[
"Apache-2.0"
] | 464
|
2016-10-24T21:23:12.000Z
|
2022-03-30T12:11:45.000Z
|
.list {
max-height: 295px;
}
.event {
font-family: monospace;
}
| 8.625
| 25
| 0.608696
|
1487e292b38920f23be345583024be922dfdf8ef
| 944
|
ts
|
TypeScript
|
typings/SequenceJoin.d.ts
|
Sutarodo/Sequence
|
8e394dfe16b0196804ea0803a3242e69e374ab2a
|
[
"MIT"
] | null | null | null |
typings/SequenceJoin.d.ts
|
Sutarodo/Sequence
|
8e394dfe16b0196804ea0803a3242e69e374ab2a
|
[
"MIT"
] | 4
|
2020-03-24T18:33:32.000Z
|
2020-03-24T18:33:33.000Z
|
typings/SequenceJoin.d.ts
|
InsertBeforeFlight/Sequence
|
8e394dfe16b0196804ea0803a3242e69e374ab2a
|
[
"MIT"
] | null | null | null |
import { SequencePart } from "./SequencePart";
import { ISequenceJoin } from "./interfaces/ISequenceJoin";
import { Join } from "./enums/Join";
import { SequenceCondition } from "./conditions/SequenceCondition";
import { ISequenceColumn } from "./interfaces/ISequenceColumn";
import { LogicalOperator } from "./enums/LogicalOperator";
import { StringBuilder } from "@gallink/oxygen";
export declare class SequenceJoin extends SequencePart implements ISequenceJoin {
readonly join: Join;
readonly location: string;
condition: SequenceCondition;
protected builder: StringBuilder;
constructor(join: Join, location: string);
on(column: ISequenceColumn, logicalOperator: LogicalOperator, comparisonValue: any): this;
onIn(column: ISequenceColumn, ...values: any[]): void;
onNotIn(column: ISequenceColumn, ...values: any[]): void;
stringify(): string;
protected static stringifyJoin(joinType: Join): string;
}
| 47.2
| 94
| 0.742585
|
97e2db52e5079dd6325cd2e261f1c8fab9395063
| 290
|
ts
|
TypeScript
|
api/src/floodtest/dtos/test-result.dto.ts
|
proishere1/FloodRunner
|
6987500919ed6a7cc7a3195dedcc9963ba3b6382
|
[
"MIT"
] | 14
|
2020-07-15T10:53:04.000Z
|
2022-01-19T10:18:48.000Z
|
api/src/floodtest/dtos/test-result.dto.ts
|
proishere1/FloodRunner
|
6987500919ed6a7cc7a3195dedcc9963ba3b6382
|
[
"MIT"
] | 1
|
2020-10-04T16:07:32.000Z
|
2020-12-25T06:46:32.000Z
|
api/src/floodtest/dtos/test-result.dto.ts
|
proishere1/FloodRunner
|
6987500919ed6a7cc7a3195dedcc9963ba3b6382
|
[
"MIT"
] | 4
|
2020-07-19T13:17:56.000Z
|
2022-02-25T05:46:53.000Z
|
/**
* Dto used by SandboxRunner to share information of test runs
*/
export interface TestResultDto {
testId: string;
testRunName: string;
isSuccessful: boolean;
numberTimesExecuted: number;
executionTimeInSeconds: number;
systemLogs: string[];
applicationLogs: string[];
}
| 22.307692
| 62
| 0.744828
|
c3f0734f295c9a15414bc7821c06b42d03792fc6
| 14,272
|
cs
|
C#
|
TravellerTools/Grauenwolf.TravellerTools.TradeCalculator/TradeEngineMGT.cs
|
TedTschopp/TravellerTools
|
aeaec3b0e42ef264648b9d1ef7cc4440d66c6f93
|
[
"MIT"
] | 29
|
2017-01-14T09:18:50.000Z
|
2022-02-08T06:22:30.000Z
|
TravellerTools/Grauenwolf.TravellerTools.TradeCalculator/TradeEngineMGT.cs
|
TedTschopp/TravellerTools
|
aeaec3b0e42ef264648b9d1ef7cc4440d66c6f93
|
[
"MIT"
] | 94
|
2016-06-23T08:53:35.000Z
|
2022-01-04T05:00:44.000Z
|
TravellerTools/Grauenwolf.TravellerTools.TradeCalculator/TradeEngineMGT.cs
|
TedTschopp/TravellerTools
|
aeaec3b0e42ef264648b9d1ef7cc4440d66c6f93
|
[
"MIT"
] | 14
|
2017-01-14T09:18:53.000Z
|
2022-01-02T21:38:09.000Z
|
using Grauenwolf.TravellerTools.Maps;
using Grauenwolf.TravellerTools.Names;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Grauenwolf.TravellerTools.TradeCalculator
{
public class TradeEngineMgt : TradeEngine
{
public TradeEngineMgt(MapService mapService, string dataPath, INameService nameService) : base(mapService, dataPath, nameService) { }
protected override string DataFileName
{
get { return "TradeGoods-MGT.xml"; }
}
public override FreightList Freight(World origin, World destination, Dice random)
{
if (origin == null)
throw new ArgumentNullException(nameof(origin), $"{nameof(origin)} is null.");
if (destination == null)
throw new ArgumentNullException(nameof(destination), $"{nameof(destination)} is null.");
if (random == null)
throw new ArgumentNullException(nameof(random), $"{nameof(random)} is null.");
var result = new FreightList();
Action<string, string, string> SetValues = (low, middle, high) =>
{
result.Incidental = random.D(low);
result.Minor = random.D(middle);
result.Major = random.D(high);
};
var traffic = origin.PopulationCode.Value;
if (origin.ContainsRemark("Ag")) traffic += 2;
if (origin.ContainsRemark("Ai")) traffic += -3;
if (origin.ContainsRemark("Ba")) traffic += -99999;
if (origin.ContainsRemark("De")) traffic += -3;
if (origin.ContainsRemark("Fl")) traffic += -3;
if (origin.ContainsRemark("Ga")) traffic += 2;
if (origin.ContainsRemark("Hi")) traffic += 2;
//if (origin.ContainsRemark("Ht")) traffic += 0;
if (origin.ContainsRemark("IC")) traffic += -3;
if (origin.ContainsRemark("In")) traffic += 3;
if (origin.ContainsRemark("Lo")) traffic += -5;
//if (origin.ContainsRemark("Lt")) traffic += 0;
if (origin.ContainsRemark("Na")) traffic += -3;
if (origin.ContainsRemark("NI")) traffic += -3;
if (origin.ContainsRemark("Po")) traffic += -3;
if (origin.ContainsRemark("Ri")) traffic += 2;
//if (origin.ContainsRemark("Va")) traffic += 0;
if (origin.ContainsRemark("Wa")) traffic += -3;
if (origin.ContainsRemark("A")) traffic += 5;
if (origin.ContainsRemark("R")) traffic += -5;
if (destination.ContainsRemark("Ag")) traffic += 1;
if (destination.ContainsRemark("Ai")) traffic += 1;
if (destination.ContainsRemark("Ba")) traffic += -5;
if (destination.ContainsRemark("De")) traffic += 0;
if (destination.ContainsRemark("Fl")) traffic += 0;
if (destination.ContainsRemark("Ga")) traffic += 1;
if (destination.ContainsRemark("Hi")) traffic += 0;
//if (destination.ContainsRemark("Ht")) traffic += 0;
if (destination.ContainsRemark("IC")) traffic += 0;
if (destination.ContainsRemark("In")) traffic += 2;
if (destination.ContainsRemark("Lo")) traffic += 0;
//if (destination.ContainsRemark("Lt")) traffic += 0;
if (destination.ContainsRemark("Na")) traffic += 1;
if (destination.ContainsRemark("NI")) traffic += 1;
if (destination.ContainsRemark("Po")) traffic += -3;
if (destination.ContainsRemark("Ri")) traffic += 2;
//if (destination.ContainsRemark("Va")) traffic += 0;
if (destination.ContainsRemark("Wa")) traffic += 0;
if (destination.ContainsRemark("A")) traffic += -5;
if (destination.ContainsRemark("R")) traffic += -99999;
var tlDiff = Math.Abs(origin.TechCode.Value - destination.TechCode.Value);
if (tlDiff > 5) tlDiff = 5;
traffic -= tlDiff;
if (traffic <= 0) SetValues("0", "0", "0");
if (traffic == 1) SetValues("0", "1D-4", "1D-4");
if (traffic == 2) SetValues("0", "1D-1", "1D-2");
if (traffic == 3) SetValues("0", "1D", "1D-1");
if (traffic == 4) SetValues("0", "1D+1", "1D");
if (traffic == 5) SetValues("0", "1D+2", "1D+1");
if (traffic == 6) SetValues("0", "1D+3", "1D+2");
if (traffic == 7) SetValues("0", "1D+4", "1D+3");
if (traffic == 8) SetValues("0", "1D+5", "1D+4");
if (traffic == 9) SetValues("1D-2", "1D+6", "1D+5");
if (traffic == 10) SetValues("1D", "1D+7", "1D+6");
if (traffic == 11) SetValues("1D+1", "1D+8", "1D+7");
if (traffic == 12) SetValues("1D+2", "1D+9", "1D+8");
if (traffic == 13) SetValues("1D+3", "1D+10", "1D+9");
if (traffic == 14) SetValues("1D+4", "1D+12", "1D+10");
if (traffic == 15) SetValues("1D+5", "1D+14", "1D+11");
if (traffic >= 16) SetValues("1D+6", "1D+16", "1D+12");
if (result.Incidental < 0) result.Incidental = 0;
if (result.Minor < 0) result.Minor = 0;
if (result.Major < 0) result.Major = 0;
var lots = new List<FreightLot>();
for (var i = 0; i < result.Incidental; i++)
{
int size = random.D("1D6");
int value = (1000 + (destination.JumpDistance - 1 * 200)) * size;
lots.Add(new FreightLot(size, value));
}
for (var i = 0; i < result.Minor; i++)
{
int size = random.D("1D6") * 5;
int value = (1000 + (destination.JumpDistance - 1 * 200)) * size;
lots.Add(new FreightLot(size, value));
}
for (var i = 0; i < result.Major; i++)
{
int size = random.D("1D6") * 10;
int value = (1000 + ((destination.JumpDistance - 1) * 200)) * size;
lots.Add(new FreightLot(size, value));
}
//Add contents
foreach (var lot in lots)
{
var good = random.Choose(LegalTradeGoods);
var detail = good.ChooseRandomDetail(random);
lot.Contents = detail.Name;
lot.ActualValue = detail.Price * 1000 * lot.Size;
}
result.Lots.AddRange(lots.OrderByDescending(f => f.Size));
return result;
}
public override async Task<PassengerList> PassengersAsync(World origin, World destination, Dice random, bool advancedCharacters)
{
var result = new PassengerList();
Action<string, string, string> SetValues = (low, middle, high) =>
{
result.LowPassengers = random.D(low);
result.MiddlePassengers = random.D(middle);
result.HighPassengers = random.D(high);
};
var traffic = origin.PopulationCode.Value;
if (origin.ContainsRemark("Ag")) traffic += 0;
if (origin.ContainsRemark("Ai")) traffic += 1;
if (origin.ContainsRemark("Ba")) traffic += -5;
if (origin.ContainsRemark("De")) traffic += -1;
if (origin.ContainsRemark("Fl")) traffic += 0;
if (origin.ContainsRemark("Ga")) traffic += 2;
if (origin.ContainsRemark("Hi")) traffic += 0;
//if (origin.ContainsRemark("Ht")) traffic += 0;
if (origin.ContainsRemark("IC")) traffic += 1;
if (origin.ContainsRemark("In")) traffic += 2;
if (origin.ContainsRemark("Lo")) traffic += 0;
//if (origin.ContainsRemark("Lt")) traffic += 0;
if (origin.ContainsRemark("Na")) traffic += 0;
if (origin.ContainsRemark("NI")) traffic += 0;
if (origin.ContainsRemark("Po")) traffic += -2;
if (origin.ContainsRemark("Ri")) traffic += -1;
//if (origin.ContainsRemark("Va")) traffic += 0;
if (origin.ContainsRemark("Wa")) traffic += 0;
if (origin.ContainsRemark("A")) traffic += 2;
if (origin.ContainsRemark("R")) traffic += 4;
if (destination.ContainsRemark("Ag")) traffic += 0;
if (destination.ContainsRemark("Ai")) traffic += -1;
if (destination.ContainsRemark("Ba")) traffic += -5;
if (destination.ContainsRemark("De")) traffic += -1;
if (destination.ContainsRemark("Fl")) traffic += 0;
if (destination.ContainsRemark("Ga")) traffic += 2;
if (destination.ContainsRemark("Hi")) traffic += 4;
//if (destination.ContainsRemark("Ht")) traffic += 0;
if (destination.ContainsRemark("IC")) traffic += -1;
if (destination.ContainsRemark("In")) traffic += 1;
if (destination.ContainsRemark("Lo")) traffic += -4;
//if (destination.ContainsRemark("Lt")) traffic += 0;
if (destination.ContainsRemark("Na")) traffic += 0;
if (destination.ContainsRemark("NI")) traffic += -1;
if (destination.ContainsRemark("Po")) traffic += -1;
if (destination.ContainsRemark("Ri")) traffic += 2;
//if (destination.ContainsRemark("Va")) traffic += 0;
if (destination.ContainsRemark("Wa")) traffic += 0;
if (destination.ContainsRemark("A")) traffic += -2;
if (destination.ContainsRemark("R")) traffic += -4;
if (traffic <= 0) SetValues("0", "0", "0");
if (traffic == 1) SetValues("2D-6", "1D-2", "0");
if (traffic == 2) SetValues("2D", "1D", "1D-1D");
if (traffic == 3) SetValues("2D", "2D-1D", "2D-2D");
if (traffic == 4) SetValues("3D-1D", "2D-1D", "2D-1D");
if (traffic == 5) SetValues("3D-1D", "3D-2D", "2D-1D");
if (traffic == 6) SetValues("3D", "3D-2D", "3D-2D");
if (traffic == 7) SetValues("3D", "3D-2D", "3D-2D");
if (traffic == 8) SetValues("4D", "3D-1D", "3D-1D");
if (traffic == 9) SetValues("4D", "3D", "3D-1D");
if (traffic == 10) SetValues("5D", "3D", "3D-1D");
if (traffic == 11) SetValues("5D", "4D", "3D");
if (traffic == 12) SetValues("6D", "4D", "3D");
if (traffic == 13) SetValues("6D", "4D", "4D");
if (traffic == 14) SetValues("7D", "5D", "4D");
if (traffic == 15) SetValues("8D", "5D", "4D");
if (traffic >= 16) SetValues("9D", "6D", "5D");
if (result.LowPassengers < 0) result.LowPassengers = 0;
if (result.MiddlePassengers < 0) result.MiddlePassengers = 0;
if (result.HighPassengers < 0) result.HighPassengers = 0;
for (var i = 0; i < result.HighPassengers; i++)
result.Passengers.Add(await PassengerDetailAsync(random, "High", advancedCharacters).ConfigureAwait(false));
for (var i = 0; i < result.MiddlePassengers; i++)
result.Passengers.Add(await PassengerDetailAsync(random, "Middle", advancedCharacters).ConfigureAwait(false));
for (var i = 0; i < result.LowPassengers; i++)
result.Passengers.Add(await PassengerDetailAsync(random, "Low", advancedCharacters).ConfigureAwait(false));
return result;
}
internal override void OnManifestsBuilt(ManifestCollection result)
{
result.Edition = Edition.MGT;
}
override protected decimal PurchasePriceModifier(Dice random, int purchaseBonus, int brokerScore, out int roll)
{
if (random == null)
throw new ArgumentNullException(nameof(random), $"{nameof(random)} is null.");
roll = random.D(3, 6) + purchaseBonus + brokerScore;
if (roll < 0)
return 4M;
switch (roll)
{
case 0: return 3M;
case 1: return 2M;
case 2: return 1.75M;
case 3: return 1.5M;
case 4: return 1.35M;
case 5: return 1.25M;
case 6: return 1.2M;
case 7: return 1.15M;
case 8: return 1.1M;
case 9: return 1.05M;
case 10: return 1M;
case 11: return 0.95M;
case 12: return 0.9M;
case 13: return 0.85M;
case 14: return 0.8M;
case 15: return 0.75M;
case 16: return 0.7M;
case 17: return 0.65M;
case 18: return 0.55M;
case 19: return 0.5M;
case 20: return 0.4M;
default: return 0.25M;
}
}
override protected decimal SalePriceModifier(Dice random, int saleBonus, int brokerScore, out int roll)
{
if (random == null)
throw new ArgumentNullException(nameof(random), $"{nameof(random)} is null.");
roll = random.D(3, 6) + saleBonus + brokerScore;
if (roll < 0)
return 0.25M;
switch (roll)
{
case 0: return 0.45M;
case 1: return 0.50M;
case 2: return 0.55M;
case 3: return 0.60M;
case 4: return 0.65M;
case 5: return 0.75M;
case 6: return 0.80M;
case 7: return 0.85M;
case 8: return 0.90M;
case 9: return 0.95M;
case 10: return 1M;
case 11: return 1.05M;
case 12: return 1.1M;
case 13: return 1.15M;
case 14: return 1.2M;
case 15: return 1.25M;
case 16: return 1.35M;
case 17: return 1.5M;
case 18: return 1.75M;
case 19: return 2M;
case 20: return 3M;
default: return 4M;
}
}
public override World GenerateRandomWorld()
{
throw new NotImplementedException();
}
}
}
| 44.461059
| 141
| 0.518288
|
db4ed96a7f5f91f44d6fd7c337d0d68a13c63af9
| 4,099
|
rs
|
Rust
|
src/client/codec/gemtext.rs
|
rabbitinspace/shikai-rs
|
3f1a015200f0c8c1feade222fbc5adacf39221d3
|
[
"MIT"
] | null | null | null |
src/client/codec/gemtext.rs
|
rabbitinspace/shikai-rs
|
3f1a015200f0c8c1feade222fbc5adacf39221d3
|
[
"MIT"
] | null | null | null |
src/client/codec/gemtext.rs
|
rabbitinspace/shikai-rs
|
3f1a015200f0c8c1feade222fbc5adacf39221d3
|
[
"MIT"
] | null | null | null |
use bstr::ByteSlice;
use bytes::Bytes;
use super::ByteSliceExt;
pub enum Block {
Empty,
Text(TextBlock),
Link(LinkBlock),
Preformatted(PreformattedBlock),
Header(HeaderBlock),
List(ListBlock),
Quote(QuoteBlock),
}
pub trait ContentBlock<'b>: From<&'b mut Bytes> {
fn matches(buf: &Bytes) -> bool;
}
pub struct TextBlock {
pub content: Bytes,
}
pub struct LinkBlock {
pub url: Bytes,
pub name: Option<Bytes>,
}
pub struct PreformattedBlock {
pub content: Bytes,
pub alt_content: Option<Bytes>,
}
pub struct HeaderBlock {
pub name: Bytes,
pub level: i32,
}
pub struct ListBlock {
pub items: Vec<Bytes>,
}
pub struct QuoteBlock {
pub content: Bytes,
}
// MARK: impl TextBlock
impl ContentBlock<'_> for TextBlock {
fn matches(buf: &Bytes) -> bool {
!buf.is_empty()
}
}
impl From<&mut Bytes> for TextBlock {
fn from(buf: &mut Bytes) -> Self {
let (line_len, term_len) = match buf.lines_with_terminator_len().next() {
None => {
return Self {
content: Bytes::new(),
}
}
Some(line) => (line.0.len(), line.1),
};
Self {
content: buf.split_to(line_len + term_len),
}
}
}
// MARK: impl LinkBlock
impl ContentBlock<'_> for LinkBlock {
fn matches(buf: &Bytes) -> bool {
buf.len() > 2 && &buf[..2] == b"=>"
}
}
impl From<&mut Bytes> for LinkBlock {
fn from(buf: &mut Bytes) -> Self {
let (line, term_len) = match buf[..2].lines_with_terminator_len().next() {
Some(line) => line,
None => {
return LinkBlock {
url: Bytes::new(),
name: None,
}
}
};
let line_len = line.len();
let (link_start, link_end) = match line.field_indices().next() {
Some(range) => range,
None => (0, line.len()),
};
// drop leading line characters that are not a URL
let _ = buf.split_to(2 + link_start);
let url = buf.split_to(link_end);
let name = if line_len > link_end {
Some(buf.split_to(line_len + term_len))
} else {
None
};
Self { url, name }
}
}
// MAKR: impl PreformattedBlock
impl ContentBlock<'_> for PreformattedBlock {
fn matches(buf: &Bytes) -> bool {
buf.len() > 2 && &buf[..3] == b"```"
}
}
impl From<&mut Bytes> for PreformattedBlock {
fn from(buf: &mut Bytes) -> Self {
let _ = buf.split_to(3);
let (line_len, term_len) = match buf.lines_with_terminator_len().next() {
None => {
return PreformattedBlock {
content: Bytes::new(),
alt_content: None,
}
}
Some(line) => (line.0.len(), line.1),
};
let mut alt_content = None;
if line_len > 0 {
let buf = buf.split_to(line_len);
alt_content = Some(buf);
}
let _ = buf.split_to(term_len);
let content = PreformattedBlock::split_at_block_end(buf);
PreformattedBlock {
content,
alt_content,
}
}
}
impl PreformattedBlock {
fn split_at_block_end(buf: &mut Bytes) -> Bytes {
let mut end = 0;
let mut window = &buf[..];
while end < buf.len() {
let next = match window.find_byte(b'`') {
None => window.len(),
Some(idx) => idx,
};
let last = std::cmp::min(window.len() - next, 3);
end += next + last;
if &window[next..last] == b"```" {
break;
}
window = &window[end..];
}
let content = buf.split_to(end);
let line_len = match buf.lines_with_terminator().next() {
None => return content,
Some(line) => line.len(),
};
let _ = buf.split_to(line_len);
content
}
}
| 23.02809
| 82
| 0.505977
|
5bfdd6279e2d3ec18bbabfa37fd0c941974940b9
| 128
|
css
|
CSS
|
style.css
|
hpnrep6/Time_Safari_inc.
|
dd34f8f8547348397839750c8c0209943193005a
|
[
"MIT"
] | null | null | null |
style.css
|
hpnrep6/Time_Safari_inc.
|
dd34f8f8547348397839750c8c0209943193005a
|
[
"MIT"
] | null | null | null |
style.css
|
hpnrep6/Time_Safari_inc.
|
dd34f8f8547348397839750c8c0209943193005a
|
[
"MIT"
] | null | null | null |
.main canvas{
margin-right: auto;
margin-left: auto;
display: block;
}
body {
background-color: rgb(0,20,40);
}
| 14.222222
| 35
| 0.609375
|
a36ceef15c32ba9667f7cf5629d983e9dd5f3fa6
| 926
|
sql
|
SQL
|
SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_internal_broker_dialog_new.sql
|
sozezzo/sqlwatch
|
2daf681a86b28612822f5f4af2513b7e2ad86320
|
[
"MIT"
] | null | null | null |
SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_internal_broker_dialog_new.sql
|
sozezzo/sqlwatch
|
2daf681a86b28612822f5f4af2513b7e2ad86320
|
[
"MIT"
] | null | null | null |
SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Procedures/usp_sqlwatch_internal_broker_dialog_new.sql
|
sozezzo/sqlwatch
|
2daf681a86b28612822f5f4af2513b7e2ad86320
|
[
"MIT"
] | null | null | null |
CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_broker_dialog_new]
@cid uniqueidentifier output,
@lifetime int = 3600,
@from_service nvarchar(128) = 'sqlwatch_collector',
@to_service nvarchar(128) = 'sqlwatch_collector',
@contract nvarchar(128) = 'sqlwatch_collector'
AS
begin
declare @process_message nvarchar(255),
@cid_txt nvarchar(128);
BEGIN DIALOG @cid
FROM SERVICE @from_service
TO SERVICE @to_service , N'current database'
ON CONTRACT @contract
WITH ENCRYPTION = OFF,
LIFETIME = @lifetime;
set @cid_txt = convert(nvarchar(128),@cid);
set @process_message = FORMATMESSAGE('Created new dialog (%s)', @cid_txt);
exec [dbo].[usp_sqlwatch_internal_app_log_add_message]
@proc_id = @@PROCID,
@process_stage = '34E4CEF2-599E-41FE-B779-02722084E8AB',
@process_message = @process_message,
@process_message_type = 'VERBOSE';
end;
| 30.866667
| 75
| 0.698704
|
f23fb3cefbd09d38d3520f2b00f3e10d17b6bda3
| 2,281
|
php
|
PHP
|
index.php
|
fengchang/readhub-rss
|
b8a4a64924c360644cad63e27dc7ee98202e2801
|
[
"MIT"
] | 34
|
2017-06-15T12:30:11.000Z
|
2021-11-05T12:06:23.000Z
|
index.php
|
fengchang/readhub-rss
|
b8a4a64924c360644cad63e27dc7ee98202e2801
|
[
"MIT"
] | 1
|
2018-08-09T01:19:27.000Z
|
2018-08-09T11:00:45.000Z
|
index.php
|
fengchang/readhub-rss
|
b8a4a64924c360644cad63e27dc7ee98202e2801
|
[
"MIT"
] | 7
|
2017-08-23T14:44:36.000Z
|
2020-01-10T14:17:16.000Z
|
<?php
/**
* Created by PhpStorm.
* User: fengchang
* Date: 2017/6/9
* Time: 下午10:08
*/
require 'config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Readhub RSS</title>
</head>
<body>
<div style="width: 600px; margin: 100px auto 0px">
<p>这是一个通过 RSS 订阅 Readhub 的站点,您可以自己选择想要订阅的频道。</p>
<p>
全部频道: <a href="<?=RSS_URL?>?channel=all"><?=RSS_URL?>?channel=all</a>
<img src="https://cdnjs.cloudflare.com/ajax/libs/webicons/2.0.0/webicons/webicon-rss-s.png" alt="">
</p>
<fieldset>
<legend>自定义频道</legend>
<?php
foreach (CHANNEL_CONFIG as $channel=>$attributes) {
echo "<div>";
echo "<input type='checkbox' id='$channel' name='channel' value='$channel' onchange='generateRss()'>";
echo "<label for='$channel'>{$attributes['name']}</label>";
echo "</div>";
}
?>
<p>
<a id="customRssLink" href="">请选中需要订阅的频道</a>
<img id="customRssIcon" src="https://cdnjs.cloudflare.com/ajax/libs/webicons/2.0.0/webicons/webicon-rss-s.png" alt="">
</p>
</fieldset>
<p style="text-align: right;">
See on <a href="https://github.com/fengchang/readhub-rss">Github</a>.
</p>
</div>
<script>
function generateRss() {
var checkboxes = document.getElementsByName('channel');
var checkedValue = [];
for (var i=0; i<checkboxes.length; i++) {
if (checkboxes[i].checked) {
checkedValue.push(checkboxes[i].value);
}
}
if (checkedValue.length > 0) {
var rssBaseUrl = "<?=RSS_URL?>";
var rssUrl = rssBaseUrl + '?channel=' + checkedValue.join(",");
document.getElementById('customRssLink').innerHTML = rssUrl;
document.getElementById('customRssLink').href = rssUrl;
document.getElementById('customRssIcon').style.display = "inline";
} else {
document.getElementById('customRssLink').innerHTML = "请选中需要订阅的频道";
document.getElementById('customRssLink').removeAttribute('href');
document.getElementById('customRssIcon').style.display = "none";
}
}
generateRss();
</script>
</body>
</html>
| 32.126761
| 130
| 0.572556
|
0d20e22a3aaf9b1b72977ebb160bd54badb4e164
| 2,298
|
dart
|
Dart
|
LibTest/io/RawDatagramSocket/takeWhile_A03_t01.dart
|
tvolkert/co19
|
435727789062a45da3d20da09024651fdeb8cafe
|
[
"BSD-3-Clause"
] | null | null | null |
LibTest/io/RawDatagramSocket/takeWhile_A03_t01.dart
|
tvolkert/co19
|
435727789062a45da3d20da09024651fdeb8cafe
|
[
"BSD-3-Clause"
] | null | null | null |
LibTest/io/RawDatagramSocket/takeWhile_A03_t01.dart
|
tvolkert/co19
|
435727789062a45da3d20da09024651fdeb8cafe
|
[
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright (c) 2018, 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 Stream<RawSocketEvent> takeWhile(bool test(T element))
* Forwards data events while test is successful.
* . . .
* Stops listening to this stream after the accepted elements.
*
* Internally the method cancels its subscription after these elements. This
* means that single-subscription (non-broadcast) streams are closed and cannot
* be reused after a call to this method.
*
* @description Checks that method [takeWhile] stops listening to the stream
* after the accepted elements and cancels its subscription, so that
* single-subscription (non-broadcast) streams are closed and cannot be reused
* after a call to this method.
* @author ngl@unipro.ru
*/
import "dart:io";
import "dart:async";
import "../../../Utils/expect.dart";
check(bool test(e), dataExpected) {
asyncStart();
var address = InternetAddress.loopbackIPv4;
RawDatagramSocket.bind(address, 0).then((producer) {
RawDatagramSocket.bind(address, 0).then((receiver) {
int sent = 0;
List list = [];
producer.send([sent++], address, receiver.port);
producer.send([sent++], address, receiver.port);
producer.send([sent++], address, receiver.port);
producer.close();
Stream s = receiver.takeWhile(test);
s.listen((event) {
list.add(event);
receiver.receive();
}, onDone: () {
Expect.listEquals(dataExpected, list);
asyncEnd();
});
try {
s.listen((event) {
Expect.fail('Should not be here.');
});
} catch (e) {
Expect.isTrue(e is StateError);
}
new Timer(const Duration(milliseconds: 200), () {
Expect.isNull(receiver.receive());
receiver.close();
});
});
});
}
main() {
List expected = [
RawSocketEvent.write,
RawSocketEvent.read,
RawSocketEvent.read,
RawSocketEvent.closed
];
check((e) => e != RawSocketEvent.closed, expected.sublist(0, 3));
check((e) => e != RawSocketEvent.read, expected.sublist(0, 1));
check((e) => true, expected);
check((e) => false, []);
}
| 30.64
| 79
| 0.645344
|
dfac70af49b1544245a851d4f71ec3f8f99fbbac
| 2,049
|
cs
|
C#
|
Project03/Project03/JoesAuto.cs
|
cljernigan/CProject03
|
2e37ad70358be4e8343ca1887c2a3ac5ba30c8da
|
[
"MIT"
] | null | null | null |
Project03/Project03/JoesAuto.cs
|
cljernigan/CProject03
|
2e37ad70358be4e8343ca1887c2a3ac5ba30c8da
|
[
"MIT"
] | null | null | null |
Project03/Project03/JoesAuto.cs
|
cljernigan/CProject03
|
2e37ad70358be4e8343ca1887c2a3ac5ba30c8da
|
[
"MIT"
] | null | null | null |
/*Christopher Jernigan
* 9/23/2016
* Project 3 ITE 136 HP86
* Starting out with Visual C# 4E Gaddis pg 391 Joes Automotive
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Project03
{
public partial class JoesAuto : Form
{
public JoesAuto()
{
InitializeComponent();
decimal partstotal = 0.00m;
}
private void ExitButton_Click(object sender, EventArgs e)
{
this.Close();//Close Form
}
private void ClearButton_Click(object sender, EventArgs e)
{
//Clears Output labels
TotalOutLabel.Text = "";
TaxOutLabel.Text = "";
PartsOutLabel.Text = "";
ServiceLaborOutLabel.Text = "";
LaborHoursTextBox.Text = "";
}
private void CalculateButton_Click(object sender, EventArgs e)
{
decimal servicetotal = 0.00m;
decimal subtotal = 0.00m;
decimal labortotal = 0.00m;
decimal laborrate = 40.00m;
decimal taxrate = 0.06m;
if (OilChangeCheckBox.Checked == true) { servicetotal += 26.00m; } ;
if (LubeCheckBox.Checked == true) { servicetotal += 18.00m; } ;
if (RadFlushCheckBox.Checked == true) { servicetotal += 30.00m; };
if (TranFlushCheckBox.Checked == true) { servicetotal += 80.00m; };
if (InspectionCheckBox.Checked == true) { servicetotal += 15.00m; };
if (ReplaceMuffCheckBox.Checked == true) { servicetotal += 100.00m; };
if (TireRotationCheckBox.Checked == true) { servicetotal += 20.00m; };
ServiceLaborOutLabel .Text = subtotal.ToString("C");
}
}
}
| 28.458333
| 84
| 0.550024
|
46d86e206dd5926bdc0a0885814ea377dc5ba997
| 112
|
py
|
Python
|
autocord/error.py
|
qweme32/autocord
|
7bf141acf9bc9e3f9ef5a5c90a2ed24c28b3e045
|
[
"MIT"
] | null | null | null |
autocord/error.py
|
qweme32/autocord
|
7bf141acf9bc9e3f9ef5a5c90a2ed24c28b3e045
|
[
"MIT"
] | null | null | null |
autocord/error.py
|
qweme32/autocord
|
7bf141acf9bc9e3f9ef5a5c90a2ed24c28b3e045
|
[
"MIT"
] | null | null | null |
# autocord
# package for simple automation with discord client
#
# m: error
class ApiError(Exception):
pass
| 16
| 51
| 0.741071
|
e8ce63a67c6629f03d9c56d7d244677f93bc6087
| 6,422
|
go
|
Go
|
cli/command/stack/kubernetes/convert_test.go
|
RJPercival/cli
|
237bdbf5f660e8ac0e93225bf9ac67d947ed3241
|
[
"Apache-2.0"
] | null | null | null |
cli/command/stack/kubernetes/convert_test.go
|
RJPercival/cli
|
237bdbf5f660e8ac0e93225bf9ac67d947ed3241
|
[
"Apache-2.0"
] | 1
|
2021-02-24T03:47:00.000Z
|
2021-02-24T03:47:00.000Z
|
cli/command/stack/kubernetes/convert_test.go
|
RJPercival/cli
|
237bdbf5f660e8ac0e93225bf9ac67d947ed3241
|
[
"Apache-2.0"
] | 2
|
2020-11-19T19:31:56.000Z
|
2021-01-23T09:46:22.000Z
|
package kubernetes
import (
"fmt"
"io/ioutil"
"path/filepath"
"testing"
"github.com/docker/cli/cli/compose/loader"
composetypes "github.com/docker/cli/cli/compose/types"
"github.com/docker/compose-on-kubernetes/api/compose/v1alpha3"
"github.com/docker/compose-on-kubernetes/api/compose/v1beta1"
"github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
"gotest.tools/assert"
is "gotest.tools/assert/cmp"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func TestNewStackConverter(t *testing.T) {
_, err := NewStackConverter("v1alpha1")
assert.Check(t, is.ErrorContains(err, "stack version v1alpha1 unsupported"))
_, err = NewStackConverter("v1beta1")
assert.NilError(t, err)
_, err = NewStackConverter("v1beta2")
assert.NilError(t, err)
_, err = NewStackConverter("v1alpha3")
assert.NilError(t, err)
}
func TestConvertFromToV1beta1(t *testing.T) {
composefile := `version: "3.3"
services:
test:
image: nginx
secrets:
test:
file: testdata/secret
configs:
test:
file: testdata/config
`
stackv1beta1 := &v1beta1.Stack{
ObjectMeta: metav1.ObjectMeta{
Name: "test",
},
Spec: v1beta1.StackSpec{
ComposeFile: composefile,
},
}
result, err := stackFromV1beta1(stackv1beta1)
assert.NilError(t, err)
expected := Stack{
Name: "test",
ComposeFile: composefile,
Spec: &v1alpha3.StackSpec{
Services: []v1alpha3.ServiceConfig{
{
Name: "test",
Image: "nginx",
Environment: make(map[string]*string),
},
},
Secrets: map[string]v1alpha3.SecretConfig{
"test": {File: filepath.FromSlash("testdata/secret")},
},
Configs: map[string]v1alpha3.ConfigObjConfig{
"test": {File: filepath.FromSlash("testdata/config")},
},
},
}
assert.DeepEqual(t, expected, result)
assert.DeepEqual(t, stackv1beta1, stackToV1beta1(result))
}
func TestConvertFromToV1beta2(t *testing.T) {
stackv1beta2 := &v1beta2.Stack{
ObjectMeta: metav1.ObjectMeta{
Name: "test",
},
Spec: &v1beta2.StackSpec{
Services: []v1beta2.ServiceConfig{
{
Name: "test",
Image: "nginx",
Environment: make(map[string]*string),
},
},
Secrets: map[string]v1beta2.SecretConfig{
"test": {File: filepath.FromSlash("testdata/secret")},
},
Configs: map[string]v1beta2.ConfigObjConfig{
"test": {File: filepath.FromSlash("testdata/config")},
},
},
}
expected := Stack{
Name: "test",
Spec: &v1alpha3.StackSpec{
Services: []v1alpha3.ServiceConfig{
{
Name: "test",
Image: "nginx",
Environment: make(map[string]*string),
},
},
Secrets: map[string]v1alpha3.SecretConfig{
"test": {File: filepath.FromSlash("testdata/secret")},
},
Configs: map[string]v1alpha3.ConfigObjConfig{
"test": {File: filepath.FromSlash("testdata/config")},
},
},
}
result, err := stackFromV1beta2(stackv1beta2)
assert.NilError(t, err)
assert.DeepEqual(t, expected, result)
gotBack, err := stackToV1beta2(result)
assert.NilError(t, err)
assert.DeepEqual(t, stackv1beta2, gotBack)
}
func TestConvertFromToV1alpha3(t *testing.T) {
stackv1alpha3 := &v1alpha3.Stack{
ObjectMeta: metav1.ObjectMeta{
Name: "test",
},
Spec: &v1alpha3.StackSpec{
Services: []v1alpha3.ServiceConfig{
{
Name: "test",
Image: "nginx",
Environment: make(map[string]*string),
},
},
Secrets: map[string]v1alpha3.SecretConfig{
"test": {File: filepath.FromSlash("testdata/secret")},
},
Configs: map[string]v1alpha3.ConfigObjConfig{
"test": {File: filepath.FromSlash("testdata/config")},
},
},
}
expected := Stack{
Name: "test",
Spec: &v1alpha3.StackSpec{
Services: []v1alpha3.ServiceConfig{
{
Name: "test",
Image: "nginx",
Environment: make(map[string]*string),
},
},
Secrets: map[string]v1alpha3.SecretConfig{
"test": {File: filepath.FromSlash("testdata/secret")},
},
Configs: map[string]v1alpha3.ConfigObjConfig{
"test": {File: filepath.FromSlash("testdata/config")},
},
},
}
result := stackFromV1alpha3(stackv1alpha3)
assert.DeepEqual(t, expected, result)
gotBack := stackToV1alpha3(result)
assert.DeepEqual(t, stackv1alpha3, gotBack)
}
func loadTestStackWith(t *testing.T, with string) *composetypes.Config {
t.Helper()
filePath := fmt.Sprintf("testdata/compose-with-%s.yml", with)
data, err := ioutil.ReadFile(filePath)
assert.NilError(t, err)
yamlData, err := loader.ParseYAML(data)
assert.NilError(t, err)
cfg, err := loader.Load(composetypes.ConfigDetails{
ConfigFiles: []composetypes.ConfigFile{
{Config: yamlData, Filename: filePath},
},
})
assert.NilError(t, err)
return cfg
}
func TestHandlePullSecret(t *testing.T) {
testData := loadTestStackWith(t, "pull-secret")
cases := []struct {
version string
err string
}{
{version: "v1beta1", err: `stack API version v1beta1 does not support pull secrets (field "x-pull-secret"), please use version v1alpha3 or higher`},
{version: "v1beta2", err: `stack API version v1beta2 does not support pull secrets (field "x-pull-secret"), please use version v1alpha3 or higher`},
{version: "v1alpha3"},
}
for _, c := range cases {
t.Run(c.version, func(t *testing.T) {
conv, err := NewStackConverter(c.version)
assert.NilError(t, err)
s, err := conv.FromCompose(ioutil.Discard, "test", testData)
if c.err != "" {
assert.Error(t, err, c.err)
} else {
assert.NilError(t, err)
assert.Equal(t, s.Spec.Services[0].PullSecret, "some-secret")
}
})
}
}
func TestHandlePullPolicy(t *testing.T) {
testData := loadTestStackWith(t, "pull-policy")
cases := []struct {
version string
err string
}{
{version: "v1beta1", err: `stack API version v1beta1 does not support pull policies (field "x-pull-policy"), please use version v1alpha3 or higher`},
{version: "v1beta2", err: `stack API version v1beta2 does not support pull policies (field "x-pull-policy"), please use version v1alpha3 or higher`},
{version: "v1alpha3"},
}
for _, c := range cases {
t.Run(c.version, func(t *testing.T) {
conv, err := NewStackConverter(c.version)
assert.NilError(t, err)
s, err := conv.FromCompose(ioutil.Discard, "test", testData)
if c.err != "" {
assert.Error(t, err, c.err)
} else {
assert.NilError(t, err)
assert.Equal(t, s.Spec.Services[0].PullPolicy, "Never")
}
})
}
}
| 26.983193
| 151
| 0.668016
|
b0474c9a99b7624e6cd88b46bd3108c452151feb
| 720
|
asm
|
Assembly
|
oeis/178/A178972.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/178/A178972.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/178/A178972.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A178972: Number of ways to place 2 nonattacking amazons (superqueens) on an n X n toroidal board.
; Submitted by Jon Maiga
; 0,0,0,0,0,144,392,896,1620,2800,4356,6624,9464,13328,18000,24064,31212,40176,50540,63200,77616,94864,114264,137088,162500,191984,224532,261856,302760,349200,399776,456704,518364,587248,661500,743904,832352,929936,1034280,1148800,1270836,1404144,1545764,1699808,1863000,2039824,2226672,2428416,2641100,2870000,3110796,3369184,3640464,3930768,4235000,4559744,4899492,5261296,5639220,6040800,6459656,6903824,7366464,7856128,8365500,8903664,9462812,10052576,10664640,11309200,11977416,12680064,13407764
mov $1,$0
add $0,1
pow $0,2
div $0,4
add $1,1
sub $0,$1
trn $0,1
pow $1,2
mul $0,$1
mul $0,2
| 48
| 500
| 0.794444
|
8c0b217b16ba961bc54bb25b2d6eded7938a785c
| 131
|
cs
|
C#
|
tests/Tests/build/AssemblyInfo.cs
|
Ed-Pavlov/Armature
|
418df44fe6f40c0efa9f72ab0271b206805c17e8
|
[
"Apache-2.0"
] | 1
|
2021-01-04T08:28:22.000Z
|
2021-01-04T08:28:22.000Z
|
tests/Tests/build/AssemblyInfo.cs
|
Ed-Pavlov/Armature
|
418df44fe6f40c0efa9f72ab0271b206805c17e8
|
[
"Apache-2.0"
] | 4
|
2021-03-21T11:33:39.000Z
|
2022-01-30T04:15:40.000Z
|
tests/Tests/build/AssemblyInfo.cs
|
Ed-Pavlov/Armature
|
418df44fe6f40c0efa9f72ab0271b206805c17e8
|
[
"Apache-2.0"
] | null | null | null |
using JetBrains.dotMemoryUnit;
[assembly: DotMemoryUnit(FailIfRunWithoutSupport = false, SavingStrategy = SavingStrategy.Never)]
| 32.75
| 97
| 0.832061
|
7f75173e924066419a487a21d06d4b978f8a57cd
| 2,028
|
php
|
PHP
|
application/controllers/Notification.php
|
Sitiindrianem/perpustakaanindri
|
a64819bc7797b587712397e0748fb0880bebbdca
|
[
"MIT"
] | 6
|
2017-07-19T03:49:02.000Z
|
2022-03-18T04:37:09.000Z
|
application/controllers/Notification.php
|
Sitiindrianem/perpustakaanindri
|
a64819bc7797b587712397e0748fb0880bebbdca
|
[
"MIT"
] | null | null | null |
application/controllers/Notification.php
|
Sitiindrianem/perpustakaanindri
|
a64819bc7797b587712397e0748fb0880bebbdca
|
[
"MIT"
] | 22
|
2017-07-17T09:18:41.000Z
|
2022-02-15T03:20:18.000Z
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Notification extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('Notif_model');
if($this->session->userdata('logged_in') == false){
redirect('welcome');
}
}
public function index(){
$data['title'] = 'Notifikasi';
if($this->session->userdata('role')=='superadmin'){
$data['primary_view'] = 'notif/notif_view';
$data['total'] = $this->Notif_model->getTotals();
$data['list'] = $this->Notif_model->getLists();
}else{
$data['primary_view'] = 'notif/all_notif_view';
$data['total'] = $this->Notif_model->getTotal();
$data['list'] = $this->Notif_model->getList();
}
$this->load->view('template_view', $data);
}
public function add(){
$data = array(
'title' => 'Notifikasi',
'primary_view' => 'notif/add_notif_view'
);
$this->load->view('template_view', $data);
}
public function submit(){
if($this->input->post('submit')){
$this->form_validation->set_rules('judul', 'Judul', 'trim|required');
$this->form_validation->set_rules('isi', 'Content', 'trim|required');
if ($this->form_validation->run() == true) {
if($this->Notif_model->insert() == true){
$this->session->set_flashdata('announce', 'Berhasil menyimpan data');
redirect('notification/add');
}else{
$this->session->set_flashdata('announce', validation_errors());
redirect('notification/add');
}
} else {
$this->session->set_flashdata('announce', validation_errors());
redirect('notification/add');
}
}
}
public function delete(){
$id = $this->input->get('rcgn');
if($this->Notif_model->delete($id) == true){
$this->session->set_flashdata('announce', 'Berhasil menghapus data');
redirect('notification');
}else{
$this->session->set_flashdata('announce', 'Gagal menghapus data');
redirect('notification');
}
}
}
/* End of file Notification.php */
/* Location: ./application/controllers/Notification.php */
| 28.971429
| 74
| 0.645957
|
dec3cd47da8a2b544306bf90e26cb4cf2699e0a6
| 618
|
css
|
CSS
|
src/app/resources/app.css
|
spgar/MTGLandCalc
|
ff1875cc641b34f2503625774580ec793503ee2b
|
[
"MIT"
] | null | null | null |
src/app/resources/app.css
|
spgar/MTGLandCalc
|
ff1875cc641b34f2503625774580ec793503ee2b
|
[
"MIT"
] | null | null | null |
src/app/resources/app.css
|
spgar/MTGLandCalc
|
ff1875cc641b34f2503625774580ec793503ee2b
|
[
"MIT"
] | null | null | null |
/**
* If you are developing a project that makes use of Dijit widgets, you will probably want to include the two files
* below; otherwise, you can remove them. When building for release, Dojo will automatically combine all of your
* @imported CSS files into a single file.
*
* It is highly, highly recommended that you develop your CSS using Stylus: http://learnboost.github.com/stylus/.
*/
@import '../../dojo/resources/dojo.css';
@import '../../dijit/themes/claro/claro.css';
html, body {
width: 100%;
height: 100%;
margin: 0;
}
.ManaSymbolSpacing {
display: inline-block;
width: 20px;
}
| 29.428571
| 115
| 0.697411
|
a49b6bcb0177680ee9e42254e35999aab062190d
| 341
|
php
|
PHP
|
resources/views/pokecentre/release.blade.php
|
np-patel/pokedex
|
c3d5193cc61932dc05a4218095dc4cae7e52a0c4
|
[
"MIT"
] | null | null | null |
resources/views/pokecentre/release.blade.php
|
np-patel/pokedex
|
c3d5193cc61932dc05a4218095dc4cae7e52a0c4
|
[
"MIT"
] | null | null | null |
resources/views/pokecentre/release.blade.php
|
np-patel/pokedex
|
c3d5193cc61932dc05a4218095dc4cae7e52a0c4
|
[
"MIT"
] | null | null | null |
@extends('master')
@section('content')
<div class="row">
<div class="columns">
<h1><small>Release Your {{$capture->pokemon->name}}</h1>
<a href="/pokecentre/captures/{{$capture->id}}/doRelease" class="tiny alert button">Yes</a>
<a href="/pokecentre/captures" class="tiny button">No</a>
</div>
</div>
@endsection
| 17.947368
| 94
| 0.624633
|
6df63de611c2d060d2f4d16bd141d6d80631d8ca
| 718
|
h
|
C
|
V5ClientSDK/V5MediaMessage.h
|
Chyrain/V5ClientWithFramework
|
7fedca4d5c0057fbe63b52079143d4ab3fad318b
|
[
"MIT"
] | 7
|
2016-05-23T07:27:13.000Z
|
2020-01-14T02:43:17.000Z
|
V5ClientSDK/V5MediaMessage.h
|
Chyrain/V5ClientWithFramework
|
7fedca4d5c0057fbe63b52079143d4ab3fad318b
|
[
"MIT"
] | 3
|
2016-06-27T14:32:23.000Z
|
2017-09-22T06:52:45.000Z
|
V5ClientSDK/V5MediaMessage.h
|
Chyrain/V5ClientWithFramework
|
7fedca4d5c0057fbe63b52079143d4ab3fad318b
|
[
"MIT"
] | 4
|
2017-04-07T04:23:26.000Z
|
2021-07-02T16:24:46.000Z
|
//
// V5MediaMessage.h
// mcss
//
// Created by chyrain on 16/8/19.
// Copyright © 2016年 V5KF. All rights reserved.
//
#import "V5Message.h"
@class V5MediaMessage;
typedef void (^V5MediaLoadSuccessBlock)(V5MediaMessage *message);
typedef void (^V5MediaLoadFailureBlock)(V5MediaMessage *message, NSString *reason);
@interface V5MediaMessage : V5Message
// 本地路径
@property (nonatomic, strong) NSString *filePath;
// 格式
@property (nonatomic, strong) NSString * format;
- (NSString *)getDefaultFormat;
- (NSString *)getDefaultURL;
- (void)loadMediaSuccess:(V5MediaLoadSuccessBlock)success
failure:(V5MediaLoadFailureBlock)failure
progress:(void (^)(float progress))progress;
@end
| 24.758621
| 83
| 0.721448
|
b3caf04c50492d566b5073bbfb213d97843169c3
| 789
|
swift
|
Swift
|
ios/Src/Extensions+Init/UIReturnKeyType+Init.swift
|
dominicstop/react-native-ios-navigator
|
1597610f87b2ec6a1430a0a3822cc42f1016e9ad
|
[
"MIT"
] | 12
|
2021-01-07T23:18:22.000Z
|
2022-02-23T15:47:43.000Z
|
ios/Src/Extensions+Init/UIReturnKeyType+Init.swift
|
dominicstop/react-native-ios-navigator
|
1597610f87b2ec6a1430a0a3822cc42f1016e9ad
|
[
"MIT"
] | null | null | null |
ios/Src/Extensions+Init/UIReturnKeyType+Init.swift
|
dominicstop/react-native-ios-navigator
|
1597610f87b2ec6a1430a0a3822cc42f1016e9ad
|
[
"MIT"
] | null | null | null |
//
// UIReturnKeyType+Init.swift
// react-native-ios-navigator
//
// Created by Dominic Go on 5/21/21.
//
import Foundation
extension UIReturnKeyType {
public init?(string: String) {
switch string {
case "default" : self = .`default`;
case "go" : self = .go;
case "google" : self = .google;
case "join" : self = .join;
case "next" : self = .next;
case "route" : self = .route;
case "search" : self = .search;
case "send" : self = .send;
case "yahoo" : self = .yahoo;
case "done" : self = .done;
case "emergencyCall": self = .emergencyCall;
case "continue" : self = .`continue`;
default: return nil;
};
};
};
| 26.3
| 50
| 0.499366
|
9700a8258c6280a8b5f0977162829ba4195bcc83
| 356
|
ts
|
TypeScript
|
src/types/configuration.d.ts
|
laggingreflex/html5sortable
|
e8da2be1b7f571bcabfda4e1ffc32618c81c0240
|
[
"MIT"
] | null | null | null |
src/types/configuration.d.ts
|
laggingreflex/html5sortable
|
e8da2be1b7f571bcabfda4e1ffc32618c81c0240
|
[
"MIT"
] | null | null | null |
src/types/configuration.d.ts
|
laggingreflex/html5sortable
|
e8da2be1b7f571bcabfda4e1ffc32618c81c0240
|
[
"MIT"
] | null | null | null |
interface configuration {
connectWith?: string,
acceptFrom?: void,
copy?: boolean,
placeholder?: void,
disableIEFix?: boolean,
placeholderClass?: string,
draggingClass?: string,
hoverClass?: string,
debounce?: number,
throttleTime?: number,
maxItems?: number,
itemSerializer?: void,
containerSerializer?: void,
items?: string
}
| 20.941176
| 29
| 0.710674
|
641081af4bdafa1ec5ff97703b7c7bc6ce439430
| 3,165
|
py
|
Python
|
get_archive.py
|
DarkElement75/object-detection-experiments
|
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
|
[
"MIT"
] | null | null | null |
get_archive.py
|
DarkElement75/object-detection-experiments
|
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
|
[
"MIT"
] | null | null | null |
get_archive.py
|
DarkElement75/object-detection-experiments
|
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
|
[
"MIT"
] | null | null | null |
"""
Generate an h5py file for our X and Y labelled data to use for training, and testing.
(not doing validation dataset due to the small number of optimizations on hyperparameters)
We do this by looping through our negative and positive dirs, and setting the Y label as 0 if negative, and 1 if positive
This is a really small script, and I may only use it once due to the extremely problem-specific nature of it.
-Blake Edwards / Dark Element
"""
import os, sys
import numpy as np
import cv2
import h5py
def recursive_get_paths(img_dir):
"""
Arguments:
img_dir : directory to recursively traverse. Should be a string.
Returns:
A list of tuples, where each tuple is of the form
(path and filename str, filename str), e.g.
("/home/darkelement/test.txt", "test.txt")
"""
paths = []
for (path, dirs, fnames) in os.walk(img_dir):
for fname in fnames:
paths.append((os.path.join(path, fname), fname))
return paths
"""
Directories to get our negative and positive samples from
"""
negatives_dir = "data/negatives/"
positives_dir = "data/positives/"
"""
H5py file directory to store samples
"""
archive_dir = "samples.h5"
"""
Dimensions of one x sample,
and if we have our samples as rgb or not
"""
sample_dims = [128, 128, 3]
rgb = True
"""
Get our filepaths
"""
negative_fpaths = recursive_get_paths(negatives_dir)
positive_fpaths = recursive_get_paths(positives_dir)
"""
Get the total number of samples via the total number of filepaths
"""
sample_n = len(negative_fpaths) + len(positive_fpaths)
"""
Create our x so that we can directly insert each image into it, we will wait to reshape it until they have all been added.
"""
X_dims = [sample_n]
X_dims.extend(sample_dims)
"""
Initialize X and Y with known data numbers
"""
#X = np.zeros(X_dims)
X = np.memmap("x.dat", dtype="uint8", mode="r+", shape=tuple(X_dims))
Y = np.zeros(sample_n,)
print "Getting Negative Samples..."
for i, negative_fpath_info in enumerate(negative_fpaths):
"""
Loop through our paths and get our negative samples,
setting their y value as 0
"""
negative_fpath, negative_fname = negative_fpath_info
if rgb:
X[i] = cv2.imread(negative_fpath)
else:
X[i] = cv2.imread(negative_fpath, 0)
Y[i] = 0
print "Getting Positive Samples..."
for i, positive_fpath_info in enumerate(positive_fpaths):
"""
Loop through our paths and get our positive samples,
setting their y value as 1
"""
positive_fpath, positive_fname = positive_fpath_info
if rgb:
X[i] = cv2.imread(positive_fpath)
else:
X[i] = cv2.imread(positive_fpath, 0)
Y[i] = 1
"""
Reshape accordingly, flattening our h and w of our image
"""
if rgb:
X = np.reshape(X, (sample_n, -1, 3))
else:
X = np.reshape(X, (sample_n, -1))
"""
Create our archive
"""
print "Creating Archive..."
with h5py.File(archive_dir, "w", chunks=True, compression="gzip") as hf:
hf.create_dataset("x", data=X)
hf.create_dataset("x_shape", data=X.shape)
hf.create_dataset("y", data=Y)
hf.create_dataset("y_shape", data=Y.shape)
| 26.596639
| 122
| 0.68278
|
dd774f57078b9b26e81719c74a2b1547d5a0708f
| 3,698
|
java
|
Java
|
src/core/src/tonkadur/wyrd/v1/compiler/fate/v1/computation/generic/AddElementAtComputationCompiler.java
|
nsensfel/tonkadur
|
784341f1fa9eb276bb8afbf1c2fe8420f5ea6209
|
[
"Apache-2.0"
] | 2
|
2020-08-28T13:34:52.000Z
|
2021-08-22T02:54:09.000Z
|
src/core/src/tonkadur/wyrd/v1/compiler/fate/v1/computation/generic/AddElementAtComputationCompiler.java
|
nsensfel/tonkadur
|
784341f1fa9eb276bb8afbf1c2fe8420f5ea6209
|
[
"Apache-2.0"
] | 42
|
2020-07-19T15:57:14.000Z
|
2022-01-31T17:18:46.000Z
|
src/core/src/tonkadur/wyrd/v1/compiler/fate/v1/computation/generic/AddElementAtComputationCompiler.java
|
nsensfel/tonkadur
|
784341f1fa9eb276bb8afbf1c2fe8420f5ea6209
|
[
"Apache-2.0"
] | null | null | null |
package tonkadur.wyrd.v1.compiler.fate.v1.computation.generic;
import tonkadur.fate.v1.lang.computation.generic.AddElementAtComputation;
import tonkadur.wyrd.v1.lang.instruction.SetValue;
import tonkadur.wyrd.v1.lang.computation.Constant;
import tonkadur.wyrd.v1.lang.computation.IfElseComputation;
import tonkadur.wyrd.v1.lang.computation.Operation;
import tonkadur.wyrd.v1.lang.computation.Size;
import tonkadur.wyrd.v1.lang.Register;
import tonkadur.wyrd.v1.lang.type.Type;
import tonkadur.wyrd.v1.compiler.fate.v1.Compiler;
import tonkadur.wyrd.v1.compiler.fate.v1.TypeCompiler;
import tonkadur.wyrd.v1.compiler.fate.v1.ComputationCompiler;
import tonkadur.wyrd.v1.compiler.fate.v1.computation.GenericComputationCompiler;
public class AddElementAtComputationCompiler
extends GenericComputationCompiler
{
public static Class get_target_class ()
{
return AddElementAtComputation.class;
}
public AddElementAtComputationCompiler (final Compiler compiler)
{
super(compiler);
}
public void compile
(
final tonkadur.fate.v1.lang.computation.GenericComputation computation
)
throws Throwable
{
final AddElementAtComputation source;
final ComputationCompiler address_compiler, index_compiler;
final ComputationCompiler element_compiler;
final Register result, index, collection_size;
source = (AddElementAtComputation) computation;
result = reserve(TypeCompiler.compile(compiler, source.get_type()));
result_as_address = result.get_address();
result_as_computation = result.get_value();
address_compiler = new ComputationCompiler(compiler);
index_compiler = new ComputationCompiler(compiler);
element_compiler = new ComputationCompiler(compiler);
source.get_collection().get_visited_by(address_compiler);
if (address_compiler.has_init())
{
init_instructions.add(address_compiler.get_init());
}
init_instructions.add
(
new SetValue(result_as_address, address_compiler.get_computation())
);
address_compiler.release_registers(init_instructions);
source.get_index().get_visited_by(index_compiler);
index_compiler.generate_address();
assimilate(index_compiler);
source.get_element().get_visited_by(element_compiler);
assimilate(element_compiler);
collection_size = reserve(Type.INT);
index = reserve(Type.INT);
init_instructions.add
(
new SetValue
(
collection_size.get_address(),
new Size(result_as_address)
)
);
init_instructions.add
(
new SetValue
(
index.get_address(),
new IfElseComputation
(
Operation.greater_than
(
index_compiler.get_computation(),
collection_size.get_value()
),
collection_size.get_value(),
new IfElseComputation
(
Operation.less_than
(
index_compiler.get_computation(),
Constant.ZERO
),
Constant.ZERO,
index_compiler.get_computation()
)
)
)
);
init_instructions.add
(
tonkadur.wyrd.v1.compiler.util.InsertAt.generate
(
compiler.registers(),
compiler.assembler(),
index.get_address(),
element_compiler.get_computation(),
collection_size.get_value(),
result_as_address
)
);
}
}
| 28.229008
| 80
| 0.650892
|
97750d1cc35e68d6d4c9d9894671d6b9ade8055b
| 913
|
ts
|
TypeScript
|
src/app/lang-selector/lang-selector.component.ts
|
wearelucid/passwortcheck
|
0c0919aa88a00e949ccfac8bed9e29840896c6cb
|
[
"BSD-2-Clause"
] | 8
|
2017-02-25T15:15:57.000Z
|
2022-02-01T10:44:43.000Z
|
src/app/lang-selector/lang-selector.component.ts
|
wearelucid/passwortcheck
|
0c0919aa88a00e949ccfac8bed9e29840896c6cb
|
[
"BSD-2-Clause"
] | 2
|
2018-05-02T08:35:24.000Z
|
2022-03-02T12:58:23.000Z
|
src/app/lang-selector/lang-selector.component.ts
|
wearelucid/passwortcheck
|
0c0919aa88a00e949ccfac8bed9e29840896c6cb
|
[
"BSD-2-Clause"
] | 1
|
2022-01-05T17:38:30.000Z
|
2022-01-05T17:38:30.000Z
|
import {Component, EventEmitter, OnDestroy, OnInit, Output} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
@Component({
selector: 'app-lang-selector',
templateUrl: './lang-selector.component.html',
styleUrls: ['./lang-selector.component.css']
})
export class LangSelectorComponent implements OnInit, OnDestroy {
@Output() selectedLang = new EventEmitter<string>();
availableLangs = ['de'];
currentLang = 'de';
constructor(
private translate: TranslateService,
) { }
ngOnInit() {
this.availableLangs = this.translate.getLangs();
this.currentLang = this.translate.getDefaultLang();
this.selectedLang.emit(this.currentLang);
}
setLanguage(lang: string) {
this.translate.setDefaultLang(lang);
this.currentLang = lang;
this.selectedLang.emit(this.currentLang);
}
ngOnDestroy(): void {
this.selectedLang.unsubscribe();
}
}
| 25.361111
| 81
| 0.707558
|
d91885f8aa99654553af5c6eacdff68cf0818038
| 5,863
|
lua
|
Lua
|
src.lua
|
VariableV/cheatworkslol
|
9d113b2d06ddf052bfe4b9ad78beb26680c5310f
|
[
"MIT"
] | null | null | null |
src.lua
|
VariableV/cheatworkslol
|
9d113b2d06ddf052bfe4b9ad78beb26680c5310f
|
[
"MIT"
] | null | null | null |
src.lua
|
VariableV/cheatworkslol
|
9d113b2d06ddf052bfe4b9ad78beb26680c5310f
|
[
"MIT"
] | null | null | null |
-- cheat-works by variable
-- includes:
-- chams, aim-assist, esp, full brightness, snapline/wiring
local plr = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
-- toggling bools
local botting = false
local esp = false
local chamstog = false
local brightness = false
local wire = false
-- util
function findTorso(position)
local torso
local dist = 999999999
for _,v in pairs (game.Players:GetChildren()) do
if v.TeamColor ~= plr.TeamColor then
if v.Character then
local t = v.Character:FindFirstChild('Head')
if t then
if (t.Position - position).magnitude < dist then
if v.Character.Humanoid.Health > 0 then
torso = t
dist = (t.Position - position).magnitude
end
end
end
end
end
end
return torso
end
function chams(part, color, trans, name)
local box = Instance.new("BoxHandleAdornment", camera)
box.Adornee = part
box.Size = part.Size
box.Color3 = color
box.Transparency = trans
box.ZIndex = 1
box.Name = name
box.AlwaysOnTop = true
end
function generateBox(Target,Color) -- thx KrystalTeam
local Ae,Be,Ce,De,Ee,Fe,Ge
Ae=Instance.new("BillboardGui",camera)
Ae.Name = "EspBox"
Ae.Size = UDim2.new(4.5,0,6,0)
Ae.Adornee = Target
Ae.AlwaysOnTop = true
Ae.SizeOffset = Vector2.new(0, -0.100000001)
Be=Instance.new("Frame",Ae)
Be.Transparency = 1 Be.Size = UDim2.new(1,0,1,0)
Ce=Instance.new("Frame",Ae)
Ce.Transparency = 0.5
Ce.Size = UDim2.new(1,0,0.05, 0)
Ce.BorderSizePixel = 0
Ce.BackgroundColor3 = Color
De=Ce:clone()
De.Size = UDim2.new(0.05,0,1, 0)
De.Parent = Ae
Ee=De:clone()
Ee.Position = UDim2.new(1-0.05,0,0, 0)
Ee.Parent = Ae
Fe=Ce:clone()
Fe.Position = UDim2.new(0,0,1-0.05, 0)
Fe.Parent = Ae
end
function wirePlr(to, color)
local wire = Instance.new('FloorWire', camera)
wire.Color3 = color
wire.From = plr.Character.Torso
wire.To = to
end
-- main shtuff
function chamsAll()
for _,v in pairs (game.Players:GetChildren()) do
if v.Name ~= plr.Name then
if v.TeamColor ~= plr.TeamColor then
if v.Character then
for _,obj in pairs (v.Character:GetChildren()) do
if obj:IsA('Part') then
chams(obj, Color3.new(1,0,0), 0.3, v.Name.."'s "..obj.Name)
end
end
end
else
if v.Character then
for _,obj in pairs (v.Character:GetChildren()) do
if obj:IsA('Part') then
chams(obj, Color3.new(0,1,0), 0.3, v.Name.."'s "..obj.Name)
end
end
end
end
end
end
end
function espAll()
for _,v in pairs (game.Players:GetChildren()) do
if v.Name ~= plr.Name then
if v.TeamColor == plr.TeamColor then
if v.Character then
generateBox(v.Character.Torso, Color3.new(0,1,0))
end
else
if v.Character then
generateBox(v.Character.Torso, Color3.new(1,0,0))
end
end
end
end
end
function wireAll()
for _,v in pairs (game.Players:GetChildren())do
if v.Name ~= plr.Name then
if v.TeamColor ~= plr.TeamColor then
if v.Character then
wirePlr(v.Character.Torso, Color3.new(1,0,0))
end
else
if v.Character then
wirePlr(v.Character.Torso, Color3.new(0,1,0))
end
end
end
end
end
function removeChams()
for _,v in pairs (camera:GetChildren()) do
if v:IsA('BoxHandleAdornment') then
v:Destroy()
end
end
end
function removeEsp()
for _,v in pairs (camera:GetChildren()) do
if v:IsA('BillboardGui') then
v:Destroy()
end
end
end
function removeWire()
for _,v in pairs (camera:GetChildren()) do
if v:IsA('FloorWire') then
v:Destroy()
end
end
end
function startAiming()
spawn(function()
while wait(0) do
if botting then
while wait(0.2) do
if botting then
local torso = findTorso(plr.Character.Torso.Position)
if torso then
plr.Character.Torso.CFrame = CFrame.new(plr.Character.Torso.Position, torso.Position)
camera.CFrame = CFrame.new(plr.Character.Torso.Position, torso.Position)
end
elseif not botting then
return
end
end
end
end
end)
end
-- toggle handling functions
function wireToggle(aname, ainputstate)
if ainputstate == Enum.UserInputState.Begin then
if not wire then
print'[wire]: true'
wireAll()
wire = true
else
removeWire()
wire = false
print'[wire]: false'
end
end
end
function brightToggle(aname, ainputstate)
if ainputstate == Enum.UserInputState.Begin then
if not brightness then
print'[full bright]: true'
game.Lighting.Brightness = 50
brightness = true
else
game.Lighting.Brightness = 1
brightness = false
print'[full bright]: false'
end
end
end
function espToggle(aname, ainputstate)
if ainputstate == Enum.UserInputState.Begin then
if not esp then
print'[esp]: true'
espAll()
esp = true
else
removeEsp()
esp = false
print'[esp]: false'
end
end
end
function chamsToggle(aname, ainputstate)
if ainputstate == Enum.UserInputState.Begin then
if not chamstog then
chamsAll()
chamstog = true
print'[chams]: true'
else
removeChams()
chamstog = false
print'[chams]: false'
end
end
end
function aimToggle(aname, ainputstate)
if ainputstate == Enum.UserInputState.Begin then
if not botting then
botting = true
print'[aim-assist]: true'
startAiming()
else
botting = false
print'[aim-assist]: false'
end
end
end
spawn(function()
game:service'ContextActionService':BindAction("wire_toggling", wireToggle, false, Enum.KeyCode.F6)
game:service'ContextActionService':BindAction("brightness_toggling", brightToggle, false, Enum.KeyCode.F5)
game:service'ContextActionService':BindAction("chams_toggling", chamsToggle, false, Enum.KeyCode.F4)
game:service'ContextActionService':BindAction("esp_toggling", espToggle, false, Enum.KeyCode.F3)
game:service'ContextActionService':BindAction("aim_toggling", aimToggle, false, Enum.KeyCode.F2) end)
| 22.377863
| 106
| 0.685656
|
cd2bb2b1caf2634472615236f9221eeed340583a
| 1,729
|
cs
|
C#
|
src/Microsoft.Health.Dicom.Api/Web/AspNetCoreMultipartReaderFactory.cs
|
rohankhera/dicom-server
|
9ce5d79e0f88bad2e54e7a1ebb21ec5234daa0d1
|
[
"MIT"
] | 205
|
2020-09-22T16:23:29.000Z
|
2022-03-25T10:25:26.000Z
|
src/Microsoft.Health.Dicom.Api/Web/AspNetCoreMultipartReaderFactory.cs
|
rohankhera/dicom-server
|
9ce5d79e0f88bad2e54e7a1ebb21ec5234daa0d1
|
[
"MIT"
] | 350
|
2020-09-22T02:12:16.000Z
|
2022-03-31T16:27:28.000Z
|
src/Microsoft.Health.Dicom.Api/Web/AspNetCoreMultipartReaderFactory.cs
|
KnicKnic/dicom-server
|
dcc067d7b2628e68cca9bebfbd98fe8aa5505746
|
[
"MIT"
] | 82
|
2020-09-22T17:05:50.000Z
|
2022-03-14T18:18:10.000Z
|
// -------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// -------------------------------------------------------------------------------------------------
using System.IO;
using EnsureThat;
using Microsoft.Extensions.Options;
using Microsoft.Health.Dicom.Core.Configs;
using Microsoft.Health.Dicom.Core.Web;
namespace Microsoft.Health.Dicom.Api.Web
{
/// <summary>
/// Provides functionality to create a new instance of <see cref="AspNetCoreMultipartReader"/>.
/// </summary>
internal class AspNetCoreMultipartReaderFactory : IMultipartReaderFactory
{
private readonly ISeekableStreamConverter _seekableStreamConverter;
private readonly IOptions<StoreConfiguration> _storeConfiguration;
public AspNetCoreMultipartReaderFactory(
ISeekableStreamConverter seekableStreamConverter,
IOptions<StoreConfiguration> storeConfiguration)
{
EnsureArg.IsNotNull(seekableStreamConverter, nameof(seekableStreamConverter));
EnsureArg.IsNotNull(storeConfiguration?.Value, nameof(storeConfiguration));
_seekableStreamConverter = seekableStreamConverter;
_storeConfiguration = storeConfiguration;
}
/// <inheritdoc />
public IMultipartReader Create(string contentType, Stream body)
{
return new AspNetCoreMultipartReader(
contentType,
body,
_seekableStreamConverter,
_storeConfiguration);
}
}
}
| 39.295455
| 101
| 0.61712
|
05c8b0309daea1698b31f3a467d97533a5f75968
| 1,953
|
py
|
Python
|
main/node_codes/main/SensorNode.py
|
mouryarahul/USMART-IOT
|
f712f40ec5df6dbb97e083a7fd21f6cb4ac95c86
|
[
"MIT"
] | null | null | null |
main/node_codes/main/SensorNode.py
|
mouryarahul/USMART-IOT
|
f712f40ec5df6dbb97e083a7fd21f6cb4ac95c86
|
[
"MIT"
] | null | null | null |
main/node_codes/main/SensorNode.py
|
mouryarahul/USMART-IOT
|
f712f40ec5df6dbb97e083a7fd21f6cb4ac95c86
|
[
"MIT"
] | null | null | null |
import micropython
import pyb
import utime
from machine import UART
from machine import Pin
from unm3driver import MessagePacket
from unm3driver import Nm3
micropython.alloc_emergency_exception_buf(100)
# ==================== Global Variable ========================== #
packet_arrival_bflag = False
packet_arrival_time = 0
def rxs_callback(line):
"""
Callback for ExtInt on pin 'Y3': An indication of reception of a packet at Nanomodem
:param line:
:return: None
"""
global packet_arrival_time, packet_arrival_bflag
packet_arrival_time = utime.ticks_us()
packet_arrival_bflag = True
# Pins to control LDOs on the board:
# ldo1 controls the 3.3V ldo on the micropython board
# ldo2 controls the 3.3V ldo on daughter board
ldo1 = Pin('EN_3V3', mode=Pin.OUT, pull=Pin.PULL_UP)
ldo2 = Pin('Y5', mode=Pin.OPEN_DRAIN, pull=None)
# =================== Initialize different modules =================== #
# Configure I/O pin "Y3" as an external interrupt connected to RxS pin of Nanomodem
# Rising Edge on RxS pin indicate start of incoming packet on Nanomodem.
extint = pyb.ExtInt('Y3', pyb.ExtInt.IRQ_RISING, pyb.Pin.PULL_DOWN, rxs_callback)
# Initialize UART1 for Nanomodem
uart1 = UART(1, 9600)
uart1.init(9600, bits=8, parity=None, stop=1, timeout=50, flow=0, timeout_char=0, read_buf_len=64)
# Instantiate Nm3
nm3 = Nm3(uart1)
# Main Infinite Loop, where all data are processed and decision are taken
while True:
# Check an arrival of data packet
if packet_arrival_bflag:
packet_arrival_bflag = False
# Poll UART for data
nm3.poll_receiver()
# Periodically process any bytes received
nm3.process_incoming_buffer()
if nm3.has_received_packet():
# record the packet arrival time and get the data payload
message_packet = nm3.get_received_packet()
payload_as_string = bytes(message_packet.packet_payload).decode('utf-8')
| 32.016393
| 98
| 0.700973
|
31204b89f75a2fdfe8efb7f0c18352e96075848b
| 6,125
|
rb
|
Ruby
|
lib/loaders/spree/spree_loading.rb
|
prashanthiremath/datashift_spree_new
|
674f420cb8bdbb2e8e4c32394b87e181334561e5
|
[
"MIT"
] | null | null | null |
lib/loaders/spree/spree_loading.rb
|
prashanthiremath/datashift_spree_new
|
674f420cb8bdbb2e8e4c32394b87e181334561e5
|
[
"MIT"
] | null | null | null |
lib/loaders/spree/spree_loading.rb
|
prashanthiremath/datashift_spree_new
|
674f420cb8bdbb2e8e4c32394b87e181334561e5
|
[
"MIT"
] | null | null | null |
# Copyright:: (c) Autotelik Media Ltd 2016
# Author :: Tom Statter
# Date :: Aug 2010
# License:: MIT ?
#
# Details:: Specific support for Loading Spree data
#
require 'loaders/paperclip/image_loading'
module DataShift
module SpreeLoading
include DataShift::ImageLoading
include DataShift::Delimiters
# These originally required to support early versions when Spree went from no namespace to Spree namespace
def image_klass
@image_klass ||= Spree::Image
end
def option_type_klass
@option_type_klass ||= Spree::OptionType
end
def option_value_klass
@option_value_klass ||= Spree::OptionValue
end
def property_klass
@property_klass ||= Spree::Property
end
def product_property_klass
@product_property_klass ||= Spree::ProductProperty
end
def stock_location_klass
@stock_location_klass ||= Spree::StockLocation
end
def stock_movement_klass
@stock_movement_klass ||= Spree::StockMovement
end
def taxonomy_klass
@taxonomy_klass ||= Spree::Taxonomy
end
def taxon_klass
@taxon_klass ||= Spree::Taxon
end
def variant_klass
@variant_klass ||= Spree::Variant
end
# Test and code for this saved at : http://www.rubular.com/r/1de2TZsVJz
def spree_uri_regexp
@spree_uri_regexp ||= Regexp::new(
'(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?'
)
end
# If no owner class specified will attach Image to Spree image Owner (varies depending on version)
#
# Special case for Images
#
# A list of entries for Images.
#
# Multiple image items can be delimited by multi_assoc_delim
#
# Each item can contain optional attributes for the Image class within {}.
#
# For example to supply the optional 'alt' text, or position for an image
#
# Example => path_1{:alt => text}|path_2{:alt => more alt blah blah,
# :position => 5}|path_3{:alt => the alt text for this path}
#
def add_images( record, owner = nil )
# Spree 3 - Images stored on Variant (record.master if record is a Product)
puts "SPREE IMAGEs"
owner ||= Spree::Product.where(id: record.product_id).last
value.to_s.split(multi_assoc_delim).each do |image|
#TODO - make this attributes_start_delim and support {alt=> 'blah, :position => 2 etc}
puts "IMEHEHE"
if(image.match(spree_uri_regexp))
uri, attributes = image.split(attribute_list_start)
uri.strip!
puts("Processing IMAGE from URI [#{uri.inspect}]")
if(attributes)
#TODO move to ColumnPacker unpack ?
attributes = attributes.split(', ').map{|h| h1,h2 = h.split('=>'); {h1.strip! => h2.strip!}}.reduce(:merge)
puts ("IMAGE has additional attributes #{attributes.inspect}")
else
attributes = {} # will blow things up later if we pass nil where {} expected
end
agent = Mechanize.new
image = begin
agent.get(uri)
rescue => e
puts "ERROR: Failed to fetch image from URL #{uri}", e.message
raise DataShift::BadUri.new("Failed to fetch image from URL #{uri}")
end
# Expected image is_a Mechanize::Image
# image.filename& image.extract_filename do not handle query string well e,g blah.jpg?v=1234
# so for now use URI
# extname = image.respond_to?(:filename) ? File.extname(image.filename) : File.extname(uri)
extname = File.extname( uri.gsub(/\?.*=.*/, ''))
base = image.respond_to?(:filename) ? File.basename(image.filename, '.*') : File.basename(uri, '.*')
puts ("Storing Image in TempFile #{base.inspect}.#{extname.inspect}")
@current_image_temp_file = Tempfile.new([base, extname], :encoding => 'ascii-8bit')
begin
# TODO can we handle embedded img src e.g from Mechanize::Page::Image ?
# If I call image.save(@current_image_temp_file.path) then it creates a new file with a .1 extension
# so the real temp file data is empty and paperclip chokes
# so this is a copy from the Mechanize::Image save method. don't like it much, very brittle, but what to do ...
until image.body_io.eof? do
@current_image_temp_file.write image.body_io.read 16384
end
@current_image_temp_file.rewind
puts ("IMAGE downloaded from URI #{uri.inspect}")
attachment = create_attachment(Spree::Image, @current_image_temp_file.path, nil, nil, attributes)
rescue => e
puts (e.message)
puts ("Failed to create Image from URL #{uri}")
raise DataShift::DataProcessingError.new("Failed to create Image from URL #{uri}")
ensure
@current_image_temp_file.close
@current_image_temp_file.unlink
end
else
path, alt_text = image.split(name_value_delim)
logger.debug("Processing IMAGE from PATH #{path.inspect} #{alt_text.inspect}")
path = File.join(Configuration.call.image_path_prefix, path) if(Configuration.call.image_path_prefix)
begin
attachment = create_attachment(Spree::Image, path, nil, nil, :alt => alt_text)
rescue => e
logger.error(e.message)
logger.error("Failed to create Image from URL #{uri}")
raise DataShift::DataProcessingError.new("Failed to create Image from URL #{uri}")
end
end
raise DataShift::DataProcessingError.new("No errors reported but failed to create Attachment") unless attachment
begin
owner.images << attachment
logger.debug("Product assigned Image from : #{path.inspect}")
rescue => e
logger.error("Failed to assign attachment to #{owner.class} #{owner.id}")
logger.error(e.message)
end
end
record.save
end
end
end
| 31.901042
| 124
| 0.618776
|
9e5cad7b3cf36498592640c602bdf22a35c0d589
| 409
|
kt
|
Kotlin
|
app/src/main/java/org/xm/app/translator/opensource/mvvm/repository/db/entity/History.kt
|
devallever/Translator-MVVM-Jetpack-OpenSource
|
e45837e2134bbde2cff6c00e46c47ee6e0a3c244
|
[
"Apache-2.0"
] | null | null | null |
app/src/main/java/org/xm/app/translator/opensource/mvvm/repository/db/entity/History.kt
|
devallever/Translator-MVVM-Jetpack-OpenSource
|
e45837e2134bbde2cff6c00e46c47ee6e0a3c244
|
[
"Apache-2.0"
] | null | null | null |
app/src/main/java/org/xm/app/translator/opensource/mvvm/repository/db/entity/History.kt
|
devallever/Translator-MVVM-Jetpack-OpenSource
|
e45837e2134bbde2cff6c00e46c47ee6e0a3c244
|
[
"Apache-2.0"
] | null | null | null |
package org.xm.app.translator.opensource.mvvm.repository.db.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
class History {
@PrimaryKey(autoGenerate = true)
var id: Long = 0L
var srcText: String = ""
var sl: String = "en"
var tl: String = "en"
var time: Long = 0
var liked: Int = 0
//全路径
var ttsPath: String = ""
var result: String = ""
}
| 20.45
| 66
| 0.645477
|
ae852686f389aaa8fa8ef899bea51cc811f3ab6d
| 184
|
dart
|
Dart
|
lib/models/usermodel.dart
|
ashishs07/car_market
|
2dc3e2d7f8048cc6855231420cab85b402967891
|
[
"MIT"
] | null | null | null |
lib/models/usermodel.dart
|
ashishs07/car_market
|
2dc3e2d7f8048cc6855231420cab85b402967891
|
[
"MIT"
] | null | null | null |
lib/models/usermodel.dart
|
ashishs07/car_market
|
2dc3e2d7f8048cc6855231420cab85b402967891
|
[
"MIT"
] | 1
|
2019-10-02T13:21:46.000Z
|
2019-10-02T13:21:46.000Z
|
import 'package:flutter/material.dart';
class UserModel {
final String email;
final String password;
UserModel({
@required this.email,
@required this.password,
});
}
| 15.333333
| 39
| 0.690217
|
2c3458f8dc872f38847de6978483ebc3f803b37f
| 1,087
|
py
|
Python
|
PySe/driver.py
|
dichen2013/XJL-UIAutoTest
|
b51d26e1396027e7b09d4153d8beb71ddbd0154d
|
[
"Apache-2.0"
] | 10
|
2019-07-31T14:28:32.000Z
|
2020-11-24T02:11:34.000Z
|
PySe/driver.py
|
DDDDanny/S-UIAutoTest
|
6426e66760c4addae4447a2c9847ebd53f95e16c
|
[
"Apache-2.0"
] | null | null | null |
PySe/driver.py
|
DDDDanny/S-UIAutoTest
|
6426e66760c4addae4447a2c9847ebd53f95e16c
|
[
"Apache-2.0"
] | 1
|
2020-02-19T01:18:06.000Z
|
2020-02-19T01:18:06.000Z
|
# -*- coding: utf-8 -*-
# @Time : 2019/6/12 13:26
# @Author : DannyDong
# @File : driver.py
# @describe: 浏览器Driver
from selenium import webdriver
class SelectBrowser(object):
def __init__(self):
self.browser_dict = {
'chrome': webdriver.Chrome,
'firefox': webdriver.Firefox,
'edge': webdriver.Edge,
'ie': webdriver.Ie
}
def select_browser(self, browser='chrome'):
try:
if browser == 'chrome':
dr = self.browser_dict[browser]
elif browser == 'firefox':
dr = self.browser_dict[browser]
elif browser == 'edge':
dr = self.browser_dict[browser]
elif browser == 'ie':
dr = self.browser_dict[browser]
else:
raise Exception('没有找到名字为"{0}"的浏览器'.format(browser))
return dr()
except Exception:
raise NameError('没有找到名字为"{0}"的浏览器'.format(browser))
if __name__ == '__main__':
demo = SelectBrowser()
demo.select_browser('chrome')
| 27.871795
| 67
| 0.540018
|
6e3edb58339153fd0abf8972e8cd75e54102e9b8
| 8,755
|
lua
|
Lua
|
nvim/plugin/packer_compiled.lua
|
hwlearner/dotfiles
|
1c04888eade2a668d3cf229eedf0a58d28d74e69
|
[
"MIT"
] | null | null | null |
nvim/plugin/packer_compiled.lua
|
hwlearner/dotfiles
|
1c04888eade2a668d3cf229eedf0a58d28d74e69
|
[
"MIT"
] | null | null | null |
nvim/plugin/packer_compiled.lua
|
hwlearner/dotfiles
|
1c04888eade2a668d3cf229eedf0a58d28d74e69
|
[
"MIT"
] | null | null | null |
-- Automatically generated packer.nvim plugin loader code
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
return
end
vim.api.nvim_command('packadd packer.nvim')
local no_errors = pcall(function()
local time
local profile_info
local should_profile = false
if should_profile then
local hrtime = vim.loop.hrtime
profile_info = {}
time = function(chunk, start)
if start then
profile_info[chunk] = hrtime()
else
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
end
end
else
time = function(chunk, start) end
end
local function save_profiles(threshold)
local sorted_times = {}
for chunk_name, time_taken in pairs(profile_info) do
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
end
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
local results = {}
for i, elem in ipairs(sorted_times) do
if not threshold or threshold and elem[2] > threshold then
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
end
end
_G._packer = _G._packer or {}
_G._packer.profile_output = results
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/sc/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/sc/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/sc/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/sc/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/sc/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
package.cpath = package.cpath .. ';' .. install_cpath_pattern
end
time([[Luarocks path setup]], false)
time([[try_loadstring definition]], true)
local function try_loadstring(s, component, name)
local success, result = pcall(loadstring(s))
if not success then
vim.schedule(function()
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
end)
end
return result
end
time([[try_loadstring definition]], false)
time([[Defining packer_plugins]], true)
_G.packer_plugins = {
["AbbrevMan.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/AbbrevMan.nvim"
},
["codi.vim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/codi.vim"
},
["conflict-marker.vim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/conflict-marker.vim"
},
["editorconfig-vim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/editorconfig-vim"
},
["friendly-snippets"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/friendly-snippets"
},
fzf = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/fzf"
},
["fzf.vim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/fzf.vim"
},
["galaxyline.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/galaxyline.nvim"
},
["git-blame.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/git-blame.nvim"
},
["gitsigns.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/gitsigns.nvim"
},
["gruvbox-flat.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/gruvbox-flat.nvim"
},
["gruvbox-material"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/gruvbox-material"
},
["lspsaga.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/lspsaga.nvim"
},
["nvim-bufferline.lua"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua"
},
["nvim-compe"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-compe"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-lspconfig"
},
["nvim-spectre"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-spectre"
},
["nvim-tree.lua"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-tree.lua"
},
["nvim-treesitter"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-treesitter"
},
["nvim-ts-autotag"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag"
},
["nvim-web-devicons"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/nvim-web-devicons"
},
["packer.nvim"] = {
loaded = false,
needs_bufread = false,
path = "/home/sc/.local/share/nvim/site/pack/packer/opt/packer.nvim"
},
["plenary.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/plenary.nvim"
},
["popup.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/popup.nvim"
},
["presence.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/presence.nvim"
},
["quick-scope"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/quick-scope"
},
["rooter.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/rooter.nvim"
},
["splitjoin.vim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/splitjoin.vim"
},
["startuptime.vim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/startuptime.vim"
},
["telescope-fzf-native.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim"
},
["telescope.nvim"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/telescope.nvim"
},
undotree = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/undotree"
},
["vim-commentary"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-commentary"
},
["vim-efm-langserver-settings"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-efm-langserver-settings"
},
["vim-floaterm"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-floaterm"
},
["vim-fugitive"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-fugitive"
},
["vim-hexokinase"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-hexokinase"
},
["vim-javascript"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-javascript"
},
["vim-lengthmatters"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-lengthmatters"
},
["vim-matchup"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-matchup"
},
["vim-rhubarb"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-rhubarb"
},
["vim-sandwich"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-sandwich"
},
["vim-startify"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-startify"
},
["vim-vsnip"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-vsnip"
},
["vim-vsnip-integ"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vim-vsnip-integ"
},
["vscode-es7-javascript-react-snippets"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vscode-es7-javascript-react-snippets"
},
["vscode-vue-snippets"] = {
loaded = true,
path = "/home/sc/.local/share/nvim/site/pack/packer/start/vscode-vue-snippets"
}
}
time([[Defining packer_plugins]], false)
if should_profile then save_profiles() end
end)
if not no_errors then
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: ".v:exception | echom "Please check your config for correctness" | echohl None')
end
| 32.306273
| 334
| 0.647287
|
b92575d579fc2ca773599e14c5f26481ef8ecd70
| 875
|
asm
|
Assembly
|
programs/oeis/266/A266659.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/266/A266659.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/266/A266659.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A266659: Triangle read by rows giving successive states of cellular automaton generated by "Rule 47" initiated with a single ON (black) cell.
; 1,1,1,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
mul $0,2
sub $0,2
mov $3,3
lpb $0,5
mov $2,$0
add $3,1
sub $0,$3
lpe
add $0,$3
trn $1,$3
sub $1,$0
mov $0,3
lpb $0,1
pow $1,2
add $4,52
lpb $3,2
mov $0,1
mod $1,2
sub $4,$4
lpe
add $1,$0
lpe
sub $1,1
| 32.407407
| 501
| 0.541714
|
041b6658329c2d1caaa88c681eaf823f59bc5c16
| 976
|
cpp
|
C++
|
include/hydro/vm/services/FireService.cpp
|
hydraate/hydro
|
42037a8278dcfdca68fb5cceaf6988da861f0eff
|
[
"Apache-2.0"
] | null | null | null |
include/hydro/vm/services/FireService.cpp
|
hydraate/hydro
|
42037a8278dcfdca68fb5cceaf6988da861f0eff
|
[
"Apache-2.0"
] | null | null | null |
include/hydro/vm/services/FireService.cpp
|
hydraate/hydro
|
42037a8278dcfdca68fb5cceaf6988da861f0eff
|
[
"Apache-2.0"
] | null | null | null |
//
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// The Hydro Programming Language
//
#include "FireService.hpp"
namespace hydro
{
void FireService::event(hobject target, hetype type, std::map<std::string, hvalue> ¶ms) const
{
//EventContext *event = type->owner();
}
void FireService::init(hobject target) const
{
}
void FireService::complete(hobject target) const
{
}
void FireService::activate(hobject target) const
{
}
void FireService::deactivate(hobject target) const
{
}
void FireService::error(hobject target, std::string errorText) const
{
}
void FireService::ioError(hobject target, std::string errorText) const
{
}
} // namespace hydro
| 18.074074
| 97
| 0.517418
|
ff892c5dcb7148d25479d8a30760f8643a6b60a1
| 11,849
|
py
|
Python
|
_broken/preproc_feat.py
|
SU-ECE-17-7/ibeis
|
b12a45b06d8ce8f52585494c15f6776f5889ed67
|
[
"Apache-2.0"
] | null | null | null |
_broken/preproc_feat.py
|
SU-ECE-17-7/ibeis
|
b12a45b06d8ce8f52585494c15f6776f5889ed67
|
[
"Apache-2.0"
] | null | null | null |
_broken/preproc_feat.py
|
SU-ECE-17-7/ibeis
|
b12a45b06d8ce8f52585494c15f6776f5889ed67
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
r"""
Computes patch based features based on Hesaff, SIFT, or convnets.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from six.moves import zip, range
import pyhesaff
import utool
import utool as ut
#ut.noinject('[preproc_feat]')
(print, print_, printDBG, rrr, profile) = utool.inject(__name__, '[preproc_feat]')
#USE_OPENMP = not utool.WIN32
USE_OPENMP = False # do not use openmp until we have the gravity vector
def generate_feat_properties(ibs, cid_list, config2_=None, nInput=None):
r"""
Computes features and yields results asynchronously: TODO: Remove IBEIS from
this equation. Move the firewall towards the controller
Args:
ibs (IBEISController):
cid_list (list):
nInput (None):
Returns:
generator : generates param tups
SeeAlso:
~/code/ibeis_cnn/ibeis_cnn/_plugin.py
CommandLine:
python -m ibeis.algo.preproc.preproc_feat --test-generate_feat_properties:0 --show
python -m ibeis.algo.preproc.preproc_feat --test-generate_feat_properties:1
Example:
>>> # DISABLE_DOCTEST
>>> from ibeis.algo.preproc.preproc_feat import * # NOQA
>>> import ibeis
>>> ibs = ibeis.opendb('testdb1')
>>> config2_ = ibs.new_query_params({})
>>> nInput = None
>>> aid_list = ibs.get_valid_aids()[::2]
>>> ut.assert_all_not_None(aid_list, 'aid_list')
>>> cid_list = ibs.get_annot_chip_rowids(aid_list, config2_=config2_)
>>> ut.assert_all_not_None(cid_list, 'cid_list')
>>> featgen = generate_feat_properties(ibs, cid_list, config2_, nInput)
>>> feat_list = list(featgen)
>>> assert len(feat_list) == len(aid_list)
>>> (nFeat, kpts, vecs) = feat_list[0]
>>> assert nFeat == len(kpts) and nFeat == len(vecs)
>>> assert kpts.shape[1] == 6
>>> assert vecs.shape[1] == 128
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> chip_fpath = ibs.get_annot_chip_fpath(aid_list[0], config2_=config2_)
>>> pt.interact_keypoints.ishow_keypoints(chip_fpath, kpts, vecs)
>>> ut.show_if_requested()
Example:
>>> # DISABLE_DOCTEST
>>> from ibeis.algo.preproc.preproc_feat import * # NOQA
>>> import ibeis
>>> ibs = ibeis.opendb(defaultdb='testdb1')
>>> cfgdict = {}
>>> cfgdict['feat_type'] = 'hesaff+siam128'
>>> qreq_ = ibs.new_query_request([1], [1, 2, 3], cfgdict)
>>> query_config2 = qreq_.extern_query_config2
>>> data_config2 = qreq_.extern_data_config2
>>> cid_list = ibs.get_annot_chip_rowids(ibs.get_valid_aids())
>>> config2_ = query_config2
>>> nInput = None
>>> featgen = generate_feat_properties(ibs, cid_list, config2_, nInput)
>>> result = list(featgen)
>>> print(result)
Example:
>>> # DISABLE_DOCTEST
>>> from ibeis.algo.preproc.preproc_feat import * # NOQA
>>> import ibeis
>>> ibs = ibeis.opendb('PZ_MTEST')
>>> config2_ = ibs.new_query_params({'affine_invariance': False, 'bgmethod': 'cnn'})
>>> nInput = None
>>> aid_list = ibs.get_valid_aids()[0:4]
>>> ut.assert_all_not_None(aid_list, 'aid_list')
>>> cid_list = ibs.get_annot_chip_rowids(aid_list, config2_=config2_)
>>> ut.assert_all_not_None(cid_list, 'cid_list')
>>> featgen = generate_feat_properties(ibs, cid_list, config2_, nInput)
>>> feat_list = list(featgen)
>>> assert len(feat_list) == len(aid_list)
>>> (nFeat, kpts, vecs) = feat_list[0]
>>> assert nFeat == len(kpts) and nFeat == len(vecs)
>>> assert kpts.shape[1] == 6
>>> assert vecs.shape[1] == 128
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> chip_fpath = ibs.get_annot_chip_fpath(aid_list[0], config2_=config2_)
>>> pt.interact_keypoints.ishow_keypoints(chip_fpath, kpts, vecs)
>>> ut.show_if_requested()
Ignore:
# STARTBLOCK
import plottool as pt
chip_fpath_list = ibs.get_chip_fpath(cid_list)
fpath_list = list(ut.interleave((probchip_fpath_list, chip_fpath_list)))
iteract_obj = pt.interact_multi_image.MultiImageInteraction(fpath_list, nPerPage=4)
ut.show_if_requested()
# ENDBLOCK
"""
if nInput is None:
nInput = len(cid_list)
if config2_ is not None:
# Get config from config2_ object
#print('id(config2_) = ' + str(id(config2_)))
feat_cfgstr = config2_.get('feat_cfgstr')
hesaff_params = config2_.get('hesaff_params')
feat_type = config2_.get('feat_type')
bgmethod = config2_.get('bgmethod')
assert feat_cfgstr is not None
assert hesaff_params is not None
else:
# TODO: assert False here
# Get config from IBEIS controller
bgmethod = ibs.cfg.feat_cfg.bgmethod
feat_type = ibs.cfg.feat_cfg.feat_type
feat_cfgstr = ibs.cfg.feat_cfg.get_cfgstr()
hesaff_params = ibs.cfg.feat_cfg.get_hesaff_params()
ut.assert_all_not_None(cid_list, 'cid_list')
chip_fpath_list = ibs.get_chip_fpath(cid_list, check_external_storage=True)
if bgmethod is not None:
aid_list = ibs.get_chip_aids(cid_list)
probchip_fpath_list = ibs.get_annot_probchip_fpath(aid_list)
else:
probchip_fpath_list = (None for _ in range(nInput))
if ut.NOT_QUIET:
print('[preproc_feat] feat_cfgstr = %s' % feat_cfgstr)
if ut.VERYVERBOSE:
print('hesaff_params = ' + ut.dict_str(hesaff_params))
if feat_type == 'hesaff+sift':
if USE_OPENMP:
# Use Avi's openmp parallelization
assert bgmethod is None, 'not implemented'
featgen_mp = gen_feat_openmp(cid_list, chip_fpath_list, hesaff_params)
featgen = ut.ProgressIter(featgen_mp, lbl='openmp feat')
else:
# Multiprocessing parallelization
featgen = extract_hesaff_sift_feats(
chip_fpath_list, probchip_fpath_list,
hesaff_params=hesaff_params, nInput=nInput, ordered=True)
elif feat_type == 'hesaff+siam128':
from ibeis_cnn import _plugin
assert bgmethod is None, 'not implemented'
featgen = _plugin.generate_siam_l2_128_feats(ibs, cid_list, config2_=config2_)
else:
raise AssertionError('unknown feat_type=%r' % (feat_type,))
for nFeat, kpts, vecs in featgen:
yield (nFeat, kpts, vecs,)
def extract_hesaff_sift_feats(chip_fpath_list, probchip_fpath_list, hesaff_params={}, nInput=None, **kwargs):
""" Function to be parallelized by multiprocessing / joblib / whatever.
Must take in one argument to be used by multiprocessing.map_async
Args:
chip_fpath_list (list):
hesaff_params (dict):
nInput (None):
Kwargs:
passed to utool.generate
Returns:
featgen
"""
if nInput is None:
nInput = len(chip_fpath_list)
dictargs_iter = (hesaff_params for _ in range(nInput))
arg_iter = zip(chip_fpath_list, probchip_fpath_list, dictargs_iter)
# eager evaluation.
# TODO: Check if there is any benefit to just passing in the iterator.
arg_list = list(arg_iter)
featgen = utool.util_parallel.generate(gen_feat_worker, arg_list, nTasks=nInput,
freq=10, **kwargs)
return featgen
#def gen_feat_worker(tup):
# r"""
# Function to be parallelized by multiprocessing / joblib / whatever.
# Must take in one argument to be used by multiprocessing.map_async
# """
# cid, cpath, hesaff_params = tup
# kpts, vecs = pyhesaff.detect_feats(cpath, **hesaff_params)
# return (cid, len(kpts), kpts, vecs)
def gen_feat_worker(tup):
r"""
Function to be parallelized by multiprocessing / joblib / whatever.
Must take in one argument to be used by multiprocessing.map_async
Args:
tup (tuple):
Returns:
tuple: (None, kpts, vecs)
CommandLine:
python -m ibeis.algo.preproc.preproc_feat --exec-gen_feat_worker --show
python -m ibeis.algo.preproc.preproc_feat --exec-gen_feat_worker --show --aid 2
python -m ibeis.algo.preproc.preproc_feat --exec-gen_feat_worker --show --aid 1988 --db GZ_Master1
python -m ibeis.algo.preproc.preproc_feat --exec-gen_feat_worker --show --aid 1988 --db GZ_Master1 --affine-invariance=False --scale_max=30
python -m ibeis.algo.preproc.preproc_feat --exec-gen_feat_worker --show --aid 1988 --db GZ_Master1 --affine-invariance=False --scale_max=30
python -m ibeis.algo.preproc.preproc_feat --exec-gen_feat_worker --show --aid 1988 --db GZ_Master1 --affine-invariance=False --bgmethod=None --scale_max=30
Example:
>>> # DISABLE_DOCTEST
>>> from ibeis.algo.preproc.preproc_feat import * # NOQA
>>> import utool as ut
>>> import ibeis
>>> import vtool as vt
>>> ibs, aid_list = ibeis.testdata_aids('PZ_MTEST')
>>> aid = aid_list[0]
>>> chip_fpath = ibs.get_annot_chip_fpath(aid)
>>> bgmethod = ut.get_argval('--bgmethod', type_=str, default='cnn')
>>> probchip_fpath = ibs.get_annot_probchip_fpath(aid) if 'cnn' == bgmethod else None
>>> hesaff_params = {} # {'affine_invariance': False}
>>> hesaff_params = ut.argparse_dict(pyhesaff.get_hesaff_default_params())
>>> tup = (chip_fpath, probchip_fpath, hesaff_params)
>>> (num_kpts, kpts, vecs) = gen_feat_worker(tup)
>>> result = ('(num_kpts, kpts, vecs) = %s' % (ut.repr2((num_kpts, kpts, vecs)),))
>>> ut.quit_if_noshow()
>>> import plottool as pt
>>> masked_chip, = ut.exec_func_src(gen_feat_worker, key_list=['masked_chip'], sentinal='kpts, vecs = pyhesaff')
>>> pt.interact_keypoints.ishow_keypoints(masked_chip, kpts, vecs)
>>> #pt.plot_score_histograms([vt.get_scales(kpts)])
>>> ut.show_if_requested()
>>> print(result)
"""
import numpy as np
import vtool as vt
chip_fpath, probchip_fpath, hesaff_params = tup
chip = vt.imread(chip_fpath)
if probchip_fpath is not None:
probchip = vt.imread(probchip_fpath, grayscale=True)
masked_chip = (chip * (probchip[:, :, None].astype(np.float32) / 255)).astype(np.uint8)
else:
masked_chip = chip
kpts, vecs = pyhesaff.detect_feats_in_image(masked_chip, **hesaff_params)
num_kpts = kpts.shape[0]
return (num_kpts, kpts, vecs)
def gen_feat_worker_old(tup):
r"""
Function to be parallelized by multiprocessing / joblib / whatever.
Must take in one argument to be used by multiprocessing.map_async
"""
#import vtool as vt
chip_fpath, probchip_fpath, hesaff_params = tup
kpts, vecs = pyhesaff.detect_feats(chip_fpath, **hesaff_params)
return (kpts.shape[0], kpts, vecs)
def gen_feat_openmp(cid_list, chip_fpath_list, hesaff_params):
r"""
Compute features in parallel on the C++ side, return generator here
"""
print('Detecting %r features in parallel: ' % len(cid_list))
kpts_list, desc_list = pyhesaff.detect_feats_list(chip_fpath_list, **hesaff_params)
for cid, kpts, vecs in zip(cid_list, kpts_list, desc_list):
nFeat = len(kpts)
yield cid, nFeat, kpts, vecs
def on_delete(ibs, fid_list):
# remove dependants of these rowids
# No external data to remove
return 0
if __name__ == '__main__':
"""
python -m ibeis.algo.preproc.preproc_feat
python -m ibeis.algo.preproc.preproc_feat --allexamples
"""
import multiprocessing
multiprocessing.freeze_support()
ut.doctest_funcs()
| 39.761745
| 164
| 0.647734
|
c537647d687eee1743250757f73379513484df2e
| 822
|
css
|
CSS
|
src/containers/Profile/style.css
|
sinapinto/ricewars
|
ec1e2cc230a3e190087dff0906561e805d729d1e
|
[
"MIT"
] | 1
|
2015-11-10T21:05:28.000Z
|
2015-11-10T21:05:28.000Z
|
src/containers/Profile/style.css
|
sinapinto/ricewars
|
ec1e2cc230a3e190087dff0906561e805d729d1e
|
[
"MIT"
] | null | null | null |
src/containers/Profile/style.css
|
sinapinto/ricewars
|
ec1e2cc230a3e190087dff0906561e805d729d1e
|
[
"MIT"
] | null | null | null |
@import "../../style/variables.css";
.root {
width: 100%;
}
.bioWrapper {
margin: 0 auto;
}
.bio {
margin: 4em 0;
text-align: center;
}
.avatar {
border-radius: 50%;
}
.username {
margin: 10px 0;
font-size: 40px;
font-weight: 700;
& a {
color: var(--font-color);
}
}
.joined {
margin: 0;
color: var(--font-color-light);
font-size: 14px;
}
.activity {
color: var(--font-color);
margin: 0 auto;
}
.tabWrapper {
margin-bottom: 35px;
}
.tab {
color: var(--font-color-light);
font-weight: 700;
font-size: 16px;
margin-right: 25px;
cursor: pointer;
transition: color .2s;
&:hover {
color: var(--font-color);
}
&:active {
color: gray(70%);
}
}
.tabActive {
composes: tab;
color: var(--font-color);
&:active {
color: var(--font-color);
}
}
| 11.742857
| 36
| 0.57056
|
128931ef9e0d498f1fe6c26d2d0d8abd435e5168
| 12,159
|
dart
|
Dart
|
lib/src/aztec/encoder/high_level_encoder.dart
|
winterdl/zxing-dart
|
5455eb20b9cdca122897dadcbe4fead2e321c42d
|
[
"Apache-2.0"
] | 13
|
2021-05-30T10:12:46.000Z
|
2022-02-08T08:36:42.000Z
|
lib/src/aztec/encoder/high_level_encoder.dart
|
winterdl/zxing-dart
|
5455eb20b9cdca122897dadcbe4fead2e321c42d
|
[
"Apache-2.0"
] | 3
|
2021-06-15T18:58:55.000Z
|
2021-11-10T02:29:08.000Z
|
lib/src/aztec/encoder/high_level_encoder.dart
|
winterdl/zxing-dart
|
5455eb20b9cdca122897dadcbe4fead2e321c42d
|
[
"Apache-2.0"
] | 4
|
2021-06-27T19:21:15.000Z
|
2021-11-01T12:41:18.000Z
|
/*
* Copyright 2013 ZXing 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 'dart:convert';
import '../../common/bit_array.dart';
import '../../common/character_set_eci.dart';
import 'state.dart';
/// This produces nearly optimal encodings of text into the first-level of
/// encoding used by Aztec code.
///
/// It uses a dynamic algorithm. For each prefix of the string, it determines
/// a set of encodings that could lead to this prefix. We repeatedly add a
/// character and generate a new set of optimal encodings until we have read
/// through the entire input.
///
/// @author Frank Yellin
/// @author Rustam Abdullaev
class HighLevelEncoder {
static const List<String> MODE_NAMES = [
"UPPER",
"LOWER",
"DIGIT",
"MIXED",
"PUNCT"
];
static const int MODE_UPPER = 0; // 5 bits
static const int MODE_LOWER = 1; // 5 bits
static const int MODE_DIGIT = 2; // 4 bits
static const int MODE_MIXED = 3; // 5 bits
static const int MODE_PUNCT = 4; // 5 bits
// The Latch Table shows, for each pair of Modes, the optimal method for
// getting from one mode to another. In the worst possible case, this can
// be up to 14 bits. In the best possible case, we are already there!
// The high half-word of each entry gives the number of bits.
// The low half-word of each entry are the actual bits necessary to change
static const List<List<int>> LATCH_TABLE = [
[
0,
(5 << 16) + 28, // UPPER -> LOWER
(5 << 16) + 30, // UPPER -> DIGIT
(5 << 16) + 29, // UPPER -> MIXED
(10 << 16) + (29 << 5) + 30, // UPPER -> MIXED -> PUNCT
],
[
(9 << 16) + (30 << 4) + 14, // LOWER -> DIGIT -> UPPER
0,
(5 << 16) + 30, // LOWER -> DIGIT
(5 << 16) + 29, // LOWER -> MIXED
(10 << 16) + (29 << 5) + 30, // LOWER -> MIXED -> PUNCT
],
[
(4 << 16) + 14, // DIGIT -> UPPER
(9 << 16) + (14 << 5) + 28, // DIGIT -> UPPER -> LOWER
0,
(9 << 16) + (14 << 5) + 29, // DIGIT -> UPPER -> MIXED
(14 << 16) + (14 << 10) + (29 << 5) + 30,
// DIGIT -> UPPER -> MIXED -> PUNCT
],
[
(5 << 16) + 29, // MIXED -> UPPER
(5 << 16) + 28, // MIXED -> LOWER
(10 << 16) + (29 << 5) + 30, // MIXED -> UPPER -> DIGIT
0,
(5 << 16) + 30, // MIXED -> PUNCT
],
[
(5 << 16) + 31, // PUNCT -> UPPER
(10 << 16) + (31 << 5) + 28, // PUNCT -> UPPER -> LOWER
(10 << 16) + (31 << 5) + 30, // PUNCT -> UPPER -> DIGIT
(10 << 16) + (31 << 5) + 29, // PUNCT -> UPPER -> MIXED
0,
],
];
// A reverse mapping from [mode][char] to the encoding for that character
// in that mode. An entry of 0 indicates no mapping exists.
static final List<Map<int, int>> _charMap = [
{
// A-Z
32: 1, 65: 2, 66: 3, 67: 4, 68: 5, 69: 6, 70: 7, 71: 8, 72: 9, 73: 10,
74: 11, 75: 12, 76: 13, 77: 14, 78: 15, 79: 16, 80: 17, 81: 18, 82: 19,
83: 20, 84: 21, 85: 22, 86: 23, 87: 24, 88: 25, 89: 26, 90: 27
},
{
// a-z
32: 1, 97: 2, 98: 3, 99: 4, 100: 5, 101: 6, 102: 7, 103: 8, 104: 9,
105: 10, 106: 11, 107: 12, 108: 13, 109: 14, 110: 15, 111: 16, 112: 17,
113: 18, 114: 19, 115: 20, 116: 21, 117: 22, 118: 23, 119: 24, 120: 25,
121: 26, 122: 27
},
{
// BLANK 0-9,.
32: 1, 44: 12, 46: 13, 48: 2, 49: 3, 50: 4, 51: 5, 52: 6, 53: 7, 54: 8,
55: 9, 56: 10, 57: 11
},
{
// \0 \1\2\3\4\5\6\7\b\t\n\13\f\r\33\34\35\36\37@\\^_`|~\177
1: 2, 2: 3, 3: 4, 4: 5, 5: 6, 6: 7, 7: 8, 8: 9, 9: 10, 10: 11, 11: 12,
12: 13, 13: 14, 27: 15, 28: 16, 29: 17, 30: 18, 31: 19, 32: 1, 64: 20,
92: 21, 94: 22, 95: 23, 96: 24, 124: 25, 126: 26, 127: 27
},
{
// \0\r\0\0\0\0!\'#$%&'()*+,-./:;<=>?[]{}
13: 1, 33: 6, 35: 8, 36: 9, 37: 10, 38: 11, 39: 12, 40: 13, 41: 14,
42: 15, 43: 16, 44: 17, 45: 18, 46: 19, 47: 20, 58: 21, 59: 22,
60: 23, 61: 24, 62: 25, 63: 26, 91: 27, 93: 28, 123: 29, 125: 30
},
];
// A map showing the available shift codes. (The shifts to BINARY are not
// shown
static final List<List<int>> shiftTable = List.generate(
6,
(idx) => List.generate(6, (index) {
if (idx == MODE_UPPER) {
if (index == MODE_PUNCT) return 0;
} else if (idx == MODE_LOWER) {
if (index == MODE_PUNCT) return 0;
if (index == MODE_UPPER) return 28;
} else if (idx == MODE_MIXED) {
if (index == MODE_PUNCT) return 0;
} else if (idx == MODE_DIGIT) {
if (index == MODE_PUNCT) return 0;
if (index == MODE_UPPER) return 15;
}
return -1;
})); // mode shift codes, per table
final List<int> _text;
final Encoding? _charset;
HighLevelEncoder(this._text, [this._charset]);
/// @return text represented by this encoder encoded as a [BitArray]
BitArray encode() {
State initialState = State.initialState;
if (_charset != null) {
CharacterSetECI? eci = CharacterSetECI.getCharacterSetECI(_charset!);
if (null == eci) {
throw ArgumentError("No ECI code for character set ${_charset!.name}");
}
initialState = initialState.appendFLGn(eci.value);
}
List<State> states = [initialState];
for (int index = 0; index < _text.length; index++) {
int pairCode;
int nextChar = index + 1 < _text.length ? _text[index + 1] : 0;
switch (_text[index]) {
case 13: //'\r':
pairCode = nextChar == 10 /*'\n'*/ ? 2 : 0;
break;
case 46: //'.':
pairCode = nextChar == 32 /*' '*/ ? 3 : 0;
break;
case 44: //',':
pairCode = nextChar == 32 ? 4 : 0;
break;
case 58: //':':
pairCode = nextChar == 32 ? 5 : 0;
break;
default:
pairCode = 0;
}
if (pairCode > 0) {
// We have one of the four special PUNCT pairs. Treat them specially.
// Get a new set of states for the two new characters.
states = _updateStateListForPair(states, index, pairCode);
index++;
} else {
// Get a new set of states for the new character.
states = _updateStateListForChar(states, index);
}
}
State minState = states.singleWhere((element) {
return states.every((ele) => element.bitCount <= ele.bitCount);
});
// We are left with a set of states. Find the shortest one.
//State minState = Collections.min(states, Comparator<State>() {
// @override
// int compare(State a, State b) {
// return a.getBitCount() - b.getBitCount();
// }
//});
// Convert it to a bit array, and return.
return minState.toBitArray(_text);
}
// We update a set of states for a new character by updating each state
// for the new character, merging the results, and then removing the
// non-optimal states.
List<State> _updateStateListForChar(Iterable<State> states, int index) {
List<State> result = [];
for (State state in states) {
_updateStateForChar(state, index, result);
}
return _simplifyStates(result);
}
// Return a set of states that represent the possible ways of updating this
// state for the next character. The resulting set of states are added to
// the "result" list.
void _updateStateForChar(State state, int index, List<State> result) {
int ch = _text[index] & 0xFF;
bool charInCurrentTable = _charMap[state.mode].containsKey(ch);
State? stateNoBinary;
for (int mode = 0; mode <= MODE_PUNCT; mode++) {
int charInMode = _charMap[mode][ch] ?? 0;
if (charInMode > 0) {
// Only create stateNoBinary the first time it's required.
stateNoBinary ??= state.endBinaryShift(index);
// Try generating the character by latching to its mode
if (!charInCurrentTable || mode == state.mode || mode == MODE_DIGIT) {
// If the character is in the current table, we don't want to latch to
// any other mode except possibly digit (which uses only 4 bits). Any
// other latch would be equally successful *after* this character, and
// so wouldn't save any bits.
State latchState = stateNoBinary.latchAndAppend(mode, charInMode);
result.add(latchState);
}
// Try generating the character by switching to its mode.
if (!charInCurrentTable && shiftTable[state.mode][mode] >= 0) {
// It never makes sense to temporarily shift to another mode if the
// character exists in the current mode. That can never save bits.
State shiftState = stateNoBinary.shiftAndAppend(mode, charInMode);
result.add(shiftState);
}
}
}
if (state.binaryShiftByteCount > 0 ||
!_charMap[state.mode].containsKey(ch)) {
// It's never worthwhile to go into binary shift mode if you're not already
// in binary shift mode, and the character exists in your current mode.
// That can never save bits over just outputting the char in the current mode.
State binaryState = state.addBinaryShiftChar(index);
result.add(binaryState);
}
}
static List<State> _updateStateListForPair(
Iterable<State> states, int index, int pairCode) {
List<State> result = [];
for (State state in states) {
_updateStateForPair(state, index, pairCode, result);
}
return _simplifyStates(result);
}
static void _updateStateForPair(
State state, int index, int pairCode, List<State> result) {
State stateNoBinary = state.endBinaryShift(index);
// Possibility 1. Latch to MODE_PUNCT, and then append this code
result.add(stateNoBinary.latchAndAppend(MODE_PUNCT, pairCode));
if (state.mode != MODE_PUNCT) {
// Possibility 2. Shift to MODE_PUNCT, and then append this code.
// Every state except MODE_PUNCT (handled above) can shift
result.add(stateNoBinary.shiftAndAppend(MODE_PUNCT, pairCode));
}
if (pairCode == 3 || pairCode == 4) {
// both characters are in DIGITS. Sometimes better to just add two digits
State digitState = stateNoBinary
.latchAndAppend(MODE_DIGIT, 16 - pairCode) // period or comma in DIGIT
.latchAndAppend(MODE_DIGIT, 1); // space in DIGIT
result.add(digitState);
}
if (state.binaryShiftByteCount > 0) {
// It only makes sense to do the characters as binary if we're already
// in binary mode.
State binaryState =
state.addBinaryShiftChar(index).addBinaryShiftChar(index + 1);
result.add(binaryState);
}
}
static List<State> _simplifyStates(Iterable<State> states) {
//return states
// .where((newEle) =>
// states.every((oldEle) => newEle.isBetterThanOrEqualTo(oldEle)))
// .toList();
List<State> result = [];
List<State> removedState = [];
for (State newState in states) {
bool add = true;
for (Iterator<State> iterator = result.iterator; iterator.moveNext();) {
State oldState = iterator.current;
if (oldState.isBetterThanOrEqualTo(newState)) {
add = false;
break;
}
if (newState.isBetterThanOrEqualTo(oldState)) {
removedState.add(oldState);
}
}
//result.removeWhere((element) => newState.isBetterThanOrEqualTo(element));
for (var rState in removedState) {
result.remove(rState);
}
removedState.clear();
if (add) {
result.insert(0, newState);
}
}
return result;
}
}
| 37.643963
| 84
| 0.581709
|
e20eefdd2815d5bfbc0c12e883b0b863f1a50004
| 98
|
htm
|
HTML
|
dist/gameserver/data/html-en/quests/_008_AnAdventureBegins/harne_q0008_0302.htm
|
Arodev76/L2Advanced
|
12625a32ea7114b9d1d1ac0238da8422d714fc17
|
[
"MIT"
] | 7
|
2018-02-05T10:28:56.000Z
|
2020-08-06T06:35:54.000Z
|
dist/gameserver/data/html-en/quests/_008_AnAdventureBegins/harne_q0008_0302.htm
|
Kryspo/L2jRamsheart
|
98c39d754f5aba1806f92acc9e8e63b3b827be49
|
[
"MIT"
] | 3
|
2020-02-26T06:49:17.000Z
|
2020-03-05T05:11:05.000Z
|
dist/gameserver/data/html-en/quests/_008_AnAdventureBegins/harne_q0008_0302.htm
|
Kryspo/L2jRamsheart
|
98c39d754f5aba1806f92acc9e8e63b3b827be49
|
[
"MIT"
] | 12
|
2018-02-12T20:58:07.000Z
|
2020-06-07T02:44:42.000Z
|
!MagisterHarne:
What note?
If you don't have any business with me, don't waste my time. Go away!
| 19.6
| 69
| 0.734694
|
93f67c73e567a2ed110880a603c6703520193054
| 150
|
cs
|
C#
|
DFC.ServiceTaxonomy.VersionComparison/Models/Parts/HtmlBodyPart.cs
|
SkillsFundingAgency/dfc-servicetaxonomy-editor
|
2b652f44726777af6423295786042fb1f1ec9c74
|
[
"MIT"
] | 5
|
2020-11-26T20:48:23.000Z
|
2022-01-12T09:31:53.000Z
|
DFC.ServiceTaxonomy.VersionComparison/Models/Parts/HtmlBodyPart.cs
|
SkillsFundingAgency/dfc-servicetaxonomy-editor
|
2b652f44726777af6423295786042fb1f1ec9c74
|
[
"MIT"
] | 62
|
2020-02-26T13:33:54.000Z
|
2022-03-08T12:06:30.000Z
|
DFC.ServiceTaxonomy.VersionComparison/Models/Parts/HtmlBodyPart.cs
|
SkillsFundingAgency/dfc-servicetaxonomy-editor
|
2b652f44726777af6423295786042fb1f1ec9c74
|
[
"MIT"
] | 3
|
2021-01-12T13:29:17.000Z
|
2021-04-11T08:33:01.000Z
|
namespace DFC.ServiceTaxonomy.VersionComparison.Models.Parts
{
public class HtmlBodyPart
{
public string? Html { get; set; }
}
}
| 18.75
| 61
| 0.666667
|
72e464449e0853962f069238924b5136b36a2de0
| 1,039
|
cs
|
C#
|
EnableGPlayWithPC/Permissions.cs
|
shiosefine/EnableGPlayWithPC
|
4f2472005497f9d67c072a7320a3dfbb8ea70312
|
[
"MIT"
] | null | null | null |
EnableGPlayWithPC/Permissions.cs
|
shiosefine/EnableGPlayWithPC
|
4f2472005497f9d67c072a7320a3dfbb8ea70312
|
[
"MIT"
] | null | null | null |
EnableGPlayWithPC/Permissions.cs
|
shiosefine/EnableGPlayWithPC
|
4f2472005497f9d67c072a7320a3dfbb8ea70312
|
[
"MIT"
] | null | null | null |
namespace EnableGPlayWithPC
{
internal static class Permissions
{
internal static string Prefix = "android.permission.";
internal static string[] Vending = new string[]
{
"BATTERY_STATS",
"DUMP",
"GET_APP_OPS_STATS",
"WRITE_SECURE_SETTINGS",
"INTERACT_ACROSS_USERS"
};
internal static string[] GMS = new string[]
{
"DUMP",
"READ_LOGS",
"WRITE_SECURE_SETTINGS",
"INTERACT_ACROSS_USERS",
"CHANGE_WIMAX_STATE",
"CLEAR_APP_CACHE",
"CLEAR_APP_USER_DATA",
"CONFIGURE_WIFI_DISPLAY",
"CONNECTIVITY_INTERNAL",
"CONTROL_KEYGUARD",
"CONTROL_LOCATION_UPDATES",
"CONTROL_WIFI_DISPLAY",
"COPY_PROTECTED_DATA",
"CREATE_USERS",
"CRYPT_KEEPER",
"DELETE_CACHE_FILES",
"DELETE_PACKAGES",
"DEVICE_POWER"
};
}
}
| 26.641026
| 62
| 0.520693
|
4427b4eb4260da30921c2e45029b52a169e0c1f3
| 319
|
py
|
Python
|
oi_ghostwriter/management/commands/delete_printouts.py
|
olimpiada/oi-bus
|
c61805e6f51e933ceb9efdf556f6d5f229610707
|
[
"MIT"
] | 2
|
2020-06-05T07:49:55.000Z
|
2020-06-05T07:55:00.000Z
|
oi_ghostwriter/management/commands/delete_printouts.py
|
olimpiada/oi-bus
|
c61805e6f51e933ceb9efdf556f6d5f229610707
|
[
"MIT"
] | null | null | null |
oi_ghostwriter/management/commands/delete_printouts.py
|
olimpiada/oi-bus
|
c61805e6f51e933ceb9efdf556f6d5f229610707
|
[
"MIT"
] | null | null | null |
from django.core.management.base import BaseCommand, CommandError
from django.db.utils import IntegrityError
from oi_ghostwriter.models import Backup
import json
class Command(BaseCommand):
help = 'Deletes all computers from database'
def handle(self, *args, **options):
Backup.objects.all().delete()
| 29
| 65
| 0.76489
|
cc7a3dcb702367ff1b3b9204b9d5c088a6c836a0
| 259
|
rb
|
Ruby
|
db/migrate/20201205191150_add_otp_secret_key_otp_module_to_users.rb
|
tactilenews/100eyes
|
a6d2af3713ae840ee9acc19fb655dc3e92b17da9
|
[
"MIT"
] | 8
|
2020-09-20T14:03:31.000Z
|
2021-10-04T07:17:59.000Z
|
db/migrate/20201205191150_add_otp_secret_key_otp_module_to_users.rb
|
prototypefund/100eyes
|
955da0afac850c208348ec0257614c2fe726872b
|
[
"MIT"
] | 514
|
2020-03-24T15:23:59.000Z
|
2022-03-30T10:24:23.000Z
|
db/migrate/20201205191150_add_otp_secret_key_otp_module_to_users.rb
|
prototypefund/100eyes
|
955da0afac850c208348ec0257614c2fe726872b
|
[
"MIT"
] | 3
|
2020-05-20T13:50:41.000Z
|
2021-04-27T12:56:09.000Z
|
# frozen_string_literal: true
class AddOtpSecretKeyOtpModuleToUsers < ActiveRecord::Migration[6.0]
def change
change_table :users, bulk: true do |t|
t.string :otp_secret_key
t.column :otp_enabled, :boolean, default: false
end
end
end
| 23.545455
| 68
| 0.725869
|
b34a6bc4b020c394a058921234bd8e51a4b6c163
| 1,617
|
py
|
Python
|
app/lib/modules/image_loader.py
|
kosuke1701/character-reid
|
5b7d1d01a1a046f3f25a863d24022bf21f95ff9d
|
[
"MIT"
] | 1
|
2021-06-22T04:06:40.000Z
|
2021-06-22T04:06:40.000Z
|
app/lib/modules/image_loader.py
|
kosuke1701/character-reid
|
5b7d1d01a1a046f3f25a863d24022bf21f95ff9d
|
[
"MIT"
] | null | null | null |
app/lib/modules/image_loader.py
|
kosuke1701/character-reid
|
5b7d1d01a1a046f3f25a863d24022bf21f95ff9d
|
[
"MIT"
] | 2
|
2020-03-03T14:29:33.000Z
|
2020-03-10T04:49:49.000Z
|
from PIL import Image
import numpy as np
import torch
from torchvision import transforms
def _load_image(filename):
try:
with open(filename, "rb") as f:
image = Image.open(f)
return image.convert("RGB")
except UserWarning as e:
print(filename)
input("Something wrong happens while loading image: {} {}".format(filename, str(e)))
class AbstractImageLoader(object):
def load_images(self, lst_filenames):
raise NotImplementedError()
class FullImageLoader(AbstractImageLoader):
def __init__(self, transform):
self.transform = transform
def load_thumbnail(self, lst_filenames, size, callback=None):
imgs = []
for i_fn, fn in enumerate(lst_filenames):
img = Image.open(fn)
img = img.convert("RGBA")
W,H = img.size
if W > H:
_img = Image.new(img.mode, (W, W))
_img.paste(img, (0, (W-H)//2))
elif H > W:
_img = Image.new(img.mode, (H, H))
_img.paste(img, ((H-W)//2, 0))
else:
_img = img
_img = _img.resize((size, size))
imgs.append(_img)
if callback is not None:
callback(i_fn, len(lst_filenames))
return imgs
def load_images(self, lst_filenames):
imgs = [_load_image(fn) for fn in lst_filenames]
if self.transform is not None:
imgs = [self.transform(img) for img in imgs]
imgs = torch.cat([img.unsqueeze(0) for img in imgs])
return imgs
| 29.4
| 92
| 0.560915
|
e70f9ed9cffdc2bf650a412151c36d2bb5b0ef73
| 1,583
|
php
|
PHP
|
src/portpontrieuxBundle/Entity/Emplacement.php
|
ALFantoine22/protpontrieux
|
dc1e9e2d5a8c578145113b491e7f10d5514c1c8f
|
[
"MIT"
] | null | null | null |
src/portpontrieuxBundle/Entity/Emplacement.php
|
ALFantoine22/protpontrieux
|
dc1e9e2d5a8c578145113b491e7f10d5514c1c8f
|
[
"MIT"
] | null | null | null |
src/portpontrieuxBundle/Entity/Emplacement.php
|
ALFantoine22/protpontrieux
|
dc1e9e2d5a8c578145113b491e7f10d5514c1c8f
|
[
"MIT"
] | null | null | null |
<?php
namespace portpontrieuxBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Emplacement
*
* @ORM\Table(name="emplacement")
* @ORM\Entity(repositoryClass="portpontrieuxBundle\Repository\EmplacementRepository")
*/
class Emplacement
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var bool
*
* @ORM\Column(name="disponible", type="boolean")
*/
private $disponible;
/**
* @ORM\ManyToOne (targetEntity="portpontrieuxBundle\Entity\Type")
* @ORM\JoinColumn(nullable=false)
*/
private $type;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set disponible
*
* @param boolean $disponible
*
* @return Emplacement
*/
public function setDisponible($disponible)
{
$this->disponible = $disponible;
return $this;
}
/**
* Get disponible
*
* @return bool
*/
public function getDisponible()
{
return $this->disponible;
}
/**
* Set type
*
* @param \portpontrieuxBundle\Entity\Type $type
*
* @return Emplacement
*/
public function setType(\portpontrieuxBundle\Entity\Type $type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return \portpontrieuxBundle\Entity\Type
*/
public function getType()
{
return $this->type;
}
}
| 16.663158
| 86
| 0.545167
|
b31842f8525c09538321140388d4561f4b266935
| 1,588
|
py
|
Python
|
bin/local-align.py
|
UdoGi/dark-matter
|
3d49e89fa5e81f83144119f6216c5774176d203b
|
[
"MIT"
] | 10
|
2016-03-09T09:43:14.000Z
|
2021-04-03T21:46:12.000Z
|
bin/local-align.py
|
terrycojones/dark-matter
|
67d16f870db6b4239e17e542bc6e3f072dc29c75
|
[
"MIT"
] | 332
|
2015-01-07T12:37:30.000Z
|
2022-01-20T15:48:11.000Z
|
bin/local-align.py
|
terrycojones/dark-matter
|
67d16f870db6b4239e17e542bc6e3f072dc29c75
|
[
"MIT"
] | 4
|
2016-03-08T14:56:39.000Z
|
2021-01-27T08:11:27.000Z
|
#!/usr/bin/env python
"""
Aligns each FASTA sequence in one file to each sequence in another.
"""
from __future__ import print_function
import argparse
from dark.fasta import FastaReads
from dark.local_align import LocalAlignment
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description=(
'Given two FASTA files, perform a local Smith Waterman alignment '
'on all the sequences in one file against all those in the other.'))
parser.add_argument(
'--fastaFile1', required=True, help='The first FASTA file.')
parser.add_argument(
'--fastaFile2', required=True, help='The second FASTA file.')
parser.add_argument(
'--matchScore', type=int, default=1, help='The match score.')
parser.add_argument(
'--mismatchScore', type=int, default=-1, help='The mismatch score.')
parser.add_argument(
'--gapOpenScore', type=int, default=-1, help='The gap open score.')
parser.add_argument(
'--gapExtendScore', type=int, default=-1, help='The gap extend score.')
parser.add_argument(
'--gapExtendDecay', type=float, default=0.0, help='The gap extend decay.')
args = parser.parse_args()
for seq1 in FastaReads(args.fastaFile1):
for seq2 in FastaReads(args.fastaFile2):
alignment = LocalAlignment(
seq1, seq2,
match=args.matchScore,
mismatch=args.mismatchScore,
gap=args.gapOpenScore,
gapExtend=args.gapExtendScore,
gapExtendDecay=args.gapExtendDecay)
print(alignment.createAlignment(resultFormat=str))
| 28.872727
| 78
| 0.702771
|
0d48a3272e450ecd6d89ccb5044782fb7daee2c0
| 409
|
h
|
C
|
src/game/Sys_Globals.h
|
oldlaptop/ja2-stracciatella
|
a29e729dfec564c3ef7f7990ed7d5cd6c2e1c2a8
|
[
"BSD-Source-Code"
] | null | null | null |
src/game/Sys_Globals.h
|
oldlaptop/ja2-stracciatella
|
a29e729dfec564c3ef7f7990ed7d5cd6c2e1c2a8
|
[
"BSD-Source-Code"
] | null | null | null |
src/game/Sys_Globals.h
|
oldlaptop/ja2-stracciatella
|
a29e729dfec564c3ef7f7990ed7d5cd6c2e1c2a8
|
[
"BSD-Source-Code"
] | null | null | null |
#ifndef __SYS_GLOBALS_H
#define __SYS_GLOBALS_H
#define SHOW_MIN_FPS 0
#define SHOW_FULL_FPS 1
extern char gubErrorText[200];
extern BOOLEAN gfAniEditMode;
extern BOOLEAN gfEditMode;
extern BOOLEAN fFirstTimeInGameScreen;
extern INT8 gbFPSDisplay;
extern BOOLEAN gfGlobalError;
extern UINT32 guiGameCycleCounter;
void SET_ERROR(char const* const String, ...);
extern char g_filename[200];
#endif
| 19.47619
| 46
| 0.806846
|
850ac73d5ec0e411c76b7a3d31c3d36e07b399ed
| 3,233
|
cs
|
C#
|
src/JoinRpg.WebPortal.Models/ClaimList/ClaimListItemViewModelBase.cs
|
leotsarev/joinrpg-net
|
88df35fedc5cee73067e9fec9e850cb02826c576
|
[
"MIT"
] | 1
|
2018-01-24T18:44:33.000Z
|
2018-01-24T18:44:33.000Z
|
src/JoinRpg.WebPortal.Models/ClaimList/ClaimListItemViewModelBase.cs
|
leotsarev/joinrpg-net
|
88df35fedc5cee73067e9fec9e850cb02826c576
|
[
"MIT"
] | null | null | null |
src/JoinRpg.WebPortal.Models/ClaimList/ClaimListItemViewModelBase.cs
|
leotsarev/joinrpg-net
|
88df35fedc5cee73067e9fec9e850cb02826c576
|
[
"MIT"
] | null | null | null |
using System;
using System.ComponentModel.DataAnnotations;
using JetBrains.Annotations;
using JoinRpg.DataModel;
using JoinRpg.Domain;
namespace JoinRpg.Web.Models.ClaimList
{
public abstract class ClaimListItemViewModelBase : ILinkable
{
[Display(Name = "Имя")]
public string Name { get; set; }
[Display(Name = "Игрок")]
public User Player { get; set; }
[Display(Name = "Игра")]
public string ProjectName { get; set; }
[Display(Name = "Статус")]
public ClaimFullStatusView ClaimFullStatusView { get; set; }
[Display(Name = "Обновлена"), UIHint("EventTime")]
public DateTime? UpdateDate { get; set; }
[Display(Name = "Создана"), UIHint("EventTime")]
public DateTime? CreateDate { get; set; }
[Display(Name = "Ответственный")]
public User? Responsible { get; set; }
[CanBeNull]
public User LastModifiedBy { get; set; }
public int ProjectId { get; }
public int ClaimId { get; }
protected ClaimListItemViewModelBase([NotNull]
Claim claim,
int currentUserId)
{
if (claim == null)
{
throw new ArgumentNullException(nameof(claim));
}
var accessArguments = new AccessArguments(claim, currentUserId);
(DateTime lastModifiedAt, User lastModifiedBy) = GetLastComment(claim, accessArguments);
ClaimId = claim.ClaimId;
ClaimFullStatusView = new ClaimFullStatusView(claim, accessArguments);
Name = claim.Name;
Player = claim.Player;
UpdateDate = lastModifiedAt;
CreateDate = claim.CreateDate;
Responsible = claim.ResponsibleMasterUser;
LastModifiedBy = lastModifiedBy;
ProjectId = claim.ProjectId;
ProjectName = claim.Project.ProjectName;
static (DateTime At, User By) GetLastComment(Claim claim, AccessArguments accessArguments)
{
var lastComment = (At: claim.CreateDate, By: claim.Player);
if (claim.LastPlayerCommentAt is not null && claim.LastPlayerCommentAt > lastComment.At)
{
lastComment = (At: claim.LastPlayerCommentAt.Value.DateTime, By: claim.Player);
}
if (claim.LastVisibleMasterCommentAt is not null && claim.LastVisibleMasterCommentAt > lastComment.At)
{
lastComment = (At: claim.LastVisibleMasterCommentAt.Value.DateTime, By: claim.LastVisibleMasterCommentBy!);
}
if (accessArguments.MasterAccess && claim.LastMasterCommentAt is not null && claim.LastMasterCommentAt > lastComment.At)
{
lastComment = (At: claim.LastMasterCommentAt.Value.DateTime, By: claim.LastMasterCommentBy!);
}
return lastComment;
}
}
#region Implementation of ILinkable
public LinkType LinkType => LinkType.Claim;
public string Identification => ClaimId.ToString();
int? ILinkable.ProjectId => ProjectId;
#endregion
}
}
| 32.989796
| 136
| 0.60099
|
256511bb13d7f2b67c9c9c7d061284beed29de5a
| 7,572
|
js
|
JavaScript
|
test/test-push-client.js
|
JohnSmithDr/node-umeng-push
|
97f3a9f44295a16044b3c59d2f471910327b222e
|
[
"MIT"
] | null | null | null |
test/test-push-client.js
|
JohnSmithDr/node-umeng-push
|
97f3a9f44295a16044b3c59d2f471910327b222e
|
[
"MIT"
] | null | null | null |
test/test-push-client.js
|
JohnSmithDr/node-umeng-push
|
97f3a9f44295a16044b3c59d2f471910327b222e
|
[
"MIT"
] | null | null | null |
'use strict';
const expect = require('chai').expect;
const UmengPushClient = require('..').UmengPushClient;
const UmengPushArgs = require('..').UmengPushArgs;
const keys = require('./keys');
const logger = require('./test-logger');
describe('UmengPushClient', function() {
let androidClient = UmengPushClient.create(keys.ANDROID_APP_KEY, keys.ANDROID_MASTER_KEY);
let iosClient = UmengPushClient.create(keys.IOS_APP_KEY, keys.IOS_MASTER_KEY);
describe('#send', function() {
it('should push notification to android (callback)', function(done) {
let args = UmengPushArgs
.android()
.type(UmengPushArgs.TYPE_CUSTOMIZEDCAST)
.alias('foo,bar')
.aliasType('test')
.thirdPartyId('foo-id')
.payload(
UmengPushArgs
.androidPayload()
.displayType(UmengPushArgs.DISPLAY_TYPE_NOTIFICATION)
.body(
UmengPushArgs
.androidPayloadBody()
.ticker('test push android')
.title('test push android')
.text('test push android notification with umeng-push (callback)')
.afterOpen(UmengPushArgs.AFTER_OPEN_GO_APP)
)
)
.value();
logger.debug('push args:', args);
androidClient.send(args, (err, r) => {
if (err) return done(err);
logger.debug('push result:', r);
try {
expect(r.ret).to.equal('SUCCESS');
expect(r.data).to.be.an('object');
expect(r.data.msg_id).to.be.a('string');
expect(r.data.thirdparty_id).to.equal('foo-id');
return done();
}
catch(err) {
return done(err);
}
});
});
it('should push notification to android (promise)', function() {
let args = UmengPushArgs
.android()
.type(UmengPushArgs.TYPE_CUSTOMIZEDCAST)
.alias('foo,bar')
.aliasType('test')
.thirdPartyId('foo-id')
.payload(
UmengPushArgs
.androidPayload()
.displayType(UmengPushArgs.DISPLAY_TYPE_NOTIFICATION)
.body(
UmengPushArgs
.androidPayloadBody()
.ticker('test push android')
.title('test push android')
.text('test push android notification with umeng-push (promise)')
.afterOpen(UmengPushArgs.AFTER_OPEN_GO_APP)
)
)
.value();
logger.debug('push args:', args);
return androidClient.send(args)
.then(r => {
logger.debug('push result:', r);
expect(r.ret).to.equal('SUCCESS');
expect(r.data).to.be.an('object');
expect(r.data.msg_id).to.be.a('string');
expect(r.data.thirdparty_id).to.equal('foo-id');
});
});
it('should push message to android (callback)', function(done) {
let args = UmengPushArgs
.android()
.type(UmengPushArgs.TYPE_CUSTOMIZEDCAST)
.alias('foo')
.aliasType('test')
.thirdPartyId('foo-id')
.payload(
UmengPushArgs
.androidPayload()
.displayType(UmengPushArgs.DISPLAY_TYPE_MESSAGE)
.body(
UmengPushArgs
.androidPayloadBody()
.custom({
foo: 'foo',
bar: 'bar',
custom: 1
})
)
)
.value();
logger.debug('push args:', args);
androidClient.send(args, (err, r) => {
if (err) return done(err);
logger.debug('push result:', r);
try {
expect(r.ret).to.equal('SUCCESS');
expect(r.data).to.be.an('object');
expect(r.data.msg_id).to.be.a('string');
expect(r.data.thirdparty_id).to.equal('foo-id');
done();
}
catch(err) {
done(err);
}
});
});
it('should push message to android (promise)', function() {
let args = UmengPushArgs
.android()
.type(UmengPushArgs.TYPE_CUSTOMIZEDCAST)
.alias('foo')
.aliasType('test')
.thirdPartyId('foo-id')
.payload(
UmengPushArgs
.androidPayload()
.displayType(UmengPushArgs.DISPLAY_TYPE_MESSAGE)
.body(
UmengPushArgs
.androidPayloadBody()
.custom({
foo: 'foo',
bar: 'bar',
custom: 1
})
)
)
.value();
logger.debug('push args:', args);
return androidClient.send(args)
.then(r => {
logger.debug('push result:', r);
expect(r.ret).to.equal('SUCCESS');
expect(r.data).to.be.an('object');
expect(r.data.msg_id).to.be.a('string');
expect(r.data.thirdparty_id).to.equal('foo-id');
});
});
it('should push to ios (callback)', function(done) {
let args = UmengPushArgs
.ios()
.alias('foo')
.aliasType('test')
.thirdPartyId('foo-id')
.productionMode(false)
.payload(
UmengPushArgs
.iosPayload()
.body(
UmengPushArgs
.iosPayloadBody()
.alert('test alert notification')
.category('test')
.contentAvailable('test content')
)
)
.value();
logger.debug('push args:', args);
iosClient.send(args, (err, r) => {
if (err) return done(err);
logger.debug('push result:', r);
try {
r.ret.should.equal('SUCCESS');
r.data.should.be.an('object');
r.data.msg_id.should.be.a('string');
r.data.thirdparty_id.should.be.a('string').and.equal('foo-id');
done();
}
catch(err) {
done(err);
}
});
});
it('should push to ios (promise)', function() {
let args = UmengPushArgs
.ios()
.alias('foo')
.aliasType('test')
.thirdPartyId('foo-id')
.productionMode(false)
.payload(
UmengPushArgs
.iosPayload()
.body(
UmengPushArgs
.iosPayloadBody()
.alert('test alert notification')
.category('test')
.contentAvailable('test content')
)
)
.value();
logger.debug('push args:', args);
return iosClient.send(args)
.then(r => {
logger.debug('push result:', r);
r.ret.should.equal('SUCCESS');
r.data.should.be.an('object');
r.data.msg_id.should.be.a('string');
r.data.thirdparty_id.should.be.a('string').and.equal('foo-id');
});
});
});
describe('#status', function() {
it('should be ok with callback', function(done) {
// TODO
done();
});
it('should be ok with promise', function(done) {
// TODO
done();
});
});
describe('#cancel', function() {
it('should be ok with callback', function(done) {
// TODO
done();
});
it('should be ok with promise', function(done) {
// TODO
done();
});
});
describe('#upload', function() {
it('should be ok with callback', function(done) {
// TODO
done();
});
it('should be ok with promise', function(done) {
// TODO
done();
});
});
});
| 25.931507
| 92
| 0.503698
|
501d7770d9c889792736059363536f7a903c6983
| 84
|
sql
|
SQL
|
database/src/main/resources/db/migration/V81__revurdering_forhåndsvarsling.sql
|
navikt/su-se-bakover
|
38437fc2dad711702922bdf05ef7d010a8ce90d2
|
[
"MIT"
] | null | null | null |
database/src/main/resources/db/migration/V81__revurdering_forhåndsvarsling.sql
|
navikt/su-se-bakover
|
38437fc2dad711702922bdf05ef7d010a8ce90d2
|
[
"MIT"
] | 108
|
2020-06-29T08:58:16.000Z
|
2022-03-28T15:41:38.000Z
|
database/src/main/resources/db/migration/V81__revurdering_forhåndsvarsling.sql
|
navikt/su-se-bakover
|
38437fc2dad711702922bdf05ef7d010a8ce90d2
|
[
"MIT"
] | null | null | null |
alter table revurdering add column if not exists forhåndsvarsel jsonb default null;
| 42
| 83
| 0.845238
|
40fe8ecd5b265e8e5467907729f792b4ff2fcd42
| 2,526
|
ts
|
TypeScript
|
packages/db/src/books/books.ts
|
adjerbetian/alexandre-djerbetian
|
797378228f5d4ec3c22ab82189ecfefac7d0af3c
|
[
"MIT"
] | null | null | null |
packages/db/src/books/books.ts
|
adjerbetian/alexandre-djerbetian
|
797378228f5d4ec3c22ab82189ecfefac7d0af3c
|
[
"MIT"
] | 124
|
2020-04-13T17:14:17.000Z
|
2021-07-30T03:56:57.000Z
|
packages/db/src/books/books.ts
|
adjerbetian/alexandre-djerbetian
|
797378228f5d4ec3c22ab82189ecfefac7d0af3c
|
[
"MIT"
] | null | null | null |
import { BookDBModel } from "./dbModel";
import { cleanCode } from "./clean-code";
import { javascriptTheGoodPart } from "./javascript-the-good-parts";
import { decouvrirDevops } from "./decouvrir-devops";
import { designPatterns } from "./design-patterns";
import { masteringModularJavascript } from "./mastering-modular-javascript";
import { pairProgrammingIlluminated } from "./pair-programming-illuminated";
import { refactoring } from "./refactoring";
import { theMythicalManMonth } from "./the-mythical-man-month";
import { thePragmaticProgrammer } from "./the-pragmatic-programmer";
import { workingEffectivelyWithLegacyCode } from "./working-effectively-with-legacy-code";
export const books: BookDBModel[] = [
cleanCode,
{
id: "the-clean-coder",
title: "The Clean Coder",
authors: ["Robert C. Martin"],
releaseYear: 2011,
readingYear: 2017,
rating: 4.5,
},
{
id: "clean-architecture",
title: "Clean Architecture",
authors: ["Robert C. Martin"],
releaseYear: 2017,
readingYear: 2018,
rating: 4,
},
{
id: "the-software-craftsman",
title: "The Software Craftsman: Professionalism, Pragmatism, Pride",
authors: ["Sandro Mancuso Mancuso"],
releaseYear: 2014,
readingYear: 2018,
rating: 4.5,
},
{
id: "test-driven-development-by-example",
title: "Test Driven Development: By Example",
authors: ["Kent Beck"],
releaseYear: 2002,
readingYear: 2018,
rating: 5,
},
{
id: "extreme-programming-explained-embrace-change",
title: "Extreme Programming Explained: Embrace Change",
authors: ["Kent Beck"],
releaseYear: 2004,
readingYear: 2018,
rating: 3.5,
},
{
id: "the-lean-startup",
title: "The Lean Startup",
authors: ["Erich Ries"],
releaseYear: 2011,
readingYear: 2018,
rating: 1.5,
},
{
id: "scrum-5ed-pour-une-pratique-vivante-de-l-agilite",
title: "Scrum - 5e éd.- Pour une pratique vivante de l'agilité",
authors: ["Claude Aubry"],
releaseYear: 2018,
readingYear: 2018,
rating: 3,
},
javascriptTheGoodPart,
refactoring,
thePragmaticProgrammer,
workingEffectivelyWithLegacyCode,
decouvrirDevops,
pairProgrammingIlluminated,
designPatterns,
theMythicalManMonth,
masteringModularJavascript,
];
| 31.185185
| 90
| 0.618765
|
b0df79b6bb2a6ccc0002c8726493fa73df74dc18
| 3,382
|
py
|
Python
|
src/protocols/BLE/ble_replay_attack.py
|
QWERTSKIHACK/peniot
|
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
|
[
"MIT"
] | 143
|
2019-12-31T08:12:36.000Z
|
2022-03-31T15:59:51.000Z
|
src/protocols/BLE/ble_replay_attack.py
|
QWERTSKIHACK/peniot
|
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
|
[
"MIT"
] | 5
|
2020-01-28T15:47:23.000Z
|
2022-02-23T11:18:55.000Z
|
src/protocols/BLE/ble_replay_attack.py
|
QWERTSKIHACK/peniot
|
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
|
[
"MIT"
] | 39
|
2019-12-30T22:19:38.000Z
|
2022-03-17T10:24:37.000Z
|
import os
from protocols.BLE.ble_device import BLEDevice
class BLEReplayAttackHelper:
"""
This is the helper class which is used to perform BLE Replay attack.
"""
def __init__(self, file_path):
self.file_path = file_path
self.write_requests = {}
self.run()
def run(self):
self.create_tmp_file()
self.get_write_requests()
self.replay_write_requests()
self.delete_tmp_file()
def create_tmp_file(self):
"""
Convert pcap file to txt
"""
# convert pcap file to .txt file
file_path = "\\ ".join(self.file_path.split())
os.system("tshark -X lua_script:tmp.txt -r " + file_path + " -V -T text > tmp.txt")
def get_write_requests(self):
"""
Retrieves all write requests from the given file
"""
# Open the file
f = open("tmp.txt", "r")
# Get the content of the file
content = f.read()
# Get frames
frames = content.split("\n\n")
# Search each frame to find Write Requests
for frame in frames:
try:
# Slave address index
slave_address_index = frame.index("Slave Address:")
# Update the frame
frame = frame[slave_address_index:]
# Get the slave address
open_para_index = frame.index("(")
close_para_index = frame.index(")")
slave_address = frame[open_para_index + 1:close_para_index]
# Write request index
write_request_index = frame.index("Opcode: Write Request")
# Update the frame
frame = frame[write_request_index:]
# Handle index
handle_index = frame.index("Handle:") + 8
# Update the frame
frame = frame[handle_index:]
# Space index
space_index = frame.index(" ")
# Get the handle
handle = frame[:space_index]
# Value index
value_index = frame.index("Value:") + 7
# Get the value
value = frame[value_index:]
# Add handle-value to the list
if slave_address in self.write_requests:
self.write_requests[slave_address].append({"handle": handle, "value": value})
else:
self.write_requests[slave_address] = [{"handle": handle, "value": value}]
except ValueError:
pass
print "retrieved write requests"
def replay_write_requests(self):
"""
Replay all write requests
"""
# Replay all write request
for slave_address in self.write_requests:
# Create a connection to the device
device = BLEDevice(slave_address)
# Replay all write request belonging to the device
for handle_value_pair in self.write_requests[slave_address]:
handle = handle_value_pair["handle"]
value = handle_value_pair["value"]
device.writecmd(handle, value)
print "wrote " + value + " to handle: " + handle
def delete_tmp_file(self):
"""
Delete the created tmp file
"""
os.remove("tmp.txt")
| 35.6
| 97
| 0.542578
|
e3dc6c9e33bc52a597a131fafdab34e4d0a08bc4
| 114
|
sql
|
SQL
|
applications/credhub-api/src/main/resources/db/migration/mysql/V20__add_uuid_to_named_canary.sql
|
ystros/credhub
|
a6f91ee204225b76e4101b9c141e29c92ffee9d1
|
[
"Apache-2.0"
] | 178
|
2017-03-09T18:17:26.000Z
|
2021-09-01T17:07:24.000Z
|
applications/credhub-api/src/main/resources/db/migration/mysql/V20__add_uuid_to_named_canary.sql
|
ystros/credhub
|
a6f91ee204225b76e4101b9c141e29c92ffee9d1
|
[
"Apache-2.0"
] | 198
|
2017-02-21T22:38:32.000Z
|
2021-10-11T21:55:48.000Z
|
applications/credhub-api/src/main/resources/db/migration/mysql/V20__add_uuid_to_named_canary.sql
|
ystros/credhub
|
a6f91ee204225b76e4101b9c141e29c92ffee9d1
|
[
"Apache-2.0"
] | 64
|
2017-02-22T01:09:18.000Z
|
2021-08-20T19:24:19.000Z
|
RENAME TABLE named_canary TO encryption_key_canary;
ALTER TABLE encryption_key_canary ADD COLUMN uuid BINARY(16);
| 38
| 61
| 0.859649
|
c9c73e55a321c7c93f25d1285ce5858d3a29fb3e
| 324
|
ts
|
TypeScript
|
src/app/components/input-demo/input-demo-example-03/input-demo-example-03.component.ts
|
gitter-badger/Alyle-UI
|
f779d64e39716a446b130f54dd44f9cbe3c2e625
|
[
"MIT"
] | null | null | null |
src/app/components/input-demo/input-demo-example-03/input-demo-example-03.component.ts
|
gitter-badger/Alyle-UI
|
f779d64e39716a446b130f54dd44f9cbe3c2e625
|
[
"MIT"
] | null | null | null |
src/app/components/input-demo/input-demo-example-03/input-demo-example-03.component.ts
|
gitter-badger/Alyle-UI
|
f779d64e39716a446b130f54dd44f9cbe3c2e625
|
[
"MIT"
] | null | null | null |
import { Component } from '@angular/core';
@Component({
selector: 'input-demo-example-03',
templateUrl: './input-demo-example-03.component.html',
styleUrls: ['./input-demo-example-03.component.css']
})
export class InputDemoExample03Component {
github = 'A-l-y-l-e/Alyle-UI';
mobile: string;
message: string;
}
| 24.923077
| 56
| 0.700617
|
54198ffad420216bf191b27730ed40e82a6c55d9
| 169,348
|
css
|
CSS
|
crepelatier2/static/css/main.min.css
|
Felexus/crepelatier2
|
7690578c18fdaaac12a2576c18e18a1b53d34f49
|
[
"MIT"
] | null | null | null |
crepelatier2/static/css/main.min.css
|
Felexus/crepelatier2
|
7690578c18fdaaac12a2576c18e18a1b53d34f49
|
[
"MIT"
] | null | null | null |
crepelatier2/static/css/main.min.css
|
Felexus/crepelatier2
|
7690578c18fdaaac12a2576c18e18a1b53d34f49
|
[
"MIT"
] | null | null | null |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}mark{background:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}blockquote,figure{margin:0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}fieldset{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:0 0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}legend{border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}legend,td,th{padding:0}
/*!
* animate.css -http://daneden.me/animate
* Version - 3.5.1
* Licensed under the MIT license - http://opensource.org/licenses/MIT
*
* Copyright (c) 2016 Daniel Eden
*/
@-webkit-keyframes bounce{0%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}40%,43%,70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06)}70%{-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%,20%,53%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translateZ(0);transform:translateZ(0)}40%,43%{-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}40%,43%,70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06)}70%{-webkit-transform:translate3d(0,-15px,0);transform:translate3d(0,-15px,0)}90%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@-webkit-keyframes pulse{0%,to{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}}@keyframes pulse{0%,to{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}}@-webkit-keyframes rubberBand{0%,to{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.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)}}@keyframes rubberBand{0%,to{-webkit-transform:scaleX(1);transform:scaleX(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.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)}}@-webkit-keyframes shake{0%,to{-webkit-transform:translateZ(0);transform:translateZ(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%,to{-webkit-transform:translateZ(0);transform:translateZ(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)}}@-webkit-keyframes headShake{0%,50%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}}@keyframes headShake{0%,50%{-webkit-transform:translateX(0);transform:translateX(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translateX(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translateX(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translateX(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translateX(2px) rotateY(3deg)}}@-webkit-keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@keyframes swing{20%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}40%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}60%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}80%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}}@-webkit-keyframes tada{0%,to{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}}@keyframes tada{0%,to{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);transform:scale3d(.9,.9,.9) rotate(-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);transform:scale3d(1.1,1.1,1.1) rotate(3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);transform:scale3d(1.1,1.1,1.1) rotate(-3deg)}}@-webkit-keyframes wobble{0%,to{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}}@keyframes wobble{0%,to{-webkit-transform:none;transform:none}15%{-webkit-transform:translate3d(-25%,0,0) rotate(-5deg);transform:translate3d(-25%,0,0) rotate(-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate(3deg);transform:translate3d(20%,0,0) rotate(3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate(-3deg);transform:translate3d(-15%,0,0) rotate(-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate(2deg);transform:translate3d(10%,0,0) rotate(2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate(-1deg);transform:translate3d(-5%,0,0) rotate(-1deg)}}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.39063deg) skewY(.39063deg);transform:skewX(.39063deg) skewY(.39063deg)}88.8%{-webkit-transform:skewX(-.19531deg) skewY(-.19531deg);transform:skewX(-.19531deg) skewY(-.19531deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:none;transform:none}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skewX(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skewX(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skewX(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skewX(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skewX(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.39063deg) skewY(.39063deg);transform:skewX(.39063deg) skewY(.39063deg)}88.8%{-webkit-transform:skewX(-.19531deg) skewY(-.19531deg);transform:skewX(-.19531deg) skewY(-.19531deg)}}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1)}}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:none;transform:none}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:none;transform:none}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.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)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-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)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@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)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@-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)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@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)}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-20px,0,0);transform:translate3d(-20px,0,0)}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@-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)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@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)}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,2000px,0);transform:translate3d(0,2000px,0)}}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(2000px,0,0);transform:translate3d(2000px,0,0)}}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-2000px,0);transform:translate3d(0,-2000px,0)}}@-webkit-keyframes flip{0%{-webkit-transform:perspective(400px) rotateY(-1turn);transform:perspective(400px) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) translateZ(150px) rotateY(-190deg);transform:perspective(400px) translateZ(150px) rotateY(-190deg)}50%{-webkit-transform:perspective(400px) translateZ(150px) rotateY(-170deg);transform:perspective(400px) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95)}to{-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) rotateY(-1turn);transform:perspective(400px) rotateY(-1turn);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;-webkit-transform:perspective(400px) translateZ(150px) rotateY(-190deg);transform:perspective(400px) translateZ(150px) rotateY(-190deg)}50%{-webkit-transform:perspective(400px) translateZ(150px) rotateY(-170deg);transform:perspective(400px) translateZ(150px) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) scale3d(.95,.95,.95);transform:perspective(400px) scale3d(.95,.95,.95)}to{-webkit-transform:perspective(400px);transform:perspective(400px);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInX{0%{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg)}60%{-webkit-transform:perspective(400px) rotateX(10deg);transform:perspective(400px) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateX(-5deg);transform:perspective(400px) rotateX(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg)}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@keyframes flipInY{0%{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}40%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-transform:perspective(400px) rotateY(-20deg);transform:perspective(400px) rotateY(-20deg)}60%{-webkit-transform:perspective(400px) rotateY(10deg);transform:perspective(400px) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotateY(-5deg);transform:perspective(400px) rotateY(-5deg)}to{-webkit-transform:perspective(400px);transform:perspective(400px)}}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateX(-20deg);transform:perspective(400px) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(400px) rotateX(90deg);transform:perspective(400px) rotateX(90deg);opacity:0}}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(400px);transform:perspective(400px)}30%{-webkit-transform:perspective(400px) rotateY(-15deg);transform:perspective(400px) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(400px) rotateY(90deg);transform:perspective(400px) rotateY(90deg);opacity:0}}@-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%{opacity:1;-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:none;transform:none;opacity:1}}@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%{opacity:1;-webkit-transform:skewX(-5deg);transform:skewX(-5deg)}to{-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes lightSpeedOut{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@keyframes lightSpeedOut{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skewX(30deg);opacity:0}}@-webkit-keyframes rotateIn{0%{transform-origin:center;-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0;-webkit-transform-origin:center}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateIn{0%{transform-origin:center;-webkit-transform:rotate(-200deg);transform:rotate(-200deg);opacity:0;-webkit-transform-origin:center}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes rotateInDownLeft{0%{transform-origin:left bottom;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownLeft{0%{transform-origin:left bottom;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes rotateInDownRight{0%{transform-origin:right bottom;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInDownRight{0%{transform-origin:right bottom;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes rotateInUpLeft{0%{transform-origin:left bottom;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpLeft{0%{transform-origin:left bottom;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes rotateInUpRight{0%{transform-origin:right bottom;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@keyframes rotateInUpRight{0%{transform-origin:right bottom;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);opacity:0;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:none;transform:none;opacity:1}}@-webkit-keyframes rotateOut{0%{transform-origin:center;opacity:1;-webkit-transform-origin:center}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@keyframes rotateOut{0%{transform-origin:center;opacity:1;-webkit-transform-origin:center}to{-webkit-transform-origin:center;transform-origin:center;-webkit-transform:rotate(200deg);transform:rotate(200deg);opacity:0}}@-webkit-keyframes rotateOutDownLeft{0%{transform-origin:left bottom;opacity:1;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{transform-origin:left bottom;opacity:1;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate(45deg);transform:rotate(45deg);opacity:0}}@-webkit-keyframes rotateOutDownRight{0%{transform-origin:right bottom;opacity:1;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{transform-origin:right bottom;opacity:1;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@-webkit-keyframes rotateOutUpLeft{0%{transform-origin:left bottom;opacity:1;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{transform-origin:left bottom;opacity:1;-webkit-transform-origin:left bottom}to{-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:0}}@-webkit-keyframes rotateOutUpRight{0%{transform-origin:right bottom;opacity:1;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@keyframes rotateOutUpRight{0%{transform-origin:right bottom;opacity:1;-webkit-transform-origin:right bottom}to{-webkit-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:0}}@-webkit-keyframes hinge{0%{transform-origin:top left;-webkit-transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-transform-origin:top left;transform-origin:top left}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(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}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@keyframes hinge{0%{transform-origin:top left;-webkit-transform-origin:top left;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-transform:rotate(80deg);transform:rotate(80deg);-webkit-transform-origin:top left;transform-origin:top left}40%,80%{-webkit-transform:rotate(60deg);transform:rotate(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}to{-webkit-transform:translate3d(0,700px,0);transform:translate3d(0,700px,0);opacity:0}}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate(-120deg);transform:translate3d(-100%,0,0) rotate(-120deg)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate(120deg);transform:translate3d(100%,0,0) rotate(120deg)}}@-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);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@-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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@-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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@-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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@-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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@-webkit-keyframes zoomOut{0%{opacity:1}50%{-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3);opacity:0}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3);opacity:0}to{opacity:0}}@-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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@-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)}to{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);transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{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}}@-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)}to{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);transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{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}}@-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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@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(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{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(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.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}.animated.bounceIn,.animated.bounceOut,.animated.flipOutX,.animated.flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s}.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}.flash{-webkit-animation-name:flash;animation-name:flash}.pulse{-webkit-animation-name:pulse;animation-name:pulse}.rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}.shake{-webkit-animation-name:shake;animation-name:shake}.headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}.swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}.tada{-webkit-animation-name:tada;animation-name:tada}.wobble{-webkit-animation-name:wobble;animation-name:wobble}.jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}.bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn}.bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}.bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}.bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}.bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}.bounceOut{-webkit-animation-name:bounceOut;animation-name:bounceOut}.bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}.bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}.bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}.bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}.fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}.fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}.fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}.fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}.fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}.fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}.fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}.fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}.fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}.fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}.animated.flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}.flipInX,.flipInY,.flipOutX,.flipOutY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}.flipInY,.flipOutX,.flipOutY{-webkit-animation-name:flipInY;animation-name:flipInY}.flipOutX,.flipOutY{-webkit-animation-name:flipOutX;animation-name:flipOutX}.flipOutY{-webkit-animation-name:flipOutY;animation-name:flipOutY}.lightSpeedIn{-webkit-animation-name:lightSpeedIn;animation-name:lightSpeedIn;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}.lightSpeedOut{-webkit-animation-name:lightSpeedOut;animation-name:lightSpeedOut;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn}.rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft}.rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight}.rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft}.rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight}.rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut}.rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft}.rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight}.rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft}.rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight}.hinge{-webkit-animation-name:hinge;animation-name:hinge}.rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}.rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}.zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}.zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}.zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}.zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}.zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}.zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown}.zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft}.zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight}.zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp}.slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}.slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}.slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}.slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}.slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}.slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}
/*! nouislider - 9.1.0 - 2016-12-10 16:00:32 */
@-webkit-keyframes progrex-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@keyframes progrex-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@-webkit-keyframes swiper-preloader-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes lg-right-end{0%,to{left:0}50%{left:-30px}}@keyframes lg-right-end{0%,to{left:0}50%{left:-30px}}@-webkit-keyframes lg-left-end{0%,to{left:0}50%{left:30px}}@keyframes lg-left-end{0%,to{left:0}50%{left:30px}}@-webkit-keyframes width{0%{width:0}to{width:100%}}@keyframes width{0%{width:0}to{width:100%}}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative;direction:ltr}.noUi-base{width:100%;height:100%;position:relative;z-index:1}.noUi-connect{position:absolute;right:0;top:0;left:0;bottom:0}.noUi-origin{position:absolute;height:0;width:0}.noUi-handle{position:relative;z-index:1}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:top .25s,right .25s,bottom .25s,left .25s;transition:top .25s,right .25s,bottom .25s,left .25s}.noUi-state-drag *{cursor:inherit!important}.noUi-handle-touch-area{position:relative;width:44px;height:44px;left:-15px;top:-15px}.noUi-base,.noUi-handle{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.noUi-target{background:#cdcdcd}.noUi-connect{background:#26a69a;-webkit-transition:background 450ms;transition:background 450ms}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #d9d9d9;border-radius:3px;background:#fff;cursor:default;-webkit-box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb}.noUi-active{-webkit-box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:after,.noUi-handle:before{display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{width:14px;height:1px;left:6px;top:17px}[disabled] .noUi-connect{background:#b8b8b8}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{-webkit-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#ccc}.noUi-marker-large,.noUi-marker-sub{background:#aaa}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);padding-left:25px}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid transparent;border-radius:3px;background:#fff;padding:5px;text-align:center}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-target{border:0;border-radius:0}.noUi-horizontal{height:3px}.noUi-vertical{height:100%;width:3px}.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{-webkit-box-shadow:none;box-shadow:none;border:0;left:-5px;-webkit-transition:width .2s cubic-bezier(.215,.61,.355,1),height .2s cubic-bezier(.215,.61,.355,1),left .2s cubic-bezier(.215,.61,.355,1),top .2s cubic-bezier(.215,.61,.355,1);transition:width .2s cubic-bezier(.215,.61,.355,1),height .2s cubic-bezier(.215,.61,.355,1),left .2s cubic-bezier(.215,.61,.355,1),top .2s cubic-bezier(.215,.61,.355,1)}.noUi-vertical .noUi-handle{width:15px;height:15px;border-radius:50%;background-color:#26a69a}.noUi-handle:after,.noUi-handle:before{content:none}.noUi-tooltip span{width:100%;position:absolute;top:6px;left:-1px;-webkit-transition:opacity .25s cubic-bezier(.215,.61,.355,1);transition:opacity .25s cubic-bezier(.215,.61,.355,1)}.noUi-horizontal .noUi-tooltip span{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.noUi-vertical .noUi-tooltip span{width:100%;text-align:center;color:#fff;font-size:12px;-webkit-transform:rotate(135deg);transform:rotate(135deg);opacity:0;position:absolute;top:7px;left:-1px;-webkit-transition:opacity .25s cubic-bezier(.215,.61,.355,1);transition:opacity .25s cubic-bezier(.215,.61,.355,1)}.noUi-target.noUi-vertical .noUi-tooltip{position:absolute;height:30px;width:30px;top:-17px;left:-2px;background-color:#26a69a;border-radius:50%;-webkit-transition:border-radius .25s cubic-bezier(.215,.61,.355,1),-webkit-transform .25s cubic-bezier(.215,.61,.355,1);transition:border-radius .25s cubic-bezier(.215,.61,.355,1),transform .25s cubic-bezier(.215,.61,.355,1);transition:border-radius .25s cubic-bezier(.215,.61,.355,1),transform .25s cubic-bezier(.215,.61,.355,1),-webkit-transform .25s cubic-bezier(.215,.61,.355,1);-webkit-transform:scale(.5) rotate(-45deg);transform:scale(.5) rotate(-45deg);-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.noUi-target.noUi-vertical .noUi-active .noUi-tooltip{border-radius:15px 15px 15px 0;-webkit-transform:rotate(-135deg) translate(35px,-10px);transform:rotate(-135deg) translate(35px,-10px)}.noUi-horizontal .noUi-active .noUi-tooltip span,.noUi-vertical .noUi-active .noUi-tooltip span{opacity:1}body{min-height:100vh}main{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.debug_dump{background:#f5f2f0;border:solid 1px rgba(51,51,51,.12);clear:both;float:left;margin-top:45px;overflow:auto;padding:12px 7px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:5px}.main-nav{background-color:#2d2d2d;color:#666;padding:0;margin:0;text-transform:uppercase}.main-nav ul a:hover{background-color:rgba(0,0,0,.2);color:#2ecc71}.brand-logo{height:56px}.brand-logo img{margin-left:3px;margin-top:7px;width:130px}.message-item{padding:5px;margin:0;border-bottom:1px solid #e0e0e0}.message-item .collapsible-icon{margin-top:8px}.message-item span{font-size:.8rem;font-weight:600;height:42px;line-height:42px;padding:0}.message-item a{padding:0}.message-item a:hover{background:0 0}.message-item a i{margin-top:12px;height:20px}.message-item a i:hover{color:#00c853;font-weight:bolder}.message-item p{margin:0}.default{border:1px solid #ccc}.success{background-color:#00c853}.danger{background-color:#f44336}.danger:hover{background-color:#fc6665}.delete{position:absolute;top:-19px;right:-9px}.delete:hover{background-color:#ddd}.html p strong,.prod-html p strong,.row-reset,.ttabs__cont p strong{margin-bottom:0}.separator.up{margin-top:30px}.separator.down{margin-bottom:30px}.center-pading{padding:5px}.input-field .select-wrapper.invalid{border-bottom:0}.input-field .select-wrapper.invalid input.select-dropdown{border-bottom:1px solid #f44336;-webkit-box-shadow:0 1px 0 0 #f44336;box-shadow:0 1px 0 0 #f44336}.input-field .invalid[type=checkbox]+label:before{border:3px solid #f44336;background:0 0}.input-field .invalid[type=checkbox]:checked+label:before{border-top:3px solid transparent;border-left:3px solid transparent}.modal{padding:0}.modal-header{background-color:#484848;border-bottom:solid 1px #ecf0f1;color:#fff;float:left;margin-bottom:20px;padding:20px 35px;width:100%}.modal-header .title{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-header .title span{margin-left:10px}#footer-match{background-color:#333;color:#999;margin-top:0}#footer-match .footer-match-copyright{background-color:#202020;color:#999}footer div a,footer div a:hover{color:#999;text-decoration:none;-webkit-tap-highlight-color:transparent}footer div a:hover{color:#2ecc71}@media only screen and (max-width:600px){.card.sticky-action .card-reveal{z-index:1;padding-bottom:100px}.brand-logo img{margin-left:0;margin-top:5px;width:115px}}.btn-flat.disabled,.btn.disabled,.btn[disabled],.disabled.btn-large,[disabled].btn-large{background-color:#e6e6e6;background-image:none;border:0;color:#333;cursor:not-allowed;filter:alpha(opacity=40);opacity:.4;-webkit-box-shadow:none;box-shadow:none}.collapsible-body,nav .dropdown-content li>span{padding:0}.collapsible-body fieldset{margin:2px}.noUi-connect,.noUi-horizontal .noUi-handle{background:#2ecc71}.noUi-target.noUi-horizontal .noUi-tooltip{background-color:#2ecc71}.img-button{float:left;padding:0 20px}.img-button:hover i{color:#4caf50}.img-button i{font-size:2rem}.progrex{background-color:#f5f5f5;border-radius:4px;height:20px;overflow:hidden;margin-bottom:20px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progrex-bar{background-color:#337ab7;color:#fff;float:left;height:100%;font-size:12px;line-height:20px;text-align:center;width:0;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progrex-bar-striped{background-image:-webkit-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-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}.progrex-bar.active{-webkit-animation:progrex-bar-stripes 2s linear infinite;animation:progrex-bar-stripes 2s linear infinite}.progrex-bar-success{background-color:#5cb85c}.progrex-bar-info{background-color:#5bc0de}.progrex-bar-warning{background-color:#f0ad4e}.progrex-bar-danger{background-color:#d9534f}#card-alert i,nav ul li{position:relative}nav .dropdown-content{top:64px!important;right:0;min-width:180px;left:auto!important;border:0}nav .dropdown-content.messages{width:250px!important}nav.main-nav{text-transform:uppercase}nav.main-nav ul a:hover{background-color:rgba(255,255,255,.1);color:#2ecc71}nav.main-nav ul a:hover .counts{color:#fff}.card,body.no-scroll,html.no-scroll{overflow:hidden}#card-alert .card .card-content{padding:20px 40px 20px 20px}#card-alert i{font-size:20px;top:2px}#card-alert button{background:0 0;border:0;color:#fff;font-size:20px;position:absolute;right:10px;top:15px}.flex-grid{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:start;align-content:flex-start}.row .flex-grid .flex-item{margin-left:0}#flash-messages{left:0;margin-top:64px;position:fixed;top:0;width:100%;z-index:999}.counts,p{line-height:20px}.counts{height:20px;width:20px;position:absolute;z-index:5;text-align:center;font-size:11px;top:10px;right:10px;background:#ff0057;display:block;border-radius:10px;padding:0}.errors_block{background-color:#f2dede;border:2px solid #eed3d7;border-radius:2px;color:#f44336;margin:0 0 15px;padding:8px 20px;text-shadow:0 1px 0 rgba(255,255,255,.5)}#lg-counter,.errors_block ul{font-size:16px}p{color:#222;font-size:14px}.no-padding{padding:0}.bold,.errors_block span{font-weight:700}.bolder{font-weight:bolder}.actions{text-align:right}label abbr{border-bottom:0!important;color:red;text-decoration:none}swiper-pagination-bullet .swiper-container{margin:0 auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.swiper-slide,.swiper-wrapper{width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}.swiper-wrapper{z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.swiper-container-multirow>.swiper-wrapper{-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-ms-flex-negative:0;flex-shrink:0}.swiper-invisible-blank-slide{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:linear-gradient(to left,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:linear-gradient(to right,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:linear-gradient(to top,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:linear-gradient(to bottom,rgba(0,0,0,.5),transparent)}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:center;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:0;cursor:auto;pointer-events:none}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:.3s opacity;transition:.3s opacity;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.s,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:0;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:.2s transform,.2s top;transition:.2s transform,.2s top;-webkit-transition:.2s transform,.2s top,.2s -webkit-transform;transition:.2s transform,.2s top,.2s -webkit-transform}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 12px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s transform,.2s left;transition:.2s transform,.2s left;-webkit-transition:.2s transform,.2s left,.2s -webkit-transform;transition:.2s transform,.2s left,.2s -webkit-transform}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:.2s transform,.2s right;transition:.2s transform,.2s right;-webkit-transition:.2s transform,.2s right,.2s -webkit-transform;transition:.2s transform,.2s right,.2s -webkit-transform}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar{width:100%;height:4px;left:0;top:0}.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill,.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:rgba(255,255,255,.25)}.swiper-pagination-black .swiper-pagination-bullet-active,.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0,0,0,.25)}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12,end) infinite;animation:swiper-preloader-spin 1s steps(12,end) infinite}.swiper-lazy-preloader:after{display:block;content:'';width:100%;height:100%;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube,.swiper-container-flip{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:auto;right:0;-webkit-transform:none;transform:none}.lg-sub-html,.lg-toolbar{background-color:rgba(0,0,0,.45)}@font-face{font-family:lg;src:url(../fonts/lg.eot?n1z373);src:url(../fonts/lg.eot?#iefixn1z373) format("embedded-opentype"),url(../fonts/lg.woff?n1z373) format("woff"),url(../fonts/lg.ttf?n1z373) format("truetype"),url(../fonts/lg.svg?n1z373#lg) format("svg");font-weight:400;font-style:normal}.lg-icon{font-family:lg;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lg-actions .lg-next,.lg-actions .lg-prev{background-color:rgba(0,0,0,.45);border-radius:2px;color:#999;cursor:pointer;display:block;font-size:22px;margin-top:-10px;padding:8px 10px 9px;position:absolute;top:50%;z-index:1080;border:0;outline:0}.lg-actions .lg-next.disabled,.lg-actions .lg-prev.disabled{pointer-events:none;opacity:.5}.lg-actions .lg-next:hover,.lg-actions .lg-prev:hover{color:#fff}.lg-actions .lg-next{right:20px}.lg-actions .lg-next:before{content:"\e095"}.lg-actions .lg-prev{left:20px}.lg-actions .lg-prev:after{content:"\e094"}.lg-outer.lg-right-end .lg-object{-webkit-animation:lg-right-end .3s;animation:lg-right-end .3s;position:relative}.lg-outer.lg-left-end .lg-object{-webkit-animation:lg-left-end .3s;animation:lg-left-end .3s;position:relative}.lg-toolbar{z-index:1082;left:0;position:absolute;top:0;width:100%}.lg-toolbar .lg-icon{color:#999;cursor:pointer;float:right;font-size:24px;height:47px;line-height:27px;padding:10px 0;text-align:center;width:50px;text-decoration:none!important;outline:0;-webkit-transition:color .2s linear;transition:color .2s linear}.lg-toolbar .lg-icon:hover{color:#fff}.lg-toolbar .lg-close:after{content:"\e070"}.lg-toolbar .lg-download:after{content:"\e0f2"}.lg-sub-html{bottom:0;color:#eee;font-size:16px;left:0;padding:10px 40px;position:fixed;right:0;text-align:center;z-index:1080}.lg-sub-html h4{margin:0;font-size:13px;font-weight:700}.lg-sub-html p{font-size:12px;margin:5px 0 0}#lg-counter{color:#999;display:inline-block;padding-left:20px;padding-top:12px;vertical-align:middle}.lg-next,.lg-prev,.lg-toolbar{opacity:1;-webkit-transition:opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear,-webkit-transform .35s cubic-bezier(0,0,.25,1) 0s;transition:transform .35s cubic-bezier(0,0,.25,1) 0s,opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear;transition:transform .35s cubic-bezier(0,0,.25,1) 0s,opacity .35s cubic-bezier(0,0,.25,1) 0s,color .2s linear,-webkit-transform .35s cubic-bezier(0,0,.25,1) 0s}.lg-hide-items .lg-prev{opacity:0;-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}.lg-hide-items .lg-next{opacity:0;-webkit-transform:translate3d(10px,0,0);transform:translate3d(10px,0,0)}.lg-hide-items .lg-toolbar{opacity:0;-webkit-transform:translate3d(0,-10px,0);transform:translate3d(0,-10px,0)}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-object{-webkit-transform:scale3d(.5,.5,.5);transform:scale3d(.5,.5,.5);opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0,0,.25,1),-webkit-transform 250ms cubic-bezier(0,0,.25,1) 0s!important;transition:transform 250ms cubic-bezier(0,0,.25,1) 0s,opacity 250ms cubic-bezier(0,0,.25,1)!important;transition:transform 250ms cubic-bezier(0,0,.25,1) 0s,opacity 250ms cubic-bezier(0,0,.25,1),-webkit-transform 250ms cubic-bezier(0,0,.25,1) 0s!important;-webkit-transform-origin:50% 50%;transform-origin:50% 50%}body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1);opacity:1}.lg-outer .lg-thumb-outer{background-color:#0d0a0a;bottom:0;position:absolute;width:100%;z-index:1080;max-height:350px;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1) 0s;transition:transform .25s cubic-bezier(0,0,.25,1) 0s;transition:transform .25s cubic-bezier(0,0,.25,1) 0s,-webkit-transform .25s cubic-bezier(0,0,.25,1) 0s}.lg-outer .lg-thumb-outer.lg-grab .lg-thumb-item,.lg-outer.lg-grab img.lg-object{cursor:-webkit-grab;cursor:-o-grab;cursor:-ms-grab;cursor:grab}.lg-outer .lg-thumb-outer.lg-grabbing .lg-thumb-item,.lg-outer.lg-grabbing img.lg-object{cursor:move;cursor:-webkit-grabbing;cursor:-o-grabbing;cursor:-ms-grabbing;cursor:grabbing}.lg-outer .lg-thumb-outer.lg-dragging .lg-thumb{-webkit-transition-duration:0s!important;transition-duration:0s!important}.lg-outer .lg-item.lg-complete.lg-zoomable .lg-img-wrap,.lg-outer.lg-thumb-open .lg-thumb-outer{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.lg-outer .lg-thumb{padding:10px 0;height:100%;margin-bottom:-5px}.lg-outer .lg-thumb-item{cursor:pointer;float:left;overflow:hidden;height:100%;border:2px solid #fff;border-radius:4px;margin-bottom:5px}@media (min-width:1025px){.lg-outer .lg-thumb-item{-webkit-transition:border-color .25s ease;transition:border-color .25s ease}}.lg-outer .lg-thumb-item.active,.lg-outer .lg-thumb-item:hover{border-color:#a90707}.lg-outer .lg-thumb-item img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.lg-outer.lg-has-thumb .lg-item{padding-bottom:120px}.lg-outer.lg-can-toggle .lg-item{padding-bottom:0}.lg-outer.lg-pull-caption-up .lg-sub-html{-webkit-transition:bottom .25s ease;transition:bottom .25s ease}.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html{bottom:100px}.lg-outer .lg-toogle-thumb{background-color:#0d0a0a;border-radius:2px 2px 0 0;color:#999;cursor:pointer;font-size:24px;height:39px;line-height:27px;padding:5px 0;position:absolute;right:20px;text-align:center;top:-39px;width:50px}.lg-outer .lg-toogle-thumb:hover,.lg-outer.lg-dropdown-active #lg-share{color:#fff}.lg-outer .lg-toogle-thumb:after{content:"\e1ff"}.lg-outer .lg-video-cont{display:inline-block;vertical-align:middle;max-width:1140px;max-height:100%;width:100%;padding:0 5px}.lg-outer .lg-video{width:100%;height:0;padding-bottom:56.25%;overflow:hidden;position:relative}.lg-outer .lg-video .lg-object{display:inline-block;position:absolute;top:0;left:0;width:100%!important;height:100%!important}.lg-outer .lg-video .lg-video-play{width:84px;height:59px;position:absolute;left:50%;top:50%;margin-left:-42px;margin-top:-30px;z-index:1080;cursor:pointer}.lg-outer .lg-has-iframe .lg-video{-webkit-overflow-scrolling:touch;overflow:auto}.lg-outer .lg-has-vimeo .lg-video-play{background:url(../img/general/vimeo-play.png) no-repeat}.lg-outer .lg-has-vimeo:hover .lg-video-play{background:url(../img/general/vimeo-play.png) 0 -58px no-repeat}.lg-outer .lg-has-html5 .lg-video-play{background:url(../img/general/video-play.png) no-repeat;height:64px;margin-left:-32px;margin-top:-32px;width:64px;opacity:.8}.lg-outer .lg-has-html5:hover .lg-video-play{opacity:1}.lg-outer .lg-has-youtube .lg-video-play{background:url(../img/general/youtube-play.png) no-repeat}.lg-outer .lg-has-youtube:hover .lg-video-play{background:url(../img/general/youtube-play.png) 0 -60px no-repeat}.lg-outer .lg-video-object{width:100%!important;height:100%!important;position:absolute;top:0;left:0}.lg-outer .lg-has-video .lg-video-object{visibility:hidden}.lg-outer .lg-has-video.lg-video-playing .lg-object,.lg-outer .lg-has-video.lg-video-playing .lg-video-play{display:none}.lg-outer .lg-has-video.lg-video-playing .lg-video-object{visibility:visible}.lg-progress-bar{background-color:#333;height:5px;left:0;position:absolute;top:0;width:100%;z-index:1083;opacity:0;-webkit-transition:opacity 80ms ease 0s;transition:opacity 80ms ease 0s}.lg-progress-bar .lg-progress{background-color:#a90707;height:5px;width:0}.lg-progress-bar.lg-start .lg-progress{width:100%}.lg-show-autoplay .lg-progress-bar{opacity:1}.lg-autoplay-button:after{content:"\e01d"}.lg-show-autoplay .lg-autoplay-button:after{content:"\e01a"}.lg-outer.lg-css3.lg-zoom-dragging .lg-item.lg-complete.lg-zoomable .lg-image,.lg-outer.lg-css3.lg-zoom-dragging .lg-item.lg-complete.lg-zoomable .lg-img-wrap{-webkit-transition-duration:0s;transition-duration:0s}.lg-outer.lg-use-transition-for-zoom .lg-item.lg-complete.lg-zoomable .lg-img-wrap{-webkit-transition:-webkit-transform .3s cubic-bezier(0,0,.25,1) 0s;transition:transform .3s cubic-bezier(0,0,.25,1) 0s;transition:transform .3s cubic-bezier(0,0,.25,1) 0s,-webkit-transform .3s cubic-bezier(0,0,.25,1) 0s}.lg-outer.lg-use-left-for-zoom .lg-item.lg-complete.lg-zoomable .lg-img-wrap{-webkit-transition:left .3s cubic-bezier(0,0,.25,1) 0s,top .3s cubic-bezier(0,0,.25,1) 0s;transition:left .3s cubic-bezier(0,0,.25,1) 0s,top .3s cubic-bezier(0,0,.25,1) 0s}.lg-outer .lg-item.lg-complete.lg-zoomable .lg-img-wrap{-webkit-backface-visibility:hidden;backface-visibility:hidden}.lg-outer .lg-item.lg-complete.lg-zoomable .lg-image{-webkit-transform:scale3d(1,1,1);transform:scale3d(1,1,1);-webkit-transition:opacity .15s,-webkit-transform .3s cubic-bezier(0,0,.25,1) 0s!important;transition:transform .3s cubic-bezier(0,0,.25,1) 0s,opacity .15s!important;transition:transform .3s cubic-bezier(0,0,.25,1) 0s,opacity .15s,-webkit-transform .3s cubic-bezier(0,0,.25,1) 0s!important;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-backface-visibility:hidden;backface-visibility:hidden}#lg-zoom-in:after{content:"\e311"}#lg-actual-size{font-size:20px}#lg-actual-size:after{content:"\e033"}#lg-zoom-out{opacity:.5;pointer-events:none}#lg-zoom-out:after{content:"\e312"}.lg-zoomed #lg-zoom-out{opacity:1;pointer-events:auto}.lg-outer .lg-pager-outer{bottom:60px;left:0;position:absolute;right:0;text-align:center;z-index:1080;height:10px}.lg-outer .lg-pager-outer.lg-pager-hover .lg-pager-cont{overflow:visible}.lg-outer .lg-pager-cont{cursor:pointer;display:inline-block;overflow:hidden;position:relative;vertical-align:top;margin:0 5px}.lg-outer .lg-pager-cont:hover .lg-pager-thumb-cont{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.lg-outer .lg-pager-cont.lg-pager-active .lg-pager{-webkit-box-shadow:0 0 0 2px #fff inset;box-shadow:0 0 0 2px #fff inset}.lg-outer .lg-pager-thumb-cont{background-color:#fff;color:#fff;bottom:100%;height:83px;left:0;margin-bottom:20px;margin-left:-60px;opacity:0;padding:5px;position:absolute;width:120px;border-radius:3px;-webkit-transition:opacity .15s ease 0s,-webkit-transform .15s ease 0s;transition:opacity .15s ease 0s,transform .15s ease 0s;transition:opacity .15s ease 0s,transform .15s ease 0s,-webkit-transform .15s ease 0s;-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0)}.lg-outer .lg-pager-thumb-cont img{width:100%;height:100%}.lg-outer .lg-pager{background-color:rgba(255,255,255,.5);border-radius:50%;-webkit-box-shadow:0 0 0 8px rgba(255,255,255,.7) inset;box-shadow:0 0 0 8px rgba(255,255,255,.7) inset;display:block;height:12px;-webkit-transition:box-shadow .3s ease 0s;-webkit-transition:-webkit-box-shadow .3s ease 0s;transition:box-shadow .3s ease 0s;transition:box-shadow .3s ease 0s,-webkit-box-shadow .3s ease 0s;width:12px}.lg-outer .lg-pager:focus,.lg-outer .lg-pager:hover{-webkit-box-shadow:0 0 0 8px #fff inset;box-shadow:0 0 0 8px #fff inset}.lg-outer .lg-caret{border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px dashed;bottom:-10px;display:inline-block;height:0;left:50%;margin-left:-5px;position:absolute;vertical-align:middle;width:0}.lg-fullscreen:after{content:"\e20c"}.lg-fullscreen-on .lg-fullscreen:after{content:"\e20d"}.lg-outer #lg-dropdown-overlay{background-color:rgba(0,0,0,.25);bottom:0;cursor:default;left:0;position:fixed;right:0;top:0;z-index:1081;opacity:0;visibility:hidden;-webkit-transition:visibility 0s linear .18s,opacity .18s linear 0s;transition:visibility 0s linear .18s,opacity .18s linear 0s}.lg-outer.lg-dropdown-active #lg-dropdown-overlay,.lg-outer.lg-dropdown-active .lg-dropdown{-webkit-transition-delay:0s;transition-delay:0s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1;visibility:visible}.lg-outer .lg-dropdown{background-color:#fff;border-radius:2px;font-size:14px;list-style-type:none;margin:0;padding:10px 0;position:absolute;right:0;text-align:left;top:50px;opacity:0;visibility:hidden;-webkit-transform:translate3d(0,5px,0);transform:translate3d(0,5px,0);-webkit-transition:visibility 0s linear .5s,opacity .18s linear 0s,-webkit-transform .18s linear 0s;transition:transform .18s linear 0s,visibility 0s linear .5s,opacity .18s linear 0s;transition:transform .18s linear 0s,visibility 0s linear .5s,opacity .18s linear 0s,-webkit-transform .18s linear 0s}.lg-outer .lg-dropdown:after{content:"";display:block;height:0;width:0;position:absolute;border:8px solid transparent;border-bottom-color:#fff;right:16px;top:-16px}.lg-outer .lg-dropdown>li:last-child{margin-bottom:0}.lg-outer .lg-dropdown>li:hover .lg-icon,.lg-outer .lg-dropdown>li:hover a{color:#333}.lg-outer .lg-dropdown a{color:#333;display:block;white-space:pre;padding:4px 12px;font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px}.lg-outer .lg-dropdown a:hover{background-color:rgba(0,0,0,.07)}.lg-outer .lg-dropdown .lg-dropdown-text{display:inline-block;line-height:1;margin-top:-3px;vertical-align:middle}.lg-outer .lg-dropdown .lg-icon{color:#333;display:inline-block;float:none;font-size:20px;height:auto;line-height:1;margin-right:8px;padding:0;vertical-align:middle;width:auto}.lg-outer,.lg-outer .lg,.lg-outer .lg-inner{width:100%;height:100%}.lg-outer #lg-share{position:relative}.lg-outer #lg-share:after{content:"\e80d"}.lg-outer #lg-share-facebook .lg-icon{color:#3b5998}.lg-outer #lg-share-facebook .lg-icon:after{content:"\e901"}.lg-outer #lg-share-twitter .lg-icon{color:#00aced}.lg-outer #lg-share-twitter .lg-icon:after{content:"\e904"}.lg-outer #lg-share-googleplus .lg-icon{color:#dd4b39}.lg-outer #lg-share-googleplus .lg-icon:after{content:"\e902"}.lg-outer #lg-share-pinterest .lg-icon{color:#cb2027}.lg-outer #lg-share-pinterest .lg-icon:after{content:"\e903"}.lg-group:after{content:"";display:table;clear:both}.lg-outer{position:fixed;top:0;left:0;z-index:1050;text-align:left;opacity:0;-webkit-transition:opacity .15s ease 0s;transition:opacity .15s ease 0s}.lg-outer *{-webkit-box-sizing:border-box;box-sizing:border-box}.lg-outer.lg-visible{opacity:1}.lg-outer.lg-css3 .lg-item.lg-current,.lg-outer.lg-css3 .lg-item.lg-next-slide,.lg-outer.lg-css3 .lg-item.lg-prev-slide{-webkit-transition-duration:inherit!important;transition-duration:inherit!important;-webkit-transition-timing-function:inherit!important;transition-timing-function:inherit!important}.lg-outer.lg-css3.lg-dragging .lg-item.lg-current,.lg-outer.lg-css3.lg-dragging .lg-item.lg-next-slide,.lg-outer.lg-css3.lg-dragging .lg-item.lg-prev-slide{-webkit-transition-duration:0s!important;transition-duration:0s!important;opacity:1}.lg-outer .lg{position:relative;overflow:hidden;margin-left:auto;margin-right:auto;max-width:100%;max-height:100%}.lg-outer .lg-inner{position:absolute;left:0;top:0;white-space:nowrap}.lg-outer .lg-item{background:url(../img/general/loading.gif) center center no-repeat;display:none!important}.lg-outer.lg-css .lg-current,.lg-outer.lg-css3 .lg-current,.lg-outer.lg-css3 .lg-next-slide,.lg-outer.lg-css3 .lg-prev-slide{display:inline-block!important}.lg-outer .lg-img-wrap{display:inline-block;text-align:center;width:100%;height:100%}.lg-outer .lg-item{text-align:center;position:absolute;width:100%;height:100%}.lg-outer .lg-img-wrap:before,.lg-outer .lg-item:before{content:"";display:inline-block;height:50%;width:1px;margin-right:-1px}.lg-outer .lg-img-wrap{position:absolute;padding:0 5px;left:0;right:0;top:0;bottom:0}.lg-outer .lg-item.lg-complete{background-image:none}.lg-outer .lg-item.lg-current{z-index:1060}.lg-outer .lg-image{display:inline-block;vertical-align:middle;max-width:100%;max-height:100%;width:auto!important;height:auto!important}.lg-backdrop,.lg-outer.lg-show-after-load .lg-item .lg-object,.lg-outer.lg-show-after-load .lg-item .lg-video-play{opacity:0;-webkit-transition:opacity .15s ease 0s;transition:opacity .15s ease 0s}.lg-outer .lg-empty-html,.lg-outer.lg-hide-download #lg-download{display:none}.lg-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1040;background-color:#000}.lg-backdrop.in,.lg-css3.lg-fade .lg-item.lg-current,.lg-outer.lg-show-after-load .lg-item.lg-complete .lg-object,.lg-outer.lg-show-after-load .lg-item.lg-complete .lg-video-play{opacity:1}.lg-css3.lg-no-trans .lg-current,.lg-css3.lg-no-trans .lg-next-slide,.lg-css3.lg-no-trans .lg-prev-slide{-webkit-transition:none 0s ease 0s!important;transition:none 0s ease 0s!important}.lg-css3.lg-use-css3 .lg-item,.lg-css3.lg-use-left .lg-item{-webkit-backface-visibility:hidden;backface-visibility:hidden}.lg-css3.lg-fade .lg-item.lg-current,.lg-css3.lg-fade .lg-item.lg-next-slide,.lg-css3.lg-fade .lg-item.lg-prev-slide{-webkit-transition:opacity .1s ease 0s;transition:opacity .1s ease 0s}.lg-css3.lg-fade .lg-item,.lg-css3.lg-slide.lg-use-css3 .lg-item{opacity:0}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current,.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide,.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide{-webkit-transition:opacity .1s ease 0s,-webkit-transform 1s cubic-bezier(0,0,.25,1) 0s;transition:transform 1s cubic-bezier(0,0,.25,1) 0s,opacity .1s ease 0s;transition:transform 1s cubic-bezier(0,0,.25,1) 0s,opacity .1s ease 0s,-webkit-transform 1s cubic-bezier(0,0,.25,1) 0s}.lg-css3.lg-slide.lg-use-left .lg-item{opacity:0;position:absolute;left:0}.lg-css3.lg-slide.lg-use-left .lg-item.lg-prev-slide{left:-100%}.lg-css3.lg-slide.lg-use-left .lg-item.lg-next-slide{left:100%}.lg-css3.lg-slide.lg-use-left .lg-item.lg-current{left:0;opacity:1}.lg-css3.lg-slide.lg-use-left .lg-item.lg-current,.lg-css3.lg-slide.lg-use-left .lg-item.lg-next-slide,.lg-css3.lg-slide.lg-use-left .lg-item.lg-prev-slide{-webkit-transition:left 1s cubic-bezier(0,0,.25,1) 0s,opacity .1s ease 0s;transition:left 1s cubic-bezier(0,0,.25,1) 0s,opacity .1s ease 0s}.nice-select{position:relative;padding-left:15px;width:auto}.nice-select:hover{border-color:#dbdbdb}.nice-select.open,.nice-select:active,.nice-select:focus{border-color:#999}.nice-select:after{border-bottom:2px solid #999;border-right:2px solid #999;content:'';display:block;height:5px;margin-top:-4px;pointer-events:none;position:absolute;right:12px;top:50%;-webkit-transform-origin:66% 66%;transform-origin:66% 66%;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;width:5px}.nice-select.open:after{-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.nice-select.open .list{opacity:1;pointer-events:auto;-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}.nice-select.disabled{border-color:#ededed;color:#999;pointer-events:none}.nice-select.disabled:after{border-color:#ccc}.nice-select.wide{width:100%}.nice-select.wide .list{left:0!important;right:0!important}.nice-select.right{float:right}.nice-select.right .list{left:auto;right:0}.nice-select.small{font-size:12px;height:36px;line-height:34px}.nice-select.small:after{height:4px;width:4px}.nice-select.small .option{line-height:34px;min-height:34px}.nice-select .list{background-color:#fff;-webkit-box-shadow:0 0 0 1px rgba(68,68,68,.11);box-shadow:0 0 0 1px rgba(68,68,68,.11);-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:4px;opacity:0;padding:0;pointer-events:none;position:absolute;top:100%;left:0;-webkit-transition:all .2s;transition:all .2s;z-index:9}.nice-select .list:hover .option:not(:hover){background-color:transparent!important}.nice-select .option{cursor:pointer;font-weight:400;line-height:40px;list-style:none;min-height:40px;outline:0;padding-left:18px;padding-right:29px;text-align:left;-webkit-transition:all .2s;transition:all .2s}.nice-select .option.focus,.nice-select .option.selected.focus,.nice-select .option:hover{background-color:#f6f6f6}.nice-select .option.selected{font-weight:700}.nice-select .option.disabled{background-color:transparent;color:#999;cursor:default}.no-csspointerevents .nice-select .list,.noUi-tooltip span{display:none}.no-csspointerevents .nice-select.open .list{display:block}.starability-result,.starability-result:after{height:13px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII=)}.starability-result{position:relative;width:150px;font-size:.1em;color:transparent}.starability-result:after{content:' ';position:absolute;left:0;background-position:0 -13px}.starability-result[data-rating="5"]::after{width:65px;background-size:13px auto}.starability-result[data-rating="4"]::after{width:52px;background-size:13px auto}.starability-result[data-rating="3"]::after{width:39px;background-size:13px auto}.starability-result[data-rating="2"]::after{width:26px;background-size:13px auto}.starability-basic>label,.starability-result[data-rating="1"]::after{width:13px;background-size:13px auto}@media screen and (-webkit-min-device-pixel-ratio:2),screen and (min-resolution:192dpi){.starability-result,.starability-result:after{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAB4CAMAAACZ62E6AAABAlBMVEUAAACZmZmampr2vSObm5v/yiufn5+ampr1viP1viSZmZn2viOZmZmampqampr2viSampqampqcnJz5vyScnJz3wSf/wyn/xiujo6Oqqqr/0C/1vSOampr2viP2viOampr2viP2vST2viOampqampqampr1vyP3viSampr2vyT4vyX3viSbm5ubm5v5wCT8xSmgoKCampqampr3vyb2wiWenp72viOampqZmZmampr2viP2viP1viSampqbm5v2vyT3viObm5v4vyadnZ34wSSbm5v2viSZmZn2viP2vST2viP2viT1viOZmZn2viT2viX3viT3vyb2vyOZmZn1vSOZmZlNN+fKAAAAVHRSTlMA9uz4PQwS8O7r5+fTw4yMelw2MB0dFRELBgbS+/Hfu7uxqKWdg4N7ZmZMPi8pKRgPs0w7Nhb14drKw6Gck21tXkNDIyMZ1rDLycTBtaqVknlfV0sGP8ZwAAADW0lEQVRYw9zWvYqDQBSG4TPDoCAqKhYKQgoVLFaIgZCkiCBBUqVazv3fyu4aEXWdM85Uy779A+LP58AfTQgw73AwtxFiZIwbxMbUfuB3H4b49YNfZrbGodoI52+cm9hH9sbZwwAXOFbo2zjDsSzWxnecuuvaM8MpdtbEPs7y9azF5phZWrjERaWOPdpLbB81cICrgv3W4mvMLbU6RmFQeA5u5HhFEEbHLdWLsMxvHJXxW16Goh+ZqPyny1Az5j79SsCJoWHsBNAxQ9sNF26bWFuMC8v1LY+mmeTadjaqtaNnnXoxWBcde1nNWnzdb68xrOqvu22/MTzuPutujpJ122NvluSb8tTWk85CclDZQwLS0oa2TQpEKacsJy0kSJaQOKJxROKKxhWJ7zS+k9ijsUdim8Y2ZWNUFBP4pMKfOv8onX9WrsI5gd3VVLXtatxcuU0znGUHCUAS2DgrS6mT6hTzrXEjfIZj5Dk2xKkihqm4wKlQfQRqalhUP9UHo3FIPAG/Et44JVLsDDf0JHmB3OEByOwZES8hSAsviGjBdh3ylh6plmMnW4IyAUVJWcE/76vTell1EIaiMBwIAcWBA9GC0lIdKFXQQUsHVVCklN7ojf3+z3JOxYqK2TH555+K6CJJQtRbr9XtDmCnjH0AX9Va8J+liIMvDtRsCk2pEs6hKVexR2g7KuDihwt5a9MfprY0fkLXU9ZmFLpoJolN6GXKWWfZx0tHCocwKJSxC22ItYUEjmBUJHFjfYz1xQxlfaLiZsBExq2IPtbkNbLtOwwuGgjTLkH43mYtSzam7+1Bsr3nm5uExBQUozEh9V7N7uvmwZcqdpm0C6vJW63bZEuXtbrV2zpDzhrpYLBWMnY1mjV7JWFtMio7zbWniWFxvHnWm1yGxXmOPXP+L3YV2ysjnNhaZNeMcHPvuL27BMnVMaujljBAYyje4niH4g2ONyh+4PiB4gOODyjWcKxh1gZBNoJjEY4R/BLhF4IDEQ4QPBoEoyxH4+bxrUsHyxwxQlg0WHXqYifVLmo67cKY/UtaXFxBV26TLjuHrkp8BPJTMij1xQejdkgO24nf7dBOCRcbzQuNOR9Qs64GzzrfQa8It2oFAA6Zrga9xEeq1KHmLUHIiCAWInsg1x/MLqkMsItF8QAAAABJRU5ErkJggg==);background-size:13px auto}}.starability-basic{display:block;position:relative;width:77px;min-height:13px;padding:0;border:0;background-size:13px auto}.starability-basic input{position:absolute!important;margin-right:-100%!important;opacity:0!important;background-size:13px auto}.starability-basic>label{z-index:1111;margin-right:3px;position:relative;display:inline-block;float:left;height:13px;font-size:.1em;color:transparent;cursor:pointer;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:0 -13px}.starability-basic>input:checked~label,.starability-basic>input:focus~label{background-position:0 0;background-size:13px auto}.starability-basic>input:checked+label,.starability-basic>input:focus+label{background-position:0 -13px;background-size:13px auto}.starability-basic>input[disabled]:hover+label{cursor:default;background-size:13px auto}.starability-basic>input:not([disabled]):hover~label{background-position:0 0;background-size:13px auto}.starability-basic>input:not([disabled]):hover+label{background-position:0 -13px;background-size:13px auto}.starability-basic>input:not([disabled]):hover+label::before{opacity:0;background-size:13px auto}.starability-basic>input:focus+label{background-size:13px auto}.starability-basic .starability-focus-ring{position:absolute;left:0;width:100%;height:13px;pointer-events:none;opacity:0;background-size:13px auto}.starability-basic>.input-no-rate:focus~.starability-focus-ring{opacity:1;background-size:13px auto}.starability-basic>label::before{content:'';position:absolute;display:block;height:13px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAMAAABGivqtAAAAxlBMVEUAAACZmZn2viTHuJ72viOampqampr1viSampr3vySampqdnZ34wiX1vSSampr1vSOZmZmampr1viT2vSOampr2viT2viSampr2viSampr2vyX4vyWbm5v3vSSdnZ32wSadnZ36wCWcnJyZmZn/wSr/2ySampr2vSP2viSZmZn2vSSZmZn2vST2viSampr2viSbm5ubm5uZmZn1vSSampqbm5v2vSWampqampr3vSf5wiT5vyagoKD/xCmkpKT/yCSZmZn1vSO4V2dEAAAAQHRSTlMA+vsG9fO6uqdgRSIi7+3q39XVqZWVgnJyX09HPDw1NTAwKRkYB+jh3L6+srKijY2Ef2lpYllZUU5CKigWFQ4Oneh1twAAAZlJREFUOMuV0mdzAiEQBmDgWq4YTWIvKRqT2Htv8P//VJCTGfYQZnw/3fJ4tyO76KE0m1b2fZu+U/pu4QGlA7N+Up5PIz9d+cmkbSrSNr9seT3GKeNYIyeO5j16S28exY5suK0U/QKmmeCCX6xs22hJLVkitMImxCvEs8EG3SCRCN/ViFPqnq5epIzZ07QJJvkM9Tkz1xnkmXbfSvR7f4H8AtXBkLGj74mMvjM1+VHZpAZ4LM4K/LBWEI9jwP71v1ZEQ6dyvQMf8A/1pmdZnKce/VH1iIsdte4U8VEtY23xOujxtFpWDgKbfjD2YeEhY0OzfjGeLyO/XfnNpAcmcjDwKOXRfU1IyiTRyEkaiz67pb9oJHJb9vVqKfgjLBPyF5Sq9T0KmSUhQmtiQrJGPHVi0DoSabj31G2gW3buHd0pY85lNdcCk8xlNDPXMuSyNiwl+theIb9C7RLIpKvviYy+M6H8qGwSAp6Is19+GP6KxwnggJ/kq6Jht5rnRQA4z9zyRRaXssvyqp5I6Vutv0vkpJaJtnjpz/8B19ytIayazLoAAAAASUVORK5CYII=);background-position:0 13px;pointer-events:none;opacity:0;background-size:13px auto}.starability-basic>label:nth-of-type(5)::before{width:52px;left:-52px;background-size:13px auto}.starability-basic>label:nth-of-type(4)::before{width:39px;left:-39px;background-size:13px auto}.starability-basic>label:nth-of-type(3)::before{width:26px;left:-26px;background-size:13px auto}.starability-basic>label:nth-of-type(2)::before{width:13px;left:-13px}.starability-basic>label:nth-of-type(1)::before{width:0;left:0}@media screen and (-webkit-min-device-pixel-ratio:2),screen and (min-resolution:192dpi){.starability-basic>label{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAB4CAMAAACZ62E6AAABAlBMVEUAAACZmZmampr2vSObm5v/yiufn5+ampr1viP1viSZmZn2viOZmZmampqampr2viSampqampqcnJz5vyScnJz3wSf/wyn/xiujo6Oqqqr/0C/1vSOampr2viP2viOampr2viP2vST2viOampqampqampr1vyP3viSampr2vyT4vyX3viSbm5ubm5v5wCT8xSmgoKCampqampr3vyb2wiWenp72viOampqZmZmampr2viP2viP1viSampqbm5v2vyT3viObm5v4vyadnZ34wSSbm5v2viSZmZn2viP2vST2viP2viT1viOZmZn2viT2viX3viT3vyb2vyOZmZn1vSOZmZlNN+fKAAAAVHRSTlMA9uz4PQwS8O7r5+fTw4yMelw2MB0dFRELBgbS+/Hfu7uxqKWdg4N7ZmZMPi8pKRgPs0w7Nhb14drKw6Gck21tXkNDIyMZ1rDLycTBtaqVknlfV0sGP8ZwAAADW0lEQVRYw9zWvYqDQBSG4TPDoCAqKhYKQgoVLFaIgZCkiCBBUqVazv3fyu4aEXWdM85Uy779A+LP58AfTQgw73AwtxFiZIwbxMbUfuB3H4b49YNfZrbGodoI52+cm9hH9sbZwwAXOFbo2zjDsSzWxnecuuvaM8MpdtbEPs7y9azF5phZWrjERaWOPdpLbB81cICrgv3W4mvMLbU6RmFQeA5u5HhFEEbHLdWLsMxvHJXxW16Goh+ZqPyny1Az5j79SsCJoWHsBNAxQ9sNF26bWFuMC8v1LY+mmeTadjaqtaNnnXoxWBcde1nNWnzdb68xrOqvu22/MTzuPutujpJ122NvluSb8tTWk85CclDZQwLS0oa2TQpEKacsJy0kSJaQOKJxROKKxhWJ7zS+k9ijsUdim8Y2ZWNUFBP4pMKfOv8onX9WrsI5gd3VVLXtatxcuU0znGUHCUAS2DgrS6mT6hTzrXEjfIZj5Dk2xKkihqm4wKlQfQRqalhUP9UHo3FIPAG/Et44JVLsDDf0JHmB3OEByOwZES8hSAsviGjBdh3ylh6plmMnW4IyAUVJWcE/76vTell1EIaiMBwIAcWBA9GC0lIdKFXQQUsHVVCklN7ojf3+z3JOxYqK2TH555+K6CJJQtRbr9XtDmCnjH0AX9Va8J+liIMvDtRsCk2pEs6hKVexR2g7KuDihwt5a9MfprY0fkLXU9ZmFLpoJolN6GXKWWfZx0tHCocwKJSxC22ItYUEjmBUJHFjfYz1xQxlfaLiZsBExq2IPtbkNbLtOwwuGgjTLkH43mYtSzam7+1Bsr3nm5uExBQUozEh9V7N7uvmwZcqdpm0C6vJW63bZEuXtbrV2zpDzhrpYLBWMnY1mjV7JWFtMio7zbWniWFxvHnWm1yGxXmOPXP+L3YV2ysjnNhaZNeMcHPvuL27BMnVMaujljBAYyje4niH4g2ONyh+4PiB4gOODyjWcKxh1gZBNoJjEY4R/BLhF4IDEQ4QPBoEoyxH4+bxrUsHyxwxQlg0WHXqYifVLmo67cKY/UtaXFxBV26TLjuHrkp8BPJTMij1xQejdkgO24nf7dBOCRcbzQuNOR9Qs64GzzrfQa8It2oFAA6Zrga9xEeq1KHmLUHIiCAWInsg1x/MLqkMsItF8QAAAABJRU5ErkJggg==);background-size:13px auto}}@media screen and (-ms-high-contrast:active){.starability-basic{width:auto}.starability-basic>input{position:static;margin-right:0;opacity:1}.starability-basic .input-no-rate,.starability-basic>label::after,.starability-basic>label::before{display:none}.starability-basic>label{display:inline;float:none;width:auto;height:auto;font-size:1em;color:inherit;background:0 0}}@font-face{font-family:"Comfortaa";src:url(../fonts/comf/comfortaa-light.eot);src:url(../fonts/comf/comfortaa-light.eot?#iefix) format("embedded-opentype"),url(../fonts/comf/comfortaa-light.woff) format("woff"),url(../fonts/comf/comfortaa-light.ttf) format("truetype"),url(../fonts/comf/comfortaa-light.svg?#webfont) format("svg");font-weight:300;font-style:normal}@font-face{font-family:"Comfortaa";src:url(../fonts/comf/comfortaa.eot);src:url(../fonts/comf/comfortaa.eot?#iefix) format("embedded-opentype"),url(../fonts/comf/comfortaa.woff) format("woff"),url(../fonts/comf/comfortaa.ttf) format("truetype"),url(../fonts/comf/comfortaa.svg?#webfont) format("svg");font-weight:400;font-style:normal}@font-face{font-family:"Comfortaa";src:url(../fonts/comf/comfortaa-medium.eot);src:url(../fonts/comf/comfortaa-medium.eot?#iefix) format("embedded-opentype"),url(../fonts/comf/comfortaa-medium.woff) format("woff"),url(../fonts/comf/comfortaa-medium.ttf) format("truetype"),url(../fonts/comf/comfortaa-medium.svg?#webfont) format("svg");font-weight:500;font-style:normal}@font-face{font-family:"Comfortaa";src:url(../fonts/comf/comfortaa-bold.eot);src:url(../fonts/comf/comfortaa-bold.eot?#iefix) format("embedded-opentype"),url(../fonts/comf/comfortaa-bold.woff) format("woff"),url(../fonts/comf/comfortaa-bold.ttf) format("truetype"),url(../fonts/comf/comfortaa-bold.svg?#webfont) format("svg");font-weight:700;font-style:normal}@font-face{font-family:"Playfair Display";src:url(../fonts/prai/playfairdisplay-regular.eot);src:url(../fonts/prai/playfairdisplay-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/prai/playfairdisplay-regular.woff) format("woff"),url(../fonts/prai/playfairdisplay-regular.ttf) format("truetype"),url(../fonts/prai/playfairdisplay-regular.svg?#webfont) format("svg");font-weight:400;font-style:normal}@font-face{font-family:"Playfair Display";src:url(../fonts/prai/playfairdisplay-italic.eot);src:url(../fonts/prai/playfairdisplay-italic.eot?#iefix) format("embedded-opentype"),url(../fonts/prai/playfairdisplay-italic.woff) format("woff"),url(../fonts/prai/playfairdisplay-italic.ttf) format("truetype"),url(../fonts/prai/playfairdisplay-italic.svg?#webfont) format("svg");font-weight:400;font-style:italic}@font-face{font-family:"Playfair Display";src:url(../fonts/prai/playfairdisplay-bold.eot);src:url(../fonts/prai/playfairdisplay-bold.eot?#iefix) format("embedded-opentype"),url(../fonts/prai/playfairdisplay-bold.woff) format("woff"),url(../fonts/prai/playfairdisplay-bold.ttf) format("truetype"),url(../fonts/prai/playfairdisplay-bold.svg?#webfont) format("svg");font-weight:700;font-style:normal}@font-face{font-family:"Playfair Display";src:url(../fonts/prai/playfairdisplay-bold.eot);src:url(../fonts/prai/playfairdisplay-bold.eot?#iefix) format("embedded-opentype"),url(../fonts/prai/playfairdisplay-bold.woff) format("woff"),url(../fonts/prai/playfairdisplay-bold.ttf) format("truetype"),url(../fonts/prai/playfairdisplay-bold.svg?#webfont) format("svg");font-weight:400;font-style:italic}html{overflow-x:hidden;max-width:1920px;width:100vw;margin:0 auto;background-color:#fbfbfb}#scene,body{position:relative}body{overflow-x:hidden;max-width:1920px;width:100vw;background-color:#fbfbfb;font-family:"Graphik LC Web Regular";color:#353535;margin:0!important;-webkit-transition:.3s;transition:.3s;font-weight:500;overflow:hidden;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.footer{margin-top:auto}*{margin:0;padding:0;-webkit-box-sizing:border-box!important;box-sizing:border-box!important;outline:0}.number-input-button{border:2px solid #000;width:20px;height:20px;background-color:#fff;font-weight:700;color:green}.number-result{width:40px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}.number-input-container,.number-result{display:-webkit-box;display:-ms-flexbox;display:flex}.number-input{-webkit-box-shadow:inset 0 0 0 rgba(64,150,255,.1);box-shadow:inset 0 0 0 rgba(64,150,255,.1);margin:1rem 0;pointer-events:none;border:0;width:30px;display:none;text-align:center}#scene{width:100%}.block-1,.block-2{position:absolute;left:50%!important}.wrapper{max-width:1238px;width:100%;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;z-index:20;-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width:1300px){.wrapper{max-width:1024px}}@media screen and (max-width:1100px){.wrapper{max-width:900px}}@media screen and (max-width:1023px){.wrapper{max-width:700px}}@media screen and (max-width:767px){.wrapper{max-width:100%;max-width:calc(320px - 20px)}}.wrapper1{max-width:1135px;width:100%;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;z-index:20;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media screen and (max-width:1300px){.wrapper1{max-width:1024px}}@media screen and (max-width:1100px){.wrapper1{max-width:900px}}@media screen and (max-width:1023px){.wrapper1{max-width:700px}}@media screen and (max-width:768px){.wrapper1{max-width:calc(580px - 20px);padding:0 10px}}@media screen and (max-width:767px){.wrapper1{max-width:100%}}.swiper-container{overflow:visible!important}.m-bg-cont{background-size:cover;background-repeat:no-repeat;background-position:center center}.m-bg-cont img:nth-child(1){display:none}.m-select,.m-select .list .option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.m-select{background:#fff;border:1px solid #e2e2e2!important;height:50px!important;border-radius:0!important;max-width:270px;width:100%;padding-top:4px;font-style:normal!important;font-weight:300!important;font-size:16px!important;color:#323232!important}.m-select:after{border-color:#2b7ee0!important}.m-select .list{width:calc(100% + 2px)!important;left:-1px!important;max-height:270px;overflow-y:auto;border-top-left-radius:0!important;border-top-right-radius:0!important}.m-select .list .option{height:45px;font-style:normal;font-weight:300;font-size:16px;line-height:128%;color:#323232;border-bottom:1px solid #d7dee9!important}.m-select .list .option:hover{background-color:#f6f9fe}.header__mobile-menu a:last-child,.m-select .list .option:last-child{border-bottom:0}.m-select .list .option.focus{background-color:#f6f9fe!important;font-weight:300!important}.m-select.open{border-color:#2b7ee0!important;border-bottom:none!important}.m-select.open .list{min-width:100%!important;-webkit-transform:translateY(-4px)!important;transform:translateY(-4px)!important;z-index:12!important;border-left:1px solid #2b7ee0!important;border-right:1px solid #2b7ee0!important;-webkit-box-sizing:content-box;box-sizing:content-box;border-bottom:1px solid #2b7ee0!important}#slider{width:100%}.noUi-base{background-color:#e2e2e2}.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{top:-4.5px}.noUi-connect,.noUi-target,.noUi-target.noUi-horizontal .noUi-tooltip{background:#2062b0}.noUi-horizontal .noUi-handle{background:#2062b0;width:10px;height:11px;border-radius:3px!important;background-color:#2062b0!important}.noUi-active{border-radius:40px 40px 40px 40px!important}a{text-decoration:none;color:#323232;font-weight:400}.noUi-tooltip{width:100px;-webkit-transform:rotate(0) translatex(-50%)!important;transform:rotate(0) translatex(-50%)!important;background-color:transparent!important;opacity:1!important;color:#000!important}.noUi-tooltip span{-webkit-transform:none!important;transform:none!important;opacity:1!important;top:calc(100% + 23px)!important;font-style:normal!important;font-weight:500!important;font-size:12px!important;line-height:15px!important;text-align:center!important;color:#4f4f4f!important}.collapsible-body{-webkit-transition:.2s;transition:.2s;overflow:hidden}.main-title{font-style:normal;font-weight:700;font-size:72px;line-height:72px;color:#fff}#toTop{z-index:20000;padding:10px;border:1px solid #6d6d6d;background-color:#fff;border-radius:50%;text-align:center;position:fixed;bottom:15px;right:15px;cursor:pointer;display:none;width:60px;height:60px;-webkit-transform:scale(.8);transform:scale(.8)}#toTop .icon__slider-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.line-header .header{border-bottom:1px solid #672f1f}@media screen and (max-width:767px){.header__lang-mobile{display:none!important}}.header{position:absolute;top:0;left:0;right:0;z-index:10000;padding-bottom:18px}@media screen and (max-width:767px){.header{padding-bottom:0}}.header__container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding-top:20px}@media screen and (max-width:767px){.header__container{padding:10px 0}}@media screen and (max-width:425px){.header__container a{margin-left:27%}}.header__mobile{display:none}.header__mobile-pop{position:fixed;top:0;right:0;background-color:#fff;z-index:21122121;display:none;max-width:222px;width:100%;opacity:0;visibility:hidden;-webkit-transition:.2s;transition:.2s}.header__mobile-pop.active{opacity:1;visibility:visible}@media screen and (max-width:767px){.header__mobile-pop{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:28px 28px 0}}.header__mobile-menu,.header__mobile-top{display:-webkit-box;display:-ms-flexbox;display:flex}.header__mobile-top{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.header__mobile-menu{margin-top:20px;color:#000;font-family:Comfortaa;font-size:14px;font-weight:500;font-style:normal;letter-spacing:normal;text-align:left;text-transform:uppercase;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.header__mobile-menu a{width:100%;display:block;line-height:60px;border-bottom:1px solid #b17e48}@media screen and (max-width:767px){.header__mobile{display:-webkit-box;display:-ms-flexbox;display:flex}}.header__logo img{height:45px;width:128px}.header__lang{position:relative;background-color:transparent}.header__lang:hover .header__lang-drop{opacity:1!important;visibility:visible!important;-webkit-transform:translate(-50%);transform:translate(-50%)}.header__lang-drop,.header__lang-drop a{display:-webkit-box;display:-ms-flexbox;display:flex}.header__lang-drop{position:absolute;top:90%;left:50%;-webkit-transform:translate(-50%,10px);transform:translate(-50%,10px);padding-top:30px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;z-index:1010;width:65px;opacity:0;visibility:hidden;-webkit-transition:.2s;transition:.2s}.header__lang-drop img{position:absolute;left:50%;top:0;z-index:-1;-webkit-transform:translate(-50%);transform:translate(-50%)}.header__lang-drop a{color:#000;font-family:Comfortaa;font-size:22px;font-weight:400;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-style:normal;letter-spacing:normal;text-align:center;text-transform:uppercase;padding-bottom:10px;padding-top:10px;border-top:1px solid #f5f5f7}.header__lang-drop a:nth-child(2){border-top:none}.header__lang-drop a:hover{opacity:.4}.header__menu{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.header__lang span,.header__menu a{color:#000;font-family:Comfortaa;font-weight:500;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;text-transform:uppercase}.header__menu a{margin:0 20px;font-size:16px}.header__menu a:hover{border-bottom:1px solid #000}@media screen and (max-width:1279px){.header__menu a{font-size:13px;margin:0 7px}}@media screen and (max-width:1023px){.header__menu a{font-size:11px}}@media screen and (max-width:767px){.header__menu{display:none}}.first,.header__lang{display:-webkit-box;display:-ms-flexbox;display:flex}.header__lang{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.header__lang svg{margin-left:11px}.header__lang:hover span{opacity:.6}.header__lang span{font-size:22px;-webkit-transition:.2s;transition:.2s}.first{position:relative;min-height:700px;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}@media screen and (max-width:767px){.first{min-height:710px;max-height:710px}}.first .swiper-slide,.first__container{display:-webkit-box;display:-ms-flexbox;display:flex}.first__container{max-width:496px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.first__slider{width:100%}.first__button{max-width:295px;width:100%}.first .swiper-slide{min-height:100vh;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;position:relative;overflow:hidden}@media screen and (max-width:767px){.first .swiper-slide{padding-top:87px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}}.first__img{max-height:100%;width:auto;position:absolute;top:0;right:0;bottom:0}@media screen and (max-width:1023px){.first__img{display:none}}.first__img img{max-height:100%}@media screen and (max-width:1440px){.first__img{right:-300px}}.first__mobile-img{display:none}@media screen and (max-width:767px){.first__mobile-img{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:-180px;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);z-index:-1}}@media screen and (max-width:375px){.first__mobile-img{-webkit-transform:translate(-50%) scale(.8);transform:translate(-50%) scale(.8)}}.first__top-text{color:#8f8f8f;font-family:Comfortaa;font-size:30px;font-weight:400;line-height:30px;text-align:left;font-style:normal;letter-spacing:4.5px}@media screen and (max-width:767px){.first__top-text{color:#8f8f8f;font-family:Comfortaa;font-size:18px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;width:100%}}.first__title{color:#672f1f;font-family:"Playfair Display";font-size:55px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:60px;text-align:left;margin-top:24px;margin-bottom:36px}@media screen and (max-width:767px){.first__title{color:#672f1f;font-family:"Playfair Display";font-size:30px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:36px;text-align:center;margin-bottom:20px;margin-top:15px}}.first__desc{color:#6c6c6c;font-family:Comfortaa;font-size:18px;font-weight:400;font-style:normal;letter-spacing:normal;max-width:480px;line-height:30px;text-align:left}@media screen and (max-width:767px){.first__desc{color:#6c6c6c;font-family:Comfortaa;font-size:14px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:20px;text-align:center}}.first__button{margin-top:47px}@media screen and (max-width:767px){.first__button{height:43px!important;border-radius:22px;background-color:#672f1f;margin:27px auto 0;max-width:210px}}.first-feat{position:absolute;bottom:16px;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);z-index:100;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.first-feat-button{position:static;cursor:pointer;-webkit-transition:.2s;transition:.2s}@media screen and (max-width:767px){.first-feat-button svg{width:10px;height:16px}}.first-feat-button-next svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.first-feat-button:hover{-webkit-transform:scale(1.2);transform:scale(1.2)}.first-pag{margin:0 86px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:400px}@media screen and (max-width:767px){.first-pag{max-width:195px;margin:0 30px}}.first-pag .swiper-pagination-bullet{width:85px;height:1px;background-color:#b59b94;margin:0 10px!important;position:relative;opacity:1}@media screen and (max-width:767px){.first-pag .swiper-pagination-bullet{width:42px;margin:0 5px!important}}.first-pag .swiper-pagination-bullet:before{content:'';position:absolute;top:0;left:0;height:1px;background-color:#672f1f}.first-pag .swiper-pagination-bullet-active{opacity:1;height:1px}.first-pag .swiper-pagination-bullet-active:before{-webkit-animation:width 7s linear;animation:width 7s linear}.first__container{position:relative}.m-button,.prod__item-img img{-webkit-transition:.2s;transition:.2s}.m-button{height:60px;border-radius:30px;background-color:#672f1f;padding:0 30px;color:#fff;font-family:Comfortaa;font-size:18px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer}.m-button:hover{background-color:#5a2719}.prod{padding-top:113px}@media screen and (max-width:767px){.prod{padding-top:80px}}.prod__title{color:#622f1c;font-family:"Playfair Display";font-size:60px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;margin-bottom:20px}.prod__container{width:100%}.prod__item{width:calc(50% - 40px);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-bottom:70px;cursor:pointer}@media screen and (max-width:767px){.prod__item{width:100%}}.prod__item-img{height:340px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden}@media screen and (max-width:767px){.prod__item-img{height:250px;padding-top:20px;padding-bottom:20px}}.prod__item-img img{max-width:100%;height:auto;max-height:100%}.prod__item-title{width:100%;text-align:center;border-top:2px solid #b17e48;color:#000;font-family:Comfortaa;font-size:36px;font-weight:700;font-style:normal;-webkit-transition:.2s;transition:.2s;letter-spacing:normal;line-height:30px;padding-top:33px}@media screen and (max-width:767px){.prod__item-title{color:#000;font-family:Comfortaa;font-size:30px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center}}.prod__item:hover .prod__item-img img{-webkit-transform:scale(1.1);transform:scale(1.1)}.prod__item:hover .prod__item-title{opacity:.5}.prod__content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.storony{padding-top:160px;padding-bottom:177px;position:relative}@media screen and (max-width:767px){.storony{padding-bottom:65px;padding-top:60px}}.storony__title{margin-bottom:0!important}.storony__img{z-index:0;position:absolute;left:-140px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media screen and (max-width:767px){.storony__img{display:none}}.storony__container{width:100%;-webkit-box-shadow:0 0 158px rgba(0,0,0,.09),0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);box-shadow:0 0 158px rgba(0,0,0,.09),0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);border-radius:100px;background-color:#fff;padding:100px 110px 110px;position:relative}@media screen and (max-width:768px){.storony__container{padding:60px 20px;border-radius:50px}}.storony__img-1{position:absolute;z-index:-1;top:-130px;left:40px}@media screen and (max-width:767px){.storony__img-1{left:0;top:-70px}.storony__img-1 img{width:156px;height:131px}}.storony__title{color:#672f1f;font-family:"Playfair Display";font-size:60px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center}.storony__items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-50px}@media screen and (max-width:767px){.storony__items{margin-right:0}}.storony__item{width:calc(33.333% - 50px);margin-right:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:60px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width:767px){.storony__item{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-right:0;margin-top:35px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}}.storony__item-img{height:80px;margin-bottom:22px}@media screen and (max-width:767px){.storony__item-img{margin-bottom:0;margin-right:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}}.storony__item-desc{text-align:center}@media screen and (max-width:767px){.storony__item-desc{color:#000;font-family:Comfortaa;font-size:16px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:24px;text-align:left}.storony__item:nth-child(even){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.storony__item:nth-child(even) .storony__item-desc{text-align:right!important}.storony__item:nth-child(even) .storony__item-img{margin-right:0;margin-left:20px}}.clients{padding-top:37px}@media screen and (max-width:767px){.clients{padding-bottom:190px}}.clients__title{color:#672f1f;font-family:"Playfair Display";font-size:60px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;margin-bottom:61px}.clients__container{width:100%;max-width:100%}.clients__slider{position:relative;max-width:100%}.clients__slider-cont{overflow:hidden}.clients__img{height:120px;width:120px;margin-bottom:25px}.clients__name{font-size:18px;font-weight:500;line-height:25px;margin-bottom:16px}.clients__desc,.clients__func,.clients__name{color:#000;font-family:Comfortaa;font-style:normal;letter-spacing:normal;text-align:center}.clients__func{margin-bottom:16px;font-size:16px;font-weight:500;line-height:30px}.clients__desc{font-size:15px;font-weight:300;line-height:25px;max-width:314px}.clients__button{width:70px;height:70px;border:1px solid #672f1f;border-radius:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:.2s;transition:.2s;cursor:pointer}.clients__button:hover{-webkit-transform:translateY(-50%) scale(1.1);transform:translateY(-50%) scale(1.1)}@media screen and (max-width:767px){.clients__button{top:10px;height:50px;width:50px}.clients__button svg{width:11px;height:17px}}.clients__button-prev{z-index:1001;left:-125px}@media screen and (max-width:1440px){.clients__button-prev{left:-70px}}@media screen and (max-width:1023px){.clients__button-prev{left:-30px}}@media screen and (max-width:767px){.clients__button-prev{left:0}}@media screen and (max-width:425px){.clients__button-prev{left:0;top:60px;opacity:.3}}.clients__button-next{z-index:1001;right:-125px}.clients__button-next svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}@media screen and (max-width:1440px){.clients__button-next{right:-70px}}@media screen and (max-width:1023px){.clients__button-next{right:-30px}}@media screen and (max-width:767px){.clients__button-next{right:0}}@media screen and (max-width:425px){.clients__button-next{right:0;top:60px;opacity:.3}}.clients .swiper-slide,.clients__feat{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.clients .swiper-slide{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center}.clients__feat{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;max-width:314px;margin-top:42px}.clients__date{color:#000;font-family:"Graphik LC Web Regular";font-size:16px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:25px;text-align:left}@media screen and (max-width:767px){.clients-1{padding-bottom:140px!important}.clients-1 .clients__button{top:160%;height:50px;width:50px}.clients-1 .clients__button svg{width:11px;height:17px}}.clients-1 .clients__button-prev{z-index:1001;left:-125px}@media screen and (max-width:1440px){.clients-1 .clients__button-prev{left:-70px}}@media screen and (max-width:1023px){.clients-1 .clients__button-prev{left:-30px}}@media screen and (max-width:767px){.clients-1 .clients__button-prev{left:0}}@media screen and (max-width:425px){.clients-1 .clients__button-prev{left:0;top:50%}}.clients-1 .clients__button-next{z-index:1001;right:-125px}.clients-1 .clients__button-next svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}@media screen and (max-width:1440px){.clients-1 .clients__button-next{right:-70px}}@media screen and (max-width:1023px){.clients-1 .clients__button-next{right:-30px}}@media screen and (max-width:767px){.clients-1 .clients__button-next{right:0}}@media screen and (max-width:425px){.clients-1 .clients__button-next{right:0;top:50%}}.m-title{color:#672f1f;font-family:"Playfair Display";font-size:60px;font-weight:400;font-style:normal;letter-spacing:normal;text-align:center}@media screen and (max-width:768px){.m-title{color:#622f1c;font-family:"Playfair Display";font-size:34px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center}}.map{position:relative}@media screen and (max-width:767px){.map{margin-bottom:60px}}.map__title{margin-bottom:76px}.map__container{position:relative}.map__img{margin-bottom:75px}.map__img img{max-width:100%;height:auto}@media screen and (max-width:767px){.map__img{display:none}}.map__bg{display:none}@media screen and (max-width:767px){.map__bg{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:50px;z-index:0;width:100%;opacity:.17;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.map__bg img{width:100%;height:auto}}.map__content,.map__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.map__content{-ms-flex-wrap:wrap;flex-wrap:wrap}.map__item{width:170px;margin-bottom:45px;color:#000;font-family:Comfortaa;font-size:17px;font-weight:700;font-style:normal;letter-spacing:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}.map__item svg{margin-right:15px}@media screen and (max-width:767px){.map__item svg{min-width:12px;height:12px;margin-right:9px}.map__item{width:calc(33% - 5px);margin-right:5px;color:#000;font-family:Comfortaa;font-size:13px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:13px;text-align:left;margin-bottom:27px}}.form{margin-bottom:220px}@media screen and (max-width:767px){.form{margin-bottom:100px}}.form__container{-webkit-box-shadow:0 0 98px rgba(0,0,0,.03),0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);box-shadow:0 0 98px rgba(0,0,0,.03),0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);border-radius:100px;background-color:#fff;padding:60px 97px}@media screen and (max-width:767px){.form__container{padding:40px 10px;max-width:100%;border-radius:50px}}.form__title{color:#000;font-family:Comfortaa;font-size:30px;font-weight:500;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;margin-bottom:24px}@media screen and (max-width:767px){.form__title{color:#000;font-family:Comfortaa;font-size:24px;font-weight:500;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center}}.form__desc{color:#000;font-family:Comfortaa;font-size:15px;font-weight:300;font-style:normal;letter-spacing:normal;line-height:25px;text-align:center;margin-bottom:64px}@media screen and (max-width:767px){.form__desc{color:#000;font-family:Comfortaa;font-size:13px;font-weight:300;font-style:normal;letter-spacing:normal;line-height:25px;text-align:center;margin-bottom:57px}}.form__container,.form__field-row{display:-webkit-box;display:-ms-flexbox;display:flex}.form__container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.form__field-row{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:-20px}@media screen and (max-width:767px){.form__field-row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-right:0}}.form__field-row input{margin-right:20px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;line-height:40px}.form__field-row input::-moz-placeholder{color:brand-blue;line-height:60px}@media screen and (max-width:767px){.form__field-row input{margin-bottom:30px;width:100%;margin-right:0}.form__field-row input:last-child{margin-bottom:0}}.form__button{max-width:400px;padding:0 40px;width:100%;margin:60px auto 20px}@media screen and (max-width:767px){.form__button{margin-top:40px;margin-bottom:0;padding:0 10px}}.m-button-2,.m-field{height:60px;border-radius:30px;font-family:Comfortaa;font-style:normal;letter-spacing:normal}.m-button-2{background-color:#b17e48;color:#fff;font-size:18px;font-weight:500;line-height:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;cursor:pointer}.m-button-2:hover{background-color:#a77641}.m-field{-webkit-box-shadow:inset 0 2px 2px rgba(0,0,1,.08);box-shadow:inset 0 2px 2px rgba(0,0,1,.08);background-color:#fbfbfb;color:#3f3f3f;font-size:15px;font-weight:300;line-height:25px;border:0;text-align:left;padding-left:47px}.m-field::-webkit-input-placeholder{color:#3f3f3f;font-family:Comfortaa;font-size:15px;font-weight:300;font-style:normal;letter-spacing:normal;line-height:25px;text-align:left}.m-field::-moz-placeholder{color:#3f3f3f;font-family:Comfortaa;font-size:15px;font-weight:300;font-style:normal;letter-spacing:normal;line-height:25px;text-align:left}.m-field:-ms-input-placeholder,.m-field::-ms-input-placeholder{color:#3f3f3f;font-family:Comfortaa;font-size:15px;font-weight:300;font-style:normal;letter-spacing:normal;line-height:25px;text-align:left}.m-field::placeholder{color:#3f3f3f;font-family:Comfortaa;font-size:15px;font-weight:300;font-style:normal;letter-spacing:normal;line-height:25px;text-align:left}.footer{position:relative;padding-top:60px}.footer__container{width:100%}.footer__oreh{position:absolute;top:-150px;left:100px}@media screen and (max-width:767px){.footer__oreh{display:none}}.footer__logo{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:68px}@media screen and (max-width:767px){.footer__logo{margin-bottom:50px}.footer__logo img{height:45px;width:128px}}.footer__img{position:absolute;top:0;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.footer__img svg:last-child{display:none}.footer__img svg:first-child{display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (max-width:767px){.footer__img svg:first-child{display:none}.footer__img svg:last-child{display:-webkit-box;display:-ms-flexbox;display:flex}}.footer__bg{position:absolute;z-index:0;top:-550px;right:0}@media screen and (max-width:1023px){.footer__bg{top:-241px;right:-104px}.footer__bg img{height:413px}}@media screen and (max-width:767px){.footer.recept-footer .footer__bg,.footer.recept-footer .footer__oreh{display:none}}.footer__content{display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:37px;margin-right:-110px}@media screen and (max-width:1024px){.footer__content{-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-30px}}.footer__col{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-right:110px}@media screen and (max-width:1023px){.footer__col{margin-right:30px;width:calc(50% - 30px)}}@media screen and (max-width:1024px){.footer__col:last-child{width:50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}@media screen and (max-width:767px){.footer__col:last-child{-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}}.footer__col-title{color:#672f1f;font-family:"Playfair Display";font-size:20px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:29.99px;margin-bottom:10px}.footer__col-content,.footer__col-content a{display:-webkit-box;display:-ms-flexbox;display:flex}.footer__col-content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.footer__col-content a{color:#545454;font-family:Comfortaa;font-size:16px;font-weight:500;font-style:normal;letter-spacing:normal;line-height:normal;text-align:left;margin-bottom:10px}@media screen and (max-width:767px){.footer__col-content a{font-family:"Comfortaa";font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal}}.footer__col-content a:hover{text-decoration:underline}.footer__soc{margin-bottom:18px;margin-top:17px}.footer__soc a{margin-right:18px}.footer__soc a:last-child{margin-right:0}.footer__soc a:hover img{opacity:.7}.footer__bottom{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:23px;padding-bottom:23px;border-top:2px solid #672f1f}@media screen and (max-width:767px){.footer__bottom{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-top:40px;padding-bottom:40px}}.footer__bottom-text{color:#545454;font-family:Comfortaa;font-size:16px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:35.99px;text-align:left}@media screen and (max-width:767px){.footer__bottom-text{margin-bottom:17px}.footer__bottom-text:last-child{margin-bottom:0}}.footer__form{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}@media screen and (max-width:425px){.footer__form{padding:0 10px}}.footer__form button,.footer__form input{width:108px;height:32px;border-radius:5px;border:0;background-color:#672f1f}.footer__form input{width:100%;margin-right:-10px;background-color:#fff;padding-left:17px}.footer__form input::-webkit-input-placeholder{color:#767676;font-family:Comfortaa;font-size:14px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:29.99px}.footer__form input::-moz-placeholder{color:#767676;font-family:Comfortaa;font-size:14px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:29.99px}.footer__form input:-ms-input-placeholder,.footer__form input::-ms-input-placeholder{color:#767676;font-family:Comfortaa;font-size:14px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:29.99px}.footer__form input::placeholder{color:#767676;font-family:Comfortaa;font-size:14px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:29.99px}.ctg{padding-top:178px;margin-bottom:200px}@media screen and (max-width:767px){.ctg{padding-top:106px;margin-bottom:100px}}.ctg__container{width:100%}.ctg__title{color:#672f1f;font-family:"Playfair Display";font-size:60px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;margin-bottom:50px}@media screen and (max-width:767px){.ctg__title{color:#672f1f;font-family:"Playfair Display";font-size:34px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center}}.ctg__content{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-20px}.ctg__item{margin-right:20px;width:calc(25% - 20px);margin-bottom:20px;border-radius:30px;background-color:#fff;padding:25px 20px 40px}@media screen and (max-width:1279px){.ctg__item{width:calc(33.33% - 20px)}}@media screen and (max-width:1023px){.ctg__item{width:calc(50% - 20px)}}@media screen and (max-width:767px){.ctg__item{width:calc(100% - 20px)}}.ctg__item-img{height:200px;max-width:100%;background-size:contain}@media screen and (max-width:375px){.ctg__item-img{height:150px}}.ctg__item-title{color:#000;font-family:Comfortaa;font-size:18px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:26.41px;text-align:center;padding-bottom:30px;border-bottom:1px solid #5a2719;margin-bottom:40px}.ctg__item-cap,.ctg__item-caps{display:-webkit-box;display:-ms-flexbox;display:flex}.ctg__item-caps{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.ctg__item-cap{width:calc(33% - 20px);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ctg__item-button,.ctg__item-cap-title{color:#000;font-family:Comfortaa;font-size:13px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:17.61px;margin-top:8px;text-align:center}.ctg__item-button{height:40px;border-radius:20px;background-color:#672f1f;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-top:35px;color:#fff;font-size:14px;line-height:26.41px;cursor:pointer;-webkit-transition:.2s;transition:.2s}.ctg__item-button:hover{background-color:#7c3b29}.recept{padding-top:225px;position:relative}@media screen and (max-width:767px){.recept{padding-top:106px}}.recept__img{position:absolute;top:0;right:0;left:0}.recept__img img{max-width:100%;height:auto}@media screen and (max-width:767px){.recept__img{display:none}}.recept__title{color:#672f1f;font-family:"Playfair Display";font-size:55px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:60px;text-align:center;margin-bottom:30px}@media screen and (max-width:767px){.recept__title{color:#672f1f;font-family:"Playfair Display";font-size:34px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:60px;margin-bottom:24px}}.recept__desc{color:#6c6c6c;font-family:Comfortaa;font-size:18px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;max-width:644px;margin:0 auto}@media screen and (max-width:767px){.recept__desc{color:#6c6c6c;font-family:Comfortaa;font-size:13px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:25px;text-align:center}}.recept__content{margin-top:140px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-20px}@media screen and (max-width:767px){.recept__content{margin-top:32px}}.recept__item{margin-right:20px;width:calc(33.33% - 20px);margin-bottom:20px;background-color:#fff;-webkit-box-shadow:0 0 54px rgba(0,0,0,.07),0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);box-shadow:0 0 54px rgba(0,0,0,.07),0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2)}@media screen and (max-width:1023px){.recept__item{width:calc(50% - 20px)}}@media screen and (max-width:767px){.recept__item{width:calc(100% - 20px)}}.recept__item-img{height:280px}.recept__item-content{padding:40px}@media screen and (max-width:767px){.recept__item-content{padding:30px}}.recept__item-button,.recept__item-title{font-family:Comfortaa;font-style:normal;letter-spacing:normal}.recept__item-title{margin-bottom:25px;color:#000;font-size:23px;font-weight:500;line-height:30px;text-align:left}.recept__item-button{height:40px;border-radius:20px;background-color:#672f1f;color:#fff;font-size:14px;width:190px;font-weight:400;line-height:26.41px;text-align:center;cursor:pointer;-webkit-transition:.2s;transition:.2s;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.recept__item-button:hover{background-color:#773725}.pag{margin-bottom:225px;margin-top:25px}@media screen and (max-width:767px){.pag{margin-bottom:100px}}.pag__container{margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%}.pag__item-button{color:#000;font-family:Comfortaa;font-size:24px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;margin:0 6px;cursor:pointer}.pag__content a:hover,.pag__item-button:hover{opacity:.6}@media screen and (max-width:767px){.pag__item-button{font-size:20px}}.pag__content,.pag__content a{margin:0 15px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.pag__content span{margin-right:8px}.pag__content a{color:#000;font-family:Comfortaa;font-size:24px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;border-radius:30px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:transparent;-webkit-transition:.2s;transition:.2s;height:52px;margin:0 5px}.pag__content a.active{color:#fff;width:52px;background-color:#b17e48}@media screen and (max-width:767px){.pag__content a{font-size:20px}}.tovar{padding-top:160px;position:relative;z-index:100}@media screen and (max-width:767px){.tovar{padding-top:106px}}.tovar__container{width:100%;max-width:100%}.tovar__top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:70px}@media screen and (max-width:767px){.tovar__top{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.tovar__rating{margin-top:30px}}.tovar__left{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.tovar__thumbs{margin-right:20px;overflow:hidden}.tovar__thumbs .swiper-slide{border:1px solid transparent}.tovar__thumbs .swiper-slide-thumb-active{border:1px solid #b17e48}@media screen and (max-width:767px){.tovar__thumbs{display:none}}.tovar__right{margin-left:45px}@media screen and (max-width:1024px){.tovar__right{margin-right:20px}}@media screen and (max-width:767px){.tovar__right{margin-left:0;margin-top:67px}}.tovar__item{margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:50px}.tovar__item-img{margin-right:32px}@media screen and (max-width:1439px){.tovar__item-img img{height:40px;width:40px}}@media screen and (max-width:1024px){.tovar__item-img{margin-right:15px}}@media screen and (max-width:1023px){.tovar__item{margin-top:20px}}.tovar__item-title,.ttabs__cont ul li,.ttabs__top a{font-family:Comfortaa;font-style:normal;letter-spacing:normal}.tovar__item-title{color:#010101;font-size:30px;font-weight:400;line-height:30px;text-align:left}@media screen and (max-width:1439px){.tovar__item-title{font-size:24px}}@media screen and (max-width:1024px){.tovar__item-title{font-size:20px}}.tovar__title{color:#000;font-family:Comfortaa;font-size:36px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:30px;text-align:left}.tovar__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}@media screen and (max-width:767px){.tovar__content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.tovar__thumbs{max-height:620px;height:620px}@media screen and (max-width:1439px){.tovar__thumbs{width:100px;height:400px}}.tovar__thumbs .swiper-slide{width:190px;height:140px}@media screen and (max-width:1439px){.tovar__thumbs .swiper-slide{width:100px;height:70px}}.tovar__top-slider{max-width:505px;overflow:hidden}@media screen and (max-width:1439px){.tovar__top-slider{max-width:300px}}@media screen and (max-width:767px){.tovar__top-slider{overflow:visible}}.tovar__top-slider .swiper-slide{width:505px}@media screen and (max-width:1439px){.tovar__top-slider .swiper-slide{width:300px;height:400px}}.cont-tab{display:none}.cont-tab.active{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ttabs{margin-bottom:120px}@media screen and (max-width:1440px){.ttabs{margin-bottom:100px}}@media screen and (max-width:767px){.ttabs{margin-bottom:60px}}.ttabs__container{padding-top:200px;width:100%}@media screen and (max-width:1439px){.ttabs__container{padding-top:100px}}@media screen and (max-width:767px){.ttabs__container{padding-top:50px}}.ttabs__top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-bottom:57px}.ttabs__top .swiper-slide{width:auto}.ttabs__cont ul li,.ttabs__top a{font-weight:700}.ttabs__top,.ttabs__top a{display:-webkit-box;display:-ms-flexbox;display:flex}.ttabs__top a{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;font-size:28px;line-height:30px;text-align:center;padding-bottom:26px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-bottom:3px solid #fbedde}.ttabs__top a span{color:#868686}.ttabs__top a:hover{border-color:#dbbb95}.ttabs__top a.active{border-color:#b17e48}.ttabs__top a.active span{color:#000}@media screen and (max-width:767px){.ttabs__top a{min-width:100%;margin-bottom:40px!important;color:#000;font-family:Comfortaa;font-size:22px;font-weight:700;font-style:normal;letter-spacing:normal;line-height:30px;text-align:center;padding:10px 20px;white-space:nowrap}}.ttabs__cont ul li{padding-left:34px;margin-bottom:40px;list-style:none;position:relative;color:#000;font-size:16px;line-height:normal;text-align:left}.ttabs__cont ul li:before{content:'';position:absolute;top:0;left:0;width:15px;height:15px;border:1px solid #b17e48;border-radius:50%}.pagination.swiper-pagination .swiper-pagination-bullet:before,.ttabs__cont ul li:after{content:'';position:absolute;top:4px;left:4px;border-radius:50%;width:9px;height:9px;background-color:#b17e48}@media screen and (max-width:767px){.footer-img-none,.no-controll .clients__buttons{display:none}}.recept__item{border-radius:5px;overflow:hidden}@media screen and (max-width:767px){.recept__item-img{height:210px}.recept__item-title{color:#000;font-family:Comfortaa;font-size:20px;font-weight:500;font-style:normal;letter-spacing:normal;line-height:30px;text-align:left;margin-bottom:27px}}.recept__item-desc{color:#6c6c6c;font-family:Comfortaa;font-size:14px;font-weight:400;font-style:normal;letter-spacing:normal;line-height:25px;text-align:left;margin-bottom:27px}@media screen and (max-width:767px){.ttabs__top{display:none;max-width:100%;margin:0 auto}}.ttabs__top.slider-tabs{display:none}@media screen and (max-width:767px){.ttabs__top.slider-tabs{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}.pagination{display:none!important}@media screen and (max-width:767px){.pagination{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}.pagination.swiper-pagination{bottom:-30px;position:absolute;left:50%;max-width:100%!important;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important;-webkit-transform:translate(-50%);transform:translate(-50%)}.pagination.swiper-pagination .swiper-pagination-bullet{margin:0 7.5px!important;opacity:1;width:17px;height:17px;border:1px solid #b17e48;position:relative;background-color:transparent}.pagination.swiper-pagination .swiper-pagination-bullet:before{top:50%;left:50%;-webkit-transform:translate(-48%,-53%);transform:translate(-48%,-53%);opacity:0;-webkit-transition:.2s;transition:.2s}.pagination.swiper-pagination .swiper-pagination-bullet-active:before{opacity:1}@media screen and (max-width:767px){.slider-3 .clients__button{display:none}}button{border:0}.footer__col-content a{white-space:nowrap}.menu-active{position:fixed;top:0;right:0;left:0;background-color:#fff;-webkit-box-shadow:0 0 18px -4px rgba(0,0,0,.5);box-shadow:0 0 18px -4px rgba(0,0,0,.5)}@media screen and (max-width:425px){.clients-1 .clients__button{top:135%;opacity:1!important}.clients-1 .swiper-slide img{max-width:100%;height:auto}.form__title{font-size:16px;line-height:120%}.form__container{border-radius:6px;padding-top:15px}.form__desc{font-size:12px;line-height:160%;margin-bottom:20px}.form__container input{height:45px;padding-left:15px;font-size:14px}.form__container button{height:45px!important;font-size:14px}}@media screen and (max-width:360px){.recept__item-img{height:150px;margin-bottom:15px}.recept__item-title{font-size:16px;line-height:20px;margin-bottom:20px}.recept__item-desc{overflow:hidden;max-height:78px}}.widgetizedArea a{background-color:transparent!important}.widgetizedArea>ul>li>a,.wpml-ls-sub-menu a{background-color:#fff!important}.wpml-ls-sub-menu{-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-transition:.2s;transition:.2s;opacity:0!important}.wpml-ls-item-legacy-dropdown:hover .wpml-ls-sub-menu{-webkit-transform:none;transform:none;opacity:1!important}.prod-html{padding:30px;background-color:#fff;border-radius:8px;-webkit-box-shadow:0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);box-shadow:0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2)}@media screen and (max-width:1023px){.prod-html{margin:0}}.html h1,.html h2,.prod-html h1,.prod-html h2,.ttabs__cont h1,.ttabs__cont h2{font-size:40px;font-family:Comfortaa;margin-bottom:20px}.html h2,.prod-html h2,.ttabs__cont h2{font-size:36px}.html h3,.html h4,.prod-html h3,.prod-html h4,.ttabs__cont h3,.ttabs__cont h4{font-family:Comfortaa;font-size:28px;margin-bottom:20px}.html h4,.prod-html h4,.ttabs__cont h4{font-size:24px}.html i,.html p,.html strong,.prod-html i,.prod-html p,.prod-html strong,.ttabs__cont i,.ttabs__cont p,.ttabs__cont strong{color:#000;font-family:Comfortaa;font-size:16px;letter-spacing:normal;line-height:30px;text-align:left;margin-bottom:44px;font-weight:700;font-style:italic}.html p,.html strong,.prod-html p,.prod-html strong,.ttabs__cont p,.ttabs__cont strong{font-style:normal}.html p,.prod-html p,.ttabs__cont p{font-weight:400;line-height:24px}@media screen and (max-width:375px){.first__title{font-size:20px;text-align:center;line-height:140%}.first .swiper-slide{padding-top:70px}.first__top-text{font-size:14px;line-height:140%}.first__button{height:35px!important;max-width:140px;font-size:16px}.first{min-height:533px}}.gallery{margin-bottom:1.5em;display:grid;grid-gap:1.5em}.gallery-item{display:inline-block;text-align:center;width:100%}.gallery-columns-2{grid-template-columns:repeat(2,1fr)}.gallery-columns-3{grid-template-columns:repeat(3,1fr)}.gallery-columns-4{grid-template-columns:repeat(4,1fr)}.gallery-columns-5{grid-template-columns:repeat(5,1fr)}.gallery-columns-6{grid-template-columns:repeat(6,1fr)}.gallery-columns-7{grid-template-columns:repeat(7,1fr)}.gallery-columns-8{grid-template-columns:repeat(8,1fr)}.gallery-columns-9{grid-template-columns:repeat(9,1fr)}.gallery-caption{display:block}.alignleft{float:left;margin-right:1.5em;margin-bottom:1.5em}.alignright{float:right;margin-left:1.5em;margin-bottom:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto;margin-bottom:1.5em}.m-title{margin-bottom:20px;line-height:140%}@media screen and (max-width:767px){.clients__button{top:50%!important}.clients{padding-bottom:80px}}.storony__img{top:40%}@media screen and (max-width:425px){.clients-1 .swiper-slide img{max-width:65%;height:auto}.clients-1 .clients__button{top:135%;opacity:.4!important}}@media screen and (max-width:1920px){.ttabs{margin-bottom:50px}}.clients .swiper-slide .ctg__item{width:98%;margin-top:1px;margin-right:0}.slider-3{height:575px}.ctg__item{-webkit-box-shadow:0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2);box-shadow:0 4px 8px rgba(0,0,0,.04),0 .5px 2px rgba(0,0,0,.2)}.clients-1{padding-bottom:80px}.clients__button{opacity:.4}@media screen and (max-width:768px){.clients__button{top:60px!important}}@media screen and (max-width:375px){.ctg__item-img{height:250px}}.ctg__item-title{margin-top:15px}.clients{padding-bottom:120px}.map{margin-bottom:60px}.tovar__top-slider,.tovar__top-slider .swiper-slide{height:620px}.pageNavFixed,.pageNavFixed::after{top:0;-webkit-box-sizing:border-box;box-sizing:border-box}.pageNavFixed{position:fixed;z-index:32131312312;left:-460px;width:460px;padding:30px;border-radius:0 0 30px 0;background-color:#fff;-webkit-transition:.5s;transition:.5s;border-right:2px solid #000;border-bottom:2px solid #000}.pageNavFixed:hover{left:0}.pageNavFixed::after{content:'NAV';position:absolute;width:50px;height:30px;right:-50px;border-radius:0 0 5px 0;background-color:#000;color:#7eb325;padding:5px 5px 5px 10px;cursor:pointer}.pageNavFixed__cont{width:100%;max-height:600px;overflow-x:hidden;overflow-y:auto}.pageNavFixed__cont a{display:block;font-size:16px;line-height:20px;color:#7eb325;margin-bottom:10px}.pageNavFixed__cont a:hover{text-decoration:underline}.pageNavFixed__cont a.completed{color:green}.pageNavFixed__cont b{display:block;margin-bottom:15px}.pageNavFixed__cont div{margin:0 0 50px}.blur{top:0;left:0;width:100vw;height:100vh;position:fixed;background:rgba(0,0,0,.24);opacity:0;visibility:hidden;-webkit-transition:.3s;transition:.3s;overflow-y:scroll}.blur>{cursor:pointer!important}.blur.active,.popup.active{opacity:1;visibility:visible}.popup{opacity:0;-webkit-transition:.2s;visibility:hidden;transition:.2s;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.popup img:first-child{z-index:-1;position:absolute;top:0;left:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.popup img:nth-child(2){z-index:-1;position:absolute;bottom:0;right:0;-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.modal__close{cursor:pointer}.modal__close svg{-webkit-transition:.2s;transition:.2s}.modal__close:hover svg{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.modal-1{position:fixed;width:calc(100% - 100px);max-width:822px;-webkit-box-shadow:0 4px 100px rgba(0,0,0,.15);box-shadow:0 4px 100px rgba(0,0,0,.15);border-radius:24px;padding:66px 130px}@media screen and (max-width:767px){.modal-1{padding:20px 40px}}.blur{padding:0 50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;z-index:50}
| 14,112.333333
| 113,857
| 0.800712
|
2153f0a374158d657707d85bece64f6724d70cf8
| 506
|
sql
|
SQL
|
openGaussBase/testcase/SQL/DDL/name/Opengauss_Function_DDL_Name_Case0009.sql
|
opengauss-mirror/Yat
|
aef107a8304b94e5d99b4f1f36eb46755eb8919e
|
[
"MulanPSL-1.0"
] | null | null | null |
openGaussBase/testcase/SQL/DDL/name/Opengauss_Function_DDL_Name_Case0009.sql
|
opengauss-mirror/Yat
|
aef107a8304b94e5d99b4f1f36eb46755eb8919e
|
[
"MulanPSL-1.0"
] | null | null | null |
openGaussBase/testcase/SQL/DDL/name/Opengauss_Function_DDL_Name_Case0009.sql
|
opengauss-mirror/Yat
|
aef107a8304b94e5d99b4f1f36eb46755eb8919e
|
[
"MulanPSL-1.0"
] | null | null | null |
-- @testpoint: 约束名为64位(opengauss中没有明确长度限制,所以现在超出长度会截断并不会报错)
DROP TABLE IF EXISTS tal_09;
CREATE TABLE tal_09( C_CHAR20 CHAR(20) not null, C_INT INT);
ALTER TABLE tal_09 ADD CONSTRAINT BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBB64 UNIQUE(C_INT);
INSERT INTO tal_09 VALUES('2020-07-06',53);
INSERT INTO tal_09 VALUES('2020-07-06',369);
ALTER TABLE tal_09 DROP CONSTRAINT IF EXISTS BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBB64 CASCADE ;
DROP TABLE IF EXISTS tal_09;
| 42.166667
| 120
| 0.83004
|
b024472508455ec4629c56f86163c48ec1864f01
| 5,546
|
py
|
Python
|
board/utils.py
|
devunt/hydrocarbon
|
3e13f03f8375533c422a6e609742b3d2f4c38c0f
|
[
"MIT"
] | 8
|
2015-04-14T00:36:08.000Z
|
2017-06-02T06:08:51.000Z
|
board/utils.py
|
devunt/hydrocarbon
|
3e13f03f8375533c422a6e609742b3d2f4c38c0f
|
[
"MIT"
] | 10
|
2020-03-24T15:33:11.000Z
|
2022-03-11T23:16:05.000Z
|
board/utils.py
|
devunt/hydrocarbon
|
3e13f03f8375533c422a6e609742b3d2f4c38c0f
|
[
"MIT"
] | 2
|
2016-08-04T23:58:29.000Z
|
2016-09-22T10:20:05.000Z
|
import bleach
import os
import re
from collections import defaultdict
from hashlib import md5
from urllib.parse import quote_plus, urlparse
from django.conf import settings
from django.http import QueryDict
from django.utils.encoding import iri_to_uri
from django.utils.html import strip_tags
from django.utils.text import Truncator
RE_EMPTYHTML = re.compile(r'<p>\s*(?:(?: |<br\s*/?>)\s*)*</p>')
RE_IMG = re.compile(r'<img.*?>')
RE_VIDEO = re.compile(r'<iframe.*?</iframe>')
RE_SPOILER = re.compile(r'<strike>.*?</strike>')
FIRSTS = ('ㄱ', 'ㄲ', 'ㄴ', 'ㄷ', 'ㄸ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅃ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ', 'ㅉ', 'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ')
MIDDLES = ('ㅏ', 'ㅐ', 'ㅑ', 'ㅒ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅗㅏ', 'ㅗㅐ', 'ㅗㅣ', 'ㅛ', 'ㅜ', 'ㅜㅓ', 'ㅜㅔ', 'ㅜㅣ', 'ㅠ', 'ㅡ', 'ㅡㅣ', 'ㅣ')
LASTS = ('', 'ㄱ', 'ㄲ', 'ㄱㅅ', 'ㄴ', 'ㄴㅈ', 'ㄴㅎ', 'ㄷ', 'ㄹ', 'ㄹㄱ', 'ㄹㅁ', 'ㄹㅂ', 'ㄹㅅ', 'ㄹㅌ', 'ㄹㅍ', 'ㄹㅎ', 'ㅁ', 'ㅂ', 'ㅂㅅ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ', 'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ')
def _normalize(c):
if '가' <= c <= '힣':
offset = ord(c) - ord('가')
first = FIRSTS[offset // (len(MIDDLES) * len(LASTS))]
middle = MIDDLES[(offset // len(LASTS)) % len(MIDDLES)]
last = LASTS[offset % len(LASTS)]
return '{0} {1} {2}'.format(first, middle, last)
return c
def normalize(s):
return ' '.join(map(_normalize, s))
def clean_html_all(html):
return bleach.clean(html, tags=[], attributes={}, styles=[], strip=True)
def clean_html(html):
return bleach.clean(html,
tags=settings.BLEACH_ALLOWED_TAGS,
attributes=settings.BLEACH_ALLOWED_ATTRIBUTES,
styles=settings.BLEACH_ALLOWED_STYLES
)
def is_empty_html(html):
cleaned = clean_html(html)
replaced = re.sub(RE_EMPTYHTML, '', cleaned)
return (replaced.strip() == '')
def get_upload_path(instance, filename):
checksum = instance.checksum
return os.path.join(checksum[0], checksum[:2], filename)
def treedict():
return defaultdict(treedict)
def truncate_chars(string, chars):
return Truncator(string).chars(chars)
def replace_tags_to_text(html):
html = re.sub(RE_IMG, ' [img] ', html)
html = re.sub(RE_VIDEO, ' [video] ', html)
html = re.sub(RE_SPOILER, ' [spoiler] ', html)
return strip_tags(html)
# From https://bitbucket.org/monwara/django-url-tools/raw/9ce1dbd9b3609b9cebd8445ce787dff640ffedbc/url_tools/helper.py
class UrlHelper(object):
def __init__(self, full_path):
# If full_path is an UrlHelper instance, extract the full path from it
if type(full_path) is UrlHelper:
full_path = full_path.get_full_path()
# parse the path
r = urlparse(full_path)
self.path = r.path
self.fragment = r.fragment
self.query_dict = QueryDict(r.query, mutable=True)
def get_query_string(self, **kwargs):
return self.query_dict.urlencode(**kwargs)
def get_query_data(self):
return self.query_dict
def update_query_data(self, **kwargs):
for key, val in kwargs.items():
if not isinstance(val, str) and hasattr(val, '__iter__'):
self.query_dict.setlist(key, val)
else:
self.query_dict[key] = val
def get_path(self):
return self.path
def get_full_path(self, **kwargs):
query_string = self.get_query_string(**kwargs)
if query_string:
query_string = '?%s' % query_string
fragment = self.fragment and '#%s' % iri_to_uri(self.fragment) or ''
return '%s%s%s' % (
iri_to_uri(self.get_path()),
query_string,
fragment
)
def get_full_quoted_path(self, **kwargs):
return quote_plus(self.get_full_path(**kwargs), safe='/')
def overload_params(self, **kwargs):
for key, val in kwargs.items():
uniques = set(self.query_dict.getlist(key))
uniques.add(val)
self.query_dict.setlist(key, list(uniques))
def del_param(self, param):
try:
del self.query_dict[param]
except KeyError:
pass # Fail silently
def del_params(self, *params, **kwargs):
if not params and not kwargs:
self.query = {}
return
if params:
for param in params:
self.del_param(param)
if kwargs:
for key, val in kwargs.items():
to_keep = [x for x in self.query_dict.getlist(key)
if not x.startswith(val)]
self.query_dict.setlist(key, to_keep)
def toggle_params(self, **params):
for param, value in params.items():
value = str(value)
if value in self.query_dict.getlist(param):
self.del_params(**{param: value})
else:
self.overload_params(**{param: value})
@property
def hash(self):
_md5 = md5()
_md5.update(self.get_full_path())
return _md5.hexdigest()
@property
def query(self):
return self.get_query_data()
@query.setter
def query(self, value):
if type(value) is dict:
self.query_dict = QueryDict('', mutable=True)
self.update_query_data(**value)
else:
self.query_dict = QueryDict(value, mutable=True)
@property
def query_string(self):
return self.get_query_string()
@query_string.setter
def query_string(self, value):
self.query_dict = QueryDict(value, mutable=True)
def __str__(self):
return self.get_full_path()
| 30.306011
| 158
| 0.591417
|
6dac4d61ba507a4d68b5ecbaf0629d76ae80df39
| 575
|
c
|
C
|
baskara.c
|
DariaMachado/Algoritmos_em_C
|
fc2ad56d9589ae13f4672d712f3c8f29223caa63
|
[
"MIT"
] | null | null | null |
baskara.c
|
DariaMachado/Algoritmos_em_C
|
fc2ad56d9589ae13f4672d712f3c8f29223caa63
|
[
"MIT"
] | null | null | null |
baskara.c
|
DariaMachado/Algoritmos_em_C
|
fc2ad56d9589ae13f4672d712f3c8f29223caa63
|
[
"MIT"
] | null | null | null |
#include <stdio.h>
#include <math.h>
int main() {
double a, b, c, x1, x2, delta;
printf("Coeficiente a: ");
scanf("%lf", &a);
printf("Coeficiente b: ");
scanf("%lf", &b);
printf("Coeficiente c: ");
scanf("%lf", &c);
delta = pow(b, 2) - 4.0 * a * c;
if((a != 0) && (delta > 0)) {
x1 = (-b + sqrt(delta)) / (2.0*a);
x2 = (-b - sqrt(delta)) / (2.0*a);
printf("X1 = %.4lf\n", x1);
printf("X2 = %.4lf\n", x2);
}
else {
printf("Esta equacao nao possui raizes reais\n");
}
return 0;
}
| 20.535714
| 57
| 0.450435
|