text stringlengths 2 1.04M |
|---|
Search.setIndex({docnames:["docs"],envversion:50,filenames:["docs.rst"],objects:{},objnames:{},objtypes:{},terms:{along:0,bieng:0,design:0,detail:0,fruther:0,get:0,here:0,more:0,post:0,still:0,when:0},titles:["The Badge!"],titleterms:{The:0,badg:0}}) |
if("undefined"===typeof React)var React=require("react");
(function(){function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function b(a,c){if("string"===type... |
const crypto = require('crypto')
const mailer = require('../../libs/mailer')
const User = require('../models/User')
module.exports = {
async register(req, res) {
return res.render('session/register')
},
async loginForm(req, res) {
return res.render('session/login')
},
async login(... |
import { re, kontra } from "@/models/parties";
import { flatMap } from "lodash-es";
import { WIN, BEAT_RE } from "@/models/extras";
const sumPointsForParty = (acc, player) => acc + player.points();
const extrasInTrickStack = (acc, player) => acc + player.trickStack.extras();
export class Score {
constructor() {
... |
// @flow
import React from 'react';
import { Alert, NativeModules, ScrollView, Switch, Text, TextInput } from 'react-native';
import { translate } from '../../../base/i18n';
import { JitsiModal } from '../../../base/modal';
import { connect } from '../../../base/redux';
import { SETTINGS_VIEW_ID } from '../../consta... |
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default messages for the jQuery validation plugin.
* Locale: TR (Turkish; Türkçe)
*/
$.extend($.validator.messages, {... |
const jsonPredicate = require('json-predicate');
const EventEmitter = require('events').EventEmitter;
const DEFAULT_PERCENTAGE_PATH = '/id';
const events = new EventEmitter();
let featuresById = {};
let reloadFeatures;
let reloadIntervalFn;
function configure({features, reloadInterval}) {
if (typeof features === '... |
var callbackArguments = [];
var argument1 = function (route, path) {
callbackArguments.push(arguments)
if (!match && (params = switchRouteMatcher($location.path(), route))) {
match = inherit(route, {
params: angular.extend({}, $location.search(), params),
pathParams: params
... |
/*!
=========================================================
* BLK Design System React - v1.2.0
=========================================================
* Product Page: https://www.creative-tim.com/product/blk-design-system-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (htt... |
import React, { lazy } from 'react'
import {
CAvatar,
CButton,
CButtonGroup,
CCard,
CCardBody,
CCardFooter,
CCardHeader,
CCol,
CProgress,
CRow,
CTable,
CTableBody,
CTableDataCell,
CTableHead,
CTableHeaderCell,
CTableRow,
} from '@coreui/react'
import { CChartLine } from '@coreui/react-c... |
'use strict';
const test = require('tape');
// Normally, you don't want to manually implement a builtin, but this is here just
// for fun and learning purposes
// basically just JSON.stringify()
function toJson() {
let stringifiedObject = '{';
const keysLength = Object.keys(this).length;
const conditionalComma ... |
let onClickDocument=(e)=>{
let {target}=e;
callbacks.forEach((item)=>{
if(target===item.el||item.el.contains(target)){
return
}else{
item.callback()
}
})
};
document.addEventListener('click',onClickDocument);
let callbacks=[];
export default {
bind:function (el,binding,vn... |
import React from 'react';
import MediaObjectLayout from './index.js';
export default stories => stories
.add('デフォルト', () => (
<MediaObjectLayout>
<div>
<img src="mock/images/img01.jpg" width="192" height="108" alt="MediaObjectLayout を説明するためのサンプル画像" />
</div>
<p>Lorem ipsum dolor sit am... |
import { FieldType } from '../../../common/enums'
export let emptyItem = {
radiatorID: 'Testing',
titleInternational: '',
}
export const columnsTable = [
{ field: 'radiatorID', header: 'Radiator ID', colGroup: 'ID' },
{ field: 'id', header: 'Neo4J UUID', hidden: true },
{ field: 'titleInternational', header... |
b3e.project.NodeManager = function(editor, project) {
"use strict";
/**
* Register a node to the node list. You can provide:
*
* - a `b3.BaseNode` instance.
* - a `b3e.Node` instance.
* - a generic object containing the node prototype.
*/
this.add = function(node, isDefault) {
if (node.pro... |
import { $$ } from '../utils'
/* add table-wrapper */
$$('.post-content>table').forEach(table => {
const div = document.createElement('div')
const range = document.createRange()
div.className = '_table-wrapper'
range.selectNode(table)
range.surroundContents(div)
}) |
function flattenTree(children, steps, arrIndexAtTargetDepth) {
const arr = [];
if (!children || !children.length) {
return arr;
}
if (steps <= 0) {
const nodes = arrIndexAtTargetDepth >= 0 ? [children[arrIndexAtTargetDepth]] : children;
arr.push(...nodes);
} else {
for (let i = 0; i < children... |
(function () {
'use strict';
const cashTotal = nodecg.Replicant('total');
const autoUpdateTotal = nodecg.Replicant('autoUpdateTotal');
class GdqTotals extends Polymer.Element {
static get is() {
return 'gdq-totals';
}
static get properties() {
return {
cashTotal: {
type: String,
value: ... |
import P from 'prop-types';
import TemplateElement from "@/templates/elements/TemplateElement";
import {colorCasesShape} from "@symb/ColorCoder";
import {SORT_ASC, SORT_DESC, SORT_URI} from "@/generators/StackedBarChart";
import {Stop} from "@/components/Svg";
import Chart from "@/generators/Chart";
const rectPropTyp... |
/****************************************************************
* *
* single-fudomap *
* -------------- *
* ... |
import { rowsAir, tableFire } from "../../../utils";
import { getAttribute } from "@util/attribute";
let rowsA = [
{
key: "dmg1",
chs: "1- Hit Nomal Attack",
},
{
key: "dmg2",
chs: "2- Hit Nomal Attack",
},
{
key: "dmg3",
chs: "3- Hit Nomal Attack",
... |
angular.module('appModule.room').constant('RoomConstants', {
settings: {
newsCount: 50
},
viewPort: {
name: "roomViewContainer"
},
dialogParams: {
edit: {
label: "label.assetHistory.reject",
text: "message.common.confirm_reject",
buttonO... |
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config.dev');
new WebpackDevServer(webpack(config), {
hot: true,
historyApiFallback: true,
contentBase: 'example',
publicPath: config.output.publicPath
}).listen(3002, 'localhost', function (... |
import React from "react";
const Instagram = props => (
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
className="feather feather-instagram"
width="1em"
height="1em"
{...props}
>
<rect x={2} y={2} width={20} height={20} rx... |
import { xGetFromToIndex } from '../x/xGetFromToIndex';
import { xyCheck } from './xyCheck';
/**
* Calculate integration
* @param {DataXY} [data={}] - Object that contains property x (an ordered increasing array) and y (an array)
* @param {object} [options={}]
* @param {number} [options.from] - First value for xy... |
module.exports = 42;
require('obviouslymissing'); |
const expect = chai.expect;
import Vue from 'vue'
import Row from '../src/row.vue'
import Col from '../src/col.vue'
Vue.config.productionTip = false
Vue.config.devtools = false
describe('Row', () => {
it('存在.', () => {
expect(Row).to.be.ok
})
it('接收 gutter 属性.', (done) => {
Vue.component(... |
const rotPicABigAndMoreTiny_initRot = (targetName) => {
let rotPicABigAndMoreTiny_initRot_swiper = null;
rotPicABigAndMoreTiny_initRot_swiper = new Swiper(targetName + ' .swiper-container', {
watchOverflow: true,
// autoplay: false,
spaceBetween: isPc ? 0 : 9,
pagination: {
... |
const SimpleCounter = artifacts.require('SimpleCounter')
contract('SimpleCounter', () => {
let instance = null
before(async () => {
instance = await SimpleCounter.deployed()
})
it('should be zero-initialized', async () => {
const storage = await instance.storage()
expect(stora... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file 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/li... |
livespell.lang.uk = ['Вчитися','Автозаміна','Скасувати','Зміна','Замінити всі','Скасувати зміни','Близько','Ігнорувати все','Ігнорувати','OK','Опції','Скидання','Скасувати','Зміни:','Поля','Перевірка орфографії Здача в експлуатацію:','Слова:','Словник мови:','Пропозиції:','Більше 1...','Виберіть Мови (утримуючи кнопку ... |
/* eslint-disable no-undef */
Package.describe({
name: 'socialize:cloudinary',
summary: 'Upload and manipulate files with the Cloudinary API and async/await',
version: '1.0.4',
git: 'https://github.com/copleykj/socialize-cloudinary',
});
Package.on_use(function _(api) {
api.versionsFrom('1.3');
... |
import React from "react";
function ProjectsDescript(props) {
return (
<div className="proj-text">
<h3 className="proj-title">{props.title}</h3>
<div className="proj-descript">{props.description}</div>
<a
className="proj-github"
href={props.github}
rel="noopener noreferr... |
/*****************************************
* Library is under GPL License (GPL)
* Copyright (c) 2012 Andreas Herz
****************************************/
/**
* @class draw2d.shape.icon.Smile
* See the example:
*
* @example preview small frame
*
* var icon = new draw2d.shape.icon.Smile();
... |
import { timeSecond, timeMinute, timeHour, timeDay, timeWeek, timeSunday, timeMonday, timeTuesday, timeWednesday, timeThursday, timeFriday, timeSaturday, timeMonth, timeYear, utcSecond, utcMinute, utcHour, utcDay, utcWeek, utcSunday, utcMonday, utcTuesday, utcWednesday, utcThursday, utcFriday, utcSaturday, utcMonth, ut... |
/**
* Simplified Chinese translation for bootstrap-datepicker
* Yuan Cheung <advanimal@gmail.com>
*/
define(function(require, exports, module){
var jQuery = require('jquery');
require('datepicker-css');
require('./bootstrap-datepicker');
(function($){
$.fn.datepicker.dates['zh-CN'] = {
days: ["星期日"... |
// @flow
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import {
TextInput,
View,
StyleSheet,
Text,
TouchableOpacity,
KeyboardAvoidingView,
} from 'react-native';
import { Picker, PickerIOS } from '@react-native-picker/picker';
import { BlurView } from '@react-native-community/bl... |
/** 获取url查询参数 */
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
/** 获取url是否有查询参数 */
function existsQueryString(name) {
var url = location.search;
... |
/**
* This data rendering helper method can be useful for cases where you have
* potentially large data strings to be shown in a column that is restricted by
* width. The data for the column is still fully searchable and sortable, but if
* it is longer than a give number of characters, it will be truncated and
* s... |
'use strict';
var _ = require('lodash');
var spaResponseHandler = require('./spa-response-handler');
/**
* Determines which handler should be used to fulfill a response, given the
* Accept header of the request and the content types that are allowed by the
* `stormpath.web.produces` configuration. Also handles th... |
import db from '../db/models';
import {TYPE} from '../db/models/system-property';
export const SYSTEM_CONFIG = {
WITHDRAW_FEE: 0.03,
FEE: {},
WEB_OFFICE_FEE: 10,
SYSTEM_CURRENCY: '',
ADMIN_EMAIL: '',
CALLING_CARD: 4000,
PERIOD: 168,
ESCROW_PERIOD: 6,
LOAN_RATE: 0.03,
BONUS_BLOCK_PERCENT: 0.3,
BON... |
const vars = {
light: { main: '#EBECF0', secondary: '', contrast: '#636363' },
dark: { main: '', secondary: '', contrast: '' },
};
export default vars; |
/*
* Appends an array to the end of another.
* The first array will be modified.
*/
function append( arr1, arr2 ) {
if ( arr2 == null ) {
return arr1;
}
let arr1Length = arr1.length,
i = -1,
arr2length = arr2.length;
while ( ++i < arr2length ) {
arr1[ arr1Length + i ] = arr2[ i ];
conso... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { SqlMan... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"];
import ... |
// import libs
import { connect } from 'react-redux'
import Logsist from '../../LogsList'
// import components
import Page from './Page'
const mapStateToProps = state => {
const { data, ...meta } = state.tasks
return {
log_lists: data.map((Logsists) => new Logsist(Logsists)),
meta: Object.assign({},... |
import find from 'lodash/find';
import { userListSelector } from '../selectors/userSelectors';
import * as groupMentions from './groupMentions';
export { groupMentions };
/**
* Get a list of group names that can be mentioned by a user.
*
* @param {{ role: number }} user
*/
export function getAvailableGroupMention... |
import * as import0 from '@angular/core';
import * as import1 from '@angular/common';
import * as import2 from '../../../components/insertion-sort/insertion-sort';
var styles_InsertionSort = [];
export var RenderType_InsertionSort = import0.ɵcreateRendererTypeV2({
encapsulation: 2,
styles: styles_InsertionSort,... |
module.exports = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ["www.datocms-assets.com"],
},
}; |
var moment = require('moment');
module.exports = {
'label': '',
'xAxisLabel': '@timestamp per 30 sec',
'ordered': {
'date': true,
'min': 1411761457636,
'max': 1411762357636,
'interval': 30000
},
'yAxisLabel': 'Count of documents',
'series': [
{
'values': [
{
'x':... |
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || fun... |
/**
* Created by Liu.Jun on 2020/4/16 17:32.
*/
import {
getCurrentInstance, watch, ref, computed, h, provide
} from 'vue';
import { resolveComponent } from '@lljj/vjsf-utils/vue3Utils';
// 生成form表单默认数据
import getDefaultFormState from '@lljj/vjsf-utils/schema/getDefaultFormState';
import { deepEquals } from '@... |
const express = require('express');
const cors = require('cors');
const routes = require('./routes');
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.listen(3333, () => {
console.log('Servidor ouvindo');
}); |
// @flow
import {listSourceLines} from '../../src/cli/listSourceLines.js';
test('listSourceLines', () => {
const dep = {
name: '',
type: 'both',
sources: [
{type: 'token', source: '/foo/bar.js:1:2'},
{type: 'plugin', source: '/foo/bar.js:3:4'},
],
dependencies: [],
};
const lines ... |
function getFullName(obj) {
console.log(obj.name + " " + obj.lastname);
}
module.exports = {getFullName} |
'use strict';
let kafka = require('kafka-node'),
sinon = require('sinon'),
KafkaThrottlingManager = require('../src/throttling/kafkaThrottlingManager'),
should = require('should'),
KafkaStreamConsumer = require('../src/consumers/kafkaStreamConsumer'),
assert = require('assert'),
ConsumerOffsetO... |
const Interpreter = require('../interpreter.js')
module.exports = async (event, shardID, client, cmds) => {
for (const cmd of cmds.shardDisconnect.array()) {
const id = cmd?.channel?.includes("$") ? (await Interpreter(client, {}, [], {
name: "channelParser",
code: cmd.channel
}, client.db, true))?.code : cm... |
import { colors } from '../styles/colors';
export const defaultRadioListTheme = {
margin: '0.5em',
padding: '0.75em',
background: colors.galeryGray,
backgroundFocused: colors.white79green,
}
export const lightRadioListTheme = {
background: 'transparent',
backgroundFocused: 'transparent',
m... |
/* eslint-disable prettier/prettier */
import {
CButton,
CCard,
CCol,
CContainer,
CForm,
CFormInput,
CFormLabel,
CFormSelect,
CNav,
CNavItem,
CNavLink,
CRow,
CTabContent,
CTable,
CTableBody,
CTableDataCell,
CTableHead,
CTableHeaderCell,
CTableR... |
webpackHotUpdate_N_E("pages/index",{
/***/ "./pages/index.js":
/*!************************!*\
!*** ./pages/index.js ***!
\************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBP... |
// Azgaar (azgaar.fmg@yandex.com). Minsk, 2017-2021. MIT License
// https://github.com/Azgaar/Fantasy-Map-Generator
"use strict";
const version = "1.64"; // generator version
document.title += " v" + version;
// Switches to disable/enable logging features
const PRODUCTION = window.location.host;
const DEBUG = localSt... |
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
import React, { Component } from 'react';
import axios from 'axios'
import ReactDOM from 'react-dom';
export default class ReservationStatus extends Component {
constructor(props){
super(props);
this.state = {
}
console.log('data from component', this.props.reservation);
console.log('da... |
'use strict';
const gulp = require('gulp');
const config = require('../../config');
const fs = require('fs');
const path = require('path');
const eslint = require('gulp-eslint');
module.exports = function() {
const themeLintFile = config.lintfiles.eslint;
let lintFile = path.join(__dirname, '../../lintfiles/', ... |
QUnit.testStart(function() {
var markup = '<div id="htmlEditor"></div>';
document.getElementById("qunit-fixture").innerHTML = markup;
}); |
import { UNSELECTED_SKU_VALUE_ID } from '../constants';
/*
normalize sku tree
[
{
count: 2,
k: "品种", // 规格名称 skuKeyName
k_id: "1200", // skuKeyId
k_s: "s1" // skuKeyStr
v: [ // skuValues
{ // skuValue
id: "1201", // skuValueId
name: "萌" // 具体的规格值 skuVa... |
/*
Copyright (C) 2019 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import './clipboard-link';
export default can.Component.extend({
tag: 'shortlink-component',
view: can.stache(
'<clipboard-link text:from="text">' +
'<i class="fa fa-google"/>Get Short Url... |
/*! grafana - v1.9.0 - 2014-12-02
* Copyright (c) 2014 Torkel Ödegaard; Licensed Apache License */
|
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {FormattedMessage, injectIntl} from 'react-intl';
import {Button, Header, Icon, Pagination, Table} from 'semantic-ui-react';
class UserList extends Component {
constructor(props) {
super(props);
this.state = {
... |
import React from 'react';
import { Carousel } from '../Carousel';
import { Background } from '../Background';
import { Item } from '../Item';
import { Arrow } from '../Arrow';
import { Pagination } from '../Pagination';
export default {
Carousel: {
component: Carousel,
props: {
duration: 1,
the... |
const { paginateResults } = require("./utils");
module.exports = {
Query: {
launches: async (_, { pageSize = 20, after }, { dataSources }) => {
const allLaunches = await dataSources.launchAPI.getAllLaunches();
// we want these in reverse chronological order
allLaunches.reverse();
const la... |
describe("Home Controller", function () {
var results = [
{
"Title": "Star Wars: Episode IV - A New Hope",
"Year": "1997",
"imdbID": "tt0076759",
"Type": "movie"
},
{
"Title": "Star Wars: Episode V - The Empire Strikes Back",
"Year": "1997",
"imdbID": "tt0080684",
"Type": "movie"
},
... |
var path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.scss']
},
module: {
loaders: [
{ test: /\.scss$/, loaders: ["style", "css", "sass"] },
... |
var fs = require('graceful-fs'), path = require('path'), configuration_handler = require('../../lib/handlers/configuration-handler'), LastfmAPI = require('lastfmapi'), mm = require('musicmetadata'), io = require('../../lib/utils/setup-socket').io;
dbschema = require('../../lib/utils/database-schema') , Album = dbschema... |
/**
* 这里是默认的支持react service-worker 的配置
*/
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates ... |
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "help",
aliases: ["h"],
description: "Display all commands and descriptions",
execute(message) {
let commands = message.client.commands.array();
let helpEmbed = new MessageEmbed()
.setTitle("Sindu Kanna v2.0 Help")
.s... |
import SpiralCurvePlugin from '../../plugins/spiralcurve-plugin.js';
class Demo extends Phaser.Scene {
constructor() {
super({
key: 'examples'
})
}
preload() {
this.load.atlas('flares', 'assets/images/particles/flares/flares.png', 'assets/images/particles/flares/flares... |
test("Canvas 3D", function() {
var WebGLRenderingContext = window.WebGLRenderingContext;
assert( !!WebGLRenderingContext, "WebGLRenderingContext supported" );
});
test("Canvas 3D Context", function() {
var WebGLRenderingContext = window.WebGLRenderingContext,
canvas = document.createElement("canvas"),
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=galleryItem.js.map |
import 'playground-elements/playground-ide.js'; |
'use strict';
angular.module('orders').filter('getDaysAfterBearingText', [
function() {
return function(value, list) {
var obj = _.find(list, function(obj) {
return parseInt(obj.id) === parseInt(value);
});
return obj ? obj.value : '';
};
}
]).filter('getHasFeverText', [
function() {
return funct... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
import {verify} from "../build/verify";
global.globalVerify = verify; |
import jsonp from '../common/js/jsonp'
import { commonParams, options } from './config'
import axios from 'axios'
export function getRecommend() {
const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg'
const data = Object.assign({}, commonParams, {
platform: 'h5',
uin: 0,
nee... |
import webpack from 'webpack'
import path from 'path'
const name = 'MockingjayGenerator'
const production = process.env.NODE_ENV === 'production'
const config = {
target: 'node-webkit',
entry: [
'immutable',
'./src/MockingjayGenerator.js'
],
output:{
path: path.join(__dirname, './build/com.luckym... |
'use strict';
const path = require('path');
const nock = require('nock');
let tvmaze;
module.exports = {
setup: () => {
tvmaze = nock('http://api.tvmaze.com');
tvmaze
.get('/schedule')
.query({
country: 'US',
date: '2013-02-01'
})
.times(2)
.replyWithFile(200, path.join(__dirname, 'fixtu... |
mycallback( {"ELECTION CODE": "P2012", "EXPENDITURE PURPOSE DESCRIP": "Contribution", "BENEFICIARY CANDIDATE OFFICE": "H", "PAYEE ZIP": "77387", "MEMO CODE": "", "PAYEE STATE": "TX", "PAYEE LAST NAME": "", "PAYEE CITY": "the Woodlands", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "", "PAYEE FIRST NA... |
define({"topics" : [{"title":"Post-Processing Subdirectories","shortdesc":"\n <p class=\"shortdesc\">When the MapR FS Standalone origin reads from subdirectories, it uses the subdirectory structure when archiving files\n during post-processing. \n </p>\n ... |
$(document).ready(function(){
//任务右侧详情的更多点击
$('#taskMore').click(function(e){
e.stopPropagation();
var _top=$(this).offset()['top'];
var _left=$(this).offset()['left'];
$('#taskMoreOper').css('left',_left-30).css('top',_top+30).show();
});
//点击右侧让更多消失
$('#yue-taskRight').click(function(){
$('#taskMoreOp... |
import { compose, createStore, applyMiddleware } from 'redux'
import { createLogger } from 'redux-logger'
import createSagaMiddleWare from 'redux-saga'
import { contracts } from 'chain-end'
import {
sagas as web3Sagas,
addInitialContractType,
addListeners,
} from 'web3-sagas'
import { all } from 'redux-saga/effec... |
/*
Copyright 2010 WebDriver committers
Copyright 2010 Google 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 la... |
var namespace = (function () {
var _ = require('node_modules/underscore/underscore.js');
var exports = {};
var dependencies = [];
var requires = [];
var old_builtins = {};
exports.set_global = function (name, val) {
global[name] = val;
dependencies.push(name);
return val;
};
exports.patch_builtin = func... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const assert = require("../../wrapper/assert-wrapper");
const { ObjectNamespace } = require("../object-namespace");
const { PlayerDesk } = require("../player-desk");
const { FACTION_DATA } = require("./faction.data");
const { globalEvents, world } = require("../../wrapper/api");
let _nsidNameToFaction = false;
let _pl... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// No Node.js APIs are available in this process because
// `nodeIntegration` is turned off. Use `preload.js` to
// selectively enable features needed in the rendering
// process.
console.log("this is test 1... |
//== Class definition
var LayoutBuilder = function() {
var exporter = {
init: function() {
$('#m-btn-howto').click(function(e) {
e.preventDefault();
$('#m-howto').slideToggle();
});
this.exportHtml();
this.exportHtmlStatic();
this.exportAngular();
},
startLoa... |
(function(global, factory){
"use strict";
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global));
})(this, function(global){
global.excerptHtml = function(html, l... |
/**
* 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 === '... |
// import './cashRecord.less'
export default class{
constructor($scope, RS, Layer, Core, $state, DT, Util, CS) {
this.$scope = $scope
this.RS = RS
this.DT = DT
this.Util = Util
this.Layer = Layer
this.Core = Core
this.$state = $state
this.cs = CS
... |
const Transaction = require('./transaction');
class TransactionPool {
constructor() {
this.transactions = [];
}
updateTransactions(transaction) {
let transactionWithId = this.transactions.find(t => t.id === transaction.id);
if (transactionWithId) {
this.transactions[th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.