text stringlengths 2 1.04M |
|---|
(function(e){const l=e["kn"]=e["kn"]||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"",Aquamarine:"",Black:"","Block quote":"ಗುರುತಿಸಲಾದ ಉಲ್ಲೇಖ",Blue:"",Bold:"ದಪ್ಪ","Bulleted List":"ಬುಲೆಟ್ ಪಟ್ಟಿ","Bulleted list styles toolbar":"",Cancel:"ರದ್ದುಮಾಡು","Choose heading":"ಶೀರ್ಷಿಕೆ ಆಯ್ಕೆಮಾಡು",Circle:"",D... |
const { MessageEmbed } = require('discord.js');
const Command = require('../../classes/Command');
module.exports = new Command(({ client, interaction, guildSettings, args, emojis }) => {
const { member } = interaction;
const { permissionLevel, permissionName } = member.perms;
interaction.reply({
embeds: [
... |
'use strict';
const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
const setupPodConfig = blueprintHelpers.setupPodConfig;
co... |
export const dynamicValidator = (value, validationObj) => {
//required validation
if ( !value && validationObj.required === true ) {
return validationObj.msg.required;
}
//numeric validation
if ( value && validationObj.numeric === true && /[^0-9 .,]/i.test(value) ) {
return vali... |
/*
* Copyright (C) 2015 con terra GmbH (info@conterra.de)
*
* 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 b... |
/**
* Helper functions
*/
'use strict';
var chalk = require('chalk');
var pathIsAbsolute = require('./path-is-absolute.js');
var helper = {};
/**
* Show error.
*
* @param msg
* @param ending
*/
helper.showError = function (msg, ending) {
var output = chalk.red(msg);
console.log(output);
if (endi... |
'use strict';
var express = require('express');
var path = require('path');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var app = express();
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug');
app.use(bodyParser.json());
app.use(b... |
'use strict';
const {
Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
class Guild extends Model {
/**
* Helper method for defining associations.
* This method is not a part of Sequelize lifecycle.
* The `models/index` file will call this method automatically.
*/
... |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ui.router',
'myApp.viewer',
'myApp.view2',
'myApp.version',
'kafkaSocket',
'ngMaterial',
'ngAnimate'
]).
config(function($locationProvider, $stateProvider, $urlRouterProvider, $mdThemingProvider) {... |
import clientConfig from '../../client-config';
import imageUrlBuilder from '@sanity/image-url';
const builder = imageUrlBuilder(clientConfig.sanity);
export function imageUrlFor(source) {
return builder.image(source);
} |
import Models from 'MODELS_PATH/entity';
import Form from 'MODELS_PATH/form';
import mongoose from 'mongoose';
mongoose.Promise = global.Promise;
import cuid from 'cuid';
import Chance from 'chance';
let chance = new Chance();
import callApi from 'CLIENT_UTIL/apiCaller';
var Researcher = Models['researchers'];
... |
define({"topics" : [{"title":"Storing Custom Libraries for RPM and Tarball","href":"datacollector\/UserGuide\/Configuration\/CustomStageLibraries.html#task_hyk_sk1_1x","attributes": {"data-id":"task_hyk_sk1_1x",},"menu": {"hasChildren":false,},"tocID":"task_hyk_sk1_1x-d46e13457","topics":[]},{"title":"Storing Custom Li... |
'use strict';
/**
* Config for the router
*/
angular.module('app')
.config(
['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$stateProvider
//产品管理
.state('app.product', {
url: '/product',
... |
import React from 'react';
import styled from '@emotion/styled';
import BackgroundImage from 'gatsby-background-image';
import { Link, graphql, useStaticQuery } from 'gatsby';
const ImageBackground = styled(BackgroundImage)`
background-position: top 70% center;
background-size: cover;
height: 30vh;
/* overrid... |
(function() {
/**
* @license
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
define(['exports', 'ojs/ojcore', 'knockout', 'ojs/ojmodel'], function (exports, oj, ko, Model)... |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Toolbar, {
ToolbarItem,
ToolbarTitle,
ToolbarOption,
ToolbarDivider,
} from '../Toolbar';
import Ov... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
var c = arguments.length,
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.model.odata.ODataMetadata
sap.ui.define(['jquery.sap.global', 'sap/ui/base/EventProvider', 'sap... |
// npm install prompt-sync
const prompt = require('prompt-sync')();
const name = prompt('what is your name? ');
console.log(`hello ${name}\n`); |
// Array of available Licenses
const availableLicenses = [
{
license: 'mit',
badge: "https://img.shields.io/badge/License-MIT-yellow.svg",
link: "https://opensource.org/licenses/MIT",
short: `**MIT License**\nCopyright © <YEAR> <NAME>`
},
{
license: 'apache-2.0',
badge: "https://img.s... |
var chai = require('chai');
var assert = chai.assert;
var expect = chai.expect;
var chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
const Claim = require('../../src/domain/claim');
const ClaimRepository = require('../../src/repository/claim_repository');
const PersistenceError = re... |
const express = require('express');
const mongoose = require('mongoose');
const cookieSession = require('cookie-session');
const passport = require('passport');
const bodyParser = require('body-parser');
const keys = require('./config/keys');
require('./models/User');
require('./models/Blog');
require('./services/pass... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenericiOSJobSchema = void 0;
const joi_1 = __importDefault(require("@hapi/joi"));
const constan... |
import React, {Component} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {ChatScreen} from './screens/chat';
import {InfoScreen} from './screens/info';
import {SplashScreen} from './screens/splash';
const Stack = createSt... |
(function () {
"use strict";
/**
* 권한관리 - root
* @name sy.Atrt.controller : sy.AtrtMngCtrl
*/
angular.module("sy.Atrt.controller")
.controller("sy.AtrtMngCtrl", ["$scope", "$q", "$timeout", "sy.AtrtSvc", "resData", "$interval", "Page", "UtilSvc",
function ($scope, $q, $ti... |
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
export {
SuperMap,
DataFormat,
ServerTy... |
/* <![CDATA[ */
(function($){
"use strict";
var ut_word_rotator = function() {
var ut_rotator_words = [
'<span><img src="./static/img... |
import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample'
const StepContentExamples = () => (
<ExampleSection ... |
// "use strict";
import observer from "@cocreate/observer";
import "./style.css";
const coCreateResize = {
selector: '', //'.resize',
resizers: [],
resizeWidgets: [],
init: function(handleObj) {
for (var handleKey in handleObj)
if (handleObj.hasOwnProperty(handleKey) && handleKey ... |
import Additional from './additional'
import Components from './components'
import Meta from './meta'
import Style from './style'
import Vuetify from './vuetify'
export default {
Additional,
Components,
Meta,
Style,
Vuetify
} |
class PostsController {
constructor (Post) {
this.Post = Post
}
async findAll (req, res) {
try {
const posts = await this.Post.find({})
res.send(posts)
} catch (error) {
res.status(400).send(error.message)
}
}
async getById (req, res) {
const { params: { id } } = req
... |
import JGC from './justgoodcookies';
import { showBanner } from "./banner";
/*
* Check the expiration date of the cookie
*/
export function checkCookieExpiration(val){
let checkPreference = getCookie('JgcPreferences');
let cookieDuration = JGC.cookieTimeout * 24 * 60 * 60 * 1000;
let saveObj = {}
let date = n... |
'use strict'
const DrinkSchemaModel = require('../collection/schema.mongoose')
const updateFav=()=>{
const url=`https://www.thecocktaildb.com/api/json/v1/1/filter.php?a=Non_Alcoholic/update`
let {strDrink,strDrinkThumb,idDrink}=req.body;
DrinkSchemaModel.updateOne({idDrink:idDrink},{$set: strDrink,strD... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2013 Ran Mizrahi <ranm@codeoasis.com>
*
* 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 ... |
(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["ReactAce"] = factory();
else
root["Reac... |
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, {
mode: 'production',
devtool: '#source-map',
}); |
import {StyleSheet} from 'react-native';
import theme from '../../../../config/theme';
const styles = StyleSheet.create({
image: {
width: 200,
height: 200,
marginBottom: 12,
},
back: {
width: '100%',
marginTop: 12,
},
label: {
color: theme.colors.secondary,
width: '100%',
},
... |
import * as _ from "lodash";
function getDisplayName(tableOrColumn, langTag, fallbackLangTags) {
const displayNames = tableOrColumn.displayName;
const displayName = displayNames[langTag];
if (!_.isNil(displayName)) {
return displayName;
}
const fallbackLangTag = _.find(fallbackLangTags, langTag => !_.i... |
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
*/
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The director... |
import curry2 from "./curry2.js";
import insertL from "../Lazy/insertL.js";
import takeAll from "./takeAll.js";
export default curry2(function insert(index, item, iter) {
return takeAll(insertL(index, item, iter));
}); |
var $ = require("../core/renderer"),
domAdapter = require("../core/dom_adapter"),
windowUtils = require("../core/utils/window"),
window = windowUtils.getWindow(),
Deferred = require("../core/utils/deferred").Deferred,
errors = require("./widget/ui.errors"),
domUtils = require("../core/utils/dom"... |
const Request = Jymfony.Component.HttpFoundation.Request;
const Session = Jymfony.Component.HttpFoundation.Session.Session;
const MockArraySessionStorage = Jymfony.Component.HttpFoundation.Session.Storage.MockArraySessionStorage;
const ArgumentResolver = Jymfony.Component.HttpServer.Controller.ArgumentResolver;
const A... |
import React from 'react';
import {view as Header} from '../../../components/header/';
import {view as ArticleList} from '../../../components/articleList/';
import {view as Footer} from '../../../components/footer/';
import {classifies} from '../../../data/';
import toPc from '../../../utilities/toPc';
toPc();
class ... |
'use strict';
var _ = require('lodash');
var async = require('async');
const CWC = require('crypto-wallet-core');
var chai = require('chai');
var sinon = require('sinon');
var should = chai.should();
var log = require('npmlog');
log.debug = log.verbose;
var { WalletService } = require('../../ts_build/lib/server');
v... |
//>>built
define(
"dojox/editor/plugins/nls/ru/CollapsibleToolbar", //begin v1.x content
({
"collapse": "Свернуть панель редактирования",
"expand": "Развернуть панель редактирования"
})
//end v1.x content
); |
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.data = [
{
"OrderID":10248,
"CustomerID":"VINET",
"OrderDate":"1996-07-04T00:00:00.000Z",
"ShippedDate":"1996-... |
'use babel';
import Ticker from '../lib/ticker';
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
// or `fdescribe`). Remove the `f` to unfocus the block.
describe('Ticker', () => {
let workspaceElement... |
describe('when an image resolves to 404', function() {
require('./fixtures/bootstrap.js');
beforeEach(h.clean);
afterEach(h.clean);
var fakeSrc = '../b.gif?'+(+new Date());
var standardSrc = '/IDONOTEXISTSLOL.gif?'+(+new Date());
var lazyFunc = 'customCallback';
var calls = 0;
var test;
window[lazyF... |
/*
AngularJS v1.6.0-rc.1
(c) 2010-2016 Google, Inc. http://angularjs.org
License: MIT
*/
(function(A){'use strict';function K(a,b){b=b||Error;return function(){var d=arguments[0],c;c="["+(a?a+":":"")+d+"] http://errors.angularjs.org/1.6.0-rc.1/"+(a?a+"/":"")+d;for(d=1;d<arguments.length;d++){c=c+(1==d?"?":"&")+"p"+(... |
// @flow
import {jitsiLocalStorage} from '@jitsi/js-utils';
import _ from 'lodash';
import React, {Component, Fragment} from 'react';
import {I18nextProvider} from 'react-i18next';
import {Provider} from 'react-redux';
import {compose, createStore} from 'redux';
import Thunk from 'redux-thunk';
import {i18next} from ... |
/**
* EasyUI for jQuery 1.5.4.4
*
* Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$("<span class=\"switc... |
import React from 'react';
import { configure, addDecorator,addParameters } from '@storybook/react';
import { withA11y } from '@storybook/addon-a11y';
import { withKnobs } from '@storybook/addon-knobs';
import { createGlobalStyle } from 'styled-components';
import { ThemeProvider } from '../src';
import theme from './t... |
'use strict';
const binVersionCheck = require('bin-version-check');
const message = require('../message');
exports.OLDEST_NPM_VERSION = '3.3.0';
exports.description = 'npm version';
const errors = {
oldNpmVersion() {
return message.get('npm-version', {
isWin: process.platform === 'win32'
});
}
};
ex... |
document.addEventListener("DOMContentLoaded", (event) => {
function monitor(manager) {
if (((manager.level * 100) < 10) && manager.charging == false) alert('Plug your charger, your battery is running out!');
let level = (manager.level + '').split('.')[1] == undefined ? 100 : (manager.level + '').split('.')[1]... |
/* eslint-disable no-unused-vars, no-var */
var config = {
// Connection
//
hosts: {
// XMPP domain.
domain: 'meetdev1.calidig.com',
// When using authentication, domain for guest users.
// anonymousdomain: 'guest.example.com',
// Domain for authenticated users. D... |
var expect = require('chai').expect
var MockBrowser = require('mock-browser').mocks.MockBrowser
var mock = new MockBrowser()
document = mock.getDocument()
var nocache = require('../index')
/* Definitions for JS Standard */
/* global describe, it */
describe('superagent-no-cache', _suiteMain)
/* Suites */
functio... |
const path = require('path');
const fs = require('fs');
const config = require('./config');
const isInstalled = require('./isInstalled');
const appDir = config.appDir;
const manifest = require(path.join(appDir, 'package.json'));
if (!isInstalled.forAndroid()) {
// Android register common project
// TODO: it would... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.Artplayer = factory());
}(this, (function () { 'use strict';
function _classCallCheck(instanc... |
/**
* Kendo UI v2017.1.118 (http://www.telerik.com/kendo-ui)
* Copyright 2017 Telerik AD. All rights reserved. ... |
function is_kingkr_obj() {
var type = sdk_judge();
if (type.ios == true) {
if (typeof window.webkit == 'undefined' || typeof window.webkit.messageHandlers.local_kingkr_obj == 'undefined') {
return false
} else {
return true
}
}else{
if (typeof local_k... |
var structdpif__sflow__port =
[
[ "dsi", "structdpif__sflow__port.html#af73b6dd1d8b1a56aa045870a3457faee", null ],
[ "hmap_node", "structdpif__sflow__port.html#af1f6914ffda58cf46ab6bdeab7f091dd", null ],
[ "odp_port", "structdpif__sflow__port.html#a4ee3566eb2a16b5fcdc969eea5d505dd", null ],
[ "ofport", ... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[264],{"2b5f":function(n,e,t){"use strict";t.r(e),e["default"]='<template>\n <div style="max-width: 800px; width: 100%;">\n <q-toolbar>\n <q-btn stretch flat label="Prev" @click="calendarPrev" />\n <q-separator vertical />\n <q-btn stretch fla... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
!function(o){"use strict";o.fn.fitVids=function(t){var e,i,d={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(e=document.head||document.getElementsByTagName("head")[0],(i=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100... |
/* global $:true */
+function($) {
"use strict";
$(document).on("click",".side_ctrl a", function (e) {
if($('.carside').width() <= 0){
$('.carside').animate({width: '230px'}, 150);
$('.carsideshadow').fadeIn(200);
}
});
$(document).on("click",".carsideshadow", function (e) {
if($('.carsi... |
/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!********************************************************!*\
!*** ./resources/js/pages/dashboard-analytics.init.js ***!
\********************************************************/
/*
Template Name: Velzon - Admin & Dashboard Template
Author: Theme... |
function Scaler() {
this.shots = [];
}
module.exports = Scaler;
// --- External API ---
Scaler.prototype.setShots = function (shots) {
this.shots = shots;
return this;
};
Scaler.prototype.getScale = function () {
// to be overloaded
}; |
const test = require("ava");
const TemplatePassthrough = require("../src/TemplatePassthrough");
const getTemplatePassthrough = (path, outputDir, inputDir) => {
if (typeof path === "object") {
return new TemplatePassthrough(path, outputDir, inputDir);
}
return new TemplatePassthrough(
{ inputPath: path, o... |
export default {
wideColumn: {
xs: { span: 22, offset: 1 },
sm: { span: 22, offset: 1 },
md: { span: 20, offset: 2 },
lg: { span: 18, offset: 3 },
xl: { span: 14, offset: 5 }
},
thinColumn: {
xs: { span: 22, offset: 1 },
sm: { span: 20, offset: 2 },
md: { span: 14, offset: 5 },
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ScrollView } from 'react-native';
import { resultsSelector } from 'selectors';
import { List, Title } from 'components/tools';
import { NAVIGATION_STYLES } from 'constants/UIStyles';
import { ... |
const { assert } = require('chai');
const { CLIEngine } = require('eslint');
const config = require('../');
describe('config', function() {
it('has parserOptions property that is an object', function() {
assert.isObject(config.parserOptions);
assert.isNotNull(config.parserOptions);
});
it('has env pro... |
import { constants } from './constants';
import uuid from 'uuid';
// Expenses
export const addExpense = ({
title = '',
notes = '',
amount = 0,
createdAt = 0
}) => ({
type: constants.ADD_EXPENSE,
expense: {
id: uuid.v4(),
title,
notes,
amount,
createdAt:... |
{
"locale": "fr",
"modality": "speech",
"domain": "mathspeak",
"rules": [
[
"Rule",
"collapsed",
"default",
"[n] . (engine:modality=summary,grammar:collapsed)",
"self::*[@alternative]",
"not(contains(@grammar, \"collapsed\"))"
],
[
"SpecializedRule",
"... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_definePr... |
var Ioex__DatabaseIO_8h =
[
[ "DatabaseIO", "classIoex_1_1DatabaseIO.html", "classIoex_1_1DatabaseIO" ],
[ "EntityIdSet", "Ioex__DatabaseIO_8h.html#a3b04d836f84e74a9c3988d2ef19200bd", null ],
[ "ValueContainer", "Ioex__DatabaseIO_8h.html#a41973672c7fde7f20ea305f0a2517f46", null ],
[ "VariableNameMap", "... |
!function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)}(function(a){"use strict";a.runMode=function(b,c,d,e){var f=a.getMode(a.defaults,c),g=/MSIE \d/.test(navigator.userAgent),h=g&&(null==d... |
define(['exports'], (function (exports) { 'use strict';
var p = 42;
exports.p = p;
Object.defineProperty(exports, '__esModule', { value: true });
})); |
/*!
* @overview Ember - JavaScript Application Framework
* @copyright Copyright 2011-2015 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://ra... |
angular.module('emission.splash.pushnotify', ['emission.plugin.logger',
'emission.services',
'emission.splash.startprefs'])
.factory('PushNotify', function($window, $state, $rootScope, $ionicPlatform,
$ionicPopup, Logger, Co... |
/*jshint globalstrict:false, strict:false, maxlen: 500 */
/*global AQL_EXPLAIN, AQL_EXECUTE */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for index usage
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Cologne, Germany
///
/// Licensed ... |
import test from 'tape';
import { geojsonToArcGIS } from '../src/index.js';
test('should exist', function (t) {
t.plan(1);
t.ok(geojsonToArcGIS);
});
test('should convert a GeoJSON Point to an ArcGIS Point', function (t) {
t.plan(1);
const input = {
'type': 'Point',
'coordinates': [-58.7109375, 47.46... |
;(async () => {
require('babel-register')
const serverTestUtils = require('./test/server-test-utils')
await serverTestUtils.initDb()
await serverTestUtils.insertTestUser()
require('./src')
})() |
import { $$removeElements, childNodes, firstChild } from '../runtime/base';
import { $watch, $$compareArray, isArray } from '../runtime/cd';
export function $$eachBlock($parentCD, label, onlyChild, fn, getKey, itemTemplate, bind) {
let $cd = $parentCD.new();
let mapping = new Map();
let lastNode;
let ... |
(function () {
'use strict';
angular.module('abioka')
.directive('menu', menu);
function menu() {
var directive = {
restrict: 'E',
templateUrl: '/app/shared/menu/menu.html',
replace: true
};
return directive;
}
})(); |
import { createContext, useEffect, useState } from "react";
import socketIOClient from "socket.io-client";
export const socketContext = createContext({ Listen: (event, callback) => {} });
export function SocketProvider({ children }) {
const [socket, setSocket] = useState(null);
const [schedule, setSchedule] = use... |
/*!
* OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define([
"sap/ui/test/_OpaLogger",
"sap/ui/test/_ParameterValidator",
"sap/ui/test/autowaiter/_autoWaiter",
"sap/ui/test/_LogCollector",
"sap/ui/thirdparty/... |
/*! jQuery UI - v1.12.1 - 2016-09-15
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed */
!function(a){"function"==typeof define&&define.amd?define(["../widgets/datepicker"],a):a(jQuery.datepicker)}(function(a){return a.regional.id={closeText:"Tutup",prevText:"<mundur",nextText:... |
$(window).load(function(){
waterfall('list','goods_box');
});
function waterfall(parent,clsName){
var $parent = $('#'+parent);//父元素
var $boxs = $parent.find('.'+clsName);//所有box元素
var iPinW = $boxs.eq( 0 ).width()+5;// 一个块框box的宽
var cols = Math.floor( 1110 / iPinW );//列数
$parent.width(iPinW * co... |
const superagent = require("superagent");
async function fetchPublicCountyData(state_short, county_fips) {
return superagent
.get(`/AllData/${state_short}/${county_fips}.json`)
.then(res => {
return res.body;
});
}
async function fetchPublicCountyDataNew(county_fips) {
return superagent
/... |
import { createElement } from 'lwc';
import rd2EditPaymentInformationModal from 'c/rd2EditPaymentInformationModal';
import { registerSa11yMatcher } from '@sa11y/jest';
import { updateRecord } from 'lightning/uiRecordApi';
import { getPicklistValues } from 'lightning/uiObjectInfoApi';
import handleUpdatePaymentCommitme... |
//syntactic sugar for error handling
// async helps asynchronus code use async/await
async function editFormHandler(event) {
event.preventDefault();
//grabbing data from form for deleting
const name = document.querySelector('input[name="post-name"]').value.trim();
//getting post id from URL string
... |
Spider.defineWidget('Spider.Core.Forms.Form', {
clear: function(){
$Form.clearForm(this.el);
}
});
$Form = {
clearForm: function(form){
$(':input', form).each(function() {
var type = this.type;
var tag = this.tagName.toLowerCase(); // normalize case
if ... |
'use strict';
describe('myApp.contacts module', function() {
beforeEach(module('myApp.view1'));
describe('contacts controller', function(){
it('should ....', inject(function($controller) {
//spec body
var view1Ctrl = $controller('View1Ctrl');
expect(view1Ctrl).toBeDefined();
}));
})... |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.7.2
build: 3.7.2
*/
YUI.add("datatype-number-format",function(e,t){var n=e.Lang;e.mix(e.namespace("Number"),{format:function(e,t){if(n.isNumber(e)){t=t||{};var r=e<0,i=e+""... |
import React from "react"
import { Link, graphql } from "gatsby"
import Layout from "../components/partials/Layout"
import Seo from "../components/Seo"
class NotFoundPage extends React.Component {
render() {
const { data } = this.props
const siteTitle = data.site.siteMetadata.title
return (
<Layo... |
/**
* 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.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
const dontenv = require("dotenv").config();
const axios = require("axios");
const helpers = require('./helpers')
const [, , ...args] = process.argv;
function getTimeWeather(input) {
if (!input[0]) {
console.log("kindly provide location(s), Usage => npm start LOCATIONS(seperated by commas(,), not spaces)");
} ... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.BiMessageError = function BiMessageError (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20,2H4C2.897,2,2,2.897,2,4v12c0,1.103,0.897,2,2,2h3v3.767L13.277,18H20c1.103,0,2-0.89... |
/**
* Class Events
* @type {Event}
*/
module.exports = class Event {
constructor(client, name, options = {}) {
this.client = client;
this.name = name;
this.type = options.once ? 'once' : 'on';
this.emitter = (typeof options.emitter === 'string' ? this.client[options.emitter] : options.emitter) || this.clien... |
jQuery(document).ready(function () {
$('input:checkbox').change(function(){
var tot=0;
$('input:checkbox:checked').each(function(){
tot+=parseInt($(this).val());
});
$('#catalogue_days').val(tot)
});
showcatalogueList();
catalogueStats();
/*
|-----... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.