text stringlengths 3 1.05M |
|---|
const COLLAPSE_UNL = new ExpantaNum(50 * DISTANCES.Mpc);
const ESSENCE_MILESTONES = {
1: {
req: new ExpantaNum(1),
desc: "Time goes by 100x faster, but this gets weaker the further you go (minimum 2x, at 50Mpc).",
disp: function () {
return showNum(collapseMile1Eff()) + "x";
}
},
2: { req: new ExpantaNum(... |
module.exports = Math.imul || function(a, b) {
var ah = (a >>> 16) & 0xffff;
var al = a & 0xffff;
var bh = (b >>> 16) & 0xffff;
var bl = b & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return ((al * bl) + (((ah *... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue"), require("agGrid"));
else if(typeof define === 'function' && define.amd)
define([, "agGrid"], factory);
else if(typeof exports === 'object')
exports[... |
import os
from glob import glob
import argparse
import cv2
import xml.etree.ElementTree as ET
from coco_format_utils import Coco_Annotation_Set, Coco_Annotation_Object
def read_label_map(label_map_path):
item_id = None
item_name = None
categories = []
category = {}
category_name_to_category_id_rel... |
var searchData=
[
['ead',['Ead',['../class_ead.html',1,'Ead'],['../class_ead.html#a4862282805c2ac3255a34a99a31564d5',1,'Ead::Ead()']]],
['eventdelay',['EventDelay',['../class_event_delay.html',1,'EventDelay'],['../class_event_delay.html#acd7b63341732ac4c23bce04d81316017',1,'EventDelay::EventDelay()']]]
];
|
require('../../lib/feature-flags')
const { getDOM, getJSON } = require('../helpers/supertest')
const enterpriseServerReleases = require('../../lib/enterprise-server-releases')
const japaneseCharacters = require('japanese-characters')
describe('featuredLinks', () => {
jest.setTimeout(3 * 60 * 1000)
describe('rende... |
var searchData=
[
['cachedlog_22784',['CachedLog',['../classoperations__research_1_1_cached_log.html',1,'operations_research']]],
['callbackrangeconstraint_22785',['CallbackRangeConstraint',['../structoperations__research_1_1_callback_range_constraint.html',1,'operations_research']]],
['callbacksetup_22786',['Cal... |
if (condition1) statement1 else if (condition2) statement2 else statement3
|
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .acl import *
from .cluster import *
fro... |
'use strict';
module.exports = function(grunt) {
var CI = grunt.option('ci');
grunt.initConfig({
env: {
coverage: {
APP_DIR_FOR_CODE_COVERAGE: '../test/coverage/instrument/app/'
}
},
instrument: {
files: 'lib/*.js',
options: {
lazy: true,
basePath: 'tes... |
import SortAnimation, {defaultOptions} from './SortAnimation';
export default SortAnimation;
export {defaultOptions};
|
var fs = require('fs');
var request = require('request');
var iconv = require('iconv-lite');
fs.createReadStream('../zdroje/volby/p/2018/perk.xml')
.pipe(iconv.decodeStream('windows1250'))
.pipe(iconv.encodeStream('utf8'))
.pipe(fs.createWriteStream('../zdroje/volby/p/2018/perk-utf8.xml'));
request.get('h... |
/* global process */
import React from "react";
import ReactDOM from "react-dom";
import bindMethods from "yaab";
import io from "socket.io-client";
import Header from "./components/Header";
import Footer from "./components/Footer";
import PullRequestList from "./components/PullRequestList";
const translate = data =>... |
# -*- coding: utf-8 -*-
# Copyright (c) 2020, GreyCube Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class ServiceNoteItemCT(Document):
pass
|
import React, { memo, useContext, useState } from 'react'
import { TouchableOpacity,Image, View, Text } from 'react-native'
import styles from './Styles/CardProduct'
import { NavigationContext } from "react-navigation"
import Format from '../Lib/NumberFormat'
const CardProduct = (props) => {
const [width, setWidth]... |
$(function() {
//Tooltip
$('[data-toggle="tooltip"]').tooltip({
container: 'body'
});
$('#type_price').change(function() {
if (this.value != 1) {
$('#precio').hide();
} else {
show();
}
});
show();
btnUpdate();
btnSave();
});
... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.14.7
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class PolicyV1be... |
import json
import os
import unittest
from unittest import mock
from pyramid import testing
from kinto.core.cache import postgresql as postgresql_cache
from kinto.core.permission import postgresql as postgresql_permission
from kinto.core.storage import postgresql as postgresql_storage
from kinto.core.storage.postgres... |
// Parses the `text`.
//
// Returns `{ value, caret }` where `caret` is
// the caret position inside `value`
// corresponding to the `caret_position` inside `text`.
//
// The `text` is parsed by feeding each character sequentially to
// `parse_character(character, value)` function
// and appending the result (if it's n... |
describe('Cypress Test 1', () => {
it('This is a placeholder test', () => {
cy.visit('http://localhost:3000/dashboard')
cy.contains('Login').click()
})
})
|
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright 2016 Timothy Dozat
#
# 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... |
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/title',
method: 'post',
data
})
}
export function edit(data) {
return request({
url: 'api/title',
method: 'put',
data
})
}
export function del(ids) {
return request({
url: 'api/title',
... |
'use strict';
for (const i = 0; i < 1; i++) {
console.log(i);
}
// 0
// TypeError: Assignment to constant variable. |
var MongoClient = require('mongodb').MongoClient;
MongoClient.connect('mongodb://localhost:27017/course', function(err, db) {
if(err) throw err;
var query = { 'assignment' : 'hw1' };
db.collection('grades').findOne(query, function(err, doc) {
if(err) throw err;
if(!doc) {
cons... |
# -*- coding: utf-8 -*-
"""
services.payment
~~~~~~~~~~~~~~~~
Services for payments
"""
import falcon
import arrow
from .mongo import DService
from smpa.models.payment import Payment
class PaymentService(DService):
__model__ = Payment
def check(self, id):
"""Checks the status of a paym... |
(function ($) {
"use strict";
/*-------------------------------------
Contact Form initiating
-------------------------------------*/
var contactForm = $('#contact-form');
if (contactForm.length) {
contactForm.validator().on('submit', function (e) {
var $this = $(this),
... |
/**
* DevExtreme (viz/tree_map/tiling.rotated_slice_and_dice.js)
* Version: 18.2.3
* Build date: Wed Nov 07 2018
*
* Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var tiling = require("./tiling"),... |
import sys
from collections import OrderedDict
from functools import partial
import torch.nn as nn
from ..modules import IdentityResidualBlock, ABN, GlobalAvgPool2d
class WiderResNet(nn.Module):
def __init__(self,
structure,
in_channels,
norm_act=ABN,
... |
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import { fetchPosts } from '../middleware';
import PostContainer from '../containers/PostContainer';
// import axios from 'axios';
// import { parseJson } from '../helpers';
// todo: once Comment fetch is completed and render is co... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./EventStreamMarshaller"), exports);
tslib_1.__exportStar(require("./Int64"), exports);
//# sourceMappingURL=index.js.map |
/*! modernizr 3.6.0 (Custom Build) | MIT *
* https://modernizr.com/download/?-setclasses-shiv !*/
!function(e,n,t){function a(e,n){return typeof e===n}function o(){var e,n,t,o,r,s,l;for(var f in c)if(c.hasOwnProperty(f)){if(e=[],n=c[f],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.alias... |
import React from 'react';
import Definition from '../../components/Definition';
import { Link } from 'react-router-dom';
function Notification({ notification }) {
return (
<React.Fragment>
<h4>Info</h4>
<Definition
items={[
['Name', notification.name],
['Subject', notif... |
deepmacDetailCallback("8c1cda100000/28",[{"a":"Pfaelzer Ring 18 Hockenheim Baden-Wuerttemberg DE 68766","o":"GESAS GmbH","d":"2018-02-11","t":"add","s":"ieee","c":"DE"}]);
|
# 2. Exercício Treino -
# Crie um dicionário em que suas chaves correspondem
# a números inteiros entre [1, 10] e cada valor associado é
# o número ao quadrado.
# {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}
dicio = dict() or {1: None, 2: None, 3: None, 4: None, 5: None, 6: None,... |
"""
Copyright 2018-2020 Jakub Kuczys (https://github.com/jack1142)
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... |
//// [typeAliases.ts]
// Writing a reference to a type alias has exactly the same effect as writing the aliased type itself.
type T1 = number;
var x1: number;
var x1: T1;
type T2 = string;
var x2: string;
var x2: T2;
type T3 = boolean;
var x3: boolean;
var x3: T3;
type T4 = void;
var x4: void;
var x4: T4;
type T5 ... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
NavigatorIOS,
} = React;
var TimerMixin = require('react-timer-mixin');
var SplashScreen = require('./S... |
from epynet import Network
from nose.tools import assert_equal, assert_almost_equal
import pandas as pd
class TestNetwork(object):
@classmethod
def setup_class(self):
self.network = Network(inputfile="tests/testnetwork.inp")
self.network.solve()
@classmethod
def teadown(self):
... |
const isCustomer = (state = true, { type }) => {
switch (type) {
case 'TOGGLE USER':
return !state;
default:
return state;
}
};
export default isCustomer;
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vega-util'), require('vega-loader')) :
typeof define === 'function' && define.amd ? define(['exports', 'vega-util', 'vega-loader'], factory) :
(global = global || self, factory(global.vega = {}, ... |
exports.strings = {
///////////////////////////////////////////////////////////////////////////
'finish-dialog-finished': {
'__desc__': 'One of the lines in the next level dialog',
'ja': '最後のレベルをクリアしました!すごい!!',
'en_US': 'Wow! You finished the last level, great!',
'de_DE': 'Wow! Du hast den letzten L... |
import * as PhaserObjects from './phaserObjects';
/** Group with some added functionality for text overlays.
* @private
* @extends Phaser.Group
*/
class TextGroup extends PhaserObjects.Group {
/**
* @param {Object} game - Current game instance.
* @param {number} x - The x coordinate on screen where t... |
import React, { PropTypes } from 'react';
const PlaybackToggle = (
{},
{ media }
) => (
<div onClick={media.togglePlayback}>{media.playing ? 'Stop' : 'Play'}</div>
);
PlaybackToggle.contextTypes = {
media: PropTypes.shape({
playing: PropTypes.bool.isRequired,
togglePlayback: PropTypes.func.isRequired,... |
import build from '../../rollup.config';
export default build('reactNexus');
|
import { asyncRoutes, constantRoutes } from '@/router'
/**
* 判断角色是否有权限显示该菜单
* Use meta.role to determine if the current user has permission
* @param roles
* @param route
*/
function hasPermission(roles, route) {
if (route.meta && route.meta.roles) {
return roles.some(role => route.meta.roles.includes(role))... |
import React from 'react';
import PropTypes from 'prop-types';
import {
Field,
HelpMessage,
FieldInput,
FieldConstants,
FormClassManager,
} from '@axa-fr/react-toolkit-form-core';
import { InputManager } from '@axa-fr/react-toolkit-core';
import CustomDate from './CustomDate';
const propTypes = {
...Field... |
import * as fs from 'fs';
const saveGraphJSON = (path, graph) => {
const data = JSON.stringify(graph, null, 4);
try {
fs.writeFileSync(path, data, 'utf8');
} catch (err) {
console.log(err);
}
};
export default saveGraphJSON;
|
import filter from 'lodash/filter';
import find from 'lodash/find';
import findIndex from 'lodash/findIndex';
import forEach from 'lodash/forEach';
import isEmpty from 'lodash/isEmpty';
import keys from 'lodash/keys';
import some from 'lodash/some';
angular
.module('managerApp')
.controller(
'CloudProjectOpens... |
import { existsSync } from 'fs';
import sade from 'sade';
import colors from 'kleur';
import * as ports from 'port-authority';
import { load_config } from './core/config/index.js';
import { networkInterfaces, release } from 'os';
async function get_config() {
// TODO this is temporary, for the benefit of early adopte... |
import Ember from 'ember';
import { STATUS, STATUS_INTL_KEY, classForStatus } from 'ui/components/accordion-list-item/component';
export default Ember.Component.extend({
intl: Ember.inject.service(),
service : null,
allCertificates : null,
lbConfig: Ember.computed.alias('service.lbConfig'),
... |
module.exports = {
isAzStyle (peerId) {
if (peerId.charAt(0) !== '-') return false
if (peerId.charAt(7) === '-') return true
/**
* Hack for FlashGet - it doesn't use the trailing dash.
* Also, LH-ABC has strayed into "forgetting about the delimiter" territory.
*
* In fact, the code to... |
"use strict";
// Native Node Imports
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = t... |
import axios from "axios";
import { logger } from "@/helpers.js";
const log = logger("[user]");
// const usersCol = "users";
const state = {
usersList: {},
loading: {
list: false
},
error: null
};
const getters = {
usersList: state => state.usersList,
loading: state => state.loading,
error: state =... |
import os
import sys
sys.path.append(".")
sys.path.append("..")
from utils import constants
def read_vocab_file(vocab_file):
token2index = {}
index2token = []
with open(vocab_file, 'r', encoding="utf-8") as f:
for line in f.readlines():
token = line.strip()
i... |
const _ = require("the-lodash");
module.exports = {
target: {
path: ["ns"]
},
order: 10,
handler: ({scope, item, logger}) =>
{
logger.info("Polisher NS: %s", item.naming);
var namespaceScope = scope.getNamespaceScope(item.naming);
var properties = {
"... |
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function k(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function b... |
'use strict';
const defaults = require('lodash/defaults');
const util = require('hexo-util');
const pathFn = require('path');
const Permalink = util.Permalink;
let permalink;
function postPermalinkFilter(data) {
const config = this.config;
const meta = {
id: data.id || data._id,
title: data.slug,
name... |
describe('EventStore', function() {
afterEach(function() {
localStorage.clear();
});
var assert = chai.assert,
adapter = new Osef.storage.LocalstorageEventStoreAdapter('test'),
store = new Osef.storage.EventStore(adapter),
bus = Osef.wires.EventBus;
describe('appendToSt... |
import React from 'react';
import { nextSection, toCurrency } from '../lib/Utility.js';
/**
* Print-only component that lists out inputs without controls
*/
class BasicInfoData extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="pre_calculate basic_... |
import React from 'react';
import { StyledIcon } from '../StyledIcon';
export const CircleInformation = props => (
<StyledIcon viewBox='0 0 24 24' a11yTitle='CircleInformation' {...props}>
<path fill='none' stroke='#000' strokeWidth='2' d='M12,22 C17.5228475,22 22,17.5228475 22,12 C22,6.4771525 17.5228475,2 12,... |
import torch
import torch.nn as nn
import torch.nn.functional as F
from ptsemseg.utils import handle_input_target_mismatch
def cross_entropy2d(input, target, weight=None, reduction='sum', bkargs=None):
n, c, h, w = input.size()
input, target = handle_input_target_mismatch(input, target)
input = input.tr... |
apikey = '7kQA3wxBMZe3lsDYyxdlrz83'
|
"""RAPID-ROS Interface to communicate with YuMi robot through RWS."""
# Copyright (c) 2022, ABB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with
# or without modification, are permitted provided that
# the following conditions are met:
#
# * Redistributions of source code must retai... |
#!/usr/bin/env node
/* @ts-check */
/* eslint-disable no-console */
/* Copies dependency versions from Deck's root package.json (../../package.json) */
const fs = require(`fs`);
const path = require(`path`);
const yargs = require('yargs')
.usage(`$0 [--no-dev] [--no-peer] [package.json]`)
.option('source', {
... |
# -*- coding: utf-8 -*-
import numpy as np
from ThymeBoost.exogenous_models import (ols_exogenous,
decision_tree_exogenous,
glm_exogenous)
class FitExogenous:
def __init__(self,
exo_estimator='ols',
... |
import math
import torch
import torch.nn.functional as F
def psnr(gt, img):
"""
calculate psnr between two images
:param gt: groundtruth image
:param img: inference image
:return: psnr
"""
mse = torch.mean( (gt - img) ** 2 )
if mse < 1.0e-10:
return 100
PIXEL_MAX = 1.0
r... |
// 创建
$.validator.setDefaults({
highlight: function(e) {
$(e).closest(".form-group").removeClass("has-success").addClass("has-error")
},
success: function(e) {
e.closest(".form-group").removeClass("has-error").addClass("has-success")
},
errorElement: "span",
errorPlacement: funct... |
'use strict';
var express = require('express');
var routes = require('./app/routes/index.js');
var mongoose = require('mongoose');
var passport = require('passport');
var session = require('express-session');
var expressHbs = require("express-handlebars");
var bodyParser = require("body-parser");
var app = express();... |
{
jQuery.fn.creaTip = function(textoTip, opciones) {
let configuracion = {
velocidad: 500,
animacionMuestra: {width: "show"},
animacionOculta: {opacity: "hide"},
claseTip: "tip"
}
jQuery.extend(configuracion, opciones);
... |
#!/usr/bin/env python3
import os
import sys
import xlrd
import shutil
from pymongo import MongoClient
from fun import clean_str, split_pro
from dialogue import Dialogue
from qa import Qa
from greeting import Greeting
from sale import Sale
from sale_2 import Sale_2
from refuse2chat import Refuse2chat
from interaction i... |
webshims.register('jme', function($, webshims, window, doc, undefined, options){
"use strict";
var props = {};
var fns = {};
var allowPreload = false;
$(window).on('load', function(){
allowPreload = true;
var scrollTimer;
var allow = function(){
allowPreload = true;
};
$(window).on('scroll', function... |
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
alias: {
'@react/cross-core': './_CrossBasement/CrossCore',
... |
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = "ttr",
version = "0.1.1",
packages = find_packages(),
# metadata for upload to PyPI
author = "Andrey Volkov",
author_email = "amadev@mail.ru",
description = "Turbo test runner",
license = "MIT",
keywords... |
const Scene = require('../../scene');
const PromiseCondition = require('../../promise-condition');const CapitalOneJustClickAwareScene = require('./just-click-aware-scene');
class CapitalOneCreditWiseOpenAccountsScene extends CapitalOneJustClickAwareScene.WithSpinner {
constructor(args) {
super(Object.assign({
... |
'''
Inspector
=========
.. versionadded:: 1.0.9
.. warning::
This module is highly experimental, use it with care.
The Inspector is a tool for finding a widget in the widget tree by clicking or
tapping on it.
Some keyboard shortcuts are activated:
* "Ctrl + e": activate / deactivate the inspector view
... |
from pydantic import BaseModel
class BusinessDetailsOutput(BaseModel):
business_name: str
business_alias_name: str
address_line_1: str
address_line_2: str = None
city: str = None
state: str = None
zip: str = None
country: str = None
telephone: str = None
website: str = None
... |
'use strict';
APP.controller('HomeController', ["$scope", "$document", "$filter", "animals", "imagePath", "category", function($scope, $document, $filter, animals, imagePath, category) {
const LEFT = 37,
RIGHT = 39;
Array.prototype.max = function() {
return Math.max.apply(null, this);
};
... |
import { shallowMount, mount, createLocalVue } from '@vue/test-utils'
import OField from '@components/field/Field'
import OFieldBody from '@components/field/FieldBody'
import OInput from '@components/input/Input'
const localVue = createLocalVue()
localVue.component('o-field', OField)
localVue.component('o-field-horizo... |
import React from "react";
import { View } from "react-native";
function Header(props) {
return (
<View>
<View></View>
</View>
);
}
export default Header;
|
/*
* Component for viewing the shape of a schema.
*/
import React from 'react'
import { PropTypes as Props } from './constants'
import PropTypes from 'prop-types'
import { HoverPopover } from './HoverPopover'
import * as R from 'ramda'
import { Box } from '@material-ui/core'
const SCHEMA_TYPE_IDENTIFIER = {
// ... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.5.6.1.1
description: >
A new instance has the message property if created with a parameter
info: |
19.5.6.1.1 NativeError ( message )
...
4. If message is no... |
import datetime
import functools
import math
from django.db.models import Count, StdDev, Avg
from django.db.utils import DatabaseError
from django.core.management.base import BaseCommand, CommandError
from apps.canvas_auth.models import User
from canvas.models import FollowCategory
from canvas.browse import frontpage... |
const mongoose = require("mongoose");
const express = require("express");
const bodyparser = require("body-parser");
const hbs = require("express-handlebars");
const cookie = require("cookie-parser");
const session = require("express-session");
require("dotenv").config();
// const userModel = require('./models/userMod... |
""" Module to access the Files endpoints """
# pylint: disable=too-many-lines,too-many-locals,too-many-public-methods,too-few-public-methods
from typing import Any, Dict, Optional, Union
from ...models import (
FileInfo,
FileInfoList,
GetFileLinkResponse200,
SearchFilesMultipartData,
UploadFileMul... |
/**
* kang
* 2021/10/12
*/
const {
vec2,
vec3,
vec4
} = glMatrix;
var canvas;
var gl;
var points = [];
var colors = [];
var xAxis = 0;
var yAxis = 1;
var zAxis = 2;
var axis = 0;
var theta = [0, 0, 0];
var thetaLoc;
//偏移量
var scale=vec3.fromValues(1, 1, 1);
var scaleLoc;
window.onload = function initCube()... |
import Alert from './components-v4/alert-native';
import Button from './components-v4/button-native';
import Carousel from './components-v4/carousel-native';
import Collapse from './components-v4/collapse-native';
import Dropdown from './components-v4/dropdown-native';
import Modal from './components-v4/modal-native';
... |
import React from 'react'
import {css} from '@emotion/core'
import {renderFragment} from 'test-utils'
import {Text} from './Text'
test('<Text> -> as prop', () => {
expect(renderFragment(<Text as="div" />)).toMatchSnapshot()
})
test('<Text> -> box properties', () => {
expect(renderFragment(<Text d="block" />)).toM... |
/// <reference types="Cypress" />
describe("Email assertion:", () => {
it("Look for an email with specific subject and link in email body", function() {
// debugger; //Uncomment for debugger to work...
cy.task("gmail:get-messages", {
options: {
include_body: true
}
}).then(emails => {... |
Prism.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|I... |
const mongoose = require('mongoose')
const businessSchema = new mongoose.Schema({
name: {
type: String,
required: [true, 'Name is required']
},
businessImg: {
type: String
},
createdAt: {
type: Number,
default: Date.now() // Get a timestamp :)
}
})
const businessModel = mongoose.m... |
"""
Aqualink API documentation
The Aqualink public API documentation # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import aqualink_sdk
from aqualink_sdk.model.set_admin_level_dto import SetAdminLevelDto
class T... |
import React from "react";
import { Modal } from "antd";
import VideoPlayer from "react-video-js-player";
function VideoModal({ isVisible, setVisible, videoUrl }) {
return (
<Modal
title="Demo"
visible={isVisible}
onCancel={() => {
setVisible(false);
}}
style={{
top: 30,
display: "flex",
... |
const expect = require('chai').expect;
const Quirk = require("../../index");
describe('add substitutions', function () {
it('should create a valid quirk from substitutions added via addSubstitution', function () {
let testSub = new Quirk();
testSub.addSubstitution('w', 'ww');
testSub.addSub... |
(function($){function findLine(sdpLines,prefix,substr){return findLineInRange(sdpLines,0,-1,prefix,substr);}
function findLineInRange(sdpLines,startLine,endLine,prefix,substr){var realEndLine=(endLine!=-1)?endLine:sdpLines.length;for(var i=startLine;i<realEndLine;++i){if(sdpLines[i].indexOf(prefix)===0){if(!substr||sd... |
import React from 'react';
import createSvg from './utils/createSvg';
export default createSvg(<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zM18 4h-2.5l-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1z" />, ... |
import { apiURL, getTabla } from "../script.js";
const resource = "/clientes";
let container = document.querySelector("#tabla");
const drawTablaCliente = async ()=>
{
const btnModificar = document.createElement("button");
btnModificar.setAttribute("type", "button");
btnModificar.setAttribute("class", "... |
"use strict";
import Id from "./Id";
if ( __CLIENT__ ) {
var THREE = require( "three" );
}
/**
* Entity
*/
export default class Entity extends Id {
static ID = 0;
/**
* Config
* @type {{}}
* @protected
*/
_config = {};
/**
* Create an entity
* @param {String... |
################################################################################
# The MIT License
#
# Copyright (c) 2019-2021, Prominence AI, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the So... |
from configparser import ConfigParser
from pathlib import Path
class PushoverConfigFile:
token = None
user = None
def __init__(self):
self.reader = ConfigParser()
self.reader.read(self.paths())
try:
self.token = self.reader['Pushover']['token']
self.user... |