text
stringlengths
3
1.05M
(function () { require('../src'); describe('api.basic test', () => { test('nx.activeValue', function () { const obj1 = { name: 'fei' }; const obj2 = { email: '1290657123@qq.com' }; const result = {}; }); }); })();
examples_main = { TH1 : [ { opt: "", file: "hsimple.root", item: "hpx;1" }, { opt: "P" }, { opt: "P0" }, { name: "star", opt:"*", title: "draw stars on histogram bins" }, { name: "*H", opt:"*H", title: "draw stars and histogram itself" }, { opt: "L", title: "draw histogram as line" }, ...
from __future__ import print_function import math import random import sys from fractions import Fraction try: from math import gcd except ImportError: from fractions import gcd from builtins import input import projectq.libs.math import projectq.setups.decompositions from projectq.backends import Simulator,...
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ import logging from sleekxmpp import Iq from sleekxmpp.plugins import BasePlugin from sleekxmpp.xmlstream.handler import Callb...
/* * 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 ...
import request from '@/utils/request' export function getName() { return request({ url: '/names', method: 'get', }) } export function getChannel() { return request({ url: '/channel', method: 'get', }) } export function getProject() { return request({ url: '/project', method: 'get',...
import Path from 'path'; import YAML from 'js-yaml-parser'; import localforage from 'localforage'; import { setup } from 'axios-cache-adapter'; import JSZip from 'jszip'; //import * as langnames from './langnames'; const baseURL = 'https://git.door43.org/'; const apiPath = 'api/v1'; const cacheStore = localforage.cr...
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Logit'] , ['ConstantTrend'] , ['Seasonal_WeekOfYear'] , ['SVR'] );
/** * Use this file to configure your truffle project. It's seeded with some * common settings for different networks and features like migrations, * compilation and testing. Uncomment the ones you need or modify * them to suit your project as necessary. * * More information about configuration can be found at: ...
var indexSectionsWithContent = { 0: "acdfkmnprtuvw", 1: "acdkmptvw", 2: "cfnrtuvw", 3: "a", 4: "d" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "functions", 3: "variables", 4: "pages" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Functions", 3: "Variables", 4: "Pag...
/** Default iterable for list resources * @property {items} items Array of resource items * @property {pagination} pagination Pagination information (see Thinkific API docs) */ const Iterable = class Iterable { constructor(items, pagination, _handler) { this.items = items; this.pagination = pagination; ...
module.exports = { pwa: { name: 'Explicae' } }
const fs = require('fs').promises; module.exports = { async readCode(file) { const data = await fs.readFile(file, 'utf-8'); return data; }, writeCode(file, data) { const target = file.split('.')[0]; fs.writeFile(`${target}.js`, data, 'utf-8'); }, async createDirsRecursive(path) { await fs...
from django import forms from .widgets import FormSetWidget class FormSetField(forms.Field): widget = FormSetWidget def __init__(self, formset_class, template=None, formset_class_attrs=None, context=None, *args, **kwargs): self.formset_class = formset_class self._formset_class_attrs = formse...
define(["require", "exports", "@microsoft/load-themed-styles"], function (require, exports, load_themed_styles_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); load_themed_styles_1.loadStyles([{ "rawString": ".root_00ac458b{display:block;max-width:364px}.bodyContent_00ac458b...
var clear = function(){ $('.messages').html('start trading Today').removeClass('errorMsg'); $('#password, #confirm, .user-username, .user-email').removeClass('error'); }; var onSuccess = function(data, status, xhr){ console.log('register:: success', data); window.location.href = conf.app.protocol + '://' + conf.ap...
const Resource = require('nanoresource') const ready = require('./') const resource = new Resource() const opening = new Resource() const opened = new Resource() const mixed = ready.mixin(new Resource()) opening.open() ready(opening, { opening: true }, (err) => { console.log('opening ready', opening.opening) }) o...
import { all } from 'redux-saga/effects'; import homeSaga from './Home/saga'; export default function* rootSaga() { yield all([ homeSaga, ]); }
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
import { makeStyles } from "@material-ui/styles"; export default makeStyles(theme => ({ root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', overflow: 'hidden', backgroundColor: theme.palette.background.paper, }, gridList: { width: 500, ...
$('.delete-selected').on('click', function () { var sure = confirm('Удалить записи?'); if (!sure) { return; } var keys = $('#w0').yiiGridView('getSelectedRows'); var data = {}; data.ids = {}; for (var i = 0; i < keys.length; i++) { data.ids[i] = keys[i]; } data.redirect = location.href; $.aj...
from molsysmt._private_tools.exceptions import * def from_mdtraj_Topology(item, molecular_system=None, atom_indices='all', frame_indices='all'): raise NotImplementedError() def to_mdtraj_Topology(item, molecular_system=None, atom_indices='all', frame_indices='all'): from molsysmt.native.io.topology.classes ...
#!c:\users\joshua~1\docume~1\univer~1\8vosem~1\progra~2\proyec~1\vuepy\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
## enip-protocol.pac ## ## Binpac Ethernet/IP (ENIP) Analyzer - Defines Protocol Message Formats ## ## Author: Stephen Kleinheider ## Contact: stephen.kleinheider@inl.gov ## ## Copyright (c) 2020 Battelle Energy Alliance, LLC. All rights reserved. %include consts.pac ################################################...
from typing import Any, Optional, Sequence, Dict, Tuple from collections import defaultdict import pandas as pd import numpy as np from ray import ObjectRef from ray.actor import ActorHandle from xgboost_ray.data_sources._distributed import \ assign_partitions_to_actors, get_actor_rank_ips from xgboost_ray.data_...
'use strict' const t = require('tap') const test = t.test const Fastify = require('..') const fp = require('fastify-plugin') const sget = require('simple-get').concat const symbols = require('../lib/symbols.js') test('server methods should exist', t => { t.plan(2) const fastify = Fastify() t.ok(fastify.decorate...
import { connect } from 'react-redux' import { getCurrentNetwork, getSendTo, getSendToAccounts, getSelectedToken, getSelectedTokenContract, } from '../../send.selectors.js' import { getToDropdownOpen, sendToIsInError } from './send-to-row.selectors.js' import { updateSendTo } from '../../../../actions' import...
import unittest import hcl2 from checkov.terraform.checks.data.aws.IAMCredentialsExposure import check from checkov.common.models.enums import CheckResult class TestcloudsplainingPrivilegeEscalation(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" data "aws_iam_policy_do...
import React , {useState, useEffect}from "react"; import {useSelector} from "react-redux"; import axios from "axios"; import { baseUrl } from "variables/general"; // reactstrap components import { Card, Button, CardBody, CardHeader, FormGroup, Form, Input, Row, InputGroup, Col, InputGroupAddon, Label,I...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/c...
$(document).ready((function(){let all_players=document.querySelector("#all"),online_players=document.querySelector("#online"),content=document.querySelector("#content-page"),links=document.querySelectorAll(".page-link");function loadContentDefault(page=0){content.innerHTML='<div class="text-center"><div class="spinner-...
/* Copyright 2020 Adobe. All rights reserved. This file is licensed to you 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 agree...
import boto3 import json import sure # noqa # pylint: disable=unused-import from moto import mock_cloudformation, mock_ec2 from uuid import uuid4 @mock_cloudformation @mock_ec2 def test_transit_gateway_by_cloudformation_simple(): ec2 = boto3.client("ec2", region_name="us-east-1") cf_client = boto3.client("...
/** * Parse the time to string * @param {(Object|string|number)} time * @param {string} cFormat * @returns {string | null} */ export function parseTime(time, cFormat) { if (arguments.length === 0 || !time) { return null } const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' let date if (typeof time =...
const Documents = require('../../models/Document') const Students = require('../../models/Student') const errors = require('../../../shared/errors') const utils = require('../../utils') module.exports = async function listDocuments(ctx) { const { valid, invalidParams } = utils.validateQuery(ctx.request.query, []) ...
/** * BLOCK: ux-my-business-hours * * Registering a basic block with Gutenberg. * Simple block, renders and saves the same content without any interactivity. */ // Import CSS. import './editor.scss'; import './style.scss'; const { __ } = wp.i18n; // Import __() from wp.i18n const { registerBlockType } = wp.block...
var io = require('../io').io, access = require('../access'), utils = require('../util'), async = require('async') var Board = function Board() { this.socket = null; } Board.prototype.setName = function(data) { var self = this; try { var data = this.sanitizer.rename(data) ...
var request = require('request'); var cheerio = require('cheerio'); var getImgs=function (word,callback) { var url='https://image.baidu.com/search/index?tn=baiduimage&ie=utf-8&word='+word; // console.log(encodeURI(url));//encodeURIComponent() var titleList=[]; var imgList =[]; request(encodeURI(url), ...
var Set = require('../../../_Build/js/libs/set.js'); describe('set.js', function () { var group = null; before(function(){ fixture.setBase('_Test/karma/fixtures'); fixture.load('set.json'); group = Set(fixture.json[0]); }); afterEach(function(){ fixture.cleanup(); });...
const should = require('should'); const supertest = require('supertest'); const testUtils = require('../../../utils/index'); const localUtils = require('./utils'); const config = require('../../../../server/config/index'); const ghost = testUtils.startGhost; let request; describe('Roles API', function () { var acc...
app.directive('datepick', function() { return { restrict: 'A', require: 'ngModel', link: function(scope, el, attr, ngModel) { // console.log(ngModel); var sDate = attr['datepickStartDate']; var eDate = attr['datepickEndDate']; if (sDate) { var startDate=sDate; } else ...
import React, { useState, useEffect } from 'react'; import { Form, Input, Upload, Button, message } from 'antd'; import { UploadOutlined } from '@ant-design/icons'; import { connect } from 'umi'; import ImgCrop from 'antd-img-crop'; import { isEmpty } from '@/utils/utils'; import PhoneView from './PhoneView'; import st...
import * as React from "react" import { navigate } from 'gatsby' const IndexPage = () => { if (typeof window !== 'undefined') { return( <div> {navigate('/app/home')} </div> ) }else{ return( <div></div> ) } } export default IndexPage
import { gsap } from 'gsap' import { ScrollTrigger } from 'gsap/ScrollTrigger' gsap.registerPlugin(ScrollTrigger)
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ var ServiceResponse = (function () { function ServiceResponse() { this.Errors = new Array(); } return ServiceResponse; }()); export { ServiceResponse }; function ServiceResponse_tsickle_Closure_declarations() { /*...
import { GuiElement } from "../modules/guielement.js"; import { Creature } from "./creature.js"; import { getImportantEntity } from "../modules/gamemanager.js"; import { Vector } from "../modules/vector.js"; import { centeredText } from "./draw.js"; export class BombDisplay extends GuiElement { /** @type {Vector} */...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import {bisect_left, bisect_right, default as bs} from "./bs"; test('search value on empty array', () => { let e = []; expect(bs(e, 3)).toStrictEqual(false); }); test('search value on array not found', () => { let e = [1, 2, 3, 3, 3, 3, 4, 5]; expect(bs(e, 9)).toStrictEqual(false); }); test('try to sea...
#1 - Crear una clase que represente un numero complejo. Tenga 4 metodos que permita las operaciones matematicas basicas (+,-,*,/). class imaginario: def __init__(self, r, j): self.r=r self.j=j def __str__(self): if self.j > 0: return str(self.r)+" + j"+str(self.j) el...
import { createReducer } from 'redux-act' import * as actions from './actions' const defaultState = { showSidebar: false, mouseOnSidebar: false, page: { url: '', title: '', }, } const setShowSidebar = (state, showSidebar) => ({ ...state, showSidebar: showSidebar, }) const clo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _createTester; var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); var _breakLoop = require('./breakLoop'); var _breakLoop2 = _interopRequireDefault(_breakLoop); function _interopRequireD...
var CloudSyncKit, synchroniser, sessionInfo, syncServiceUrl, config, videojs, VideoClock, videoClock, VideoSynchroniser, share; CloudSyncKit = require("./CloudSyncKit"); DispersionDisplay = require("./DispersionDisplay"); util = require("./util"); config = require("./config"); vide...
// const contract = require("@truffle/contract"); const assert = require('assert'); const colors = require('colors'); const fs = require('fs'); const { expectEvent, singletons, constants, expectRevert } = require('@openzeppelin/test-helpers'); const HDWalletProvider = require('@truffle/hdwallet-provider'); const priv...
// flow-typed signature: 1e1b62b76b7eea6779373f85bfe8c2e5 // flow-typed version: <<STUB>>/prettier-eslint_v^12.0.0/flow_v0.143.1 /** * This is an autogenerated libdef stub for: * * 'prettier-eslint' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wo...
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="FRbGaYuUO...
'use strict'; const Confidence = require('confidence'); const Config = require('./config.js'); const criteria = { env: process.env.NODE_ENV }; const manifest = { $meta: 'This file defines the plot device.', server: { debug: { request: ['error'] }, connections: { ...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
import os # TODO: # - rewrite these as FSMs; will probably be cleaner and more # maintainable long-term. Right now split() uses a for-in # loop which requires buffering some past content. For merge # I used indexing instead which avoided that, but it does # mix metaphors; using FSMs for both could be more c...
# coding: utf-8 """ X-Road Security Server Admin API X-Road Security Server Admin API. Note that the error metadata responses described in some endpoints are subjects to change and may be updated in upcoming versions. # noqa: E501 OpenAPI spec version: 1.0.31 Contact: info@niis.org Generated by:...
# Copyright (c) 2017 Linaro Limited. # # SPDX-License-Identifier: Apache-2.0 '''Runner for openocd.''' import subprocess import re from os import path from pathlib import Path try: from elftools.elf.elffile import ELFFile except ImportError: ELFFile = None from runners.core import ZephyrBinaryRunner DEFAU...
// Variables var signupButton = document.getElementById('signup-button'), loginButton = document.getElementById('login-button'), userForms = document.getElementById('user_options-forms') // Add event listener to the "Sign Up" button signupButton.addEventListener('click', () => { userForms.classList.remove('...
// COPYRIGHT © 201 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute ...
# # PySNMP MIB module HPN-ICF-FC-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-FC-TC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:26:28 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
const path = require('path'); const webpack = require('webpack'); const CleanWebpackPlugin = require('clean-webpack-plugin'); module.exports = { entry: {index: './src/index.js'}, output: { path: path.resolve(__dirname, '../dist'), filename: 'H.js', libraryTarget: 'umd', li...
/* * 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 moment from 'moment'; import { checkPara...
""" Stuckers. This is a checkers like game """ DIR_LT = 7 DIR_RT = 9 DIR_UP = True DIR_DN = False class Table: """ Global functions and communication between players. """ board = 0xaa55aa55aa55aa55 items = {} debut = True def show_board(): l = list(Table.items.values()) o = l[...
// Find all current unit commanders, their units, names and wing email addresses // // 09Apr18 MEG Created db = db.getSiblingDB( 'NHWG' ); var cur = db.Commanders.find( {Wing:'NH'} ).sort( {Unit:1} ); print( 'orgUnitPath,CAPID,fullName,primaryEmail' ); while ( cur.hasNext() ) { unit = cur.next(); // print("Uni...
//@author mu @16/4/27 var doExp1 = myLayer.extend({ sprite: null, changeDelete: true, //是否退出删除 layerName: "doExp1", //必要! 用于判定各种按钮的返回和进入 preLayer: "doLayer", //必要! 用来判定返回的上一个页面 load: function() { loadPlist("dotool") }, myExit: function() { //退出时调用 this._super() }, my...
import { combineReducers } from 'redux'; import { routerReducer as routing } from 'react-router-redux'; import { reducer as formReducer } from 'redux-form'; import auth from '../store/reducers/auth/'; import header from '../store/reducers/header'; import topnav from '../store/reducers/top-nav'; import footer from '../...
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
import React from 'react' import Icon from '@freesewing/components/Icon' import { Link } from 'gatsby' import formatMm from '@freesewing/utils/formatMm' import convertSize from '@freesewing/utils/convertSize' const Size = (props) => ( <div className={`shadow size ${props.breasts ? 'breasts' : 'no-breasts'}`}> <d...
var assault_2009_01 = [{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 90310129, "Date": "01\/31\/2009", "Time": "08:40 PM", "Police District": 4, "Offense 1": "SIMPLE ASSAULT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": nu...
# -*- coding: utf-8 -*- #------------------------------------------------------------------------- # drawElements Quality Program utilities # -------------------------------------- # # Copyright 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use t...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 sou...
const guildSystem = require("../models/guilds"); module.exports = async (client, role) => { const msgDocument = await guildSystem .findOne({ guildID: role.guild.id, }) .catch((err) => console.log(err)); if (!msgDocument) { try { const dbMsg = await new guildSystem({ guildID: mess...
import os import random import pickle from os import listdir from os.path import isfile, join def check_empty(fn): return 'nan' in open(fn).read() def run_real(fn, n, p, sd): output = 'result_km/%s.%d.%d.txt' % (fn, n, p) cmd = './has_real ../bpmn/%s 0 %d %d %d > %s' % (fn, n, p, sd, output) print cm...
const checkAuth = require("../middlewares/check-auth"); const userSchema = require("../models/user/user"); const router = require("express").Router(); router.get("/:token", checkAuth, async (req, res, next) => { const { _id } = req.user; try { const user = await userSchema.findByIdAndUpdate( { _id }, ...
import CoreObject from 'ember-runtime/system/core_object'; QUnit.module('Ember.CoreObject'); QUnit.test('works with new (one arg)', function() { let obj = new CoreObject({ firstName: 'Stef', lastName: 'Penner' }); equal(obj.firstName, 'Stef'); equal(obj.lastName, 'Penner'); }); QUnit.test('works wi...
/** ************************************************************************** * _head provides the list of the constants that are defined at the global * level of this module and are accessible to all. So, they are considered * as reserved words for this library. * *************************************************...
"""Provide classes relevant to keywords.""" from dataclasses import dataclass from .first_class_collection import FirstClassFileContextManagerProvider from .primitive import Primitive @dataclass class Keyword(Primitive): """Represent a keyword.""" keyword: str @property def primitive(self) -> str: ...
import firebase from 'firebase'; var config = { serviceAccount: { projectId: "firebase-testingtc", clientEmail: "tinycrate-server@firebase-testingtc.iam.gserviceaccount.com", privateKey: "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCYspOlQvAj8es7\nB1N2ru7+cxWI6gBOPJC5Ff...
import { ComplexAnimationBuilder } from '../animationBuilder/ComplexAnimationBuilder'; export class LinearTransition extends ComplexAnimationBuilder { constructor() { super(...arguments); this.build = () => { const delayFunction = this.getDelayFunction(); const [animation, co...
/** * @license AngularJS v1.5.6-build.4782+sha.3dcc016 * (c) 2010-2016 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular) {'use strict'; var $resourceMinErr = angular.$$minErr('$resource'); // Helper functions and regex to lookup a dotted path on an object // stopping at undefined/null...
import React from "react"; // import "../styles.css"; import "ace-builds/src-min-noconflict/mode-html"; import "ace-builds/src-min-noconflict/theme-monokai"; import "ace-builds/src-min-noconflict/snippets/html"; import "ace-builds/webpack-resolver"; function Questions(props) { return ( <dl> ...
import sst # Define SST core options sst.setProgramOption("timebase", "1ps") sst.setProgramOption("stopAtCycle", "0 ns") # Define the simulation components comp_cpu = sst.Component("cpu", "miranda.BaseCPU") comp_cpu.addParams({ "verbose" : 0, "printStats" : 1, }) gen = comp_cpu.setSubComponent("generator", "mirand...
var mysql = require('mysql'); require("dotenv").config(); const multer = require("multer"); var multerS3 = require('multer-s3'); const AWS = require('aws-sdk'); const s3 = new AWS.S3(); const path = require("path"); var db = require('./db'); const deleteMulter = multer(); const getFormData = multer({}); var storage = ...
# -*- coding: utf-8 -*- """ Created on Fri Aug 24 21:53:41 2018 @author: James Kring @email: jdk0026@auburn.edu """ from netCDF4 import Dataset import numpy as np import matplotlib.pyplot as plt # ============================================================================= # Purpose: wout_File class to handle vm...
/* eslint-disable react/forbid-prop-types */ import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { Lottie } from '@crello/react-lottie'; import { Button } from '../../../commons/Button'; import likeAnimation from '../animations/like.json'; export default function CardImage({ isLiked, po...
Ext.data.JsonP.draw2d_shape_basic_Circle({"tagname":"class","name":"draw2d.shape.basic.Circle","autodetected":{},"files":[{"filename":"Circle.js","href":"Circle.html#draw2d-shape-basic-Circle"}],"inheritable":true,"author":[{"tagname":"author","name":"Andreas Herz","email":null}],"extends":"draw2d.shape.basic.Oval","me...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class DeploymentModification { generateBase() { return { action: this.action, deploymentUrn: this.deploymentURN }; } } exports.DeploymentModification = DeploymentModification; //# sourceMappingUR...
export const credentialsData = [ { id: "1", img: "../images/credentials/HTML-and-CSS.jpg" }, { id: "2", img: "../images/credentials/Javascript-Algorithms-and-Data-Structures.png" }, { id: "3", img: "../images/credentials/Javascript-OOP.jpg" }, { id: "4", img:...
const merge = (components, field) => { return Object.assign({}, ...components.map(c => c[field])); }; const mergeComponentMetadata = (displayName, ...components) => { const fn = function () {}; fn.displayName = displayName; fn.groupId = displayName; fn.propTypes = merge(components, 'propTypes'); fn.defaultProps ...
import mongoose from 'mongoose' const cardSchema = mongoose.Schema({ name: String, imgUrl: String }) export default mongoose.model('cards', cardSchema)
(function () { 'use strict'; // Inject a script file in the current page var script = document.createElement('script'); script.src = chrome.extension.getURL('/scripts/injected/detectUI5.js'); document.head.appendChild(script); /** * Delete the injected file, when it is loaded. */ ...
$(document).ready(function(){ $(".select-brend").on('change',function () { var id = $(this).val() var href = window.location.href if(href.includes('search')){ var indexofSearch = href.indexOf('search=') var oldSearch = href.substring(indexofSearch, 100) ...
import express from "express"; import mongoose from "mongoose"; import { createServer } from "http"; import logger from "morgan"; import bodyParser from "body-parser"; import cookieParser from "cookie-parser"; import path from "path"; //Import MongoDB Connection import { mongoConnect } from "../api/config/database"; ...
require('./preload/preload'); var express = require('express'); var http = require('http'); var path = require('path'); var favicon = require('serve-favicon'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var less = require('less-middleware'); var session = require('express-ses...
var visualDiv = $('#visualDiv'), closeMusic = $('#closeMusic'), musicName = $('#musicName h1'), musicVisual = $('#musicVisual'), is_playing = false, old_track = "", new_track = "", //parameters for the svg visual data animation svgHeight = 300, svgWidth = 1200, barPadding = 1, frequencyData = ...
Meteor.publish('activities', function() { return Activities.find(); });
import pygame import sys from time import sleep from bullet import Bullet from alien import Alien pygame.init() def check_key_down(event, ship): if event.key == pygame.K_RIGHT or event.key == pygame.K_d: ship.move_right = True elif event.key == pygame.K_LEFT or event.key == pygame.K_a: ship....