text stringlengths 2 1.04M |
|---|
/*! Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */
define(["jquery", "app/model", "app/server", "app/connections"],
function($, model, server, connections) {
var update_connections = function() {
var current = connections.g... |
jest.unmock('../sum');
describe('sum', () => {
it('adds 1 + 2 to equal 3', () => {
const sum = require('../sum');
expect(sum(1, 2)).toBe(3);
});
}); |
const winston = require('winston');
const {
SPLUNK_URL,
SPLUNK_TOKEN,
SPLUNK_SOURCE,
SPLUNK_SOURCETYPE,
SPLUNK_INDEX
} = require('../config');
const logger = winston.createLogger({
level: 'info'
});
// Activate Splunk logging if Splunk's env variables are set
if (SPLUNK_URL) {
const SplunkStreamEvent = ... |
import React, {Component} from 'react';
import {connect} from 'react-redux';
import WalkThrough from '../components/WalkThrough';
import EncodingByLogCard from '../components/static/EncodingByLogCard';
import {ClassificationMethodsCard} from '../components/static/ClassificationMethodsCard';
import {RegressionMethodsCar... |
import { solidSet } from './solid-set.js'
export { solidSet }
import { cis3dRotate } from './cis-3d-rotate.js'
import { cis3d } from './cis-3d.js'
import { cis4k } from './cis-4k.js'
import { cisAccessibility } from './cis-accessibility.js'
import { cisAccessible } from './cis-accessible.js'
import { cisAccountLogou... |
import PropTypes from 'prop-types';
import React from 'react';
import { TOKEN_TYPE } from '../constants';
import Select from '../../../components/select';
const OPTIONS = [
{ label: 'All Types', value: undefined },
{ label: 'ERC-20', value: TOKEN_TYPE.ERC20 },
{ label: 'ERC-721', value: TOKEN_TYPE.ERC721 },
{... |
deepmacDetailCallback("c0335e000000/24",[{"d":"2014-11-06","t":"add","a":"1 Microsoft Way\nRedmond Washingtonm 98023\n\n","c":"UNITED STATES","o":"Microsoft"},{"d":"2015-08-27","t":"change","a":"1 Microsoft Way Redmond Washington US 98052","c":"US","o":"Microsoft"}]); |
"use strict";
/* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain a c... |
/* @flow */
export function resolveScopedSlots(
fns: ScopedSlotsData, // see flow/vnode
res?: Object,
// the following are added in 2.6
hasDynamicKeys?: boolean,
contentHashKey?: number
): { [key: string]: Function, $stable: boolean } {
res = res || { $stable: !hasDynamicKeys }
for (let i = 0; i < fns.le... |
/**
* @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... |
import React from 'react';
import AliceCarousel from 'react-alice-carousel';
import "react-alice-carousel/lib/alice-carousel.css";
class Gallery extends React.Component {
responsive = {
0: { items: 1 },
600: { items: 2 },
1024: { items: 3 },
};
onSlideChange(e) {
console.log('Item`s positio... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectSpread2 = _interopRequireD... |
/**
* @file index.js
* @author sfe-sy(sfe-sy@baidu.com)
*/
import KeepAlive from './keep-alive';
export default {
KeepAlive
}; |
/*
Author: Auro Mota <auro@blueorc.com>
*/
(function() {
'use strict';
app.controller('testCompletedCtrl', testCompletedCtrl);
testCompletedCtrl.$inject = ['$scope', '$stateParams', '$state', 'testService', 'securityService'];
function testCompletedCtrl($scope, $stateParams, $state, testService,... |
const discord = require('discord.js')
const express = require('express')
const bodyParser = require('body-parser')
const webApp = express()
const discordClient = new discord.Client()
const token = process.env.TOKEN
const port = 5000
if (!token) {
console.log('Please set the enviroment variable \'TOKEN\' to your bo... |
const Employee = require("../lib/employee");
describe ("Employee class", () => {
it("should return a new Employee object containing the properties name, id, and email", () => {
const employee = new Employee("Karen", 4, "karen@email.com");
expect(employee.name).toEqual("Karen");
... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["normalcy"] = factory();
else
root["norm... |
const log = console.log;
function getSecond(str) {
const matches = str.match(/[0-9]{1,2}/);
if (!matches) return null;
return { name: str, style: '2-digit' };
}
exports.getSecond = getSecond;
exports.second = function (options, sequence) {
return new Promise(function (resolve, reject) {
let results = optio... |
//De maneira + direta treinando a criação de classe e objetos
function Carro(){}
var carro1 = new Carro(); |
import React, { useState, useEffect } from "react";
import {Modal,ModalHeader, ModalBody,Form,FormFeedback,Row,Alert,Col,Input,FormGroup,Label,Card,CardBody,} from "reactstrap";
import axios from "axios";
import MatButton from "@material-ui/core/Button";
import { makeStyles } from "@material-ui/core/styles";
import Sav... |
let modInfo = {
name: "The Mining Tree",
id: "SwagMoney",
author: "extremewonder1",
pointsName: "Pounds",
discordName: "",
discordLink: "",
changelogLink: "https://github.com/Acamaeda/The-Modding-Tree/blob/master/changelog.md",
initialStartPoints: new Decimal (10), // Used for hard resets and new players
off... |
import SingleChartPage from "../../src/charts/SingleChartPage";
export default SingleChartPage; |
export let userReducer = (state={}, action) => {
switch (action.type){
case 'SAVE_USER':
return action.user;
case 'EDIT_PROFILE':
return {...state, ...action.user};
default :
return state;
}
}; |
exports.formatColorTextOutlinedImpl = require('@material-ui/icons/FormatColorTextOutlined').default; |
module.exports={A:{A:{"1":"A B","2":"J E F G lB"},B:{"1":"C K L D M N O P Q R U V W X Y Z a b c S d e H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 M N O 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 GB HB IB JB eB KB fB LB MB T NB OB PB QB RB SB TB UB VB WB XB YB ZB aB P Q R nB U V W X Y Z a b c S d e H gB","2":"mB dB o... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var DocPage_types_1 = require("../../common/DocPage.types");
exports.DetailsListStatus = {
keyboardAccessibilitySupport: DocPage_types_1.ChecklistStatus.unknown,
markupSupport: DocPage_types_1.ChecklistStatus.unknown,
highContrastS... |
var Convert = function(){
}
Convert.prototype.change_encoding = function(s, enc, to_enc){
var r = s;
try {
var Iconv = require('iconv').Iconv;
var conv = new Iconv(enc, to_enc);
r = conv.convert(s);
} catch(ce) {}
return r;
}
module.exports = new Convert(); |
// Copyright 2012 Google Inc. All rights reserved.
(function() {
var data = {
"resource": {
"version": "1",
"predicates": [{ "function": "_eq", "arg0": ["macro", 0], "arg1": "gtm.js" }, { "function": "_eq", "arg0": ["macro", 1], "arg1": true }, { "function": "_eq", "arg0": ["macro"... |
import {StyleSheet} from 'react-native';
import * as defaultStyle from '../style';
const STYLESHEET_ID = 'stylesheet.calendar.main';
export default function getStyle(theme={}) {
const appStyle = {...defaultStyle, ...theme};
return StyleSheet.create({
container: {
paddingLeft: 5,
paddingRight: 5,
... |
var text__range__cache_8hpp =
[
[ "text_range_cache", "classt4_1_1pdf_1_1text__range__cache.html", "classt4_1_1pdf_1_1text__range__cache" ],
[ "get_text_range_cache", "text__range__cache_8hpp.html#a017904778bc013497eb5c773ea6b2b27", null ],
[ "range_contains_text", "text__range__cache_8hpp.html#a0b37d5c6d8e... |
/**
* @license
* Copyright 2015 Google Inc. 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 requi... |
sap.ui.define(["./SeriesItem", "./library"], function(SeriesItem) {
"use strict";
return SeriesItem.extend("openui5.fc.LineChartItem", {
metadata: {
properties: {
value: "float"
}
},
setValue: function(fValue) {
this.setProperty("value", fValue, true);
},
_getMin: fu... |
angular.module("leaflet-directive", []).directive('leaflet', function ($q, leafletData, leafletMapDefaults, leafletHelpers, leafletEvents) {
var _leafletMap;
return {
restrict: "EA",
replace: true,
scope: {
center : '=',
defaults : '=',
m... |
import buildModuleUrl from "../Core/buildModuleUrl.js";
import Cartesian2 from "../Core/Cartesian2.js";
import Cartesian3 from "../Core/Cartesian3.js";
import Cartographic from "../Core/Cartographic.js";
import Color from "../Core/Color.js";
import createGuid from "../Core/createGuid.js";
import defaultValue from "../C... |
//-----------------------------------------------------------------------------
// ConfigManager
//
// The static class that manages the configuration data.
function ConfigManager() {
throw new Error('This is a static class');
}
ConfigManager.alwaysDash = false;
ConfigManager.commandRemember = false;
Ob... |
// Object.keys
if (!Object.keys) {
Object.keys = function(object) {
var keys = [];
for (var name in object) {
if (Object.prototype.hasOwnProperty.call(object, name)) {
keys.push(name);
}
}
return keys;
};
}
// ChildNode.remove
if(!("remove" in Element.prototype)){
Element.prot... |
function selectEmailServerList() {
$.modal.open("选择邮件服务器", ctx + "service/email/server/selectEmailServer");
}
function selectEmailAccountList() {
$.modal.open("选择邮件账号", ctx + "service/email/account/selectEmailAccount");
} |
// FIXME decide default snapToPixel behaviour
// FIXME add option to apply snapToPixel to all coordinates?
// FIXME can eliminate empty set styles and strokes (when all geoms skipped)
goog.provide('ol.render.canvas.Replay');
goog.provide('ol.render.canvas.ReplayGroup');
goog.require('goog.array');
goog.require('goog.... |
import React, { useState, useParams, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { Link } from 'react-router-dom';
import { Form, Input } from '@rocketseat/unform';
import * as Yup from 'yup';
import api from '~/services/api';
import { registerRequest } from '~/store/modules/students/ac... |
module.exports = {
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/$1",
"^~/(.*)$": "<rootDir>/$1",
"^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
},
moduleFileExtensions: ["js", "json"],
transform: {
"^.+\\.js$": "babel-jest",
},
collectCoverage: true,
co... |
/*global jQuery */
/*!
* FitText.js 1.2
*
* Copyright 2011, Dave Rupert http://daverupert.com
* Released under the WTFPL license
* http://sam.zoy.org/wtfpl/
*
* Date: Thu May 05 14:23:00 2011 -0600
*/
(function ($) {
$.fn.fitText = function (kompressor, options) {
// Setup options
var compressor ... |
'use strict';
// DOMParser text/html MIME type polyfill
// import './vendors/domparser';
import { PUBLIC_NAMESPACE, DEFAULT_OPTIONS } from './config';
import PlayerAction from './player/action';
import VideoPlayer from './player/video-player';
import AudioPlayer from './player/audio-player';
/**
* MPlayer : HTML5 M... |
'use strict'; // indicate that code is executed in strict mode
/////////////////////////////////////////////////////////////////////////
define([ // sqid application wrapper module
// Note: The *.config files wrap up their respective modules
// and do initial setup work, so they are convenient
// 'all components o... |
import { renderComponent } from './diff.js'
const setStateQueue = []
const renderQueue = []
function defer(fn) {
return Promise.resolve().then(fn)
}
export function enqueueSetState(stateChange, component) {
if (setStateQueue.length === 0) {
defer(flush)
}
setStateQueue.push({
stateChange,
compone... |
/**
* 菜单详情对话框
*/
var MenuInfoDlg = {
menuInfoData: {},
ztreeInstance: null,
validateFields: {
name: {
validators: {
notEmpty: {
message: '菜单名称不能为空'
}
}
},
code: {
validators: {
n... |
/**
* Auto-generated action file for "ShipStation Developer Portal" API.
*
* Generated at: 2019-05-07T14:44:03.035Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / shipstation-com-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connect... |
"use strict";
const ChunkStream = require("./chunk-stream");
const pixelBppMap = {
1: {
0: 0,
1: 0,
2: 0,
3: 0xff
},
2: {
0: 0,
1: 0,
2: 0,
3: 1
},
3: {
0: 0,
1: 1,
2: 2,
3: 0xff
},
4: {
0... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.BiPound = function BiPound (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M5.553,19.105l0.764,1.843C7.498,20.555,9.422,20,10,20c0.838,0,1.462,0.208,2.184,0.448C12.959,20.707,... |
#! /usr/bin/env node
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*---------------------------------------------------... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[20],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&":
/*!************************************************************************************... |
(() => {
let game;
window.onload = () => {
game = new NewGame();
};
class NewGame extends Phaser.Game {
constructor () {
super(800, 600, Phaser.AUTO);
this.state.add("PlayGame", PlayGame);
this.state.start("PlayGame");
}
}
class PlayGame extends Phaser.State {
constructo... |
import 'raf/polyfill';
import Enzyme, { shallow, mount, render } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
Enzyme.configure({ adapter: new Adapter() });
global.shallow = shallow;
global.render = render;
global.mount = mount;
console.error = message => {
throw new Error(message);
}; |
/**
* Created by saucxs on 16/4/20.
*/
$(function(){
$("#saveitem").click(function(){
var newData={
id:$("#tid").val(),
permission:$(".permission").val(),
pername:$(".itemname").val(),
tag:$("#tagSelect").val(),
__CSRF__:G_csrf
}
... |
(self.webpackChunkderiv_com = self.webpackChunkderiv_com || []).push([
[678],
{
8994: function (e, t, i) {
"use strict";
i.r(t),
i.d(t, {
default: function () {
return se;
},
});
var a = i(7294),
n = i(5444),
r = i(9),
o =... |
//Required for now
require("../DnsHack");
const mqtt = require("mqtt");
const zlib = require("zlib");
const fs = require("fs");
const path = require("path");
const crc = require("crc");
const Logger = require("../Logger");
const MqttAutoConfManager = require("./MqttAutoConfManager");
const attributes = require("../ent... |
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function pickBy(obj, fn) {
let newObj = {};
for (let i in obj) {
let val = obj[i];
if (fn(obj[i])) {
newObj[i] = o... |
import ScrollSpy from '../../src/scrollspy'
import Manipulator from '../../src/dom/manipulator'
/** Test helpers */
import { getFixture, clearFixture, createEvent, jQueryMock } from '../helpers/fixture'
describe('ScrollSpy', () => {
let fixtureEl
const testElementIsActiveAfterScroll = ({ elementSelector, targetS... |
// @flow
import Filmstrip from '../../../modules/UI/videolayout/Filmstrip';
import VideoLayout from '../../../modules/UI/videolayout/VideoLayout';
import { getNearestReceiverVideoQualityLevel, setMaxReceiverVideoQuality } from '../base/conference';
import { MiddlewareRegistry } from '../base/redux';
import { CLIENT_RE... |
import metadata from '../metadata.min.json'
import { changeInternationalFormatStyle } from './format_'
import _formatNumber from './format'
function formatNumber(...parameters) {
parameters.push(metadata)
return _formatNumber.apply(this, parameters)
}
describe('format', () => {
it('should work with the first argum... |
const btn01 = document.querySelector('#btn01');
// Pasando argumentos sin el evento
// const sayHello = name => console.log(`Hi ${name}`);
// btn01.addEventListener('click', sayHello.bind(null, 'Juan Pa'));
const sayHello = (name, e) => {
console.log(`Hi ${name}`);
console.log(e.target.dataset);
}
btn01.addEventLis... |
module.exports = require('../max'); |
var structarm__gemm_1_1_gemm_implementation_3_01_top_00_01_tret_00_01_nothing_01_4 =
[
[ "do_instantiate", "structarm__gemm_1_1_gemm_implementation_3_01_top_00_01_tret_00_01_nothing_01_4.xhtml#a5a95bc71fa8a96ca2d3f4001369dea53", null ],
[ "do_is_recommended", "structarm__gemm_1_1_gemm_implementation_3_01_top_00... |
import Player from './player.js';
import Map from './map.js';
import { levelData } from './levels.js';
const canvas = document.getElementById("game")
const ctx = canvas.getContext("2d");
ctx.strokeStyle = "red";
ctx.lineWidth = 2;
let map = new Map(levelData);
let player = new Player(map.spawn);
let delta = 0;
let tim... |
import { makeDlightRequest } from '../callCreators'
import { DLIGHT_ADDRESSES } from '../../../../constants/dlightConstants'
// Lists addresses associated with a light daemon wallet
export const getAddresses = (coinId, accountHash, coinProto) => {
return makeDlightRequest(coinId, accountHash, coinProto, 0, DLIGHT_AD... |
/*
* Copyright (C) 2017-2018 Dremio Corporation
*
* 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 l... |
/* eslint-disable */
// TODO: Remove previous line and work through linting issues at next edit
'use strict';
var bitcore = module.exports;
// module information
bitcore.version = 'v' + require('./package.json').version;
bitcore.versionGuard = function (version) {
if (version !== undefined) {
var message =
... |
(function(window){
// Defaults
var SERVER = "ws://bark.phon.ioc.ee:82/dev/duplex-speech-api/ws/speech";
var SERVER_STATUS = "ws://bark.phon.ioc.ee:82/dev/duplex-speech-api/ws/status";
var REFERENCE_HANDLER = "http://bark.phon.ioc.ee:82/dev/duplex-speech-api/dynamic/reference";
var CONTENT_TYPE = "content-type=aud... |
(function ()
{
'use strict';
angular
.module('app.toolbar')
.controller('ToolbarController', ToolbarController);
/** @ngInject */
function ToolbarController($rootScope, $mdSidenav, $translate, $mdToast)
{
var vm = this;
// Data
$rootScope.global = {
... |
import { draftRibbing } from './shared'
export default (part) => {
let { complete, points, measurements, options, macro } = part.shorthand()
if (!options.ribbing) return part
draftRibbing(part, measurements.wrist * (1 + options.cuffEase) * (1 - options.ribbingStretch))
// Complete pattern?
if (complete) {
... |
import moment from 'moment';
angular.module('portainer.app').factory('StateManager', StateManagerFactory);
/* @ngInject */
function StateManagerFactory(
$async,
$q,
SystemService,
InfoHelper,
LocalStorage,
SettingsService,
StatusService,
APPLICATION_CACHE_VALIDITY,
AgentPingService,
$analytics,
... |
module.exports = require('jsonwebtoken'); |
document.write('<a href=\"http://www.gamedev.net/banman/a.aspx?Task=Click&ZoneID=4&CampaignID=291&AdvertiserID=83&BannerID=386&SiteID=1&RandomNumber=1384486870&Keywords=\" target=\"_Blank\"><img src=\"http://www.gamedev.net/banman/ads/MSBonline728x90.jpg\" width=\"728\" height=\"90\" alt=\"\" align=\"Center\" border=\... |
import ukData from './ukData';
const drawUKMap = (data, pieces) => {
// pieces sould be in the form {max: #, label: "", min: # }
const option = {
series_id: 4242979,
backgroundColor: '#c5d6e7',
color: [
'#c23531',
'#2f4554',
'#61a0a8',
'#d48265',
'#749f83',
'#ca8622... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const userSchema = mongoose.Schema({
email: {
type: String,
unique: true,
require: true,
match: [/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/],
},
name: {
type: String,
require: true,
},
role: {
type: String... |
/**
* Interaction for the analytics module
*/
/* global Highcharts */
jsBackend.analytics = {
$chartPieChart: null,
$chartDoubleMetricPerDay: null
}
jsBackend.analytics.charts = {
init: function () {
jsBackend.analytics.$chartPieChart = $('#chartPieChart')
jsBackend.analytics.$chartDoubleMetricPerDay =... |
import nodeResolve from "@rollup/plugin-node-resolve";
import common from "@rollup/plugin-commonjs";
import babel from "@rollup/plugin-babel";
import copy from "rollup-plugin-copy";
export default [
{
input: "examples/ssr/index.js",
output: [
{
dir: "examples/ssr/lib",
format: "cjs"
... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Ricky Reusser
*
* 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,... |
// webpack.config.js
if(process.env.NODE_ENV === 'development'){
var loaders = ['babel']
} else {
var loaders = ['babel']
}
module.exports = {
devtool: 'eval',
entry: './app-client.js',
output: {
path: __dirname + '/public/dist',
filename: 'bundle.js',
publicPath: '/dist/'
},
module: {
loa... |
import appLocaleEnUS from '@shared/locales/en-US'
import appLocaleZhCN from '@shared/locales/zh-CN'
import appLocaleZhTW from '@shared/locales/zh-TW'
import appLocaleTrTR from '@shared/locales/tr'
import appLocaleFrFR from '@shared/locales/fr'
const resources = {
'en-US': {
translation: {
...appLocaleEnUS
... |
import React from 'react';
const Footer = () => {
return (
<footer>
footer
</footer>
)
};
export default Footer |
/**
* unify.theme.dark package
*
*/ |
'use strict';
var _fontFaces = {};
/**
* @param {String} family The CSS font-family value
* @param {String} url The remote URL for the font file
* @param {Object} attributes Font attributes supported: style, weight
* @return {Object}
*/
function FontFace(family, url, attributes) {
var fontFace;
var fontId;
... |
/**
* Copyright (c) 2016 Konstantin Kulinicenko.
* Licensed under the MIT License (MIT), see
* https://github.com/40818419/react-code-input
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { uuidv4 } from './utils';
const BACKSPACE_KEY = ... |
// @flow
import { initializeZipJs } from './Zip.js';
import path from 'path';
export type BlobFileDescriptor = {|
filePath: string,
blob: Blob,
|};
export type TextFileDescriptor = {|
filePath: string,
text: string,
|};
export type UrlFileDescriptor = {|
filePath: string,
url: string,
|};
function each... |
const data = {
name: "en-CC",
likelySubtags: {
en: "en-Latn-US"
},
identity: {
language: "en",
territory: "CC"
},
territory: "CC",
numbers: {
currencies: {
ADP: {
displayName: "Andorran Peseta",
"displayName-count-on... |
{
"name": "react-pwa",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"abab": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/abab/-/abab-1.0.3.tgz",
"integrity": "sha1-uB3l9ydOxOdW15fNg08wNkJyTl0="
},
"abbrev": {... |
var parent = require('../../stable/array/filter');
module.exports = parent; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUnset = exports.expectInDelta = exports.isFloat = exports.isNum = exports.isInt = void 0;
var check_1 = require("chai-asserttype-extra/lib/check");
Object.defineProperty(exports, "isInt", { enumerable: true, get: function () { return... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import ParserJson from './parser-json';
import { extend } from '../../../utils/object';
const parserCreators = {
[ParserJson.FORMAT_NAME]: ParserJson,
};
/**
* Map of engines per format. ie
* { 'application/x-protobuf: protobuf }
*/
const enginesMap = {};
/**
* Map of parsers per format. ie.
* { 'applicatio... |
require('@babel/register')({
presets: [['@babel/preset-env'], ['@babel/preset-react']],
});
require('./lib/ui');
// var blessed = require('blessed')
// , contrib = require('blessed-contrib')
// , screen = blessed.screen({smartCSR: true})
// //grid.set(row, col, rowSpan, colSpan, obj, opts)
// , grid = new co... |
var Helper = require("../Helper.js");
exports.Decoder = function(id) {
this.id = id;
this.parse = function(tokens) {
var gsa;
var i;
if(tokens.length < 17) {
throw new Error('GSA : not enough tokens');
}
// trim whitespace
// some parsers may not wan... |
const urlRegex = /(?:\w+:)?\/\/(\S+)/;
const puppeteer = require("puppeteer-core");
const fetch = require("node-fetch");
exports.run = async (message, args) => {
message.channel.sendTyping();
if (args.length === 0) return `${message.author.mention}, you need to provide a URL to screenshot!`;
const getEndpoint = ... |
/**
* @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 { Version } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
//>>built
define("dojo/_base/declare dojo/_base/array esri/renderers/jsonUtils jimu/dijit/RendererChooser ../BaseEditor ./simpleEditors".split(" "),function(b,c,d,e,f,g){return b([f],{baseClass:"jimu-gp-editor-base jimu-gp-editor-fsre",editorName:"FeatureSetRendererEditor",postCreate:function(){this.inherited(arguments... |
const allowCors = (fn) => async (req, res) => {
res.setHeader("Access-Control-Allow-Credentials", true)
res.setHeader("Access-Control-Allow-Origin", "*")
res.setHeader(
"Access-Control-Allow-Methods",
"GET,OPTIONS,PATCH,DELETE,POST,PUT"
)
res.setHeader(
"Access-Control-Allow-Headers",
"X-CSRF... |
import{_ as t,o,c as n,b as e}from"./app.354cf57d.js";const r={},s=e("div",{class:"custom-container warning"},[e("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linej... |
/*************************************************************************/
/* library_godot_webrtc.js */
/*************************************************************************/
/* This file is part of: */
/* ... |
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import permission from './modules/permission'
Vue.use(Vuex)
const store = new Vuex.Store({
modules: {
app,
settings,
u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.