text
stringlengths
2
1.04M
(function() { /** * <odoc> * <key>GenData.funcs.genFullPhone(aGenData, aCountry, aType) : String</key> * Shortcut for GenData.funcs.genPhone where the country code with a '+' is prefixed to the phone number and returned. * </odoc> */ exports.genFullPhone = function(aGenData, aCountry, a...
'use strict'; exports.__esModule = true; var ATTR_NAME_MAP = { acceptCharset: 'accept-charset', className: 'class', htmlFor: 'for', httpEquiv: 'http-equiv' }; function normalizeAttributes(attributes) { if (attributes == null) { return attributes; } var normalized = {}; var didNormalize = false; ...
/** * Identifies eval with expression * @author Adam Baldwin */ //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = function(context) { "use strict"; return { ...
const axios = require("axios"); const CronJobManager = require("cron-job-manager"); const moment = require("moment"); const { v4: uuidv4 } = require("uuid"); const Resource = require("../resources/resourcesModel"); const User = require("../users/usersModel"); const Log = require("../logsResource/logsModel"); const sen...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import React, { Component } from 'react'; class HelloReactToDoList extends Component{ constructor(props) { super(props); this.state = { things:props.things }; this.addTodo = this.addTodo.bind(this); }; addTodo() { console.log("add todo.",this); console.log(this.p...
// @flow import nullthrows from 'nullthrows'; import { EditorState } from 'prosemirror-state'; import { setCellAttr } from 'prosemirror-tables'; import { Transform } from 'prosemirror-transform'; import { EditorView } from 'prosemirror-view'; import ColorEditor from './ui/ColorEditor'; import { atAnchorRight } from '...
/** * @file 自闭合标签表 * @author errorrik(errorrik@gmail.com) */ var splitStr2Obj = require('../util/split-str-2-obj'); /** * 自闭合标签列表 * * @type {Object} */ var hotTags = splitStr2Obj('div,span,input,button,textarea,form,label,dl,dt,dd,ul,ol,li,a,b,u,h1,h2,h3,h4,h5,h6'); exports = module.exports = hotTags;
import React, { Component } from "react"; import { Link as SmoothLink } from "react-scroll"; import ReactTooltip from "react-tooltip"; import './VerticalNav.css'; import inView from 'in-view'; export default class VerticalNav extends Component{ constructor(props){ super(props); this.state ={ ativo...
export { default as Home } from "./Home/Home";
import HtmlWebpackPlugin from 'html-webpack-plugin' import ExtractTextPlugin from 'extract-text-webpack-plugin' import webpack from 'webpack' import paths from './paths' import * as config from './webpack.common.config' import { getPack } from './package' export default function getConfig({name, html = {}, px2rem = {}...
define(['./chunk-1825b42d.js'], function (__chunk_1) { 'use strict'; var main2 = __chunk_1.d.map(d => d + 2); return main2; });
/* * # Semantic - Tab * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { "use strict"; $.tab = $.fn.tab = function(parameters) { var // use window cont...
import any from '@travi/any'; import {assert} from 'chai'; import sinon from 'sinon'; import {scaffold} from './language-scaffolder'; suite('language scaffolder', () => { test('that the language specific scaffolder is called with necessary data', () => { const options = any.simpleObject(); const chosenLangua...
var group__socket_struct_sl_timeval__t = [ [ "tv_sec", "group__socket.html#a8f5aa475627ac4ba971fce4b1a79b673", null ], [ "tv_usec", "group__socket.html#a1ad5c78770a3d6fd50eae96b9096830b", null ] ];
/* Version: 16.0.10827.10000 */ Type.registerNamespace("Strings"); Strings.OfficeOM = function() { }; Strings.OfficeOM.registerClass("Strings.OfficeOM"); Strings.OfficeOM.L_APICallFailed = "API அழைப்பு தோல்வி"; Strings.OfficeOM.L_APINotSupported = "API ஆதரிக்கப்படவில்லை"; Strings.OfficeOM.L_ActivityLimitReached = "செய...
/* Skill Bar */ function setBarWidth(dataElement, barElement, cssProperty, barPercent) { var listData = []; $(dataElement).each(function() { listData.push($(this).html()); }); var listMax = Math.max.apply(Math, listData); $(barElement).each(function(index) { $(this).css(cssProperty, (listData[index] /...
/** * This is an example of a basic node.js script that performs * the Authorization Code oAuth2 flow to authenticate against * the Spotify Accounts. * * For more information, read * https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow */ var express = require('express'); // Expres...
import fs from 'fs' import path from 'path' let gspCalls = 0 export async function getStaticProps() { const data = await fs.promises.readFile( path.join(process.cwd(), 'data.txt'), 'utf8' ) gspCalls += 1 if (data.trim() === 'hide') { return { notFound: true, revalidate: 1, } } ...
var m3uData; var channels = []; var currentChannelIndex = 0; $(document).ready(function() { getChannels(); }); function getChannels() { showProgress("Memuat channel"); channels = []; $("#channels").find("*").remove(); $.ajax({ type: 'GET', url: 'http://iptvjoss.com/jossstreambe/cha...
var toGlobalize = { App: require('../app/index.js'), Tree: require('../visuals/tree'), Visuals: require('../visuals'), Git: require('../git'), CommandModel: require('../models/commandModel'), CommandLineStore: require('../stores/CommandLineStore'), CommandLineActions: require('../actions/CommandLineAction...
(function() { //Selecting our node var myNode = document.querySelector('#artlist .pixgrid ul'); myNode.addEventListener("click", function(e) { if(e.target.tagName === 'IMG') { console.log(e); } // target is an image }, false); //image is clicked })(); //self executing function
(() => { "use strict"; const isArray = require('./isArray/isArray'); const isBissexto = require('./isBissexto/isBissexto'); const isBoolean = require('./isBoolean/isBoolean'); const isCep = require('./isCep/isCep'); const isCnpj = require('./isCnpj/isCnpj'); const isDate = require('./isDate/isDate'); const isEmail = ...
import Store from './store' import Queue from './queue' import Elements from './elements' const Scrollbar = { /** * Hide scrollbar to prevent animation bugs with it * @param {HTMLElement} modal * @param {HTMLElement} modalContent * @returns {object} */ hide(modal, modalContent) { modal.style.d...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var _this = this; var root_1 = require('../../ut...
$(function(){$(".playVideo").on("click",function(){$.getScript("/statics/plugins/ckplayer/ckplayer.js",function(){CKobject.embedSWF("/statics/plugins/ckplayer/ckplayer.swf","i-media","ckplayer_a1","525","330",{f:"http://uokovideo/uoko2015.flv",s:0,c:0,b:1,p:1},{bgcolor:"#FFF",allowFullScreen:!0,allowScriptAccess:"alwa...
FEATURES ^ expected errors | v input // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-assignment-operators-static-semantics-early-errors description: Duplicated values in "features" frontmatter features: [object-spr...
/** * Copyright (c) WSO2 Inc. (http://wso2.com) 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 requir...
// Start by storing our API endpoint as URL constants const earthquakesURL = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson" // =-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-= // Define and initialize the layer groups for earthquakes and tecto...
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{397:function(t,l,e){var content=e(404);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,e(62).default)("1930a9a0",content,!0,{sourceMap:!1})},403:function(t,l,e){"us...
const ApiRootUrl = 'https://www.hiolabs.com/api/'; // const ApiRootUrlTwo = 'http://localhost:8081/jxambb/'; const ApiRootUrlTwo = 'https://yfk.qrzyyn.com/jxambb/'; module.exports = { // 登录 AuthLoginByWeixin: ApiRootUrl + 'auth/loginByWeixin', //微信登录 // 首页 IndexUrl: ApiRootUrl + 'index/appInfo', //首页数据...
import test from "ava" import compareFixtures from "./helpers/compare-fixtures" test.serial("should accept content", (t) => compareFixtures(t, "custom-load", { load: () => "custom-content {}" }) ) test.serial("should accept promised content", (t) => compareFixtures(t, "custom-load", { load: () => ...
import fetch from 'isomorphic-fetch'; import { API } from '../config'; export const emailContactForm = data => { let emailEndpoint; if (data.authorEmail) { emailEndpoint = `${API}/contact-blog-author`; } else { emailEndpoint = `${API}/contact`; } return fetch(`${emailEndpoint}`, {...
import React from "react"; import AccountConfirmation from "../../components/AccountConfirmation"; import { mount } from "enzyme"; import { create } from "react-test-renderer"; import { BrowserRouter } from "react-router-dom"; describe("AccountConfirmation Component Testing", () => { const confirmation = mount( ...
/* @功能:首页面js @作者:diamondwang @时间:2013年11月13日 */ /* 注意,要在页面中先引入jquery*/ $(function(){ //右侧,话费、旅行、彩票、游戏切换效果 $(".service h2 span").mouseover(function(){ $(this).addClass("on").siblings().removeClass("on"); $(".service_wrap div").hide().eq($(this).index()).show(); }); //导购区域切换效果,疯狂抢购,热卖商品、推荐商品、新品上架,猜您喜欢 $(".gui...
'use strict'; var _assert = require('assert'); var _assert2 = _interopRequireDefault(_assert); var _barmen = require('../src/barmen'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } suite('when barmen pour whisky', function () { setup(function () {}); // * ...
/*! * Copyright 2017 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 ...
import { Filter } from "./filter"; import * as p from "../../core/properties"; import { Indices } from "../../core/types"; import { keys, values } from "../../core/util/object"; import { isArrayOf, isBoolean, isInteger } from "../../core/util/types"; import { use_strict } from "../../core/util/string"; export class Cus...
const mongoose = require('mongoose'); const messageSchema = new mongoose.Schema({ senderId: mongoose.ObjectId, recipientId: mongoose.ObjectId, seen: { type: Boolean, default: false, }, resource: String, resourceClaimed: { type: Boolean, default: false, }, type: String, content: String...
const requireg = require('requireg'); const Helper = require('../helper'); const Locator = require('../locator'); const recorder = require('../recorder'); const stringIncludes = require('../assert/include').includes; const { urlEquals } = require('../assert/equal'); const { equals } = require('../assert/equal'); const ...
// Copyright IBM Corp. 2016,2017. All Rights Reserved. // Node module: strong-soap // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT // @ts-check "use strict"; var helper = require("./helper"); var builtinTypes; function getBuiltinTypes() { if (builtin...
/*! * jquery.fancytree.multi.js * * Allow multiple selection of nodes by mouse or keyboard. * (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/) * * Copyright (c) 2008-2018, Martin Wendt (http://wwWendt.de) * * Released under the MIT license * https://github.com/mar10/fancytree/wi...
/** * @file Afferent 传入 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {IconWrapper} from '../index'; export default IconWrapper( 'Afferent', true, (h, props) => ( <svg width={props.size} height={props.si...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; var colorConvert = require('color-...
// ==UserScript== // @name ASO Google Play // @namespace https://github.com/ayoubfletcher // @version 2.2 // @description Your tool kit to speed up your aso abilities. // @author Ayoub Fletcher // @match https://play.google.com/store/apps/details?id=* // @grant GM_xmlhttpRequest // ...
// SPDX-License-Identifier: Apache-2.0 import React, { useState, useEffect, forwardRef, useImperativeHandle } from "react"; import { getNumOfUniqueTokens, getTokenDetails, getAvailableAndRetired, formatDate } from "../services/contract-functions"; import TokenInfoModal from "./token-info-modal"; import Spinner from ...
"use strict"; var Keyboard = require('./Keyboard.js'); var Mouse = require('./Mouse.js'); module.exports = { keys : Keyboard.keys, Keyboard : Keyboard.Keyboard, Mouse : Mouse };
const express = require('express') require('dotenv').config(); const app = express(); const port = process.env.PORT || 5000; app.use(cors()); app.use(express.json()); const uri = process.env.ATLAS_URI; mongoose.connect(uri, {useNewUrlParser: true, useCreateIndex: true } ); const connection = mongoose.connection;...
import styled from 'styled-components'; export const MainBodyWrapper = styled.section` background: ${props => props.theme.background}; ` export const SinglePostCard = styled.article` border:none; box-shadow:none; background: ${props => props.theme.background}; .card-image{ border:solid 1px...
$.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $(document).ready(function(){ $(document).on('click','.pagination a',function(e){ e.preventDefault(); var page = $(this).attr('href').split('page=')[1]; var query = $('#search').val(); var ...
import { config, shallowMount, mount, RouterLinkStub } from '@vue/test-utils' import NotificationList from './NotificationList' import Notification from '../Notification/Notification' import Vuex from 'vuex' import { notifications } from '~/components/utils/Notifications' const localVue = global.localVue localVue.fi...
var NAVTREEINDEX14 = { "classIofaodel_1_1DatabaseIO.html#a9f6ca4786d0acda30aa5a36678e01e14":[3,0,129,0,67], "classIofaodel_1_1DatabaseIO.html#a9f6ca4786d0acda30aa5a36678e01e14":[4,0,83,0,67], "classIofaodel_1_1DatabaseIO.html#aa27ed6079b2e5e2a5501ce6eaae26b92":[4,0,83,0,80], "classIofaodel_1_1DatabaseIO.html#aa27ed6079...
require('babel-register'); require('babel-polyfill'); module.exports = { networks: { development: { host: "127.0.0.1", port: 8545, network_id: "*" // Match any network id }, }, contracts_directory: './src/contracts/', contracts_build_directory: './src/abis/', compilers: { solc: ...
module.exports = { displayName: 'ui-localization', preset: '../../../jest.preset.js', transform: { '^.+\\.[tj]sx?$': 'babel-jest', }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], coverageDirectory: '../../../coverage/libs/ui/localization', };
"use strict";function modifierStateGetter(t){var e=this,r=e.nativeEvent;if(r.getModifierState){return r.getModifierState(t)}var i=modifierKeyToProp[t];return!!i&&!!r[i]}function getEventModifierState(t){return modifierStateGetter}var modifierKeyToProp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};mod...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'contextmenu', 'fo', { options: 'Context Menu Options' } );
var searchData= [ ['transform_5ffunctions_2eh',['transform_functions.h',['../transform__functions_8h.html',1,'']]], ['transform_5ffunctions_5ff16_2eh',['transform_functions_f16.h',['../transform__functions__f16_8h.html',1,'']]], ['transformfunctions_2ec',['TransformFunctions.c',['../TransformFunctions_8c.html',1,...
const packageNames = require('./build/getPackageNames').getPackageNames(); const PATH = { npm: '@semantic-release/npm', gh: '@semantic-release/github', exec: '@semantic-release/exec', git: '@semantic-release/git' }; exports.branch = 'master'; exports.tagFormat = '${version}'; exports.generateNotes = {config: ...
function printFibo(n, a, b) { if (n === 0) return ""; if(n===1) { console.log(`${a}`) } else if(n ===2) { console.log(`${a}, ${b}`); } else { let seq = `${a}, ${b}`; let nextA = a; let nextB = b; for(let i=0; i<n-2; i++) { let nextVal = nextA + nextB; nextA = ne...
/** * @author: Dennis Hern?ndez * @webSite: http://djhvscf.github.io/Blog * @version: v1.0.0 */ (function ($) { 'use strict'; var initResizable = function (that) { //Deletes the plugin to re-create it that.$el.colResizable({disable: true}); //Creates the plugin ...
import Axios from "axios"; import * as Types from "../types/Types"; import { message } from "antd"; const {REACT_APP_API}= process.env export const shareNote=(data)=>async(dispatch)=>{ console.log(localStorage.auth_token) try{ const Note = await Axios.post(`${REACT_APP_API}/note/share`,data,{ h...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.1.1 (2019-10-28) */ (function (domGlobals) { 'use st...
// ========================================================================== // Fetch wrapper // ========================================================================== export default function fetch(url, responseType = 'text') { return new Promise((resolve, reject) => { try { const request = new XMLHtt...
const path = require('path'); const Webpack = require('webpack'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const ImageminWebpackPlugin = require('imagemin-webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const Co...
import { extendTheme } from "@chakra-ui/react"; const config = { initialColorMode: "dark", useSystemColorMode: false, }; const theme = extendTheme({ config, colors: { purple: { 50: "#EEE6FE", 100: "#CFBAFC", 200: "#B18EFB", 300: "#9262F9", 400: "#7436F7", 500: "#5509F6", ...
module.exports={A:{A:{"2":"O D G E A B mB"},B:{"2":"C I F P J K L Y","450":"KB M N S T YB V"},C:{"2":"0 1 2 3 4 5 6 7 8 9 kB bB H Z O D G E A B C I F P J K L a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB QB HB IB JB R LB MB NB OB GB X W VB RB SB TB UB PB Y KB M lB N S T tB wB"},D:{"2":"0 1 2 3 4...
'use strict'; module.exports = function isArrayish(obj) { if (!obj) { return false; } return obj instanceof Array || Array.isArray(obj) || (obj.length >= 0 && obj.splice instanceof Function); };
// This file was procedurally generated from the following sources: // - src/class-fields/static-private-methods.case // - src/class-fields/productions/cls-expr-after-same-line-async-gen.template /*--- description: static private methods (field definitions after an async generator in the same line) esid: prod-FieldDefi...
/** Custom Routes ============= You can create your own routing here. This is prioritized over automatic controller routing. **/ var routes = { /** Example: '/test' : function(req, res, next) { res.end('Hello World')}, //defaults to all GET, POST, DELETE, etc '/sample' : { //more specific get: functi...
import React from 'react' import TZIGrid from './TZIGrid' import { StaticQuery, graphql, navigate } from 'gatsby' import { css } from '@emotion/core' import Img from "gatsby-image" import theme from '../../config/theme' const animalLinkCss = css` border: 3px solid #eaeaea; border-radius: 3px; &:hover { backg...
import Reality from '../Reality.js' import XRAnchor from '../XRAnchor.js' import XRViewPose from '../XRViewPose.js' import XRAnchorOffset from '../XRAnchorOffset.js' import XRLightEstimate from '../XRLightEstimate.js' import MatrixMath from '../fill/MatrixMath.js' import Quaternion from '../fill/Quaternion.js' impor...
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
module.exports = { enterClass: 'fadeIn', leaveClass: 'fadeOut', type: 'animation' };
const UserRole = require('./model'); module.exports = { saveUserRole, getUserRole } // Register new user function saveUserRole(req, res, next) { const role = req.body.role ? req.body.role.trim() : ''; const role = req.body.description ? req.body.description.trim() : ''; if (!role) { return res .s...
/** * DevExtreme (ui/pivot_grid/xmla_store/xmla_store.js) * Version: 19.1.5 * Build date: Tue Jul 30 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var _renderer = require("../../../core/r...
// Exporting an object containing all of our models module.exports = { // YOUR CODE GOES HERE User: require("./User") };
var NAVTREE = [ [ "devcfg", "index.html", [ [ "Data Structures", null, [ [ "Data Structures", "annotated.html", null ], [ "Data Fields", "functions.html", [ [ "All", "functions.html", null ], [ "Variables", "functions_vars.html", null ] ] ] ] ], [ "APIs", "globals.html", ...
$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); $.browser.ipad = /ipad/.test(navigator.userAgent.toLowerCase()); /** * Initializes page contents for progressive enhancement. */ function initializeContents() { // hide all more buttons because they are not needed with JS $(".element a.mo...
// Copyright 2021 ARKADEEP // // 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 ...
// Variables Globals var messages = {}; // Add requires libraries var express = require('express'); var mongojs = require('mongojs'); var bodyParser = require('body-parser'); var fs = require('fs'); var isJSON = require('is-json'); var empty ...
import { useQuery, useMutation } from '@apollo/client' import { Button } from '@mui/material' import React, { Fragment, useState } from 'react' import DeleteTransaction from '../gql/deleteTransaction.gql' import GetTransactions from '../gql/transactions.gql' import { TxTable } from '../components/transactions/TxTable'...
/* * 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...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import { currencyBaseUrl } from "../BaseUrl" import { GET } from "../../libapi/rest/request/methods/Get"; import GETRequest from "../../libapi/rest/request/GETRequest"; import UrlBuilder from "../../libapi/rest/request/UrlBuilder"; class GetCurrencies extends GETRequest { getUrl(props) { let urlBuilder = n...
'use strict'; const _ = require('lodash'); const awsArnRegExs = require('../../../../../utils/arnRegularExpressions'); const NOT_FOUND = -1; const DEFAULT_STATUS_CODES = { 200: { pattern: '', }, 400: { pattern: '[\\s\\S]*\\[400\\][\\s\\S]*', }, 401: { pattern: '[\\s\\S]*\\[401\\][\\s\\S]*', },...
const redis = require('redis'); const { promisify } = require('util'); // Create a client and connect to Redis. const client = redis.createClient({ host: 'localhost', port: 6379, // password: 'password', }); // Use Node's built in promisify to wrap the Redis // command functions we are going to use in promises....
const bubbleSort = require('../sorting/bubbleSort.js'); const arr = [1, 2, 3, 4]; if (arr.join('') == bubbleSort([3, 4, 1, 2]).join('')) { console.log('CONGRATION U DONE IT', bubbleSort(arr)); } else { console.log('BETTER LUCK NEXT TIME!!!! hope u like disorderly arrays, pleb') }
module.exports = function(hljs) { var BASIC_ATOM_RE = '[a-z\'][a-zA-Z0-9_\']*'; var FUNCTION_NAME_RE = '(' + BASIC_ATOM_RE + ':' + BASIC_ATOM_RE + '|' + BASIC_ATOM_RE + ')'; var ERLANG_RESERVED = { keyword: 'after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun let ' + ...
import React from 'react'; import {mount} from 'enzyme'; import {MovieProfile} from '../../src/components'; const fetchResourceByUrl = jest.fn() .mockImplementation((url) => { return new Promise((resolve) => { process.nextTick(() => resolve(['Sample Name']) ); }); }); describe('Mov...
'use strict'; document.addEventListener('DOMContentLoaded', () => { const scripts = document.getElementsByTagName('script'); const pattern = new RegExp('baidu|bdstatic'); let count = 0; Array.from(scripts).forEach((current) => { const parent = current.parentNode; if (pattern.test(current.src) || patt...
import Ext_scroll_indicator_Indicator from '../../../Ext/scroll/indicator/Indicator.js'; export default class Ext_scroll_indicator_Overlay extends Ext_scroll_indicator_Indicator { static PROPERTIES() { return [ 'alignSelf', 'alwaysOnTop', 'ariaAttributes', 'ariaDescribedBy', 'ariaLabel', 'ari...
class Pawn extends Piece { constructor(team, image) { super(team, CHESS.Pawn, VALUE.Pawn, image); } getPossibleMoves(chessboard, grid, downward) { let moves = []; let possibleWays = []; if (grid.get_piece() == null) return moves; let dir = downward ? 1 : -1; if ((grid.y == 1 && dir == 1 || grid.y...
const REGISTRY = {} export function registerMethod (method, resolver) { REGISTRY[method] = resolver } export function parse (did) { if (!did || did === '') throw new Error('Missing DID') const sections = did.match(/^did:([a-zA-Z0-9]+):([[a-zA-Z0-9.-]+)(\/[^#]*)?(#.*)?$/) if (sections) { const parts = {did...
$(document).ready(function(){ // autoplay on video modals $('.modal.sa-video').on('shown.bs.modal', function () { var video_id = "#" + $(this).attr("id") + "_video"; $(video_id)[0].play(); }); $('.modal.sa-video').on('hidden.bs.modal', function () { var video_id = "#" + $(this).a...
/** @namespace */ JSDOC.Util = { } /** * Turn a path into just the name of the file. */ JSDOC.Util.fileName = function(path) { var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0); return path.substring(nameStart); } /** * Turn a path into just the directory part. */ JSDOC.Util.dir = ...
import { DeployUtil, Signer, RuntimeArgs, CLValueBuilder, CLAccountHash, CLKey, CLTypeBuilder } from 'casper-js-sdk'; import { NETWORK_NAME, PAYMENT_AMOUNT, MOTE_RATE, DEPLOY_TTL_MS } from '../constants/key'; /** * Get Transfer deploy * @param {CLPublicKey} fromAccount main account public key * @param {CLPublicKey}...
import Phaser, { Button } from 'phaser' import { centerGameObjects } from '../../utils' import BackButton from '../../components/BackButton' export default class extends Phaser.State { init () { } preload () { } create () { this.phoneBg = this.add.sprite(0, 0, 'phoneBg') this.settingsButton = new But...
import Ruler from "./ruler.js"; import { onReady } from "./dom.js"; /** Class for FontFaceObserver. */ class FontFaceObserver { static Ruler = Ruler; /** * @type {null|boolean} */ static HAS_WEBKIT_FALLBACK_BUG = null; /** * @type {null|boolean} */ static HAS_SAFARI_10_BUG = null; /** * @...
import sendgridMail from '@sendgrid/mail' sendgridMail.setApiKey(process.env.SENDGRID_KEY) export const sendMail = (toEmail, subject, content) => { const msg = { to: toEmail, from: process.env.DEFAULT_EMAIL, subject, html: content } return sendgridMail.send(msg) }