text
stringlengths
2
1.04M
'use strict'; const fs = require('fs'); const assert = require('assert'); const { ref } = require('../..'); describe('reinterpretUntilZeros()', function() { beforeEach(gc); it('should return a new Buffer instance up until the first 0', function() { const buf = Buffer.from('hello\0world'); const buf2 = ref...
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Platform, Image, FlatList, SafeAreaView, RefreshControl, StatusBar, } from 'react-native'; import { Colors, FontStyle, Layout } from '../../../../../components/react-native-teso/Magic'; import { PopUpConfirm, FormInput, MainHea...
module.exports = { theme: { extend: { width: { '96': '24rem' }, colors: { 'bg-semi-75': 'rgba(0, 0, 0, 0.75)' } } }, variants: {}, plugins: [] }
!function(){function t(t){return t&&t.__esModule?t.default:t}var e,i={},r=!1;function n(){var t,i;return r||(r=!0,e={},t="undefined"!=typeof window?window:e,i=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},r=i[t]=i[t]||[];return-1==r.indexOf(e)&&r.push(...
/** * Created by OUYANG on 2017/3/14. * 数据类型判断库 * @author Ouyang * @version 1.0 */ const ERROR = '未知'; const isNull = value => { // return (typeof value).toLowerCase() === "object" && value === null; return value === null || (typeof value).toLowerCase() === 'undefined'; }; const isObject = value => { ...
import { execute, testPort } from "./machine"; describe("the machine", () => { it("should have the correct configuration", () => { const result = execute("find /etc/logstash/conf.d/* -type f"); expect(result).toEqual([ "/etc/logstash/conf.d/beats.conf", "/etc/logstash/conf.d/input.conf", "...
import { WebClient } from '@slack/client' exports.handler = async (event, context, callback) => { const body = JSON.parse(event.body) const slackEvent = body.event console.log(JSON.stringify(body, null, 4)) if (slackEvent && slackEvent.type === 'channel_created') { const web = new WebClient(process.env.SL...
const Card = require('../../Card.js'); class MightMakesRight extends Card { setupCardAbilities(ability) { this.play({ condition: context => context.player.creaturesInPlay.reduce((total, c) => total + c.power, 0) >= 25, target: { optional: true, ...
import { routerRedux } from 'dva/router'; import { goLoginPage } from '../services/sys-api'; import { setAuthority,setToken,removeToken } from '../utils/authority'; import { reloadAuthorized } from '../utils/Authorized'; export default { namespace: 'newlogin', state: { status: undefined, }, effects: { ...
var timeDelta = require('../lib/time-delta.js'); timeDelta.addLocale('ksh_de', { "long": { "years": { "zero": "{0} Johre", "one": "{0} Johre", "other": "{0} Johre" }, "months": { "zero": "{0} Mohnde", "one": "{0} Mohnde", ...
import ActionLibrary from 'rule-based-system/ActionLibrary'; import ConfigDrivenAction from './ConfigDrivenAction'; const myActionLibrary = new ActionLibrary(); myActionLibrary.addAction('ConfigDrivenAction', ConfigDrivenAction); export default myActionLibrary;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _vue = require("vue"); var _CloseCircleOutlined = _interopRequireDefault(require("@ant-design/icons-svg/lib/asn/CloseCircleOutlined")); var _AntdIcon = _interopRequireDefault(require("../components/AntdIc...
(function(){ var $, TS; if(window.Zepto || window.jQuery){ $ = window.Zepto || window.jQuery; } else { var script = document.createElement('script'); script.src = 'http://{domain}/static/js/jquery.min.js'; script.onload = function(){ $ = window.Zepto || window.jQu...
// Basic integration tests for the background job that periodically kills idle cursors, in both // mongod and mongos. This test creates the following four cursors: // // 1. A no-timeout cursor through mongos. // 2. A no-timeout cursor through mongod. // 3. A normal cursor through mongos. // 4. A normal cursor through ...
let loadingScreens = [ { bgColor: "#1B3C54", color: "#BECFC7", text: "reticulating splines..." }, { bgColor: "#DBCCAE", color: "#742313", text: "building more pylons..." }, { bgColor: "#6386A4", color: "#C5C1C5", text: "cleansing palette..." }, { bgColor: "#F0C242",...
const router = require('express').Router(); const { authRequired, childValidation, childUpdateValidation, } = require('../middleware'); const { crudOperationsManager } = require('../../lib/'); const Children = require('./childModel'); /** * Schemas for child data types. * @swagger * components: * schemas:...
angular.module('ui.bootstrap.carousel', []) .controller('UibCarouselController', ['$scope', '$element', '$interval', '$timeout', '$animate', function($scope, $element, $interval, $timeout, $animate) { var self = this, slides = self.slides = $scope.slides = [], SLIDE_DIRECTION = 'uib-slideDirection', curr...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Table, Icon, Divider } from 'antd'; import numeral from 'numeral'; import NumberInfo from 'components/NumberInfo'; import CountDown from 'components/CountDown'; import ActiveChart from 'components/ActiveChart...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _styledBase = _interopRequireDefault(require("@emotion/styled-base")); var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _core = requ...
import React, { Component } from 'react'; import styles from '../assets/StartScreen.module.css'; import { Link } from 'react-router-dom'; import hand from "../assets/Hand.png"; import doubleHand from "../assets/doubleHand.png" class CalibrateScreen extends Component { componentDidMount() { var canPlayVide...
import React from 'react' import { Field, ErrorMessage } from 'formik' import TextError from '../shared/TextError' import { FaAsterisk } from 'react-icons/fa' function FirstNameInput({formik}) { return ( <> <label htmlFor="first_name">First Name <sup><FaAsterisk /></sup></label> <Field className="for...
console.log("Step 1"); var graymap = L.tileLayer("https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}", { attribution: "© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> <strong><a href='https://www.mapb...
import PropTypes from 'prop-types' import React from 'react' import {StateLink} from '@sanity/state-router' export default function ImageSelector(props) { return ( <ul style={{margin: 0, padding: 0, listStyle: 'none', clear: 'both'}}> { props.images.map((image, i) => { return ( ...
import React from "react" import { Form, Button } from "react-bootstrap" import PrimaryLayout from "../layout/PrimaryLayout" export default () => ( <PrimaryLayout col="col-10"> <div className="pt-5"> <h1>Contact Us</h1> <Form> <Form.Group controlId="contactForm.Email"> <Form.Label>...
/** * @author Richard Davey <rich@photonstorm.com> * @author Felipe Alfonso <@bitnenfer> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Renders this Game Object with the Canvas Renderer to the given Camera. * The object will no...
// @flow import React, { Component } from 'react'; import type { Node } from 'react'; import { observer } from 'mobx-react'; import ReceiveNavigation from '../navigation/ReceiveNavigation'; import styles from './ReceiveWithNavigation.scss'; type Props = {| +children?: Node, +isActiveTab: ('internal' | 'external' |...
export default function initProjectsNavigation() { const tabMenu = document.querySelectorAll(".js-tabmenu li"); const tabContent = document.querySelectorAll(".js-tabcontent section"); if (tabMenu.length && tabContent.length) { function activeTab(index) { tabContent.forEach((section) => ...
odoo.define('one_click_form_edit.form_edit', function(require) { "use strict"; var FormController = require('web.FormController'); FormController.include({ _onBounceEdit: function () { if (this.$buttons) { this._setMode('edit'); } }, }) return FormController; });
/* * Copyright 2020 Xiaomi * * 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 applica...
//Carrega o modulo do mysql. const mysql = require('mysql'); //Cria a conexão com o Banco de Dados. const connectMYSQL = () => { return mysql.createConnection({ host: 'localhost', user: 'root', password: 'root', database: 'carrental' }); }; //Retorna a conexão. module.exports = () => { return connectM...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
import QTimestampPicker from './src/components/QTimestampPicker.vue' export { QTimestampPicker }
import React from 'react' import ReactHighmaps from 'react-highcharts/ReactHighmaps.src' import maps from './mapdata/europe' const config = { chart: { spacingBottom: 20, }, title: { text: 'Europe time zones', }, legend: { enabled: true, }, plotOptions: { map: { allAreas: false, ...
var test = require('tape'); var assertNoError = require('assert-no-error'); var CollectInChannel = require('../index'); var testCases = [ { name: 'Collect two properties', channel: { id: 'existing' }, props: ['statusCode', 'sum'], noErrorParamDefault: false, incomingBody: { statusCode: 200, sum: ...
import React,{ Component } from "react"; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { setData, chageSearchText } from '../../actions/action' import SearchResult from "../UI/SearchResult"; import C from '../../constants' /* class TestSearch extends Component{ construct...
module.exports = { props: { errors: {required: true, default: null}, action: {required: true, default: null}, old: {required: true, default: null}, }, data() { return { ready: false, timeout: null, } }, computed: { is_disable...
var p = $('p'); var body = $('body'); var items = $("*"); $('body').find('*').remove(); for(var i = 0; i < items.length; i++){ if(items[i].nodeName === "P" || items[i].nodeName === "H1" || items[i].nodeName === "H2" || items[i].nodeName === "H3" || items[i].nodeName === "H4" || items[i].nodeName === "H5"){ $('...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { uniq } from 'lodash'; import { checkPrivilegesWithRequestFactory } f...
var getLastDayOfMonth = function (year, month) { return new Date(year, month + 1, 0).getDate(); }
import iterateJsdoc from '../iterateJsdoc'; export default iterateJsdoc(({ sourceCode, utils, report, context, jsdoc, jsdocNode, }) => { const [mainCircumstance, {tags} = {}] = context.options; const checkHyphens = (jsdocTag, targetTagName, circumstance = mainCircumstance) => { const always = !cir...
/* * * LinkListContainer reducer * */ import { fromJS } from "immutable"; import { REQUEST_LINK_SUCCEEDED } from "./constants"; import { ADD_LINK_SUCCESS } from "../LinkFormContainer/constants"; const initialState = fromJS({ links: [], }); function addLink(state, link) { const links = state.get("links"); l...
/* eslint-disable react/no-multi-comp */ import React from "react"; import TestRenderer from "react-test-renderer"; import { iterator } from "@times-components/test-utils"; import ArticleMainComment from "../src/article-main-comment"; import articleFixture, { testFixture } from "../fixtures/full-article"; import shared...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { r...
var Manager = require("dl-module").managers.master.InstructionManager; var JwtRouterFactory = require("../../jwt-router-factory"); const apiVersion = '1.0.0'; function getRouter() { var router = JwtRouterFactory(Manager, { version: apiVersion, defaultOrder: { "_updatedDate": -1 ...
const core = require('@actions/core'); const toolCache = require('@actions/tool-cache'); const process = require('process'); const childProcess = require('child_process'); async function run() { try { const applanga = 'applanga' const osPlatform = process.platform; var url = '', extractedFile = ''; //getting...
import { describe, it } from 'mocha' import { assert, is, eq } from '@briancavalier/assert' import { now } from '../../src/source/now' import { empty, isCanonicalEmpty } from '../../src/source/empty' import { delay } from '../../src/combinator/delay' import { merge, mergeArray } from '../../src/combinator/merge' impo...
import React from "react"; import "./Questions.css"; const showAnswerLabel = acceptedAnswerExists => { if (acceptedAnswerExists) { return <h3>Accepted Answer</h3>; } else { return null; } }; const QandA = props => { if (props.question !== undefined) { return ( <div className="questions__answ...
import produce from 'immer'; export default function cart(state = [], action) { switch (action.type) { case '@cart/ADD_SUCCESS': return produce(state, draft => { const { item } = action; draft.push(item); }); case '@cart/REMOVE': return produce(state, draft => { con...
import React, { Component } from 'react'; export default class Success extends Component { constructor(props){ super(props); } render(){ return ( <div className='alert alert-success' role='alert'> {this.props.message} </div> ); } }
/** * Copyright 2014 Telerik AD * * 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 ...
/* */ "format cjs"; /*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-a415550 */
var group__general = [ [ "Api", "class_tg_bot_1_1_api.html", [ [ "Api", "class_tg_bot_1_1_api.html#ac0e4615a8944c07e7db3811ee84f2a94", null ], [ "answerCallbackQuery", "class_tg_bot_1_1_api.html#a2f73414941d8bb67ff3721a674274bf8", null ], [ "answerInlineQuery", "class_tg_bot_1_1_api.html#a430f9e03...
const mongo = {}; const mongodb = require('mongodb'); const MongoClient = require('mongodb').MongoClient; mongo.init = function () { return new Promise(function (resolve, reject) { tryConnectToMongo((err, message) => { if (err) { console.log(err); return reject(new Error(err)); } ...
export const eachPoint = (options = {}, thunk, polygons) => { const points = []; for (const polygon of polygons) { for (const point of polygon) { thunk(point); } } return points; };
import React from "react"; function IncrementDecrementButton({ duration, dataInfo, disable, value, name, spanClass }) { return ( <button type="button" className={`btn btn-primary ${spanClass}`} data-testid={dataInfo} onClick={duration} disabled={disable} name={...
// Copyright (c) 2018 Jesús Fernández <jesus@nublar.net> // MIT License 'use strict'; const settings = require('./settings.js'); const TelegramBot = require('node-telegram-bot-api'); // FUTURE: seems like a better library https://github.com/Lorengamboa/EMT-library const EMTAPI = require('node-emtmad-bus-promise'); con...
/* * Copyright 2020 American Express Travel Related Services Company, 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 * * Unless r...
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.wizard', name: 'StepWizardletStepsView', extends: 'foam.u2.View', css: ` ^item { margin-bottom: 24px; } ^item > .circle { display: i...
import Element from './index.js'; document.registerElement('corespring-text-entry-ng15', Element);
var WebSocket = require('ws'); var connection = new WebSocket('ws://localhost:8081'); var sleepSpotify = { type: 'SPOTIFY_WAKE', payload: 'none' } connection.onopen = function() { console.log("opened"); connection.send(JSON.stringify(sleepSpotify)); // connection.send("SPOTIFY_SLEEP"); }; connection.oner...
'use strict'; const Promise = require('bluebird'); const helperUtil = require('../utils/helperUtil'); const MyCity = require('../models/MyCity'); module.exports = { sanitizeMyCityPayload: async ({ startDate, endDate, price, color, city, status }) => { const payload = {}; const newStartDate = startDate &&...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('current-user-menu', 'Integration | Component | current user menu', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); /...
const {createSelector} = require('reselect') const Parser = require('expr-eval').Parser const xtend = require('xtend') const solver = require('./verlet-solver') // Expensive stuff should be cached til state.pattern.measurements changes const getSolvedMeasurements = createSelector( [ state => state.pattern.measu...
'use strict'; const _ = require('lodash'); const BbPromise = require('bluebird'); module.exports = { compileStage() { // NOTE: right now we're only using a dedicated Stage resource if AWS X-Ray // tracing is enabled. We'll change this in the future so that users can // opt-in for other features as well ...
function generateRandomId() { return Math.floor(Math.random() * 1000000000); } module.exports = generateRandomId;
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import categoryController from "./categoryController"; import categoryUseCase from "../../use_cases/Category"; module.exports = ({ categoryRepository }) => { const useCases = categoryUseCase({ categoryRepository }); const controllers = categoryController({ ...useCases, }); return controllers; };
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var SettingsInputHdmi = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React....
/** * @desc Mattheson Project Assist (Lite) * @author Ajonibode Oluwaseyi Matthew * @copyright Copyright(c) 2015-2018, Mattheson Engineering * @url https://mattheson.co * @date 07/06/2018 */
var protocol_list_detail_view_controller_delegate_p = [ [ "listDetailViewController:didFinishAddingChecklist:", "protocol_list_detail_view_controller_delegate-p.html#abfb5cdc1bcedc08be115c2e8cd7a19aa", null ], [ "listDetailViewController:didFinishEditingChecklist:", "protocol_list_detail_view_controller_delegat...
/** * @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...
module.exports = { someSidebar: { Start: ["intro", "basic-setup", "starter"], API: [ "sprites", "textures", "device", "game-size", "game-loop", "top-level-game", "thinking-in-replay", "mask", "context", "pure-sprites", ], Testing: ["test"], ...
import {fetchLoading,loadingDone} from './loginActions'; //SHOPPING ACTIONS export const GET_SHOPPINGLIST_SUCCESS = "GET_SHOPPINGLIST_SUCCESREMOVE_FROM_LIST_FAILEDS" export const GET_SHOPPINGLIST_FAILED = "GET_SHOPPINGLIST_FAILED" export const ADD_TO_LIST_SUCCESS = "ADD_TO_LIST_SUCCESS" export const ADD_TO_LIST_FAILED...
/** * nlpapi * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: unset...
var x = 0 for (var i = 0; i < 20; i = i + 1) { if (i == 10) break x = x + i print((i + ") x = " + x)) }
import template from './templates/PopupStack.hbs'; const classes = { POPUP_REGION: 'js-popup-region-', POPUP_FADE: 'popup-fade' }; const POPUP_ID_PREFIX = 'popup-region-'; const maxTransitionDelay = 1000; export default Marionette.View.extend({ initialize() { this.__stack = []; this.__fo...
// @flow import {objectIncludes, DIRECTION, type Selection} from '../core/utils.js'; import ActionDetails from '../core/action-details.js'; import MaskedDate from '../masked/date.js'; import createMask, {maskedClass} from '../masked/factory.js'; import type Masked from '../masked/base.js'; import {type Mask} from '../m...
import React from 'react'; import H2 from './utilities/H2' export default Activities const textEn = [ { title: "Wineries Tour", description: "Just a short drive away from legendary wineries such as Boplaas and De Krans" }, { title: "Cango Caves", description: "These must-see caves are a spectac...
var DOCUMENTATION_VERSIONS = DOCUMENTATION_VERSIONS || []; (function () { if (DOCUMENTATION_VERSIONS.length < 2) { return } var container = document.getElementById('versionNavigation') container.innerHTML = '<br /><span style="font-size: 12px">Documentation Versions:</span><br />' var form = container.appendC...
"use strict"; var values = require("../"); var test = require("tape"); var runTests = require("./tests"); test("as a function", function (t) { t.test("bad array/this value", function (st) { st["throws"]( function () { values(undefined); }, TypeError, "undefined is not an object",...
function solve(fruit, weight, price){ weight = weight / 1000; price = weight * price; console.log(`I need $${price.toFixed(2)} to buy ${weight.toFixed(2)} kilograms ${fruit}.`); } console.log(solve('orange', 2500, 1.80))
import React from 'react'; import { Disqus, CommentCount } from 'gatsby-plugin-disqus' const PostTemplate = (props) => { let disqusConfig = { url: props.Url, identifier: props.PostId, title: props.PostTitle, } return ( <> <h1>{props.postTitle}</h1> <CommentCount config={disqusConfig} ...
const { devDependencies } = require('./package.json'); module.exports = { name: require('./package').name, hooks: { create: { timing: { last: true, before: ['@gasket/plugin-lint'] }, handler: async function create(gasket, { files, pkg }) { const path = require('path');...
require("dotenv").config(); const cors = require("cors"); const express = require("express"); const path = require("path"); const cookieParser = require("cookie-parser"); const logger = require("morgan"); const session = require("express-session"); const app = express(); //use cors app.use(cors()); app.use(logger("d...
/** * A function that compares two dates. * The comparison also includes the time portion. * * @param candidate - The candidate date. * @param expected - The expected date. * @returns - A Boolean value indicating whether the values are equal. * * @example * ```ts-no-run * isEqual(new Date(2016, 0, 1), new Dat...
import React from "react"; import PropTypes from "prop-types"; import Button from "@material-ui/core/Button"; import ClickAwayListener from "@material-ui/core/ClickAwayListener"; import Grow from "@material-ui/core/Grow"; import Paper from "@material-ui/core/Paper"; import Popper from "@material-ui/core/Popper"; import...
/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2015 Cesium Contributors * * 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/l...
import { Recognizer, RecognizerResult } from '../recognizer' import { Date, Point, Quadrilateral, MrtdDocumentType, MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, DataMatchResult, } from '../types' /** * Result object for VisaRecognizer. */ export class VisaRecogn...
// File: chapter11/ng-include/app.js angular.module('stockMarketApp', []) .controller('MainCtrl', [function() { var self = this; self.stocks = [ {name: 'First Stock', price: 100, previous: 220}, {name: 'Second Stock', price: 140, previous: 120}, {name: 'Third Stock', price: 110, previous: ...
'use strict'; const mongoose=require('mongoose'); const fruitSchema= new mongoose.Schema({ name:String, image:String, price:String, email:String }); const fruitsModel= mongoose.model('fruits',fruitSchema); module.exports={ fruitsModel, };
module.exports = { ArrayNode: require('./ArrayNode'), AssignmentNode: require('./AssignmentNode'), BlockNode: require('./BlockNode'), ConditionalNode: require('./ConditionalNode'), ConstantNode: require('./ConstantNode'), FunctionNode: require('./FunctionNode'), Node: require('./Node'), OperatorNode: re...
const task = document.getElementById("task"); const taskButton = document.getElementById("taskButton"); const todoList = document.querySelector(".todo-list"); const status = document.getElementById("status"); taskButton.addEventListener("click", addTask); todoList.addEventListener("click", dltChk); function addTask(e...
//Class News function News() { //Attributs this.cde; this.titre; this.article; this.alias; //Function return { //Constructeur constructor: News, //Pour l'id getId : function () { return this.cde; }, setId : function (id) { this.cde = id; }, //Pour l'alias ge...
import React from 'react'; class CloseIcon extends React.Component { constructor(props) { super(props); } render() { return <svg className="close-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17....
import { formatTime } from './helpers.js'; import diffLogger from './diff.js'; /** * Get log level string based on supplied params * * @param {string | function | object} level - console[level] * @param {object} action - selected action * @param {array} payload - selected payload * @param {string} type - log ent...
///////////////////////////////////////////////// /// Handles Postback & Quick_Replies function /// ///////////////////////////////////////////////// const callSendAPI = require("./callSendAPI"), i18n = require("i18n"), passThread = require("./pass_thread"), updateState = require("../database/update_state"), updateLimi...
'use strict'; let angular = require('angular'); module.exports = angular.module('spinnaker.core.securityGroup.all.controller', [ require('./filter/securityGroup.filter.service.js'), require('./filter/securityGroup.filter.model.js'), require('../utils/lodash.js'), require('../cloudProvider/providerSelection/pr...
import { ImplicitAvailabilityBitstream } from "../../Source/Cesium.js"; describe("Scene/ImplicitAvailabilityBitstream", function () { it("throws on missing lengthBits", function () { expect(function () { return new ImplicitAvailabilityBitstream({}); }).toThrowDeveloperError(); }); it("throws on mi...
/** * Copyright 2017 deepsense.ai (CodiLime, 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 * * Unless required by applicable...
ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_POS_FLAG: 8, ATTR: 9, SET_ATTR: 10, PROMOTE: 11, MODE: 12, ON_BOARD_DIR: 13, ...