text stringlengths 2 1.04M |
|---|
/*
* JSARToolkit
* --------------------------------------------------------------------------------
* This work is based on the original ARToolKit developed by
* Hirokazu Kato
* Mark Billinghurst
* HITLab, University of Washington, Seattle
* http://www.hitl.washington.edu/artoolkit/
*
* And the NyARToolk... |
var express = require('express');
router = express.Router(),
fs = require('fs'),
path = require('path'),
multer = require('multer'),
upload = multer(),
request = require('request'); // for parsing multipart/form-data
router.post('/', upload.array(), function (req, res, next) {
//1.获取客户端传来的src_str字符串=>判断是base64还... |
var __webpack_exports__ = {};
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i... |
var NAVTREEINDEX25 =
{
"_n_e_split_8h.xhtml":[9,0,0,2,4,0,112],
"_n_e_split_8h_source.xhtml":[9,0,0,2,4,0,112],
"_n_e_stack_layer_8cpp.xhtml":[9,0,3,2,3,0,113],
"_n_e_stack_layer_8cpp_source.xhtml":[9,0,3,2,3,0,113],
"_n_e_stack_layer_8h.xhtml":[9,0,0,2,4,0,113],
"_n_e_stack_layer_8h_source.xhtml":[9,0,0,2,4,0,113],
"_... |
/**
* Created by asus on 2016/12/6.
*/
import React, { Component } from 'react';
import Search from '../../Component/NewComponent/Search';
import '../../Stylesheets/App/homePage.css';
export default class SellerSearchLocation extends Component {
render(){
return(
<div className="containerNav... |
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connnection');
class Category extends Model {}
Category.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
category_name: {
type: DataTyp... |
/*!
* ${copyright}
*/
sap.ui.define([
'sap/ui/Device',
'sap/ui/base/EventProvider',
'sap/ui/core/InvisibleText',
'sap/ui/core/ListItem',
'sap/ui/core/ResizeHandler',
'sap/ui/core/ValueStateSupport',
'sap/m/library',
'sap/ui/core/library',
'sap/m/Bar',
'sap/m/Toolbar',
'sap/m/Button',
'sap/m/ToggleButton'... |
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// '<%= config.src %>/templates/pages/{,*/}*.hbs'
// use this if you want to match all subfolders:
// '<%= config.src %>/templates/pages/**/*.hbs'
const yaml = require('js-yaml');
const fs = require('fs').promises;
const fse = ... |
import http from 'utils/http';
// import { delay, random } from 'feewee/utils';
import { H5_SERIES_INFO } from 'utils/api';
export const getSeriesInfo = function(params) {
return /* delay(FAKE_FLASH_SALE) || */http.get(H5_SERIES_INFO, { params })
}; |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* String.prototype.replace (searchValue, replaceValue)
*
* @path ch15/15.5/15.5.4/15.5.4.11/S15.5.4.11_A1_T14.js
* @description Instance is string, searchValue is regular expressi... |
import analyze from "rollup-plugin-analyzer";
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import resolve from '@rollup/plugin-node-resolve';
import scss from './rollup-plugin-scss';
import typescript from 'rollu... |
const _ = require("lodash");
/**
* Throws an ApolloError if context body contains a bad request
* @param contextBody - body of the context object given to the resolver
* @throws ApolloError if the body is a bad request
*/
function checkBadRequest(contextBody) {
if (_.get(contextBody, "statusCode", 200) !== 200... |
/**
* Error de validacion.
*/
export default class ValidationException extends Error {
/**
*
* @param message
* @param validations Objeto que contiene los errores de validacion.
* la key es el nombre del atributo y el objeto contiene
* path (ruta hasta par... |
import React, { Component } from 'react';
import produce from "immer";
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.state = {
peso: 0.0,
altura: 0.0,
idade: 18,
gorduraCorporal: 0,
sexo: false,
atividade: 0,
cunningham: nu... |
(function () {
'use strict';
describe('Teams Route Tests', function () {
// Initialize global variables
var $scope,
TeamsService;
//We can start by loading the main application module
beforeEach(module(ApplicationConfiguration.applicationModuleName));
// The injector ignores leading and... |
const packageJson = require("../package.json")
module.exports = {
artifacts: {
default: {
WitnetDecoderLib: "WitnetDecoderLib",
WitnetParserLib: "WitnetParserLib",
WitnetPriceRouter: "WitnetPriceRouter",
WitnetProxy: "WitnetProxy",
WitnetRandomness: "WitnetRandomness",
WitnetRe... |
#!/usr/bin/env node
'use strict';
var Promise = require('lie');
var watch = require('node-watch');
var http_server = require('http-server');
var spawn = require('child_process').spawn;
var queryParams = {};
if (process.env.ADAPTERS) {
queryParams.adapters = process.env.ADAPTERS;
}
if (process.env.AUTO_COMPACTION)... |
var classd_mesh_effect_1_1d_mesh_vertex_format_1_1d_float_data =
[
[ "m_data", "classd_mesh_effect_1_1d_mesh_vertex_format_1_1d_float_data.html#a5eb418f348513cd9450df44b6dc81db8", null ],
[ "m_indexList", "classd_mesh_effect_1_1d_mesh_vertex_format_1_1d_float_data.html#a354ecf71b8ef590c511d43d1c80e750a", null ]... |
'use strict';
if (!Array.prototype.find) {
Object.defineProperty(Array.prototype, 'find', {
value: function(predicate) {
// 1. Let O be ? ToObject(this value).
if (this == null) {
throw new TypeError('"this" is null or not defined');
}
var o = Object(this);
// 2. Let len be... |
// flow-typed signature: eb6c21ff3cc99d8fb41df5cded107d16
// flow-typed version: <<STUB>>/eslint-plugin-promise_v^4.0.1/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-promise'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to sha... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { __decorate, __read } from "tslib";
import { isPlatformBrowser } from '@angular/common';
import { APP_INITIAL... |
const tmp = require('tmp');
tmp.setGracefulCleanup();
const webpack = require('webpack');
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai'],
files: [
'test/**/*.spec.ts'
],
mime: { 'text/x-typescript': ['ts'] },
webpack: {
... |
import assert from 'assert';
import {
fulfilledActionCreator,
initActionCreator,
pendingActionCreator,
rejectedActionCreator
} from '../src/statefulActionCreators';
import {
fulfilledType,
rejectedType,
pendingType,
initType
} from '../src/actionNames';
describe('statefulActionCreators', () => {
cons... |
import defaultColors from './colors';
import colorfn from 'color';
import { increaseIntensivity, decreaseIntensivity, grayscaleCompatible } from '../utils/colors';
const colors = {
...defaultColors,
primary: defaultColors.red,
primaryDark: defaultColors.blueDark,
fontLight: '#efefef',
font: '#dddddd',
fon... |
var assert = require('assert');
var equal = require('assert-dir-equal');
var Metalsmith = require('metalsmith');
var pandoc = require('..');
var fs = require('fs');
describe('metalsmith-pandoc', function(){
it('should convert markdown files to html', function(done){
Metalsmith('test')
.use(pandoc())
.des... |
/**
* @overview the text componment
* @component#iChart.Text
* @extend#iChart.Component
*/
iChart.Text = iChart.extend(iChart.Component,{
configure:function(){
/**
* invoked the super class's configuration
*/
iChart.Text.superclass.configure.apply(this,arguments);
/**
* indicate the... |
function formatDuration (seconds) {
let time = { year: 31536000, day: 86400, hour: 3600, minute: 60, second: 1 },
res = [];
if (seconds === 0) {
return 'now';
}
for (let key in time) {
if (seconds >= time[key]) {
let val = Math.floor(seconds/time[key]);
... |
import React from 'react'
import { Icon } from './Icon'
import { dl, mp, rg } from './fragments'
export const RoundTextFields = /*#__PURE__*/ props => <Icon {...props}>
<path d={"M2.5 5.5C2.5 6.33 3.17 7 4 7h3.5v10.5" + rg + "V7H14" + dl + "S14.83 4 14 4H4" + mp + "zM20 9h-6" + mp + "S13.17 12 14 12h1.5v5.5" + rg + ... |
const dbConfig = require('./pg_conf');
var knex = require('knex')(dbConfig);
Bookshelf = require('bookshelf')(knex);
Bookshelf.knex.schema.createTable('apkcontent_tags', function (table) {
table.increments('id');
table.integer('apkcontent_id').unsigned().references('apkcontent.id');
table.integer('tag_id')... |
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.6
* Copyright (C) 2019 Oliver Nightingale
* @license MIT
*/
!function(){var e,t,r,i,n,s,o,a,u,l,c,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,b,P,lunr=function(e){var t=new lunr.Builder;return t.pipeline.add(lunr.trimmer,lunr.stopWordFilte... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue ap... |
import React from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'gatsby';
import { Section, Container } from 'bloomer';
import get from 'lodash/get';
import Layout from '../../components/2020/Layout';
import BlogMetaTags from '../../components/blog-post/BlogMetaTags';
import BlogHero from '../../... |
import React, { useState } from "react";
const teams = [
{
id: 1,
thoroughResearch: false,
designThinkingMethodology: false,
featureListing: false,
valueBasedFeatures: false,
designForUserXP: false,
prototypeAchieved: false,
codeArchitecture: false,
... |
/**
* cache structures, multiple cache strutures
* for example:
* mostly usage, say multiple times request with the same query conditions and return the same result, then get the data from cache data, or else get the data from database
*
*/ |
import React, { useState, useEffect } from "react";
import { Form, Row, Col, Button, Spinner } from "react-bootstrap";
import { listUsersAPI } from "../../api/usuarios";
import { createDeptAPI, editDeptAPI } from "../../api/departamentos";
import { toast } from "react-toastify";
import "./CreateDept.scss";
export def... |
const StackAggregator = require('../src/stack-aggregator')
const assert = require('assert')
describe('StackAggregator', () => {
describe('.addStacks(buffer)', () => {
it('adds each stack in the double-LF-separated output buffer', () => {
const aggregator = new StackAggregator()
aggregator.addStacks(... |
export const c_calendar_month__date_hover_BackgroundColor = {
"name": "--pf-c-calendar-month__date--hover--BackgroundColor",
"value": "#06c",
"var": "var(--pf-c-calendar-month__date--hover--BackgroundColor)"
};
export default c_calendar_month__date_hover_BackgroundColor; |
// Query notification with custom message retrieved via HTML
// Build protoDebug, disable original and test debug.fetch in production build
// Ensure template is up-to-date with protoBrowser
// Check viability of iframe address retreival via postMessage
// Find a way to open new window in default browser
//
// Check... |
/* @flow */
import {
MembersInput,
MembersListResponse,
ModulesInject,
} from '../../flow_interfaces';
import operationConstants from '../../constants/operations';
import utils from '../../utils';
export function getOperation(): string {
return operationConstants.PNGetMembersOperation;
}
export function vali... |
'use strict';
var React = require('react'),
_ = require('lodash'),
Carousel = require('merry-go-round/Carousel');
var MAX_WIDTH = 700/*px*/;
var MARGIN = 15/*px*/;
var ANIMATION_DURATION = 250/*ms*/;
var PageView = React.createClass({
render: function() {
return (
<a href={this.props.page.url}>
... |
import request from '@/utils/request'
// 跑马灯列表
export function LampList(data) {
return request({
url: '/Notice/LampList',
method: 'get',
params: data
})
}
// 删除
export function DelLamp(data) {
return request({
url: '/Notice/DelLamp',
method: 'post',
data
})
}
// 编辑
export function Edi... |
import { h, Component, render } from "/web_modules/preact.js";
import htm from "/web_modules/htm.js";
import App from "./app.js";
import Hammerhead from "./hammerhead.js";
const html = htm.bind(h);
class Index extends Component {
render() {
return html`
<${App} />
<${Hammerhead} animal="Mango the Q... |
import Ember from 'ember';
import layout from './template';
export default Ember.Component.extend({
layout,
panelActions: Ember.inject.service(),
dependencyChecker: Ember.inject.service(),
shouldAnimate: Ember.computed.and('dependencyChecker.hasLiquidFire', 'animate'),
group: null, // passed in if rendered... |
module.exports = {
printWidth: 80,
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
semi: false,
}; |
require('colors');
let path = require('path');
let Db = require(path.join(process.env.DIR, 'auxmod', 'mongodb'));
let inspect = require('util').inspect;
module.exports = async function groupNewChatMember(ctx){
LOG_FUNC(arguments, __filename);
ctx.reqInfo += ' ' + String(ctx.message.new_chat_participant.id).cya... |
const express = require("express");
const router = express.Router();
const gifCtrl = require("../controllers/gif");
router.post("/gifs", gifCtrl.createGif);
router.delete("/gifs/:gifId", gifCtrl.deleteGif);
router.post("/gifs/:gifId/comment", gifCtrl.createGifComment);
router.get("/gifs/:gifId", gifCtrl.getOneGif);
m... |
/**
* Created by emamoshin on 01.06.2017.
*/
const express = require("express");
const proxy = require("http-proxy-middleware");
const bodyParser = require("body-parser");
const app = express();
const options = {
target: "https://n2o.i-novus.ru/next/demo/",
changeOrigin: true,
ws: true
};
const exampleProxy ... |
(function ($) {
/**
* Generate an indented list of links from a nav. Meant for use with panel().
* @return {jQuery} jQuery object.
*/
$.fn.navList = function () {
const $this = $(this)
$a = $this.find('a'),
b = []
$a.each(function () {
const $this = $(this)
const indent = Math.max... |
import React, { Component } from 'react';
import Aux from '../../../hoc/Aux/Aux';
import Button from '../../UI/Button/Button';
class OrderSummary extends Component {
// This could be a functional component, does not have to be a class.
componentWillUpdate() {
console.log('[OrderSummary]: Will Update');
}
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.If_Else = void 0;
const entorno_1 = require("../interfaces/entorno");
const instruccion_1 = require("../interfaces/instruccion");
class If_Else extends instruccion_1.Instruccion {
constructor(linea, condicionIF, instruccionIF, inst... |
$(document).ready(function() {
let $btns = $(".project-area .button-group button");
$btns.click(function(e) {
$(".project-area .button-group button").removeClass("active");
e.target.classList.add("active");
let selector = $(e.target).attr("data-filter");
$(".project-area .grid").isotope({
fi... |
(function() {
var $w = $(window);
var currentOffset;
var waypoint;
var waypoints = [];
var windowHeight;
$.loadCardImgAsync = function(cardCssClass, imgSrc) {
var asyncImg = new Image();
asyncImg.onload = function() {
$('.' + cardCssClass + ' > .mdl-card__title').addClass('bg-img');
};
... |
const Geom = require('./base');
Geom.Point = require('./point');
Geom.PointJitter = Geom.Point.Jitter;
Geom.PointStack = Geom.Point.Stack;
Geom.Path = require('./path');
Geom.Line = require('./line');
Geom.LineStack = Geom.Line.Stack;
Geom.Interval = require('./interval');
Geom.IntervalStack = Geom.Interval.Stack;
Geom... |
var _layout_anchor_8cs =
[
[ "LayoutAnchor", "_layout_anchor_8cs.html#a582a0f5a0bd8598ce5b85799a1e8c193", [
[ "UpperLeft", "_layout_anchor_8cs.html#a582a0f5a0bd8598ce5b85799a1e8c193a6f43ca0793e0c68184761673278f4ca4", null ],
[ "UpperCenter", "_layout_anchor_8cs.html#a582a0f5a0bd8598ce5b85799a1e8c193ad04... |
import { LOGIN_SUCCESS, LOGIN_FAIL, LOGOUT, ACCOUNT_DELETED, REGISTER_SUCCESS, REGISTER_FAIL, USER_LOADED, USER_FAILED, FORGOT_PASSWORD, FORGOT_PASSWORD_FAIL, EDIT_ACCOUNT } from "../actions/Types";
const initialState = {
user: null,
isAuthenticated: false,
loading: true,
isRegistered: false,
spons... |
[{"Owner":"hen","Date":"2016-01-21T04:12:13Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tIm trying to develop character controls where the rotation of the mesh should define the direction._lt_br_gt_\n\tThe character is using quaternoin rotations and as discussed in another thread the quaternoin... |
'use strict';
angular.module('phonecat.core')
.factory('Phone', Phone);
Phone.$inject = ['$resource'];
function Phone($resource) {
return $resource('phones/:phoneId.json', {}, {
query: {method:'GET', params:{phoneId:'phones'}, isArray:true}
});
} |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { Component, Input, HostBinding } from '@angular/core';
import { sidebarCssClasses } from '../shared/index';
var AppSidebarComponent = /** @class */ (function () {
function AppSidebarComponent() {
}
/**
* @return ... |
/*jslint browser:true */
var jQuery;
var wssh = {};
(function() {
// For FormData without getter and setter
var proto = FormData.prototype,
data = {};
if (!proto.get) {
proto.get = function (name) {
if (data[name] === undefined) {
var input = document.querySelector('input[name="' + nam... |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
// @Filename: /ns.ts
var ns;
(function(ns1) {
var Class = function Class() {
"use strict";
_classCallCheck(this, Class);
};
... |
import React, { Component } from 'react';
import { withStyles } from '@material-ui/core';
import { connect } from 'react-redux';
import Paper from '@material-ui/core/Paper';
import GridList from '@material-ui/core/GridList';
import IconButton from '@material-ui/core/IconButton';
import Card from '@material-ui/core/Car... |
var defaults_dict = {
'downscroll_speed_opt': 75,
'prev_key_opt': 37, // L arrow
'next_key_opt': 39, // R arrow
'alttext_key_opt': 32, // spacebar
'random_key_opt': 82, // 'r'
};
chrome.storage.sync.set({default_vals: defaults_dict}); |
/* See LICENSE for terms of usage */
"style scrollbar.css"
// var logs = [];
// function D() {
// var args = []; args.push.apply(args, arguments);
// console.log(args.join(' '));
// // logs.push(args.join(' '));
// }
// window.showLog = function() {
// document.querySelector('.scrollable').innerHTML... |
import React from 'react';
import createSvg from './utils/createSvg';
export default createSvg(<path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2zm-8 4h2v-2h-2v2zm-7-8h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.4... |
// Generated by CoffeeScript 1.12.5
(function() {
angular.module('app').factory('cache', [
function() {
var services;
services = {
set: function(key, value) {
var data;
data = JSON.stringify(value);
return window.localStorage.setItem(key, data);
},
... |
/**
* Module Dependencies
*/
var async = require('async');
var _ = require('lodash');
var usageError = require('../../utils/usageError');
var utils = require('../../utils/helpers');
var normalize = require('../../utils/normalize');
var Deferred = require('../deferred');
var getRelations = require('../../utils/getRel... |
import * as utils from "./utils"
var randomSource /* RandomUint8ArrayProvider */
export function randomBytes(length) {
if (utils.isDefined(randomSource))
return randomSource.generate(length)
// Relies on https://developer.mozilla.org/en-US/docs/Web/API/RandomSource
// https://www.w3.org/TR/WebCryptoAPI/#Ran... |
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { useState } from '@wordpress/element';
import ProductControl from '@woocommerce/block-components/product-control';
import { Placeholder, Button, Toolbar } from '@wordpress/components';
import { BlockControls } from '@wordpress/block-editor';... |
import Unicode from "../unicode";
import formatter from "../formatter/json";
import csvToJson from './csvToJson';
import tableToJson from './tableToJson';
import jsonToTable from './jsonToTable';
import {stringify} from 'csv-stringify/sync';
import {parse as qsParse, stringify as qsStringify} from "qs";
// 校验语法
export ... |
import { getStore } from '@tarojs/mobx-common'
const proxiedInjectorProps = {
isMobxInjector: {
value: true,
writable: true,
configurable: true,
enumerable: true
}
}
function mapStoreToProps(grabStoresFn, props) {
let newProps = {}
for (let key in props) {
if (props.hasOwnProperty(key)) {
... |
OC.L10N.register(
"customgroups",
{
"Custom Groups" : "Grupe Vetjake",
"The group name can not be empty or start with space. The group name should at least have 2 characters or maximum 64 characters. Or kindly check if a group with this name already exists" : "Emri i grupit s’mund të jetë i zbrazët apo ... |
"use strict";
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object... |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
class Counter extends Component {
state = {
counter : 0
};
incrementCounter = (value) => {
//Update counter value
let counterNew = this.state.counter + value;
this.setState({
counter: cou... |
import React from 'react'
import {adminFetchUsers} from '../store/admin_store/admin_users'
import {connect} from 'react-redux'
export class AdminAllUsers extends React.Component {
componentDidMount() {
this.props.adminFetchUsers()
}
render() {
const users = this.props.adminUsers
return (
<div>
... |
import React, { Component } from "react";
import { Provider } from "react-redux";
import { Playground, store } from "graphql-playground-react";
import "./index.css";
const fetch = window.fetch;
window.fetch = function () {
arguments[1].credentials = "include";
return Promise.resolve(fetch.apply(global, arguments)... |
/*=======================cmd-min.js===========================*/
/*
Copyright 2012, KISSY UI Library v1.40dev
MIT Licensed
build time: Aug 27 10:38
*/
KISSY.add("editor/plugin/back-color/cmd",function(e,c){var d={element:"span",styles:{"background-color":"#(color)"},overrides:[{element:"*",styles:{"background-color":n... |
(function() {
$(".delete").on("submit", function(){
return confirm("Souhaitez-vous supprimer cet élement ?");
});
})($) |
import React from 'react';
import styles from './SimulationSettings.module.css';
export default function SimulationSettings({
simulationState,
onSettingChange,
onRestartButtonClick,
}) {
return (
<div className={ styles.container }>
<div className={ styles.form }>
<label>
Initial sick ... |
import { Marker } from '@antv/g-canvas/lib/shape';
export default function(G6){
G6.registerBehavior('hoverNodeActived', {
getEvents() {
return {
'node:mouseenter': 'onNodeEnter',
'node:mouseleave': 'onNodeLeave',
'anchor:mouseleave': 'onAnchorLeave',
}
},
onAnchorLeave(... |
module.exports = (tracker, message) => {
if(message.author.bot || !message.guild) return;
if(message.content.indexOf('i!') !== 0) return;
const args = message.content.slice('i!'.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
const db = require('quick.db');
const cmd =... |
(this.webpackJsonpmaintenance=this.webpackJsonpmaintenance||[]).push([[0],[,,,function(e,n,t){e.exports=t.p+"static/media/support-maintenance.0c1ea6ce.png"},function(e,n,t){e.exports=t(12)},,,,,function(e,n,t){},function(e,n,t){},function(e,n,t){},function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),c=t(2),r=t.n(c),... |
import session from "./session.js"
const API_ROOT = process.env.API_ROOT
export async function api(url, data = null, method = null) {
try {
let response;
if (data) {
response = await fetch(API_ROOT + url, {
method: method || "POST",
cache: "no-cache",
... |
function SvgOpenInNewOffOutlined(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path fill='none' d='M0 0h24v24H0z' />
<path d='M16.79 5.8L14 3h7v7l-2.79-2.8-4.09 4.09-1.41-1.41 4.08-4.08zM19 12v4.17l2 2V... |
import React, { useState, useEffect } from "react";
import { useSubscriptions } from "../core/hooks";
import {
Input,
Stack,
Text,
HStack,
useRadioGroup,
FormControl,
FormErrorMessage,
ModalBody,
ModalCloseButton,
ModalHeader,
Button,
ModalFooter,
Spinner,
IconButton,
} from "@chakra-ui/reac... |
const path = require('path')
const webpack = require('webpack')
const newConfig = require('./webpack.entry')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const common = {
// 入口配置
entry: newConfig.addEntry(),
// 打包输出配置
output: {
fi... |
const puppeteer = require('puppeteer')
// TODO
// const pti = require('puppeteer-to-istanbul')
// const { copyFile } = require('fs').promises
const { log, error, logRaw, logWrite } = require('./log')
// wrap our convoluted _run() function in a pure Promise that can handle
// both standard throws and the callback that ... |
'use strict';
var expect = require('chai').expect;
describe('A top-level Suite', () => {
describe('Nested Suite', () => {
it('with passing test', () => {
return browser
.url('/index.html')
.waitForExist('#clickable')
.click('#clickable')
.getValue('#result')
.then... |
// Test the throughput of the fs.WriteStream class.
'use strict';
const path = require('path');
const common = require('../common.js');
const filename = path.resolve(process.env.NODE_TMPDIR || __dirname,
`.removeme-benchmark-garbage-${process.pid}`);
const fs = require('fs');
const bench... |
import { connect } from 'react-redux'
import { pure } from "recompose"
import _ from 'underscore'
import * as actions from './actions'
import Sketch from "./Sketch"
import Path from './shapes/Path'
const mapStateToProps = (state, ownProps) => {
const {
selection,
sketch: {
vertices,
shapes
}... |
/* eslint-disable */
// TODO: Remove previous line and work through linting issues at next edit
var BufferReader = require('../encoding/bufferreader');
var BufferWriter = require('../encoding/bufferwriter');
var BufferUtil = require('../util/buffer');
var isObject = require('lodash/isObject');
var isHexString = requir... |
var Q = require('q');
var minimatch = require('minimatch');
module.exports = {
processToPromise: processToPromise,
streamToPromise: streamToPromise,
renameSrcFolder: renameSrcFolder,
filterByFile: filterByFile
};
function filterByFile(valuesWithPatterns, fileName) {
var match = null;
for (var pattern in v... |
'use strict';
var RedisPool = require('sol-redis-pool');
var EventEmitter = require('events').EventEmitter;
var redisUrl = require('redis-url');
var zlib = require('zlib');
/**
* The cache manager Redis Store module
* @module redisStore
* @param {Object} [args] - The store configuration (optional)
* @param {Strin... |
function qS(selector) { return document.querySelector(selector); };
var extraSuggestions = ['<ul>',
'<li class="ch-autocomplete-item" data-suggested="Static option">Static option</li>',
'<li class="ch-autocomplete-item" data-suggested="Other Static option">Other static option</li>',
... |
/**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {TreeNode} root
* @return {number}
*/
var countNodes = function(root) {
// 都没有
if(root === null) return 0;
// 左右都无
if(!root.left && !root.right) ret... |
/*************************************************************
*
* MathJax/jax/output/SVG/fonts/STIX-Web/fontdata-extra.js
*
* Adds extra stretchy characters to the STIX-Web fonts
* Copyright (c) 2013-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
var React = require('react');
var classNames = require('classnames')
var Folder = React.createClass({
getClassName: function() {
return classNames('folder clearfix', this.props.folder.className);
},
onFolderClicked: function() {
this.props.onClick(this.props.folder);
},
render: f... |
/*
Uma pessoa que trabalha de carteira assinada no Brasil tem descontados de seu salário bruto o INSS e o IR. Faça um programa que, dado um salário bruto, calcule o líquido a ser recebido.
A notação para um salário de R$1500,10, por exemplo, deve ser 1500.10. Para as faixas de impostos, use as seguintes referências:
... |
module.exports = function check(str, bracketsConfig) {
// your solution
function isBrOpen(str) {
for (let i=0;i<bracketsConfig.length;i++) {
if (bracketsConfig[i][0]===str) return true;
}
return false;
}
function isBrClose(str) {
for (let i=0;i<bracketsConfig.length;i++) {
if (bracketsConfig... |
import React, { useState } from "react";
import SimpleBar from "simplebar-react";
import { useLocation } from "react-router-dom";
import { CSSTransition } from "react-transition-group";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faChartPie,
faCog,
faHandHoldingUsd,
faSignOutAlt,
... |
const {request} = require("https");
request({
hostname: "localhost",
port: 8000,
method: "POST"
}, response => {
response.on("data", chunk => {
process.stdout.write(chunk.toString());
});
}).end("Son To is a noob!"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.