text
stringlengths
3
1.05M
/** * Copyright 2015 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
import * as React from "react"; import "../utils/style.css"; function UimAlignLeftJustify(props) { return /*#__PURE__*/React.createElement("svg", Object.assign({}, props, { viewBox: "0 0 24 24", width: props.size || '1em', height: props.size || '1em', fill: "currentColor", className: `ui-svg-inli...
!function(t){function r(o){if(n[o])return n[o].exports;var e=n[o]={exports:{},id:o,loaded:!1};return t[o].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}var n={};return r.m=t,r.c=n,r.p="",r(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){"use strict";n(2)},function(t,r){}]);
import Node from '../../../components/Node' import {DATA_TYPES} from "../../../../../engine/templates/DATA_TYPES"; import NODE_TYPES from "../../../components/NODE_TYPES"; export default class Min extends Node { constructor() { super([ {label: 'A', key: 'a', accept: [DATA_TYPES.FLOAT]}, ...
// Generated on 2014-06-06 using // generator-sapui5 0.0.1 'use strict'; var LIVERELOAD_PORT = 35729; var SERVER_PORT = 9000; var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); var mountFolder = function(connect, dir) { return connect.static(require('path').resolve(dir)); }; // # Globbing /...
import EventEmitter from 'events' import Cookies from 'js-cookie' import axios from 'axios' import { VBtn, VSpacer } from 'vuetify/lib' import { ServersApi } from './servers' import { NodesApi } from './nodes' import { UsersApi } from './users' import { TemplatesApi } from './templates' import parseTheme from '@/utils/...
import { render, screen } from '@testing-library/react' import { shallow } from 'enzyme' import { BrowserRouter as Router } from 'react-router-dom' import Menu from 'pages/Menu' test('Buttons are rendered (jest)', () => { render(<Router><Menu /></Router>) expect(screen.getByRole('link', { name: /Notepad/i })).toBeIn...
/** * 封装ajax的函数 */ function ajax(obj) { //初使化对象s var xhr = (function() { //让这个函数来实现对象的初使化 if (typeof(XMLHttpRequest) != 'undefined') { //高级浏览器,支持XMLHttpRequest return new XMLHttpRequest(); } else if (typeof(ActiveXObject) != 'undefined') { //垃圾浏览...
import pytest from utils.fakes import * import sys from fastai.gen_doc.doctest import this_tests ## run: pytest tests/test_basic_data.py -s # filename: test_basic_data.py ## Test Cases ## TO DO: Function intercept_args ## TO DO: Class DeviceDataLoader ## Class DataBunch def test_DataBunch_Create(): ...
Package.describe({ name: 'vulcan:i18n-en-us', summary: 'Vulcan i18n package (en_US)', version: '1.16.0', git: 'https://github.com/VulcanJS/Vulcan.git', }); Package.onUse(function(api) { api.use(['vulcan:core@=1.16.0']); api.addFiles(['lib/en_US.js'], ['client', 'server']); });
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings from sis_provisioner.models.course import Course from sis_provisioner.views.admin import RESTDispatch from sis_provisioner.dao.canvas import ( get_account_by_id, get_course_by_id, get_course_by_s...
import React, { useEffect, useState, useCallback } from "react"; import { useDispatch } from "react-redux"; import { Input, Label, Select } from "@windmill/react-ui"; import { createForwardRule, editForwardRule } from "../../redux/actions/ports"; const CommandOptions = [ { label: "TCP - 普通端口转发", value: "tcp" }, ...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Class = require('../utils/Class'); var ProcessQueue = require('../structs/ProcessQueue'); var PluginCache = require('../plugins/PluginCache'...
$(window).scroll(function () { $('#badcord').each(function () { if ($(window).scrollTop() + $(window).height() >= $(this).position().top && $(window).scrollTop() < $(this).position().top + $(this).height() && !($(this).hasClass('fadeInRight'))) { $(this).addClass('fadeInRight'); } else if (($(win...
// @flow import type { Token } from '../tokens'; import type { TokenType } from '../constants'; import { Tokens } from '../tokens'; import { TokenTypes } from '../constants'; class TokenStream { remainingSrc: string currentLine: number currentColumn: number nextToken: ?Token constructor(src: stri...
/* eslint no-unused-vars:0 */ import { readFileSync } from "fs"; import path from "path"; import { fileURLToPath } from "url"; import { splitEasy } from "csv-split-easy"; import crypto from "crypto"; import { sort } from "../dist/csv-sort.esm.js"; const __filename = fileURLToPath(import.meta.url); const __dirname = ...
import { CloudContext } from './utils'; describe('OpenGraph story', () => { const ctx = new CloudContext(); describe('When alice requests opengraph info for our blog', () => { ctx.requestShouldNotError(async () => { ctx.response = await ctx.alice.og('https://getstream.io/blog/try-out-the-stream-api-with...
import test from 'tape' import { take, put, race } from '../src/effects' import { asap, flush, suspend } from '../src/internal/scheduler' export const runSyncDispatchTest = (assert, store, runSaga) => { const actual = [] assert.plan(1); runSaga(root) store.subscribe(() => { if (store.getState() === 'c')...
module.exports = { Client: require('./Client.js'), version: require('../package.json').version, /* API Status */ APIStatus: require('./structures/APIStatus.js'), APIIncident: require('./structures/APIIncident.js'), Player: require('./structures/Player.js'), Game: require('./structures/Game.js'), Frien...
import * as React from "react"; function IconLayoutSidebarRightCollapse({ size = 24, color = "currentColor", stroke = 2, ...props }) { return <svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-layout-sidebar-right-collapse" width={size} height={size} viewBox="0 0 24 24" strokeWid...
# Copyright 2015 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...
const NODE_ENV = process.env.NODE_ENV || 'development' module.exports = { /** The environment to use when building the project */ env: NODE_ENV, /** The port number the server is listening on */ port: process.env.PORT || 3000, /** The full path to the project's root directory */ basePath: __dirname, /** ...
//Personaliser Rancho function setLang(o){ if($(o).val()=="ar" || $(o).val()=="en"){ $.get("/api/lang?lang="+$(o).val()) .done(function(data,statut){ if(statut=="success") location.reload(); }); } }
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
'use strict'; module.exports = { rules: { 'ava/no-incorrect-deep-equal': 'off', 'ava/no-inline-assertions': 'off', 'ava/prefer-t-regex': 'off', }, };
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg...
require('dotenv').config({ path: require('path').resolve(__dirname, '../../.env.test') })
import os try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages package_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(package_directory, "README.md"), encoding="utf-8") as fh: long_description = fh.read(...
// import React from 'react'; // import { shallow } from 'enzyme'; // import Board from '../index'; describe('<Board />', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
var Example = Example || {}; Example.circleStack = function() { var Engine = Matter.Engine, Render = Matter.Render, Runner = Matter.Runner, Composites = Matter.Composites, MouseConstraint = Matter.MouseConstraint, Mouse = Matter.Mouse, World = Matter.World, B...
module.exports = new Date(1983, 2, 5)
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
import Jsonp from 'jsonp' function param (data) { let url = '' for (var key in data) { let value = data[key] !== undefined ? data[key] : '' url += `&${key}=${encodeURIComponent(value)}` } return url ? url.substring(1) : '' } export default function (url, data, option) { url += (url.indexOf('?') < 0 ...
export default function size({ from = 0, duration = 400 } = {}) { if (from > 100) from = 100; if (from < 0) from = 0; return function ({ popper, data }) { let child = popper.children?.[0]?.children?.[0], [mainPosition] = data.position.split("-"), horizontal = ["left", "right"].includes(mainPositi...
""" WSGI config for blog project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
# # 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...
var events = require('events'), eventEmitter = new events.EventEmitter(), fs = require('fs'), path = require('path'); var modules = []; module.exports = eventEmitter; module.exports.initialize = function() { eventEmitter.emit('initialize'); var directories = fs.readdirSync('./lib').filter(f => fs.st...
const addComment = async (event) => { event.preventDefault(); const post_id = document.querySelector('#post-id').value.trim(); const commentText = document.querySelector('#comment-box').value.trim(); if (commentText) { const response = await fetch(`/api/comments`, { method: 'POST', ...
export default function() { return [ {title: 'The 5 Ways', pages: 20}, {title: 'Stephen King Stuff', pages: 4000}, {title: 'Happy Days', pages: 4}, {title: 'Another Book', pages: 534} ] }
# coding: utf-8 import pprint import re import six class JobRecords: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json...
/** * Nocp Startpage * Copyright (c) NriotHrreion 2020 * * Thank you for your use. * If the startpage has bug, please tell me on github, I'll fix it! * * @author NriotHrreion * @license Apache-2.0 */ /// <reference types="chrome"> class Popup { constructor() { this.inputs = [ ...
import alieninvadersproject if __name__ == "__main__": pass
module.exports = { entry: './src/client.js', output: { path: './public', filename: 'bundle.js' }, module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' } ] }, resolve: { extensions: ['', '.js', '.json'] } };
const scrollLimit=150;var dataText=["full stack developer","web designer","student","gamer","drummer"];function typeWriter(t,e,n){e<t.length?(document.querySelector("header div h1").innerHTML=t.substring(0,e+1)+'<span aria-hidden="true">_</span>',setTimeout((function(){typeWriter(t,e+1,n)}),100)):"function"==typeof n&&...
"""SCons.Tool.zip Tool-specific initialization for zip. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation # # Permission is...
from .AE import * from .SAE import * from .SAE_PBHL import * from .DSAE import * from .DSAE_PBHL import *
/* @flow */ import React from "react"; import PropTypes from "prop-types"; import "./styles.css"; export class SassButton extends React.PureComponent<{ normal: boolean, buttonText: string, onSelect: void => void }> { static propTypes = { normal: PropTypes.bool.isRequired, buttonText: ...
/** * Module dependencies. */ var debug = require('debug')('slate-irc-parser'); var linewise = require('linewise'); var Stream = require('stream'); /** * Expose `Parser`. */ module.exports = Parser; /** * Initialize IRC parser. * * @param {Type} name * @return {Type} * @api public */ function Parser() {...
# -- coding: utf-8 -- from flask import Blueprint from flask_restplus import Api from ..apis.root.calc import ns as calc authorizations = { 'Bearer Auth': { 'type': 'apiKey', 'in': 'header', 'name': 'Authorization' }, } blueprint = Blueprint('api_1013', __name__, url_prefix='/v1013')...
// Important modules this config uses const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const OfflinePlugin = require('offline-plugin'); module.exports = require('./webpack.base.babel')({ // In production, we skip all hot-reloading stuff ent...
// next.config.js module.exports = { async headers() { return [ { // matching all API routes source: "/api/:path", headers: [ { key: "Access-Control-Allow-Credentials", value: "true" }, { key: "Access-Control-Allow-Origin", value: "chicagophotoshop.photography" }...
"use strict"; (self["webpackChunkneo_mjs"] = self["webpackChunkneo_mjs"] || []).push([["examples_menu_panel_app_mjs"],{ /***/ "./examples/menu/panel/MainContainer.mjs": /*!***********************************************!*\ !*** ./examples/menu/panel/MainContainer.mjs ***! \*****************************************...
const white = "#FFFCF7"; export default { fonts: { body: "'Fira Sans Condensed', sans-serif", monospace: "'Fira Code', monospace" }, googleFont: "https://fonts.googleapis.com/css?family=Fira+Code|Fira+Sans+Condensed:400,700&display=swap", prism: { codeTagProps: { style: { fontFamily: "Fira Code...
import React from "react"; import CheckIcon from '@material-ui/icons/Check'; export default function FormSubmitted() { const styles = { largeIcon: { width: 60, height: 60, }, }; return( <div className="flex-col flex items-center"> <CheckIcon cl...
import React from 'react'; import {Modal, View, StyleSheet, Text} from "react-native"; import {Color} from "../constants/Colors"; import {CustomButton} from "./CustomButton"; export const PaymentModal = ({modalVisible, products, onPay}) => { return <Modal animationType="slide" visible={modalVisible} > ...
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
import React from 'react' import { Container } from './ServerErrorStyling' const ServerError = () => { return ( <Container> <h1>Internal Server Error</h1> </Container> ) } export default ServerError
/* Require libraries */ const express = require('express'); const router = express.Router(); const db = require('../models/database.js'); const bodyParser = require('body-parser'); let bunyan = require('bunyan'); const nodemailer = require('nodemailer'); // Create a SMTP transporter object let transporter =...
from tests.integration.utils import find_resource def test_oidc_example( read_manifest, k8s_namespace, operator, launch_session, is_session_ready, k8s_amalthea_api, ): manifest = read_manifest("tests/examples/oidc.yaml") name = "test-oidc" host = "test.host.com" manifest["metad...
import immutable from 'seamless-immutable'; import { PENDING } from '../constants/request'; const fetchRequest = (state, action) => { if (state.value && !action.request.clearValueOnRequest) { return state.merge(PENDING).setIn(['meta'], action.request.meta); } return immutable(PENDING).setIn(['meta'], action....
function saludar() { console.log(`Hola Mundo`) } function despedir() { console.log(`Adiós Mundo Cruel`) } function main() { let oBtnSaludar = document.querySelector('#btnSaludar') let oBtnDespedir = document.querySelector('#btnDespedir') oBtnSaludar.addEventListener('click',saludar) oBtnDespe...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Thierry Sallé (@tsalle) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function ANSIBLE_METADATA = { 'status': ['preview'], 'supported_by': 'c...
// # Dropdown jquery plugin // # Depends on "_dropdown.sass" and array shim // # open "dropdown-view" on btn (link, span) click // # close on body click and escape // # option for visible 'dropdown-view' // # option for center the view - this could be done with css too ;(function($, window, document, undefined)...
var global_status = {}; global_status.main_vis = "cells"; // Selected from 4 options on top /* Options are: 'cells' 'genes' 'tree' (this is being phased out) */ // Determine the projected coordinates global_status.plotted_projectionX = [null, null]; // [Name of projection dataframe, Name of column] global...
/* * Copyright (C) 2017 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
#!/usr/bin/env python from os import system,getenv from sys import argv import argparse ### SET GLOBAL VARIABLES ### baseDir = getenv('PANDA_FLATDIR')+'/' dataDir = baseDir#.replace('0_4','0_4_egfix') parser = argparse.ArgumentParser(description='plot stuff') parser.add_argument('--outdir',metavar='outdir',type=str,...
import axios from "axios"; const url = "/api/post"; export default class API { // to get all the posts from server static async getAllPost(){ const res = await axios.get(url); return res.data; } // to get single post by id static async getPostByID(id){ const res = await ax...
/** * 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 { moduleForComponent, test } from 'ember-qunit'; import $ from 'jquery'; moduleForComponent('md-card', { unit: true }); test('card renders', function(assert) { // creates the component instance const component = this.subject(); assert.equal(component._state, 'preRender'); // appends the component to...
// jshint esversion:6 var gulp = require('gulp'), sass = require('gulp-sass'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), plumber = require('gulp-plumber'), nunjucks = require('gulp-nunjucks-html'), minifyHTML = require('gulp-minify-html'), gls = require('gulp-live-se...
""" Copyright 2019 Secure, Reliable, and Intelligent Systems Lab, ETH Zurich 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 applicab...
var vm = new Vue({ el:'#rrapp', data:{ matManagerType:{ werks:"", whNumber:"", }, warehourse:[], saveFlag:false }, created: function(){ this.matManagerType.werks = $("#werks").find("option").first().val(); }, watch:{ 'matManagerType.werks': {...
(function() { requirejs.config({ 'shim' : { 'kawwa/vendor/gmap3': ['jquery', 'async!http://maps.googleapis.com/maps/api/js?sensor=false'] } }); define(['kawwa/vendor/gmap3'], function() { return exports = function(spec) { jQuery('#' + spec.id).gmap3(spec.params); }; }); })();
"""Install Ghidra dark theme.""" import argparse import fileinput import logging import os from pathlib import Path import re import shutil import subprocess import sys from urllib.request import urlopen from tcd_browser import TCDBrowser, TCD_LIST from preferences import preferences logger = logging.getLogger(__nam...
exports.printFoo=function () { return "foo"; }
#!/usr/bin/env python3 # # Copyright (c) 2016 Roberto Riggio # # 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 applicabl...
import React, { useState, useMemo, useEffect } from "react"; import "./App.scss"; import { GeneratePlayer } from "./utils/generatePlayer"; import { generateLife } from "./utils/generateYear"; import { library } from "@fortawesome/fontawesome-svg-core"; import { far } from "@fortawesome/free-regular-svg-icons"; import ...
import React from "react"; import PropTypes from "prop-types"; import { Link } from "gatsby"; const List = props => { const { edges, theme } = props; return ( <React.Fragment> <ul> {edges.map(edge => { const { node: { frontmatter: { title }, fiel...
"""An extensible library for opening URLs using a variety of protocols The simplest way to use this module is to call the urlopen function, which accepts a string containing a URL or a Request object (described below). It opens the URL and returns the results as file-like object; the returned object has some extra me...
__author__ = 'svfilhol' import pandas as pd import scipy.spatial as sp import pyproj as Proj import geopandas from shapely.geometry import Point # Function open shapefile def loadSHP(filename): return ogr.Open(filename) # Function to extract coordinates of points in the shapefile (valid for point shapefile) def ...
import mongoose from 'mongoose'; const Schema = mongoose.Schema; const recipeSchema = new Schema({ name: { type: 'String', required: true }, title: { type: 'String', required: true }, content: { type: 'String', required: true }, slug: { type: 'String', required: true }, cuid: { type: 'String', required: true...
mycallback( {"CONTRIBUTOR OCCUPATION": "Diagnostic Radiologist", "CONTRIBUTION AMOUNT (F3L Bundled)": "30.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Hackensack Radiology Group", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "124 W 60th St Apt 45", "CONTRIBUTOR MIDDLE NAME": "S.", "DONOR ...
"""Robot Framework source.""" from ..meta.entity import Color from ..meta.source import Source from ..parameters import access_parameters, TestResult from .jenkins import jenkins_access_parameters ALL_ROBOT_FRAMEWORK_METRICS = ["source_up_to_dateness", "source_version", "tests"] ROBOT_FRAMEWORK = Source( name=...
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{401:function(t,s,a){"use strict";a.r(s);var n=a(43),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h3",{attrs:{id:"右键菜单"}},[a("a",{staticClass:"header-ancho...
""" Let's add a legend in the upper left corner. This only requires adding the keyword argument label (that will be used in the legend box) to the plot commands. There are also options for the legend command to tell it where to put the legend and how it looks. :lesson goal file: goal07.py """ # Imports import numpy as...
if (!!!Deadly299) { var Deadly299 = {}; } Deadly299.grid = { STATUS_SUCCESS: 1, dropDownList: '[data-role=drop-down-list]', init: function () { $(document).on('click', Deadly299.grid.dropDownList, this.reloadContainer); Deadly299.grid.renderSlickGrid(); }, reloadContainer: f...
'use strict'; const logger = require('../utils/logger'); const members = require('../models/users'); const userStorApi = require('../models/users'); const uuid = require('uuid'); const accounts = { setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 *...
import xml.etree.ElementTree as ET import pickle import os from os import getcwd import numpy as np from PIL import Image import imgaug as ia from imgaug import augmenters as iaa ia.seed(1) def read_xml_annotation(root, image_id): in_file = open(os.path.join(root, image_id)) tree = ET.parse(in_file) root...
from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup(name='ConnectPyse', version='0.2', description='A ConnectWise API tool for the rest of us.', long_description=readme(), classifiers=[ 'Development Status :: 3 - Al...
FullCalendar.globalLocales.push( (function () { 'use strict'; var ja = { code: 'ja', buttonText: { prev: '前', next: '次', today: '今日', month: '月', week: '週', day: '日', list: '予定リスト', }, weekText: '週', allDayText: '終日', ...
import os import pytest from omnisci.thrift.ttypes import TColumnType from omnisci.common.ttypes import TTypeInfo from omnisci import OperationalError, connect from omnisci.connection import _parse_uri, ConnectionInfo from omnisci.exceptions import Error from omnisci._parsers import ColumnDetails, _extract_column_detai...
function repeat(operation, num) { // SOLUTION GOES HERE if(num > 0){ operation() repeat(operation, --num); } } // Do not remove the line below module.exports = repeat
const Snowman = require('../../../.'); const isArrayValidator = require('../../../src/addons/validators/isArray'); describe('isArray', function() { let snowman, execSpy; beforeEach(function() { execSpy = { onResolve:function() {}, onReject:function() {} }; snowman = new Snowman({ _p...
/* * Copyright 2014 The Closure Compiler 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 ...
describe("Sample Tests:", () => { it("sample", () => { cy.visit("index.html"); cy.intercept("GET", "/hello", { statusCode: 200, body: { hello: "world", }, delay: 50, }).as("hello"); cy.intercept("GET", "/foo", { statusCode: 404, body: { foo: "bar", ...
""" This file is part of web2py Web Framework (Copyrighted, 2007-2009). Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>. License: GPL v2 Utility functions for the Admin application =========================================== """ import os import uuid from shutil import rmtree from fileutils import * from rest...
import React, { forwardRef } from 'react'; import { renderPathForWeight } from '../lib/index.esm.js'; import IconBase from '../lib/IconBase.esm.js'; /* GENERATED FILE */ var pathsByWeight = /*#__PURE__*/new Map(); pathsByWeight.set("bold", function (color) { return React.createElement(React.Fragment, null, React.cre...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
function addQuantity(e) { const elementId = `qty-${e.dataset.id}`; const quantity = document.getElementById(elementId).dataset.quantity; const stock = document.getElementById(elementId).dataset.stock; if (parseInt(quantity) < parseInt(stock)) { defaultChangeQtyURL = defaultChangeQtyURL .replace(/0/, e...
/** Load dependencies */ let fs = require('fs') let path = require('path') let koa = require('koa') let router = require('koa-router')({ prefix: '/v1/images' }) let parse = require('co-busboy') /** Setup app */ let app = koa() app.name = 'api-upload' /** Setup routes */ router.get('/', function *() { this.throw('No...