text
stringlengths
3
1.05M
const { post } = require('../models'); const postController = require('./../controllers/post.controller'); const router = require("express").Router(); module.exports = function(app) { const apiUrl = '/api/v1/en-PH/post'; router.post('/create/:id', postController.createPost); router.get('/query', postCo...
(function () { angular.module("airlineApp", []); }());
import re import requests from datetime import datetime try: import constants as const except Exception as e: # DEBUG So it works on Local Download or PIP install import pyogame2.constants as const class OGame2(object): def __init__(self, universe, username, password, user_agent=None, proxy=''): ...
import {CLEAR_ERROR} from './types'; export const clearError = () => dispatch => { dispatch({type: CLEAR_ERROR, payload: null}); }
import PropTypes from 'prop-types'; import { Connect } from '@codetanzania/ewea-api-states'; /** * @function * @name Permit * @description Component which controls visibility of child components based on * user permissions * @param {object} props Component object properties * @param {string} props.withPermission...
/** * @description 配置文件 * @author Xiaohui Zeng * @date 2019/10/5 */ // 默认系统名称 export const siteTitle = 'Hui-Admin-Pro 企业级中台前端解决方案' // 默认首页 export const indexPage = 'workplace' // 默认登录页 export const loginPage = 'login' // 主题风格 export const themeData = { themeType: 'dark', // 主题风格配置 dark(经典酷黑) 或者 light(极简雅...
const theme = { global: { colors: { brand: '#ffce34', darkGray: '#474c55', lightGray: '#ddddda', white: '#ffffff' }, focus: { border: { color: 'lightGray' }, outline: { color: 'lightGray' } }, font: { family: 'Montserrat', ...
var searchData= [ ['native_5fthread_1409',['native_thread',['../df/dec/structABTD__xstream__context.html#a231609e0f1759e168fd028beff577842',1,'ABTD_xstream_context']]], ['nbytes_1410',['nbytes',['../de/db1/structABTI__eventual.html#acc20537000a5c6818e63cd186674f97f',1,'ABTI_eventual']]], ['nesting_5fcnt_1411',['n...
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { products: [{ id: 0, name: "Bedroom Lamp", price: 299, quantity: 0, image: "https://thumb.ibb.co/eET9VT/Bedroom_Lamp.jpg" }, { id: 1, name: "Dark ...
'use strict' let cart = new Cart([]); cart.restoreCartItems(); let totalItemsPrice = 0; let tableFR = document.getElementById('fisrtRow'); let table = document.getElementById('cart'); let totalPrice = document.getElementById('totalPrice'); let totalMessage = document.createElement('p'); let price = document.createEleme...
"use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ResourcePlugin(e){this.options=e}var _path=require(...
# Settings for dcmenvgen import sampledata # sampled modality, study description and SOP class UID sample_data = sampledata.SampleData() # extra characters to include in patient id generation extra_pid_chars = ' _' # the length of generated patient ID's min_id_length = 8 max_id_length = 16 # the length of generate...
# This is a troll indeed ffs *facepalm* # Ported from xtra-telegram by @heyworld import asyncio from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import ChannelParticipantsAdmins from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP, DEVS from userbot.utils impor...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val...
// Time In days, hours, minutes & seconds function timer(time) { let day = (24 * 60) let minutes = 60 let remDays = time/day let remHours = (time % day) / minutes let remMinutes = remHours % minutes console.debug(remDays + " day(s) " + remHours + " hours " + remMinutes + " Minutes " + remMinu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.preretrieve = void 0; const kit_1 = require("@salesforce/kit"); const hookUtils_1 = require("../utils/hookUtils"); // eslint-disable-next-line @typescript-eslint/no-var-requires const debug = require('debug')('jayree:hooks'); // eslint...
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{569:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return y}));var r=n(0),i=n.n(r);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n...
import os from tools import initialize def main(): working = True import tools while working: print_header() cmd = get_user_input() working = interpret_command(cmd) def print_header(): print('---------------------------------------------------') print(' ...
require(['test/a', 'test/b'], function(a, b){ console.log('I am app2') })
import axios from 'axios'; export default class PermitForm { constructor (data) { for (let field in data) { this[field] = data[field]; this.hasError = false; this.errorMessage = ""; this.errorCode = ""; this.success = false; ...
const assert = require("assert"); const { Readable } = require("stream"); const { oleoduc, transformData, writeData, compose } = require("../index"); const { delay } = require("./testUtils"); const createStream = () => { return new Readable({ objectMode: true, read() {}, }); }; describe("oleoduc", () => {...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"themes/JewelryBoxTheme/nls/strings":{_themeLabel:"Tema f\u00f6r smyckeskrin",_layout_default:"St...
$(document).ready(function(){ //----------------------------------------------------------- // START: Save Home Page Content //----------------------------------------------------------- $(document).on('click','#save-home-page',function(){ event.preventDefault(); swal({ tit...
const _marko_template = _t(); export default _marko_template; import _marko_createElement from "marko/dist/runtime/vdom/helpers/v-element"; const _marko_node = _marko_createElement("input", { "checked": "" }, "0", null, 0, 0); import _marko_renderer from "marko/dist/runtime/components/renderer"; import { t as _t }...
import fetchJson from "../../utils/fetch-json.js"; const App = async () => { const response = await fetchJson('http://backend:8080/index.php?r=ae', { method: 'GET', // или 'PUT' mode: 'no-cors', headers: { 'Content-Type': 'application/json' } }); return <div>{response}</div>; }; export de...
"""Functions to plot epochs data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Jaakko Leppakangas <jaeilepp@student.jyu.fi> # ...
1;/*a*///b
/*c*/2
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals # A list of all valid configuration keywords for a measurement. # The variable names depict the corresponding section title in # a configuration file, e.g. # # [setup] # channel width = 20 # chip region = channel # ... # [i...
import pytest from tests.fake_mqtt import FakeMQTTBroker, FakeMQTTClient from tests.helpers import TestClassWithFixtures class TestFakeMQTTClient(TestClassWithFixtures): fixture_names = ['capsys'] def test_on_connect_is_called(self): # Setup broker and client as one would do in test. fake_b...
""" Support for Rflink sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/light.rflink/ """ import asyncio from functools import partial import logging from homeassistant.components import group from homeassistant.components.rflink import ( CON...
/** * Returns the type of content in the current document, * currently either 'PDF' or 'HTML'. * * This function is injected as a content script into tabs in * order to detect the type of content on the page (PDF, HTML) etc. * by sniffing for viewer plugins. * * In future this could also be extended to support ...
// ========================================================================= // Copyright � 2017 T-Mobile 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.apa...
/* ============================================ ; Title: app.js ; Author: Professor Krasso ; Date: 22 September 2019 ; Modified By: Jordan Hennessy ; Description: NodeQuiz Application ;=========================================== */ const express = require('express'); const http = require('http'); const morgan = requ...
import torch import torch.nn as nn import torch.nn.functional as F import wandb import pytest import json import os import sys import time from pprint import pprint from torchvision import models from torch.autograd import Variable from pkg_resources import parse_version # Tests which rely on row history in memory sho...
var setData = require('@progress/kendo-angular-intl').setData; setData({ name: "en-AI", likelySubtags: { en: "en-Latn-US" }, identity: { language: "en", territory: "AI" }, territory: "AI", numbers: { currencies: { ADP: { displayName...
'use strict'; /** * Send a callback to API gateway (lambda integration type PROXY) * @param {object} context * @param {string} [context.awsRequestId] * @param callback * @param {number} statusCode * @param {object} contentObject */ function sendApiResponse(context, callback, statusCode, contentObject) { // se...
/** * @description dev 配置 * @author 双越 */ module.exports = { // mongodb 连接配置 mongodbConf: { host: 'localhost', port: '27017', dbName: 'testdb', }, // redis 连接配置 redisConf: { port: '6379', host: '127.0.0.1', }, // mysql 连接配置 mysqlConf: { ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
var searchData= [ ['version',['Version',['../cert-chain-files_8asn.html#a651d4ffd4aba18e0309cac246411352e',1,'Version(the&quot;License&quot;):&#160;cert-chain-files.asn'],['../cert-profile_8asn.html#a651d4ffd4aba18e0309cac246411352e',1,'Version(the&quot;License&quot;):&#160;cert-profile.asn'],['../component-cert-mana...
# qubit number=5 # total number=55 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
# Copyright 2019 The TensorTrade 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 or agreed to...
import hashlib import logging import pickle import sys import time import ray import ray.streaming.runtime.transfer as transfer from ray.streaming.config import Config from ray.streaming.operator import PStrategy from ray.streaming.runtime.transfer import ChannelID logger = logging.getLogger(__name__) logging.basicCo...
// import React from 'react'; // import { shallow } from 'enzyme'; // import GitHub from '../index'; describe('<GitHub />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
/******************************* Build Task *******************************/ var // dependencies gulp = require('gulp-help')(require('gulp')), runSequence = require('run-sequence'), // config config = require('./config/user'), install = require('./config/project/install'), ...
import logging import threading from queue import Queue from typing import Optional try: import miniupnpc except ImportError: pass log = logging.getLogger(__name__) class UPnP: thread: Optional[threading.Thread] = None queue: Queue = Queue() def __init__(self): def run(): t...
""" seqdb contains a set of classes for interacting with sequence databases. Primary sequence database classes: - SequenceDB - base class for sequence databases - SequenceFileDB - file-based sequence database - PrefixUnionDict - container to combine multiple sequence databases - XMLRPCSequenceD...
app.config(function($routeProvider, $locationProvider) { var routes = { '/search/:searchText': { templateUrl: 'views/search/list.html', controller: 'SearchCtrl', params: { navId: 'search' } } }; for (var url in routes) { ...
from random import randint fulltimeCaretakerNames = [] partTimeCaretakerNames = [] animal_type = [ 'big dog', 'bird', 'cat', 'rodent', 'rabbit', 'small dog' ] fd = open('full_time_caretaker.sql', 'r') sqlFile = fd.read() fd.close() # all SQL commands (split on ';') sqlCommands = sqlFile.spli...
const Promise = require('bluebird') const composeFile = Promise.promisify(require('composefile')) const compose = require('docker-compose') const path = require('path') const Config = require('../modules/Config') const Utils = require('../modules/Utils') const config = new Config() async function start(site) { ...
import pandas as pd import torch from torch.utils.data import Dataset class SSTDataset(Dataset): """ Stanford Sentiment Treebank V1.0 Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher Manning, Andrew Ng and ...
from __future__ import print_function import argparse import errno import os import shutil import subprocess import sys # Constants ANDROID_CPU_ABI_MAP = { 'arm' : 'armeabi-v7a', 'arm64' : 'arm64-v8a', 'x86' : 'x86', 'x64' : 'x86_64' } ANDROID_BUILD_CPUS = ['arm', 'arm64', 'x86', 'x64'] IOS_BU...
for item in range(10): ans = input("Will u join us tonight ? : ") if ans == "Y": age = eval(input("Enter your age:")) print("age = ",age) if age >= 18: print("Welcome to the party!!!") elif age >= 16: print("Do ur parents know ???") response = ...
# Copyright The PyTorch Lightning team. # # 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 i...
var ORIGINAL_ROM = null; var BASEURL = window.location.origin + window.location.pathname; var EN_US = false; // these are the md5 of the only roms that we will accept var ORIGINAL_MD5 = { "b9a66b2760daa7d5639cbad903de8a18": true, }; function doRandomize(buffer, seed) { try { var result = randomizeROM(buffer, se...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'...
const { asyncMiddleware } = require('../utils/middleware') const createStandardRoutes = require('./routeWorkers/standard') const formConfig = require('./config/risk') module.exports = ({ licenceService }) => (router, audited) => { const standard = createStandardRoutes({ formConfig, licenceService, sectionName: 'risk...
from yt.units.unit_symbols import *
import { StyleSheet } from 'react-native'; import Colors from 'theme/Colors'; import Dimensions from 'theme/Dimensions'; const style = StyleSheet.create({ background: { width: Dimensions.screenWidth, height: Dimensions.screenHeight, position: 'absolute', top: 0, left: 0, }, scrollView: { ...
# -*- coding: utf-8 -*- from __future__ import absolute_import import numpy as np import click from mmdcritic import heuristic_guess_gamma from sklearn.preprocessing import StandardScaler @click.command('cli') @click.argument('xpath', type=click.Path(exists=True)) @click.argument('iterations', default=1000, type=int)...
import BaseComponent from '../BaseComponent'; /** * 弦图 * @author tengge / https://github.com/tengge1 */ function ChordGraph() { BaseComponent.call(this); this.type = 'ChordGraph'; this.width = 400; this.height = 400; this.title = 'ChordGraph'; var data1 = []; var data2 = []; var r...
import styled from "styled-components" export const ExampleButton = styled.button ` background: green; color:orange; font-size: 2rem; `
from kaybee_bulma.siteconfig import SiteConfig import kaybee # Sphinx setup project = 'Kaybee' version = kaybee.__version__ release = version master_doc = 'index' exclude_patterns = ['_build'] extensions = [ 'sphinx.ext.intersphinx', 'kaybee', 'kaybee_bulma', ] intersphinx_mapping = { 'python': ('http...
/* eslint-disable no-param-reassign */ import axios from 'axios'; import store from '../store'; const axiosInstance = axios.create({ // insert axios options here. }); axiosInstance.interceptors.request.use((config) => { if (config.method !== 'GET' && config.method !== 'HEAD' && config.method !== 'OPTIONS') { ...
// SmoothScroll for websites v1.2.1 // Licensed under the terms of the MIT license. // People involved // - Balazs Galambosi (maintainer) // - Michael Herf (Pulse Algorithm) (function(){ // Scroll Variables (tweakable) var defaultOptions = { // Scrolling Core frameRate : 150, // [Hz] an...
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- from datatype.tree_node import TreeNode, pre_order_travel, in_order_travel, post_order_travel class Solution: def invertTree(self, root: TreeNode) -> TreeNode: #递归交换左右节点 if not root: return root root.left, root.right = root.right, root.left...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Model | government function', function (hooks) { setupTest(hooks); // Replace this with your real tests. test('it exists', function (assert) { let store = this.owner.lookup('service:store'); let model = store.c...
export default from './MachineryForm'
import numpy as np from unittest import TestCase from uniform_matroid import UniformMatroid from itertools import combinations from numpy import array_equal class TestUniformMatroid(TestCase): def setUp(self) -> None: self.size = 10 self.universe = set(range(self.size)) self.rank = 5 ...
// @constants import { TABS_ENUM } from '../constants'; export const CHANGE_ACTIVE_TAB = 'CHANGE_ACTIVE_TAB'; export const changeActiveTab = activeTabId => dispatch => dispatch({ type: CHANGE_ACTIVE_TAB, payload: TABS_ENUM[activeTabId] }); export const LOAD_DEFAULT_ATTRIBUT...
import axios from '../lib/axiosConfig'; function execute(value) { const api ='/fee'; return axios.post(api, value) } export default execute;
(window.webpackJsonpFileIcons=window.webpackJsonpFileIcons||[]).push([[28],{136:function(o){o.exports={viewBox:"0 0 854 1024",font:"devopicons",code:"e680",ref:"codeigniter",path:"M634 384q17 37-32 66t-92-19q-33-45-20-90 13-44 24-94.5T510 136Q494 76 405 0q22 44 8 87-15 43-47 83t-74 76q-42 36-75 68Q82 443 35 560-13 677 ...
export class Point { #x #y tag constructor (x, y, tag) { this.#x = x this.#y = y this.tag = tag } static build ([x, y]) { return new Point(x, y) } static version = '0.0.2' get coordinate () { return [this.#x, this.#y] } set coordinate ([x, y]) { this.#x = x this.#y...
var dbManager = require('./../../db/DatabaseManager.js'); var currencyService = require('./../../service/CurrencyService.js'); var util = require('./../../util/Util.js'); exports.getAllUsers = async function(req, res) { let userList = await dbManager.getAllUsers(); res.json(userList); }; exports.getUser = asy...
const app = require('express')() const server = require('http').Server(app) const io = require('socket.io')(server) const next = require('next') const port = parseInt(process.env.PORT, 10) || 3000 const dev = process.env.NODE_ENV !== 'production' const nextApp = next({ dev }) const nextHandler = nextApp.getRequestHand...
/* Render sketches using WebGL */ "use strict"; const createGlview = (palette, sketch) => { const vs = `#version 300 es uniform float u_vheight; uniform float u_aspect; uniform vec2 u_center; uniform float u_scale; in vec2 a_pos; in vec2 a_paletteCoord; out vec2 v_paletteCoord; ...
define([], function() { var strings = { "_cUY5i3OR5M46pep9mRCR0g": { "ManifestDownloadFailed": "Преузимање манифеста није успело.", "ManifestNullError": "Манифест за веб сегмент {0} је без вредности.", "ManifestInvalidError": "Манифест за веб сегмент {0} није важећи.", "ReadOnlyPropertyEr...
# -*- coding: utf-8 -*- """Diagnostic script to plot figure 9.14 of IPCC AR5 chapter 9. Description ----------- Calculate and plot the following quantities with regards to sea surface temperature: zonal mean error, equatorial mean error, equatorial mean. The errors are calculated against the reference given in the na...
const cors = require('cors'); const express = require('express'); const routes = require('./routes'); const bodyParser = require('body-parser'); const app = express(); const SwaggerRoutes = require('./routes/swagger'); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use(cors()); app...
const { EventHubProducerClient } = require("@azure/event-hubs"); const connectionString = "Endpoint=sb://jysintest.servicebus.windows.net/;SharedAccessKeyName=Write;SharedAccessKey=3hPtVV6bXSe/Vx8y8eTT+vQA35G0TRSRVqlKB4CXfvU=;EntityPath=jysintesteh1"; const eventHubName = "jysintesteh1"; async function main() { //...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Injectable, InjectionToken, Inject...
(function() { function UrlService(urlServiceUrl, http, q) { //return function () { var cachedUrls = null; this.getUrls = function() { var deferred = q.defer(); if (cachedUrls === null) { http.get(urlServiceUrl) ...
from tensortrade.oms.orders.trade import Trade, TradeSide, TradeType from tensortrade.oms.orders.broker import Broker from tensortrade.oms.orders.order import Order, OrderStatus from tensortrade.oms.orders.order_listener import OrderListener from tensortrade.oms.orders.order_spec import OrderSpec from tensortrade.oms.o...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys class opts(object): def __init__(self): self.parser = argparse.ArgumentParser() # basic experiment setting self.parser.add_argument('task', default='', ...
/* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable react/no-array-index-key */ import React from 'react' import AutoGenCrumb from './auto-gen-crumb' import ClickTrackingCrumb from './click-tracking-crumb' import { OptionsContext } from './options-context' const Breadcrumb = (props) => { const {...
#!/usr/bin/env python import sys, os, re, shutil import subprocess, shlex, glob import argparse import logging import random, time import gzip, itertools try: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt have_mpl = True except ImportError: have_mpl = False #mira run script #matplo...
/*! * ecdsa.js - ecdsa wrapper for libtorsion * Copyright (c) 2018-2019, Christopher Jeffrey (MIT License). * https://github.com/bcoin-org/bcrypto */ 'use strict'; const assert = require('../internal/assert'); const binding = require('./binding'); /** * ECDSA */ class ECDSA { constructor(name) { assert(...
import axiosAdapter from '../../src/http/axiosAdapter' import Axios from 'axios' describe('test-axios-adapter', function () { it('should instantiate axios correctly', function () { const spy = jest.spyOn(Axios, 'create') axiosAdapter.request({ method: 'get', axios: { baseURL: 'http://test...
import { AbstractPage, register } from '../components/AbstractPage' import { QRCode } from 'easyqrcodejs' register("DisplayQR", class DisplayQR extends AbstractPage { constructor(id) { super(id) } enter() { let html = this.html const myqr = window.localStorage.getItem("MYEUDCC") ...
function foo() { if (bar) { return bar(); } else { return; } }
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #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...
var challenges; var templates = {}; Handlebars.registerHelper('splitSlash', function(filename) { var filename = filename.split("/"); filename = filename[filename.length - 1]; return filename; }); function loadchal(id) { var obj = $.grep(challenges['game'], function (e) { return e.id == id; ...
let ball; function setup(){ createCanvas(windowWidth, windowHeight); ball = new Vehicle(100, 100); } function draw(){ background(51); let target = createVector(mouseX, mouseY); ball.arrive(target); ball.update(); ball.display(); }
import copy import json import logging import os import platform import random import secrets import signal import threading import time import traceback import zipfile from io import BytesIO from sys import exit from urllib.parse import urlparse import requests from requests.exceptions import ConnectionError from ste...
// babel.config.js module.exports = { presets: [ ['@babel/preset-env', { targets: { node: 'current' } }] ], };
import jwtDecode from 'jwt-decode'; const Auth = { isAuthenticated() { const { token } = localStorage; if (!token) return false; const decoded = jwtDecode(token); if (!decoded || !decoded.email || !decoded.userId || !decoded.iat || !decoded.exp) return false; return decode...
/* * @LastEditors: maqiang */ module.exports = { env: { es6: true, }, parserOptions: { ecmaVersion: 2019, sourceType: 'module', }, plugins: [ 'import', ], settings: { 'import/resolver': { node: { extensions: [ '.mjs', '.js', '.json' ], }, }, 'import/exten...
const mongoose = require('mongoose'); const {Schema} = mongoose; const FacultadEcoI04 = new Schema ({ Grupo: {type: String, required: true}, Noproductos: {type: Number, required:true}, Valor: {type: Number, required:true} }); module.exports = mongoose.model('faceco_i04', FacultadEcoI04);
import React, { PureComponent, Fragment } from 'react'; import { Table, Alert } from 'antd'; import styles from './index.less'; function initTotalList(columns) { const totalList = []; columns.forEach(column => { if (column.needTotal) { totalList.push({ ...column, total: 0 }); } }); return totalLi...
#! /usr/bin/env python3 # -*- coding: utf-8 -*- from .item import Item from ..base.sprite import Sprite class Hpup(Item): _HEAL=1 def __init__(self, x: int, y: int): super().__init__("/powerup/hp_up", x, y)
# -*- coding: utf-8 -*- from abc import ABCMeta, abstractmethod from collections import defaultdict import re from pyfr.mpiutil import get_comm_rank_root from pyfr.util import subclass_map def get_rank_allocation(mesh, cfg): allocator_map = subclass_map(BaseRankAllocator, 'name') name = cfg.get('backend', ...