text stringlengths 2 1.04M |
|---|
const {gen} = require('testcheck');
/**
* Display attribute generator.
* @example
* const {sampleOne} = require('testcheck');
* const genDisplay = require('./attr-display');
* sampleOne(genDisplay);
* //=> {display: 'block'}
*/
module.exports = gen.object('display', gen.oneOf([
'block',
'left-margin',
'ri... |
import React, {
createContext, useContext, useMemo, useState,
} from 'react'
import computeLayoutConfig from '../utils/computeLayoutConfig'
const DEFAULT_STATE = {
apiData: {},
layout: {
name: 'circle',
avoidOverlap: true,
},
repName: 'moul/depviz-test',
debugInfo: {
fps: 0,
nodes: 0,
... |
//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
'use strict';
return "\n\
float czm_private_shadowVisibility(float visibility, float nDotL, float normalShadingSmooth, float darkness)\n\
{\n\
#ifdef USE_NORMAL_SHADING\n\
#ifdef USE_NORMAL_SHADING_SMOOTH\n\
... |
var chai = require('chai'),
sinon = require('sinon'),
rewire = require('rewire');
require('sinon-as-promised');
var expect = chai.expect;
var assert = chai.assert;
describe("Setup", function() {
var observer,
loggerMock,
sonumiLoggerMock,
clientMock,
subscriptionPromis... |
const jwt = require('jsonwebtoken');
const config = require('../config/config');
const BearerStrategy = require('passport-http-bearer').Strategy;
const User = require('../models/user.js');
const Store = require('../models/store.js');
const common = require('../utils/common.js');
const HttpStatus = require('http-status-... |
let chai = require('chai');
chai.should();
import GraphPattern from '../../src/sparql/graph-pattern';
import Triple from '../../src/sparql/triple';
import Filter from '../../src/sparql/filter';
import Query from '../../src/sparql/query';
describe('GraphPattern', () => {
let triple = new Triple('?x foaf:mbox ?mbox... |
import vue from '@vitejs/plugin-vue'
/**
* https://vitejs.dev/config/
* @type {import('vite').UserConfig}
*/
export default {
plugins: [vue()],
server: {
open: '/index.html'
}
} |
import React, { useMemo } from "react"
import { zones, parties } from "../models/information"
export default function ElectionMapTooltip({ positionId, positions }) {
const memo = useMemo(() => {
const position = positions.find(p => p.id == positionId)
const party = parties.find(p => p.id == position.partyId)
... |
module.exports ={
loader: 'postcss-loader',
options: {
plugins: () => [require('autoprefixer')]
}
} |
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt, {
pattern: 'grunt-*',
config: 'package.json',
scope: 'devDependencies'
});
var banner = '// Last time updated: <%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %>\n\n';
// configure proj... |
/**
* /models/Category.js
*
* @description: Database Models: Category
*
*/
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection.js');
class Category extends Model {}
Category.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey... |
//~ name b573
alert(b573);
//~ component b574.js |
import request from '@/utils/request'
// 获取角色id信息
export function getRoleByrid(rid) {
return request({
url: '/role/' + rid ,
method: 'get',
})
} |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
const { app, BrowserWindow, ipcMain, session } = require('electron')
const path = require('path')
const FB = require('fb')
const ElectronGoogleOAuth2 = require('@getstation/electron-google-oauth2').default;
let mainWindow
let login
function createWindow() {
mainWindow = new BrowserWindow({
webPreferences: {
... |
/**
* @param {number} n
* @return {string[]}
*/
FIZZ = "Fizz", BUZZ = "Buzz", FIZZ_BUZZ = FIZZ + BUZZ;
var fizzBuzz = function(n) {
const results = new Array();
for(let i = 1; i <= n; i++) {
if(isMod(i, 3) && isMod(i, 5)) {
results.push(FIZZ_BUZZ);
} else if(isMod(i, 3)) {
... |
'use strict';
const path = require('path');
module.exports = function (grunt) {
grunt.file.mkdir(path.join(__dirname, 'build'));
grunt.initConfig({
eslint: {
target: ['lib/**/*.js']
},
mochaTest: {
test: {
options: {
report... |
#!/usr/bin/env node
var _ = require('lodash');
module.exports = {
getMap: function(collection, srcKey, valueType) {
var destinationMap = {};
_.forEach(collection, function(item) {
var destValue = item[valueType] || item;
destinationMap[item[srcKey]] = destValue;
});
return destinationMap;
}
}; |
Resources.ApplicationCacheModel=class extends SDK.SDKModel{constructor(target){super(target);target.registerApplicationCacheDispatcher(new Resources.ApplicationCacheDispatcher(this));this._agent=target.applicationCacheAgent();this._agent.enable();const resourceTreeModel=target.model(SDK.ResourceTreeModel);resourceTreeM... |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Layer/Grid.js
*/
/**
* Class: OpenL... |
import React from 'react';
import Sequenza from 'sequenza';
import Visibility from 'visibilityjs';
import pkg from '../package';
import { track } from './utils/behaviour';
import { IS_DEBUG } from './constants';
import { getContentReadingTime } from './content';
const { name } = pkg;
export const Context = React.crea... |
var searchData=
[
['encode_5fbitmap',['encode_bitmap',['../namespace_kt_i.html#a7f708f058a1937cff7e91bf3873a6735',1,'KtI']]]
]; |
/* eslint key-spacing:0 */
export default () => ({
compiler_fail_on_warning : false,
compiler_hash_type : 'chunkhash',
compiler_devtool : null,
compiler_stats : {
chunks : true,
chunkModules : true,
colors : true
},
compiler_public_path: '/'
}) |
// All code points in the Cham block as per Unicode v6.0.0:
[
0xAA00,
0xAA01,
0xAA02,
0xAA03,
0xAA04,
0xAA05,
0xAA06,
0xAA07,
0xAA08,
0xAA09,
0xAA0A,
0xAA0B,
0xAA0C,
0xAA0D,
0xAA0E,
0xAA0F,
0xAA10,
0xAA11,
0xAA12,
0xAA13,
0xAA14,
0xAA15,
0xAA16,
0xAA17,
0xAA18,
0xAA19,
0xAA1A,
0xAA1B,
0xAA1... |
import MainThread from '../src/MainThread';
import TaskQueue from '../src/TaskQueue';
import Promise from '../src/vendor/Promise';
import WorkerUtils from '../src/utils/worker';
import GeneralUtils from '../src/utils/generalUtils';
import RegisterWorker from '../src/RegisterWorker';
import TaskStatusEnum from '../src/... |
/**
* Selling Partner API for FBA Inventory
* The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.c... |
/**
* 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 oncall+recoil
* @flow strict-local
* @format
*/
'use strict';
const {getRecoilTestFn} = require('../../testing/Recoi... |
/**
* This overlay allows the user to choose whether
* to sort by name or FIFO id
*/
Ext.define("Screener.view.Sort", {
requires: ['Ext.field.Text', 'Ext.field.Number'],
extend: 'Ext.Panel',
xtype: 'sortPanel',
config: {
centered: true,
//grey everything else out when open, otherwise ... |
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}
module.exports = _interopRequireDefault; |
var searchData=
[
['headers',['headers',['../classboost_1_1numeric_1_1ublas_1_1data__frame.html#aff5e603e988e7b710a3df6104d706c12',1,'boost::numeric::ublas::data_frame']]],
['holes',['holes',['../structholes.html',1,'']]]
]; |
import { createStore, compose } from 'redux';
import { persistState } from 'redux-devtools';
import rootReducer from '../reducers';
import DevTools from '../containers/DevTools';
const enhancer = compose(
DevTools.instrument(),
persistState(window.location.href.match(/[?&]debug_session=([^&#]+)\b/))
);
export def... |
var NAVTREEINDEX1 =
{
"class_sys.html#ad4909440764d423d4a879df28a12cc79":[3,0,19,0],
"class_sys.html#ae1e329ac08d989c19d2d1a4d077335c4":[3,0,19,9],
"class_sys.html#aea50a1992f6d4593803acd4714e7e6d5":[3,0,19,2],
"class_sys.html#af82d2e5471b8fc10b1e42cc3dd18aad2":[3,0,19,5],
"class_sys.html#afdb265ef31807f6f60e74ca8cc3c3... |
// Given an array of numbers, return the sum of the maximum subarray where each element is not adjacent in the original array.
// Runtime: O(n). Memory: O(1).
const maxNonAdjacentSubsetSum = (arr) => {
if (arr.length === 0) {
return null;
}
let previousMax = arr[0];
let currentMax = Math.max(pr... |
/*global define*/
define([
'../Core/Cartesian3',
'../Core/defaultValue',
'../Core/defined',
'../Core/LinearSpline',
'../Core/Matrix4',
'../Core/Quaternion',
'../Core/QuaternionSpline',
'./getModelAccessor'
], function(
Cartesian3,
defau... |
/**
* JS used for UI of WPMUDEV plugins.
*/
/*
* Initialize the Dashboard once the page is fully loaded.
*/
jQuery(function() {
// Small layout fix (changes the global background color).
jQuery("html").addClass("wpmud-html");
// Add event handlers to show overlay dialogs.
jQuery(".wpmud").on("click", "a[rel=d... |
import {
VIDEO_CLEAR,
VIDEO_DELETE_RECEIVE,
VIDEO_DELETE_REQUEST,
VIDEO_GET_LIST_RECEIVE,
VIDEO_GET_LIST_REQUEST,
VIDEO_GET_SINGLE_RECEIVE,
VIDEO_GET_SINGLE_REQUEST,
VIDEO_UPDATE_RECEIVE,
VIDEO_UPDATE_REQUEST,
VIDEO_UPLOAD_RECEIVE,
VIDEO_UPLOAD_REQUEST,
} from '../../../constants/actionTypes';
imp... |
$('.init-text-diff').on('extension::text-diff::init', function(event) {
element = $(event.currentTarget);
options = {
originalContent: element.find('.pretty-text-original').html(),
changedContent: element.find('.pretty-text-changed').html(),
diffContainer: element.find('.pretty-text-co... |
import { ProtectedRoute } from '../../src/containers/protectedRoute';
import { DoctorList } from '../../src/containers/doctorList';
/* eslint-disable react/jsx-props-no-spreading */
/* eslint-disable react/react-in-jsx-scope */
/* eslint-disable no-undef */
function setup() {
const props = {
render: jest.fn(),
... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
global.undefined = mod.exports;
}
})(this, function... |
//# sourceMappingURL=app.7984858e7e4ad6fbad20.js.map |
var common = require('../casper_lib/common.js');
common.start_and_log_in();
common.manage_organization();
function submit_notifications_stream_settings() {
casper.then(function () {
casper.waitUntilVisible('#org-submit-notifications[data-status="unsaved"]', function () {
casper.test.assertSel... |
(function(d){d['zh']=Object.assign(d['zh']||{},{a:"無法上傳檔案:",b:"塊引用",c:"選取標題",d:"標題",e:"斜體",f:"粗體",g:"圖片小工具",h:"有編號的清單",i:"項目符號清單",j:"輸入圖片說明",k:"連結",l:"完整大小圖片",m:"側邊圖片",n:"Left aligned image",o:"Centered image",p:"Right aligned image",q:"插入圖片",r:"上傳失敗",s:"Upload in progress",t:"段落",u:"標題 1",v:"標題 2",w:"標題 3",x:"變更圖片的文字替... |
import utils from '../utils'
describe('Launch', function () {
beforeEach(utils.beforeEach)
afterEach(utils.afterEach)
it('shows the proper application title', function () {
return this.app.client.getTitle()
.then(title => {
expect(title).to.equal('my-project1')
})
})
}) |
/**
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/ssr-apis/
*/
const React = require('react')
exports.onRenderBody = ({ pathname, setHeadComponents }) => {
const fontScript = (
<link
key={pathname}
rel="stylesheet"
href="https://... |
module.exports = {
variants: [
{
id: 'default',
scenarios: [
{
label: 'Default',
context: {
url: '#',
text: 'Example Link'
}
}
]
}
]
}; |
function ajaxConfirmSave()
{
if(confirm( 'คุณต้องการบันทึก การแก้ไข&&ข้อเสนอแนะ ของความเสี่ยงนี้.' ))
{
//var id=$('#myForm input[name="js_id"]').val();
//$('#myForm input[name="_method"]').val('PATCH');
//$('#myForm').attr("action", '../../headrmreview/'+id);
//alert('WWW');
$('#myForm').subm... |
'use strict';
const DialogflowApp = require('actions-on-google').DialogflowApp; // Google Assistant helper library
const http = require('http');
const host = 'http://search';
const port = 80;
http.createServer(function (request, res) {
const { headers, method, url } = request;
console.log(`${method}: ${url}`);
... |
var router = require('express').Router({mergeParams : true})
router.get("/",(req,res)=>{
return res.render("contact-us");
});
module.exports = router; |
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import * as React from 'react';
import classNames from 'classnames';
var Group = function Group(props) {
var _classNames;
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === undefined ? 'ant-input-group' : _props$p... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _lodash = require("lodash");
var _lodash2 = _interopRequireDefault(_lodash);
var _color = require("color");
var _color2 = _interopRequireDefault(_color);
var _leaflet = require("leaflet");
var _leaflet2 = _interopRequireDefault(_l... |
(function () {
angular.module('app')
.factory('BooksResource', ['$resource', BooksResource]);
function BooksResource($resource) {
return $resource('/api/books/:book_id', {book_id: '@book_id'},
{
'update': {method: 'PUT'}
}
);
}
}()); |
import React from 'react';
import './bootstrap.min.css';
class EmotionTable extends React.Component {
render() {
//Returns the emotions as an HTML table
return (
<div>
<table className="table table-bordered">
<tbody>
{
/*Write code to use the .m... |
module.exports = {
name : 'setan',
description : '',
execute(message, args){
const {Client, MessageAttachment} = require('discord.js');
let attachment = new MessageAttachment
('./db/IMG_20200623_195512.jpg');
message.channel.send(attachment)
}
} |
goog.provide('ol.test.color');
goog.require('ol.color');
describe('ol.color', function() {
describe('ol.color.asArray()', function() {
it('returns the same for an array', function() {
var color = [1, 2, 3, 0.4];
var got = ol.color.asArray(color);
expect(got).to.be(color);
});
it('r... |
const UNITS_CONVERTERS = {
miles : 'mi',
yards : 'yd',
kilometers: 'km',
meters : 'km'
}
const RADIUS_CONVERTERS = {
meters: value => value / 1000
}
const SQL = {
and: (...tokens) => {
const result = tokens.reduce((memo, token) => {
if (token) {
memo = memo ? `${memo} AND (${t... |
import { parseNumber } from '../../helpers/index.js';
function parse(trailValue) {
return parseNumber(trailValue, 'Trail value must be a non-zero number.', {
allowZero: false,
});
}
const TRAIL_VALUE = {
FLAGS: '--trail-value <value>',
DESCRIPTION:
'Distance the price must change direction and move in... |
function extraRequestHandler(){
$('#miniRequester').click(function(){
$('#extraForm').slideToggle("slow");
$('#requestForm').slideToggle("slow");
});
// if they click out, get rid of it:
$('#container').click(function(){
$('#extraForm').slideUp("slow");
$('#requestForm')... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '@styled-icons/styled-icon';
export var UserNinja = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createEl... |
import http from 'http';
import connect from 'connect';
import findPort from 'find-port';
import enableDestroy from 'server-destroy';
import url from 'url';
import path from 'path';
import fs from 'fs-plus';
import send from 'send';
import mime from 'mime';
const oneYearInSeconds = 60 * 60 * 24 * 365;
// This is a st... |
(this["webpackJsonpproject3-app"]=this["webpackJsonpproject3-app"]||[]).push([[173],{264:function(t,a){!function(t){t.languages.http={"request-line":{pattern:/^(?:POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\s(?:https?:\/\/|\/)\S+\sHTTP\/[0-9.]+/m,inside:{property:/^(?:POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNEC... |
var lists = function () {
var table_id = "#dataTable";
var ajax_source = "/cabang/master-cabang/list-all-data";
var columns = [
{"data": "kode_cabang" },
{"data": "nama_cabang" },
{"data": "alamat" ,"sortable": false},
{"data": "kode_area" },
{"data": "kelas" },
... |
$(function() {
$('#combo1_edit').change(function() {
$('#combo2').empty();
$('#div_combo2_edit').hide();
$.ajax({
type: "POST",
url: appName + "/index/locations-combos-two",
data: {combo1: $(this).val(), office: 6},
dataType: 'ht... |
import axios from "axios";
export default axios.create({
baseURL:
process.env.NODE_ENV === "development" ? "" : "http://localhost:4000",
}); |
const { trap, trapSlow } = require('./trappingRain');
test('get water area, solution 1', () => {
expect(trapSlow([4, 2, 0, 3, 2, 5])).toEqual(9);
expect(trapSlow([0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1])).toEqual(6);
});
test('get water area, solution 2', () => {
expect(trap([4, 2, 0, 3, 2, 5])).toEqual(9);
expec... |
/**
* The default configuation for the ParticleField component
*
* Any option passed in via props will overwrite the default config
*/
export default {
showCube: true,
dimension: '3D',
velocity: 2,
lines: {
colorMode: 'rainbow',
color: '#351CCB',
transparency: 0.9,
limitConnections: true,
... |
/* eslint-disable no-console, camelcase */
const serveStatic = require('serve-static');
const pkg = require('../package.json');
/* allow static files to be served, note karma will takeover the /test directory */
const StaticMiddlewareFactory = function(config) {
console.log(`**** static file server started for ${con... |
//---------------------------------------------------------------------------------------------------------------
// IMPORT REQUIRED PARENT CLASS INFORMATION
//---------------------------------------------------------------------------------------------------------------
// Import Parent Class
const Employee =... |
import React, { Component } from 'react';
import styled, { css, keyframes } from 'styled-components';
import { black, blueGrayMixin, outlineGray, white } from 'style/constants';
const Container = styled.div.attrs({
className: 'type-indicator',
})`
display: flex;
flex-direction: row;
align-self: flex-start;
b... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'showblocks', 'ar', {
toolbar: 'مخطط تفصيلي'
} ); |
#!/usr/bin/env node
'use strict';
const NodeWrapper = require('logtown/wrappers/node');
const logtown = require('logtown');
logtown.addWrapper(new NodeWrapper());
const watch = require('glob-watcher');
const path = require('path');
const fs = require('fs');
const notifier = require('node-notifier');
const chalk = re... |
var dt;
var id;
var profileNameMapper = {};
var names = [];
$(document).ready(function () {
// set cache to false
$.ajaxSetup({cache: false, async: false});
id = $.urlParam('id');
// get name and pic
$.getJSON('/api/fb_pages', function (data) {
$.each(data.data, function (i, v) {
... |
"!="
//# sourceMappingURL=app-b484b851e1cd6d141f01.js.map |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import { get } from 'lodash';
import { Link } from '../routes';
import List from '../components/List';
const ocWebsiteUrl = process.env.WEBSITE_URL || 'https://opencollective.com';
export default cla... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
var _ = require('lodash');
var ranks = {
'J': 11,
'Q': 12,
'K': 13,
'A': 14
};
var vanya = function(cards) {
if (!cards ) {
return 8;
}
// Положительный.
// Карманные пары
if (cards[0].rank == cards[1].rank) {
return 8;
}
// if (checkFlash(cards)) {
// ... |
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you 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 agre... |
class Scene extends Phaser.Scene{
constructor(){
super({ key: "Scene" });
this.player=null;
this.platforms=null;
this.heart=null;
this.lose=null;
this.enemy=null;
this.coins=null;
}
preload(){
this.load.audio('lose', 'music/lose.mp3');
... |
import angular from 'angular';
import '@uirouter/angularjs';
import 'oclazyload';
const moduleName = 'ovhManagerPciTrainingRegistriesLazyLoading';
angular.module(moduleName, ['ui.router', 'oc.lazyLoad']).config(
/* @ngInject */ ($stateProvider) => {
$stateProvider.state('pci.projects.project.training.registries... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
'use strict';
const mongoose = require('mongoose');
module.exports = [
{
id: mongoose.Types.ObjectId("5f76018c9b16e99aaaaa0001"),
title: "Presentation",
first_text: "This project is a website for ZipWorld. It's a internationnal company specialist of low cost flight around the world. They wanted a website dynam... |
'use strict';
var MailParser = require('mailparser').MailParser;
module.exports = function parser() {
return function(mail, smtp, next) {
var mailParser = new MailParser();
mailParser.on('end', function(mailObject) {
mail.json = mailObject;
if (mail.json.attachments) {
mail.json.attachmen... |
const baseConfig = require('../.eslintrc.js')
module.exports = {
...baseConfig,
globals: {
web3: true
}
} |
/* The MIT License (MIT)
*
* Copyright (c) 2015 Oliver Bachmann, Karlsruhe, Germany
*
* 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 t... |
'use strict';
module.exports = {
EventAPI: require('./EventAPI')
}; |
//checks for positive whole numbers
export function hasOnlyDigits(value) {
return /^\d+$/.test(value)
}
//console.log(isNumeric('123')); // true
//console.log(isNumeric('-23')); // false
export function roundThis(value) {
value = value * 100
let roundedValue = Math.round(value)
roundedValue ... |
// app/facebookcast/insight/insight.service.js
'use strict';
const utils = require('../../utils');
const constants = require('../../constants');
const fbRequest = require('../fbapi');
const Project = require('../project/project.model');
const Insight = require('./insight.model');
const AdSet = require('../adset/adset... |
// based on rc-tree 1.14.10
'use strict';
module.exports = require('./src/'); |
(function () {
supportWebSocket = 'WebSocket' in window;
if (!supportWebSocket) {
console.log("WebSocket is not supported.");
setTimeout("location.reload()", 1500);
return;
}
window.onload = function connect() {
var wsProtocol = window.location.protocol == 'https:' ? 'wss' : 'ws';
var ws = ... |
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage, FormattedNumber } from 'react-intl';
import USDDisplay from '../Utils/USDDisplay';
import RawSlider from './RawSlider';
import './Slider.less';
@injectIntl
export default class Slider extends React.Component {
stati... |
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
entry: './js/main.js',
output: {
path: path.resolve(__dirname, 'dist'),
... |
import { shallowMount } from '@vue/test-utils';
import { BCarousel } from 'bootstrap-vue';
import Carousel from './carousel.vue';
describe('Carousel component', () => {
const collapseId = 'collapse-id';
let wrapper;
const createWrapper = propsData => {
wrapper = shallowMount(Carousel, { propsData });
};
... |
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Partner Development
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that... |
export * from "./Chat"; |
/**
* Last updated: 2020/09/13
* Source: https://github.com/PrismJS/prism-themes/blob/master/themes/prism-duotone-earth.css
*
* Name: Duotone Earth
* Author: Simurai, adapted from DuoTone themes for Atom (http://simurai.com/projects/2016/01/01/duotone-themes)
*
* Conversion: Bram de Haan (http://atelierbram.... |
(() => {
'use strict';
// item class
const defaultOpts = {
description : '', // item description rendered in modal when inspected
handler : null, // callback function or wiki code
displayName : '', // display name replaces id
consumable: true, // can be used, and is consumed... |
/*本地存储*/
function setStore(n, v) {
window.localStorage.setItem(n, v);
}
function getStore(n) {
return window.localStorage.getItem(n);
}
function hsetStore(n, v) {
window.sessionStorage.setItem(n, v);
}
function hgetStore(n) {
return window.sessionStorage.getItem(n);
}
Array.prototype.g... |
const domain = require('../src/libs/domain');
describe('domain', () => {
describe('Whois Availability', () => {
describe('unknown domain', () => {
it('returns false for unavailable domain names', () => {
const { isAvailablWhoIsCheck } = domain;
const response ... |
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var lazysprite = require('./index.js');
var mocha = require('gulp-mocha');
var sourcemaps = require('gulp-sourcemaps');
var files = ['index.js'];
var watchFiles = ['index.js', 'gulpfile.js', 'examples/src/**/**', 'test/src/**/**'];
gulp.task('lint', f... |
import { Fragment } from "react";
import ReactDOM from "react-dom";
import classes from "./Modal.module.css";
const Backdrop = (props) => {
return <div className={classes.backdrop} onClick={props.onClose} />;
};
const ModalOverlay = (props) => {
return (
<div className={classes.modal}>
<div className={... |
import Ember from 'ember';
import isNumber from 'ghost-admin/utils/isNumber';
import boundOneWay from 'ghost-admin/utils/bound-one-way';
import { invoke } from 'ember-invoke-action';
const {
Controller,
RSVP,
computed,
inject: {service},
String: {htmlSafe},
run,
isArray
} = Ember;
const {al... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.