text stringlengths 2 1.04M |
|---|
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
// COPYRIGHT © 2018 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
import { addons } from "@storybook/addons";
import storyTheme from "./storyTheme";
addons.setConfig({
theme: storyTheme,
}); |
/*
* @author Daisuke Homma
*/
new function() { // block
an.RotateMode = function(ed) {
this.setEditor(ed);
// editor = ed;
this.name = "RotateMode";
this.rect = null; // surrounding rect
}
var self = an.RotateMode;
self.prototype = new an.EditorMode();
/// direction /////////////////////////////////... |
"use strict";
/* eslint-env mocha */
const expect = require("chai").expect;
describe("Roundup Server", function () {
beforeEach(() => {});
it("should be tested", function () {
expect(true).to.equal(true);
});
}); |
'use strict';
const _ = require('lodash');
/** @typedef {import('postcss').Declaration} Declaration */
/**
* @param {Declaration} decl
* @param {string} value
* @returns {Declaration} The declaration that was passed in.
*/
module.exports = function setDeclarationValue(decl, value) {
// Lodash is necessary here ... |
/*
* JSONfn v1.1.0
* (c) 2013 - 2016 Vadim Kiryukhin; vkiryukhin @ gmail.com; http://www.eslinstructor.net/jsonfn/
* License: MIT
*/
(function(a){a.stringify=function(a){return JSON.stringify(a,function(a,b){var d;return b instanceof Function||"function"==typeof b?(d=b.toString(),8>d.length||"function"!==d.substrin... |
import React, { Component } from 'react';
class GoogleMap extends Component {
componentDidMount(){
new google.maps.Map(this.refs.map, {
zoom:12,
center:{
lat: this.props.lat,
lng: this.props.lon
}
});
}
render(){
re... |
import { stopEventPropagation, fireClick } from './handle-dom';
import { setFocusStyle } from './handle-swal-dom';
var handleKeyDown = function (event, params, modal) {
var e = event || window.event;
var keyCode = e.keyCode || e.which;
var $okButton = modal.querySelector('button.confirm');
var $cance... |
import React from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import clsx from 'clsx';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@ma... |
/*!
* Project : simply-countdown
* File : simplyCountdown
* Date : 27/06/2015
* License : MIT
* Version : 1.3.2
* Author : Vincent Loy <vincent.loy1@gmail.com>
* Contributors :
* - Justin Beasley <JustinB@harvest.org>
* - Nathan Smith <NathanS@harvest.org>
*/
/*global window, document*/
(function (exports)... |
const TutorComponent = {
template: `
<md-content>
<md-toolbar class="md-table-toolbar md-default transparent tableToolbar">
<div class="md-toolbar-tools">
<div class="md-title">Find a Tutor</div>
</div>
</md-toolbar>
<md-card class="margin0">
<md-table-contain... |
'use strict';
const microdata = require('./microdata-marker');
const idMarker = require('./id-marker');
const calculateEntityId = function(entityUrlId) {
if (!entityUrlId) {
throw new Error('required_entityUrlId');
}
// URLID type
const entityIdParts = entityUrlId.split('|');
return entityIdParts[1] || ... |
/*
* Copyright 2020 EPAM Systems
*
* 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 ... |
'use strict';
[{
zoneRegex: {
en: /^Alexander - The Cuff Of The Son \(Savage\)$/,
cn: /^亚历山大零式机神城 \(律动之章2\)$/,
},
timelineFile: 'a6s.txt',
triggers: [
{
id: 'A6S Magic Vulnerability Gain',
regex: Regexes.gainsEffect({ effect: 'Magic Vulnerability Up' }),
regexDe: Regexes.gainsEffe... |
// source: google/ads/googleads/v3/errors/media_file_error.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('go... |
const Markup = require('telegraf/markup');
const { Languages, LoadReplies } = require('../../static/replies/repliesLoader');
const Format = require('../../../processing/formatting');
const kbs = require('../../static/replies/keyboards');
const { DataBase, User, Chat } = require('../../../../storage/dataBase/DataBase');... |
"use strict";
let MotorFreqs = require('./MotorFreqs.js');
let LightSensorValues = require('./LightSensorValues.js');
let MusicActionFeedback = require('./MusicActionFeedback.js');
let MusicResult = require('./MusicResult.js');
let MusicAction = require('./MusicAction.js');
let MusicGoal = require('./MusicGoal.js');
l... |
var LocalStrategy = require('passport-local').Strategy;
var User = require('./userSchema');
module.exports = function(passport) {
passport.serializeUser(function (user, done) {
done(null, user.id);
});
passport.deserializeUser(function (id, done) {
User.findById(id, function (err, user) {
done(e... |
$(document).ready(function() {
/* initialize the external events
-----------------------------------------------------------------*/
$('#external-events .fc-event').each(function() {
// store data so the calendar knows to render an event upon drop
$(this).data('event', {
title: $.... |
"use strict";
// ChartJS
if(window.Chart) {
Chart.defaults.global.defaultFontFamily = "'Nunito', 'Segoe UI', 'Arial'";
Chart.defaults.global.defaultFontSize = 12;
Chart.defaults.global.defaultFontStyle = 500;
Chart.defaults.global.defaultFontColor = "#999";
Chart.defaults.global.tooltips.backgroundColor = "#... |
/// <reference types="cypress"/>
/// <reference types="../../support"/>
import faker from "faker";
import { BUTTON_SELECTORS } from "../../elements/shared/button-selectors";
import { SHIPPING_ZONE_DETAILS } from "../../elements/shipping/shipping-zone-details";
import { WAREHOUSES_DETAILS } from "../../elements/wareho... |
/**----------------------------------------------------------------------------+
| Product: ajile [com.iskitz.ajile]
| @version 1.9.9
|+-----------------------------------------------------------------------------+
| @author Michael A. I. Lee [iskitz.com]
|
| Created: Tuesday, November 4, 2003 [2003.11.04]
... |
'use strict';
var Writer = require('../../lib/writer'),
Helper = require('../helper');
var _ = require('lodash');
describe('Writer', function() {
var createModel = Helper.createModelBuilder('test/fixtures/model/');
function createWriter(model, options) {
return new Writer(_.extend({ preamble: false },... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return undefined; };
var argument2 = false;
var argument3 = ";'";
var argument4 = function() {
callbackArguments.push(arguments)
return "x£["; };
var argument5 = function() {
callbackArguments.push(arguments)
return u... |
import createSubscriber from "../../entities/subscriber";
import createFakeSubscriber from "../../../__tests__/fixtures/fakeSubscriber";
import truncate from "../../../__tests__/fixtures/utils/truncate";
import { Subscriber } from "./index";
describe("Subscriber database", () => {
beforeEach(async () => {
await ... |
import React, { Component } from 'react';
import './App.css';
import axios from 'axios';
import Header from './header';
import Content from './content';
import GifDetial from './gifDetail';
import { library } from '@fortawesome/fontawesome-svg-core'
// heart icon solid and regular
import { faHeart as faHeartRegular } f... |
var console = require("console");
var http = require('http');
module.exports.function = function testingType (testingTypeName, $vivContext) {
// Generate the right locale translation
console.log($vivContext);
var language = $vivContext.locale.split('-')[0];
console.log(language);
//integration with e... |
module.exports={A:{A:{"1":"E A B","2":"FB","8":"H","132":"D G"},B:{"1":"C p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y AB YB SB","2":"aB CB"},D:{"1":"0 1 2 3 4 5 6 8 9 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c... |
const path = require('path');
const favicon = require('serve-favicon');
const compress = require('compression');
const cors = require('cors');
const helmet = require('helmet');
const bodyParser = require('body-parser');
const feathers = require('feathers');
const configuration = require('feat... |
import getEntityAdminPage from './getEntityAdminPage'
import getEntityForm from './getEntityForm'
import getEntityList from './getEntityList'
import {
getAddEditCancelButtonSetup,
getErrorProperty,
} from './helperFunctions'
const settings = {
initialState: {
name: '',
},
cleanState: {
name: '',
},... |
const qs = require('querystring')
const jwt = require('jsonwebtoken')
const Helpers = {
generateQueryParams: (params) => {
const filteredObject = {}
for (const key in params) {
if (params[key] !== null) filteredObject[key] = params[key]
}
return qs.stringify(filteredObject)
},
addQueryParam... |
class CustomError extends Error {
constructor(statusCode, message, data = []) {
super();
this.statusCode = statusCode;
this.message = message;
this.data = data;
}
}
module.exports = CustomError; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
// sanity tests to make sure act() works without a mocked scheduler
let React;
let ReactDOM;
let act;
le... |
/*jshint multistr: true */
define([
'tests/options',
'tests/utils',
'chai',
'jquery',
'underscore',
'vellum/itemset',
'text!static/datasources/case-property.xml',
'text!static/datasources/null-hashtags.xml',
'text!static/datasources/unknown-case-property.xml',
], function (
optio... |
//# sourceMappingURL=component---src-templates-blog-template-js-31d7a7a793dad9411b61.js.map |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'undo', 'en-au', {
redo: 'Redo',
undo: 'Undo'
} ); |
var imageDataURI = require('image-data-uri');
var sharp = require('sharp');
var all = require(__dirname + '/resources/contacts.json');
var async = require('asyncawait/async');
var await = require('asyncawait/await');
//console.log(all);
var convert = async(function(all) {
//console.log(all);
all.data.forEach(func... |
import React, { Component } from 'react'
import { FlatList, View, StyleSheet, TouchableOpacity, Appearance } from 'react-native'
import { Icon, Text } from 'native-base'
import { connect } from 'react-redux'
import { withTranslation } from 'react-i18next'
import Sound from 'react-native-sound'
import moment from 'momen... |
mport React, {Component} from "react";
import PropTypes from "prop-types";
class Estado extends Component{
constructor(props){
super(props);
}
render(){
console.log(this.props);
console.log(this.props.recursos);
return(<div>
<div className="nombre">{this.props.recursos.nombre_recurso} </div>
<div ... |
var request = require('request');
var cheerio = require('cheerio');
var async = require('async');
var fs = require('fs');
var iconv = require('iconv-lite');
var models = require("../app/models");
var argv = require("../jobs/helper/arguments");
var google = require('google')
models.sequelize.sync().then(function () {
... |
'use strict';
const postcssLess = require('postcss-less');
const postcssScss = require('postcss-scss');
const { messages, ruleName } = require('..');
testRule({
ruleName,
config: ['0,1,0'],
accept: [
{
code: '.ab {}',
},
{
code: 'span a {}',
},
{
code: ':not(.b) {}',
},
{
code: ':not(.b... |
/**
* Copyright (c) 2006-2017, JGraph Ltd
* Copyright (c) 2006-2017, Gaudenz Alder
*/
GitHubClient = function(editorUi, authName)
{
DrawioClient.call(this, editorUi, authName || 'ghauth');
};
// Extends DrawioClient
mxUtils.extend(GitHubClient, DrawioClient);
/**
* Specifies if thumbnails should be enabled. Defa... |
/*
// MNL.js v0.3.0 (Not finished)
//
// by 杨子涵 <yang.zihan@columbia.edu>
//
// bugs: 1. 不能分辨字符串和函数名
*/
const fs = require("fs");
const { start } = require("repl");
const MNL_PATTERN = /(\([\w\,\s'"`\(\)\.]*?\)\w+)+(\([\w\,\s'"`\(\)\.]*?\))?/gm;
const STOP_WORDS = ["'", '"', "`"];
const STOP_WORDS_SET = new Set(["'", ... |
// This callback function is called when the content script has been
// injected and returned its results
function onPageDetailsReceived(pageDetails) {
// document.getElementById('title').innerHTML = pageDetails.title;
// document.getElementById('url').innerHTML = pageDetails.url;
// document.getElement... |
const express = require("express");
const mongoose = require("mongoose");
mongoose.Promise = Promise;
const ShortUrl = require("./models/ShortUrl");
const app = express();
require("dotenv").config();
mongoose.connection.on("connected", () => {
console.log("Connection Established");
});
mongoose.connection.on("reco... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
function _extends() {
_extends =
Object.assign ||
f... |
macDetailCallback("005049000000/24",[{"d":"2000-09-08","t":"add","a":"486 AMHERST STREET\nNASHUA NH 03063\n\n","c":"UNITED STATES","o":"ELLACOYA NETWORKS, INC."},{"d":"2001-10-24","t":"change","a":"486 AMHERST STREET\nNASHUA NH 03063\n\n","c":"UNITED STATES","o":"ELLACOYA NETWORKS, INC."},{"d":"2008-07-19","t":"chang... |
import babel from 'npmjs.com/babel-core'
import babylonParser from 'npmjs.com/babel-core/node_modules/babylon/lib/parser'
import 'jo/ast/macro'
import fs from 'asyncfs'
// ParseResult is returned from a succeful call to Parse
type ParseResult = {
ast:ASTProgram;
macros:MacroDefs;
diagnostics:Diagnostic[];
};
//... |
/* @exclude */
/*
@license https://github.com/t2ym/thin-hook/blob/master/LICENSE.md
Copyright (c) 2020, Tetsuya Mori <t2y3141592@gmail.com>. All rights reserved.
*/
/* @endexclude */
let hashSalt = '__hashSalt__';
let contexts = {};
hook.contextGenerators.hash = function generateHashContext(astPath) {
const ... |
Ext.define('GeekFlicks.view.Movies', {
extend: 'Ext.grid.Panel',
id: "movies_editor",
alias: 'widget.movieseditor',
store: 'Movies',
initComponent: function () {
//note: store removed
this.columns = [{
header: 'Title',
dataIndex: 'title',
flex: 1
... |
const chai = require('chai')
const { getNotificationForTracking } = require('../../src/utils/commons')
const { expect } = chai
describe('notification module common utility', () => {
it(`should get a list of shorten notification object for tracking when notification contains an array of
notification items.... |
"use strict";
exports.__esModule = true;
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)) { target[key] = source[key]; } } } return target; };
var _react = requi... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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... |
define(["require", "exports"], function (require, exports) {
"use strict";
var TreeNavigator = (function () {
function TreeNavigator(switchCb) {
this.switchCb = switchCb;
this.node = null;
}
TreeNavigator.prototype.clear = function () {
this.node = nul... |
import React from 'react';
import { useQuery } from '@apollo/client';
import { loader } from 'graphql.macro';
import { DataTable } from '../../../components/Table';
import { PublicationsDrawer } from '../../../components/PublicationsDrawer';
import { defaultRowsPerPageOptions, naLabel } from '../../../constants';
impo... |
/*
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( 'newpage', 'ca', {
toolbar: 'Nova pàgina'
} ); |
export const obj = {
set: function(a, d, b) {
var c = b && getStyles(a);
return setPositiveNumber(a, d, b ? augmentWidthOrHeight(a, name, b, jQuery.support.boxSizing && jQuery.css(a, "boxSizing", false, c) === "border-box", c) : 0);
}
}; |
'use strict';
var wrapPromise = require('@braintree/wrap-promise');
var methods = require('../../lib/methods');
var convertMethodsToError = require('../../lib/convert-methods-to-error');
var EventEmitter = require('@braintree/event-emitter');
var FRAMEWORKS = require('./frameworks');
/**
* @deprecated
* @callback T... |
var mysql = require("mysql");
var inquirer = require("inquirer");
var connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: "MyPassword",
database: "employeeDB"
});
connection.connect(err => {
if (err) throw err;
start();
});
function start() {
i... |
/*
HTML5 引入工作线程(webworker)
简单说,就是允许JavaScript创建多个线程,但是子线程
完全受主线程控制,且不得操作DOM,从而可以使用webWorker来处理一些比较耗时的操作
*/
//index.js 中启用worker
let worker = new Worker('js/worker.js');
worker.onmessage = function(event){
console.log(event.data);
}
worker.onerror = function(e){
console.log(e.message);
}
//worker.js 中请求图片... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/ |
import React, { useState, useEffect } from 'react';
import DiagramTable from './DiagramTable';
import { previewStyle } from '../../../../Graph/Styling/GraphStyling';
import Cytoscape from 'cytoscape';
import { useGraphState } from '../../../../Contexts/GraphContext';
import {
listObjects,
uploadObject,
getObject,... |
var classarm__compute_1_1_n_e_depthwise_vector_to_tensor_kernel =
[
[ "NEDepthwiseVectorToTensorKernel", "classarm__compute_1_1_n_e_depthwise_vector_to_tensor_kernel.xhtml#a45211656df43f2757693a69f39c175da", null ],
[ "NEDepthwiseVectorToTensorKernel", "classarm__compute_1_1_n_e_depthwise_vector_to_tensor_kerne... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict';
const Comfoair = require('comfoair');
const events = require('events');
module.exports = function (RED) {
function ComfoairNode(config) {
RED.nodes.createNode(this, config);
this.serialConfig = RED.nodes.getNode(config.datasource);
if (this.serialConfig) {
const ... |
import React from 'react';
class Footer extends React.Component {
render() {
return (
<footer>
<div class="row">
<div class="col-6">
<h4>Join our community </h4>
<a href="">
{' '}
<i class="fab fa-telegram-plane" />{' '}
</a>
<a href="">
{' '}
<i class... |
'use strict';
module.exports = require('./lib/'); |
/**
* @author Charlie
*/
ELF.PresidentUtils = (function() {
'use strict';
function PresidentUtils() {
}
// If you want to run a unit test, pass it in to testFunc. Other wise,
// just leave the parameter alone. Don't pass in null.
PresidentUtils.prototype.loadPresidents = function(fileName,... |
/**
* Copyright 2013 Facebook, 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 law or agreed to ... |
/*
* This is a basic func test for a Common application.
*/
YUI({
useConsoleOutput: true,
useBrowserConsole: true,
logInclude: { TestRunner: true }
}).use('node', 'node-event-simulate', 'test', 'console', function (Y) {
var suite = new Y.Test.Suite("Common: postparamssimple1server");
suite.ad... |
const config = require("../../config.js");
describe('Welcome Tree & Templates', () => {
const testEmail = 'cypress@testing.com'
before(() => {
cy.deleteUser(testEmail).then(() => {
cy.visit(config.TEST_SERVER)
cy.get('#signup-email')
.type(testEmail)
cy.get('#signup-password')
... |
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"treegrid");
var ... |
requirejs(['/static/js/tms.bootstrap.js'], function(tms) {
define("frame/const", {
notifyMatter: [{
value: 'tmplmsg',
title: '模板消息',
url: '/rest/pl/fe/matter'
}, {
value: 'article',
title: '单图文',
url: '/rest/pl/fe/matter'
... |
define([
"firebug/lib/object",
"firebug/lib/trace"
],
function(Obj, FBTrace) {
Firebug.Zipkin = Obj.extend(Firebug.Module, {
initialize: function(owner) {
Firebug.Module.initialize.apply(this, arguments);
// Module initialization (there is one... |
if (process.version.slice(1).split('.')[0] < 12) throw new Error('Node must be v12+ - please upgrade to the latest version of Node!')
const Discord = require('discord.js')
const axios = require('axios')
const gist = require('snekgist')
const exec = require('child_process').exec
const os = require('os')
const moment = ... |
const JSLogger = require('js-logger');
JSLogger.useDefaults();
class Logger {
static trace(arg) { Logger._log(JSLogger.TRACE.name, arg) };
static debug(arg) { Logger._log(JSLogger.DEBUG.name, arg) };
static info(arg) { Logger._log(JSLogger.INFO.name, arg) };
static log(arg) { Logger._log(JSLogger.INFO... |
export const CREATE_HOST_FORM_TEXT = `Specify the host's name, management controller IP address, and credentials to add it to the cluster.`; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetVoiceTemplateCommand = void 0;
const models_1_1 = require("../models/models_1");
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
const smithy_client_1 =... |
//# sourceMappingURL=chunk-1b057a14.d6d28c21.js.map |
$(document).ready(function(){function e(){1==s?(o.removeClass("is-closed"),o.addClass("is-open"),s=!1):(o.removeClass("is-open"),o.addClass("is-closed"),s=!0)}document.getElementById("intro").style.height=window.innerHeight-20+"px",$(".loader-overlay").hide();var n=new WOW({boxClass:"wow",animateClass:"animated",offset... |
/**
* @license TableMagic v0.8.1
* (c) 2011-2014 tweeeety, Ryuichi Murata http://tweeeety.com
* License: MIT
*/
//;(function(global, $) {
var TableMagic = ( function(TableMagic, undefined ) {
// SimpleDomManipulator
var SimpleDomManipulator = function() {
var Constructor = function() {
this.simpleDom ... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// create geolocation Schema
const GeoSchema = new Schema({
type: {
type: String,
default: 'Point'
},
coordinates: {
type: [Number],
index: '2dsphere'
}
});
// create ninja Schema & model
const detail... |
import React, { Component } from 'react';
import CssBaseline from '@material-ui/core/CssBaseline';
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
import {
Switch,
Route
} from "react-router-dom";
import IpfsRouter from 'ipfs-react-router'
import './i18n';
import interestTheme from './... |
function findLangFromDomain() {
var match = window.location.hostname.match("([^\.]+)\.khantribute\.localgrid\.de")
if(match === null) {
return 'sv-SE'; // Default
} else {
var protoLangcode = match[1]; // "de" or "svse"
// we need "sv-SE"
if(protoLangcode.length <= 2) {
... |
import {
baseColor,
whiteColor,
} from '../base';
export default (theme) => ({
root: {
padding:"5vh 5%",
background: baseColor[0],
color: whiteColor,
height: "334px",
textAlign:"center",
[theme.breakpoints.down("sm")]: {
height: "40... |
/* eslint-disable no-param-reassign */
function calcDef(combat) {
if (combat.callback.groupExists) {
return combat.callback.groupDefenseValue;
}
return combat.player.defenseValue;
}
function evalConstitution(combat) {
if (combat.player.constitutionLevel > 0) {
combat.extraNotes += `Constitution Bonus D... |
/**
* @fileoverview WHERE clause as keyRange object.
*/
goog.provide('ydn.db.Where');
goog.require('goog.string');
goog.require('ydn.db.KeyRange');
goog.require('ydn.db.utils');
goog.require('ydn.debug.error.ArgumentException');
/**
* For those browser that not implemented IDBKeyRange.
* @param {string} field ... |
import React from 'react';
import { mount } from 'enzyme';
import TreeItem from '../TreeItem';
import { getKey } from '../../../helpers';
jest.mock('../../../helpers', () => ({
getKey: jest.fn(),
}));
jest.mock('../../../../Icons/ChevronRight', () => () => <div className="ChevronRight" />);
describe('TreeItem', ... |
let {statementConverter} = require('../converters');
statementConverter('begin', {
test: parser => parser.match(/^begin.+?end;/)
}); |
import LetterXx20 from "./LetterXx20.svelte";
export default LetterXx20; |
webpackHotUpdate(0,{
/***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1}!./node_modules/postcss-loader/lib/index.js?{\"ident\":\"postcss\"}!./src/index.css":
/*!***************************************************************************************************************************!*\
!*** ./node_modul... |
$(document).on('click', '.btn-create-update-state', function(event){
event.preventDefault();
let url = $(this).data('url');
console.log(url);
$.ajax({
url: url,
type: 'get',
success: function (response, error){
$("#state-form-container").html(response);
$(... |
const TextBasedChannel = require('./interface/TextBasedChannel');
const Constants = require('../util/Constants');
const Presence = require('./Presence').Presence;
/**
* Represents a user on Discord.
* @implements {TextBasedChannel}
*/
class User {
constructor(client, data) {
/**
* The Client that created... |
import { all, call, put, takeLatest } from 'redux-saga/effects';
import * as requestHelpers from '../helpers/requestHelpers';
import * as types from '../constants/actionTypes';
import * as actions from '../actions/index';
export function* orderApplyDiscountCode(action) {
yield put(actions.applyingCancelDiscount());... |
const mysql = require('mysql');
const inquirer = require('inquirer');
const consoleTable = require('console.table')
const connection = mysql.createConnection({
host: 'localhost',
port: 3307,
user: 'root',
password: 'rootr00t!',
database: 'employee_db'
});
connection.connect(function(err) {
if ... |
import inputWithOptionsDriverFactory from '../InputWithOptions/InputWithOptions.driver';
const autoCompleteDriverFactory = inputWithOptionsDriverFactory;
export default autoCompleteDriverFactory; |
// Copyright 2006-2012 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 lis... |
term_.prefs_.set("background-color", "#323232");
term_.prefs_.set("foreground-color", "#ffffff");
term_.prefs_.set("cursor-color", "rgba(214,214,214, 0.5)"); /* #d6d6d6 */
term_.prefs_.set("color-palette-overrides", ["#323232", "#d25252", "#7fe173", "#ffc66d", "#4099ff", "#f680ff", "#bed6ff", "#eeeeec", "#535353", "#f0... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.