text stringlengths 2 1.04M |
|---|
import { makeStyles } from '@material-ui/core/styles';
export default makeStyles({
media: {
height: 250,
},
border: {
border: 'solid',
},
fullHeightCard: {
height: '100%',
},
card: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center... |
// main index.js
import { NativeModules } from 'react-native';
const { AndroidWakeScreen } = NativeModules;
export default AndroidWakeScreen; |
// Require modules
const parser = require('xml2json');
const fs = require('fs');
// Read the xml file
let xml = fs.readFileSync('./livsmedelsdata.xml', 'utf-8');
// Convert to JSON
let json = parser.toJson(xml);
// Make the JSON more readable
// (with line breaks + indentation)
let data = JSON.parse(json);
json = J... |
exports.DELAY = {
KEY_PRESS: { min: 5, max: 25 },
BTWN_KEY_PRESS: { min: 45, max: 375 },
MOUSE_CLICK: { min: 40, max: 150 },
HUMAN_PAUSE: { min: 300, max: 800 },
START_LOADING_MORE_VIDEOS: 3000,
};
exports.MOUSE_STEPS = 5;
// 'document', 'image', 'xhr', 'script', 'stylesheet', 'font', 'other', 'ma... |
import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_KEY = 'AIzaSyA7h... |
import RotatedLIne from "./incidents/RotatedLine";
import RolingText from "./incidents/RolingText";
import SvgBorder from "./incidents/SvgBorder";
import RotatadLineReveal from "./incidents/RotatadLineReveal";
import SvgDraw from "./incidents/SvgDraw";
import Circle from "./incidents/Circle";
import LogoBox from "./inc... |
(function () {
'use strict';
describe('Users Route Tests', function () {
// Initialize global variables
var $scope,
Authentication;
// We can start by loading the main application module
beforeEach(module(ApplicationConfiguration.applicationModuleName));
// The injector ignores leading... |
'use strict';
//------------------------------// Third Party Resources \\----------------------------\\
const Discord = require('discord.js');
require('dotenv').config();
//--------------------------------// Esoteric Resources \\-------------------------------\\
const activeCourses = ['401-js-d08', '401-js-d09', '401... |
/* global offline_booking_flag */
var base_url = $('#base_url').val();
$(function(){
var month = new Array();
month[0] = "Jan";
month[1] = "Feb";
month[2] = "Mar";
month[3] = "Apr";
month[4] = "May";
month[5] = "Jun";
month[6] = "Jul";
month[7] = "Aug";
month[8] = "Sep";
month[9] = "Oct";
month[10] = "Nov"... |
var group___s_t_m8_a_f___s_t_m8_s_struct_c_a_n__t_8_page_8_p_a_g_e__2_8_f0_r5 =
[
[ "DATA", "group___s_t_m8_a_f___s_t_m8_s.html#ae44f9e348e41cb272efa87387728571b", null ]
]; |
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
plugins: [
[
"import", {libraryName: "ant-design-vue", libraryDirectory: "es", style: true}
]
]
} |
/*
* @Author: Lance Ma
* @Date: 2020-04-03 14:56:14
* @LastEditTime : 2022-02-21 13:53:28
* @LastEditors : Lance Ma
* @Description: 默认配置 文件
* @FilePath : \config\default-config.js
*/
export default {
hostURL: 'https://lan-resume.lancema.com/',
headerToken: '', // 'Access-Token', // 不使用 ''
AppID:... |
../../js/backbone.js |
const list = ["aclive", "act", "addition", "adjustment",
"advertisement", "agreement", "air", "amount", "amusement",
"animal", "answer", "apparatus", "approval", "argument", "art",
"attack", "attempt", "attention", "attraction", "authority",
"back", "balance", "base", "behaviour", "belief", "birth",
"bit", ... |
const Utils = {
// --------------------------------
// Parse a url and break it into resource, id and verb
// --------------------------------
parseRequestURL: () => {
let url = location.hash.slice(1).toLowerCase() || "/";
console.log(url);
let r = url.split("/");
let request = {
resource... |
const {Config} = require('bmoor/src/lib/config.js');
const {Model} = require('./Model.js');
const {Service} = require('./Service.js');
const {hook} = require('./hook.js');
class Nexus {
constructor(){
this.ether = new Config({
models: {},
services: {}
});
}
async setModel(ref, settings){
const path = ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KIP17__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
constant: true,
inputs: [
{
name: "interfaceId",
type: "bytes4",
},
],
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var panelbar_component_1 = require("./panelbar/panelbar.component");
exports.PanelBarComponent = panelbar_component_1.PanelBarComponent;
var panelbar_item_component_1 = require("./panelbar/panelbar-item.component");
exports.PanelBarItemCompone... |
// [START maps_aerial_simple]
function initMap() {
const map = new google.maps.Map(document.getElementById("map"), {
center: { lat: 40.76, lng: -73.983 },
zoom: 15,
mapTypeId: "satellite",
});
map.setTilt(45);
}
// [END maps_aerial_simple] |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
const require_auth = (ComposedComponent) => {
class Authentication extends Component {
static contextTypes = {
router: PropTypes.object,
}
componentWillMount() {
if (!this.props.authenticated) {
... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/* eslint-disable global-require */
// The top-level (... |
import React from 'react';
let idx = 0;
class Step extends React.Component {
componentDidMount() {
let _idx =
this.props.stepIndex === undefined ? idx++ : this.props.stepIndex;
this.props.registerStep &&
this.props.registerStep(
_idx,
this.props.state,
(this.props.onEnter ... |
const PLU = artifacts.require('PLU');
const Controller = artifacts.require('Controller');
const Vault = artifacts.require('Vault');
const StrategySwerveUSD = artifacts.require('StrategySwerveUSD');
const PloutoRewards = artifacts.require('PloutoRewards');
module.exports = async function(deployer, network) {
await de... |
const axios = require("axios");
const fs = require("fs");
const jwt = require("jsonwebtoken");
const qs = require("querystring");
const getExpTimestamp = () => {
return Math.floor(Date.now() / 1000) + 3 * 60;
};
const getJwtToken = (keyFilename, certFilename) => {
const {
HUB_CONSUMER_KEY: iss,
HUB_SFDC_U... |
import { complement } from 'ramda';
import _isNaN from './isNaN.js';
/**
* Checks whether the passed value is complement of `NaN` and its type is not `Number`.
*
* @func isNotNaN
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
* @category Type
* @sig * -> Boolean
* @param {... |
/**
* Copyright 2015 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 ... |
const MAIN = document.getElementById("link-content");
const NAVBAR = document.getElementById("navbar");
const NAVBAR_LINKS = document.querySelectorAll("[data-tab-target]");
const LINK_REFERENCES = document.querySelectorAll("[data-tab-content]");
const OPEN_NAVBAR_BUTTONS = document.querySelectorAll("[class=open-navbar-... |
import * as React from 'react';
import { refType, deepmerge } from '@mui/utils';
import PropTypes from 'prop-types';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import InputBase from '../InputBase';
import styled, { rootShouldForwardProp } from '../styles/styled';
import useThemeProps from '.... |
/* eslint-env mocha */
/* eslint-disable func-names, prefer-arrow-callback */
import sideNav from '../../pageobjects/side-nav.page';
import flexTab from '../../pageobjects/flex-tab.page';
import admin from '../../pageobjects/administration.page';
import mainContent from '../../pageobjects/main-content.page';
import { ... |
var searchData=
[
['deallocate',['deallocate',['../classcookmem_1_1MemContext.html#ae24f4696209fc9b1d205a57c328daa2f',1,'cookmem::MemContext::deallocate()'],['../classcookmem_1_1MemPool.html#a80060bb2acc4cb209b5ed206430c61bd',1,'cookmem::MemPool::deallocate()']]]
]; |
var searchData=
[
['todo_20list_1220',['Todo List',['../todo.html',1,'']]]
]; |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import React, { Fragment } from "react";
import { Link } from "react-router-dom";
import { connect } from 'react-redux';
import PropTypes from 'prop-types'
import { logout } from '../../actions/auth';
const NavBar = ({
auth: {
isAuthenticated,
loading
},
logout
}) => {
const authLinks = (<ul>
<li>
... |
//. settings.js
exports.zerodigit = 2;
exports.enabledeletedb = true;
exports.dbs_folder = '.dbs';
exports.superSecret = 'hashchaindb';
exports.master_url = 'http://localhost:3000/'; |
import React, { useContext } from "react";
import { GlobalContext } from "../GlobalState";
import {
Card,
makeStyles,
CardActionArea,
CardContent,
CardMedia,
Typography,
LinearProgress,
Container,
} from "@material-ui/core";
const useStyles = makeStyles({
card: {
width: 300,
height: 236,
... |
module.exports = function solveSudoku(matrix) {
function isValid(matrix, row, col, k) {
for (let i = 0; i < 9; i++) {
const m = 3 * Math.floor(row / 3) + Math.floor(i / 3);
const n = 3 * Math.floor(col / 3) + i % 3;
if (matrix[row][i] == k || matrix[i][col] == k || ... |
// config used by server side only
const dbHost = process.env.DB_HOST || 'ds117821.mlab.com';
const dbPort = process.env.DB_PORT || 17821;
const dbName = process.env.DB_NAME || 'golden';
const dbUser = process.env.DB_USER || 'shopuser';
const dbPass = process.env.DB_PASS || 'shopuser1';
const dbCred =
dbUser.length > ... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const pg = require('pg')
const oldClient = new pg.Client('postgres://localhost/video-shopper')
oldClient.connect()
oldClient.query('SELECT * FROM ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Swatch = void 0;
var util_1 = require("./util");
var filter = require("lodash/filter");
var Swatch = /** @class */ (function () {
function Swatch(rgb, population) {
this._rgb = rgb;
this._population = population;
... |
#!/usr/bin/env node
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/*eslint no-console: ["error", { allow: ["log"] }] */
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const LUISObjNameEnum = require('./enums/luisobjenum')... |
/*
* 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
* distributed u... |
/* global describe, it, beforeEach */
'use strict';
var ipfilter = require('../index').IpFilter;
var IpDeniedError = require('../index').IpDeniedError;
var assert = require('assert');
describe('enforcing IP address blacklist restrictions', function () {
beforeEach(function () {
this.ipfilter = ipfilter(['127.... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
/*
* Panel with a description of a rule and a list of actions that can be p... |
import Events from 'events'
import ICO from 'icojs'
import mime from 'mime'
import * as sitedata from '../dbs/sitedata'
// constants
// =
const ASSET_PATH_REGEX = /^\/?(favicon|thumb|cover).(jpg|jpeg|png|ico)$/i
const IDEAL_FAVICON_SIZE = 64
// typedefs
// =
/**
* @typedef {import('./daemon').DaemonHyperdrive} Dae... |
/*jshint esversion: 6 */
/**
* A heap is a special kind of tree in which a parent node is ordered only in
* respect to its immediate children. Unlike the binary search tree you may have
* implemented, where the entire tree is ordered, in a heap the only order
* guaranteed is between a node and its parent.
*
* In... |
import axios from 'axios';
import React, {useState, useEffect} from 'react'
import ReactDOM from 'react-dom';
import Pagination from 'react-js-pagination';
import CategoryApi from '../api/NewsApi'
function App({data_id}) {
const [data, setData] = useState([])
const [category, setCategory] = useState([])
c... |
/**
* Copyright © Mnemosyne LLC
*
* This file is licensed under the GPLv2.
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
function TorrentRendererHelper()
{
}
TorrentRendererHelper.getProgressInfo = function(controller, t)
{
var pct, extra,
s = t.getStatus(),
seed_ratio_limit = t.seedRatio... |
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.12 - 2015-03-23
*
*//*! Modernizr (Custom Build) | MIT & BSD */
/*
* Web Experience Toolkit (WET) / Boîte à outils de l"expérience Web (... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ModelFactory$_relati;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { targ... |
import {
getRuleLabel} from '../../src/HierarchicalMapping/utils/getRuleLabel';
import { isClonableRule, isCopiableRule, isObjectMappingRule } from '../../src/HierarchicalMapping/utils/constants';
import { trimValue } from '../../src/HierarchicalMapping/utils/trimValue';
describe('helpers.js', () => {
describe... |
var fs = require('fs'),
path = require('path'),
cnst = require('constants');
var rimraf = require('rimraf'),
osTmpdir = require('os-tmpdir'),
rimrafSync = rimraf.sync;
/* HELPERS */
var RDWR_EXCL = cnst.O_CREAT | cnst.O_TRUNC | cnst.O_RDWR | cnst.O_EXCL;
var generateName = function(rawAffixe... |
import * as React from "react";
function SvgFontSize(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
{...props}
>
<path d="M2 16h12v4h-4v12H6V20H2zm28-8h-7.867v24h-4.266V8H10V4h20z" />
</svg>
);
}
export default... |
import { __read } from "tslib";
/**
* Provides utilities to transform hydrated and persisted data.
*/
var DateUtils = /** @class */ (function () {
function DateUtils() {
}
// -------------------------------------------------------------------------
// Public Static Methods
// ---------------------... |
const meow = require('meow');
const app = require('./index');
const cli = meow(
`
Usage
$ hubble-cli <input> [options]
Options
--outputDir=<dir>, -o The directory where parsed files will be placed after a run. Defaults to current working directory.
--useStyleDictionaryOutput, -s Generate... |
ZeroClipboard.setDefaults({moviePath:'/js/ZeroClipboard.swf'});$(document).ready(function(){if(ZeroClipboard.detectFlashSupport()){createCodeCopyButtons();createCopyButton($('button.copy-button.github'));}
$('.github-actions button').click(function(){$('.github-actions button').removeClass('active');$(this).addClass('a... |
//
// config.js
// ~/users/
//
// created: 05/01/2021
//
// config for users
//
'use strict';
const config = () => {
return {
// id format
userIdPrefix: 'U-',
userIdSuffix: '',
// data info
user_register_data_collection: 'usersRegister',
user... |
var OA_YBHYSQPickupViewControllerBase = PickupViewControllerBase.extend({
construct: function(config) {
if(!config)config={};
if(!config.appctx)config.appctx='';
if(!config.containerid)config.containerid='';
arguments.callee.$.construct.call(this,this.getDefaultCfg(config));
this.regCodeLists(config... |
export default [
{
name: `Tiden`,
markup: `
## Tiden
Build dynamic web applications using streams, nano-frontends, and modern native web technology.
The library will provide tools and tutorials for building progressive web apps (PWA) using native web technology, such as Web Components and ES modules.
... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
const webpack = require('atool-build/lib/webpack')
const path = require('path')
module.exports = function (webpackConfig, env) {
webpackConfig.babel.plugins.push('transform-runtime')
webpackConfig.babel.plugins.push(['import', {
libraryName: 'antd',
style: true
}])
// Support hmr
if (env === 'develo... |
import {StyleSheet} from 'react-native'
import * as colors from '@/assets/colors'
export default StyleSheet.create({
container: {
display: 'flex',
flex: 0
},
textInputContainer: {
paddingHorizontal: 14,
borderWidth: 1,
borderRadius: 4,
borderColor: colors.gray.light,
backgroundColor:... |
Clazz.declarePackage ("J.jvxl.readers");
Clazz.load (["J.jvxl.readers.PolygonFileReader"], "J.jvxl.readers.PmeshReader", ["JU.CU", "$.P3", "$.PT", "J.jvxl.data.JvxlCoder", "JU.Logger"], function () {
c$ = Clazz.decorateAsClass (function () {
this.isBinary = false;
this.nPolygons = 0;
this.pmeshError = null;
this.type =... |
export Accordion from './Accordion';
export Affix from './Affix';
export AffixMixin from './AffixMixin';
export Alert from './Alert';
export Badge from './Badge';
export BootstrapMixin from './BootstrapMixin';
export Button from './Button';
export ButtonGroup from './ButtonGroup';
export ButtonInput from './ButtonInput... |
/*
Animated Matrix
version 0.2.1 alpha
The MIT License (MIT)
(c) 2016 Johannes Loose, johannes@35007.de
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 limi... |
angular
.module('users')
.controller('ForgotPasswordController', ForgotPasswordController);
/* @ngInject */
function ForgotPasswordController($http, $stateParams) {
// ViewModel
const vm = this;
// Exposed to the view
vm.success = null;
vm.error = null;
vm.isLoading = false;
vm.credentials = {
/... |
// @ts-check
/* eslint no-bitwise: ["off"] */
const q = JSON.stringify;
const privateFields = new WeakMap();
export class BufferReader {
/**
* @param {ArrayBuffer} buffer
*/
constructor(buffer) {
const bytes = new Uint8Array(buffer);
const data = new DataView(bytes.buffer);
privateFields.set(th... |
import Icon from '../components/Icon.vue'
Icon.register({"playlist_add":{"width":24,"height":24,"paths":[{"d":"M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"}]}}) |
import './even-fibonacci-numbers/index.test.js';
import './largest-prime-factor/index.test.js';
import './multiples-of-3-and-5/index.test.js'; |
import { createElement } from 'preact';
import ErrorDisplay from './ErrorDisplay';
import Dialog from './Dialog';
/**
* @typedef ErrorDialogProps
* @prop {() => any} [onCancel]
* @prop {string} title
* @prop {import('./ErrorDisplay').ErrorLike} error
* @prop {string} [cancelLabel]
*/
/**
* A dialog that infor... |
/*!
* Copyright 2014, Digital Reasoning
*
* 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... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
/**
* Rainbow admin portal
* # Rainbow administrator portal API guide ## Preamble ### Introduction This guide describes list of API services that are provided by OT Rainbow management portal system. Services are used to manage OT Rainbow system entities ### Protocol REST interface is used for sending/receiving O... |
import React from 'react';
import { Dimensions } from 'react-native';
import DrawerLayout from 'react-native-drawer-layout-polyfill';
import DrawerSidebar from './DrawerSidebar';
import NavigationActions from '../../NavigationActions';
import DrawerActions from '../../routers/DrawerActions';
/**
* Component that ren... |
import "pow";
import "scale";
d3.scale.sqrt = function() {
return d3.scale.pow().exponent(0.5);
}; |
import React, { Component } from 'react';
export default class Default extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-10 mx-auto text-center text-title text-uppercase pt-5">
<h... |
/**
* @imports
*/
import Path from 'path';
import { _merge } from '@webqit/util/obj/index.js';
import { jsonFile, envFile, anyExists } from './index.js';
import { initialGetIndex } from '../cli/Promptx.js';
/**
* @exports
*/
export default class Dotfile {
/**
* The default initializer.
*
* @pa... |
/*
* Copyright (C) 2013 salesforce.com, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
import React, { useState, useEffect } from "react";
import GlobalUserCard from "../GlobalUserCard/GlobalUserCard";
import SearchBar from "../SearchBar/SearchBar";
import { useHttpClient } from "../../../../Shared/hooks/http-hook";
import "./GlobalUsersDiv.css";
import ErrorModal from "../../../../Shared/ErrorModal/Erro... |
smalltalk.addClass("DictionaryTestCase", smalltalk.TestCase, [], 'nil');
smalltalk.DictionaryTestCase.$classVariableNames=("");
smalltalk.bind(smalltalk.DictionaryTestCase, unescape("testAsArray"), "testAsArray", function DictionaryTestCase__testAsArray(){
var td = nil;
var arr = nil;
const self = this; td=smalltalk.Di... |
/**
* ng-vkThread is angular plugin to execute javascript function(s) in a thread.
*
* https://github.com/vkiryukhin/ng-vkthread
* http://www.eslinstructor.net/ng-vkthread/demo/
*
* @version: 2.5.0
* The MIT License (MIT)
*
* @author: Vadim Kiryukhin ( vkiryukhin @ gmail.com )
*
* Copyright (c) 2016 Vadim Kiryukhin
*
*... |
(function(){
$(".command").on('change click', function(){
$command = $(this).attr('command');
call('command', $command, $(this))
});
})();
call = function(class_name , function_name , param)
{
return window[class_name][function_name](param) ;
}
Common = function()
{
this.elementSearch = function(text, element... |
/**
* --------------------------------------------------------------------------
* CoreUI (v2.1.3): rgb-to-hex.js
* Licensed under MIT (https://coreui.io/license)
* --------------------------------------------------------------------------
*/
/* eslint-disable no-magic-numbers */
const rgbToHex = (color) => {
i... |
'use strict'
const { get } = require('lodash')
module.exports = function getKey (opts) {
const { provider, seller, path } = opts
const env = get(process, 'env.NODE_ENV', 'development')
return `${env}:${provider}:${seller}:${path}`
} |
/**
* flowground :- Telekom iPaaS / googleapis-com-abusiveexperiencereport-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the Apache 2.0 License. For details
* see the file LICENSE on the toplevel directory.
*/
const elastici... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'removeformat',
{
requires : [ 'selection' ],
init : function( editor )
{
editor.addCommand( 'removeFormat', CKEDITOR.plugins.removeformat.comman... |
const Interaction = require('../../../../Structures/Interaction');
const { MessageEmbed } = require('discord.js');
const { Colors } = require('../../../../Utils/Constants');
const axios = require('axios');
module.exports = class extends Interaction {
constructor(...args) {
super(...args, {
name: 'interact',
... |
import { floor } from 'dummy/helpers/floor';
import { module, test } from 'qunit';
module('Unit | Helper | floor', function() {
test('it works', function(assert) {
let result = floor([1]);
assert.equal(result, 1);
result = floor([1.01]);
assert.equal(result, 1);
result = floor([1.5]);
asser... |
import centerInView from "utils/center-in-view";
import getDisplayMode from "utils/display-mode";
import getMediaType from "utils/media-type";
import getVisibleMargins from "utils/get-visible-margins";
import inView from "utils/in-view";
import mapSubview from "utils/map-subview";
import routeBounds from "utils/route-b... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
//Provides an abstraction for list bindings
sap.ui.define(['jquery.sap.global', 'sap/ui/model/Context', 'sap/ui/model/ContextBinding'... |
import React, {useState} from "react";
import {Link} from "react-router-dom";
import {Container} from "../styles/ListItem";
import {Select} from "../styles/Select";
import RepoListItem from "../components/RepoListItem";
import Card from "../components/Card";
import List from "../styles/List";
import {merge} from "lodas... |
function detailtindaklanjut(idrekomendasi,st_publish=null)
{
$('#form-detail-tindaklanjut').load(flagsUrl + '/detail-tindaklanjut-junior/'+idrekomendasi, function(){
// var catatan_monev = document.getElementById('catatan_monev');
// var review_spi = document.getElementById('review_spi');
//... |
/**
* Copyright (c) 2017-2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { ColumnHelpers } from '../../../../mol-data/db';
import { decode } from '../../../common/binary-ci... |
module.exports = tokenize
var literals100 = require('./lib/literals')
, operators = require('./lib/operators')
, builtins100 = require('./lib/builtins')
, literals300es = require('./lib/literals-300es')
, builtins300es = require('./lib/builtins-300es')
var NORMAL = 999 // <-- never emitted
, TOKEN ... |
var should = require('should');
var sinon = require('sinon');
var RepubblicaSportMatchCrawler = require('../lib/index.js');
describe('Repubblica Sport Match', function () {
'use strict';
it('returns err when no URL is passed', function (done) {
var crawler = new RepubblicaSportMatchCrawler();
... |
/* WebAppers Progress Bar, version 0.2
* (c) 2007 Ray Cheung
*
* WebAppers Progress Bar is freely distributable under the terms of an Creative Commons license.
* For details, see the WebAppers web site: http://www.webappers.com/progressBar/
*
/*--------------------------------------------------------------------------*... |
var basePackage = require('./');
var mockPackage = require('./mocks/mockPackage');
var Dgeni = require('dgeni');
var path = require('canonical-path');
describe('base package', function() {
function runDgeni(docs) {
var testPackage = new Dgeni.Package('testPackage', [mockPackage()])
.processor('provideTest... |
import firebase from '@firebase/app';
export { default } from '@firebase/app';
import '@firebase/auth';
import '@firebase/database';
import '@firebase/firestore';
import '@firebase/functions';
import '@firebase/messaging';
import '@firebase/storage';
import '@firebase/performance';
import '@firebase/analytics';
import ... |
'use strict';
const assert = require('assert');
const mm = require('mm');
const urllib = require('../../common/urllib');
const config = require('../../config');
describe('test/common/urllib.test.js', () => {
describe('accelerate request', () => {
beforeEach(() => {
mm(config, 'accelerateHostMap', {
... |
let match = require('minimatch');
let evaluate = require('./eval');
module.exports = function(filters, files, data, done) {
if (!filters) {
return done();
}
let filePaths = Object.keys(files);
if (!filePaths.length) {
return done();
}
Object.keys(filters).forEach(function(reg... |
// Global variable EngineCore
// the following syntax enforces there can only be one instance of EngineCore object
"use strict"; // Operate in Strict mode such that variables must be declared before used!
var gEngine = gEngine || { };
// initialize the variable while ensuring it is not redefined
gEngine.Core =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.