text stringlengths 2 1.04M |
|---|
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.0.2',
LANGUAGE: 'python',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
NAVIGATION_WITH_KEYS: false,
SEARCH_... |
/*
* https://github.com/dy/bitmap-sdf
* Calculate SDF for image/bitmap/bw data
* This project is a fork of MapBox's TinySDF that works directly on an input Canvas instead of generating the glyphs themselves.
*/
var INF = 1e20;
function clamp(value, min, max) {
return min < max
? (value < m... |
import _ from 'lodash';
import { MOCKER_LIST_REQUEST_FAIL, MOCKER_LIST_REQUEST_SUCCESS } from './action';
import { SET_ACTIVE_MODULE_REQUEST_SUCCESS } from '../data-mocker';
const initialState = {
isLoaded: false,
list: []
};
function mockerListInfo(state = initialState, action) {
let { type, data } = action,... |
import s from "./ContentWrapper.module.css";
function ContentWrapper({ children }) {
return <div className={s.container}>{children}</div>;
}
export default ContentWrapper; |
var argv = require('minimist')(process.argv.slice(2));
var mail = require('./lib/send_mail'),
CronJob = require('cron').CronJob,
parser = require('cron-parser'),
fs = require('fs');
//Default Schedule is every Friday at 6PM
var default_schedule = '06 00 06 * 5',
default_timezone = "America/Los_Angeles";
if( ... |
import * as RNLocalize from 'react-native-localize';
import i18n from 'i18n-js';
import en from './en.json';
import bn from './bn.json';
const translations = { en, bn };
const { languageTag } = RNLocalize.findBestAvailableLanguage(
Object.keys(translations),
) || { languageTag: 'en' };
i18n.locale = languageTag;
... |
import React, {Component} from 'react'
import {Link} from 'react-router-dom'
import {connect} from 'react-redux'
import {CardElement, injectStripe} from 'react-stripe-elements'
import axios from 'axios'
import {createOrder} from '../../store/orderReducer'
//import {stringify} from 'querystring'
class CheckOut extends ... |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
var P... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import {
createBottomTabNavigator,
createAppContainer
} from 'react-navigation';
import SimpleScreen from... |
/*! Socket.IO.js build:0.8.7, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */
/**
* socket.io
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
(function (exports, global) {
/**
* IO namespace.
*
* @namespace
*/
var io = exports;
/**
* Soc... |
import React, { Fragment } from "react"
import classNames from "classnames"
import PropTypes from "prop-types"
import CategoryNavigationV2Container from "highline/containers/category_navigation_v2_container"
import { renderContentfulComponent } from "highline/utils/contentful/component_helper"
import { renderTabletNav... |
const tourPanelsList = [
{
id: 1,
text: "All About Birds",
},
{
id: 2,
text: "Water Cycle",
},
{
id: 3,
text: "It's easy being green",
},
{
id: 4,
text: "+",
}
]
export default tourPanelsList |
/**
* MSX SDK
* MSX SDK client.
*
* The version of the OpenAPI document: 1.0.8
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The IncidentCo... |
import React, { PureComponent } from "react";
import Button from "../reactLIB/Button";
class Email extends PureComponent {
constructor(props) {
super(props);
this.state = {
href: "#"
};
}
onMouseEnter() {
this.setState({
href: this.props.href.replace("O0O", ".").replace("_", "@")
... |
function calc_sound_level_dB(input_array) {
var rms, dB_level;
var temp = 0.0;
for (var i = 0; i < input_array.length; i++) {
// var input = input_array[i]/256.0 - 0.5;
temp = temp + Math.pow(input_array[i],2);
}
rms = Math.sqrt(temp/input_array.length);
dB_level = 20.0*Math.log10(rms);
return dB_level;
} |
var app = new Vue({
el: '#app',
data: {
content: null,
table: null,
search: null
},
computed: {
list(){
var list = this.table.data;
if (this.search) {
list = _.map(list, function(item){
var s = JSON.stringify(item).toLowerCase();
if (s.includes(this.search.toLowerCase())) {
retu... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Image from "../components/image"
import ImageFour from "../components/ImageFour"
import ImageThree from "../components/ImageThree"
import ImageFive from "../components/imageFive"
import ImageSix from "../components/... |
import SPECIAL_SCHEDULE from './special';
import RESET_DAYS from './resetDays';
import './index.css';
const WEEKDAYS = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'];
const SHORT_WEEKDAYS = WEEKDAYS.map(el => el.slice(0, 3));
const MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July',... |
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
import React from 'react';
import { Scenario as BannerScenario } from './banner.scenario.js';
import { Scenario as BannerActionBelowScenario } f... |
define([
'js/Constants',
'js/NodePropertyNames',
'js/Widgets/DiagramDesigner/DiagramDesignerWidget.DecoratorBase',
'../Core/ContractStateDecorator.Core',
'text!./ContractStateDecorator.DiagramDesignerWidget.html',
'css!./ContractStateDecorator.DiagramDesignerWidget.css'
], function (CONSTANTS,
nodePropert... |
export default {
id: 'contractManage',
name: '合同管理',
leaf: false,
children: [{
id: 'contractInput',
name: '合同录入',
leaf: true,
cache: true,
page: '/contractManage',
puzzle: 'contractManage',
children: [{
id: 'contractDetail',
name: '合同信息',
leaf: true,
child: tr... |
/*!
* Copyright 2019 MNF (illvart)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import logo from './icon/img_bos_logo.png'
import hide from './icon/icon_hide.png'
import offline from './icon/icon_offline.png'
import online from './icon/icon_online.png'
import standby from './icon/icon_standby.png'
import running from './icon/icon_now_running.png'
import failure from './icon/icon_motor_failure.png'... |
BrowserPolicy.content.allowOriginForAll("*.googleapis.com");
BrowserPolicy.content.allowOriginForAll("*.gstatic.com");
BrowserPolicy.content.allowOriginForAll("*.bootstrapcdn.com");
BrowserPolicy.content.allowFontDataUrl(); |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fi', {
button: 'Pohjat',
emptyListMsg: '(Ei määriteltyjä pohjia)',
insertOption: 'Korvaa koko sisältö',
options: 'Sisältöpohjan omin... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../setDate/index.js');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('../_lib/convertToFP/index.js');
var _index4 = _interopRequireDefault(_index3);
function _interopRequireDefault(obj) { ... |
$(function () {
utils();
$("ul.dropdown-menu [data-toggle='dropdown']").on("click", function (event) {
event.preventDefault();
event.stopPropagation();
$(this).siblings().toggleClass("show");
if (!$(this).next().hasClass('show')) {
$(this).parents('.dropdown-men... |
var arrayifyNumber = function(number){
// break number into subsets of 3 digits
var splitNum = number.toString().split('');
var placeArray = [];
while(splitNum.length > 3){
placeArray.unshift(splitNum.splice(splitNum.length-3));
}
placeArray.unshift(splitNum);
return placeArray;
};
module.exports =... |
const { expect } = require("chai");
const { describe, it } = require("mocha");
describe.only('Boolean test', () => {
const numero = 2;
it('El valor de true es verdadero', () => {
expect( true ).to.equal(true);
expect( true ).to.be.true;
});
it('El valor de false es falso', () => {
... |
/* jshint esversion: 6 */
/* *******************************************************************************************
* *
* Please read the following tutorial before implementing tasks: *
* http... |
document.body.addEventListener("mousemove", function (ev) {
let cHola = document.getElementById("cHola");
cHola.style.left = ev.clientX + "px";
cHola.style.top = ev.clientY + "px";
}) |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
// route-level code splitting
const createListView = id => () => import('../views/CreateListView').then(m => m.default(id))
const ItemView = () => import('../views/ItemView.vue')
const UserView = () => import('../views/UserView.vue')
const Home = (... |
const rpiDhtSensor = require('rpi-dht-sensor');
// This library uses BCM pin numbering system (check https://pinout.xyz/pinout/pin7_gpio4)
const dht = new rpiDhtSensor.DHT22(4);
console.log('THIS SCRIPT NEEDS TO BE RUN AS ROOT!');
function readSensor () {
const sensorData = dht.read();
const temperatureAndHumid... |
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// WinJS.Binding.List
//
(function listInit(global, undefined) {
"use strict";
var strings = {
get sparseArrayNotSuppor... |
const swap = require('../../helpers/swap');
const withTime = require('../../helpers/withTime');
function combSort(elements, gapGenerator) {
let reads = 0, saves = 0, memory = 1;
const time = withTime(() => {
let gap = elements.length;
let swapped = true;
while(gap > 1 || swapped) {
gap = gapGene... |
/* *
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __pr... |
goog.provide('os.ui.help.MisconfiguredCtrl');
goog.provide('os.ui.help.misconfiguredDirective');
goog.require('os.config.Settings');
goog.require('os.ui.Module');
goog.require('os.ui.list');
/**
* The login directive
*
* @return {angular.Directive}
*/
os.ui.help.misconfiguredDirective = function() {
return {
... |
import React from "react";
function Icon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
xmlnsOsb="http://www.openswatchbook.org/uri/2009/osb"
xmlnsXlink="http://www.w3.org/1999/xlink"
width="824.53"
height="961.911"
version="1.1"
viewBox="0 0 218.157 254.506"
>... |
//sources
// https://eloquentjavascript.net/code/chapter/17_canvas.js
// https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event
//initializing GLOBAL variables to create a canvas
let canvasDiv;
let canvas;
let ctx;
let WIDTH = 500;
let HEIGHT = 500;
//container array for mobs/enemies
let mobs = [];
... |
import React from 'react';
import { ApiEndpoint, getRandomNumber } from '../CampusClient';
class UserProfileImage extends React.Component {
state = {
rnd: 0,
};
async componentDidMount() {
this.setState({ rnd: getRandomNumber() });
}
render() {
return (
<img
className="img-fluid"
... |
(function( window, $, undefined ) {
/*
* smartresize: debounced resize event for jQuery
*
* latest version and complete README available on Github:
* https://github.com/louisremi/jquery.smartresize.js
*
* Copyright 2011 @louis_remi
* Licensed under the MIT license.
*/
var $event = $.event, resizeTimeout;
... |
/*! jQuery v1.11.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated,-dimensions,-offset | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
//# sourceMappingURL=jquery.min.map |
export default function ({ Name, historical }) {
const historicalList = historical.map(h => ({
y: h.close,
x: new Date(h.time * 1000),
}));
return {
title: {
text: Name.concat(' Dólar $'),
},
yAxis: {
title: {
text: 'Price',
},
},
xAxis: {
title: {
... |
export { default } from 'virtual-reality/components/visualization/page-setup/navbar/ar-settings-opener'; |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import Image from "../components/image"
import SEO from "../components/seo"
const IndexPage = () => (
<Layout>
<SEO title="Home" />
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site.</p>
<p>This wil... |
import React from 'react';
import _ from 'lodash';
import { Sparklines, SparklinesLine , SparklinesReferenceLine} from 'react-sparklines';
function averege(data) {
return _.round(_.sum(data)/data.length)
}
export default (props) => {
return (
<div>
{console.log(props)}
<Sparkl... |
//# sourceMappingURL=index.js.map |
// @flow
import { PAGE_SIZE } from 'constants/claim';
import * as ACTIONS from 'constants/action_types';
import * as SETTINGS from 'constants/settings';
import * as NOTIFICATION_TYPES from 'constants/subscriptions';
import { Lbryio, rewards, doClaimRewardType } from 'lbryinc';
import { selectSubscriptions, selectUnread... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("faa81dc98fc13338aca921d45eebae79.js");
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The "finally" token can not be used as identifier
*
* @path ch07/7.6/7.6.1/7.6.1.1/S7.6.... |
'use strict'
var ActionTypes = require('kasia/lib/constants/ActionTypes')
var modifyResponse = require('wp-api-response-modify')
/**
* Create wp-api-response-modify plugin configuration for Kasia.
* @param {*} _
* @param {Array} effects Array of wp-api-response-modify effects
* @returns {Object} Plugin configurat... |
import React from 'react';
const VideoDetail = ({
video
}) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-resp... |
const handler = require("../../utils/router");
const controller = require('./controller')
const router =
handler().
post("/post", controller.create).
get("/posts", controller.getAll).
delete("/post/:id", controller.remove).
get("/post/:id", controller.getById).
put("/post/:id", controller.update);
module.exports = ro... |
/**
* 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.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
"use strict";
const path = require('path');
const project = require('./aurelia_project/aurelia.json');
const bundles = require('./aurelia_project/bundles.json');
const tsconfig = require('./tsconfig.json');
let testSrc = [
{ pattern: project.unitTestRunner.source, included: false },
'test/aurelia-karma.js'
];
let... |
// @flow
import React, {Component} from 'react'
import {Box, Text, Icon, HOCTimers, NativeScrollView, NativeTouchableWithoutFeedback} from '../common-adapters/index.native'
import {globalStyles, globalColors, globalMargins} from '../styles'
import type {Props} from './index'
type Size = 'Closed' | 'Small' | 'Big'
typ... |
import $ from '../../core/renderer';
import { getPublicElement } from '../../core/element';
import { noop } from '../../core/utils/common';
import { each } from '../../core/utils/iterator';
import modules from './ui.grid_core.modules';
import ContextMenu from '../context_menu';
const CONTEXT_MENU = 'dx-context-menu';
... |
// Stolen from https://stackoverflow.com/a/31615643
const appendSuffix = n => {
var s = ['th', 'st', 'nd', 'rd'],
v = n % 100;
return n + (s[(v - 20) % 10] || s[v] || s[0]);
};
module.exports = function dateFilter(value) {
const dateObject = new Date(value);
const months = ['January', 'February', 'March',... |
/*
* not type checking this file because flow doesn't play well with
* dynamically accessing methods on Array prototype
*/
import { def } from '../util/index'
const arrayProto = Array.prototype
// 使用数组的原型创建一个新的对象
export const arrayMethods = Object.create(arrayProto)
// 修改数组元素的方法
const methodsToPatch = [
'push',
... |
module.exports = {
email: 'ahnafahamed4@gmail.com',
socialMedia: [
{
name: 'GitHub',
url: 'https://github.com/AhnafAhamed',
},
{
name: 'Instagram',
url: 'https://www.instagram.com/ahnafahmd',
},
{
name: 'Twitter',
url: 'https://twitter.com/ahnfahmd',
},
... |
// @flow
import * as React from 'react';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import Typography from '@material-ui/core/Typography';
import Close from '@material-ui/icons/Close';
export const editorBarHeig... |
import React, { Component } from 'react';
import Dropzone from 'react-dropzone'
import logo from './logo.svg';
import './App.css';
class App extends Component {
constructor() {
super()
this.state = { files: [] }
}
onDrop(files) {
this.setState({
files
});
}
render() {
return (
... |
import * as React from "react";
function IconBrandPaypal({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-brand-paypal" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill=... |
export { default as NewParentDashboard } from './NewParentDashboardContainer'; |
var jQuery = $ || {};
(function(window, $, undefined) {
$(document).ready(function() {
var ajax_url = ajaxUrl();
var QuestionnaireId = window.location.search.split('=')[1];
var surveyChart = function(){
var url1 = $(".nav_investigation a").attr('href');
$(".article_title1 a").attr('href',url1);
var url ... |
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Todos from './Todos';
import * as TodoActions from '../../actions/todos';
function mapStateToProps(state) {
return {
todos: state.todos.todos
};
}
function mapDispatchToProps(dispatch) {
return bindActionCreators(TodoA... |
// flow-typed signature: 639e1c376fbb2ebac698c24f663aebdc
// flow-typed version: <<STUB>>/husky_v^0.13.1/flow_v0.61.0
/**
* This is an autogenerated libdef stub for:
*
* 'husky'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* commun... |
import './search.actions';
import './player.actions'; |
import { Vector3 } from '../math/Vector3';
import { Vector2 } from '../math/Vector2';
import { Sphere } from '../math/Sphere';
import { Ray } from '../math/Ray';
import { Matrix4 } from '../math/Matrix4';
import { Object3D } from '../core/Object3D';
import { Triangle } from '../math/Triangle';
import { Face3 } from '..... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
$('#calendar').datepicker({
});
$('#calendar2').datepicker({
});
!function ($) {
$(document).on("click","ul.nav li.parent > a ", function(){
$(this).find('em').toggleClass("fa-minus");
});
$(".sidebar span.icon").find('em:first').addClass("fa-plus");
}
(window.jQuery);
$(window)... |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project'... |
export function genComponentModel(
el: ASTElement,
value: string,
modifiers: ?ASTModifiers
): ? boolean{
const { number, trim } = modifiers || {}
const baseValueExpression = '$$v'//$$v能够取到什么值?
let valueExpression = baseValueExpression
if(trim){//取消空格
valueExpression = `(typeof ${baseValueExpression} =... |
var searchData=
[
['hash_2ecpp_757',['Hash.cpp',['../Hash_8cpp.html',1,'']]],
['hash_2eh_758',['Hash.h',['../Hash_8h.html',1,'']]],
['hmac_2ecpp_759',['HMAC.cpp',['../HMAC_8cpp.html',1,'']]],
['hmac_2eh_760',['HMAC.h',['../HMAC_8h.html',1,'']]],
['hostresolver_2ecpp_761',['HostResolver.cpp',['../HostResolver_... |
import Vuex from 'vuex'
import state from './state'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'
export default () => new Vuex.Store({state, actions, mutations, getters}) |
import * as Magick from "./wasm-imagemagick/magickApi.js"
async function command(files, command){
return await Magick.Call(files, command.split(" "))
}
const args = (a=>(new URLSearchParams(window.location.search).forEach((e,o)=>a[o]=e),a))({}),
preparedImages = [],
preparedFiles = [];
function dataU... |
(function($){
$(function() {
window.app.FindView = Backbone.View.extend({
el: $('#content'),
initialize: function(){
_.bindAll(this, 'render');
this.render();
},
render : function() {
$(this.el).append("Find");
}
});
});
})(jQuery); |
angular.module('sampleApp', [
"wSQL"
])
.controller('SampleController', function($scope, wSQL) {
console.log(wSQL);
var rand = function(){
return Math.round(Math.random()*10);
};
// SELECT id, category_id FROM table1 WHERE id=? LIMIT 1
wSQL.select("id, category_id")
.from("tabl... |
import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import React, {PropTypes as RPT} from 'react';
import {connect} from 'react-redux';
import LoansList from './LoansList.react';
import * as loanActions from '../../../common/loans/actions';
class Page extends Component {
static p... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
import Link from 'next/link';
import React from 'react';
const BottonBlanco= ( props ) => {
return (
<div className="conten_slider_show_botton_contact" >
<Link href="/planes">
<a> <span className="slider_show_span_1_contact"> CLICK PARA VER PLANES </span> </a>
</Lin... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescribeKeyPhrasesDetectionJobCommand = void 0;
const models_0_1 = require("../models/models_0");
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
const smithy_... |
function AjaxProxy(as_ServletName){
this.gs_servletPath = "*.AS";
if(as_ServletName != null && as_ServletName != ""){
this.gs_servletPath = as_ServletName;
}
this.gs_parameter = "";
this.gs_cachedata = false;
this.responseInfo = null; // 缓存返回数据
}
AjaxProxy.prototype.setCacheData ... |
'use strict'
var semver = require('semver')
var shimmer = require('../shimmer')
var { getDBDestination } = require('../context')
module.exports = function (redis, agent, { version, enabled }) {
if (!semver.satisfies(version, '^2.0.0')) {
agent.logger.debug('redis version %s not supported - aborting...', versio... |
Questions = new Mongo.Collection("questions");
Questions.schema = new SimpleSchema({
text: {
type: String
},
status: {
type: String,
allowedValues: ['pending', 'selected', 'published', 'answered'],
autoValue: function() {
if (!this.isSet && this.isInsert) {
... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
mongoose = require('mongoose'),
Achievement = mongoose.model('Achievement'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
_ = require('lodash');
/**
* Create a Achievement
*/
expo... |
/*!
*
* Wijmo Library 5.20201.664
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Licensed under the GrapeCity Commercial License.
* sales@wijmo.com
* wijmo.com/products/wijmo-5/license/
*
*/
|
import invariant from 'invariant';
import React from 'react';
import splitReactElement from './splitReactElement';
export default function getNestedBlockTags(blockHTML) {
invariant(
blockHTML !== null && blockHTML !== undefined,
'Expected block HTML value to be non-null'
);
if (React.isValidElement(bloc... |
var m = require('mongodb-version-manager');
before(function(done) {
this.timeout(360 * 1000);
// Kill any running MongoDB processes and
// `install $MONGODB_VERSION` || `use existing installation` || `install stable`
m(function(err){
if(err) return console.error(err) && process.exit(1);
m.current(func... |
import React, { Component } from 'react';
import Header from './componentes/Header';
import Timeline from './componentes/Timeline';
class App extends Component {
render() {
return (
<div id="root">
<div className="main">
<Header/>
<Timeline/>
</div>
</div>
);
}
}
export... |
const path = require('path');
module.exports = {
mode: 'production',
entry: {
index: './src/index',
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: 'beta',
libraryTarget: 'umd',
globalObject: "typeof self !== 'undefined... |
module.exports = function send(code, payload, extra) {
const responses = {
200: {
code: 200,
status: 'success',
message: extra || 'operation completed successfully',
payload,
},
201: {
code: 201,
status: 'created',
message: `${extra} created successfully`,
p... |
// @flow
import ReactDOM from 'react-dom';
import * as React from 'react';
import { Component } from 'react-simplified';
import { HashRouter, Route, NavLink } from 'react-router-dom';
import { Alert, NavBar, Form, Card, Button } from '../../widgets';
import { userService } from '../../services/UserService.js';
import ... |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { addDependencies } from './dependenciesAdd.generated.js';
import { divideDependencies } from './dependenciesDivide.generated.js';
import { factorialDependencies } from './dependenciesFactorial.generated.js';
import { isIntegerDependencies } from ... |
/** @type {import('@alkafinance/eslint-config/eslint').ESLintConfig} */
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
settings: {
'import/resolver': {
typescript: {
directory: process.cwd(),
extensions: ['.js', '.ts', '.j... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world, backgroundImg;
var canvas, angle, tower, ground, cannon;
var balls = [];
var boat
var boats=[]
function preload() {
backgroundImg = loadImage("./assets/background.gif");
... |
'use strict';
function shouldIgnoreMessage(message) {
return (
[
'url',
'browsertime.navigationScripts',
'error',
'sitespeedio.summarize',
'sitespeedio.prepareToRender',
'sitespeedio.render',
'html.finished',
'browsertime.har',
'browsertime.config',
'br... |
const I = actor();
const retryCount = 3;
module.exports = {
fields: {
headerText: 'Other people in the case',
textareaText: 'Testing text area',
submit: 'button[type="submit"]',
otherPeopleAddress: 'othersToNotify_0_address_address'
},
async otherPeopleInTheCase() {
await I.retry(retryCount)... |
var timeDelta = require('../lib/time-delta.js');
timeDelta.addLocale('sl_si', {
"long": {
"years": {
"one": "{0} leto",
"two": "{0} leti",
"few": "{0} leta",
"other": "{0} let"
},
"months": {
"one": "{0} mesec",
"two": "... |
'use strict'
/*
|--------------------------------------------------------------------------
| Routes
|--------------------------------------------------------------------------
|
| Http routes are entry points to your web application. You can create
| routes for different URLs and bind Controller actions to them.
|
| ... |
/**
* Cloud Manager API
* This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET reque... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.