text
stringlengths
3
1.05M
/* * Copyright (c) Michael Polyak. All rights reserved. */ "use strict"; const expect = require("chai").expect; const sinon = require("sinon"); const Expression = require("../src/expression.js"); const Tokenize = require("../src/tokenize.js"); const Solve = require("../src/solve.js"); describe("Stream", (...
jQuery(function($) { $('.datepicker').datepicker({ maxDate: "+1m +1d +1y", dateFormat: 'mm/dd/yy', changeMonth: true, changeYear: true, yearRange: "-100:+0", }); $(".fancybox").fancybox(); $('.select2').select2(); initPostImageUpload(); }); var loadFile ...
var options = { manager: require("../../../src/managers/garment-master-plan/style-manager"), model: require("dl-models").garmentMasterPlan.Style, util: require("../../data-util/garment-master-plan/style-data-util"), validator: require("dl-models").validator.garmentMasterPlan.style, createDuplicate: ...
// Copyright 2018-2021 Polyaxon, Inc. // // 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 agre...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0...
import Vue from 'vue'; import App from './App.vue'; import router from './router'; import ElementUI from 'element-ui'; import VueI18n from 'vue-i18n'; import { messages } from './components/common/i18n'; import 'element-ui/lib/theme-chalk/index.css'; // 默认主题 // import './assets/css/theme-green/index.css'; // 浅绿色...
var _ = require('underscore')._, moment = require('moment'), utils = require('kujua-utils'); exports.isClinic = function(doc) { if (!doc) { return undefined; } return doc.type === 'clinic'; } exports.isHealthCenter = function(doc) { if (!doc) { return undefined; } return doc.type === 'health_c...
import React, {useState} from 'react'; import { View, Text, Image } from 'react-native'; import styles from './styles'; import Logo from '../../assets/logo.png'; import Perfil from '../../assets/perfil.png'; import { TouchableOpacity } from 'react-native-gesture-handler'; import { useNavigation } from '@react-navigatio...
import Ext_calendar_panel_Base from '../../../Ext/calendar/panel/Base.js'; export default class Ext_calendar_panel_Weeks extends Ext_calendar_panel_Base { static PROPERTIES() { return [ 'activeChildTabIndex', 'activeItem', 'addForm', 'addOnSelect', 'alignSelf', 'allowFocusingDisabledChildren', 'allowSelection', '...
# This file is part of the PySide project. # # Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies). # Copyright (C) 2010 Riverbank Computing Limited. # Copyright (C) 2009 Torsten Marek # # Contact: PySide team <pyside@openbossa.org> # # This program is free software; you can redistribute it and/or # m...
/* * test/client/test.js */ define([ 'intern!bdd', 'intern/chai!expect' ], function (bdd, expect) { with (bdd) { describe('client', function () { it('should pass', function () { expect(true).to.equal(true); }); }); } });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { server: { type: 'object', title: 'Language Server', order: 10, properties: { tool: { type: 'string', title: 'Tool', description...
# -*- coding: utf-8 -* """Serialization tests.""" from datetime import date, datetime from decimal import Decimal import pytest from prismatic import serialization as s address_serializer = s.Serializer({ 'city': s.Field('city', s.String), 'postcode': s.Field('postcode', s.String), 'country': s.Field('c...
const createParameterCoercer = require('./parameter') describe('Empty', () => { const parameter = {} const coercer = createParameterCoercer(parameter) it('should return the original value when no coercion is needed', () => { const payload = { value: 'value' } const expected = 'value' expect(coercer...
export default function findStyle(code, cursor) { cursor = cursor || 0; if (!code) return []; code = code.substring(cursor); if (code.length == 0) return []; let matches = code.match(/<style(([\s\S])*?)<\/style>/); if (!matches) return []; const start = matches.index + cursor; const styl...
var searchData= [ ['material',['Material',['../class_material.html',1,'']]], ['matrix1vector1',['Matrix1Vector1',['../struct_matrix1_vector1.html',1,'']]], ['matrix2x2',['Matrix2x2',['../class_matrix2x2.html',1,'']]], ['matrix3x3',['Matrix3x3',['../class_matrix3x3.html',1,'']]], ['matrixmxn',['MatrixMxN',['.....
var diffs=[0,0,0,0]; //var chargers=[16,10,15,5,1,11,7,19,6,12,4]; // var chargers=[28,33,18,42,31,14,46,20,48,47,24,23,49,45,19,38,39,11,1,32,25,35,8,17,7,9,4,2,34,10,3]; var chargers=[126,38,162,123,137,97,92,67,136,37,146,2,139,74,101,163,128,127,13,111,30,117,3,93,29,152,80,21,7,54,69,40,48,104,110,142,57,116,31,70...
import unittest import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../vk'))) import vk_api class TestVkRequest(unittest.TestCase): def test_make_api_request_without_access_token(self): output = vk_api.make_vk_api_request('users.get', user_ids=1, fields='...
import axios from "axios"; import { GET_APPLICATIONS, GET_APPLICATION, GET_ERRORS, APPLICATION_LOADING, } from "./types"; //Get all Applications export const getApplications = () => (dispatch) => { dispatch(setApplicationLoading()); axios .get("/api/application/all") .then((res) => dispatch({ type...
#!/usr/bin/env node const {existsSync} = require(`fs`); const {createRequire, createRequireFromPath} = require(`module`); const {resolve} = require(`path`); const relPnpApiPath = "../../../../.pnp.cjs"; const absPnpApiPath = resolve(__dirname, relPnpApiPath); const absRequire = (createRequire || createRequireFromPat...
# Copyright 2014 Alcatel-Lucent USA Inc. # # 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 l...
"""Loss functions.""" import torch.nn as nn from pycls.core.config import cfg # Supported loss functions _loss_funs = { 'cross_entropy': nn.CrossEntropyLoss, } def get_loss_fun(): """Retrieves the loss function.""" assert cfg.MODEL.LOSS_FUN in _loss_funs.keys(), \ 'Loss function \'...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const del = require("del"); const vinylPaths = require("vinyl-paths"); const path = require("path"); const fs = require("fs-extra"); function replaceFileIfExists(sourcePath, targetPath) { if (!fs.existsSync(sourcePath)) { return; ...
(function(d){d['id']=Object.assign(d['id']||{},{a:"Tidak dapat mengunggah berkas:",b:"Alat gambar",c:"Alat tabel",d:"Insert Image Url",e:"URL tidak boleh kosong.",f:"Tebal",g:"Miring",h:"Sisipkan gambar atau berkas",i:"Pilih tajuk",j:"Tajuk",k:"Tautan",l:"widget gambar",m:"Tambahkan deskripsi gambar",n:"Gambar ukuran p...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
/** * Copyright 2017 The AMP HTML Authors. All Rights Reserved. * * 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 require...
/** * @author Kuitos * @homepage https://github.com/kuitos/ * @since 2016-03-08 */ import Animation from 'angular-es-utils/animation'; import Popup from '../../common/bases/Popup'; const OPENING_CLASS = 'tips-opening'; export default class Tips extends Popup { constructor(element, container, openHook, closeHo...
# # Classes for calcuting the effective resistance of current collectors in a pouch cell # import pybamm class EffectiveResistance(pybamm.BaseModel): """ A model which calculates the effective Ohmic resistance of the current collectors in the limit of large electrical conductivity. For details see [1]_. ...
import React from 'react'; class FetchData extends React.Component { constructor(props){ super(props) this.state = { playing: [], hei: '1', intervalId: null, url: '' } } componentDidMount(){ var that = this; fetch("https://apollo.kevinmidboe.com/api/v1/plex/playing").then( f...
from kafka.structs import * from kafka.errors import *
import action from 'action-helper'; import request from '../../utils/axios'; import {formatDate} from '../../utils/date'; export const changeSort = action('CHANGE_SORT', 'payload'); export const setObjectsData = action('SET_OBJECTS_DATA', 'payload'); export const setSource = action('SET_SOURCE', 'payload'); export co...
frostybot_exchange_binance_base = require('./exchange.binance.base'); module.exports = class frostybot_exchange_binance_futures extends frostybot_exchange_binance_base { // Class constructor constructor(stub) { super(stub); this.stablecoins = ['USDT','BUSD']; // Stablecoins supported...
# # RawIO # Copyright (c) 2021 Yusuf Olokoba. # from dateutil.parser import parse as parse_datetime from PIL import Image from typing import Callable def timestamp_similarity (max_delta_time: float=6.) -> Callable[[str, str], bool]: """ Create a similarity function which uses temporal proximity as a prox...
from Node import Node import Parser import sys import heapq import time def main(): filename = "AISearchfile535.txt" distances = Parser.loadSearchFile(filename) # Distance matrix n = len(distances) # No. of nodes priorityQueue = [] parents = {} total = 0 # Add all vertexes to the pQ -...
var app = require('../app'); var mongoose = require('mongoose'); var mongodbConnectionString = require('./config/mongodbConnectionString'); function _start(){ // mongoose.connect(mongodbConnectionString); _routeParser(); } function _routeParser(){ var homeController = require('./controllers/home'); app.get('/', ...
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ /* AMD */ if (typeof define === 'function' && define.amd) define(["protobufjs/minimal"], fa...
(function() { 'use strict'; angular .module('app.core') .factory('kiwiwebapi', kiwiwebapi); kiwiwebapi.$inject = ['parseheaders', 'parse']; /* @ngInject */ function kiwiwebapi(parseheaders, parse) { var factory = { newKiwiWebResource: newKiwiWebResource }; return factory; funct...
module.exports = { description: 'require expressions should snapshot the current exports state' };
import { promoPanel } from '../../src/modules/Index/components/subComponents/promoPanel.locale'; export const expectUserToDisplayCorrectFirstName = (username, firstname) => { cy.visit(`/?user=${username}`); cy.viewport(1300, 1000); cy.wait(1000); cy.get('div[data-testid="personalised-panel"]').contains...
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved def test(): """ Verify that empty log messages get handled properly """ # get the channel from journal.Warning import Warning as warning # make a warning...
import * as tslib_1 from "tslib"; import * as ɵngcc0 from '@angular/core'; var BooleanValueAccessor_1; import { Directive, ElementRef, HostListener } from '@angular/core'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { ValueAccessor, setIonicClasses } from './value-accessor'; let BooleanValueAccessor = Bo...
def build_tiles(data_set, step, top, bottom, left, right): # top - bottom here gives the number of degrees that our data covers # dividing by step gives the number of areas it will be split into but is off by one tiles = [[0 for y in range(1 + int((top - bottom) / step))] for x in range(1 + int((right - lef...
"""Tests that proper exceptions are raised.""" import pytest from requests.exceptions import HTTPError from pyura.constants import CARPARK_AVAILABILITY_ENDPOINT from pyura.exceptions import ApiError from .test_client import client class TestAPIErrors: def test_http_errors(self, client, requests_mock): # ...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import { createDate } from '../create/date-from-array'; /** * @param {?} date * @param {?=} isUTC * @return {?} */ export function getHours(date, isUTC = false) { return isUTC ? date.getUTCHours() : date.getHours(); } /** * @par...
/** * Maximum image size constants when uploading */ export const MAX_POST_IMAGE_SIZE = 3000000; export const MAX_USER_COVER_IMAGE_SIZE = 5000000; export const MAX_USER_PROFILE_IMAGE_SIZE = 2000000;
import UIElement from '../UIElement'; const DATA_COLORSETS_INDEX = 'data-colorsets-index'; export default class ColorSetsChooser extends UIElement { template () { return ` <div class="color-chooser"> <div class="color-chooser-container"> <div class="colorse...
import React, { Component } from 'react'; import ReactDOM from "react-dom"; import { HashRouter as Router, Route, Switch, Link } from "react-router-dom"; import "./index.css"; import FullPage from "./FullPage"; import Sanmin from "./Sanmin"; // import Sanmin from '../components/Sanmin'; import "./inde...
'use strict'; var Calendar = require('./lib/calendar'), assert = require('chai').assert; marionette('week view', function() { var app, week; var client = marionette.client({ prefs: { // we need to disable the keyboard to avoid intermittent failures on // Travis (transitions might take longer ...
import _ from 'lodash'; import React from 'react'; class Commitments extends React.Component { constructor() { super(); this.colors = { "research": "rgb(210,210,255)", "teaching": "rgb(195,240,195)", "service": "rgb(255,222,162)", "personal...
__version__ = '0.2.8' __author__ = 'George Cushen'
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
import pyml.torch.dataset as ds def test_load_mnist(): train_loader, test_loader = ds.load_mnist(batch_size=100, test_batch_size=1000) def test_load_mnist_with_validation(): train_loader, val_loader, test_loader = ds.load_mnist_with_validation(batch_size=100, test_batch_size=1000, validation_size=50000) def tes...
(function ($) { $.extend($.summernote.lang, { 'id-ID': { font: { bold: 'Tebal', italic: 'Miring', underline: 'Garis bawah', strikethrough: 'Coret', clear: 'Bersihkan gaya', height: 'Jarak baris', size: 'Ukuran font' }, image: { imag...
var $dropdownElems = $('.dropdown-cont'); var $filterElems = $('.filter-item'); var $locationElems = $('.partner-location'); var $locationElemsFirst = $('.partner-location:first-of-type'); var $isoContainer; // FUNCTIONS window.optly.mrkt.filter = { binder: function() { var self = this; $dropdownElems.on(...
import React from 'react'; import { text, boolean } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import addToStorie from '@axa-fr/storybook-addons'; import Modal, { ModalCore, Body, Footer, HeaderBase, } from '@axa-fr/react-toolkit-modal-default'; import readme from '@axa-f...
import unittest from functools import partial import math import json from artifax import build, At from artifax.exceptions import UnresolvedDependencyError class BuildTest(unittest.TestCase): def test_empty_build(self): artifacts = {} result = build(artifacts) self.assertEqual(result, {})...
/* * Project: koa-skeleton https://github.com/danneu/koa-skeleton * Copyright 2017 danneu https://github.com/danneu * License (MIT) */ exports.GOOGLE_CONSUMER_KEY = process.env.GOOGLE_CONSUMER_KEY; exports.GOOGLE_CONSUMER_SECRET = process.env.GOOGLE_CONSUMER_SECRET; exports.JWT_SECRET = process.env.JWT_SECRET; // Ens...
var dir_8fb7de2c5efdc118b93fbb180b1604c7 = [ [ "common", "dir_139e7a63697b55dd76f4f615d91f8462.html", "dir_139e7a63697b55dd76f4f615d91f8462" ], [ "robot", "dir_7e2b9a5cfa086c8901c53a15b78652e4.html", "dir_7e2b9a5cfa086c8901c53a15b78652e4" ] ];
const path = require(`path`) module.exports = async ({ graphql, actions }) => { const { createPage } = actions const result = await graphql(` query { wpcontent { posts { nodes { id uri title content } } } } `)...
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; import React from 'react'; import styled from 'styled-components'; export var ArrowsAlt = s...
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Paneset, Pane, Button, } from '@folio/stripes/components'; import { stripesConnect } from '@folio/stripes/core'; import { DataFetcher, createUrl, } from '@folio/stripes-data-transfer-components'; import { QueryFileUploader,...
OC.L10N.register( "activity", { "Activities" : "Attività", "Error loading activities" : "Errore durante il caricamento delle attività", "No activities" : "Nessuna attività", "Load more activities" : "Carica altre attività", ", " : ", ", "{parameterList} and {lastParameter}" : "{parameter...
// Copyright (c) 2019, Jamali Infocom and contributors // For license information, please see license.txt /*frappe.ui.form.on('Field Order', { onload: function(frm) { frm.page.sidebar.remove(); frm.page.wrapper.find(".layout-main-section-wrapper").removeClass("col-md-10"); } });*/ cur_frm.add_fetch("item_cod...
const path = require('path'); const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); module.exports = [ { mode: 'development', devtool: 'cheap-eval-source-map', entry: './src/server/cli.ts', target: 'node', stats: { // Ignore warnings due to dynamic module loading ...
"use strict"; var ResponseErrorHandler = require('./responseErrorHandler'); class MongoDBErrorHandler extends ResponseErrorHandler{ constructor(error,peticion,respuesta,next){ super(error,peticion,respuesta,next) } }
import time from com.dtmilano.android.viewclient import ViewClient, View import logging class ViewTemplate(object): """ Used to represent a android View object. When you want to find a view, you need to specify which parameters to match. It will compare all non None attributes to see if it matches a View....
var searchData= [ ['id',['id',['../a00070.html#a6319f6981dbbcff973574420e81090ce',1,'ble_gap_sec_kdist_t']]], ['id_5faddr_5finfo',['id_addr_info',['../a00052.html#a1bd1659b09527f11f048c6e26cc7dfbe',1,'ble_gap_id_key_t']]], ['id_5finfo',['id_info',['../a00047.html#a301c28abac3bf1f2f38d2b95854695cd',1,'ble_gap_evt_...
# The MIT License (MIT) # Copyright (c) 2021 Tom J. Sun # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, ...
//// [conditionalExpressionNewLine7.ts] var v = a ? b : c; //// [conditionalExpressionNewLine7.js] var v = a ? b : c;
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { QueryRenderer } from '@cubejs-client/react'; import { Spinner, Histogram, IntervalSelector } from '../../components'; import { computeHistogramData } from './chartUtil'; import './AnswersReport.css'; const renderHistogram = (Compone...
import platform import textwrap import time import unittest import pytest from conans.model.ref import ConanFileReference from conans.test.utils.tools import TestClient, GenConanfile from conans.util.files import save class CompatibleIDsTest(unittest.TestCase): def test_compatible_setting(self): client...
(function () { 'use strict'; function CalendarService($window, $http, $q) { var service = {}; service.events = []; service.getCalendarEvents = function () { var deferred = $q.defer(); service.events = []; if (typeof config.calendar != 'undefined' && typeof config.calendar.icals != ...
import Ext_d3_hierarchy_partition_Sunburst from './Ext/d3/hierarchy/partition/Sunburst.js'; import ElementParser from './ElementParser.js'; export default class EWCD3_sunburst extends Ext_d3_hierarchy_partition_Sunburst { constructor() { super ([], []); this.xtype = 'd3-sunburst'; } } try { window.custom...
(function() { 'use strict'; angular .module('app.login') .component('idSignup', signup()); /** * Internal function that returns the component. * @returns {object} the angular component */ function signup() { return { templateUrl: 'app/features/login/s...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var FilePlus = React.forwardRef(function (props, ref) { var attrs = { "fill": "none", "xmlns": "http://www.w3.org/2000/svg", "stroke": "currentColor", ...
import render_loader from "../templates/loader.hbs"; export function make_indicator(outer_container, opts) { opts = opts || {}; let container = outer_container; // TODO: We set white-space to 'nowrap' because under some // unknown circumstances (it happens on Keegan's laptop) the text // width cal...
const connection = require("./connection"); class DB { constructor(connection) { this.connection = connection; } findAllDepartments() { return this.connection.query("SELECT * FROM department"); } createDepartment(department) { this.connection.query( "INSERT INTO department SET ?", { ...
""" This example shows how a Bokeh plot can be embedded in an HTML document, in a way that the plot resizes to make use of the available width and height (while keeping the aspect ratio fixed). To make this work well, the plot should be placed in a container that *has* a certain width and height (i.e. non-scrollable),...
import React from "react" import { CCard, CCardBody, CCardHeader, CCol, CRow, CButton, CContainer, CForm, CFormGroup, CLabel, CInput, } from "@coreui/react" import CIcon from "@coreui/icons-react" import ChooseItem from "components/chooseItem/ChooseItem" import KeyGenerator from "components/keyGen...
export { default } from './es/icons/FileSyncOutlined';
var mongoose= require('mongoose'); var bcrypt = require('bcrypt'); var schema = new mongoose.Schema({ name: {type:String, required:true}, email: {type:String, required:true}, password: {type:String, required:true}, createdAt: {type:Date, required:true}, }) schema.statics.hashPassword = function hashP...
'use strict'; // Native import * as fs from 'fs'; import * as path from 'path'; // Packages import test from 'ava'; // Ours import * as server from '../helpers/server'; import * as browser from '../helpers/browser'; server.setup(); const {initDashboard} = browser.setup(); import * as C from '../helpers/test-consta...
/** * 文章管理 * @author 牧羊人 * @since 2020/7/4 */ layui.use(['form', 'function'], function () { var func = layui.function, form = layui.form, $ = layui.$; if (A == 'index') { //【TABLE列数组】 var cols = [ {type: 'checkbox', fixed: 'left'} , {field: 'id', widt...
require('@babel/register'); ({ ignore: /node_modules/ }); require('@babel/polyfill'); const HDWalletProvider = require('@truffle/hdwallet-provider'); let mnemonic = 'good argue sure spot toy note misery upon gesture neck flock gather'; let testAccounts = [ "0xf33e1e914a1abdf69067e8e194232be8bf1bbf51cf6fab255cdbc...
// CodeMirror is the only global var we claim window.CodeMirror = (function() { "use strict"; // BROWSER SNIFFING // Crude, but necessary to handle a number of hard-to-feature-detect // bugs and behavior differences. var gecko = /gecko\/\d/i.test(navigator.userAgent); var ie = /MSIE \d/.test(navigator.use...
import pygeostat as gs data_file = gs.ExampleData("point3d_ind_mv") data = data_file[data_file.variables] data_cor = data.corr() gs.correlation_matrix_plot(data_cor.values, cmap = 'bwr')
__author__ = 'Spasley' from model.group import Group import random def test_modify_group_name(app, db, check_ui): new_group_data = Group(name='very_new_name') if len(db.get_group_list()) == 0: app.group.create(Group(name='Test')) old_groups = db.get_group_list() group = random.choice(old_group...
import numpy as np from matplotlib.tri.triangulation import Triangulation def triplot(ax, *args, **kwargs): """ Draw a unstructured triangular grid as lines and/or markers. The triangulation to plot can be specified in one of two ways; either:: triplot(triangulation, ...) where triangulat...
/** * Helper Class for various calculations. * * @class MathUtil */ class MathUtil { // convert radians to degrees static radToDeg = (rad) => rad * 360 / (Math.PI * 2); // convert degrees to radians static degToRad = (deg) => deg * Math.PI * 2 / 360; // modulo for negative values static mod = (n) => ...
"use strict"; var Wag = require('../../'); var wag = new Wag(); var app = wag.mixin('web'); app.addPath('settingDirs', __dirname + '/settings'); app.run(function(feature) { console.log('Server listening on ' + feature.scope.settings.web.port); feature.listen(feature.scope.settings.web.port); });
'use strict' const { Matchers } = require('@pact-foundation/pact') const { getClients, postClient } = require('../../../src/consumer') describe('Clients Service', () => { const GET_EXPECTED_BODY = [ { firstName: 'Lisa', lastName: 'Simpson', age: 8, id: 1, }, { firstName: 'W...
let sidebar = document.getElementsByClassName("sidebar")[0]; window.addEventListener("load", () => { if (!sidebar) sidebar = document.getElementsByClassName("sidebar")[0]; sidebar.style.transform = "translateX(-500px)"; sidebar.style.opacity = 0; }); function openTab(url) { window.open(url) } window....
from collections import OrderedDict from itertools import product from typing import Dict, List, Union, Callable, Optional, Tuple from matplotlib.axes import Axes from matplotlib.patches import Patch from mpl_format.axes.axis_utils import new_axes from mpl_format.text.text_utils import wrap_text from pandas import Ser...
/*! * vue-tingle v0.0.1 * (c) 2017 ChangJoo Park * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('tingle.js'), require('tingle.js/dist/tingle.css'), require('vue')) : typeof define === 'function' ...
// script to send mail function sendMail(email,module_name,request_for){ if (confirm("Do you really want to send mail?")) { console.log(email); console.log(module_name); console.log(request_for); switch(module_name){ case 'organ': // send request for organ by mail $.ajax({ url: BASE_URL+"user...
import monaco, { addKeybinding } from "./live_editor/monaco"; import EditorClient from "./live_editor/editor_client"; import MonacoEditorAdapter from "./live_editor/monaco_editor_adapter"; import HookServerAdapter from "./live_editor/hook_server_adapter"; import RemoteUser from "./live_editor/remote_user"; import { rep...
import React from 'react' import { ExampleComponent } from 'oncase-cognito' import 'oncase-cognito/dist/index.css' const App = () => { return <ExampleComponent text="Create React Library Example 😄" /> } export default App
import {defineMessages} from 'react-intl'; export default defineMessages({ learnBtnLabel: { id: 'containers.DictsTopbar.learnBtnLabel', defaultMessage: 'Learn', }, learnSelectedBtnLabel: { id: 'containers.DictsTopbar.learnSelectedBtnLabel', defaultMessage: 'Learn selected ({selectedWordsCount})',...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); import Vuetify from 'vuetify' Vue.use(Vueti...
import asyncio from concurrent.futures import ThreadPoolExecutor from multiprocessing import Pool class TraditionalMultiThread: def __init__(self, method, method_params, max_count=5): self.method = method self.method_params = method_params self.max_count = max_count self.result = [...