text stringlengths 2 1.05M |
|---|
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Props';
const CLASS_ROOT = ... |
import React from 'react';
import { Modal } from './Modal';
import { makeStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/core/TableCo... |
function WPATH(s) {
var index = s.lastIndexOf("/");
var path = -1 === index ? "modalWindow/" + s : s.substring(0, index) + "/modalWindow/" + s.substring(index + 1);
return path;
}
module.exports = [ {
isApi: true,
priority: 1000.0015,
key: "Button",
style: {
backgroundRepeat: false,... |
'use strict';
const Service = require('egg').Service;
const arrayToTree = require('array-to-tree');
const toc = require('markdown-toc');
const marked = require('marked');
const constant = require('../constant');
class AdminService extends Service {
async users({ limit, page, name, email, status, sort_type }) {
... |
import _isNil from 'lodash/isNil';
import BaseModel from '../../base/BaseModel';
import FixCollection from '../Fix/FixCollection';
import WaypointModel from '../../aircraft/FlightManagementSystem/WaypointModel';
import { REGEX } from '../../constants/globalConstants';
import {
FLY_OVER_WAYPOINT_PREFIX,
VECTOR_W... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-id-trailing-comma.case
// - src/dstr-binding/default/cls-decl-gen-meth-dflt.template
/*---
description: Trailing comma is allowed f... |
/**
* DB connection
*/
const mongoose = require('mongoose')
const config = require('./index')
const log4js = require('./../utils/log4j')
mongoose.connect(config.URL,{
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = mongoose.connection;
// db.collections.song.createIndex({ songName: "text", so... |
import activeComponentsById from 'reducers/app-state/active-components-by-id';
import activeCodeListsById from 'reducers/app-state/active-code-lists-by-id';
import activeCalculatedVariablesById from 'reducers/app-state/active-calculated-variables-by-id';
import collectedVariableByQuestion from 'reducers/app-state/colle... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var Amilia = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
};
return (React.createElement(StyledIconBase, tslib_1.__assign({ iconAttrs: att... |
import React from "react";
import { Button, Menu, MenuItem, Popover, Position } from "@blueprintjs/core";
import { IconNames } from "@blueprintjs/icons";
const InformationMenu = React.memo((props) => {
const { libraryVersions, tosURL, privacyURL } = props;
return (
<Popover
content={
<Menu>
... |
import React, { Fragment } from "react";
import Title from "accessories/Title";
import { InstallPWA } from "widgets";
export default {
title: "Desing System/TemplatePWA/InstallPWA",
};
export const INSTALLPWA = args => {
return (
<Fragment>
<Title variant="h2">Install PWA</Title>
... |
var ipp = require('../ipp.js');
var data = new Buffer(
'0200' + //version 2.0
'000B' + //Get-Printer-Attributes
'00000001'+ //reqid
'01' + //operation-attributes-tag
//blah blah the required bloat of this protocol
'470012617474726962757465732d6368617273657400057574662d3848001b617474726962757465732d6e6174... |
const logs = [
{
_id: "5c37f4cbc0acb663ef64e330",
_ability: "ability-id-1",
type: "event",
data: false,
createdAt: "2019-01-11T01:43:39.493Z"
},
{
_id: "5c381289c0acb663ef64e331",
_ability: "ability-id-1",
type: "event",
data: false,
createdAt: "2019-01-11T03:50:33.160Z"
... |
function remove_duplicates(arr) {
var obj = {};
var ret_arr = [];
for (var i = 0; i < arr.length; i++) {
obj[arr[i]] = true;
}
for (var key in obj) {
ret_arr.push(key);
}
return ret_arr;
}
var intersect = function (nums1, nums2) {
var result = nums1.filter(x... |
import React from 'react';
import Link from 'next/link';
import UserImage from '../UserImage';
import FollowButton from '../../containers/FollowButton';
import { FollowList } from './style';
const FollowListLayout = ({ value }) => {
return (
<FollowList>
<div className="imageContainer">
<div classN... |
const postcss = require('postcss')
const { parse } = require('css-box-shadow')
module.exports = postcss.plugin('postcss-css-shadow', opts => root => {
root.walkRules(rule => {
let shadow = null
rule.walkDecls('shadow', decl => {
const { offsetX, offsetY, blurRadius, color } = parse(decl.value)[0]
... |
'use strict';
(function() {
function PopulateZones(domPulldown, result) {
this.domPulldown = domPulldown;
this.result = result;
}
PopulateZones.prototype = {
execute: function(parts) {
var zoneNames = [];
for (var i = 0; i < this.result.zones.length; i++) {
var curr... |
import request from '@/utils/request'
export function addGrade(params) {
return request({
url: '/api/grade/addGrade',
method: 'post',
data: {
major: params.major, // 专业
account: params.account, // 账号
fullname: params.fullname, // 姓名
subject: params.subject, // 科目
grade: param... |
//effectively links super-evos with their base forms
var base = [
{base: 261, evo: 1413},
{base: 367, evo: 1619},
{base: 416, evo: 1445},
{base: 459, evo: 1847},
{base: 530, evo: 1707},
{base: 562, evo: 1816},
{base: 649, evo: 2868},
{base: 669, evo: 1492},
{base: 718, evo: 1881},
{base: 720, evo: 1... |
/// <reference types="cypress" />
// TODO:
// verify displayed content matches the fetched data: notes, address, offices, links, projects, past proejcts
// comments -- listing, creating, deleting
// history (patches)
// correct links to individual pages for offices, [past] projects
// correct links for external links
... |
/* @flow */
import { type Transaction } from '@neo-one/client-common';
const TRANSACTION_LENGTH = 'Transaction'.length;
export default (type: $PropertyType<Transaction, 'type'>) =>
type.substring(0, type.length - TRANSACTION_LENGTH);
|
// effects: redux-saga 미들웨어가 수행하도록 작업을 명령하는 거라고 이해할 수 있다
// delay: 대기하라는 명령
// put: 특정 액션을 dispatch하라는 명령
// takeEvery: generator 코드를 실행해야할 때 takeEvery effect를 사용
// takeLatest: 가장 마지막으로 들어온 것만 처리
import {
delay,
put,
takeEvery,
takeLatest,
takeLeading,
} from 'redux-saga/effects';
// action
const INCREASE =... |
const ist = require('ist')
const { EditorState } = require('prosemirror-state')
const { table, tr, c11, c, doc } = require('./build')
const { columnResizing, columnResizingPluginKey } = require('../dist')
const columnResizingPlugin = columnResizing()
describe('ColumnResizing', () => {
// 无跨行跨列表格 3 * 3
// | 2 |... |
version https://git-lfs.github.com/spec/v1
oid sha256:0f4b9f79a2084c4accd94d7b346a064e6552349622b4ee7451f875f915a1bd7d
size 1821
|
'use strict';
const pkg = require('../../package');
const showUsage = (error = false) => {
const usage = `
Usage:
npx @mryhryki/markdown-preview [options]
markdown-preview [options]
Options:
-f,--file [relative_file_path] Default: README.md
-t,--template [template_name] Default: default
-p,--port... |
import { dolls } from 'girlsfrontline-core';
import Doll from 'girlsfrontline-core/lib/doll';
import gfextradata from 'girlsfrontline-extra-data';
import dollRank from './data/dollRank.json';
const { alias: { doll: dollAlias } } = gfextradata({ locale: 'ko' });
const buildData = (doll) => {
const { id, skins } = d... |
/* $This file is distributed under the terms of the license in LICENSE$ */
var EntityTablesWidget = Class.extend({
init: function(sciMapWidget) {
this.sciMapWidget = sciMapWidget;
this.keyToDataTable = {};
this.container = $('<div>');
$("#subEntityTableArea").append(this.container);
$("#subEntityTableArea")... |
/*!
Bootstrap integration for DataTables' Buttons
©2016 SpryMedia Ltd - datatables.net/license
*/
(function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-buttons"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,c){a||(a=w... |
/* eslint-disable import/no-extraneous-dependencies, no-await-in-loop */
/* eslint-disable no-restricted-syntax, jest/no-export, jest/no-conditional-expect */
// import 'babel-polyfill';
const { toMatchImageSnapshot } = require('jest-image-snapshot');
const { joinObjects, writeImage, getReplacementsFolder } = require(... |
module.exports = function (match) {
match('', 'home#index');
match('repos', 'repos#index');
match('repos/:owner/:name', 'repos#show');
match('users' , 'users#index');
match('users/:login', 'users#show');
};
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[132],{271:function(e){e.exports=JSON.parse('{"docsSidebars":{"docs":[{"collapsed":true,"type":"category","label":"Introduction","items":[{"type":"link","label":"Introduction","href":"/kratos/docs/next/"},{"type":"link","label":"Quickstart","href":"/kratos/docs/next/q... |
import {
REG_START,
REG_SUCCESS,
REG_FAILED,
LOGIN_START,
LOGIN_SUCCESS,
LOGIN_FAILED
} from "../actions"
const initialUser = {username: "", password: ""};
export const reducer = (state = initialUser, action) => {
switch (action.type) {
case REG_START:
return{
...state,
inProgress:... |
module.exports = {
extends: ['standard', 'prettier', 'prettier/standard'],
env: {
es6: true,
node: true
},
parserOptions: {
ecmaVersion: 6
},
plugins: ['prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: false
}
]
}
}
|
mycallback( {"CONTRIBUTOR OCCUPATION": "VP MTI Research & Development", "CONTRIBUTION AMOUNT (F3L Bundled)": "150.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Mylan Technologies Inc.", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "346 Vitez Dr", "CONTRIBUTOR MIDDLE NAME": "E", "DONOR CAND... |
import axios from 'axios'
// import store from '@/store'
// import { getToken } from '@/utils/auth'
// create an axios instance
const service = axios.create({
baseURL: process.env.BASE_API, //
timeout: 8000 // request timeout
})
// request interceptor
service.interceptors.request.use(config => {
// Do something... |
"use strict";
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { retur... |
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/alpinejs/dist/module.esm.js":
/*!**************************************************!*\
!*** ./node_modules/alpinejs/dist/module.esm.js ***!
\**************************************************/
/***/ ((__unused_webpac... |
/// <reference path="E:\11.WepAPI\Fridge\Fridge\Fridge.WebClient\bower_components/jquery/dist/jquery.js" />
/// <reference path="E:\11.WepAPI\Fridge\Fridge\Fridge.WebClient\Scripts/_references.js" />
"use strict";
angular.module('app')
.controller('HomeController',
function ($scope, $rootScope, publicRequests, p... |
'use strict';
const numeric = require("numeric");
function round(num){
return Math.round(num*10000000000)/10000000000;
}
function getNormalizationCoefficients(srcPts, dstPts, isInverse){
if(isInverse){
var tmp = dstPts;
dstPts = srcPts;
srcPts = tmp;
}
var r1 = [srcPts[0], src... |
const DrawCard = require('../../drawcard.js');
class MaesterAtTheRock extends DrawCard {
setupCardAbilities(ability) {
this.reaction({
when: {
onCardPlayed: event => event.card.isFaction('lannister') && event.card.controller === this.controller &&
... |
document.addEventListener("DOMContentLoaded", function(event) {
(function(global) {
function now() {
return new Date();
}
var force = "";
if (typeof (window._bokeh_onload_callbacks) === "undefined" || force !== "") {
window._bokeh_onload_callbacks = [];
... |
import {connect} from 'react-redux';
import GearStatSelect from './GearStatSelect';
const mapState = (state, {stats}) => ({
items: stats.map(stat => ({
value: stat.id,
label: stat.label,
})),
});
export default connect(
mapState,
() => ({})
)(GearStatSelect);
|
var key = '_RPELcTeq3ZByqi3N5dt18w';
var allStrings = (typeof DEPRECATED_UNIT_TEST === 'undefined' || DEPRECATED_UNIT_TEST) ?
require("../resx-strings/en-us.json") :
require("resx-strings");
var strings = allStrings[key];
export default strings;
|
export default {
name: '散点图',
type: 'scatter',
data: [
{
name: '简单散点图',
data: {
columns: ['日期', '余额', '数量', '年龄'],
rows: {
'上海': [
{ '日期': '1-1', '余额': 123, '年龄': 3, '数量': 1244 },
{ '日期': '1-2', '余额': 1223, '年龄': 6, '数量': 2344 },
{ '日期'... |
import * as PIXI from 'pixi.js'
const radius = 25
const textScale = 0.3
const textColor = 0xffffff
const textFontSize = 80
const verticeColor = 0x007d8c
const selectedTint = 0x00aa88
const textMarginMultiplier = 30
const g = new PIXI.Graphics()
g.lineStyle(0)
g.beginFill(verticeColor, 1)
g.drawCircle(0, 0, radius)
g.... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1256:function(module,exports,__webpack_require__){"use strict";var warning=function(){};module.exports=warning},565:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_ex... |
var common = require('../common.js').common;
// Start of test script.
casper.start('http://localhost:9981/', common.initialize_casper);
casper.then(function () {
casper.test.assertHttpStatus(302);
casper.test.assertUrlMatch(/^http:\/\/[^\/]+\/login/, 'Redirected to /login');
});
common.then_log_in();
casper... |
import Vue from 'vue'
Vue.filter('formatData', function (value) {
let date = new Date(value)
let year = date.getFullYear()
let month = (date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : date.getMonth()
let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate( )
let hour = date.getHours() < ... |
const net = require("net");
const server = net.createServer(socket => {
socket.once('data', (data) => {
console.log(data.toString());
socket.write(data);
});
});
server.listen(3000, '127.0.0.1', () => {
console.log(`Server running at 127.0.0.1:3000`);
}); |
function get_connectivitytable_index(a){"\n"!=a[a.length-1]&&(a+="\n"),idx={};var b=0,c="",d=a.match(/[^\r\n]+/g);for(var e in d){var f=d[e];if(0==b){var g=f.match(/([0-9]+)(?:\t|[ ]{2,})([^\n]+)/);c=g[2],b=parseInt(g[1]),idx[c]={sequence:"",structure:".".repeat(b)}}else{var g=f.match(/[^\t\ ]+/g);idx[c].sequence+=g[1]... |
import "./info.js";
import "./inputs.js";
export function initControls(the_map, departure_time, comparison_port) {
const infoControl = L.control.sectioninfo({ position: 'topright'}, comparison_port).addTo(the_map);
const inputsControl = L.control.inputs({position: 'topleft'}).addTo(the_map);
inputsControl.... |
/*!
* froala_editor v2.1.0 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms
* Copyright 2014-2016 Froala Labs
*/
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0=... |
/**
* API function to create fetch store tests.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licen... |
app.canvas.hud.compass = (() => {
const tree = engine.utility.bitree.create({
dimension: 'angle',
})
generateTree()
app.canvas.hud.on('draw', draw)
function draw({canvas, context}) {
if (!app.settings.computed.graphicsHudCompassOn) {
return
}
const {yaw} = engine.position.getEuler()
... |
var PlatformAccessory, Accessory, Service, Characteristic, UUIDGen, CommunityTypes;
var _homebridge;
const miio = require('miio');
const dgram = require('dgram');
const util = require('util');
const inherits = require('util').inherits;
const crypto = require('crypto');
const devices = require('./mijia/');
const types ... |
app.controller('appSettingsController',
['$scope',
'$q',
'$rootScope',
'$stateParams',
'$location',
'projectService',
'$timeout',
'appSettingsService',
function($scope,
$q,
$rootScope,
$stateParams,
$location,
projectService,
$timeout,
appSettingsService){
var id;
$rootScope.showAppPanel=true;
$rootSc... |
import React from 'react';
import styled from '@emotion/styled'
import Image from 'gatsby-image'
import Iconos from './iconos'
import Layout from './layout'
import {graphql} from 'gatsby'
const Contenido = styled.div`
max-width: 1200px;
margin: 0 auto;
width: 95%;
@media (min-width: 768px) {
d... |
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
const tap = require('tap')
const read = require('fs').readFileSync
const join = require('path').join
const https = require('https')
const RemoteMethod = require('../../lib/collector/remote-method')... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ethereumjs_util_1 = require("ethereumjs-util");
const baseTransaction_1 = require("./baseTransaction");
const types_1 = require("./types");
const util_1 = require("./util");
const TRANSACTION_TYPE = 1;
const TRANSACTION_TYPE_BUFFER = Buf... |
import { FETCH_USER_SUCCESS, USER_INITIAL,
FETCH_USER_NOT_FOUND, USER_NOT_FOUND } from 'store/actions/user';
const profileTemplate = {
id: USER_INITIAL,
github_login: '',
github_name: '',
email: '',
token: '',
avatarUrl: '',
};
const initialState = {
profiles: [],
};
const userReducer = (state = init... |
import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import classes from './Drawer.module.css';
import Backdrop from '../../UI/Backdrop/Backdrop';
class Drawer extends Component {
clickHandler = () => {
this.props.onClose();
};
renderLinks = links => {
return links.map((... |
$(function() {
consoleInit();
start(main);
});
const LIFT_ABI = [{"inputs":[{"internalType":"address","name":"_boardroom","type":"address"},{"internalType":"address","name":"_share","type":"address"},{"internalType":"address","name":"_lptoken","type":"address"},{"internalType":"uint256","name":"_starttime","type":... |
import React from 'react';
import { Box, Button, Heading, Paragraph } from 'grommet';
import RoutedAnchor from '../components/RoutedAnchor';
import Page from '../components/Page';
import {
ComponentDoc,
Properties,
Property,
PropertyValue,
Description,
Example,
ThemeDoc,
PropOptions,
} from '../compone... |
import Typography from 'typography'
import Wordpress2016 from 'typography-theme-wordpress-2016'
import './global.css'
import './prismjs.css'
Wordpress2016.overrideThemeStyles = () => ({
'body': {
color: 'var(--c-text-primary)',
},
'a': {
color: 'var(--text-link-color)',
},
'a.gatsby-resp-image-link':... |
import Alt from '../utils/Alt';
import CrudActions from '../actions/CrudActions';
class CrudStore {
constructor() {
this.resourceName = '';
this.status = 'fetchings'; // ok | fetching | getting | deleting | saving
this.stuff = {};
this.one = null;
this.list = [];
this.pagination = {
sh... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) ... |
import React from "react";
// nodejs library to set properties for components
import PropTypes from "prop-types";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
const styles = {
grid: {
position: "relative",
width: "100%",
... |
import NextAuth from "next-auth"
import Providers from "next-auth/providers"
// import CredentialsProvider from "next-auth/providers"
const axios = require('axios');
// For more information on each option (and a full list of options) go to
// https://next-auth.js.org/configuration/options
export default NextAuth({
/... |
/*********************************
* Themes, rules, and i18n support
* Locale: English
*********************************/
(function(factory) {
'function' === typeof define && (define.amd || define.cmd) ? define(function(require, exports, module){
var $ = require('jquery')||jQuery; $._VALIDATOR_URI = modu... |
// https://threejs.org/docs/#manual/en/introduction/Loading-3D-models
// https://threejs.org/examples/#webgl_loader_gltf
// https://gist.github.com/bellbind/c4f8c502fcacbe29422e5ac315273858
// https://github.com/funwithtriangles/blender-to-threejs-export-guide/blob/master/readme.md
// https://threejsfundamentals.org/t... |
(function () {
if (window.PollStart) return;
window.PollStart = function (container, params) {
this.Container = typeof (container) == "object" ? container : document.getElementById(container);
if (!this.Container) return;
params = params || {};
this.Objects = {
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 12V3H3v9c0 2.76 2.... |
/* global CloudCmd */
'use strict';
const itype = require('itype/legacy');
const exec = require('execon');
const jonny = require('jonny');
const Util = require('../../common/util');
const {
getTitle,
FS,
Entity,
} = require('../../common/cloudfunc');
const DOMTree = require('./dom-tree');
const DOM = O... |
const { EOL } = require("os");
const path = require("path");
const fs = require("fs-extra");
const chalk = require("chalk");
const dedent = require("dedent");
const initTempDir = require("../utils/initTempDir");
const runCreateCorvidApp = require("../utils/runCreateCorvidApp");
const {
start: startFakeNpmRegistry,
... |
/**
* Define Swatches
*
* This command can be used to define a color swatch. After generating the Color Inventory, select a color swatch (layer group) and
* run this command which will show a dialog where a name can be entered.
*/
@import '../inventory.js'
var onRun = function (context) {
// old school var... |
ace.define("ace/snippets/sparql",["require","exports","module"],function(r,e,m){"use strict";e.snippetText=undefined;e.scope="";});
|
/** @jsx jsx */
import { jsx } from '@emotion/core'
export default ({ children }) => (
<div
css={{
margin: '0 auto',
maxWidth: 960,
padding: '0px 1em 1.5em',
paddingTop: 0,
}}
>
{children}
</div>
)
|
var assert = require('assert')
var request = require('request')
var versionator = require('../')
var appEngine = require('connect')
describe('versionator', function() {
describe('#createBasic', function() {
it('throws an error if no version is passed', function() {
assert.throws(function() {
versio... |
/**!
* LibreMoney AbstractAppendix 0.2
* Copyright (c) LibreMoney Team <libremoney@yandex.com>
* CC0 license
*/
if (typeof module !== "undefined") {
var Appendix = require(__dirname + '/Appendix');
var Convert = require(__dirname + '/../../../Lib/Util/Convert');
}
function AbstractAppendix(data) {
this.protot... |
// 代码的自动测试
function twoNumberAdd(a,b) {
return parseInt(a) + parseInt(b)
}
module.exports = twoNumberAdd |
const express = require('express')
const exphbs = require('express-handlebars')
const conn = require('./db/conn')
const Address = require('./models/Address')
const User = require('./models/User') //Não é preciso utilizar para criar a tabela tendo o caminho do arquivo aqui o sequelize entende e mapeia ele criando a tabe... |
import CardSet from "../../../src/artifact/js/CardSet.js";
import CardSetType from "../../../src/artifact/js/CardSetType.js";
import CardSubset from "../../../src/artifact/js/CardSubset.js";
QUnit.module("CardSubset");
var CardSubsetTest = {};
QUnit.test("CardSubset properties The Hunt for Gollum", function(assert)
... |
module.exports={A:{A:{"2":"J C G E TB","129":"B A"},B:{"129":"D X","1025":"g H L"},C:{"2":"3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t PB OB","513":"1 2 Y Z a b c d e f K h i j k l m n o p q v w x y z s r"},D:{"1":"1 2 7 9 J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v ... |
/* istanbul instrument in package npmdoc_axios */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - pre-init
(function () {
//... |
/**
* DevExtreme (ui/date_box.js)
* Version: 16.2.1-16294
* Build date: Thu Oct 20 2016
*
* Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
module.exports = require("./date_box/ui.date_box");
module.exports.defa... |
'use strict';
/**
* Module for all communication with libre.fm
*/
define((require) => {
const $ = require('jquery');
const AudioScrobbler = require('scrobbler/audioscrobbler');
const ServiceCallResult = require('object/service-call-result');
class LibreFm extends AudioScrobbler {
/** @override */
sendReques... |
import { lazy, Suspense } from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import Box from "@material-ui/core/Box";
import { styled } from "@material-ui/core/styles";
import Loading from "../components/animations/Loading";
const Room = lazy(() => import("../components/room/Room"... |
/**
* app.js
*
* FooFighter.js — Primary Game Controller
*
* Purpose of this module is to initialize the game assets,
* build game environment and entities, and emit Phaser events
* (via Shout object).
*/
;(function( FooFighter, Phaser, BUILDNUM ){
'use strict';
var app,
game,
gameState;
app = {
... |
const {Rule} = require('../src')
describe('number', () => {
test('required constraint', async () => {
const rule = Rule.number().required()
await expect(rule.validate(undefined)).resolves.toMatchSnapshot(
'required: undefined'
)
await expect(rule.validate(13)).resolves.toMatchSnapshot('required... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
// moment.js language configuration
// language : norwegian bokmål (nb)
// author : Espen Hovlandsdal : https://github.com/rexxars
require('TiTools2/ThirdParty/moment').lang('nb', {
months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
monthsShort : "jan_feb_... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.LocationOutline = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "c... |
import { onMounted, ref } from 'vue';
import { detectFlexGapSupported } from '../styleChecker';
export default (function () {
var flexible = ref(false);
onMounted(function () {
flexible.value = detectFlexGapSupported();
});
return flexible;
}); |
"use strict";
$(document).ready(function(){
$('#auto-fill').DataTable( {
autoFill: true
} );
$('#keytable').DataTable( {
keys: true,
autoFill: true
} );
$('#column-selector').DataTable( {
columnDefs: [ {
orderable: false,
className: 'select-che... |
import toTopButton from '../components/shared/to-top-button.vue'
/**
* Add a "infinite scroll" functionality to any component using this mixin.
* Such a component should have a `scrolling` method bound to `scroll` event on
* the wrapper element: @scroll="scrolling"
*/
export default {
components: { toTopButton }... |
// This is a basic example strategy for Gekko.
// For more information on everything please refer
// to this document:
//
// https://gekko.wizb.it/docs/strategies/creating_a_strategy.html
//
// The example below is pretty bad investment advice: on every new candle there is
// a 10% chance it will recommend to change yo... |
export function randomKey () {
return new Date().getTime().toString() + Math.random().toString().substring(3)
}
|
define({"topics" : [{"title":"BigQuery Data Types","shortdesc":"\n <p class=\"shortdesc\">The Google BigQuery destination maps fields from records to BigQuery columns in existing tables based on matching\n names and compatible data types. If needed, the destination convert... |
import { act } from 'react-dom/test-utils';
import {
mountPage,
preflight200,
preflight400,
preflight403,
} from '../../Utilities/tests/helpers';
import fetchMock from 'fetch-mock-jest';
import OrganizationStatistics from './OrganizationStatistics';
const chartRoots = [
'd3-grouped-bar-chart-root',
'd3-don... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.