text
stringlengths
3
1.05M
import { Directive, TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; /** Decorates the `ng-template` tags and reads out the template from it. */ export class McTabContent { constructor(template) { this.template = template; } } /** @nocollapse */ McTabContent.ɵfac = i0.ɵɵngDeclare...
import React from 'react' import RateTier from './RateTier' import {translateInterestPaymentDue, translateLendingRateType} from '../../utils/dict' import * as moment from 'moment' import ecomp from '../../utils/enum-comp' import {makeStyles} from '@material-ui/core' const useStyles = makeStyles(() => ({ sectionTitle...
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'react-icons-kit'; import Tabs, { TabPane } from 'rc-tabs'; import TabContent from 'rc-tabs/lib/TabContent'; import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar'; import 'rc-tabs/assets/index.css'; import Box from 'reuse...
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import AmpState from 'ampersand-state'; import util from 'util'; import { cloneDeep, isObject, omit } from 'lodash'; import {makeSparkPluginStore} from './storage'; /** * @class */ const SparkPlugin = AmpState.extend({ derived: { b...
import 'whatwg-fetch'; const LOCALE = 'koKR'; const DATA_URL = `https://api.hearthstonejson.com/v1/latest/${LOCALE}/cards.collectible.json`; const FILTER = card => card.type === 'MINION'; export default function fetchJSON(filter = FILTER){ return new Promise((resolve, reject) => fetch(DATA_URL) .then(res...
describe("Gilded Rose", function() { it("should return the name of the item", function() { const gildedRose = new Shop([ new Item("foo", 0, 0), new Item("bar", 0, 0) ]); const items = gildedRose.updateQuality(); expect(items[1].name).toEqual("bar"); }); it("should reduce the quality by double as is ...
var paper = {}; var temporalSymbolTable = {}; module.exports.init = function(){ paper = Raphael(document.getElementById("paper"), 0,0); } updateSymbolTable = module.exports.updateSymbolTable = function(updatedSymbolTable){ temporalSymbolTable = updateSymbolTable; draw(); } draw = module.expor...
class LoginFormController { constructor ($rootScope, $auth, $state, $stateParams, API, AclService) { 'ngInject' delete $rootScope.me this.$auth = $auth this.$state = $state this.$stateParams = $stateParams this.AclService = AclService this.registerSuccess = $stateParams.registerSuccess ...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * @namespace Phaser.Types.GameObjects.Mesh */
module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/essential', '@vue/airbnb' ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-param-reassign': ['err...
/** * Muuri Packer * Copyright (c) 2016-present, Niklas Rämö <inramo@gmail.com> * Released under the MIT license * https://github.com/haltu/muuri/blob/master/src/Packer/LICENSE.md */ import PackerProcessor, { createWorkerProcessors, destroyWorkerProcessors, isWorkerProcessorsSupported, } from './PackerProce...
from SPARQLWrapper import SPARQLWrapper, JSON from string import Template from sys import argv stream = argv[1].replace("csv","").replace(".stream","") mapping_file = open( argv[2] ) mapping_tmpl = Template( mapping_file.read() ) mappings = {"stream":stream, "next":'$MappingDeclaration'} res = mapping_tmpl.substitut...
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v1.model_utils import ( # noqa: F401 ApiTypeError, Mo...
import React, { PureComponent } from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Input, Modal, message } from 'antd'; import { updatePwd } from '@/services/signin'; import { md5Hash } from '../../utils/utils'; @Form.create() class UpdatePasswordDia...
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.charting.themes.Grasslands"]){dojo._hasResource["dojox.charting.themes.Grasslands"]=true;dojo....
$.views.converters({ upper:function(val) { val = "" + val; return val && val.toUpperCase(); }, lower:function(val) { val = "" + val; return val && val.toLowerCase(); } }); var myTmpl = $.templates("#myTmpl"), pageOptions = { noInvalidData: false }, model = { agree: false, nam...
import React, {Component, Fragment} from 'react'; import PropTypes from 'prop-types'; class LargeScreenMenu extends Component{ constructor(props){ super(props); } static propTypes = { userCategories: PropTypes.array } static defaultProps = { userCategories: [] } render(){ return( <Fragme...
'use strict'; const expect = require('chai').expect; const buttonGroup = require('../../../../../lib/device/validation/buttongroup'); describe('./lib/device/validation/buttongroup.js', function() { it('should try to get non existent button group (undefined)', function() { const result = buttonGroup.get(); ...
'use strict'; const TTSEngineType = { SpeechSynthesis: 0, GoogleTTS: 1, }; class TTSItem { play() {} } class SpeechTTSItem extends TTSItem { constructor(text, lang, voice) { super(); this.text = text; this.item = new SpeechSynthesisUtterance(text); this.item.lang = lang; ...
""" Django settings for my_proj project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from django.core.urlresolvers import reverse_lazy from os.path import dirna...
const fs = require("fs"); const path = require("path"); const uuid = require("../db/helpers/uuid"); const db = require("../db/db.json") module.exports = app => { fs.readFile(db, 'utf8', (err, data) => { if (err) throw err; var notes = JSON.parse(data); console.log(notes); //GE...
import "./profile.css"; import face from "./face1.png"; import flowers from "./flowers.png"; import paint from "./paint.png"; import impression from "./impression.png"; import search from "./search.png"; import mail from "./mail.png"; import bell from "./bell.png"; import exit from "./logout.png"; import logo from "./l...
// A scalar value that scales the capturing rectangle // If compared to image viewing tools, 1 and 1 means no scaling // 0.5 will zoom in to a 200% view, 3 will zoom out and produce 33% scaling ct.camera.scale.x = 1.2; ct.camera.scale.y = 1.2; ct.camera.scale = 1.2;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CONFIG_OPTIONS = void 0; exports.CONFIG_OPTIONS = "CONFIG_OPTIONS"; //# sourceMappingURL=jwt.constants.js.map
/* * Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute * of Technology. Users are free to copy, change or remove. Because no one * will read this. Only I know is that Repeaters are the best of the world. * Only I know is that Repeaters are the best of the world. Only I know is * that Repea...
class Graph { constructor () { this.adjacencyMap = {} } addVertex (vertex) { this.adjacencyMap[vertex] = [] } containsVertex (vertex) { return typeof (this.adjacencyMap[vertex]) !== 'undefined' } addEdge (vertex1, vertex2) { if (this.containsVertex(vertex1) && this.contain...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
let data = { "body": "<path d=\"M21 21H3v-9.75L9.45 15l3.77-2.2L21 17.29V21M3 8.94V6.75l6.45 3.75l3.77-2.2L21 12.79V15l-7.78-4.5l-3.77 2.17L3 8.94z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
import React from "react" import "./app.css" const AppContainer = ({ children }) => <div>{children}</div> export default AppContainer
# -*- coding: utf-8 -*- """ @file:compete_pctr_yes_test.py @time:2019/6/12 21:10 @author:Tangj @software:Pycharm @Desc """ import pandas as pd import numpy as np import time tt = time.time() fea = pd.DataFrame() test_bid = pd.read_csv('../usingData/test/test_bid.csv') request = pd.read_csv('../usingData/test/Request_li...
/** * Auto-generated action file for "Sage Business Cloud Accounting - Accounts" API. * * Generated at: 2021-04-22T20:49:29.749Z * Mass generator version: 1.0.0 * * : Sage-Accounting-Component * Copyright © 2020, AG * * All files of this connector are licensed under the Apache 2.0 License. For details * see ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_conf ------------ Tests for `complexity.conf` module. """ import logging import sys from complexity import conf if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest # Log debug and above to console logging.basicConfig(...
"use strict"; const {strict: assert} = require("assert"); const {stub_templates} = require("../zjsunit/handlebars"); const {mock_cjs, mock_esm, set_global, zrequire, with_overrides} = require("../zjsunit/namespace"); const {run_test} = require("../zjsunit/test"); const $ = require("../zjsunit/zjquery"); const {page_p...
/* * name; */ var BevelSmallEnemy = (function (_super) { function BevelSmallEnemy() { } Laya.class(BevelSmallEnemy, "BevelSmallEnemy", _super); var _proto = BevelSmallEnemy.prototype; // 类名 _proto.className = 'BevelSmallEnemy'; // 动画前缀 _proto.aniPre = 'bevelSmallEnemy_'; // 宽度体型修正...
/* eslint no-fallthrough: 0 */ import dateMath from 'date-arithmetic'; import assign from 'lodash/assign'; import localizer from '../localizer'; import { directions } from './constants'; const MILLI = { seconds: 1000, minutes: 1000 * 60, hours: 1000 * 60 * 60, day: 1000 * 60 * 60 * 24 }; let dates = a...
/** * CHAT COMPONENT * They are formed by chatController.js chatView.js, chat.js and textProcessor.js * The chat module needs for work OTHelper.js and browser_utils.js * If you want to have the previous status and roomStatus at your connection you need * roomStatus.js too * INCOMING events: outside events that th...
import { ActionTypes } from '../../constants'; const { Sides } = require('../../constants'); export const createGame = async (roomCode, Room) => { try { const game = Room.findOne({ roomCode }) .then(room => room.createGame()) .then(room => { const newGame = room.games[room.games.length - 1];...
from tkinter import * window = Tk() window.title("Find the smallest number") window.geometry("400x300+20+10") def findSmallest(): number = [] number.append(eval(conOfent2.get())) number.append(eval(conOfent3.get())) number.append(eval(conOfent4.get())) smallestNumber.set(min(number)) ...
import axios from 'axios'; // This is a public key... not very reliable const weather_API = 'bf1210455c4549380c43122b3b1e4dcc'; const rootURL = `http://api.openweathermap.org/data/2.5/forecast?appid=${weather_API}`; // ES6 syntax /* api.openweathermap.org/data/2.5/forecast?q={city name},{country code} api.openweather...
import { AcquisitionManager as Sdk } from "code-push/script/acquisition-sdk"; import { Alert } from "./AlertAdapter"; import requestFetchAdapter from "./request-fetch-adapter"; import { Platform } from "react-native"; let NativeCodePush = require("react-native").NativeModules.CodePush; const PackageMixins = require("....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SortNumberFormatted = exports.GetYear = exports.DownloadFileFromResponse = exports.ParseFormData = exports.IsKsaMobile = exports.ToNumberFormat = exports.FromNumberFormat = exports.ParseArabicNumber = exports.ArabicNumbersMap = exports...
import { __decorate } from "tslib"; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { NotFoundComponent } from './not-found.component'; const routes = [ { path: '', component: NotFoundComponent } ]; let NotFoundRoutingModule = class NotFoundRoutingModule ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { get } from 'lodash'; import { Metric } from './metric'; import { LAR...
/* Root.js Routes for entire spp */ import React from 'react'; import { HashRouter as Router, Route } from 'react-router-dom'; //import { BrowserRouter as Router, Route } from 'react-router-dom'; import HotCoins from '../HotCoins'; // import NotFound from './NotFound'; import Flex from '../WorkBench/Flex'; impor...
from . import base from . import mixins import string from datetime import date class TransformedRecord( mixins.GenericCompensationMixin, mixins.GenericIdentifierMixin, mixins.GenericPersonMixin, mixins.MembershipMixin, mixins.OrganizationMixin, mixins.PostMixin, mixins.RaceMixin, mixins.LinkMixi...
import styled from 'styled-components'; const Container = styled.div` margin: 35px 0; background-color: rgb(235, 235, 235); padding: 23px 28px; display: grid; grid-column-gap: 20px; grid-row-gap: 20px; align-items: center; grid-template-areas: 'titles close' 'explanation 0'; @media (min-width: 600px...
// Copyright 2013 Google Inc. // Copyright 2014 Volker Sorge // // 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...
function Application (cb) { this._logger = function () {}; this._app = function () { return {}; }; cb.call(this); } Application.prototype.init = function () { this._app = this._app(); }; Application.prototype.setLogger = function (logger) { this._logger = logger || function () {}; }; Application.protot...
var Promise = require('../utils/promise'); var timing = require('../utils/timing'); var Book = require('../models/book'); var parseIgnore = require('./parseIgnore'); var parseConfig = require('./parseConfig'); var parseGlossary = require('./parseGlossary'); var parseSummary = require('./parseSummary'); var parseReadme...
//FOR for (var i = 0; i < 5; i++) { console.log(i); } //WHILE var ii = 0; while (ii < 5) { console.log(ii); ii++; } // DO...WHILE do { console.log(ii); ii--; } while (ii > 0) //BREAK while (ii < 5) { console.log(ii); break; } //CONTINUE while (ii < 5) { if (ii == 2) { ii++; ...
var util = require('../../utils/util.js') var app = getApp(); var like = []; var posreset = true; Page({ data: { datafetched: true, data: [], like: [], start: {} }, onLoad: function() { this.reload(); }, onShow: function() { if (JSON.str...
var express = require("express"); var router = express.Router(); var mail = require("../nodemailer"); /* Post to mailer 3 @params required (receiver, subject, body) The information being sent from the front end must be specifically be JSON with 3 key value pairs for email, subject of email and message being sent othe...
import React from "react"; import propType from "prop-types"; import Box from "@material-ui/core/Box"; import Popper from "@material-ui/core/Popper"; import Button from "@material-ui/core/Button"; import Autocomplete from "@material-ui/lab/Autocomplete"; import InputBase from "@material-ui/core/InputBase"; import useS...
export default /* @ngInject */ ( $scope, $translate, $rootScope, License, Alerter, ) => { $scope.license = $scope.currentActionData.license; /** * Toggle delete at expiration serviceInfos. * @return {Promise} */ $scope.toggleDeleteAtExpiration = () => License.deleteLicenseAtExpiration($sco...
import {Subscription} from "~/src/services/Observable"; const {subscribe, trigger} = Subscription(); if (typeof document !== 'undefined') { document.addEventListener("keyup", trigger); } export const KeyboardListener = { listen: subscribe };
import React, {Component} from "react"; import Header from "./Header"; import {connect} from "react-redux"; import {createSelector} from "reselect"; import {Card, CardActions} from "material-ui/Card"; import RaisedButton from "material-ui/RaisedButton"; import TextField from "material-ui/TextField"; import {Link} from ...
//// [inferentialTypingWithFunctionTypeZip.ts] var pair: <T, S>(x: T) => (y: S) => { x: T; y: S; } var zipWith: <T, S, U>(a: T[], b: S[], f: (x: T) => (y: S) => U) => U[]; var result = zipWith([1, 2], ['a', 'b'], pair); var i = result[0].x; // number //// [inferentialTypingWithFunctionTypeZip.js] var pair; var zi...
// 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 path from 'path' import fs from 'fs' import { spawn, execSync } from 'child_process' import webpack from 'webpack' import chalk from 'chalk' import merge from 'webpack-merge' import baseConfig from './webpack.config.base' const port = process.env.PORT || 1212 const publicPath = `http://localhost:${port}/dist` c...
import * as _logging from './logging.js'; export const logging = _logging; import * as _basic from './basic.js'; export const basic = _basic; import * as _strings from './strings.js'; export const strings = _strings; import * as _arrays from './arrays.js'; export const arrays = _arrays; import * as _objects from '....
import React, {useState, useEffect} from 'react'; const ProgressBar = ({background, completed, title}) => { const [loading, setLoading] = useState(1); useEffect(() => { setLoading(completed); }, []); return ( <div className="container max-w-screen-lg mx-auto wrapper"> <div className=...
# Copyright (c) 2012-2013 LiuYC https://github.com/liuyichen/ # Copyright 2012-2014 ksyun.com, Inc. or its affiliates. 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. A copy of # the License is located at # # htt...
var pem = require("pem"), async = require("async"), NodeRSA = require("node-rsa"), crypto = require('crypto'), publicKeyMacaroons = require("public-key-macaroons"), macaroons = require('node-macaroons'), _ = require("lodash"); var CHARACTERS_ON_CERTIFICATE_LINE = 64; function base64WithSplitCharLines(stri...
YUI.add("lang/inputex-timerange_fr",function(e){e.Intl.add("inputex-timerange","fr",{incorrectOrder:"La fin de la plage horaire doit \u00eatre sup\u00e9rieure \u00e0 l'heure de d\u00e9but",minTimeError:"L'heure de d\u00e9but doit \u00eatre sup\u00e9rieure \u00e0 {minTime}",separators:[!1,"H","&nbsp; \u00e0 &nbsp;","H",...
/* * This file is part of the nivo project. * * Copyright 2016-present, Raphaël Benitte. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { memo } from 'react' import PropTypes from 'prop-types' import { BasicTooltip } from '...
# Parses derivatives.yaml into autograd functions # # Each autograd function is represented by `DifferentiabilityInfo` containing # a list of `Derivative`. See `tools.codegen.api.autograd` for the data models. from collections import defaultdict, Counter import re from typing import Sequence, Any, Tuple, List, Set, Dic...
from pyramid_controllers import Controller, RestController, expose, index class ItemController(RestController): ''' @PUBLIC Provides RESTful access to the URL-specified item. ''' def not_exposed(self, *args, **kw): ''' @PUBLIC This should not be reachable. ''' @expose def subaction(se...
export const cidCastConnected = ["512 512"," <defs> <style> .cls-2{fill:currentColor} </style> </defs> <path fill='currentColor' d='M480,80H32A16,16,0,0,0,16,96v64a263.814,263.814,0,0,1,64,7.8842V143.5H432v217H272.2351A263.809,263.809,0,0,1,280,424H480a16,16,0,0,0,16-16V96A16,16,0,0,0,480,80Z' opacity='.2...
# Copyright 2021 MosaicML. All Rights Reserved. import os from typing import List, Optional import pytest import torch import torch.nn as nn from composer.core.state import State from composer.core.types import Tensor from composer.trainer.ddp import DDP, FileStoreHparams from composer.trainer.devices.device_cpu imp...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import _ from 'lodash'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; // Create a new componen...
/* * ! ${copyright} */ // Provides control sap.m.P13nSortItem. sap.ui.define([ 'jquery.sap.global', './library', 'sap/ui/core/Item' ], function(jQuery, library, Item) { "use strict"; /** * Constructor for a new P13nSortItem. * * @param {string} [sId] id for the new control, generated automatically if no id...
# coding: utf-8 # Note: Use conda env py2 import os import sys from dateutil.parser import parse from pytz import timezone from tqdm import tqdm from glob import glob from hdmf.data_utils import DataChunkIterator from hdmf.backends.hdf5.h5_utils import H5DataIO import h5py import numpy as np from pynwb import NWB...
import React, { Component } from "react"; import { Button, Form, FormGroup, Input, } from "reactstrap"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { notify } from "../helpers/Helper" export default class CustomModal extends Component { constructor(props) { su...
import React from "react" import Header from "../components/header" import Footer from "../components/footer" import "@fontsource/noto-sans-jp" export default ({ children }) => ( <div> <Header /> {children} <Footer /> </div> )
import _ from 'lodash'; import { INFERENCE_CONFIG_SET, INFERENCE_CONFIG_CLEAR, INFERENCE_SUBMIT, INFERENCE_PREDICTION_CLEAR, INFERENCE_CLEAR, INFERENCE_DOWNLOAD_SET_PYTORCH, INFERENCE_DOWNLOAD_CLEAR_PYTORCH, INFERENCE_DOWNLOAD_SET_ONNX, INFERENCE_DOWNLOAD_CLEAR_ONNX, } from '../actions/types'; const...
def matrixElementsSum(matrix): sum = 0 for l in range(len(matrix[0])): for c in range(len(matrix)): if (matrix[c][l] != 0): sum += matrix[c][l] else: break return sum
var structlldpd__frame = [ [ "frame", "structlldpd__frame.html#a202b1b267366706cc82d210a2e48f718", null ], [ "size", "structlldpd__frame.html#a87da9c25e896cb2fe4b0bfcd8c152fef", null ] ];
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
'use strict'; var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = r...
function Testimonial({ testimonialText }) { return ( <figure> <blockquote className='blockquote'> <p> {testimonialText}</p> </blockquote> <figcaption className='blockquote-footer'>Firstbane Lastname</figcaption> </figure> ) } export default Testimonial
'use strict'; describe('Directive: navigationMenu', function () { // load the directive's module beforeEach(module('jedd')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(function ($compile) { el...
/** * echarts图表类:K线图 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author Kener (@Kener-林峰, kener.linfeng@gmail.com) * */ define(function (require) { var ComponentBase = require('../component/base'); var ChartBase = require('./base'); // 图形依赖 var CandleSha...
'use strict' const utils = require('./utils.js') module.exports = function(context) { return { CallExpression: function(node) { if (node.callee.type !== 'MemberExpression') return if (node.callee.property.name !== 'show') return if (utils.isjQuery(node)) { context.report({ n...
//Business Logic function Game (player1, player2, board) { this.player1 = player1; this.player2 = player2; this.turnsArray = [0, 1]; this.currentTurn = turnsArray[0] this.board = board; } Game.prototype.nextTurn = function() { if (this.currentTurn === turnsArray[0]) { this.currentTurn = turnsArray[1] ...
import React from "react"; export const ButtonViewListings = props => ( <div className='holder'> <button className="btn viewListings"> {props.children}</button> </div> );
'use strict'; describe('PractitionerListApp.practitioner', function() { var $httpBackend; var Practitioner; var practitionerData = { "resourceType": "Bundle", "id": "ceba7a08-4ffb-43bd-8cd4-0edb255c1a", "meta": {"lastUpdated": "2017-01-15T16:19:38Z"}, "type": "searchset"...
import utilities as u from wallaby import * import constants as c def clear_ticks_button(): print ("Waiting for motor to be placed in zero position") u.wait_for_button() clear_motor_position_counter(c.electric_line_motor) def clear_ticks(speed): count = 0 motor_power(c.electric_line_motor, speed...
""" Created on 22. apr. 2015 @author: pab References ---------- A METHODOLOGY FOR ROBUST OPTIMIZATION OF LOW-THRUST TRAJECTORIES IN MULTI-BODY ENVIRONMENTS Gregory Lantoine (2010) Phd thesis, Georgia Institute of Technology USING MULTICOMPLEX VARIABLES FOR AUTOMATIC COMPUTATION OF HIGH-ORDER DERIVATIVES Gregory Lant...
from dcos import (marathon, mesos, http) from shakedown.dcos.command import * from shakedown.dcos.spinner import * from shakedown.dcos import dcos_service_url, dcos_agents_state, master_url from shakedown.dcos.master import get_all_masters from shakedown.dcos.zookeeper import delete_zk_node from dcos.errors import DCOS...
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import fav from '../../assets/fav.png'; import favAdd from '../../assets/favAdd.png'; import RaisedButton from 'material-ui/RaisedButton'; import { getRoom, getPath, getAuthInfo, checkFavorites, addFavorite, removeFavorite } from...
define(["@jupyter-widgets/base"], function(__WEBPACK_EXTERNAL_MODULE_3__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Che...
/** * Created by Jian Ping Xu on 5/22/2017. */ var mongo = require('mongodb'); var Server = mongo.Server, Db = mongo.Db, BSON = mongo.BSONPure; var server = new Server('localhost', 27017, {auto_reconnect: true}); db = new Db('TradeQ', server); db.open(function(err, db) { if(!err) { console.log(...
import { Component, Host, h, Prop } from "@stencil/core"; export class CalciteRadio { constructor() { //-------------------------------------------------------------------------- // // Properties // //-------------------------------------------------------------------------- /** The checked s...
from . import fiber_bundles
'use strict' module.exports = ini ini.displayName = 'ini' ini.aliases = [] function ini(Prism) { Prism.languages.ini = { /** * The component mimics the behavior of the Win32 API parser. * * @see {@link https://github.com/PrismJS/prism/issues/2775#issuecomment-787477723} */ comment: { ...
import hashlib from math import cos, sin, radians, atan2 import threading import time class BoardThread(threading.Thread): def __init__(self, tick, deltatime, sleep_time=None): threading.Thread.__init__(self) self._tick = tick self._deltatime = deltatime self._sleep_time = sleep_ti...
'use strict'; const {assert} = require('chai'); const dataDriven = require('data-driven'); const Errors = require('src/Errors'); const {correctPath, correctUrl, StreamsInfo} = require('./Helpers/'); const {incorrectConfigData, incorrectUrlData, incorrectConfig} = require('./constructor.data'); describe('StreamsI...
import { getMessageById } from '../../models/message'; export default async replies => { let newReplies = []; const replyPromises = replies.map( async reply => await getMessageById(reply.id) ); // get all the messages for this thread const messageRecords = await Promise.all(replyPromises).cat...
// Copyright (c) 2020, Pedro Antonio Fernandez Gomez and contributors // For license information, please see license.txt frappe.ui.form.on('Pagina', { // refresh: function(frm) { // } });
"use strict"; var _uiTree_list = _interopRequireDefault(require("./ui.tree_list.core")); var _uiGrid_core = _interopRequireDefault(require("../grid_core/ui.grid_core.columns_resizing_reordering")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } _uiTree_list.default.r...