text
stringlengths
3
1.05M
export { a as b } from'foo';
/** * @author Ichen.chu * created on 14.02.2018 */ (function () { 'use strict'; angular.module('BlurAdmin.pages.myExecutive', [ ]) .config(routeConfig); /** @ngInject */ function routeConfig($stateProvider) { $stateProvider .state('myExecutive', { ...
# import the necessary packages from imutils import face_utils import numpy as np import imutils import dlib import cv2 # initialize dlib's face detector (HOG-based) and then create # the facial landmark predictor detector = dlib.get_frontal_face_detector() predictor = dlib.shape_predictor('./face_predictor.dat') # ...
'use strict' var helper = require('./../test-helper') var assert = require('assert') const suite = new helper.Suite() // makes a backend server that responds with a non 'S' ssl response buffer let makeTerminatingBackend = (byte) => { const { createServer } = require('net') const server = createServer((socket) =>...
/** * 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, software * distrib...
import Popup from "./popup"; export default class PopupImage extends Popup { constructor(imageLink) { super(); this.imageLink = imageLink; this.template = null; } render() { this.template = `<img src="" alt="picture" class="popup__image-box">`; this.container.insert...
import configparser import json import spotipy import spotipy.util as util import pandas as pd import spotipy.oauth2 as oauth2 from spotipy.oauth2 import SpotifyClientCredentials import bamboolib import streamlit as st import requests from data.get_saved_library import connect_to_spotify_api import warnings warnings...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.trackEventCounts = trackEventCounts; var _utils = require("../helper/utils"); var _enums = require("../helper/enums"); var _lifeCycle = require("../core/lifeCycle"); function trackEventCounts(lifeCycle, callback) { if (typeof ...
/** * 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...
var gulp = require('gulp'); var rename = require('gulp-rename'); var watchify = require('watchify'); var uglify = require('gulp-uglify'); var htmlreplace = require('gulp-html-replace'); var browserify = require('browserify'); var babelify = require("babelify"); var source = require("vinyl-source-stream"); // gulp needs...
# Copyright 2020 Tensorforce Team. 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 la...
import React, { Component } from 'react'; import { Grid, Icon } from 'semantic-ui-react'; import { withRouter } from 'react-router-dom'; import styled from 'styled-components'; import CircularProfilePic from './CircularProfilePic'; import Stars from './Stars'; import { Link } from 'react-router-dom'; import CustomButto...
module.exports = function(xnat){ const fs = require('fs'); const Promise = require('bluebird'); const path = require('path'); const argv = require('minimist')(process.argv.slice(2)); const _ = require('underscore'); const os = require('os'); const help = function(){ console.error("Delete a converted file ...
# # Copyright (C) 2019 Pico Technology Ltd. See LICENSE file for terms. # # TC-08 SINGLE MODE EXAMPLE import ctypes import numpy as np from picosdk.usbtc08 import usbtc08 as tc08 from picosdk.functions import assert_pico2000_ok # Create chandle and status ready for use chandle = ctypes.c_int16() status ...
const bcrypt = require("bcryptjs"); const jwt = require("jsonwebtoken"); const { randomBytes } = require("crypto"); const { promisify } = require("util"); const { hasPermission } = require("../utils"); const stripe = require("../stripe"); const { transport, makeANiceEmail } = require("../mail"); const Mutations = { ...
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "1000", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "325 7th Street NW", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE...
module.exports = new Date(2018, 0, 13)
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Yuta Hiroto @hiroppy */ "use strict"; const Parser = require("../Parser"); /** @typedef {import("../../declarations/plugins/AssetModulesPluginParser").AssetModulesPluginParserOptions} AssetModulesPluginParserOptions */ /** @typedef {import("....
/*! version v1.0.1 */ /* * l10n.js * * Adapted with pluralization by Chua Chee How. http://rojakcoder.com * By Eli Grey, http://eligrey.com * Licensed under the X11/MIT License * See LICENSE.md */ /*global XMLHttpRequest, setTimeout, document, navigator, ActiveXObject*/ /*jslint plusplus: true, continue: tru...
"""An empirical chemical formula.""" from gemd.entity.value.composition_value import CompositionValue from gemd.entity.bounds import CompositionBounds _all_elements = { 'Tb', 'Be', 'Sb', 'Re', 'Sr', 'Ac', 'Ho', 'Ir', 'Cr', 'Os', 'S', 'Pt', 'Si', 'C', 'V', 'Bi', 'U', 'Pr', 'B', 'O', 'Zn', 'Xe', 'N', 'Ni', 'No'...
import React, { useEffect } from 'react'; import { auth } from '../_actions/user_actions'; import { useSelector, useDispatch } from 'react-redux'; export default function (ComposedClass, reload, adminRoute = null) { function AuthenticationCheck(props) { let user = useSelector((state) => state.user); localSto...
/** * Ping Attachment */ const Attachment = girequire('/src/Attachment/attachment'); module.exports = class PingAttachment extends Attachment { /** * Build * * @param {*} data Data for attachment * @returns {string} Attachment data */ _build(data = {}) { return 'pong'; } }
// import traverse from '@babel/traverse'; import * as t from '@babel/types'; const assert = require ('assert'); // tracker names (default: "_state" and "_state_pre") var _state = null; var _state_pre = null; // generate pre/post nodes function gen_conditions (guards, name) { const guard = guards.find ((elt) => ...
'use strict' const { readFileSync } = require('fs') const path = require('path') const test = require('tap').test const Fastify = require('fastify') const rawJwt = require('jsonwebtoken') const jwt = require('./jwt') const privateKey = readFileSync(`${path.join(__dirname, 'certs')}/private.key`, 'utf8') const public...
""" .. _tut-head-pos: ================================================ Extracting and visualizing subject head movement ================================================ Continuous head movement can be encoded during MEG recordings by use of HPI coils that continuously emit sinusoidal signals. These signals can then b...
'use strict'; const AuthController = require('../../controllers/AuthController.js'); const { mockRequest, mockResponse, randomString, } = require('../interceptors.js'); const { REGISTERED_NAME, REGISTERED_EMAIL, REGISTERED_PASSWORD, UNEXISTING_EMAIL, } = require('../testconfig.js'); describe('LoginPag...
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import App from '../app/components/App'; import routes from '../app/routes'; render(( <App scriptUrl={window.scriptUrl} stylesUrl={window.stylesUrl} protocol={window.protoco...
define(["require", "exports", "tslib", "react", "./BaseDecorator", "../../Utilities"], function (require, exports, tslib_1, React, BaseDecorator_1, Utilities_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var RESIZE_DELAY = 500; var MAX_RESIZE_ATTEMPTS = 3; fu...
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path, re_path from django.views.generic import TemplateView urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('api.urls')), path('captcha/', incl...
/** * Gives info on a user. * @param {string} [u = null] Checks if you want to check a specific user, or yourself. * @return {string} Return info with a range of information for the user given. */ var info; exports.run = function(message, args) { var u = message.mentions; function makeEmbed(id=null, name=...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'app/ui/examDetail.ui' # # Created by: PyQt5 UI code generator 5.10 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_examDetail(object): def setupUi(self, examDetail): ...
import React from 'react' import { graphql } from 'gatsby' import Layout from '../components/layout/layout' import SEO from '../components/utils/seo' import Projects from '../components/sections/Projects' function ProjectsPage({ data }) { const { allStrapiProjects: { nodes: projects } } = data return ( <Layo...
const AncillaryDataSchema = { "schema": { "type": "object", "title": "Comment", "properties": { "name": { "title": "Nombre", "type": "string", "default": "Leonardo R" }, "email": { "title": "Email", "type": "string", "pattern": "^\\S+@\\S+$...
// Component for creating a Mapbox map // Dependency imports import React, { useContext } from 'react'; import ReactMapboxGl from 'react-mapbox-gl'; import { useMediaQuery } from 'react-responsive'; // Relative imports import KCtracts from './KCtracts'; import { StoreContext } from '../store/GlobalState'; import KCne...
var utils = require('keystone-utils'); var session = require('../../../../lib/session'); function signin(req, res) { var keystone = req.keystone; if (!keystone.security.csrf.validate(req)) { return res.apiError(403, 'invalid csrf'); } if (!req.body.email || !req.body.password) { return res.status(401).json({er...
import Token from './Token' import AppStorage from './AppStorage' class User { login(data) { axios.post('/api/auth/login', data) .then(res => this.responseAfterLogin(res)) .catch(error => console.log(error.response.data)) } responseAfterLogin(res) { const access_tok...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val...
import React from "react"; import { Location, globalHistory } from "@reach/router"; import { QueryParamProvider } from "use-query-params"; export default ({ children }) => ( <Location> {({ location }) => ( <QueryParamProvider location={location} reachHistory={globalHistory}> {children} </Quer...
'use strict'; module.exports = function (Tuio) { Tuio.Client = Tuio.Model.extend({ port: 3333, host: '127.0.0.1', oscParser: null, socket: null, connected: null, objectList: null, aliveObjectList: null, newObjectList: null, cursorList: null, aliveCursorList: null, newCurso...
// Zepto.js // (c) 2010-2014 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. ;(function($){ //存储 touch 信息 var touch = {}, //timeout id touchTimeout, tapTimeout, swipeTimeout, longTapTimeout, //长按标准 longTapDelay = 750, //手势库 gesture //通过前后坐标点移动幅度,判断位移...
Nova.booting((Vue, router, store) => { Vue.component('index-nova-map-marker-field', require('./components/IndexField').default); Vue.component('detail-nova-map-marker-field', require('./components/DetailField').default); Vue.component('form-nova-map-marker-field', require('./components/FormField').default);...
import React,{ useEffect, useRef } from 'react'; import { withScriptjs, withGoogleMap, GoogleMap, Marker, InfoWindow } from "react-google-maps"; import * as parkData from "Aform/skateboard-parks.json"; import usePlacesAutocomplete, { getGeocode, getLatLng } from 'use-places-autocomplete'; import useOnclickOutside from...
import { ref, onMounted } from 'vue' import AdminModel from '@/lin/model/admin' export const useUserList = () => { const allGroups = ref([]) const pageCount = ref(10) // 每页10条数据 const tableData = ref([]) const groupId = ref(null) const loading = ref(false) const totalNum = ref(0) // 分组内的用户总数 const curren...
import { Router } from 'express'; import enableWs from '@small-tech/express-ws'; import { INDEX_NAME } from '~/env'; import crudOperations from '~/crud-operations'; import authentication from '~/authentication'; import appPermissions from '~/appPermissions'; import { ensureAuthenticated } from './passport'; const rou...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["wyraz"] = factory(); else root["wyraz"]...
const nodeCloud = require('../../lib/'); const ncGoogle = nodeCloud.getProvider('google', { projectId: process.env.GCLOUD_PROJECT, keyFilename: process.env.GCLOUD_KEY_FILE_NAME, }); // get compute object for Google const gceCompute = ncGoogle.compute(); // create VM // gceCompute // .create({ // zone: "us-c...
const { _, $ } = Cypress // backup the original config const ORIG_CONFIG = _.clone(Cypress.config()) beforeEach(() => { // restore it before each test Cypress.config(ORIG_CONFIG) const isActuallyInteractive = Cypress.config('isInteractive') // always set that we're interactive so we // get consistent pass...
from typing import List class FailedCuTest(): def __init__(self, test_name: str, test_src: str): self.test_name = test_name self.test_src = test_src self.expected: str = None self.actual: str = None class CuTestParser: def __init__(self): self.lines : List[str] = [] ...
exports.getUserCoinsList = { id: { in: ['params'], isInt: true, toInt: true, custom: { options: (value, { req }) => value === req.session.id, errorMessage: 'Auhtenticated user can only list their own coins' }, errorMessage: 'Please enter a valid numeric id' } }; exports.getUserT...
'use strict'; import React from 'react'; import TableHeader from '../../../../src/app/components/table/tableHeader/TableHeader'; import renderer from 'react-test-renderer'; // needed both for snpashot testing but also to prevent errors from enzyme describe('TableHeader component', () =>...
/** * spa.shell.js * Shell module for SPA */ /* jslint browser : true, continue : true, devel : true, indent : 2, maxerr : 50, newcap : true, nomen : true, plusplus : true, regexp : true, sloppy : true, vars : true, white : true */ /* global $, spa */ spa.shell = (functi...
'use strict'; /** * @ngdoc overview * @name homeRecipesClientApp * @description * # homeRecipesClientApp * * Main module of the application. */ angular .module('homeRecipesClientApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ngMaterial' ]) ...
import { css } from '~/core'; import { weightNormal } from '~/typography'; import { s4 } from '~/spacing'; import { coolGray50, coolGray100 } from '~/colors'; /** * Styles that apply to all choice groups: * - Radio * - Checkbox */ export const choiceBoxStyles = css` :host { margin: 6px 0; align-items: ...
import React from 'react'; import {Form, Input, Table, Row,Checkbox,Col} from 'antd'; import styles from './DiabetesB.less'; import {config, fun} from '../../common'; import {DiabetesSymptom} from '../../components'; const CheckboxGroup = Checkbox.Group; const FormItem = Form.Item; const formItemLayout = { labelCol...
mycallback( {"CONTRIBUTOR OCCUPATION": "Venture Capitalist", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Hitek Venture Partners", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "12182 Parker Ranch Road", "CONTRIBUTOR MIDDLE NAME": "", "DONOR C...
// ==UserScript== // @name ChessComText2Speech // @namespace https://github.com/johnnyawesome // @version 1.0 // @description Reads the moves of games on chess.com out loud for practicing with a real chessboard (OTB) // @author JohnnyAwesome // @match https://www.chess.com/game/live/* // @...
''' Soft Actor-Critic using target Q instead of V net: 2 Q net, 2 target Q net, 1 policy net adding alpha loss paper: https://arxiv.org/pdf/1812.05905.pdf Actor policy is stochastic. Env: Openai Gym Pendulum-v0, continuous action space tensorflow 2.0.0a0 tensorflow-probability 0.6.0 tensorlayer 2.0.0 && pip install...
import time; from selenium import webdriver driver = webdriver.Chrome() driver.get('http://www.google.com') time.sleep(5) search_box = driver.find_element_by_name('q') search_box.send_keys('ChromeDriver') search_box.submit() time.sleep(5) driver.quit()
//>>built define("dojox/mobile/_EditableIconMixin","dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/event dojo/_base/lang dojo/_base/window dojo/dom-geometry dojo/dom-style dojo/touch dijit/registry ./IconItem ./sniff ./viewRegistry ./_css3".split(" "),function(g,m,s,n,t,u,p,k,q,r,v,w,x,l){return s("d...
"use strict" import React, {Component} from 'react'; import {ToolbarGroup, DropDownMenu, MenuItem, Divider, Toolbar, IconMenu, IconButton} from 'material-ui'; import MoreHorizIcon from 'material-ui/svg-icons/image/dehaze' import {connect} from 'react-redux'; import {browserHistory, withRouter} from 'react-router'; impo...
var searchData= [ ['objectidsegmenter_2ecs',['ObjectIdSegmenter.cs',['../_object_id_segmenter_8cs.html',1,'']]], ['objectivefunction_2ecs',['ObjectiveFunction.cs',['../_objective_function_8cs.html',1,'']]], ['objectspawnerconfigurable_2ecs',['ObjectSpawnerConfigurable.cs',['../_object_spawner_configurable_8cs.htm...
import { Mongo } from 'meteor/mongo' export const Trend = new Mongo.Collection('trend')
'use strict'; exports.__esModule = true; // This file was automatically translated. // Feel free to submit a PR if you find a more accurate translation. exports.default = { error: { forgotPassword: { too_many_requests: 'U heeft de limiet van wachtwoord aanpassings pogingen bereikt. Wacht even voor dat u h...
import React from 'react' import { Global, css } from '@emotion/core' import Helmet from 'react-helmet' import Header from './header' import useSiteMetadata from '../hooks/use-sitemetadata' const Layout = ({ children }) => { const { title, description } = useSiteMetadata() return ( <> <Global st...
var _camelize = require('underscore.string/camelize'); var _curry = require('chickencurry'); module.exports = _curry(function camelize(str) { return _camelize(str, true); });
'use strict'; angular.module('myApp.soup', ['myApp.services', 'myApp.recipeCard']) .controller('soupController', ['$scope', 'api', function ($scope, api) { $scope.next = false; $scope.loading = false; $scope.firstLoading = true; $scope.recipes = []; api.getRecipes("soup")....
/** * @license Apache-2.0 * * Copyright (c) 2020 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 BetterStorage from '../src' describe('set', () => { const bs = new BetterStorage('name') test('set storage', () =>{ const val = 'usa' expect(bs.set(val)) }) test('set storage', () =>{ expect(bs.set).toThrow() }) }) describe('set', () => { const bs = new BetterStorage('name') test('set ...
define({ "labelBookmarkName": "Bokmerk gjeldende visning", "labelPlay": "Spill av alle", "labelStop": "Stopp", "labelDelete": "Slett", "placeholderBookmarkName": "Bokmerkenavn", "errorNameExist": "Bokmerket eksisterer.", "errorNameNull": "Ugyldig bokmerkenavn.", "editTip": "Rediger bokmerker", "exitEd...
/*! * Font Awesome Free 5.8.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ ;(function() { "use strict" var _WINDOW = {} var _DOCUMENT = {} try { if (typeof window !== "undefined") _WINDOW = window...
module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helm...
import os # TJ's servers default to 1.05 MB (experimentally tested with binary search) # Precisely somewhere between 1.0483 and 1.0484 # Therefore, if you want to capture a HTTP 413 error you must set MAX_CONTENT_LENGTH to be less than 1.05 MB MAX_CONTENT_LENGTH = 0.9 * 1024 * 1024 #0.9 MB SITEMAP_INCLUDE_RULES_WITHOUT...
import collections, datetime, functools, itertools import json, logging, pathlib, random, re import aomartin_utils import argparse import csv import pandas as pd log = logging.getLogger(__name__) log.silent = functools.partial(log.log, 0) rng = random.Random() def main(): log.info("__name__: %s.", __name__) ...
angular.module('managerApp').config(($stateProvider) => { $stateProvider.state('telecom.telephony.billing.calledFees', { url: '/calledFees', views: { 'telephonyView@telecom.telephony': { templateUrl: 'app/telecom/telephony/billingAccount/billing/calledFees/telecom-telephony-billing-account-billi...
import Vue from 'vue'; export function createSimpleFunctional(c, el = 'div', name) { return Vue.extend({ name: name || c.replace(/__/g, '-'), functional: true, props: { tag: { type: String, default: el } }, render(h, { data, props, children }) { ...
import React from "react"; import Layout from '../components/Layout'; const AboutPage = () => { return ( <Layout title="About | Site Name" description="About Page"> <h1> About </h1> <p> Under Construction </p> </Layout> ); } export default AboutPage;
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import { Divider, Drawer } from '@material-ui/core'; import DashboardIcon from '@material-ui/icons/Dashboard'; import PeopleIcon from '@material-ui/icons/People'; import ShoppingBask...
const path = require('path') const puppeteer = require('puppeteer') const mkdirp = require('mkdirp') const dev = require('mdx-deck/lib/dev') const findup = require('find-up') module.exports = async opts => { const { type, outDir, outFile, port, width, height, sandbox } = opts const args = [] if (!sandbox) { ...
#!/bin/python3 import os import sys import array as a # # Complete the simpleArraySum function below. # def simpleArraySum(ar): # # Write your code here. # sum=0 for i in range(ar.__len__()): sum=sum+ar[i] return sum if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH']...
function shallowCloneObject(obj) { const result = {}; for (const k in obj) { if (obj.hasOwnProperty(k)) { result[k] = obj[k]; } } return result; } module.exports = shallowCloneObject;
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { provideDefaultConfig } from '@spartacus/core'; import { CartSharedModule } from '../../../../cms-components/cart/cart-shared/cart-shared.module'; import { CheckoutOrderSummaryComponent } from './checkout-order-summary.com...
import axios from 'axios'; const interceptor = axios.interceptors.response.use( response => response, error => { // Reject promise if usual error if (error.response.status !== 401) { return Promise.reject(error); } /* * When response code is 401, try to refresh the ...
(function () { 'use strict'; angular .module('emails') .run(menuConfig); menuConfig.$inject = ['menuService']; function menuConfig(menuService) { // Set top bar menu items menuService.addMenuItem('topbar', { title: 'Emails', state: 'emails', type: 'dropdown', roles: ['...
// Copyright (c) YugaByte, Inc. import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { DropdownButton } from 'react-bootstrap'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { YBPanelItem } from '../../panels'; import { getPromiseState } from 'utils/P...
// wx-image export default window.exparser.registerElement({ is: 'wx-image', template: '<div id="div"></div>', behaviors: ['wx-base'], properties: { src: { type: String, observer: 'srcChanged', public: !0 }, mode: { type: String, observer: 'modeChanged', public: !...
# (C) Datadog, Inc. 2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from . import NomadUtil, MesosUtil, ECSUtil from .dockerutilproxy import DockerUtilProxy from .kubeutilproxy import KubeUtilProxy from utils.singleton import Singleton class MetadataCollector(): """ Wraps s...
_b.define("qunit/tests/import/ClassInfiniteLevel2", { imports:[ "qunit/tests/import/ClassInfiniteLevel3" ], initialize: function(options) { } });
import pickle import base64 class CookieSecret(object): # 加密 @classmethod def dumps(cls, data): # 1.将数据装换成bytes data_bytes = pickle.dumps(data) # 2.将bytes使用base64序列化加密 base64_bytes = base64.b64encode(data_bytes) # 3.将加密完毕的bytes以字符串类型输出 base64_str = base64_by...
let Array2D = require("./../Array2D"); let assert = require("assert"); describe("#find", function() { it("can return coordinates for matching cells", function() { const result = Array2D.find( [ [1, 0, 1, 1, 0], [0, 0, 0, 0, 1], [0, 0, 1, 0, 0], [0, 1, 0, 0, 0], [0, 1...
var _ = require('underscore'), mincer = require('mincer'), path = require('path'); // Configure Mincers logger, by default, all // messages are going to the middle of nowhere var logger = require('../server/logger')('mincer', { level: 'WARN' }); _.bindAll(logger, 'debug', 'info', 'warn', 'error'); mincer.logge...
itemOutputFile = "items_passed_through_create_read_delete_chain.csv" # limit the whole chain step execution time by 5 minutes # (chain step takes the limits configuration parameter values from the 1st configuration element) createConfig = { "test": { "step": { "limit": { "time":...
import Head from 'next/head'; import Container from '@/components/Container'; import Header from '@/components/Header'; import Main from '@/components/Main'; import Signup from '@/components/Signup'; export default function Subscribe() { return ( <> <Head> <title>Join the newsletter</title> </Head> <Co...
import React from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; import { startSendMessage } from '../../actions/messages'; class MessageUser extends React.Component { constructor(props) { super(props); this.state = { recipient: '', message: ''...
const find = (target, predicate) => ( target?.find?.((x) => predicate(x)) ) export default find
var CreateHeightMapTestScene = function (engine) { var scene = new BABYLON.Scene(engine); var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene); var sun = new BABYLON.PointLight("Omni0", new BABYLON.Vector3(60, 100, 10), scene); camera.setPosition(new BABYLON.Vect...
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010. // // ## Description // // This class implements vibratos. Vex.Flow.Vibrato = (function() { function Vibrato() { this.init(); } Vibrato.CATEGORY = "vibratos"; var Modifier = Vex.Flow.Modifier; // ## Static Methods // Arrange vibratos ins...
/* eslint-disable react/sort-prop-types */ /** * 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 L...
import common from '../../utils/Common'; import RecordCursor from '../../module/cursor/RecordCursor'; import BulkRequest from '../../module/bulkRequest/BulkRequest'; import RecordModel from '../../model/record/RecordModels'; import Connection from '../../connection/Connection'; import KintoneAPIException from '../../ex...
var configModule = (function (window, $) { return { rules: { 'biking': { 'approve': { iconUrl: './gfx/img_markers_biking_g.png' }, 'deny': { iconUrl: './gfx/img_markers_biking_r.png' } }, 'parking': { 'approve': { iconUrl: './...