text
stringlengths
3
1.05M
import scenes from './module/scenes' import mixer from './module/mixer' import stream from './module/stream' import transitions from './module/transitions' import durations from './module/durations' export default { scenes, mixer, stream, transitions, durations }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.SchemaController = exports.VolatileClassesSchemas = exports.convertSchemaToAdapterSchema = exports.defaultColumns = exports.systemClasses = exports.buildMergedSchemaObject = exports.invalidClassNameMessage = exports.fieldNameIsValid...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom"; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Mainpage from './Mainpage'; import Login from './Login'; import Signup from './Signup'; ...
import React from 'react' function Results(props) { return ( <> <h2>Your Results:</h2> <p>{props.correct} out of {props.totalQs} correct</p> <p>{props.average} seconds average per flashcard</p> </> ) } export default Results
import { Component } from '@angular/core'; import { Location } from '@angular/common'; export class AppComponent { constructor(location) { this.location = location; } getLinkStyle(path) { if (path === this.location.path()) { return true; } else if (path.length > 0...
import React from 'react'; import ContributorForm from './ContributorForm'; import { rtlRender, withRedux, fireEvent, waitFor, act } from 'test-utils'; import * as repositories from 'repositories'; import * as mockData from 'mock/data'; function setup(testProps = {}) { const props = { onSubmit: jest.fn(), ...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Matter = f()}}...
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native'; import { Heading1, Heading2, Paragraph } from '../.....
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang.th={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbars:'Editor toolbars',editor:'Rich Text Editor',source:'ดูรหัส HTML',newPage:...
import { Component, Directive, ElementRef, EventEmitter, forwardRef, HostListener, Input, NgZone, Renderer, Inject, Optional, Output } from '@angular/core'; import { Content } from '../content/content'; import { CSS, zoneRafFrames } from '../../util/dom'; import { Item } from './item'; import { ItemReorderGesture } fro...
'use strict'; exports.up = async function(knex, Promise) { await knex.schema.createTable('empty_soft_delete', function(table) { table.charset('utf8'); table.collate('utf8_unicode_ci'); table.increments('idAttr').unsigned().primary(); table.string('name', 64).notNullable().unique(); table.integer...
# -*- coding: utf-8 -*- """Tests for the metaregistry.""" import unittest import bioregistry from bioregistry.export.rdf_export import metaresource_to_rdf_str from bioregistry.schema import Registry class TestMetaregistry(unittest.TestCase): """Tests for the metaregistry.""" def test_minimum_metadata(self...
console.log('Memulai...') let { spawn } = require('child_process') let path = require('path') let fs = require('fs') let package = require('./package.json') const CFonts = require('cfonts') CFonts.say('Dream Bot', { colors: ['#f2aa4c'], font: 'block', align: 'center', }) CFonts.say(`'${package.name}' Oleh @${pack...
let rules = [], screen = []; const reverseString = s => { let res = ''; for (let i = 0; i < s.length; i++) res = s[i]+res; return res; } const rotatePattern = data => { let newData = [], len = data.length; for (let i = 0; i < len; i++) newData[i] = []; for (let yy = 0; yy < len; yy++) { ...
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # 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/LICEN...
var structequal__to = [ [ "operator()", "structequal__to.html#a6cb8f069b02593f2e8bbe7f3960e47b9", null ] ];
/*! @preserve * numeral.js language configuration * language : Estonian * author : Illimar Tambek : https://github.com/ragulka * * Note: in Estonian, abbreviations are always separated * from numbers with a space */ !function(){var a={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million...
'use strict'; let token = { _id: "5db2c71c9cb7b723fc462fbc", type: "accessToken", token: "7425a8ae4048d194f6390b64f45eb9525523a014", clientId: "5c0e74ba9acc3c5a84a51259", user: { _id: "5d77a756da1b2e0b4d6dbccf", username: "testTwo", firstName: "test", lastName: "two", email: "test@localhost.com", ts: ...
# -*- coding: utf-8 -*- from jobs import AbstractJob from subprocess import Popen, PIPE from sys import platform class Uptime(AbstractJob): def __init__(self, conf): self.hosts = conf["hosts"] self.interval = conf["interval"] self.timeout = conf.get("timeout") def _deadline_flag(self...
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Baricoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import unhexli...
// Import the necessary modules. /* eslint-disable no-console */ const AniListApi = require('..') // Create a new instance of the module. const anilist = new AniListApi({ client_id: process.env.CLIENT_ID, client_secret: process.env.CLIENT_SECRET }) // Some values to be used by the example. const id = 9...
var app=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function c(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function s(n,e,o){n.$$.on_destroy.push(function(n,...e){i...
/* You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken int...
# coding: utf-8 from __future__ import print_function import os import sys import time from datetime import timedelta import numpy as np import tensorflow as tf from sklearn import metrics from rnn_model import TRNNConfig, TextRNN from data.cnews_loader import read_vocab, read_category, batch_iter, process_file, bu...
from word import VocabularySchema import tkinter as tk from tkinter import ttk from random import randint # BOOK = 'Meine Sachen' # BOOK = 'Mein Zoo Gucklochbuch' # BOOK = 'Kasperle auf Reisen - Chapter 1' BOOK = 'Kasperle auf Reisen' VOCAB_INPUT = f'vocab/{BOOK}.json' SHUFFLE = False SORT = 'count' WINDOW_WIDTH = 6...
function loadEmojiOneArea() { $(".commentBody").emojioneArea({ pickerPosition: "bottom", useInternalCDN: true }); }
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. /* eslint-disable react/no-string-refs */ import React from 'react'; import PropTypes from 'prop-types'; import {MobileChannelHeaderDropdown} from 'components/channel_header_dropdown'; import MobileChannelH...
def update_gs_range(vals, sheet, cell_range): """Update range of cells in a google sheets sheet Args: vals (list:list:str): List of lists of movie attributes [[title,year,cover_url],...] sheet (<class Sheet>): Google Sheets sheet object cell_range (str): cell range in [A-Z][int]:[A-Z][int] style """ sheet.sp...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.17 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
import { render } from '@testing-library/react'; import PopularVotes from '../'; const MOCK_POP_VOTES_PROPS = { currentPVTotals: [100, 90, 5, 2, 1], evs: '1', handlePropVotes: jest.fn(), name: 'ME-CD1', popVotesData: { values: ['', '', '', '', ''] }, showPopVotes: true, stateEvs: '4', }; it('renders cor...
/* global describe, beforeEach, jasmine */ /* eslint camelcase: 0, no-invalid-this: 0 */ const _ = require('underscore'); require('./objectformatters.js'); const DeckBuilder = require('./deckbuilder.js'); const GameFlowWrapper = require('./gameflowwrapper.js'); const deckBuilder = new DeckBuilder(); const ProxiedG...
/* Q: Call two arms equally strong if the heaviest weights they each are able to lift are equal. Call two people equally strong if their strongest arms are equally strong (the strongest arm can be both the right and the left), and so are their weakest arms. Given your and your friend's arms' liftin...
""" Copyright 2017-Present Couchbase, Inc. Use of this software is governed by the Business Source License included in the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, Version...
var typewriter={};typewriter.Typewriter=function(){var context;a_sentences=[];c_index=0;var options={blink_interval:600,type_interval:65,construct_timeout:600,deconstruct_timeout:1500,caret_symbol:'|',random:false};typewriter.init=function(context_id,sentences){context=context_id;a_sentences=sentences;typewriter.blink(...
var util = require('./util.js'); describe("Slices", function () { it("L[0:2]", function () { var code = "\n\ L = [1, 45, 6, -9]\n\ return L[0:2]"; expect(util.run(code)).toEqual([1, 45]); }); it("L[2:]", function () { var code = "\n\ L = [1, 45, 6, -9]\n\ return L[2:]"; expect(ut...
import json from math import sqrt def load_files(infname="inphase_gene_sample_pairwise_norm_dists.json",basefname="permuted_gene_sample_pairwise_norm_dists.json",strains=["D6","FVO","SA250"]): inresults = json.load(open(infname)) epsilons = [float(e) for e in inresults["epsilons"]] inresults.pop("epsilons"...
/* ------------------------------------------------------------------------------ * * # D3.js - stacked and multiple bars * * Demo d3.js bar chart setup with animated transition between stacked and multiple bars * * ---------------------------------------------------------------------------- */ // Setup modul...
const db = require('quick.db') var cooldown = new db.table("cooldown") const ms = require("parse-ms"); exports.run = async (client, message, args) => { let user = message.author let timeout = 120000; let daily = await cooldown.fetch(`cooldown_${user.id}`); if (daily !== null && timeout - (Date.now() - daily...
const express = require('express'); const queries = require('./pubs.queries'); const auth = require('../../authentication'); const router = express.Router(); router.post('/', auth.authenticateToken, auth.isOwner, async (req, res) => { // Check if a pub is already assciated with owner account const owner_id =...
// Imports import React from 'react' import { hydrate } from 'react-dom' import { BrowserRouter as Router } from 'react-router-dom' import { Provider } from 'react-redux' // App Imports import { store } from './setup/store' import App from './Containers/App/App' // Client App const Client = () => ( <Provider stor...
var Three = (function (exports) { 'use strict'; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf....
/* * Actions for global errors across the whole application. */ import AppDispatcher from "../dispatcher.js"; import { errorActionTypes } from "../constants"; /* eslint-disable no-alert, no-console */ export default { errorDelete(err) { console.error("delete failure", err); // throw err; }, errorFetc...
const loadJsonFile = require('load-json-file') const boxen = require('boxen') const path = require('path') const getReposName = require('git-repo-name') const { execSync } = require('child_process') const END_MSG = `README.md was successfully generated. Thanks for using readme-md-generator!` const BOXEN_CONFIG = { ...
import React, { useEffect, useState } from 'react'; import axios from 'axios'; import CircularProgress from '@material-ui/core/CircularProgress'; import { useLocation, useHistory } from "react-router-dom"; import Results from '../../components/Results/Results'; import Pager from '../../components/Pager/Pager'; import...
"""Adding feature labels Revision ID: f7b5a1a03629 Revises: 2b6d23c715aa Create Date: 2020-11-09 11:19:51.472174 """ import sqlalchemy as sa from alembic import op from mlrun.api.utils.db.sql_collation import SQLCollationUtil # revision identifiers, used by Alembic. revision = "f7b5a1a03629" down_revision = "2b6d23...
import VueRouter from "vue-router"; import Basket from "./basket/Basket"; import Bookables from "./bookables/Bookables"; import Bookable from "./bookable/Bookable"; import Review from "./review/Review"; const routes = [ { path: "/", component: Bookables, name: "home", }, { path: "/bookable/:id",...
# فایل های استرینگ در پایتون متد های زیادی دارند # که بعدا به آن ها مراجه میکنیم
// eslint-disable-next-line import/no-unresolved, import/extensions, import/no-extraneous-dependencies import CourseAPI from 'api/course'; import actionTypes from '../constants'; export function onCreateChange(fileId, line, text) { return (dispatch) => { dispatch({ type: actionTypes.CREATE_ANNOTATION_CHANG...
on("chat:message",function(msg){ 'use strict'; var SCRIPT_NAME = "party-check"; if (msg.type !== "api") { return; } var args = msg.content.split(/(\s+)/).filter(function(e) { return e.trim().length > 0; }); if (args[0] !== "!party-check") { return; } if (...
## ## ##Getting Started with SIXFAB NB-IoT SHIELD ## ## ## import time import serial ser = serial.Serial( port='/dev/ttyS0', baudrate=9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS ) while 1: ser.reset_input_buffer() while 1: ser.write("ATE1\r") ...
import json import unittest import os, sys, time from cornflow_client.airflow.api import Airflow prev_dir = os.path.join(os.path.dirname(__file__), "../DAG") sys.path.insert(1, prev_dir) from DAG.update_all_schemas import get_new_apps existing_apps = [app.name for app in get_new_apps()] class DAGTests(unittest.Tes...
var vm = new Vue({ el: '#app', // 修改Vue变量的读取语法,避免和django模板语法冲突 delimiters: ['[[', ']]'], data: { host: host, error_name: false, error_password: false, error_password2: false, error_check_password: false, error_phone: false, error_image_code: false,...
const chai = require('chai'); const chaiHttp = require('chai-http'); const dirtyChai = require('dirty-chai'); const mongoose = require('mongoose'); const sinon = require('sinon'); const config = require(__dirname + '/../../config'); const app = require(__dirname + '/../../_server'); chai.use(dirtyChai); chai.use(chaiH...
/* * 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 { AutoFollowPatternForm } from '../../public/app/components/auto_follo...
/* eslint-disable global-require */ /** * NOTE: * * This file is automatically generated by the build process. * DO NOT CHANGE IT BY HAND or your changes will be lost. * * To change the format of this file, modify icon/build/createIconsDocs.js. * Add synonyms in icon/icons/synonyms.js. */ import ActivityIcon f...
/** * 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. */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === '...
import nodeResolve from "rollup-plugin-node-resolve"; /** * @type {import('rollup').RollupFileOptions} */ const config = { input: './esm/apiManagementClient.js', external: ["ms-rest-js", "ms-rest-azure-js"], output: { file: "./dist/arm-apimanagement.js", format: "umd", name: "Azure.ArmApimanagement"...
/* * Copyright 2015 Google Inc. 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 applicable...
let restaurants; let neighborhoods; let cuisines; let map; var markers = []; const myLazyLoad = new LazyLoad({ elements_selector:'.myLazyLoad' }); /** * Fetch neighborhoods and cuisines as soon as the page is loaded. */ document.addEventListener('DOMContentLoaded', (event) => { fetchNeighborhoods(); fetchCuisi...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for(var i = 0; i < props.length; i++){ var descriptor = props[i]; descriptor.enumerabl...
//暂时霸位. module.exports=function(Application){ function _getJob(id){ var Job=Application.getSessionVar('Jobs.'+id); if(Job && Job.logic && Job.logic.Preempt_Promise && "function"==typeof(Job.logic.Preempt_Promise)){ //skip, no need to require again }else{ var mdl=Application.tryRequire(argo.approot +...
/* @flow */ /* Generated by ./script/iconify */ /* eslint-disable max-len */ import React from "react"; import classnames from "classnames"; export default class SvgIconLogo extends React.Component { render(): ReactElement { const {className, ...rest} = this.props; const classes = classnames( ...
const ERRORCODE = { "UNIT" : "【單位名稱】不可空白。", "B06" : "【負責人姓名】不可空白。", // "GENDER" : "請選擇【負責人性別】。", "B061" : "【聯絡人姓名】不可空白。", "B062" : "【聯絡人電話】不可空白。", "B062_2" : "【聯絡人手機】不可空白。" , "B062_3" : "【聯絡人電話】或【聯絡人手機】請擇一輸入。", "B063" : "【填表人姓名】不可空白。", "B064" : "【填表人電話】不可空白。", "B064_2" : "【填表人手機】不可空白。", "B064_3" : "【聯絡人電話】或【...
import Hero from "./Hero"; const Home = () => { return ( <> <Hero text="Welcome to React 201" /> <div className="container"> <div className="row"> <div className=" col-lg-8 offset-lg-2 my-5"> <p className="lead"> Lorem, ipsum dolor sit amet consectetur adip...
#!/usr/bin/env python #-*- coding:utf-8 -*- __author__ = 'iambocai' import requests import json import time import socket import os import re import telnetlib import sys import commands class MemcachedStats: _client = None _key_regex = re.compile(ur'ITEM (.*) \[(.*); (.*)\]') _slab_regex = re.compile(ur...
const sidebarMenuConf = { theme: 'dark', accordion: true, shrink: true }; export { sidebarMenuConf }
if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; }
from __future__ import annotations import logging from typing import TYPE_CHECKING, Any, List, Type from django.apps import AppConfig from django.core.exceptions import ImproperlyConfigured from django.db.models import Model, signals from . import settings from .signals import pre_delete, pre_index, pre_update if T...
const JsonGA = require(__dirname + "/../lib/JsonGA"); const picture = new JsonGA.Picture(__dirname + "/demo.png"); picture.format().then((pic) => { pic.save(__dirname + "/demo.jsonga"); })
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
function handleSubmit(rchShapeIdx, currentModel) { const hydrusModel = $("#hydrus-model").val(); console.log(hydrusModel, currentModel); const nextIdx = parseInt(rchShapeIdx) + 1; if (hydrusModel !== null && hydrusModel !== undefined && hydrusModel !== '') { const formdata = {"hydrusModel": hy...
new Crawler({ appId: "", apiKey: "", rateLimit: 8, startUrls: [ "https://fleetdm.com/docs", "https://fleetdm.com/", "https://fleetdm.com/handbook", ], renderJavaScript: false, sitemaps: ["https://fleetdm.com/sitemap.xml"], exclusionPatterns: [], ignoreCanonicalTo: false, discoveryPattern...
/** * @author Bruce * created on 2018.06.08 */ (function () { 'use strict'; angular.module('BlurAdmin.pages.emergency') .controller('fireAlertPageCtrl', fireAlertPageCtrl); /** @ngInject */ function fireAlertPageCtrl($scope, $filter, $uibModal, msgCenter) { $scope.fireAlertData = [...
(function () { module('RequestAnimationFrameScheduler'); var RequestAnimationFrameScheduler = Rx.Scheduler.requestAnimationFrame; test('RequestAnimationFrameScheduler_Now', function () { var res; res = RequestAnimationFrameScheduler.now() - new Date().getTime(); ok(res < 1000); }); asyncTest('R...
class Usertore { } module.exports = UserStore;
const { Model, DataTypes } = require("sequelize"); const sequelize = require("../database"); class Recurso extends Model { } Recurso.init({ id: { type: DataTypes.INTEGER({ length: 10, unsigned: true, zerofill: true}), primaryKey: true, autoIncrement: true }, longitud_en_bytes: { type: DataTypes...
/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'magicline', 'si', { title: 'චේදය ඇතුලත් කරන්න' } );
# model settings model = dict( type='CascadeRCNN', num_stages=3, pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=dict( type='FPN', ...
import datetime from datetime import date import pytz from flask import abort, flash, redirect, render_template, url_for, request, jsonify, Flask from flask_login import current_user, login_required from flask_rq import get_queue from .. import db, csrf from .forms import (ChangeAccountTypeForm, ChangeUserEmailForm, In...
(function e(t, n, r) { function s(o, u) { if (!n[o]) { if (!t[o]) { var a = typeof require == "function" && require; if (!u && a) return a(o, !0); if (i) return i(o, !0); throw new Error("Cannot find module '" + o + "'"); } var f = (n[o] = { exports: {} }); ...
# Copyright 2015, Google Inc. # 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 source code must retain the above copyright # notice, this list of conditions and the f...
'use strict'; // Declare app level module which depends on views, and components angular.module('F1FeederApp', [ 'F1FeederApp.controllers', 'F1FeederApp.services' ]);
// @flow declare module 'lodash.flattendeep' { declare module.exports: *; }
import inspect from .libs import * class LongRunningTask(NSObject): @objc_method def performIteration_(self, info) -> None: try: delay = next(self.__dict__['interface']) NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_(delay, self, get_selector('perform...
import { Provider } from 'react-redux' import { compose } from 'redux' import { Colors } from '../../../src/components/containers' const { shallow, mount } = Enzyme jest.mock('../../../src/components/ui/ColorList') describe("<Colors /> Container ", () => { let wrapper const _store = { dispatch: jest...
# B/RK analyzer common input & data reading routine # # Mikael Mieskolainen, 2020 # m.mieskolainen@imperial.ac.uk import math import numpy as np import torch import argparse import pprint import os import datetime import json import pickle import sys import yaml import uproot def init(): """ Data initializatio...
var bodyparser = require('body-parser'); var express = require('express'); var status = require('http-status'); var _ = require('underscore'); module.exports = function(wagner) { var api = express.Router(); api.use(bodyparser.json()); /* Category API */ api.get('/category/id/:id', wagner.invoke(function(Cate...
const http = require('http'); const server = http.createServer((request, response) => { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World from BK!....again...lets test this again..please "); }); const port = process.env.PORT || 1337; server.listen(port); console.log("Server r...
import asyncio import base64 import json import os from dataclasses import dataclass import pytest from foxglove.test_server import DummyServer, create_dummy_server from httpx import URL, AsyncClient from . import dummy_server @pytest.fixture(name='loop') def _fix_loop(): try: loop = asyncio.get_event_l...
function moverElementoSeleccionado(listaInicial, listaFinal) { var i; for (i = 0; i < listaInicial.options.length; i++) { if (listaInicial.options[i].selected) { opcion = document.createElement('option'); texto = document.createTextNode(listaInicial.options[i].text); opcion.appendChild(texto); opcion.va...
import os import sys import gevent.monkey gevent.monkey.patch_all() from ddtrace.profiling import profiler # noqa p = profiler.Profiler().start(profile_children=True) pid = os.fork() if pid == 0: print("Exiting") else: print(pid) pid, status = os.waitpid(pid, 0) print("Exited") sys.exit(os.W...
/* eslint-disable no-console */ // server.js const express = require('express'); const SocketServer = require('ws').Server; // Set the port to 3001 const PORT = 3001; // Create a new express server const server = express() // Make the express server serve static assets (html, javascript, css) from the /public fol...
/** * Usage: * @generate-spacing(); * cssnano will remove it if it does not have the paranthesis. */ module.exports = (opts = {}) => { return { postcssPlugin: 'postcss-spacing', AtRule: { 'generate-spacing': (atRule, api) => { spacingPlugin(opts, atRule, api) }, }, } } module.expo...
const facilityStage = require('./facility-stage'); const facilityStageConditional = require('./facility-stage-conditional'); const facilityStageUnconditional = require('./facility-stage-unconditional'); const facilityValue = require('./facility-value'); const currencySameAsSupplyContractCurrency = require('../fields/cu...
/* MIT License Copyright (c) 2018 KubeMQ 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, publish, distrib...
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); var path = require("path"); module.exports = { entry: { "index": "./lib-es6/index.js", "index.min": "./lib-es6/index.js", }, output: { path: path.join(__dirname, "dist"), publicPath: "dist/", libraryTarget: "...
(function() { let Game = function() { this.IS_GAME_ON = true; // Whether game is on/off this.PLAYER_SCORE = 0; // Player score } Game.prototype.stopGame = function() { this.IS_GAME_ON = false; } Game.prototype.init = function() { hero.ship.init(); } Game.prototype.softReset = function() { this.IS_...
import defu from 'defu' import destr from 'destr' const KY = process.server ? require('ky-universal/node') : require('ky-universal/browser').default class HTTP { constructor(defaults, ky = KY) { this._defaults = { hooks: {}, ...defaults } this._ky = ky } setBaseURL (baseURL) { this...
zrequire('unread'); zrequire('unread_ops'); zrequire('message_flags'); set_global('ui', {}); set_global('channel', {}); set_global('starred_messages', { add: () => {}, remove: () => {}, }); run_test('starred', () => { const message = { id: 50, }; set_global('current_msg_list', { al...
var a00612 = [ [ "queue_base_t", "a00612.html#a2ab80dbe8e1ff5c80e3171a07bead220", null ], [ "queue_base_t", "a00612.html#a2ab80dbe8e1ff5c80e3171a07bead220", null ], [ "queue_and_mutex", "a00612.html#a61a4f2db66400f113fcfca3d49e1c5a4", null ], [ "~queue_and_mutex", "a00612.html#a645881e0897e03b1b29b30d91...