text
stringlengths
3
1.05M
import Dicer from '../src' import { createServer } from 'http' import { inspect } from 'util' const RE_BOUNDARY = /^multipart\/.+?(?:; boundary=(?:(?:"(.+)")|(?:([^\s]+))))$/i, HTML = Buffer.from('<html><head></head><body>\ <form method="POST" enctype="multipart/form-data">\ ...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./element")); //# sourceMappingURL=index.js.map
/*! URL Pupup-blocker 2016-08-21 */ function md5cycle(a,b){var c=a[0],d=a[1],e=a[2],f=a[3];c=ff(c,d,e,f,b[0],7,-680876936),f=ff(f,c,d,e,b[1],12,-389564586),e=ff(e,f,c,d,b[2],17,606105819),d=ff(d,e,f,c,b[3],22,-1044525330),c=ff(c,d,e,f,b[4],7,-176418897),f=ff(f,c,d,e,b[5],12,1200080426),e=ff(e,f,c,d,b[6],17,-1473231341)...
""" 22. Generate Parentheses Medium Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3 Output: ["((()))","(()())","(())()","()(())","()()()"] Example 2: Input: n = 1 Output: ["()"] Constraints: 1 <= n <= 8 """ # V0 # IDEA : brack...
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 import { pbkdf2 as pbkdf2Js } from '@noble/hashes/lib/pbkdf2'; import { sha512 } from '@noble/hashes/lib/sha512'; import { hasBigInt, u8aToU8a } from '@polkadot/util'; import { isReady, pbkdf2 } from '@polkadot/wa...
from UI_main_window import Ui_MainWindow from settings import Settings from assign_groups import AssignGroups from show_group import ShowGroup from show_heros import ShowHeros from statistics import Statistics from spectrum import EvaluateSpectrum import core_functions as cf import evaluation_functions as ef ...
macDetailCallback("00405d000000/24",[{"d":"1998-04-22","t":"add","a":"71 LYMAN STREET\nNORTHBORO MA 01532\n\n","c":"UNITED STATES","o":"STAR-TEK, INC."},{"d":"2001-10-24","t":"change","a":"71 LYMAN STREET\nNORTHBORO MA 01532\n\n","c":"UNITED STATES","o":"STAR-TEK, INC."},{"d":"2015-08-27","t":"change","a":"71 LYMAN S...
var globalPebl="object"==typeof globalPebl?globalPebl:{};globalPebl.extension=globalPebl.extension||{},globalPebl.extension.PeblDiscussionWidget=function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s...
import operator import math """ numpy and pandas inspired array object with python native numeric types """ def is_array(x): return hasattr(x,'__getitem__') def fun1(f,x): return array([f(xi) for xi in x]) if is_array(x) else f(x) # SANDBOX class pipe1: def __init__(self,f): self.f=f def __call__(self,x): ...
// Add your javascript code here console.log("IBM Web Starter...");
const Cesium = require("cesium"); import { getPointCoords, flyToCurrentPos } from "./Objects"; import "../bundle/Cesium/Widgets/widgets.css"; import React from "react"; import WebSocketViewer from "../events/handleWebsocket"; window.CESIUM_BASE_URL = '/static/Cesium/'; // Grant CesiumJS access to your ion assets Cesiu...
from Board import Board from Engine import Engine from events import Events from bot import Bot from save import end_with_save from save import update import pygame class Game: def __init__(self, play_with_bot, new_game, gui): self.events = Events() self.board = Board() self.e...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
"use strict"; /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of c...
#! /usr/bin/env node var U = require("./node"); var path = require("path"); var fs = require("fs"); var assert = require("assert"); var Console = require("console").Console; var sandbox = require("./sandbox"); var semver = require("semver"); require("../tools/colorless-console"); var tests_dir = path.dirname(module....
/** * Auto-generated action file for "ClickMeter" API. * * Generated at: 2019-05-07T14:40:03.345Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / clickmeter-com-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed und...
def string_compression(input_str): compressed_list = [] previous = None count = 0 for each_char in input_str: if not previous: count += 1 previous = each_char elif previous == each_char: count += 1 else: compressed_list.append(prev...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.25/esri/copyright.txt for details. //>>built define("esri/toolbars/edit","require dojo/_base/declare dojo/_base/lang dojo/_base/connect dojo/_base/array dojo/_base/Color dojo/has dojo/dom-construct dojo/dom-st...
import express from 'express'; import db from '../../services/client/index.js' import {body, validationResult} from 'express-validator'; import {cpf as validatorCpf} from 'cpf-cnpj-validator'; const router = express.Router(); router.post('/', [ body('zip_code').isLength({min: 8, max: 8}).withMessage('CEP inválid...
// Get the canvas element from our HTML above var canvas = document.getElementById("renderCanvas"); // Load the BABYLON 3D engine var engine = new BABYLON.Engine(canvas, true); // Now, call the createScene function that you just finished creating var scene = createScene(); // Register a render loop to repeatedly rende...
$(document).on('click',"tr.info_row",function (event) { event.preventDefault(); //display the modal event.stopPropagation() $('tr').removeClass('active_modal_tr'); $(this).addClass('active_modal_tr'); // hiding extra table rows $(".s...
# Copyright (C) 2020 Łukasz Langa from setuptools import setup, find_packages import sys import os assert sys.version_info >= (3, 6, 2), "black requires Python 3.6.2+" from pathlib import Path # noqa E402 from typing import List # noqa: E402 CURRENT_DIR = Path(__file__).parent sys.path.insert(0, str(CURRENT_DIR)) ...
// @flow /** * Utility functions for manipulating ranges of highlightable content. */ import type {DOMRange} from "./types.js"; /** * Given two DOMRange objects, and a choice of start/end point for each, compare * the two chosen points. Return -1 if a's comes first in the document, return * 1 if b's comes first ...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var iframe_hosts = ['http://127.0.0.1', 'http://localhost']; function getIFrameSrc(iframe_id) { var port = location.port; var path = location.pathname...
// Copyright (c) 2018 Mike Pennisi. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-for-statement description: > 'for(var arguments = 42 in ...) {...}' throws SyntaxError in strict mode within a function declaration flags: [onlyStrict] negative: ph...
import React from 'react' import { FormattedMessage } from 'react-intl' import { container } from './styles.module.css' export default function NoPost () { return ( <div className={container}> <FormattedMessage id='posts.noPosts'/> </div> ) }
var searchData= [ ['faultcode',['faultCode',['../class_x_m_l___r_p_c___response.html#ad6849a82f23db4d67e06a7fcaa94aec2',1,'XML_RPC_Response']]], ['faultstring',['faultString',['../class_x_m_l___r_p_c___response.html#a2f922009ed0801616d3df198a48d193b',1,'XML_RPC_Response']]] ];
import os import sys import json import xml.dom.minidom import xml.etree.cElementTree as ET import csv class PackageInfo: """A class that gives one the option to easily extract information from the license.manifest file (generated by YOCTO) - attributes like version, recipe name and license - and export it into var...
const accountServices = require('../services/accountServices'); const { INVALID_TOKEN } = require('../constants/responses'); /** * create account * @param {object} req request object * @param {object} res response object */ function create(req, res) { accountServices .create(req.body) .then((result) =>...
from __future__ import print_function # Time: O(n) # Space: O(1) # # The API: int read4(char *buf) reads 4 characters at a time from a file. # # The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file. # # By using the read4 API, implement the ...
var APP_DATA = { "scenes": [ { "id": "0-img_20200922_174216_00_merged", "name": "IMG_20200922_174216_00_merged", "levels": [ { "tileSize": 256, "size": 256, "fallbackOnly": true }, { "tileSize": 512, "size": 512 },...
import React, { Component } from 'react'; import { connect } from 'react-redux'; //need to import correct thunk from store to get user and then make maptostate and dispatch class CheckoutForm extends Component { constructor() { super(); this.state = { firstname : '', lastname : '', address...
/* Copyright 2018 New Vector Ltd Copyright 2019 The Matrix.org Foundation C.I.C. 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 a...
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import Box from ...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","de",{euro:"Euro Zeichen",lsquo:"Hochkomma links",rsquo:"Hochkomma rechts",ldquo:"Anführungszeichen links",rdquo:"A...
define({ "numPerPage": "Nombre d'éléments par page", "scopeOptions": { "labelPlaceholder": "Etiquette facultative", "MyContent": "Autoriser mon contenu", "MyOrganization": "Autoriser mon organisation", "ArcGISOnline": "Autoriser ArcGIS Online", "FromUrl": "Autoriser la saisie URL" } });
var React = require('react'); var assign = require('object-assign'); var SpotActions = require('../actions/SpotActions'); var SpotStore = require('../stores/SpotStore'); var Panel = React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, container: React.PropTypes.bool, ...
import os from argparse import ArgumentParser import cv2 import numpy from capture.capture import VideoCapture from face_detector import FaceDetection from face_embedding import FaceEmbedding from util import cosine_similarity, draw_square, show_image RED = (255, 0, 0) GREEN = (0, 255, 0) def main(): args = Ar...
import click from aloe.util.service_groups import all_groups @click.command("start", short_help="Start service groups") @click.option("-r", "--restart", is_flag=True, type=bool, help="Restart running services") @click.argument("group", type=click.Choice(all_groups()), nargs=-1, required=True) @click.pass_context def...
import { createMoreItem, eventBus } from './init' /** * 页面加载监听函数 */ export const init = () => { // 实现一个简单的路由监听(监听跳转是否是主页) window.addEventListener('load', function (e) { var reg = /https:\/\/juejin.im\/user/; if (reg.test(e.target.URL)) { // 如果进入主页,触发 createMoreItem() // 创建DO...
export default { 'app.push.trading-activity': '活动实时交易情况', 'app.push.total-transactions': '今日交易总额', 'app.push.sales-target': '销售目标完成率', 'app.push.remaining-time': '活动剩余时间', 'app.push.total-transactions-per-second': '每秒交易总额', 'app.push.activity-forecast': '活动情况预测', 'app.push.efficiency': '券核效率', 'app.push...
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Rdc(CMakePackage): """ROCm Data Center Tool""" homepage = "https://github.com/Radeon...
import './parse_query';
webpackJsonp([43],{153:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2);t.default={data:function(){return{orderNo:""}},methods:{handleConfirm:function(){var e=this;this.$ajax(this.$joggle.customer.lottery.selectPayOrderByOrderNo,{orderNo:this.orderNo},!0,function(t,s){"ZS011000"=...
// Copyright 2021 Google LLC // // 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 ...
# Django imports. from django.conf.urls import url # Application imports. from .views import image urlpatterns = [ # View for rendering an identicon image. url(r'^image/(?P<data>.+)$', image, name="image") ] def get_patterns(instance="django_pydenticon"): """ Generates URL patterns for Django Pyd...
''' Configuration variables for Potter Lamp server ''' from cv2 import ROTATE_180, ROTATE_90_CLOCKWISE, ROTATE_90_COUNTERCLOCKWISE potter_lamp_config = { # Flask Server 'host': '0.0.0.0', 'port': 5000, # Redis 'redis_namespace': 'potterlamp', # OpenCV 'debug_opencv': False, # requires de...
angular.module('akamaiposApp') .service('UserAdminService', function(adminService) { this.userGridSettings = function () { var pager = adminService.loadPagerConfig(); var settings = { source: { dataType: 'json', dataFields: [ {name...
# Title: 다항 계수 # Link: https://www.acmicpc.net/problem/16725 import sys from collections import deque sys.setrecursionlimit(10 ** 6) read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' '))) MOD = 1000000009 def solution(a: int, n: int, k: int): window_size = a+1 a_list = [1] * (a+1)...
// Code mostly taken from // https://levelup.gitconnected.com/using-firebase-authentication-in-a-nuxt-server-side-rendered-application-c2a624a9e999 const cookie = require('cookie') const JWTDecode = require('jwt-decode') const COOKIE_NAME = '__session' export const state = () => ({ user: null }) export const muta...
var express = require("express"); var bodyParser = require("body-parser"); var User = require("./Models/user").User; var usrCtrl = require('./controllers/userCtrl'); var auth = require('./middlewares/auth'); var router_user = require('./routes-user'); var cors = require('cors') var app = express(); const PORT = process...
$.fn.datetimepicker.Constructor.Default = $.extend({}, $.fn.datetimepicker.Constructor.Default, { // 時區 timeZone: "", // 日期顯示格式 format: 'YYYY-MM-DD', // 日期標題格式 dayViewHeaderFormat: "MMMM YYYY", extraFormats: !1, stepping: 1, minDate: !1, ...
"""Unit tests for layout functions.""" import sys from nose import SkipTest from nose.tools import assert_equal import networkx as nx class TestLayout(object): numpy = 1 # nosetests attribute, use nosetests -a 'not numpy' to skip test @classmethod def setupClass(cls): global numpy try: ...
""" The MIT License (MIT) Copyright (c) 2016 Daniele Linguaglossa <d.linguaglossa@mseclab.com> 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 th...
// Loss.js // This is a component that displays the loss window import React from "react"; export default function Loss(props){ return( <> <article id="loss_window"> <h1>YOU DIED</h1> <h2>How sad, {props.playerName} failed to achieve their goal....</h2> ...
import { gql } from "@apollo/client"; import { PostFields } from "./fragments"; export const AddPost = gql` mutation AddPost($authorID: ID!, $content: String!, $title: String!) { addPost(authorID: $authorID, content: $content, title: $title) { ...PostFields } } ${PostFields} `;
/** * Kendo UI v2018.1.221 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
var Vorpal = require('../../dist/vorpal').default; var vorpal = new Vorpal() var chalk = vorpal.chalk; vorpal .title(chalk.magenta('Vorpal')) .version('1.4.0') .description(chalk.cyan('Conquer the command-line.')) .banner(chalk.gray(` (O) <M o <M /| ...... /:M\\-------...
import request from './request'; // import qs from 'qs' // 注册 export function register(data) { return request({ url: '/api/v1/register', method: 'post', headers: { 'content-type': 'application/json' }, data }) } // 登录 export function login(data) { return request({ u...
# Copyright 2017 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...
(function(global) { /* jshint validthis: true */ 'use strict'; /** * Simple event emitter, cancellable with "return false" statement * * @class EventEmitter * @author Darlan Alves <me@darlanalv.es> */ var EventEmitter = function EventEmitter() {}, slice = Array.prototype.slice, eventSplitRe = / |, /, ...
import React, { Component } from "react"; import Header from "./components/Header"; import Footer from "./components/Footer"; import Wrapper from "./components/Wrapper"; import MyProvider from "./components/Provider"; import "./App.css"; class App extends Component { // Map over this.state.friends and render a Fr...
const AbstractProvider = require('../../../src/classes/providers/AbstractProvider'); const EpicGamesProvider = require('../../../src/classes/providers/EpicGamesProvider'); const Cache = require('../../../src/classes/Cache'); const axios = require('axios'); const logger = require('@greencoast/logger'); jest.mock('axios...
import { module, test } from 'qunit' import { setupTest } from 'ember-qunit' module('Unit | Route | application', function(hooks) { setupTest(hooks) test('it exists', function(assert) { let route = this.owner.lookup('route:application') assert.ok(route) }) })
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { ...
import pyglet, math def distance(point_1=(0, 0), point_2=(0, 0)): """Returns the distance between two points""" return math.sqrt((point_1[0] - point_2[0]) ** 2 + (point_1[1] - point_2[1]) ** 2)
import time def create-model-once(): import tensorflow as tf tf.keras.backend.clear_session() ob_stat = RunningStat( env.observation_space.shape, eps=1e-2 # eps to prevent dividing by zero at the beginning when computing mean/stdev ) times_load_weights, times_predict = [], [] ...
from setuptools import setup with open("README.md", "r") as fh: readme = fh.read() setup(name='pacotepypi', version='0.0.1', url='https://github.com/marcos-de-sousa/pacotepypi', license='MIT License', author='Marcos Paulo Alves de Sousa', long_description=readme, long_description_content_t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _a; var kendo_date_math_1 = require("@progress/kendo-date-math"); var NavigationAction_1 = require("../models/NavigationAction"); var utils_1 = require("../../utils"); var SelectionRange_1 = require("../models/SelectionRange"); var kendo_r...
(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{1577:function(e,t,n){"use strict";n.r(t);var a=n(24),r=n.n(a),o=n(25),c=n.n(o),s=n(22),i=n.n(s),l=n(26),u=n.n(l),m=n(27),f=n.n(m),p=n(16),h=n.n(p),d=n(6),v=n.n(d),E=n(0),b=n.n(E),y=n(31),g=n(875),w=n(198),D=n.n(w),N=n(149),O=n(150),R=n(200),T=n(104),j=n(4);func...
import spacy from text_processing import text_normalizer from utilities import excel_writer from utilities import excel_reader import re import os import nltk nlp = spacy.load('en_core_web_sm') class ProgramExtractor: def __init__(self, filter_word_list): self.words_for_programs = ["program", "programme"...
import React from "react" import PropTypes from "prop-types" import { Row, Col } from "react-bootstrap" import ResourceCard from "./resourceCard" Array.prototype.eachSlice = function (size){ this.arr = [] for (var i = 0, l = this.length; i < l; i += size){ this.arr.push(this.slice(i, i + size)) } retu...
module.exports = { RoborockBasicControlCapability: require("./RoborockBasicControlCapability"), RoborockButtonLightsControlCapability: require("./RoborockButtonLightsControlCapability"), RoborockCarpetAvoidanceModeControlCapability: require("./RoborockCarpetAvoidanceModeControlCapability"), RoborockCarp...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','sap/ui/base/EventProvider','sap/ui/core/routing/Target','sap/ui/core/Component'],function($,E,T,C)...
const UrlsConfig = require("./../../database/models/UrlsConfig"); const { MessageEmbed } = require("discord.js"); const { default_prefix } = require("./../../config.json"); const emoji = require('../../emoji.json') module.exports = { name: "stats", description: "*Shows Stats of All of Your Projects*.", category:...
module.exports = { env: { browser: true, es6: true, }, extends: ["airbnb"], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly', }, parserOptions: { ecmaFeatures: { jsx: true, }, ecmaVersion: 2018, sourceType: 'module', }, plugins: [ 'react', ], pa...
import React, {Component} from 'react'; import { connect } from 'react-redux'; import ReactDOM from 'react-dom'; import firebase from 'firebase'; import PropTypes from 'prop-types'; import muiThemeable from 'material-ui/styles/muiThemeable'; import {injectIntl, intlShape} from 'react-intl'; import { Activity } ...
import re; from .cBugReport import cBugReport; from .cPageHeapManagerData import cPageHeapManagerData; from .dxConfig import dxConfig; from .fsGetNumberDescription import fsGetNumberDescription; from .ftuLimitedAndAlignedMemoryDumpStartAddressAndSize import ftuLimitedAndAlignedMemoryDumpStartAddressAndSize; from .fu0Va...
import logging import os import sys from pythoncommons.os_utils import OsUtils from yarndevtools.cdsw.common_python.constants import CdswEnvVar LOG = logging.getLogger(__name__) class Restarter: @staticmethod def restart_execution(cdsw_runner_script_path): """ Variable values in case of CD...
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
import re from collections import OrderedDict __GENERAL_DICT__ = { 'coord': 'Coordination', 'name': 'Name', 'dist': 'Dist', 'Ratio': 'Ratio', 'label': 'Label', 'name': 'Name', 'idx': 'Index', 'batch': 'Batch' } __RE__ = r'^\!@@(\S+)\!&&(\S+)$' def parse_dynamic_col(x): m = re.ma...
/* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
var searchData= [ ['apt_5',['apt',['../classosl_1_1Project.html#ad3f40808f0a19eea3204022d19e8abed',1,'osl.Project.apt()'],['../classosl_1_1Project.html#a3fcf5be8baf94c9d04630dc31e55b7a9',1,'osl.Project.apt(self)']]], ['assoc_6',['assoc',['../classosl_1_1Project.html#af0c55aff6b3741631e1b5d6e2e6191cd',1,'osl::Projec...
import { BinarySearchTree } from './binary-search-tree' describe('BinarySearchTree', () => { describe('instantiating', () => { it('can be instantiated with the `new` keyword', () => { expect(() => new BinarySearchTree()).not.toThrow() }) it('creates a root node as null', () => { const bst1 =...
import * as constants from './constants'; const defaultState = { login:'false', }; export default (state = defaultState, action) => { switch (action.type) { case constants.CHANGE_LOGIN_STATE: { const newState = { ...state, login : action.value } return newState } defa...
/* * Cloth Simulation using a relaxed constraints solver */ // Suggested Readings // Advanced Character Physics by Thomas Jakobsen Character // http://freespace.virgin.net/hugo.elias/models/m_cloth.htm // http://en.wikipedia.org/wiki/Cloth_modeling // http://cg.alexandra.dk/tag/spring-mass-system/ // Real-time Clot...
#!/usr/bin/env python # Copyright 2015 gRPC 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 o...
import getPathArea from './getPathArea.js'; import pathToCurve from '../convert/pathToCurve.js'; export default function getDrawDirection(pathArray, round) { return getPathArea(pathToCurve(pathArray, round)) >= 0; }
export const AUTH_USER ='AUTH_USER'; export const UNAUTH_USER ='UNAUTH_USER'; export const AUTH_ERROR ='AUTH_ERROR'; export const LOGIN='LOGIN'; export const REGISTER='REGISTER';
from __future__ import print_function # for drive_upload.py import pickle import io from os import listdir from os.path import isfile, join import socket from googleapiclient.discovery import BODY_PARAMETER_DEFAULT_VALUE, build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests i...
import dates from './dates' const getDstOffset = (start, end) => start.getTimezoneOffset() - end.getTimezoneOffset() const getKey = (min, max, step, slots) => `${+dates.startOf(min, 'minutes')}` + `${+dates.startOf(max, 'minutes')}` + `${step}-${slots}` export function getSlotMetrics({ min: start, max: end, ...
""" MIT License Copyright (20210IcyDevvlzz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
var c = 0; var a = 0; var b = 0; var correct = 0; var incorrect = 0; var count = 0; var total = 10; var begintime = performance.now(); var input = new CanvasInput({ canvas: document.getElementById('canvas'), x:500, y:0, fontSize: 128, fontFamily: 'Serif', fontColor: '#FF0000', fontWeight: 'bold', width...
/* * Kendo UI v2011.3.1129 (http://kendoui.com) * Copyright 2011 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at http://kendoui.com/license. * If you do not own a commercial license, this file shall be governed by the * GNU General Public License (GPL) version 3. For GPL requiremen...
#%% [markdown] ''' shared memory model, each processor can access any location in memory. distributed memory model, a processor must explicitly send a message to another processor to access its memory. One of the key challenges of parallel programs is races, two concurrent instruction sequences access the same address...
/* eslint-disable no-undef */ /* eslint-disable quotes */ /* eslint-disable semi */ /* eslint-disable indent */ import supertest from 'supertest'; import query from '../../config/dbConnection'; import app from '../../..'; const request = supertest(app); const adminToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2...
import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; chai.should(); chai.use(chaiAsPromised); global.expect = chai.expect; global.assert = chai.assert;
var searchData= [ ['mainpage_2eh_79',['mainpage.h',['../mainpage_8h.html',1,'']]], ['manufacturer_5fname_80',['manufacturer_name',['../structfm24clxx__info__s.html#ad25285dbf810c90f8eaf3fcef6f2b2ea',1,'fm24clxx_info_s']]], ['manufacturer_5fname_81',['MANUFACTURER_NAME',['../driver__fm24clxx_8c.html#aaa2b8f5b105c3...
/* globals it */ import { expect } from 'chai'; import Store, { Collection } from '..'; let store = new Store(); let images = new Collection([]); let people = new Collection({}); it('should detect added collections', () => { expect(store.collections.length).to.equal(0); store.images = images; expect(store.collecti...