text stringlengths 3.07k 16k |
|---|
const { InvalidGrant, InvalidTarget } = require('../../helpers/errors');
const presence = require('../../helpers/validate_presence');
const instance = require('../../helpers/weak_cache');
const checkPKCE = require('../../helpers/pkce');
const revoke = require('../../helpers/revoke');
const filterClaims = require('../..... |
import $ from 'jquery';
import { later, schedule } from '@ember/runloop';
import {
get, set, computed, observer, setProperties
} from '@ember/object';
import { equal, alias } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import Controller from '@ember/controller';
import { on } fr... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import navigator from 'libs/navigation';
import { setFingerprintStatus } from 'shared-modules/actions/settings';
import { toggleModalActivity } from 'shared-modules/acti... |
const BaseToken = artifacts.require('./tokenization/ModularToken.sol');
const BalanceModule = artifacts.require('./tokenization/modules/BalanceModule.sol');
const AllowanceModule = artifacts.require('./tokenization/modules/AllowanceModule.sol');
const RegistryModule = artifacts.require('./tokenization/modules/RegistryM... |
import React from 'react'
import Helmet from 'react-helmet'
import Link from 'gatsby-link'
import styles from '../pages-style/our-style.module.scss'
import phoneIcon from '../pages-images/our-style/phone-icon.svg'
import talentIcon from '../pages-images/our-style/talent-icon.png'
import cultureIcon from '../pages-image... |
import React from 'react';
import { navigate } from 'gatsby';
import Meta from '../../../gatsby-theme-mds/src/components/Meta';
import Homepage from '../../../gatsby-theme-mds/src/templates/Homepage';
import Footer from '../../../gatsby-theme-mds/src/components/Footer/Footer';
import { MediumBlogs, useHomeMenu, MdsChan... |
/* Source Logic */
let selectCategoryBtn = document.querySelectorAll(".select-category-btn");
// Contribution and Resource Box
const resourceBox = document.getElementById("resourceBox");
const contributionGuidline = document.getElementById("contributionGuideline");
// Resource Showcase Section
const beginnerResourceBox... |
/*
Name: RealEstate
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 8.2.0
*/
'use strict';
/*
Header
*/
// Search Properties
var $headerWrapper = $('#headerSearchProperties'),
$window = $(window);
$headerWrapper.on('click', function() {
if ($window.width() > 992) {
$header... |
/*********************************************************************************** *
* MIT License
*
* Copyright (c) 2017 Raphael "rGunti" Guntersweiler
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... |
/**
* --------------------------------------------------------------------------
* Bootstrap (v5.0.0-beta1): tab.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
import {
defineJQueryPlugin,
emulateTra... |
const log = require("./log").sub("storeIdbKeyVal")
// p-pipe 1.2.0 car n'utilise pas de async ni de spread
const pPipe = function (input) {
const args = Array.isArray(input) ? input : arguments
if (args.length === 0) {
return Promise.reject(new Error("Expected at least one argument"))
}
return [].slice.ca... |
const loopback = require('loopback');
const DataSource = loopback.DataSource;
const DataAccessObject = DataSource.DataAccessObject;
// const daoutils = require('loopback-datasource-juggler/lib/utils');
const util = require('oe-cloud/lib/common/util');
var _ = require('lodash');
const log = require('oe-logger')('oe-per... |
const { join, extname, relative, sep } = require('path');
const { Collection } = require('discord.js');
const fs = require('fs-nextra');
const { isClass } = require('../../util/util');
/**
* The common base for all stores
* @see ArgumentStore
* @see CommandStore
* @see EventStore
* @see ExtendableStore
* @see Fi... |
/* eslint-disabled: 1 */
/* eslint no-param-reassign: 0 */
/* eslint class-methods-use-this: 0 */
/* eslint new-parens: 0 */
/* eslint semi: ["error", "always"] */
// import jsPDF from 'jspdf';
// import _isNumber from 'lodash/isNumber';
import _replace from 'lodash/replace';
import _split from 'lodash/split';
functio... |
import React, { Component } from "react"
import { graphql } from "gatsby"
import Helmet from "react-helmet"
import Layout from "../components/layout"
import EvaluationTable from "../components/evaluation-table"
import EvaluationCell from "../components/evaluation-cell"
import FuturaParagraph from "../components/futura... |
const core = require('@actions/core');
const exec = require('@actions/exec');
const os = require('os');
const fs = require('fs');
const yaml = require('js-yaml');
function info(msg) {
core.info(`[tmbuild-action] ${msg}`);
}
exports.info = info;
function debug(msg) {
core.debug(`[tmbuild-action] ${ms... |
// Copyright 2011 the V8 project authors. All rights reserved.
// 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 ... |
// https://github.com/colinmeinke/svg-arc-to-cubic-bezier
//
// Convert an arc to a sequence of cubic bézier curves
//
/* eslint-disable */
const TAU = Math.PI * 2
/* eslint-disable space-infix-ops */
// Calculate an angle between two unit vectors
//
// Since we measure angle between radii of circular arcs,
// we can... |
/***********************************************
APACHE OPEN FOR BUSINESS
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... |
import * as React from "react";
import ReactAutocomplete from "react-autocomplete";
import PropTypes from "prop-types";
import { compose } from "recompose";
import memoize from "memoize-one";
import groupBy from "lodash.groupby";
import xor from "lodash.xor";
import formInput, { formInputProps } from "@crave/farmblocks... |
d3.select('#lightTheme').on('click',function(){
d3.select('body').classed('dark', false);
});
d3.select('#darkTheme').on('click',function(){
d3.select('body').classed('dark', true);
});
$( ".wgt-control" ).resizable({
resize: function( event, ui ) {
var wgtContent = d3.select(this).select('.... |
import Lib from '@/util/walletlib'
import axios from 'axios'
import store from '@/store'
export const getTokenList = ({ commit, state }, payload) => {
axios
.get(process.env[store.state.settings.network].CACHE + 'https://api.coingecko.com/api/v3/coins/list?include_platform=true')
.then(result => {
comm... |
/* eslint-disable no-duplicate-imports */
/* eslint-disable react/prop-types */
/** 后台用户管理中心 实名认证列表 **/
// ==================
// 所需的各种插件
// ==================
import React from 'react';
import P from 'prop-types';
import _ from 'lodash';
import 'braft-editor/dist/index.css';
import BraftEditor from 'bra... |
#!/usr/bin/env node
'use strict';
/* eslint-disable camelcase */
const http = require('https');
const inquirer = require('inquirer');
const simpleGit = require('simple-git')();
/*
posts a request for a circleci workflow
you can alternatively use a curl command like:
curl -u ${CIRCLECI_TOKEN}: -X POST \
--header '... |
/**
* @fileOverview to wrap object leterals with _px2rem()
*/
const escodegen = require('escodegen')
const config = require('../config')
const bindingStyleNamesForPx2Rem = config.get()['bindingStyleNamesForPx2Rem']
const { ast } = require('../util')
const { getCompiler } = require('../components')
const { getTransf... |
/* Visualize a portion of the visualization given by the normalized view box */
function view(SVGelement, normViewbox) {
const idToHtml = {};
const viewbox = [0, 0, 0, 0];
const changes = [];
const processedElements = [];
idToHtml['0'] = SVGelement;
loop(idToHtml, viewbox, changes, processedElements);
... |
/**
This function is extracted from steemit.com source code and does the same tasks with some slight-
* adjustments to meet our needs. Refer to the main one in case of future problems:
* https://raw.githubusercontent.com/steemit/steemit.com/354c08a10cf88e0828a70dbf7ed9082698aea20d/app/utils/SanitizeConfig.js
*
*/
c... |
/*
* Copyright (C) 2019 <NAME>
*
* 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... |
/* NPM packages */
import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import TrackerReact from 'meteor/ultimatejs:tracker-react';
/* Flex grid */
import { Row, Col } from 'react-simple-flex-grid';
import 'react-simple-flex-grid/lib/main.css';
/* Material-UI componenten */
import Button ... |
/**
*
* Copyright (c) 2020 <NAME>
*
* 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... |
import React, { useContext, useEffect } from "react";
import withMainLayout from "../../layout/withMainLayout";
import {
Box,
Container,
InputAdornment,
TextField,
Alert,
Button,
Typography,
} from "@mui/material";
import { BsSearch } from "react-icons/bs";
import { useState } from "react";
import { UserC... |
'use strict';
var fs = require('fs');
var path = require('path');
var mkdirp = require('mkdirp');
var Promise = require('rsvp').Promise;
var Plugin = require('broccoli-plugin');
var helpers = require('broccoli-kitchen-sink-helpers');
var walkSync = require('walk-sync');
var mapSeries = require('promise-map-series');
v... |
// eslint-disable-next-line no-unused-vars
const { accounts, defaultSender } = require('@openzeppelin/test-environment');
const { ether, time, expectEvent, expectRevert } = require('@openzeppelin/test-helpers');
const { default: BigNumber } = require('bignumber.js');
const { assert } = require('chai');
const { contract... |
import { Link } from 'gatsby';
import React from 'react';
import multiUbuntu1 from '../../images/Blog/multiUbuntu1.png';
import multiUbuntu2 from '../../images/Blog/multiUbuntu2.png';
import multiUbuntu3 from '../../images/Blog/multiUbuntu3.jpg';
import multiUbuntu4 from '../../images/Blog/multiUbuntu4.png';
import mu... |
/* eslint-disable func-names, no-underscore-dangle, no-param-reassign, consistent-return */
import $ from 'jquery';
import 'vendor/jquery.scrollTo';
// LineHighlighter
//
// Handles single- and multi-line selection and highlight for blob views.
//
//
// ### Example Markup
//
// <div id="blob-content-holder">
// ... |
const Welcome = () => import('~/pages/welcome').then(m => m.default || m);
const Login = () => import('~/pages/auth/login').then(m => m.default || m);
const Register = () => import('~/pages/auth/register').then(m => m.default || m);
const PasswordEmail = () => import('~/pages/auth/password/email').then(m => m.default ... |
import vertex from './basicVertex';
import { funcRandRange } from '../utils/random';
const fragment = `
precision mediump float;
uniform sampler2D textureMap;
uniform float time;
uniform float delta;
varying vec2 fragTexture;
${funcRandRange}
float sat( float t ) {
return clamp( t, 0.0, 1.0 );
}
vec2 sat( vec2 t ... |
//var for the city that will be write
var city="";
// var for declare, using library with id
var searchCity = $("#search-city");
var searchButton = $("#search-button"); //searchbtn
var clearButton = $("#clear-history"); //clearbtn
var currentCity = $("#current-city");
var currentTemperature = $("#temperature");
var... |
// pages.js
// master array object of scripts specific to each individual page.
// one for each page in the site.
// key = pageID
//
/* jshint sub:true */ // suppress warnings about using [] notation when it can be expressed in dot notation
/* globals SidePanelCollapse, site */ // tell jshint abo... |
// ng-annotate.js
// MIT licensed, see LICENSE file
// Copyright (c) 2013-2015 <NAME> <<EMAIL>>
"use strict";
const t0 = Date.now();
const fs = require("fs");
const fmt = require("simple-fmt");
const tryor = require("tryor");
const ngAnnotate = require("./ng-annotate-main");
const version = require("./pack... |
var data = [];
var currentValue = 100;
var random = d3.random.normal(0, 20.0);
for (var i = 0; i < 100; i++) {
var currentDate = new Date();
currentDate.setDate(currentDate.getDate() + i);
data.push([currentDate, currentValue]);
currentValue = currentValue + random();
}
var drawLineGraph = function(... |
// num_suffix // setLoader // remv_loader // postRequest // throwSweetalert // getKeyByValue // return_element_key_in_array // ajaxRequest // throw_snackbar // append_id // display_img_thumbnail
// let snack_options = {
// message: "Error! Bitcoin Wallet Address already exist.",
// width: ... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(ex... |
import isObjectLike from 'lodash-es/isObjectLike';
import isString from 'lodash-es/isString';
import isUndefined from 'lodash-es/isUndefined';
import zipObject from 'lodash-es/zipObject';
import tippy from 'tippy.js';
import { missingTippy } from './utils/error-messages';
// popperOption modifier, to add shepherd-popp... |
import React, { useEffect, useRef, useState } from 'react';
import cx from 'classnames';
import { Row, Column } from 'gatsby-theme-carbon/src/components/Grid';
import { Loading, Button } from 'carbon-components-react';
import { MediaSwitcher } from './Modules/MediaSwitcher';
import { BasicControls, CustomControls, Adva... |
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useEffect, lazy, Suspense } from 'react';
import { Switch, Route, withRouter, Redirect, useParams } from 'react-router';
import Header from "components/Header";
import BackToTop from 'components/BackToTop';
import ErrorBoundary from "components/ErrorBoun... |
'use strict';
const ethers = require('ethers');
const { gray, yellow, red, cyan } = require('chalk');
const {
getUsers,
constants: { CONFIG_FILENAME, DEPLOYMENT_FILENAME },
} = require('../../..');
const {
ensureNetwork,
getDeploymentPathForNetwork,
ensureDeploymentPath,
loadAndCheckRequiredSources,
loadConne... |
'use strict'
const columnLayout = require('column-layout')
const ansi = require('ansi-escape-sequences')
const os = require('os')
const t = require('typical')
const UsageOptions = require('./usage-options')
const arrayify = require('array-back')
const wrap = require('wordwrapjs')
/**
* @module command-line-usage
*/
... |
/*
Script activates support for Universal Links in the application by setting proper preferences in the xcode project file.
Which is:
- deployment target set to iOS 9.0
- .entitlements file added to project PBXGroup and PBXFileReferences section
- path to .entitlements file added to Code Sign Entitlements preference
*/... |
const glob = require('glob');
const path = require('path');
const fs = require('fs');
const grayMatter = require('gray-matter');
// const remark = require('remark');
// const remarkHtml = require('remark-html');
require('dotenv-safe').config(); // have DEV_TO_API_KEY in process.env
const fetch = require('node-fetch');
... |
import React from "react";
import {
withGoogleMap,
GoogleMap,
withScriptjs,
InfoWindow,
Marker,
} from "react-google-maps";
import Geocode from "react-geocode";
import Autocomplete from "react-google-autocomplete";
import { Descriptions } from "antd";
const REACT_APP_MAPAPI_KEY = process.env.REACT_APP_MAPAPI_... |
"use strict";
/**
* @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
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if... |
#!/usr/bin/env node
var fs = require('fs');
var async = require('async');
var shell = require('shelljs');
var STK = require('./stk-ssc');
var cmd = require('commander');
cmd
.version('0.0.1')
.description('Export part annotations')
.option('--id <id>', 'Model id [default: 101]', STK.util.cmd.parseList, ['101'])... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _utils = require("../utils");
var _tab = _interopRequireDefault(require("../tab"));
var _tabs = _interopRequireDefault(require("../tabs"));
var _icon = _inte... |
/*
Copyright (c) Facebook, Inc. and its affiliates.
*/
import React from "react";
import stateManager from "../StateManager";
import "status-indicator/styles.css";
import Slider from "rc-slider";
import "rc-slider/assets/index.css";
let slider_style = { width: 600, margin: 50 };
const labelStyle = { minWidth: "60px",... |
function _UI() {
var that = this;
this.Login = function(){
LoginDisp.stop = true;
Net.Http.Login(document.getElementById("Login").value,document.getElementById("Pass").value);
}
this.Hidden = function(id){
document.getElementById(id).style.display= "none";
}
this.Show = ... |
import Quill from '../quill';
import clone from 'clone';
import equal from 'deep-equal';
import extend from 'extend';
import keys from '../lib/keys';
import * as platform from '../lib/platform';
let Delta = Quill.require('delta');
class Keyboard {
constructor(quill, options = {}) {
this.quill = quill;
this... |
/**
* DevExtreme (events/core/emitter_registrator.js)
* Version: 16.2.1-16294
* Build date: Thu Oct 20 2016
*
* Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
Class = require("../... |
const $ = require('../../db/mongo');
const MqDisp = require('../disp');
const os = require('os');
const util = require('util');
class Discovery extends MqDisp {
static get Master() { return require('./master'); }
static msecPingAlive = 20000;
static msecPingRetry = 5000;
static msecAliveExpires = 30000;
pr... |
import './_AddEditTopic.scss';
import React, { useState } from 'react';
import { Split, SplitItem } from '@patternfly/react-core/dist/js/layouts/Split/index';
import API from '../../Utilities/Api';
import { BASE_URL } from '../../AppConstants';
import { Button } from '@patternfly/react-core/dist/js/components/Button/... |
/**
* Funções para formulaário cadastro de íten
*/
/**
*
* Funções para gerenciar filtros de listagem de férias
*
*/
jQuery(function($){
$("#st_telefoneresidencial").mask("(99) 9999-9999");
$("#st_telefonecelular").mask("(99) 99999-9999");
$("#st_cep").mask("99999-999");
$("#st_cpf").mask("999... |
'use strict';
import TestHelpers from './helpers';
const ACCOUNT = 'Test Account One';
const PASSWORD = '<PASSWORD>';
describe('Start Exploring', () => {
beforeEach(() => {
jest.setTimeout(150000);
});
it('should show the onboarding screen', async () => {
// Check that we are on the onboarding carousel screen... |
/**
* # 通用校验模块
* 1. 通过定义校验规则用于校验数据合法
* 2. 集成antd-form,校验表单合法
*/
import AsyncValidator from 'async-validator';
import hoistNonReactStatics from 'hoist-non-react-statics';
import Form from 'antd/lib/form';
import message from 'antd/lib/message';
import {Deferred} from '../../core/defer';
/**
* + async-validator@1.6... |
const dirTree = require("directory-tree");
var fs = require('fs');
const { stringify } = require("querystring");
var parseDir = function (path) {
// an npm module that makes a tree out of a dir
var currDir = dirTree(path);
//return currDir
currDir.children.forEach(element => {
openFile(element.path)
});
}... |
import React from 'react';
import PropTypes from 'prop-types';
import { WebView } from 'react-native-webview';
import { connect } from 'react-redux';
import parse from 'url-parse';
import RocketChat from '../lib/rocketchat';
import { isIOS } from '../utils/deviceInfo';
import StatusBar from '../containers/StatusBar';
... |
'use strict';
// APP dependencies
require('dotenv').config();
const express = require('express');
const cors = require('cors');
const superagent = require('superagent');
const pg = require('pg');
// Global vars
const PORT = process.env.PORT || 3009;
// PostgreSQL setup
const client = new pg.Client(process.env.DATABA... |
const rHelpers = require('./renderHelpers');
const forms = require('./forms');
const requests = require('./requests')
const auth = require('./auth')
const nav = document.querySelector('nav');
const heading = document.querySelector('header');
const main = document.querySelector('main');
async function streaksHelper() ... |
var Schema = mongoose.Schema
, ObjectId = mongoose.Schema.Types.ObjectId;
var em = new mongoose.Schema({ title: String, body: String });
em.virtual('works').get(function () {
return 'em virtual works'
});
var schema = new Schema({
test : String,
oids : [ ObjectId ],
numbers : [ Number ],
nested : {... |
import React, { Component, Fragment } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { withFirebase } from '../Firebase';
// import { withAuthorization } from '../Session';
import { AuthUserContext } from '../Session';
import * as ROLES from '../../constants/roles';
import { compose } from ... |
// Select all checkboxes with the name 's_id' using querySelectorAll.
var checkboxes = document.querySelectorAll("input[type=checkbox][name=s_id]");
//capture the id of the selected checkbox
Array.prototype.forEach.call(checkboxes, function(el, i){
el.addEventListener('change', function() {
let s_id = this.... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _assertThisInitialized from "@babel/run... |
import * as dagPB from '@ipld/dag-pb';
import {
Bucket,
createHAMT
} from 'hamt-sharding';
import { DirSharded } from './dir-sharded.js';
import debug from 'debug';
import { UnixFS } from 'ipfs-unixfs';
import last from 'it-last';
import { CID } from 'multiformats/cid';
import {
hamtHashCode,
hamtHashFn,
hamt... |
const Monochrome = require('monochrome-bot');
const { ReactionButtons } = require('erex');
const globals = require('./common/globals.js');
const path = require('path');
const fs = require('fs');
const config = require('./../../config/config.js').bot;
const loadShiritoriForeverChannels = require('./discord/shiritori_for... |
// @link https://en.wikipedia.org/wiki/Euclidean_algorithm#Implementations
const gcd = (a, b) => {
if (b === 0) return a;
return gcd(b, a % b);
};
/**
* Given an x,y point, returns an angle 0-360
* such that the top of the circle is 0, and then
* we rotate clockwise.
*
* So in the below ascii circle, if you sta... |
var count = 0;
var countConnect = 0;
var array = [];
/////////////process group avatar
function setGroupsAvatar(data){
data.forEach((element) => {
var groupName = element.groupName;
var avatar = element.avatar;
console.log(groupName,avatar.slice(0,10));
var place = document.getEleme... |
"use strict";
var myLocalip = "https://floating-savannah-55816.herokuapp.com/";
//var myLocalipAndPort = myLocalip + ":3000"
var myLocalipAndPort = myLocalip
console.log(myLocalipAndPort);
//--------------------------------------------------
var nowText = document.getElementById("now");
var nowTopRow = document.getEle... |
const vec3 = require('../../maths/vec3')
const poly3 = require('../../geometries/poly3')
// create a set of edges from the given polygon, and link the edges as well
const createEdges = (polygon) => {
const points = poly3.toPoints(polygon)
const edges = []
for (let i = 0; i < points.length; i++) {
const j = ... |
import React, {Component} from "react"
import { connect } from "react-redux"
import { translate } from "react-i18next"
import {Container, Row, Col} from "../Grid"
import Start from "./Start"
import Single from "./Single"
import Multiple from "./Multiple"
import TrueFalse from "./TrueFalse"
import Order from "./Order"... |
import React from "react";
import JSZip from "jszip";
import "./App.css";
import * as Utils from "./utils";
const IGNORE_IDS = new Set([
// The maki script shows/hides these depending on which corner you are in
"main2",
"main3",
"main4",
"Title2",
"Title3",
"Title4",
"mask2",
"mask3",
"mask4",
"p... |
#!/usr/bin/env node
//This is a hack for global modules in npm 1.0
require.paths.push('/usr/local/lib/node_modules');
var tests = {};
if ('COMBO' in process.env) {
tests.combo = true;
}
if ('RLS' in process.env) {
tests.rls = true;
}
if ('STAR' in process.env) {
tests.star = true;
}
if ('LOCAL' in proc... |
/**
* Migrates artifacts that have a parameters field, applying the following changes:
* - changes type of each parameter based on mapping, or adds type 'boolean' if no type
* - changes returnType of each parameter use based on mapping
* - adds usedBy prop to parameter storing array of uniqueId of its references
*... |
"use strict";
/*
* Copyright (c) 2014-2021 <NAME>.
* SPDX-License-Identifier: MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
const models = require("../models/index");
const Prometheus = require('prom-client');
const onFinished = require('on-finished');
const orders = require('../data/mongodb'... |
import React from 'react'
import PropTypes from 'prop-types'
import { css } from '@emotion/core'
import { StaticQuery, graphql } from 'gatsby'
import { Grid, Row, Col } from 'react-flexbox-grid'
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'
import 'react-tabs/style/react-tabs.css'
import Layout from '../..... |
'use strict'
import { app, protocol, BrowserWindow, dialog, shell } from 'electron'
import {
createProtocol
} from 'vue-cli-plugin-electron-builder/lib'
import DailyMedia from './lib/DailyMedia'
import { cancelRendering } from '@/lib/VideoRenderer'
import { getMediaTypeFromFile } from '@/lib/MediumRecognizer'
const ... |
const { ethers } = require('hardhat');
const { expect } = require('chai');
describe('[Challenge] Backdoor', function () {
let deployer, users, attacker;
const AMOUNT_TOKENS_DISTRIBUTED = ethers.utils.parseEther('40');
before(async function () {
/** SETUP SCENARIO - NO NEED TO CHANGE ANYTHING HERE... |
/**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const path = require('path');
const stringify = require('json-stringify');
/**
* Webpack Plugins
*/
const CleanWebpackPlugin = require('clean-webpack-plugin');
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin');
co... |
import React from 'react';
import { Switch, MessageStrip } from 'fundamental-react';
import { useTranslation } from 'react-i18next';
import {
TSL_MODES,
TLS_VERSIONS,
validateTLS,
isTLSProtocol,
isHTTPProtocol,
} from './../helpers';
import { ResourceForm } from 'shared/ResourceForm';
import { K8sResourceSele... |
/* eslint-disable no-script-url */
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import {
Card,
Table,
Button,
Divider,
Popconfirm,
Pagination,
Modal,
Switch,
Alert,
} from 'antd';
import classNames from 'classnames';
import PageHeaderWrapper from '@/components/PageHeade... |
"use strict";
const INDENT = 2;
const DEFAULT_TRANSFORM = (data) => JSON.stringify(data, null, INDENT);
/**
* Stats writer module.
*
* Stats can be a string or array (we'll have array due to source maps):
*
* ```js
* "assetsByChunkName": {
* "main": [
* "cd6371d4131fbfbefaa7.bundle.js",
* "../js-ma... |
const assert = require('assert');
const sinon = require('sinon');
const {configuration, config, logger, pairedDeviceContext} = require('../../index');
const timestamp = require('../../lib/utils/timestamp');
const {extend} = configuration;
let cachedConfig;
let log;
describe('logger util', () => {
before(() => {
cac... |
import Player from "./class-player.js";
/**
* Game class.
*/
class Game {
#name = "My Game";
#language = "en-US";
#playerId = 0;
#players = [];
#roundWinners = [];
#roundLosers = [];
#gameWinners = [];
#gameLosers = [];
#state = "paused";
#turn;
#currentTurn = 1;
#maxTurn = 0;
#currentRound... |
import React, { Component, Fragment, useEffect, useState, useRef } from 'react';
import dracula from 'prism-react-renderer/themes/dracula';
import CountUp, { useCountUp } from 'react-countup';
import { description, repository } from 'react-countup/package';
import { RotateCw } from 'react-feather';
import GithubCorner ... |
// Copyright 2012 Google Inc. All Rights Reserved.
/**
* @fileoverview A simple script to automatically track Facebook and Twitter
* buttons using Google Analytics social tracking feature.
*/
/** Google Analytics Social Button Tracking */
/**
* Namespace.
* @type {Object}.
*/
var _ga = _ga || {};
/**
... |
/*!
* braces <https://github.com/jonschlinkert/braces>
*
* Copyright (c) 2014 <NAME>, contributors.
* Licensed under the MIT License
*/
'use strict';
var should = require('should');
var expand = require('./');
describe('braces', function () {
describe('brace expansion', function () {
it('should work with ... |
"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)... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Hero from '../hero';
import Nav from '../nav';
import myData from '../../../config/data.json';
import { Link, withRouter } from 'react-router-dom';
import ScrollToTop from 'react-scroll-up';
import { StickyContainer, Sticky } from 'react... |
import React, { Component } from 'react';
import {
Text, View, Image, StyleSheet,
} from 'react-native';
import PropTypes from 'prop-types';
import { Card } from 'native-base';
import { primary } from '../assets/styles/stylesheet';
import NotGoingButton from './NotGoingButton';
import SECIcon from '../assets/images/s... |
'use strict';
const Command = require("../../structure/Command.js");
const { CanvasRenderService } = require('chartjs-node-canvas'),
Discord = require("discord.js");
const width = 800;
const height = 400;
const chartCallback = (ChartJS) => {
ChartJS.defaults.global.elements.rectangle.borderWidth = ... |
/*!
* CC322X ADC module
*
* Device-specific ADC configuration support
*/
"use strict";
/*global exports, system*/
/* $super is used to call generic module's methods */
let $super;
/* get Common /ti/drivers utility functions */
let Common = system.getScript("/ti/drivers/Common.js");
/*
* ======== devSpecific ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.