text
stringlengths
3
1.05M
import React from 'react'; import styled from 'styled-components'; import { Markdown, Toolbar } from '@kyma-project/react-components'; import { sortByOrder, filterWithoutInternal } from '../../commons/helpers'; import Highlight from 'react-highlight/lib/optimized.js'; const Wrapper = styled.div` box-sizing: border-b...
const fs = require('fs') const { NEXSS_PROJECT_CONFIG_PATH } = require('../config/project') const { deleteByProp, push } = require('@nexssp/extend/object') const { addTimestamp } = require('@nexssp/extend/string') const { config1 } = require('../config/config') function deleteFile(filename) { const questions = [] ...
/*========================================================================================= File Name: nav.js Description: Navigation available in Bootstrap share general markup and styles, from the base .nav class to the active and disabled states. Swap modifier classes to...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var asn1js = _interopRequireWildcard(require("asn1js")); var _pvutils = require("pvutils"); var _PolicyInformation = _interopRequireDefault(require("./PolicyInformation.js")); function _interopRequireDefault(ob...
var app = require('http').createServer(handler) , io = require('socket.io').listen(app) , fs = require('fs'); app.listen(8124); function handler (req, res) { fs.readFile(__dirname + '/chat.html', function (err, data) { if (err) { res.writeHead(500); return res.end('Error loading chat.html'); ...
from tests.prepare import BaseTestCase, datatype_redis, unittest class FloatTests(BaseTestCase): def test_value(self): a = 420.666 self.assertAlmostEqual(datatype_redis.Float(a), a) def test_empty(self): self.assertEqual(datatype_redis.Int(), 0.0) def test_set(self): a = ...
module.exports = { '/:section': ['mkmark'], };
$(() => { $('.discount-select').on('change', e => { e.preventDefault() const $this = $(e.target) const form = $this.closest('form') const discountInput = form.find('.discount-input') const productPrice = $this.data('markup-price') switch ($this.val()) { ca...
const { BigQuery } = require('@google-cloud/bigquery'); const bigquery = new BigQuery(); let lastVersionUpdated = null; const controls = [{ field: "multiplier", value: 1.0 }]; exports.probe = async (event, ctx) => { const payload = event.data ? JSON.parse(Buffer.from(event.data, 'base64')) ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.WatsonHealth3DCurveAutoVessels20 = factory()); }(this, (function () { 'use strict'; var _20 = { elem: 'svg', a...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uview-ui/components/u-line/u-line"],{ /***/ 643: /*!**************************************************************************!*\ !*** F:/Download/cloud-meow_2.1.3/uview-ui/components/u-line/u-line.vue ***! \*******************************************...
'use strict' const debug = require('debug')('biton:crypto') const supercop = require('supercop.wasm') const ed25519ToX25519 = require('ed25519-to-x25519.wasm') const noisec = require('noise-c.wasm') const blake2 = require('blake2.wasm') const bs58 = require('bs58') // Noise_*_25519_ChaChaPoly_BLAKE2b ( https://noise...
/* http://keith-wood.name/calendars.html Georgian localisation for Gregorian/Julian calendars for jQuery. Andrei Gorbushkin. */ (function($) { $.calendars.calendars.gregorian.prototype.regionalOptions['ka'] = { name: 'Gregorian', epochs: ['BCE', 'CE'], monthNames: ['იანვარი','თებერვალი','მარტი','აპ...
""" Copyright 2020 Nvidia Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Re...
// required to deploy to Ropsten - see README let mnemonic = ""; let HDWalletProvider; try { HDWalletProvider = require("truffle-hdwallet-provider"); mnemonic = require("./mnemonic"); } catch (e) { console.warn("You require 'truffle-hdwallet-provider' lib and a local 'mnemonic.js' to deploy to Ropsten"); ...
''' Integration tests for remote. TODO: Replace mock-ssh-server with some other alternatives. ''' import os import tempfile from boss.core import remote, fs def test_put(server): ''' Test put() transfers file to the remote end. ''' for uid in server.users: target_dir = tempfile.mkdtemp() sour...
# -*- test-case-name: flocker.node.agents.functional.test_ebs -*- # Copyright Hybrid Logic Ltd. See LICENSE file for details. """ An EBS implementation of the ``IBlockDeviceAPI``. """ from subprocess import check_output import threading import time import logging from uuid import UUID from bitmath import Byte, GiB ...
import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" export default function render(_ctx, _cache) { return (_openBlock(), _createElementBlock("svg", { "xmlns": "http://www.w3.org/2000/svg", "width": "24", "height": "24", "viewBo...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import reducers from './reducers'; import App from './components/app'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Prov...
const invariant = require("invariant"); const writtenNumber = require("written-number/lib/standalone"); function writtenNumberCurrency(config = {}) { const { lang, amount: amountArg, precision: precisionArg, amountFormatter, linker = "", precisionFormatter } = config || {}; invariant(lang...
// Generated by CoffeeScript 2.6.1 (function() { // `nodes.coffee` contains all of the node classes for the syntax tree. Most // nodes are created as the result of actions in the [grammar](grammar.html), // but some are created by other nodes as a method of code generation. To convert // the syntax tree into a ...
const { dependencyAvailable } = require('@loki/core'); const escapeShell = (str) => `"${str.replace(/(["\t\n\r$`\\])/g, '\\$1')}"`; const isTruthy = (args) => (arg) => args[arg] !== false && typeof args[arg] !== 'undefined'; const stringifyArg = (args) => (arg) => { const flag = arg.length === 1 ? `-${arg}` : `-...
# -*- encoding=utf-8 -*- # author: Cary import os import time from datetime import datetime import psutil class Info(object): def __init__(self, process): super(Info, self).__init__() self.process = process @property def process_name(self): return self.process.cmdline()[-1] @property def cpu(self): r...
# Copyright 2018 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 writing, s...
// Bbh import { } from "../../../../include/gbi" import { MOV_TEX_INIT_LOAD, MOV_TEX_ROT_SPEED, MOV_TEX_ROT_SCALE, MOV_TEX_4_BOX_TRIS, MOV_TEX_ROT, MOV_TEX_ALPHA, MOV_TEX_DEFINE, MOV_TEX_END, ROTATE_CLOCKWISE, TEXTURE_WATER } from "../../../../include/moving_texture_macros" // 0x07026DE4 const bbh_movtex...
# # Copyright (c) 2019 Intel 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 law or agreed to...
require('normalize.css/normalize.css'); import React from 'react'; import {Link} from 'react-router' export default ({children})=>( <div className="container container-fluid"> <div className="jumbotron"> <div className=""> <h4>Hola mundo</h4> <Link to="/afd/entradas"> <button clas...
import { RouterLinkStub } from '@vue/test-utils'; import Navbar from '../../../src/components/navbar.vue'; import NavbarLinks from '../../../src/components/navbar/links.vue'; import store from '../../../src/store'; import { mockLogin } from '../../util/session'; import { mount } from '../../util/lifecycle'; const m...
"use strict"; var Task = require('../ember-cli/lib/models/task'); var chalk = require('chalk'); var child_process_1 = require('child_process'); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Task.extend({ run: function () { var ui = this.ui; return new Promise(funct...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/ui/Device"],function(e){"use strict";var r=function(r,i){if(i){if(e.browser.msie||e.browser.edge){return i.scrollWidth-i.clientWidth-r}else if(e.brow...
import { RESULT_TEXT_NAME } from '../../src/constants/selectors'; import { appQueryParameters } from '../fixtures/queryParameters'; import { FIXTURES_COMPUTATIONS, FIXTURES_BACKSPACE, FIXTURES_ERROR_COMPUTATIONS, FIXTURES_TYPO_ERROR_COMPUTATIONS, FIXTURES_CHAINED_COMPUTATIONS, } from '../fixtures/computations...
const chai = require('chai'); const expect = chai.expect; const sinon = require('sinon'); const API = require('../../game/api.js'); const Game = require('../../game/game.js'); const responseExample = require('./state_response_example.json'); const Vector = require('victor'); const Utils = require('../../game/utils.js'...
"use strict"; // Imports import * as k from './constants.js' // Constants and variables const validVotingPeriods = []; function configureValidVotingPeriods() { // First elimination validVotingPeriods.push({ start: new Date(Date.UTC(2021, 7, 1, 1)), // Thursday, August 1, 1:00am UTC+0 // Unknown, just picke...
import React, { PropTypes, Component, StyleSheet } from 'react'; import {render} from 'react-dom'; import dynamics from 'dynamics.js'; import ReactDOM from 'react-dom'; import { Link } from 'react-router'; //Import Global Styles import './../../styles/styles.css'; import './../../main.scss'; //Local Styles import './...
var classwblut_1_1hemesh_1_1_h_e_t___diagnosis = [ [ "checkFace", "classwblut_1_1hemesh_1_1_h_e_t___diagnosis.html#a21b8c99ba0738fa90b63a1f3a5a4f916", null ], [ "checkHalfedges", "classwblut_1_1hemesh_1_1_h_e_t___diagnosis.html#af357f76ede1eb1bd3e700173df9b7bf8", null ], [ "checkVertex", "classwblut_1_1heme...
# BOJ 20057 import sys sys.stdin = open('input.txt', 'r') si = sys.stdin.readline dy = [0, 1, 0, -1] dx = [-1, 0, 1, 0] n = int(si()) graph = [list(map(int, si().split())) for _ in range(n)] tornado = [[False for _ in range(n)] for _ in range(n)] st = (n // 2, n // 2) # 토네이도의 이동 먼저 구현 def move(y, x, d, scale): ...
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Constraint = Matter.Constraint; var engine, world; var canvas; var palyer, playerBase, playerArcher; var baseimage; function preload() { backgroundImg = loadImage("./assets/background.png"); baseimage = loadImage("./asse...
var base58 = require('bs58'); var config = require('config'); var createError = require('http-errors'); var crypto = require('crypto'); var Promise = require('bluebird'); var TokenStore = require('../TokenStore'); var store = Promise.promisifyAll(new TokenStore()); module.exports = { genera...
// IMPORTANT NOTE: The object returned by Axios calls is a Promise, so any code after an API call // will be executed asynchronously. Make sure any code that you definitely want executed after // the request is complete is inside an attached 'then' statement. import Utilities from "./Utilities"; const axios = require...
import { defineConfig } from "vite"; import { resolve } from "path"; import vue from "@vitejs/plugin-vue"; import alias from "@rollup/plugin-alias"; import styleImport from "vite-plugin-style-import"; export default defineConfig({ plugins: [ vue(), alias({ entries: [{ find: "@", replacement: resolve(__dirname,...
import React from 'react' import { Container } from 'semantic-ui-react' export default function Home() { return ( <div> <Container> export default class className extends baseclassName { }; </Container> </...
# coding: utf-8 """ Genomic Data Store Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 imp...
from . import RareWords from . import SimLex999 from . import WordSim353 __all__ = ['RareWords', 'SimLex999', 'WordSim353']
# Importing standard libraries import sys ''' Function to check if factors are ones that are possible. Performs the core logic to check if the particular factor is a possible capacity ''' def checkFactors(a,factors): possibleCaps = [] for factor in factors: if(checkFactor(a,factor)): ...
A, B, C = map(int, input().split()) print((A + B) % C) print(((A % C) + (B % C)) % C) print((A * B) % C) print(((A % C) * (B % C)) % C)
# # 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 not...
export default { lang: 'el', dir: 'ltr', common: { ok: 'Αποθηκεύω', cancel: 'Άκυρο', key_backspace: 'backspace', key_del: 'delete', key_down: 'down', key_up: 'up', more_opts: 'More Options', url: 'URL', width: 'Width', height: 'Height' }, misc: { powered_by: 'Powere...
# docimages_after.py # Sends commands to get images for the manual. # Images for before and after for most commands # Make sure Audacity is running first and that mod-script-pipe is enabled # before running this script. #load and run the common core. exec( open("docimages_core.py" ).read() ) Commands = ["Cut", "Sp...
import Vue from 'vue'; import * as VeeValidate from 'vee-validate'; import axios from 'axios'; import _ from 'lodash'; Vue.use(VeeValidate); Vue.config.devtools = true; var vm = new Vue({ el: '#accounts-reset-password', data: { isBusy: false, error: '', message: '', succeeded:...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a5489"],{3850:function(t,e,o){},5015:function(t,e,o){"use strict";var a=o("3850"),s=o.n(a);s.a},"73f5":function(t,e,o){"use strict";var a=o("365c");e["a"]={queryStore:function(t){return a["a"].get("/admin/queryStore",t)},saveOrUpdateStore:function(t){...
import React, { useState } from "react"; import "./Forget.css"; import { Link as RouterLink } from "react-router-dom"; import { ToastContainer, toast } from "react-toastify"; import { forgetpassword } from "../../axios/instance"; import Forget from "../../assets/forget.png"; export default function Forget_page() { c...
const { transaction } = require('objection'); const WeeklyConf = require("../models/WeeklyConf"); const { matchTime } = require('./regexConst'); module.exports = async function weeklyConf(command, message) { if (command[1] == '--help') { message.channel.send('TODO: hogehoge') .then(msg => console.log(`Disc...
import styled from 'styled-components' import { colors } from '../../_shared/colors' export const ButtonWrapper = styled.div` background-color: ${colors.white}; padding-bottom: 5px; margin: 0.15rem 0 0 0; border: solid 1px #999; color: #655; border-radius: 5px; min-width: 1.1rem; min-height: 1.1rem; ...
import createPluginFactory from './createPluginFactory' export default ({ engine }) => { engine.injection.injectFactory('plugin', createPluginFactory()) }
alert('tests.js');
import React from 'react'; import {StatusBar} from 'react-native'; import {AppearanceProvider, Appearance} from 'react-native-appearance'; import {ThemeProvider} from 'styled-components'; import {Routes} from './src/routes'; import usePersistedState from './src/utils/usePersistedState'; import {themes} from './src/glob...
from itertools import permutations class Solution: data = [] def getPermutation(self, n: int, k: int) -> str: self.data = [] string = [] for i in range(1, n+1): string.append(str(i)) string = list(permutations(string)) temp = string[k-1] string = [] ...
angular.module("leaflet-directive") .factory('leafletMapEvents', function ($rootScope, $q, $log, leafletHelpers, leafletEventsHelpers) { var safeApply = leafletHelpers.safeApply, isDefined = leafletHelpers.isDefined, isObject = leafletHelpers.isObject, Helpers = leafletHelpers, error...
/** * Habbo HTML5 * * Based upon original code by: * * Copyright (c) 2014 Kedi Agbogre (me@kediagbogre.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, inc...
import struct import board import busio import smbus2 import bme280 import serial import pynmea2 import neopixel import FaBo9Axis_MPU9250 import adafruit_bh1750 import adafruit_ads1x15.ads1115 as ADS from adafruit_ads1x15.analog_in import AnalogIn from time import sleep class NeboscopeBME280: # опрос датчика те...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
const promise1 = Promise.resolve(3); const promise2 = 42; const promise3 = new Promise(function(resolve, reject) { setTimeout(resolve, 100, 'foo'); }); Promise.all([promise1, promise2, promise3]).then(function(values) { console.log(values); }); // expected output: Array [3, 42, "foo"]
import time import requests import pandas as pd from bs4 import BeautifulSoup # Block 1, try to get tanggal, judul, and link for every article print('Block 1, try to get tanggal, judul, and link for every article') tanggal = [] judul = [] link = [] def get_articles(url, sleep_time): # make request...
#!/usr/bin/env python # # Tool for generating debug configs at debug/*: # ./gen_debug_configs.py # import json # # Register board name / part of the board name to match multiple boards: # { 'board name': [ debug_config_file ], } # registry_board = { 'developerkit': ['stm32l4x.json'], } # # Add debug configs ...
""" spawningtool.constants ~~~~~~~~~~~~~~~~~~~~~~ """ FRAMES_PER_SECOND = 22.4 BO_EXCLUDED = set([ 'MULE', 'ReaperPlaceholder', 'Interceptor' 'AutoTurret', 'PointDefenseDrone', 'Locust', 'LocustMP', 'LocustMPFlyer', # LotV Alpha Mod 'Changeling', 'ChangelingMarine', 'Chang...
const { expect, sinon } = require('test/test-helper') const StateMachinePersistence = require('./persistence') const StateMachine = require('../state-machine') describe('StateMachinePersistence', () => { describe('#persist', () => { let Machine let machine let key let store let blergh befor...
export const DUMMY_PLACES = [ { id: "p1", title: "Bora Bora", address: "Indonesia, Bora Bora", description: " very #1 beautiful place", location: { longitude: 289.098, latitude: 32.23, }, imageUrl: "https://i.pinimg.com/originals/94/b0/ca/94b0caaed79d45f4ded9178a5876d91e...
import Head from 'next/head'; import Link from 'next/link'; import styles from '../components/css/css.module.css'; import "./api/pokemon/typeList/[typeList].js"; import TypeSearch from '../components/TypeSearch/index.js'; const Type= ()=>{ return( <div> <h1 className={styles.head}>TypeSearch</h1> ...
import numpy as np import tensorflow as tf from tensorflow.keras.losses import Huber from examples.frustum_pointnet.dataset_utils import NUM_HEADING_BIN, \ g_mean_size_arr, NUM_SIZE_CLUSTER def ExtractBox3DCornersHelper(centers, headings, sizes): """ TF layer. Inputs: center: (B,3) ...
const config = require("../../config"); const lodash = require("lodash"); class TradingUtils { /** * Checks the liquidity in the order books of the exchanges and makes sure there are at * least {@code orderBookFactor} times the needed liquidity before executing the order. * * @param ex exchange * @par...
// Declare constants reqiured for the signature process const crypto = require('crypto'); const qs = require('querystring'); const emptyHash = 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'; // CloudFront includes the x-amz-cf-id header in the signature for custom origins const signedHeadersCustomOr...
const path = require('path'); var prod = process.env.NODE_ENV === 'production'; module.exports = { wpyExt: '.wpy', eslint: {{lint}}, cliLogs: !prod, build: { {{#web}} web: { htmlTemplate: path.join('src', 'index.template.html'), htmlOutput: path.join('web', 'index.html'), jsOutput: pa...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test new Granacoin multisig prefix functionality. # from test_framework.test_framework import Bitcoi...
/*global dijondemo, $ */ /** * @author Camille Reynders * Date: 03/02/12 * Time: 13:38 */ (function( ns ) { 'use strict'; ns.views.TodoFormView = function() { var $newTodo = $('.new-todo'); return { system: undefined, //inject enterKey: undefined, //inject uuidUtil: undefined, //inject setup: fun...
'use strict'; /** * End-to-end test for `cli`. */ const path = require( 'path' ); const fs = require( 'fs' ); const rimraf = require( 'rimraf' ); const cli = require( '../src/cli' ); const fileUrl = require( './util/file-url' ); const mktmpdir = require( './util/tmpdir' ); const { rColor } = require( '../src/print...
module.exports={A:{A:{"2":"H D G E A B IB"},B:{"1":"0 J L N I","2":"C p"},C:{"1":"1 2 4 6 7 8 9 a c d e f g h i j k l m n o M q r s t u v w x y z AB BB CB","2":"0 3 cB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z aB UB"},D:{"1":"1 4 6 7 8 9 i j k l m n o M q r s t u v w x y z AB BB CB OB GB eB JB HB KB LB MB","2...
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict'; const name = "outgoing-call"; const pathData = "M368 298q17 16 33 32l32 32q15 15 14.5 33T433 428q-6 5-11.5 10.5T411 450q-15 17-33.5 23.5T339 480h-8l-9-1q-36-4-68-18.5T192 426q-54-37-96-83.5T25 237q-10-20-16-...
// Underscore.js 1.7.0 // http://underscorejs.org // (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. (function() { // Baseline setup // -------------- // Establish the root object, `window` in the ...
import copy from inspyred.ec.variators.crossovers import crossover from inspyred.ec.variators.mutators import mutator ##################################################################### # Operatores over integer set representation {id1, id2, ... ,id_n} ##############################################################...
import fetchData from '../utils/fetch' import parseCsv from '../utils/parseCsv' import { getLocalData, setLocalData } from './index' import { trimWrap } from '../utils/index' import tagText from '../utils/tagText' const phraseMap = new Map() let loaded = false const getPhrase = async (full = false) => { if (!loaded...
import test from 'tape-catch'; import testUtils from 'vtk.js/Sources/Testing/testUtils'; import vtkOpenGLRenderWindow from 'vtk.js/Sources/Rendering/OpenGL/RenderWindow'; import vtkRenderWindow from 'vtk.js/Sources/Rendering/Core/RenderWindow'; import vtkRenderer from 'vtk.js/Sources/Rendering/Core/Renderer'; import v...
const Knex = require('knex'); const {addDefaultColumns, references} = require('../../lib/tableUtils'); const tableNames = require('../../constants/tableNames'); /** * @param {Knex} knex */ exports.up = async (knex) => { await Promise.all([ knex.schema.createTable(tableNames.user, (table) => { ...
""" Test Salt MySQL module across various MySQL variants """ import logging import pytest import salt.modules.mysql as mysql from tests.support.pytest.mysql import * # pylint: disable=wildcard-import,unused-wildcard-import log = logging.getLogger(__name__) pytestmark = [ pytest.mark.slow_test, pytest.mark.s...
import express from 'express'; import accountRoutes from './account.routes'; import transactionRoutes from './transaction.routes'; const router = express.Router(); /** * Routers (route handlers). */ router.use('/', accountRoutes); router.use('/transactions', transactionRoutes); module.exports = router;
layui.use('jquery', function () { var $ = layui.jquery; $(function () { //播放公告 playAnnouncement(3000); }); function playAnnouncement(interval) { var index = 0; var $announcement = $('.home-tips-container>span'); //自动轮换 setInterval(function () { ...
var app = require('express')(); var http = require('http').Server(app); var io = require('socket.io')(http); var Redis = require('ioredis'); var redis = new Redis(); io.on('connection', function(socket){ console.log('a user connected ' + socket.id); }); http.listen(3000, function(){ console.log('listen...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
import React, { useEffect, useState } from "react"; import { useParams } from "react-router"; import { motion } from 'framer-motion' import { pageTransition, pageZoom } from "../../util"; import BookmarkRoundedIcon from "@material-ui/icons/BookmarkRounded"; import ChatBubbleOutlineIcon from '@material-ui/icons/ChatBubb...
# Copyright 2021 RangiLyu. # # 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 writing, so...
from os import environ from bs4 import BeautifulSoup from dotenv import load_dotenv from openpyxl import Workbook from requests import Session load_dotenv() SCHOOL_CODE = environ.get('SCHOOL_CODE', input('Enter School Code: ')) SECTIONS = 'FGHIJKLM' STUDENTS_PER_SECTION = 40 LAST_VALID_ROLL = '000' ROLLS = ['00' + s...
function onYouTubePlayerReady(playerId) { ytplayer = document.getElementById("myytplayer"); // console.log('YouTubePlayerReady'); hp.setPlayer(ytplayer); hp.startPlayback(); } function onytplayerStateChange (newState) { // alert("Player's new state: " + newState); hp.onPlayerStateChange(newState); } ...
const fetch = require("node-fetch"); const utils = { greetings: to => { if (!to) { throw new Error("Argument expected"); } return `Hello ${to} 👋👋`; }, makeHeading: text => (text ? `<h1>${String(text).trim()}</h1>` : ""), formatCodeBlock: text => (text ? `<pre>${text}</pre>` : ""), fet...
"use strict"; const { resolve } = require("path"); const fs = require("fs"); const ts = require("typescript"); function getDefinitions(source) { const sourceFile = ts.createSourceFile("filename.ts", source); const defs = [ ]; function add(type, name, pos) { const lineNo = sourceFile.getLineAndC...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var container = require('./src/container'); var cors = require('cors'); var db = container.get('dbCo...
import { div, span } from '@cycle/dom'; import { renderElevation2After, renderElevation2Before } from '../../styles/utils'; import { fontCode, DIMENS, merge } from '../../styles'; function renderOperatorLabel(label) { let fontSize = (label.length >= 45) ? 1.3 : (label.length >= 30) ? 1.5 : 2; let style = merg...
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{f73bd7769e9a3ab726b7:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return v});var o,r=n("8af190b70a6bc55c6f1b"),i=n("372591fc9360ab1fd053"),a=n("6643a48240e3ce4e96c0"),c=n("f01efac8284662da352d");function f(e){return(f="function"===typeof Symbol...
// console.log('duke.crtp.js');
/** * Removes an entry from files like tools/experiments/experiments-config.js, * whose id property is specified by --experimentId: * * [ * { * ... * }, * - { * - id: 'foo', * - name: 'Foo.', * - spec: '...', * - }, * { * ... * } * ] * * @pa...
import React, { Component } from 'react' import './style.scss' class ExperienceUnit extends Component { render() { return ( <div className="experience-unit col-xs-12 col-sm-6 col-md-4"> <a href={this.props.link} target="_blank"> <div className="image" style={{ ...
"""Adds docstrings to functions defined in the torch._C""" import re import torch._C from torch._C import _add_docstr as add_docstr def parse_kwargs(desc): """Maps a description of args to a dictionary of {argname: description}. Input: (' weight (Tensor): a weight tensor\n' + ' So...