text
stringlengths
3
1.05M
'use strict'; const util = require('util'); const _ = require('lodash'); const should = require('should'); const sinon = require('sinon'); const mockrequire = require('mock-require'); const { Client: ElasticsearchClient } = require('@elastic/elasticsearch'); const { EmbeddedSDK } = require('../../../lib/core/shared/...
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """Codes for various geographical computations and filters""" from sys import version_info as _swig_python_version...
import Anvil from 'prismarine-provider-anvil' import minecraftData from 'minecraft-data' import fs from 'fs' function fix_missing_states(block, type) { if (type.Properties) { const properties = type.Properties.value for (const state of block.states) { if (!(state.name in properties)) { console...
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[38],{15838:(e,t,r)=>{"use strict";r.d(t,{wK:()=>n,CO:()=>o,Rw:()=>h,p3:()=>m,uO:()=>y});const i=e=>{const t=Math.round(Math.min(Math.max(e,0),255)).toString(16);return 1===t.length?"0"+t:t},n=e=>(3!==(e=e.replace("#","")).len...
#Basic example configration file to run the b-tagging validation sequence. import FWCore.ParameterSet.Config as cms process = cms.Process("validation") # load the full reconstraction configuration, to make sure we're getting all needed dependencies process.load("Configuration.StandardSequences.MagneticField_cff") proc...
import Vue from "vue"; import Router from "vue-router"; import routes from "../routes/routes"; Vue.use(Router); export const router = new Router({ mode: "history", routes: routes }) router.beforeEach((to, from, next) => { const publicPages = ["/login", "/register"]; const authRequired = !publicPages.includ...
'use strict'; const path = require('path'); module.exports = () => { const config = {}; config.bee = { serviceMap: null, serviceIdent: 'service', app: true }; return config; };
(function() { 'use strict'; var path = require('path'); var Promise = require('bluebird'); var _ = require('lodash'); var fs = require('fs'); var _db = path.join(__dirname, '..', 'data', '_db.dishes.json'); var data = require(_db); var moment = require('moment'); var slug = require('slug'); functi...
import numpy as np import cv2 from liegroups import SO3, SE3 from pyslam.pipelines import DenseRGBDPipeline from pyslam.sensors import RGBDCamera from pyslam.metrics import TrajectoryMetrics from pyslam.visualizers import TrajectoryVisualizer from pyslam.losses import HuberLoss import time import os import argparse ...
// Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on('Setup Progress', { refresh: function() { } });
from typing import Tuple import numpy as np from ...core.loop.user_function import MultiSourceFunctionWrapper from ...core import ParameterSpace, ContinuousParameter, InformationSourceParameter def multi_fidelity_hartmann_3d() -> Tuple[MultiSourceFunctionWrapper, ParameterSpace]: r""" The function is given ...
import { dew } from './uniqBy.dew.js'; export default dew();
"use strict"; export { default as Annotate } from "./Annotate"; export { default as LabelAnnotation } from "./LabelAnnotation"; export { default as SvgPathAnnotation } from "./SvgPathAnnotation"; export { default as Label } from "./Label"; var halfWidth = 10; var bottomWidth = 3; var height = 20; export function buy...
module.exports = { extends: [ 'eslint-config-airbnb/base', 'eslint-config-airbnb/react', ], };
var express = require('express'); var router = express.Router(); var endOfDayController = require('../controllers/endOfDay'); const isAuth = require('../middleware/is-auth').isAuth; router.post('/update-grills', endOfDayController.postUpdateGrills); router.post('/update-feet', endOfDayController.postUpdateFeet); rou...
/* * Copyright 2017, Yahoo Inc. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ module.exports = function load(global) {global.Intl && global.Intl._localeData && global.Intl._localeData.load({ "locales": { "zh-Hant-HK": { "gmtFormat": "GMT{0...
// capture framebuffer and save to file // TODO: decode header, encode to png/gif/jpeg require('../index.js') .createConnection({ host: '172.16.10.122', port: 5555, key_path: '/Users/scott/.android/adbkey', pub_key_path: '/Users/scott/.android/adbkey.pub' }, function(adb){ var dst = req...
/** * @file Contacts Controller * ---------------------------------- * @author Rodrigo del Angel <rdelangelhmx@gmail.com> * ---------------------------------- * History * @creation 19/Nov/21 * ---------------------------------- */ 'use strict'; var contacts = require('../models/contactsModel'), msg = require('....
/** * @license Highcharts JS v6.1.3 (2018-09-12) * * (c) 2009-2016 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else if (typeof define === 'function' && define.amd) { define(funct...
chorus.views.Dataset = chorus.views.Base.extend({ templateName: "dataset", tagName: "li", subviews: { ".comment .body": "commentBody" }, setupSubviews: function() { this.commentBody = new chorus.views.TruncatedText({ model: this.model.lastComment(), attribut...
const presets = ['@babel/preset-typescript', 'minify']; const plugins = ['@babel/plugin-transform-typescript']; const misc = { comments: false }; module.exports = { presets, plugins, ...misc };
/* import axios from "axios"; import { getPokemons } from "../api/getPokemon"; */ import { SET_POKEMON, SET_ERROR, CLEAR_ERROR, FETCH_POKEMON_DETAIL, } from "./type"; export const setPokemon = (payload) => ({ type: SET_POKEMON, payload, }); export const fetchPokemonDetails = (payload) => ({ type: FETCH_P...
const catalogo = [ {value: 'Cotizaciones (Serie)', text: 'Cotizaciones (Serie)'}, {value: 'Pedidos (Serie)', text: 'Pedidos (Serie)'}, ] export default ({ catalogo });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = parseResponse; function parseResponse(res) { return res.text().then(function (resText) { var response = res; if (!response.ok) { var error = new Error(response.statusText); error.status = response.st...
import angr # TODO see comment in fstat64 class fstat(angr.SimProcedure): def run(self, fd, stat_buf): stat = self.state.posix.fstat(fd) if self.state.arch.name == 'AMD64': self._store_amd64(stat_buf, stat) elif self.state.arch.name == 'PPC64': self._store_ppc64(st...
// code related to libraries / library IDs const R = require("ramda"); const Client = require("./Client"); const Logger = require("./Logger"); const blueprint = { name: "Library", concerns: [Client, Logger] }; const stdDrmCert = require("../data/elv.media.drm.fps.cert.json"); const New = context => { const lo...
from __future__ import unicode_literals from django.conf import settings from django.core.serializers import register_serializer from django.core.serializers.base import Deserializer as BaseDeserializer from django.db import DEFAULT_DB_ALIAS from django.utils.encoding import is_protected_type, smart_text from nicedja...
var _ = require("lodash"), expect = require("../chai").expect, Graph = require("graphlib").Graph, order = require("../../lib/order"), crossCount = require("../../lib/order/cross-count"), util = require("../../lib/util"); describe("order", function() { var g; beforeEach(function() { g = new...
$(function() { // 加载导航侧边栏 $(".navbar").load("og_header.html"); $(".aside").load("broad.html"); //日期时间范围 laydate.render({ elem: '#dataTable', type: 'datetime', range: true, format: 'yyyy-MM-dd HH:mm:ss', isInitValue: true, done: function (...
# coding=utf-8 import importlib from datetime import datetime from main.common import ( get_yaml ) from weather.sojson import get_today_weather from bot.qingyunke import get_qingyunke from bot.tuling123 import get_tuling123 DICTUM_NAME_DICT = {1: 'wufazhuce', 2: 'acib', 3: 'lovelive', 4: 'hitokoto', 5: 'rtjokes'...
import { from } from 'rxjs'; import { post } from '../../../utils/ajax'; export default function postUpdate$({ endpoint, payload }) { return from(post(endpoint, payload)); }
/* BSD 3-Clause License Copyright (c) 2019, smileycreations15 (me@smileycreations15.com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyrigh...
describe('modelAndOptionMapping', function () { var utHelper = window.utHelper; var testCase = utHelper.prepare([ 'echarts/component/grid', 'echarts/chart/line', 'echarts/chart/pie', 'echarts/chart/bar', 'echarts/component/toolbox', 'echarts/component/dataZoom' ...
import socket import numpy as np from PIL import Image as Img, ImageTk from tkinter import * from tkinter import font from image_send_recv import receive_multiple_img, recieve_image, send_img from tkinter.filedialog import askopenfilename import re class ImageShareApp(Tk): def __init__(self, *args, **kwargs): ...
// taken from: https://raw.githubusercontent.com/jccounihan/KoLite/master/knockout.command.js // Originally By: Hans Fj�llemark and John Papa // https://github.com/CodeSeven/KoLite // Re-written by: Jonathan Counihan // https://github.com/jccounihan/KoLite (function (factory) { if (typeof require === "function" ...
from .FT_optimize import * from .FuzzyVars import * from .FuzzyTree import *
module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'react-hooks'], extends: [ 'airbnb', 'plugin:react/recommended', 'plugin:jsx-a11y/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended' ], rules: { 'prettier/prettier'...
/* * sidebar.js * ~~~~~~~~~~ * * This script makes the Sphinx sidebar collapsible. * * .sphinxsidebar contains .sphinxsidebarwrapper. This script adds * in .sphixsidebar, after .sphinxsidebarwrapper, the #sidebarbutton * used to collapse and expand the sidebar. * * When the sidebar is collapsed the .sphinxsi...
/** * ProcessMaker API * An API to access ProcessMaker core functionality * * OpenAPI spec version: 1.0.0 * Contact: oleg@processmaker.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * * L...
'use strict'; define([],function(){ return angular.module('Ride') .controller('RideController',function($scope,countries,$filter){ $scope.cities = [{name: ""}]; $scope.minutes = ['00','10','20','30','40','50']; $scope.hours = []; $scope.countries = angular.co...
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]) /******/ ret...
import { LOG_OUT,LOAD_EVENT_DETAIL } from '../../components/actions/types'; const initialState = { event:[], }; const EventReducer = (state = initialState, action) => { switch (action.type) { case LOAD_EVENT_DETAIL: return { ...state, event: {...action.event}, }; ...
/** * Keeps track of the current dispatcher. */ var ReactCurrentDispatcher = { /** * @internal * @type {ReactComponent} */ current: null };
from test.integration.base import DBTIntegrationTest, use_profile import random import time class TestBaseBigQueryRun(DBTIntegrationTest): @property def schema(self): return "bigquery_test_022" @property def models(self): return "models" @property def project_config(self): ...
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img src={...
const dateHelpers = require('../../../common/helpers/date') const middleware = require('./set-body.single-requests') describe('Moves middleware', function () { describe('#setBodySingleRequests()', function () { let mockRes, mockReq, nextSpy beforeEach(function () { sinon .stub(dateHelpers, 'g...
exports.id=0,exports.modules={"./build/contracts/FlightSuretyApp.json":function(e){e.exports=JSON.parse('{"contractName":"FlightSuretyApp","abi":[{"constant":true,"inputs":[],"name":"REGISTRATION_FEE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name"...
// Add your credentials const firebaseConfig = { apiKey: "__apiKey__", authDomain: "__authDomain__", databaseURL: "__databaseURL__", projectId: "__projectId__", storageBucket: "", messagingSenderId: "__messagingSenderId__", appId: "__appId__" }; export default firebaseConfig;
function getAxiosData(response) { return response.data; } const exported = { getAxiosData: getAxiosData, }; export default exported; export { getAxiosData };
/* Provides helper functions for dealing with Arrays of elements. Elements should be any element class - for example, a Node or a Pointer. */ function ElementArray(elements, objClass){ this.elements = [ ]; this.ObjType = objClass; this.init (elements); } /* ------- INHERITANCE ------- */ ElementArray.pr...
'use strict'; var ChefRole = function () { } ChefRole.prototype = { name: 'CHEFROLE', detect: function (data) { var fits = false; // try to parse data try { var json = JSON.parse(data); if (json.json_class === 'Chef::Role') { fits = true; ...
module.exports = class AppError extends Error { constructor(message, status) { // Calling parent constructor of base Error class. super(message); // Saving class name in the property of our custom error as a shortcut. this.name = this.constructor.name; // Capturing stack tr...
import { $, $async, $await } from '../../../../generate/async.macro'; import { $consume } from '../../..'; describe($`consume`, () => { it( 'consumes an iterable', $async(() => { const arr: Array<number> = []; $await($consume(item => arr.push(item), [1, 2, 3])); expect(arr).toEqual([1, 2, ...
define("dojox/charting/plot3d/Cylinders", ["dojox/gfx3d", "dojox/gfx3d/matrix", "dojo/_base/declare", "dojo/_base/Color", "dojo/_base/window", "./Base"], function(gfx3d, matrix3d, declare, Color, win, Base) { // reduce function borrowed from dojox.fun var reduce = function(/*Array*/ a, /*Function|String|Array*/ f,...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 ...
import * as React from 'react'; import Svg, {Path} from 'react-native-svg'; function SvgComponent(props) { return ( <Svg width={100} height={100} viewBox="0 0 25 24" fill="none" {...props}> <Path d="M12.5 3.68a8.402 8.402 0 00-6.005 2.5 8.488 8.488 0 00-2.5 6.004c0 2.329.956 4.485 2.5 6.005a8.488 8...
let nock = require('nock'); module.exports.hash = "c58a8bd2d6a25564b38d6c2e3574d185"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/identities', {"createTokenWithScopes":["chat"]}) .query(true) .reply(201, {"identity":{"id":"8:acs:fac4607...
import React from 'react' import Form from 'components/common/Form' import SEO from 'components/common/Seo' export default () => ( <> <SEO title="Login" /> <Form form="login" /> </> )
const { gql } = require('apollo-server-express') module.exports = gql` type Device { uuid: ID instance_name: String last_seen: Int last_lat: Float last_lon: Float type: String isMad: Boolean route: JSON } type Gym { id: ID lat: Float lon: Float name: String ur...
/** * @requires XQuared.js * @requires Browser.js * @requires Editor.js * @requires plugin/Base.js */ xq.plugin.EventLogPlugin = xq.Class(xq.plugin.Base, /** * @name xq.plugin.EventLogPlugin * @lends xq.plugin.EventLogPlugin.prototype * @extends xq.plugin.Base * @constructor */ { isEventListener: func...
moduleSearchIndex = [{"l":"java.money"}]
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const tree_1 = __importDefault(require("./tree")); const config_1 = require("../config"); const sort_1 =...
import { dosemu, dosemuSprite } from "../common/node_modules/dosemu/index.js"; import { Entity } from "../common/entity.js"; import { GridEntity } from "../common/grid-entity.js"; import { bombSprites } from "./bomb-sprites.js"; import { Character } from "../common/character.js"; import { enemySprites } from "./enemy-s...
/*! * Qoopido.js library v3.6.2, 2015-4-21 * https://github.com/dlueth/qoopido.js * (c) 2015 Dirk Lueth * Dual licensed under MIT and GPL */ !function(t){var e=["../element","../../proxy","../../function/merge","../../url","../../support","../../support/capability/datauri","../../support/element/canvas/todataurl/png","...
var searchData= [ ['binding',['binding',['../structpvr_1_1utils_1_1_vertex_attribute_info_with_binding.html#a330753e99fb414fd823b56aa4b6a9e1b',1,'pvr::utils::VertexAttributeInfoWithBinding']]], ['bindingid',['bindingId',['../structpvr_1_1utils_1_1_vertex_input_binding_info.html#a1e5d2abeaf8bbbe92322bf7af4bbfb42',1,...
import React from 'react' function Header({ currentContent, handlePageChange }) { function generateHeaderTitle(text) { let str = 'error' switch (currentContent) { case 'create': str = 'Create a Habit' break; case 'stats': str =...
# -------------------------------------------------------------------------------------- # Copyright (c) 2018-2021, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # --------------------------------------...
$(function () { validateRule(); $('.imgcode').click(function () { var url = ctx + "captcha/captchaImage?type=" + captchaType + "&s=" + Math.random(); $(".imgcode").attr("src", url); }); }); $.validator.setDefaults({ submitHandler: function () { register(); } }); function register() { $...
import React from "react" import Layout from "../components/layout" const ServicesPage = () => ( <Layout> <h1>Our Services</h1> <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Optio, beatae eveniet dolore voluptatum, commodi natus recusandae praesentium quisquam ea consectetur, omnis m...
import { List, Element } from './simple-linked-list'; describe('Element class', () => { test('has constructor', () => { const element = new Element(1); expect(element.value).toEqual(1); }); xtest('value reflects constructor arg', () => { const element = new Element(2); expect(element.value).toEq...
from test import support import types import unittest class FuncAttrsTest(unittest.TestCase): def setUp(self): class F: def a(self): pass def b(): return 3 self.fi = F() self.F = F self.b = b def cannot_set_attr(self, obj, name, v...
import { r as registerInstance, c as createEvent, d as getIonMode$1, h, H as Host, e as getElement, i as getAssetPath, j as getMode } from './core-ca0488fc.js'; import './config-3c7f3790.js'; import { h as hasShadowDom } from './helpers-46f4a262.js'; import { o as openURL, c as createColorClasses$1 } from './theme-18cb...
"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...
import React from "react"; import PropTypes from "prop-types"; class ChartSet extends React.PureComponent { static propTypes = { charts: PropTypes.object, set: PropTypes.object, }; constructor(props) { super(props); } render() { return <div className="ptr-charts-container">{this.renderChar...
require('./bootstrap'); window.currentURN; window.viewerDocument; window.viewer; window.model; $(document).ready(function () { console.log('Forge Started'); var forgeDiv = document.getElementById('forgeDiv'); window.token = forgeDiv.dataset.token; console.log(token); //window.currentURN = 'dXJuOmFk...
module.exports = function (router, content) { // START__#################################################################################################### router.post('/application/_5-injuries/injured-body-parts/arms/elbow', function (req, res) { let armsInjuredParts = req.session.data['armsInjuredParts'] ||...
(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{517:function(t,a,s){"use strict";s.r(a);var e=s(25),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"loreal-ui-cli"}},[s("a",{staticClass:"hea...
import { isDate, isObject, isUndefinedOrNull } from './inspect'; import { keys } from './object'; import { toString } from './string'; // Recursively stringifies the values of an object, space separated, in an // SSR safe deterministic way (keys are sorted before stringification) // // ex: // { b: 3, c: { z: 'zzz...
# -*- coding: utf-8 -*- from django.core.exceptions import ValidationError from mock import Mock from rest_framework import serializers from rest_framework.request import Request from rest_framework.test import APIRequestFactory from olympia.addons.models import Addon from olympia.addons.serializers import AddonSeria...
import pytest from sanic import Sanic, response from vaccine import ask_a_question_config as config from vaccine.ask_a_question import Application from vaccine.models import Message from vaccine.testing import AppTester @pytest.fixture def tester(): return AppTester(Application) @pytest.fixture async def model...
describe('ability limits', function() { integration(function() { describe('when an ability has a limit', function() { beforeEach(function() { const deck = this.buildDeck('stark', [ 'A Noble Cause', 'Robb Stark (Core)', 'Winterfell Steward',...
# O mesmo professor do desafio 019 quer sortear a ordem de apresentação de trabalhos dos alunos. #Faça um programa que leia o nome dos quatro alunos e mostre a ordem sorteada import random listaDeAlunos = list() for x in range(0,4): nam = input(f'{x+1}º aluno: ') listaDeAlunos.append(nam) random.shuffle(lis...
var convert = require('./convert') var func = convert('concat', require('../concat')) func.placeholder = require('./placeholder') module.exports = func
""" Cage Vertices ============= """ import numpy as np from scipy.spatial.distance import euclidean from stk.utilities import ( get_acute_vector, get_plane_normal, normalize_vector, ) from ..utilities import _FunctionalGroupSorter, _EdgeSorter from ..topology_graph import Vertex class _CageVertex(Verte...
const diasEntreFechas = (fecha1, fecha2) => { const unDia = 86400000 const diferencia = Math.abs(fecha1 - fecha2) return Math.floor(diferencia / unDia) } const hoy = new Date() const nacimiento = new Date(2006, 10, 13) console.log(diasEntreFechas(hoy, nacimiento))
const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const morgan = require('morgan'); const messages = require('./db/messages'); const app = express(); app.use(morgan('tiny')); app.use(cors()); app.use(bodyParser.json()); app.get('/', (req, res) => { res....
import dash_html_components as html """ Common, reusable views across apps. Please do not define any callback logic in this file. """ def logo_html(): """ Get the matscholar logo as a centered image for an app. Returns: (dash_html_components.Div): The header. """ logo = html.Img( ...
const fetch = require('node-fetch'); const emojis = require('../telegram-emojis'); // given the bus direction, route, and user input for the stop name, it returns the given bus stop object which contains the stopid and the stopname async function fetchBusStopID(direction, route, stopNameInput) { const CTA_getStops...
(function() { function Message($firebaseArray) { var Message = {}; var ref = firebase.database().ref().child("messages"); var messages = $firebaseArray(ref); Message.getByRoomId = function(roomId) { return $firebaseArray(ref.orderByChild('roomId').equalTo(roomId)); }; Message.send = fu...
import random from collections import deque from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam from src.InvertedPendulum import * # This script shows the behavior of the pendulum controlled by a reinforcement learning controller GAMMA = 0.95 LEARNING_RATE = 0.001 MEM...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['./UniversalDate','../CalendarType','sap/base/Log'],function(U,C,L){"use strict";var I=U.extend("sap.ui.core.date.Islamic",{constructor:function(){var a=a...
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWS IoT Greengrass" prefix = "greengrass" class Action(BaseAction): def __init__(self, action: str = None) -> None: ...
module.exports = { interval: 10 * 1000, repositories: [ { url: "git@github.com:nabeix/git-trigger.git", branch: "master", dir: "/Users/nabeix/git-trigger", actions: [ { when: "changed", gitCmd: "pull"...
define((require, exports, module)=>{ 'use strict'; const koru = require('koru'); const TH = require('koru/test-helper'); const {stub, spy, after} = TH; const sUtil = require('./server-util'); TH.testCase(module, ({beforeEach, afterEach, group, test})=>{ test("system...
import sys sys.path.append('../../vendor/github.com/elastic/beats/libbeat/tests/system') from beat.beat import TestCase class BaseTest(TestCase): @classmethod def setUpClass(self): self.beat_name = "cloudstackbeat" self.build_path = "../../build/system-tests/" self.beat_path = "../../c...
require('dotenv').config(); const firebase = require('firebase-admin'); const config = require('../lib/config'); const serviceAccount = require('./secretkey.js'); firebase.initializeApp({ credential: firebase.credential.cert(serviceAccount), databaseURL: config.FIREBASE_URL }); module.exports = firebase;
# Copyright The OpenTelemetry 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 law or agreed to in ...
function startApp() { const baseUrl = "https://baas.kinvey.com/appdata/"; const userUrl = "https://baas.kinvey.com/user/"; let app = Sammy("#app", function () { this.use("Handlebars", "hbs"); this.get("index.html", loadHomePage); this.get("#/home", loadHomePage); function ...
'use strict'; angular.module('myApp.selectbook', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/selectbook/:bookId', { url: '/selectbook', templateUrl: 'assets/pages/selectbook.html', controller: 'selectbookCtrl' }); }]) .controller('selectbookCtrl', ['$scope'...
/** * Title: Diagonal Difference * URL: https://www.hackerrank.com/challenges/diagonal-difference/ * Difficulty: Easy * Max Score: 10 */ function diagonalDifference(arr) { const sumDiagonally = (array) => array.reduce((a, v, k) => a + v[k], 0); const reverse = arr.map((v) => [...v].reverse()); return Math...