text stringlengths 2 1.04M |
|---|
import assert from "assert"
import createNamespace from "../../create-namespace.js"
import defaultArray, * as nsArray from "../../fixture/cjs/export/array.js"
import defaultClass, * as nsClass from "../../fixture/cjs/export/class.js"
import defaultDefault, * as nsDefault from "../../fixture/cjs/export/default.js"
impor... |
(function(){
module("kendo attr", {
teardown: function(){
kendo.ns = "";
}
});
test("default ns is empty", function() {
equal(kendo.ns, "");
});
test("attr returns a data attribute", function() {
kendo.ns = "kendo-";
equal(kendo.attr("role"), "data-kendo-role");
});
test("attr handles em... |
config.$inject = [ '$stateProvider' ];
function config ($stateProvider) {
$stateProvider
.state('main.import-students', {
url: '/alumnos/importar-alumnos',
templateUrl: 'templates/components/main/import-students/import-students.html',
controller: "ImportStudentsController as vm",
onEnter: onStateEnter
... |
import { h } from 'vue'
export default {
name: "CommentOutline",
vendor: "Mdi",
type: "",
tags: ["comment","outline"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-comm... |
angular.module('portainer.app')
.factory('EndpointService', ['$q', 'Endpoints', 'FileUploadService',
function EndpointServiceFactory($q, Endpoints, FileUploadService) {
'use strict';
var service = {};
service.endpoint = function(endpointID) {
return Endpoints.get({id: endpointID}).$promise;
};
service.e... |
import { settings } from '../../../settings';
import { getUserPreference, getURL } from '../../../utils';
import { API } from '../api';
const getInfoFromUserObject = (user) => {
const {
_id,
name,
emails,
status,
statusConnection,
username,
utcOffset,
active,
language,
roles,
settings,
customF... |
import React from 'react';
import PropTypes from 'prop-types';
// Mui Example:
// https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Avatar/Avatar.js#L38
// eslint-disable-next-line prefer-arrow-callback
const ArrowRightCircle = React.forwardRef(function ArrowRightCircle(
props,
ref
) {
... |
/*Nav Start*/
var navFlag = false;
function showNav() {
if (navFlag === false) {
document.querySelector("#mainNav").style.width = "100%";
document.querySelector("#mNavBtn").style.transform="translateX(-100px)";
document.querySelector("#mNavBtn2").style.top="15px";
return navFlag = ... |
/*
*
* debounce(fn, interval[, self]); // returns a debounced function
* fn - function
* interval - time in ms
* self - (optional) explicit `this` for the eventually called function
*
* Usage: document.addEventListener(
* "mousemove"
* , limiter.debounce(function (e) { console.log(this, e); }, 500, d... |
webpackHotUpdate(0,{
/***/ "./src/Views/Posters.js":
/*!******************************!*\
!*** ./src/Views/Posters.js ***!
\******************************/
/*! exports provided: default */
/*! exports used: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony imp... |
import { Server, Model, belongsTo } from "miragejs";
/*
A model with a belongsTo association can be in six states
with respect to its association. This helper class
returns a child (and its association) in these various states.
The return value is an array of the form
[ child, parent ]
where the paren... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... |
/*! lozad.js - v1.10.0 - 2019-09-18
* https://github.com/ApoorvSaxena/lozad.js
* Copyright (c) 2019 Apoorv Saxena; Licensed MIT */
/**
* Detect IE browser
* @const {boolean}
* @private
*/
const isIE = typeof document !== 'undefined' && document.documentMode;
const defaultConfig = {
rootMargin: '0px',
thresho... |
define([
'kb_widget/bases/dataWidget',
'kb_service/client/workspace',
'kb_service/utils',
'kb_common/html'
], function(DataWidget, Workspace, serviceUtil, html) {
'use strict';
function factory(config) {
/**
* Utility function to build a table based on the given object.
... |
const hedValidator = require('hed-validator')
const utils = require('../../utils')
const Issue = utils.issues.Issue
module.exports = function checkHedStrings(events, headers, jsonContents) {
const issues = []
// get all headers associated with task data
const taskHeaders = headers.filter(header => {
const fi... |
/*
* Copyright 2016 Austin Lehman
*
* 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 to in... |
/**
* Admui-iframe v2.0.0 (http://www.admui.com/)
* Copyright 2015-2018 Admui Team
* Licensed under the Admui License 1.1 (http://www.admui.com/about/license)
*/
!function(e,t,n){"use strict";jQuery.components.register("selective",{mode:"default",defaults:{search:function(){return'<input class="'+this.namespace+'-s... |
/*!
diff v2.0.2
Software License Agreement (BSD License)
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
All rights reserved.
Redistribution and use of this software in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistribution... |
/*global angular*/
(function () {
angular
.module('simplAdmin.cms')
.factory('htmlWidgetService', widgetService);
/* @ngInject */
function widgetService($http) {
var service = {
getWidgetZones: getWidgetZones,
getHtmlWidget: getHtmlWidget,
create... |
module.exports = {
testEnvironment: "node",
globals: {
DB_JSON: JSON.stringify({
client: "pg",
connection: {
host: "127.0.0.1",
"port": "5432",
"database": "spoke_test",
"password": "spoke_test",
"user": "spoke_test"
},
}),
JOBS_SYNC: true,
J... |
/* global it, describe */
import { expect } from 'chai';
import FlowTemplate from '../src/template/flow-template';
import card from './cards/card.json';
describe('Flow Template', () => {
describe('Constructor', () => {
it('Should construct an instance', () => {
let instance = new FlowTemplate({ localesPat... |
import React from 'react'
import {Link} from 'react-router-dom'
import './Nav.css'
const Nav = () => {
return (
<nav>
<h2>MERN</h2>
<ul>
<li>
<Link to="/">Home</Link>
<Link to="/register">Register</Link>
... |
import {
TagLabel,
Tag,
Text,
Stack,
Divider,
Link,
Image,
Skeleton,
useColorMode,
ScaleFade
} from '@chakra-ui/react'
import { useMediaQuery } from 'react-responsive';
import {
FaGithub,
FaPython,
FaDocker,
FaDatabase,
FaJs,
FaReact,
FaCode,
FaW... |
// https://www.codewars.com/kata/5ce969ab07d4b7002dcaa7a1
const solve = s => {
const limit = ~~(s.length / 2);
for (let length = limit; length > 0; length--) {
const prefix = s.slice(0, length);
const suffix = s.slice(-length);
if (prefix === suffix) {
return length;
}
}
return 0;
} |
// @flow
import {isEqual} from 'lodash-es'
import * as ChatTypes from '../../constants/types/chat2'
import * as Chat2Gen from '../../actions/chat2-gen'
import * as TeamsGen from '../../actions/teams-gen'
import {type ChannelMembershipState} from '../../constants/types/teams'
import ManageChannels from '.'
import {
co... |
module.exports = [
require("./uri/ip"),
require("./uri/info"),
require("./google-news/google-news"),
require("./dict/countries"),
require("./elasticsearch/elasticsearch"),
// require("./nlp-uk/token"),
// require("./nlp-uk/ner")
]
.concat(require("./cypher"))
.concat(require("./mysql"))
.concat(require("./plantu... |
'use strict';
exports.__esModule = true;
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _componentOrElement = require('prop-types-extra/lib/componentOrElement');
var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
var _react = require('react')... |
const actions = {
SET_CLASS_STATE: 'SET_CLASS_STATE',
GET_CLASS_DATA: 'GET_CLASS_DATA',
}
export default actions |
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-valueof-err.case
// - src/class-fields/class-evaluation-error/cls-expr.template
/*---
description: Custom error evaluating a computed property name (field definitions in a class expression)
esid: sec-runtime-semantic... |
import * as tslib_1 from "tslib";
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { NgbM... |
export var $ = (s, d = document) => Array.from(d.querySelectorAll(s));
$.one = (s, d = document) => d.querySelector(s); |
module.exports = {
siteMetadata: {
title: 'Full-Stack Bootcamp!',
author: 'Artur Karpiński'
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-contentful',
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: proce... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { MemoryRouter } from 'react-router-dom';
import App from './App';
it('renders without crashing', () => {
const storeFake = (state) => ({
default: () => { },
subscribe: () => { },
dispatch: () =>... |
gdo.net.app["Maps"].drawEmptyMapTable = function (maxCol, maxRow) {
$("iframe").contents().find("#map_table").empty();
for (var i = 0; i < maxRow; i++) {
$("iframe").contents().find("#map_table").append("<tr id='map_table_row_" + i + "' row='" + i + "'></tr>");
for (var j = 0; j < maxCol; j++) ... |
let data = {
"body": "<path d=\"M31.93 19.2L17.33 4.6a2 2 0 0 0-1.41-.6H6a2 2 0 0 0-2 2v9.92a2 2 0 0 0 .59 1.41l14.6 14.6a2 2 0 0 0 2.83 0l9.9-9.9a2 2 0 0 0 .01-2.83zM9.65 11.31a1.66 1.66 0 1 1 1.66-1.66a1.66 1.66 0 0 1-1.66 1.66z\" class=\"clr-i-solid--badged clr-i-solid-path-1--badged\" fill=\"currentColor\"/><circl... |
const passport = require('passport');
const User = require('../models/user');
const LocalStrategy = require('passport-local').Strategy;
const FacebookStrategy = require('passport-facebook').Strategy;
//==============================================================================
// SESSION SERIALIZATION
//===========... |
var cobs = require('../');
function run(text, ws) {
var program = cobs.compileProgram(text, ws);
program.procedure = program.compileFunction();
var data = program.run(null);
if (data)
return data.working_storage;
else
return null;
};
exports['compile and run move'] = function (... |
const ghpages = require('gh-pages');
const { copyFileSync } = require('fs');
const { copySync } = require('fs-extra');
const { join } = require('path');
const { execSync } = require('child_process');
const basePath = join(process.cwd(), 'dist/app');
const branch = process.env.TRAVIS_BRANCH || execSync(`git branch | sed... |
var path = require('path');
var config = require('./config');
var loader = require('./loader');
var plugin = require('./plugin');
var { resolve } = require('./utils');
//基本配置
var webpackConfig = {
// entry: {},
cache: true,
// devtool: false,
// output: {},
resolve: {
modules: [
resolve('node_modul... |
import React, {
useEffect,
useState,
useCallback,
useLayoutEffect,
useRef,
useMemo,
} from "react";
import PropTypes from "prop-types";
import {
StyledSelectList,
StyledSelectLoaderContainer,
StyledPopoverContainer,
StyledSelectListTable,
StyledSelectListTableHeader,
StyledSelectListTableBody,
}... |
const express = require("express");
const Message = require('../model/messageModel');
const router = express.Router();
//mesaj ekleme kismi
router.post("/",async(req,res)=>{
const newMessage = new Message(req.body);
try {
const savedMessage = await newMessage.save();
res.status(200).json(savedM... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","cy",{title:"Canllawiau Hygyrchedd",contents:"Cynnwys Cymorth. I gau y deialog hwn, pwyswch ESC.",legend:[{name:"Cyffredinol",items:[{name:... |
export const GET_TYPPES = "GET_TYPPES"
export const CHANGE_TYPES = "CHANGE_TYPES"
import {api} from "./AY_API"
export function getTypes(){
return (dispatch)=>{
api("ebs.setting.getcheckset","",function(e){
dispatch({
type:GET_TYPPES,
types:e.types
});... |
define(
{
"toc":[
{
"heading":"Table of Contents",
"topics":[
{
"title":"List of Figures",
"href":"lof.html"
},
{
"title":"List of Tables",
"href":"lot.html... |
import { Component, Children } from 'react'
import { storeShape } from './PropTypes'
export default class Provider extends Component {
static propTypes = {
store: storeShape.isRequired
}
static childContextTypes = {
store: storeShape.isRequired
}
getChildContext () {
return {
store: this.... |
class Storage extends (require('../../BaseMethod').BaseMethod) {
constructor(props) {
super(props);
}
getByKey(request_key, callback) {
console.log(5, request_key[0]);
this.db.query("select * from storage where `request_key` = ? ORDER BY rand() limit 0,1",
[request_key[0].toLowerCase()], (q_err... |
/**
* Calculates a new result graph from the given source graph.
* @param {Object} config Configuration parameters.
* @constructor
*/
GraphView = function(config){
// Constructor with no arguments is used for subclasses.
if (arguments.length <= 0) return;
this['config'] = config == null ? {} : config;
this['c... |
define([], function() {
return function(config, element) {
'use strict'
const activeItemClass = 'rating__rate-item--active',
errorVisibleClass = 'rating__error--visible',
reviewError = document.getElementById(config.reviewError),
ratingElements = [...element.querySele... |
// Sepcific a new version, like 2.0.1 -> 2.0.2
const fs = require('fs')
const { spawnSync } = require('child_process')
const version = process.argv[2]
if (!version) {
throw Error('No version specified')
}
const files = ['package.json', 'chrome/manifest.json', 'octohint.safariextension/Info.plist']
files.slice(0,... |
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS PUB 180-1
* Version 2.1a Copyright Paul Johnston 2000 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
/*
*... |
// Update with your config settings.
module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: './data/database.db3'
},
useNullAsDefault:true,
migrations:{
directory:'./data/migrations'
},
seeds: {
directory: './data/seeds'
},
// add the follo... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var axios = _interopDefault(require('axios'));
var qs = _interopDefault(require('qs'));
(function (Stat) {
Stat["ok"] = ... |
var YUITest = require('yuitest').YUITest;
var mockery = require('mockery');
var Sequelize = require('sequelize');
var Assert = YUITest.Assert;
var sutPath = '../../../middleware/airbrakeNotifier.js';
var AirbrakeNotifier = require(sutPath);
function FakeAirbrake() {
this.errorNotified = null;
this.notify = f... |
// 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 to in writing, software
// distributed un... |
let listaDeGanhos = [10, 30, -10, -5, -1, 40]
let totalNegativos = 0
//seu loop aqui:
for(let i = 0; i< listaDeGanhos.length; i++){
if(listaDeGanhos[i] < 0){
totalNegativos++;
console.log(totalNegativos)
}
} |
var redis = require("ioredis");
var config = require("config");
var util = require("util");
//var resource = config.Host.resource;
//change and modify the secret
var redisip = config.Security.ip;
var redisport = config.Security.port;
var redispass = config.Security.password;
var redismode = config.Security.mode;
var r... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var querystring_builder_1 = require("@aws-sdk/querystring-builder");
function formatUrl(request) {
var protocol = request.protocol, path = request.path, hostname = request.hostname, port = request.port, query = request.query;
if (proto... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.Wrench = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentC... |
const express = require('express');
const mongoose = require('mongoose');
const routes = require('./routes')
const cors = require('cors')
const app = express();
mongoose.connect('mongodb+srv://omnistack:omnistack@cluster0-yv3gr.mongodb.net/week10?retryWrites=true&w=majority', {
useNewUrlParser: true,
useUnifi... |
"use strict";
require("./helpers/setup");
var actions = require('./helpers/actions');
var wd = require("wd"),
_ = require('underscore'),
serverConfigs = require('./helpers/appium-servers');
var TouchAction = require('wd').TouchAction;
var Q = require('q');
wd.addPromiseChainMethod('tap_once', actions.tap_onc... |
var assert = require('assert');
var revaluate = require('..');
var result = [];
for (var i = 0; i < 10; i++) {
var cls = revaluate([
'class Class {',
' set value(value) {',
' this[' + i + '] = value;',
' }',
'}',
'Class',
].join('\n'), __filename, function(output) {
return eval(out... |
let
images = document.images ,
images_total_count = images.length ,
images_loaded_count = 0 ;
for (let i = 0; i < images_total_count; i++)
{
image_clone = new Image();
image_clone.... |
import React from 'react';
import Radio from '@material-ui/core/Radio';
import RadioGroup from '@material-ui/core/RadioGroup';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormControl from '@material-ui/core/FormControl';
import FormLabel from '@material-ui/core/FormLabel';
function FormCo... |
var group___s_t_m8_a_f___s_t_m8_s_struct___c_a_n__t_8_page_8_p_a_g_e__0_8_m_d_a_r1 =
[
[ "DATA", "group___s_t_m8_a_f___s_t_m8_s.html#ae44f9e348e41cb272efa87387728571b", null ]
]; |
const util = require('../../utils/util.js');
const api = require('../../config/api.js');
const user = require('../../services/user.js');
import _gsTracker from '../../utils/gs_v3.8.5.15.js';
//获取应用实例
const app = getApp()
const options = {
data: {
floorGoods: [],
openAttr: false,
showChannel... |
function setHdrSectionPropFun() {
// ---------- Set ObjProperties
setHdrSectionProp('', viewBag.ObjKy, '', 'HdrSec1');
setHdrSectionProp('', viewBag.ObjKy, '', 'HdrSec2');
setHdrSectionProp('', viewBag.ObjKy, '', 'HdrSec3');
setHdrSectionProp('', viewBag.ObjKy, '', 'HdrSec4');
setHdrSectionPr... |
const mongoose = require("mongoose");
const { Schema } = mongoose;
const moment = require("moment");
const commentSchema = new Schema({
commentBody: {
type: String,
required: true,
minlength: 1,
maxlength: 300,
},
createdAt: {
type: Date,
default: Date.now,
get: (timestamp) => moment(... |
import { init } from "./classEditor";
import { init as serverInit } from "./server";
import { configureToasts } from "./toast";
configureToasts({
topOrigin: -48
});
window.addEventListener("load", () => {
serverInit(data => init(data));
}); |
/**
* @license Highstock JS v7.2.1 (2019-10-31)
*
* Parabolic SAR Indicator for Highstock
*
* (c) 2010-2019 Grzegorz Blachliński
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
mo... |
import AlertingModel from "./model";
import AlertingTemplate from "text-loader!./template.html";
import "bootstrap/js/alert";
/**
* @member AlertingTemplate
* @description Template used to create the alert message
* @memberof Alerting
*/
const AlertingView = Backbone.View.extend(/** @lends AlertingView.prototype */... |
import DistanceItem from './DistanceItem'
export default DistanceItem |
const ast = ["svg",{"attrs":{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","class":"feather feather-inbox"}},[["polyline",{"attrs":{"points":"22 12 16 12 14 15 10 15 8 12 2... |
var searchData=
[
['saph_5fa',['saph_a',['../group__saph__a__api.html',1,'']]],
['saph',['saph',['../group__saph__api.html',1,'']]],
['sdhs',['sdhs',['../group__sdhs__api.html',1,'']]],
['sfr',['sfr',['../group__sfr__api.html',1,'']]],
['sysctl',['sysctl',['../group__sysctl__api.html',1,'']]]
]; |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
import React from 'react';
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/Drawer';
import Hidden from '@material-ui/core/Hidden';
import IconButton from '@material-ui/core/IconButton';
import List from '@material-ui/core/List... |
import React from 'react'
const About = () => (
<div>
<br/>
<h3>About Recipe Box: </h3>
<p>Recipe Box is a cookbook in your pocket. Our service allows you to add and remove any recipes and saves all your recipes in our database so that they will never be lost. We hope to provide the best experience in ... |
const puppeteer = require('puppeteer');
/**
* To have Puppeteer fetch a Firefox binary for you, first run:
*
* PUPPETEER_PRODUCT=firefox npm install
*
* To get additional logging about which browser binary is executed,
* run this example as:
*
* DEBUG=puppeteer:launcher NODE_PATH=../ node examples/cross-bro... |
// (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
'470012617474726962757465732d6368617273657400057574662d3848001b617474726962757465732d6e617475... |
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 => nums2.inc... |
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 currentZone = thi... |
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 |... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.