text
stringlengths
2
1.05M
(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[3],{"+2NU":function(e,t,n){"use strict";t.a=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}},"+Css":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - supe...
/* * Copyright (c) 2019, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: MIT * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT */ import { normalizeString } from 'lightning/utilsPrivate'; export const VARIANT = { STANDARD: 'standard',...
import React from 'react'; import ReactDOM from 'react-dom'; //่Žทๅ–ๅฝ“ๅ‰ๆ—ถ้—ด function getDate() { var d=new Date(), year=d.getFullYear(), month=d.getMonth()+1, day=d.getDate(), now=year+"-"+month+"-"+day; return now; } //ๅˆ›ๅปบๅ•ไธชๅšๅฎข็ป„ไปถ var BlogItem = React.createClass({ render: func...
import 'isomorphic-fetch' import { getUser } from './auth' const SERVER = process.env.AUTHSERVER // Detect if the app is running in a browser. export const isBrowser = () => typeof window !== 'undefined' // get all projects export const getUsers = async () => { const token = getUser().jwt ? getUser().jwt : '' /...
import { put, takeLatest } from 'redux-saga/effects'; import { LOAD_CHILDREN } from 'containers/App/constants'; import { childrenLoaded, childrenLoadingError } from 'containers/App/actions'; import * as data from '../../data/folders.json'; export function* loadChildren(action) { try { const children = getChildre...
#!/usr/bin/env node /* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Re...
/** * VRS API documentation * Documentation on all available end points in the VRSAPI * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ import Ap...
(function(undefined){ 'use strict'; var registerAMUIPartials = function(hbs) { hbs.registerPartial('accordion', "{{#this}}\n <section data-am-widget=\"accordion\" class=\"am-accordion {{#if theme}}am-accordion-{{theme}}{{else}}am-accordion-default{{/if}}{{#if widgetId}} {{widgetId}}{{/if}}{{#if className}} {{...
import Declaration from '../declaration.js'; class BorderImage extends Declaration { static names = ['border-image'] /** * Remove fill parameter for prefixed declarations */ set (decl, prefix) { decl.value = decl.value.replace(/\s+fill(\s)/, '$1') return super.set(decl, prefix) } } export defau...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import { Card, CardBody, CardHeader, Col, Row, Table, Alert } from "reactstrap"; import Get_list from "../../Queries/BranshesQuery/BranchesList"; import { Subscription } from "react-apollo"; import Loader from "../../views/Components/Cu...
window.SystemPalette = { Active: "active", Inactive: "inactive", Disabled: "disabled" }; window.platformsDetectors = [ //{ name: 'W8', regexp: /Windows NT 6\.2/ }, //{ name: 'W7', regexp: /Windows NT 6\.1/ }, //{ name: 'Windows', regexp: /Windows NT/ }, { name: 'OSX', regexp: /Macintosh/ ...
import knex from 'server/sql/connector'; export default class Count { getCount() { return knex('count').first(); } addCount(amount) { return knex('count') .increment('amount', amount); } }
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { __extends } from 'tslib'; import { DOCUMENT } from '@angular/common'; import { Inject, Injectable, NgZone, PL...
var forOwn = require('./forOwn'); /** * checks if a object contains all given properties/values */ function matches(target, props){ // can't use "object/every" because of circular dependency var result = true; forOwn(props, function(val, key){ if (target[k...
const { Schema, Types } = require("mongoose"); const reactionSchema = new Schema( { reactionId: { type: Schema.Types.ObjectId, default: () => new Types.ObjectId(), }, reactionBody: { type: String, required: true, maxlength: 280, }, username: { type: String, ...
// Copyright 2016 the V8 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. function t(re, s) { assertTrue(re.test(s)); } function f(re, s) { assertFalse(re.test(s)); } assertThrows("/\\p{Hiragana}/u"); assertThrows("/\\p{Bidi_...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa1c9"],{"102f":function(s,i,t){"use strict";t.r(i);var a=function(){var s=this,i=s.$createElement,t=s._self._c||i;return t("div",{staticClass:"tabs-details"},[t("div",{staticClass:"columns is-multiline"},[0==s.pagination.total?t("div",{staticClass:"i...
const nav = document.querySelector('#main'); const topOfNav = nav.offsetTop; function fixNav() { if (window.scrollY >= topOfNav) { document.body.style.paddingTop = nav.offsetHeight + 'px'; document.body.classList.add('fixed-nav'); } else { document.body.style.paddingTop = 0; document.body.classList...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
$(window).on("load",function(){function a(a){return a.value=+a.value,a}function b(a){a=Math.round(a);var b=a;return Math.abs(a)>1e3&&(b=Math.round(a/1e3)+"K"),"$"+b}function c(){f=d.node().getBoundingClientRect().width-e.left-e.right,l.attr("width",f+e.left+e.right),m.attr("width",f+e.left+e.right),h.rangeRoundBands([0...
exports = module.exports = function parseDirectives () { [ './condition', './bind', './for', './model', './other', './v-on' ].map(v => require(v).call(this)); };
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[697],{Ljug:function(c,a,e){"use strict";e.r(a);var t=e("q1tI"),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7...
/** * @param preferences - an array of integers. Indices of people, whom they love * @returns number of love triangles */ module.exports = function getLoveTrianglesCount(preferences = []) { // your implementation var result = 0; preferences.unshift(0); for(let a = 1; a < preferences.length; a++){ i...
match 1: | 1: true | else: false
/** * A plugin for use in grids which use the {@link Ext.grid.selection.SpreadsheetModel spreadsheet} selection model, * with {@link Ext.grid.selection.SpreadsheetModel#extensible extensible} configured as `true` or `"y"`, meaning that * the selection may be extended up or down using a draggable extension handle....
/* * Copyright 2016 Adobe Systems Incorporated * * 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...
๏ปฟ/* * WinJS Contrib v2.1.0.6 * licensed under MIT license (see http://opensource.org/licenses/MIT) * sources available at https://github.com/gleborgne/winjscontrib */ (function () { 'use strict'; WinJS.Namespace.define("WinJSContrib.UI", { VisualState: WinJS.Class.mix(WinJS.Class.define(function c...
import Icon from '../components/Icon.vue' Icon.register({"fort-awesome":{"width":1792,"height":1792,"paths":[{"d":"M640 1008v-224q0-16-16-16h-96q-16 0-16 16v224q0 16 16 16h96q16 0 16-16zM1152 1008v-224q0-16-16-16h-96q-16 0-16 16v224q0 16 16 16h96q16 0 16-16zM1664 1040v752h-640v-320q0-80-56-136t-136-56-136 56-56 136v32...
// Done by Carlos Amaral (2020/12/05) console.log('JavaScript here!')
'use strict'; /** * svg-sprite is a Node.js module for creating SVG sprites * * @see https://github.com/jkphl/svg-sprite * * @author Joschi Kuphal <joschi@kuphal.net> (https://github.com/jkphl) * @copyright ยฉ 2018 Joschi Kuphal * @license MIT https://raw.github.com/jkphl/svg-sprite/master/LICENSE.txt */ var C...
console.log(__filename); console.log(__dirname); var t = setTimeout(function(){ console.log('hello') }, 2000); clearTimeout(t); var t = setInterval(function(){ console.log('hello') }, 800);
function calcularPrecioConDescuento(precio, descuento){ const porcentajePrecioConDescuento = 100 - descuento; const precioConDescuento = (precio * porcentajePrecioConDescuento) / 100; return precioConDescuento; } function onClickButtonPriceDiscount(){ //const inputPrice = document.getElementById("in...
import {Component} from "react"; import {Duration} from "luxon"; const parseTimePart = (time, part, singular, plural, end) => time[part] ? `${time[part]} ${time[part] > 1 ? plural : singular}${end ? "" : ", "}` : ""; function parseTime(time) { let output = `${parseTimePart(time, "seconds", "Second", "Secon...
import { registerRootComponent } from 'expo'; import App from './src/App'; // registerRootComponent calls AppRegistry.registerComponent('main', () => App); // It also ensures that whether you load the app in Expo Go or in a native build, // the environment is set up appropriately registerRootComponent(App);
module.exports = async ({ getNamedAccounts, deployments, getChainId, getUnnamedAccounts, }) => { const {deploy} = deployments; const {deployer} = await getNamedAccounts(); //Price Feed ...
import createAPI from '../../common/helpers/create-api' export default function addDialog (Vue, Dialog) { const dialog = createAPI(Vue, Dialog, ['confirm', 'cancel', 'close', 'btn-click', 'link-click']) const types = ['alert', 'confirm'] types.forEach((type) => { dialog[type] = function (config, renderFn) { ...
/** * @license * Copyright 2020 Google LLC. 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 a...
/** * @file The controls portion of the Timer. Allows user to start, stop, and unblock the timer, * as well as open the preferences window. * @author jalenng */ /* eslint-disable no-undef */ import React from 'react' import { PrimaryButton, DefaultButton, TooltipHost, Stack, FontIcon, mergeStyles } fro...
const CustomError = require("../extensions/custom-error"); module.exports = function createDreamTeam( members ){ if (!Array.isArray(members)){ return false } realnames = []; for (i = 0; i<members.length; i++){ if (typeof members[i] === 'string'){ realnames.push(members[i].toUpperCase()); } } c = realnames....
/** * Module * * Description */ (function() { 'use strict'; angular.module('app.footer', []); })();
// Compiled by ClojureScript 1.7.107 {} goog.provide('cljs.core.async'); goog.require('cljs.core'); goog.require('cljs.core.async.impl.channels'); goog.require('cljs.core.async.impl.dispatch'); goog.require('cljs.core.async.impl.ioc_helpers'); goog.require('cljs.core.async.impl.protocols'); goog.require('cljs.core.asyn...
export default function (a, b) { return function () { a.apply(this, arguments); b.apply(this, arguments); }; }
var newrelic = require('newrelic'); var path = require('path'); var fs = require('fs'); var express = require('express'); var superagent = require('superagent'); var multer = require('multer'); var plist = require('plist'); var extract = require('extract-zip'); var B = require('bluebird'); var checkDomain = require('....
var $vBlog = new Vue({ el: '#edit', data: { 'blog': { 'blocks':[] } } }); $(function () { //display list recruit as size 20, 50, 100 $(".change_page_size").change(function () { var numberNow = $(this).val(); location.href = "/admin/blog/" + numberNow; ...
module.exports = { semi: true, trailingComma: 'all', singleQuote: true, printWidth: 120, tabWidth: 2, jsxSingleQuote: true, };
import Icon from '../components/Icon' Icon.register({ 'sim-card': { width: 384, height: 512, paths: [ { d: 'M0 64c0-35.3 28.7-64 64-64h192l128 128v320c0 35.3-28.7 64-64 64h-256c-35.3 0-64-28.7-64-64v-384zM224 256v-64h-64v64h64zM320 256v-32c0-17.7-14.3-32-32-32h-32v64h64zM256 384v64h32c17.7 ...
import { loadingType } from './type' import {baseURL} from '@/config/app.js' //่Š‚ๆต export const trottle = (func, time = 1000, context) => { let previous = new Date(0).getTime() return function(...args) { let now = new Date().getTime() if (now - previous > time) { func.apply(context, args) previ...
const Discord = require('discord.js'); const qdb = require('quick.db'); exports.run = async(client, message, args) => { msg = message let p = args[0]; let prefix = await require('quick.db').fetch(`prefix_${msg.guild.id}`) || `.` let onlycode = args.slice(0).join(' '); if(!args[0]) return message.channel.send(ne...
const helpers = require('../../test/test-helper'); const hunt = require('../functions/hunt').handler; const Twilio = require('twilio'); const context = { PHONE_NUMBERS: '+1234567890,+10987654321', }; const setupLifeCycle = (context) => { beforeAll(() => { helpers.setup(context); }); afterAll(() => { h...
/** * @type {Record<string, import('@iconify/types').IconifyInfo>} collections */ const collections = require('./collections.json'); exports.collections = collections;
var pw; function init() { initMap(); var data = new DataLoader(); data.loadPosData("data/all13.json"); // data.loadPosData("data/all13a14.json"); // data.loadPosData("data/xybirm5a.json"); // data.loadPosData("data/xyall5a500k.json"); // data.loadPosData("data/xyall5a300k.json"); // data.loadPosData(...
let path = require("path"); // Connect to each html page module.exports = function (app) { app.get("/", function (req, res) { res.sendFile(path.join(__dirname, "../public/index.html")); }); app.get("/stats", function (req, res) { res.sendFile(path.join(__dirname, "../public/stats.html")); }); app.g...
/* All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied, replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the ZingChart End User License Agreement which can be requested by email...
const express = require("express"); const bodyParser = require("body-parser"); const PORT = process.env.PORT || 8080; const app = express(); // middleware app.use(bodyParser.urlencoded({extended:true})); app.use(bodyParser.json()); app.use(express.static("public")); // routes app.use("/api", require("./routes/api-...
import componentTypes from '@data-driven-forms/react-form-renderer/dist/cjs/component-types'; import { asyncValidatorDebounced } from '@redhat-cloud-services/frontend-components-sources/cjs/SourceAddSchema'; import validatorTypes from '@data-driven-forms/react-form-renderer/dist/cjs/validator-types'; import validated f...
$(document).ready(function() { //------------- Extend table tools -------------// $.extend( true, $.fn.DataTable.TableTools.classes, { "container": "DTTT btn-group", "buttons": { "normal": "btn btn-default", "disabled": "disabled" }, "collection": { "container": "DTTT_dropdown dropdown-menu", "buttons": { ...
export { default, logicNor } from 'ember-logic-fns/helpers/logic-nor';
const Connection = require('./Connection'); function MockConnection(implementation = {}) { const methods = ['exec', 'getFile', 'putFile', 'createReadStream', 'createWriteStream']; methods.forEach((method) => { this[method] = function (...args) { return implementation[method](...args); }; }); th...
/******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; /*!*******************************************************************!*\ !*** ./resources/assets/cms/assets/js/pages/email-editor.init.js ***! \*******************************************************************/ ClassicEditor.create(document.quer...
/* eslint-env jest */ const { validateProperties, validateModifiers } = require("./validate-modifiers"); describe("validateProperties", () => { test("It should throw error if keys do not match", () => { expect(() => { const spec = { foo: true }; validateProperties("foo:test", spec,...
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import routes from './constants/routes.json'; import App from './containers/App'; import Home from './containers/Home/index'; import Login from './containers/Login/index'; export default function Routes() { return ( <App> <Switch>...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.JEST_CONFIG_EXT_ORDER = exports.JEST_CONFIG_EXT_JSON = exports.JEST_CONFIG_EXT_JS = exports.JEST_CONFIG_EXT_MJS = exports.JEST_CONFIG_EXT_CJS = exports.JEST_CONFIG_BASE_NAME = exports.PACKAGE_JSON = exports.DEFAULT_REPORTER_LABEL = ...
"use strict" CKEDITOR.plugins.setLang( 'btgrid', 'de', { selNumCols: 'Anzahl der Spalten', genNrRows: 'Anzahl der zu generierenden Zeilen', infoTab: 'Info', createBtGrid: 'Ein Bootstrap Grid erstellen', editBtGrid: 'Bootstrap Grid editieren', numColsError: unescape('Bitte die Anzahl der Spalten w%E4hlen.'), nu...
const CustomError = require("../extensions/custom-error"); const chainMaker = { chain: [], getLength() { return this.chain.length; }, addLink(value) { this.chain.push(String(value)); return this; }, removeLink(position) { if(!this.chain[position]) { this.chain = []; throw Error...
jQuery(document).ready(function($) { function is_visible(){ var stateKey, keys = { hidden: "visibilitychange", webkitHidden: "webkitvisibilitychange", mozHidden: "mozvisibilitychange", msHidden: "msvisibilitychange" }; for (stateKey in keys) { if (stateKey in document) { ...
game.PlayerEntity = me.Entity.extend({ init: function(x, y, settings) { this._super(me.Entity, 'init', [x, y, { image: "player", width: 64, height: 64, spritewidth: "64", spriteheight: "64", getShape: function() ...
var class_ext_1_1_net_1_1_grid_view_1_1_builder = [ [ "Builder", "d0/db7/class_ext_1_1_net_1_1_grid_view_1_1_builder.html#a851804f038d4a55d0875ec6f0c6559be", null ], [ "Builder", "d0/db7/class_ext_1_1_net_1_1_grid_view_1_1_builder.html#ac0e4c4cf234dcb2bcd257786cd33a1f9", null ], [ "Builder", "d0/db7/class_e...
if (!('WebkitAppearance' in document.documentElement.style)) { document.documentElement.style['WebkitAppearance'] = '' }
'use babel'; import panel from "./panel/main_panel"; import {change_text} from "./panel/body"; export default class SinumerikToNcView { constructor(serializedState) { // Create root element this.state = {text: 'jopa'} this.element = panel(); this.element.classList.add('sinumerik-to-nc'); } // ...
๏ปฟ'use strict'; /** @namespace DevKit */ var DevKit; (function (DevKit) { 'use strict'; DevKit.SdkMessageProcessingStepApi = function (e) { var EMPTY_STRING = ''; var f = '@OData.Community.Display.V1.FormattedValue'; function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityL...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fi'; var iconName = 'map-pin'; var width = 512; var height = 512; var ligatures = []; var unicode = null; var svgPathData = 'M 255.96094 0 C 138.41127 5.2519907e-15 42.660156 95.751027 42.660156 213.30078 C 42.660156 297.09721 94...
/** The MIT License (MIT) Copyright (c) 2015 Andrea Terruggia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
const BigNumber = require('bignumber.js'); const { bscWeb3: web3 } = require('../../../utils/web3'); const OriginalGangster = require('../../../abis/OriginalGangster.json'); const ERC20 = require('../../../abis/ERC20.json'); const fetchPrice = require('../../../utils/fetchPrice'); const { getTotalStakedInUsd } = requi...
const userAction = { ADD_USER: 'ADD_USER', EDIT_USER: 'EDIT_USER', FETCH_USER: 'FETCH_USER', fetchUser: () => { return (dispatch, getState) => { const user = getState().User.get('user'); dispatch({ type: userAction.FETCH_USER, user: user }); }; }, addUser: () => {...
(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{441:function(v,_,i){"use strict";i.r(_);var a=i(3),l=Object(a.a)({},(function(){var v=this,_=v.$createElement,i=v._self._c||_;return i("ContentSlotsDistributor",{attrs:{"slot-key":v.$parent.slotKey}},[i("Boxx"),v._v(" "),i("p",[v._v("ๆฌฒ็ŸฅๅŽไบ‹ๅฆ‚ไฝ•๏ผŒไธ”็œ‹ไธ‹ๅ›žๅˆ†่งฃ๏ผ๏ผ")]),v._v(" "...
import React from "react"; import { Modal, Button, message } from "antd"; import { CreatePostForm } from "./CreatePostForm.js"; import { API_ROOT, POS_KEY, TOKEN_KEY, AUTH_HEADER, LOC_SHAKE } from "../constant.js"; export class CreatePostButton extends React.Component { state = { visibl...
const path = require('path'); const fs = require('fs'); let ROOT = process.env.PWD; if (!ROOT) { ROOT = process.cwd(); } const config = { // Your website's name, used for favicon meta tags site_name: 'Stamper - landing page', // Your website's description, used for favicon meta tags site_description: 'lan...
import React from 'react'; import {connect} from 'react-redux'; import Round from '../Round/Round'; import TotalScore from '../totalScore/TotalScore'; import './app.css'; const App = (props) => { const {artists, didGameEnded, roundNumber} = props; return ( <div className="app-container"> <h1 className="...
import 'babel-polyfill' import 'cypress-testing-library/add-commands' import './commands'
const { promisify } = require('util'); const fs = require('fs-extra'); const glob = require('glob'); const path = require('path'); const postcss = require('postcss'); const sass = require('sass'); const SRC = path.resolve(__dirname, '../src'); const processor = postcss.default([require('cssnano')(), require('postcss-...
export const CartActionTypes = { TOGGLE_CART_HIDDEN: "TOGGLE_CART_HIDDEN", ADD_ITEM: "ADD_ITEM", REMOVE_ITEM: 'REMOVE_ITEM', CLEAR_ITEM_FROM_CART: "CLEAR_ITEM_FROM_CART", };
const getters = { appNameWithVersion: (state)=> { return `${state.appName}v2.0` } } export default getters
import { beforeEach, describe, it, } from '@bigtest/mocha'; import { omit } from 'lodash'; import { expect } from 'chai'; import sinon from 'sinon'; import { showUpdateOrderError, ERROR_CODES } from '../../../../../src/components/Utils/order'; const CALLOUT_ERROR_CODES = omit( ERROR_CODES, [ 'vendorIsIn...
function finalCompetition(dancers, points, season, place) { dancers = Number(dancers); points = Number(points); season = String(season); place = String(place); let wonPrice; if (place == "Bulgaria") { wonPrice = dancers * points; if (season == "summer") { wonPrice ...
import styled from 'styled-components' import { fontWeights } from 'Theme' import { COLORS } from 'Root/constants' import { Text } from 'components/atoms/Typography' const TextLink = styled(Text)` text-decoration: none; cursor: pointer; font-size: inherit; font-weight: ${fontWeights.semi_bold}; color: ${COLO...
// Static defines var DOMAIN = "https://api.hypixel.net"; // INSERT YOUR KEY HERE - OBTAIN BY RUNNING THE /api COMMAND ON HYPIXEL var KEY = "7a55e11f-9484-4773-af11-69295c39157c"; var MAX_QUANTITY_PER_ORDER = 71680; var ITEM_NAMES_LOOKUP = new Map(); // Global data storage var apiData = {}; // Default values var maxO...
require( './css/main.css' ); require( 'cesium/Widgets/widgets.css' ); require( 'bootstrap/dist/css/bootstrap.min.css' ); const Cesium = require( 'cesium/Cesium' ); const featurePickerService = require( './services/featurepicker' ); const geocodingApi = require( './controllers/geocoding' ); const geocodingService = req...
const logger = require('consola'); const execAsync = require('child_process').exec; module.exports = function exec(cmd) { return new Promise((resolve, reject) => { execAsync(cmd, (error, stdout, stderr) => { if (error) { logger.error(`exec error: ${error}`); reso...
class Map { constructor(scene, key, tileSetName, bgLayerName, blockedLayerName) { this.scene = scene; // the scene this map belongs to this.key = key; // Tiled JSON file key name this.tileSetName = tileSetName; // Tiled Tileset image key name this.bgLayerName = bgLayerName; // the name of the layer cr...
const swatchColorEl = $('#configurable_swatch_color'); const swatchSizeEl = $('#configurable_swatch_size'); const addingToCartBtn = $('.cart-spinner'); const errorMessage = $('#error-message'); let colorId, sizeId, option, quantity; const productData = JSON.parse($('#product-data').val()); const options = productData....
/** * Copyright ยฉ INOVUA TRADING. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-types'; import { ToggleIcon } from './Icons'; const ToggleButton = ({ onToggle, className, toggle...
// https://en.wikipedia.org/wiki/Mixolydian_mode // G, A, B, C, D, E, F, G import { T, S } from '../Interval/Short'; export default [T, T, S, T, T, S, T];
const path = require('path'); const querystring = require('querystring'); const should = require('should'); const supertest = require('supertest'); const sinon = require('sinon'); const testUtils = require('../../../utils'); const localUtils = require('./utils'); const config = require('../../../../core/shared/config')...
//@line 44 "/builds/slave/rel-m-rel-xr-osx64-bld/build/toolkit/content/debug.js" var EXPORTED_SYMBOLS = ["NS_ASSERT"]; var gTraceOnAssert = true; /** * This function provides a simple assertion function for JavaScript. * If the condition is true, this function will do nothing. If the * condition is false, then t...
let input = require('fs').readFileSync('./input', 'utf8'); input = input.split('\n'); input = input.map(i => Number(i)); for (let item of input) { console.log(`Running for base pair ${item}...`); let i1; let i2; let i3; for (let item2 of input) { console.log(`Child pair ${item2} being ran...
/** * ๋ณ„๋„๋กœ ์ž‘์„ฑ๋œ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ƒ˜ํ”Œ */ function external(){ alert("๋ณ„๋„๋กœ ์ž‘์„ฑ๋œ jsํŒŒ์ผ์—์„œ external()ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰ํ•œ๋‹ค."); }
/* istanbul instrument in package npmdoc_karma_mocha */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function () { ...
import * as React from "react"; import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@reach/tabs"; import "@reach/tabs/styles.css"; let name = "Vertically oriented tabs"; function Example() { return ( <div> <Tabs orientation="vertical"> <TabList> <Tab>One</Tab> <Tab>Two</Ta...
/** * To see % inside the pie */ function buildPlugin() { return { labels: { fontColor: "rgba(255, 255, 255, 0.80)", }, datalabels: { formatter: (value, ctx) => { let sum = 0; let dataArr = ctx.chart.data.datasets[0].data; ...
import passport from "passport"; import { Models } from "../models"; const User = Models.User; /** * POST /login */ export function login(req, res, next) { // Do email and password validation for the server passport.authenticate("local", (authErr, user, info) => { if (authErr) return next(authErr); if (...