text
stringlengths
3
1.05M
const { desktopCapturer, shell, ipcRenderer } = require('electron') const fs = require('fs') const os = require('os') const path = require('path') const screenshot = document.getElementById('screen-shot') const screenshotMsg = document.getElementById('screenshot-path') screenshot.addEventListener('click', async (eve...
import React, { Component } from 'react'; import { Platform, ScrollView} from 'react-native'; import { createDrawerNavigator, createStackNavigator, createTabNavigator } from 'react-navigation'; // 2.9.3 import { MaterialIcons } from '@expo/vector-icons'; import Home from '../Home' import Technology from '../Technology'...
function showHideNrlFunc() { var hiddenUtr = $('#hidden-uniqueTaxRef-true'); var hiddenShadeBox = $('#shade-box'); var submitButton = $('#submit'); var continueButton = $('#continue'); hiddenUtr.hide(); hiddenShadeBox.hide(); submitButton.hide(); $('input[type=radio][name=paysSA]').change(function(){ ...
var class_a_r_k_1_1_core_1_1_resource = [ [ "Resource", "class_a_r_k_1_1_core_1_1_resource.html#aad47074aab8727d90dbdadedcde3de89", null ], [ "~Resource", "class_a_r_k_1_1_core_1_1_resource.html#abe137ca94970254f63c4a032fad5efe5", null ], [ "asFont", "class_a_r_k_1_1_core_1_1_resource.html#a521966106fdb4224...
"use strict"; /** * @license * Copyright 2018 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * ============================================================================= */ var __assign = (this &&...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # type: ignore import codecs import os import pathlib import re import shutil from distutils import cmd from os.path import exists, isdir, join from typing import Any, List import pkg_resources from setuptools import find_packages, setup def find...
/** * JSONP response wrapper. */ function pr(response) { app.handleSuggestionResponse(response); } /** * Try to detect the browser language for an initial set of keyword suggestion strategies. * Currently supported: en, de */ var browserLang = window.navigator.userLanguage || window.navigator.language; /** ...
export * from './components'; // export * from './theme' //# sourceMappingURL=index.js.map
require('./dist/angular-sidebarjs.js'); module.exports = 'ngSidebarJS';
var $ = require('common:widget/ui/jquery/jquery.js'); var UT = require('common:widget/ui/ut/ut.js'); var TPL = require('common:widget/ui/tpl/tpl.js'); var cycletabs = require('common:widget/ui/cycletabs/cycletabs.js'); /** * ็ƒญ็‚นๆ–ฐ้—ป * @param */ var Hotspot = function( api, $wrap ) { this.api = api; this.$wrap =...
import React from "react"; import { storiesOf } from "@storybook/react"; import { action } from "@storybook/addon-actions"; import { SingleLinksFacet } from "../src"; const baseProps = { onChange: action("changed"), onSelect: action("selected"), onRemove: action("removed"), label: "The label", options: [ ...
import BaseLayer from "../BaseLayer"; import DataSet from "../../data/DataSet"; export class MapVRenderer extends BaseLayer { /** * Creates an instance of MapVRenderer. * @param {*} viewer cesium viewer * @param {*} dataset mapv dataset * @param {*} option mapvOptions * @param {*} mapVLa...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
export { default } from './PublicUrl' export * from './PublicUrl'
def solution(A, target): # O(N) """ Write a function that will return the indexes to be used to add up numbers to reach a given target. >>> solution([1, 2, 3, 4, 5], 5) [1, 2] >>> solution([5, 3, 2], 6) [] """ remaining = {} ...
!function(){function i(e){return{"aria-label":e,class:"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:e}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",lang:"af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb...
/*eslint indent: [2, 4, {"SwitchCase": 1}]*/ const { body } = require('express-validator'); exports.validate = (method) => { switch(method) { case 'register': { return [ body('email', 'Invalid Email Address').exists().trim().isLength({max: 64}).isEmail().normalizeEmail(), ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re from distribute_setup import use_setuptools; use_setuptools() from setuptools import setup, find_packages rel_file = lambda *args: os.path.join(os.path.dirname(os.path.abspath(__file__)), *args) def read_from(filename): fp = open(filename) t...
/* @license morris.js v0.5.0 Copyright 2014 Olly Smith All rights reserved. Licensed under the BSD-2-Clause License. */ (function() { var $, Morris, minutesSpecHelper, secondsSpecHelper, __slice = [].slice, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {...
"""ะšะพะผะฐะฝะดั‹ ะดะปั ั€ะฐะฑะพั‚ั‹ ั duckduckgo.""" from typing import Union import requests from core.commands.interfaces import TextCommandResult, TextWithPictureURLCommandResult from core.commands.utils import register_command @register_command(aliases=("s", "search", "ddg", "ะฟะพะธัะบ")) def search(raw_query: str, **kwargs) ->...
import fs__default, { existsSync } from 'fs'; import sade from 'sade'; import { exec as exec$1 } from 'child_process'; import 'net'; import * as url from 'url'; import path__default from 'path'; import { networkInterfaces, release } from 'os'; let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY=true; if (typeo...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import React from 'react' const data = [6, 5, 2, 4.5, 1.5, 2.5, 2, 2.5, 1.5, 2.5, 3.5, 7] export const Chart = (props) => ( <div className="snowfall"> {data.map((d, i) => ( <div /* eslint-disable-next-line react/no-array-index-key */ key={i} className="snowfall-bar" style={...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class ObjectArrayNode(Node, ArmLogicTreeNode): '''Object array node''' bl_idname = 'LNArrayObjectNode' bl_label = 'Array (Object)' bl_icon = 'GAME' def __init__(self): array_node...
Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),funct...
import chai from 'chai'; import {get, post, put, del, path, endPoint, endPointsOf, configOf, processEndPoints} from './restful'; const expect = chai.expect; describe('EndPoints', function() { it('should define a endpoint with get method', function() { class Test { @get('/test') m...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue').default; /* importando e configurando o vue...
module.exports=`/** * This celullar automaton is extracted from a game I wrote in 2014 for JS13K: * https://github.com/gre/ibex * * Technical article: http://greweb.me/2014/09/ibex-cellular-automata/ */ //@flow import React, { Component } from "react"; import { Shaders, Node, GLSL, Uniform } from "gl-react"; impo...
'use strict'; var args = require('yargs').argv; var Bluebird = require('bluebird'); var path = require('path'); var fs = require('fs'); var helpers = require(__dirname); var url = require('url'); var _ = require('lodash'); var api = { config: undefined, rawConfig: undefined, error: un...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
import React from 'react' import { storiesOf } from '@storybook/react' import { SimulatedLoadBar } from '../src' import SimulatedHelper from './helpers/SimulatedHelper' import { action } from '@storybook/addon-actions' storiesOf('SimulatedLoadBar', module) .add('default options', () => <SimulatedLoadBar />) .a...
from backend_proxy.db.mongoDB import MongoDB from backend_proxy.db.mongoDB import MongoConn from backend_proxy.user.schema import UserSchema from backend_proxy.api.exception import REST_Exception import backend_proxy.misc.util as util from bson.objectid import ObjectId import datetime as dt import requests import bcryp...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `codex-africanus` package.""" import numpy as np import pytest @pytest.fixture def wsrt_ants(): """ Westerbork antenna positions """ return np.array([ [3828763.10544699, 442449.10566454, 5064923.00777], [3828746.54957258, ...
import Vue from 'vue' import VueI18n from 'vue-i18n' import Cookies from 'js-cookie' import enLocale from './en' import zhLocale from './zh' Vue.use(VueI18n) const messages = { en: { ...enLocale }, zh: { ...zhLocale } } const i18n = new VueI18n({ locale: Cookies.get('language') || 'en', // set loca...
""" Aqualink API documentation The Aqualink public API documentation # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import sys import unittest import aqualink_sdk from aqualink_sdk.model.inline_response200_metlog import InlineResponse200Met...
#!/usr/bin/env python # SPDX-License-Identifier: MIT # Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng from __future__ import print_function import sys import os import subprocess from fc_common import FCPaths class Intersector: @staticmethod def run(): # permissi...
(function () { 'use strict'; /* * Same domain task proxy implementation for Bebras task API - v1.0 - 08/2014 * * Depends on jQuery. * */ var functionsToTrigger = {load: true, unload:true, reloadAnswer:true, showViews: true, reloadState: true}; function taskCaller(task, request, content, error) { if (!error...
import TwitchAPI from '../../lib/TwitchAPI'; export const FETCHING_USER_CLIPS = 'FETCH_USER_CLIPS'; export const USER_CLIPS_RESPONSE = 'USER_CLIPS_RESPONSE'; export const REFRESH_USER_CLIPS = 'REFRESH_USER_CLIPS'; export const fetchingUserClips = () => { return { type: FETCHING_USER_CLIPS } } export...
import maintainSoundSubjunctiveMixin from '../mixins/maintainSoundSubjunctive' import maintainSoundPreteriteMixin from '../mixins/maintainSoundPreterite' export default { verb: 'menguar', test: i => ['menguar', 'achiguar', 'aguar', 'amortiguar', 'apaciguar', 'apaniaguar', 'apaniguar', 'atestiguar', 'averiguar', 'd...
export default "M21,7C20,7 20,6 20,6V5H18V7H16V6C16,4.27 14.75,1 10,1C5.25,1 4,4.27 4,6V19C4,19.33 3.9,21 2,21V23C4.93,23 6,20.61 6,19V6C6,5.88 6.05,3 10,3C13.83,3 14,5.7 14,6V7H12V5H10V6C10,6 10,7 9,7C8,7 8,8 8,8V20C8,20 8,22 13,22C13.24,22 14.13,22 17,22C22,22 22,20 22,20V8C22,8 22,7 21,7M15,19.4A3,3 0 0,1 12,16.4C12...
import React, {useEffect, useRef, useCallback, memo, useReducer} from "react" import db from "helpers/localdb" import SubmitAsync from "components/bootstrap/button/submitasync" const ACTIONS = { RESET: "RESET", UPDATE: "UPDATE", SUBMIT: "SUBMIT" } const statesearch = { is_submitting: false, search: "" } co...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
module.exports = { createdOn: { type: Date, default: Date.now }, updatedOn: { type: Date, default: Date.now } };
/** * @fileoverview added by tsickle * Generated from: public-api.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an M...
import React, { useEffect } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Typography, Box, Button, TextField, Checkbox, FormControlLabel, List, ListItem } from '@material-ui/core'; import { creatingPortfolioName, resetCreatingPortfolioName } from '../../actions/eportf...
import { NativeModules, Platform } from "react-native"; /** * ๅ›ž่ฐƒๅŽŸ็”Ÿๆ–นๆณ• * @param moduleName ๆจกๅ—ๅ * @param funcName ๆ–นๆณ•ๅ * @param params ๅ‚ๆ•ฐ */ export function call2NativeMethod(moduleName,funcName,params) { if(NativeModules[moduleName]){ if(NativeModules[moduleName][funcName]){ if(params){ ...
// This file was automatically generated from template.soy. // Please don't edit this file by hand. /** * @fileoverview Templates in namespace Index.soy. */ goog.provide('Index.soy'); goog.require('soy'); goog.require('soydata'); Index.soy.messages = function(opt_data, opt_ignored, opt_ijData) { return '<div s...
import React, {useState, useEffect} from 'react'; import { Link } from 'react-router-dom' import { CButton, CCard, CCardBody, CCardGroup, CCol, CContainer, CForm, CInput, CInputGroup, CInputGroupPrepend, CInputGroupText, CRow } from '@coreui/react' import CIcon from '@coreui/icons-react' import ...
// โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” \\ // โ”‚ Raphaรซl 2.1.4 - JavaScript Vector Library โ”‚ \\ // โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค \\ // โ”‚ Copyright ยฉ 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) โ”‚ \\ // โ”‚ Copyrig...
// Includes var http = require('./http.js').func var getHash = require('./getHash.js').func var getVerificationInputs = require('./getVerificationInputs.js').func var cache = require('../cache') var URL = require('url').URL // Args exports.required = ['url'] exports.optional = ['ignoreCache', 'getBody', 'jar'] // Def...
'use strict'; import Express from 'express'; import Request from 'request-promise-native'; import Settings from './settings'; /** * Url of the Redmine server * @type {string} */ const BASE_URL = Settings.getRedmineHost(); const PORT = process.env.PORT || 3001; /** * The basic authorization header */ const AUT...
import path from 'path' import protobuf from 'protobufjs' /** * Load protocol definition. * * @return {protobufjs.Root} Protocol definition. */ async function loadProtocol () { const definitionPath = path.join( __dirname, '..', '..', 'src', 'protocol', 'cashshuffle.proto' ) const protocol...
module.exports = getPage const errors = require('../../request/errors') const getPageLinks = require('./get-page-links') function getPage (octokit, link, which, headers, callback) { if (typeof headers === 'function') { callback = headers headers = null } const url = getPageLinks(link)[which] if (!ur...
function user() { } user.prototype.login = function() { } user.prototype.stop = function () { } module.exports = user;
(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{1369:function(t,n,e){"use strict";e.r(n);var o={components:{},data:function(){return{wallets:[]}}},s=(e(775),e(0)),c=Object(s.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("div",[this._v("todo")])},[],!1,null,"396db89f",null);n.default=c.exp...
/** * @namespace Accounts * @summary The namespace for all client-side accounts-related methods. */ Accounts = new AccountsClient(); /** * @summary A [Mongo.Collection](#collections) containing user documents. * @locus Anywhere * @type {Mongo.Collection} */ Meteor.users = Accounts.users;
// @flow import type { OpeningHoursDay, SpecialOpeningHours } from './opening-hours'; import { objToJsonLd } from '../utils/json-ld'; export type PostalAddress = {| addressLocality: string, postalCode: string, streetAddress: string, addressCountry?: string, |}; export type Organization = {| name: string, ...
import { Route, Switch } from 'react-router-dom' import Home from './pages/Home' import Contact from './pages/Contact' import About from './pages/About' import Header from './components/header' import Footer from './components/footer' function App() { return ( <div className='container'> <Header /> ...
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2019 Mozilla Foundation * * 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...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon; var _ref = React.createElement('path', { d: 'M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V...
# Copyright 2012 NEC Corporation # Copyright 2015 Cisco Systems, 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.apache.org/licenses/LICENSE-2.0 # # Un...
const BaseModule = require('./baseModule'); const Discord = require('discord.js'); class Pikabu extends BaseModule { init() { this.pattern = /pikabu/gi; this.db.aggregate({ $group: { _id: null, max: { $max: "$post" }, ...
from conans import ConanFile, CMake, tools import os, platform glfw_version = os.getenv('GLFW_VERSION', '0.0') glfw_commit = os.getenv('GLFW_COMMIT', '') class GLFWConan(ConanFile): name = "glfw" license = "MIT" url = "https://github.com/BentouDev/conan-glfw" version = glfw_version commit = glfw_c...
๏ปฟ"use strict"; _kangoLoader.add("kango/lang", function(require, exports, module) { var NotImplementedException=require("kango/utils").NotImplementedException;function LangBase(){}LangBase.prototype={evalInSandbox:function(e,a){throw new NotImplementedException;},evalScriptsInSandbox:function(e,a){for(var b="",c=0;c<a.l...
/** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, Gaudenz Alder */ /** * Class: mxCellHighlight * * A helper class to highlight cells. Here is an example for a given cell. * * (code) * var highlight = new mxCellHighlight(graph, '#ff0000', 2); * highlight.highlight(graph.view.getState(cell...
/*global define,module*/ /**! * js-regex: a chainable regex building library for Javascript. * * @author Brian Wyant <wyantb@gmail.com> * @license http://opensource.org/licenses/MIT **/ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD. Registe...
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
angular.module('bigSQL.components').controller('ComponentsViewController', ['$scope', '$uibModal', 'PubSubService', '$state', 'UpdateComponentsService', '$filter', '$rootScope', '$timeout', '$window', 'bamAjaxCall', '$http', '$cookies', 'pgcRestApiCall', function ($scope, $uibModal, PubSubService, $state, UpdateCompone...
(function(app, jQuery, _, moment){ "use strict"; var $ = jQuery; var number_formats = [ [1000000000, 'b'], [1000000, 'm'], [1000, 'k'] ]; app.utils = { getQueryParams: function() { var vars = {}, href = window.location.href, ...
from rest_framework import serializers from .models import Teacher from subjects.models import Subject class TeacherSerializer(serializers.ModelSerializer): subjects = serializers.PrimaryKeyRelatedField(many=True, queryset=Subject.objects.all()) class Meta: model = Teacher fields = ('id', 'n...
# -*- coding: utf-8 -*- """ Control virtual machines via Salt """ # Import python libs from __future__ import absolute_import, print_function, unicode_literals import logging import os.path # Import Salt libs import salt.client import salt.key import salt.utils.cloud import salt.utils.files import salt.utils.stringu...
(function() { var self = this; module.exports = function(terms) { var self = this; return terms.term({ constructor: function() { var self = this; return self.isBreak = true; }, generateJavaScriptStatement: function(buffer, scope...
/** * @name index.js<index> * @author <author> * @overview entry point of this project */ define(function (require, exports, module) { 'use strict'; var beez = require('beez'); var Backbone = beez.vendor.backbone; var logger = beez.getLogger('index.index'); var mv = beez.manager.v; // Viwe M...
๏ปฟvar dat; var usuario; var inst; function editar_Usuario_D(button) { dat = $(button).parents("tr"); //captura toda la fila donde se efectuo el click (Editar) var ide = $(button).attr("data-id"); // captura el valor_id_grupo "id" limpiar(); $('#editar_Docente2').modal('show'); // abre ventana modal ...
module.exports = (data = '') => { console.log('Hello World! whats up. ' + data); // eslint-disable-line };
import pandas as pd from sklearn.model_selection import GroupKFold if __name__ == "__main__": df = pd.read_csv("../input/interim/train_fe_ohe.csv") df["kfold"] = -1 df = df.sample(frac=1).reset_index(drop=True) groups = df['Patient'].values gfk = GroupKFold(n_splits=5) for fold, (train_idx, val_idx) in enumera...
describe('Example', () => { it('works', () => { expect(1).toBe(1); }); });
"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...
from unittest.mock import patch from indicoio.client import RequestProxy from indicoio.api.base import ObjectProxy @patch.object(RequestProxy, "_make_request") def test_object_proxy_in(mock_request_proxy): obj_proxy = ObjectProxy(mock_arg="mock_arg_value") assert "mock_arg" in obj_proxy, obj_proxy @patch.o...
import React from 'react'; import PropTypes from 'prop-types'; import { GridList, GridTile } from 'material-ui/GridList'; const styles = { root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', }, gridList: { display: 'flex', flexWrap: 'nowrap', ...
#!/usr/bin/env python3 """ Author : Ken Youens-Clark <kyclark@gmail.com> Purpose: Python program to write a Python program """ import argparse import os import re import subprocess import sys from datetime import date from pathlib import Path from typing import NamedTuple class Args(NamedTuple): program: str ...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Copyright (c) 2017-2020 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ ZMQ example using python3's asyncio Rave...
require('dotenv').config() const { createBatchQueryFn, createLoader } = require('../lib/dataloader') const MongoDBPlugin = require('@funcmaticjs/mongodb-plugin') const TEST_COLLECTION = 'TEST-COLLECTION' describe('createBatchQueryFn', () => { let plugin = new MongoDBPlugin() let client = null let db = null be...
const { Model, DataTypes, Sequelize } = require('sequelize'); const { ORDER_TABLE } = require('./order.model'); const { PRODUCT_TABLE } = require('./product.model'); const ORDER_PRODUCT_TABLE = 'order_products'; const orderProductSchema = { id: { allowNull: false, autoIncrement: true, primaryKey: true,...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import atexit import datetime import itertools import json import logging import os import pickle import random import re import signal import time import instaloader import requests from config42 import ConfigManager import instabot_py from instabot_py.default_config ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[132],{ /***/ "./node_modules/@ionic/core/dist/esm/es5/build/0hsmjqf5.entry.js": /*!***********************************************************************!*\ !*** ./node_modules/@ionic/core/dist/esm/es5/build/0hsmjqf5.entry.js ***! \*******************...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_hotel_outline = void 0; var ic_hotel_outline = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": [] }, { "name": "pat...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import store from './store' import './bootstrap.min.css'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <Provider store={store}> <App /> </Provi...
/* * grunt-vows * https://github.com/CMTegner/grunt-vows * * Copyright (c) 2012 Christian Maughan Tegnรฉr * Licensed under the MIT license. */ "use strict"; var fs = require("fs"), reporters = ["spec", "json", "dot-matrix", "tap", "xunit"], coverageFormats = ["plain", "html", "json", "xml"]; module.expor...
import { createApp, h } from 'vue'; import VueMaterialAdapter from 'vue-material-adapter'; import { createRouter, createWebHashHistory } from 'vue-router'; import index from './index.vue'; import routes from './routes.js'; import './styles/index.js'; // Vue.config.productionTip = true; const router = createRouter({ ...
steal("jquerypp/dom/compare",'steal-qunit',function(){ module("jquerypp/dom/compare"); test("Compare cases", function(){ $(document.body).append("<div id='outer'><div class='first'></div><div class='second'></div>"); var outer = $("#outer"), first= outer.find(".first"), second = outer.find('.second'); ...
/** * * (c) Copyright Ascensio System SIA 2020 * * 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 l...
/** * [ไธญ็ญ‰]331. ้ชŒ่ฏไบŒๅ‰ๆ ‘็š„ๅ‰ๅบๅบๅˆ—ๅŒ– * https://leetcode-cn.com/problems/basic-calculator-ii/ * * ๅบๅˆ—ๅŒ–ไบŒๅ‰ๆ ‘็š„ไธ€็งๆ–นๆณ•ๆ˜ฏไฝฟ็”จๅ‰ๅบ้ๅކใ€‚ๅฝ“ๆˆ‘ไปฌ้‡ๅˆฐไธ€ไธช้ž็ฉบ่Š‚็‚นๆ—ถ๏ผŒๆˆ‘ไปฌๅฏไปฅ่ฎฐๅฝ•ไธ‹่ฟ™ไธช่Š‚็‚น็š„ๅ€ผใ€‚ๅฆ‚ๆžœๅฎƒๆ˜ฏไธ€ไธช็ฉบ่Š‚็‚น๏ผŒๆˆ‘ไปฌๅฏไปฅไฝฟ็”จไธ€ไธชๆ ‡่ฎฐๅ€ผ่ฎฐๅฝ•๏ผŒไพ‹ๅฆ‚ #ใ€‚ _9_ / \ 3 2 / \ / \ 4 1 # 6 / \ / \ / \ # # # # # # ไพ‹ๅฆ‚๏ผŒไธŠ้ข็š„ไบŒๅ‰ๆ ‘ๅฏไปฅ่ขซๅบๅˆ—ๅŒ–ไธบๅญ—็ฌฆไธฒ "9,3,4,#,#,1,#,#,2,#,6,#,#"๏ผŒๅ…ถไธญ # ไปฃ่กจไธ€ไธช็ฉบ่Š‚็‚นใ€‚ ็ป™ๅฎšไธ€ไธฒ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useSyncState; var React = _interopRequireWildcard(require("react")); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function ()...
Object.assign(pc, function () { /** * @class * @name pc.AssetRegistry * @augments pc.EventHandler * @classdesc Container for all assets that are available to this application. * @description Create an instance of an AssetRegistry. * Note: PlayCanvas scripts are provided with an AssetRe...
import { makeStyles } from '@material-ui/core/styles'; export const useStyles = makeStyles((theme) => ({ root: { minHeight: '80vh', }, image: { backgroundImage: 'url(https://res.cloudinary.com/dfxk0fqfp/image/upload/v1626085179/watchshopstorage/ae4c19104953739.5f6e14db3d440_cbdnuu.jpg)', ...
const express = require("express"); const router = express.Router(); const projectModel = require("../Model/userProjects"); router.post("/", async (req, res) => { const { userName, FormId, NewEnableSetting } = req.body; // data to be changed; try { const result = await projectModel.findOneAndUpdate( ...
const ghpages = require('gh-pages'); ghpages.publish( './', { src: ['examples/**/*', 'dist/**/*'] }, function(err) { console.log(err); } );
/** * This file is part of Routux. * * (c) Nicolas Tallefourtane <dev@nicolab.net> * * For the full copyright and license information, please view the LICENSE file * distributed with this source code or visit https://github.com/Nicolab/routux. */ 'use strict'; let __ = require('../_config/'); let test = unit...