text stringlengths 2 1.04M |
|---|
E2.p = E2.plugins["csg_difference_modulator"] = function(core, node)
{
this.desc = 'Calculate the difference of two CSG objects.';
this.input_slots = [
{ name: 'A', dt: core.datatypes.OBJECT, desc: 'The first operand object.', def: null },
{ name: 'B', dt: core.datatypes.OBJECT, desc: 'The second operand object... |
// import the necessary modules
var mongoose = require('mongoose');
var resuable = require('../framework/reusableobjects');
var Schema = mongoose.Schema;
// create an export function to encapsulate the model creation
// define schema
var CCHPIMasterSetSchema = new Schema({
/** departmentuid {ObjectId} - re... |
import Analytics from "@segment/analytics-react-native";
import Appboy from "@segment/analytics-react-native-appboy";
import Config from 'react-native-config';
import R from 'ramda';
// Event names for events sent to Segment from the app - these should be
// fairly self-explanatory - change the strings below to change... |
module.exports={A:{A:{"2":"P F D E A B rB"},B:{"1":"J K L M N v s Q VB GB","2":"C I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 R t u O w x y z SB WB AB BB CB DB EB H FB MB NB OB PB QB RB IB TB UB v s Q kB","2":"uB LB G T P F D E A B C I J K L M N U V W X Y Z a b c d e f g h i j k l m n o p q r jB iB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 w ... |
var altcp__tls_8h =
[
[ "altcp_tls_alloc", "group__altcp__tls.html#ga09e6ca8f144ee94ef21d7e5760aa4391", null ],
[ "altcp_tls_config_server_add_privkey_cert", "group__altcp__tls.html#gae6f52370b62b0f4ba8d373c5186c9e7e", null ],
[ "altcp_tls_context", "group__altcp__tls.html#gabc1741530d5089c3093889416430bc76... |
var extends_ = require('../lib/extends.js');
var test = require('tape');
test('Operator instanceof semantics', function(t) {
t.plan(10);
function Parent() { }
function Child() { }
extends_(Child, Parent);
function Sibling() { }
extends_(Sibling, Parent);
function GrandChild() { }
extends_(Grand... |
!function(n){function r(e){if(t[e])return t[e].exports;var o=t[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var t={};r.m=n,r.c=t,r.i=function(n){return n},r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.n=function(n){var t=n&&n.__e... |
/**服务器设置
* 开发*/
var gulp = require('gulp'),
connect = require('gulp-connect'),
option = require('../config.js').serverDev;//服务器
function devServer() {
//
connect.server(option);
}
module.exports = devServer;
/*
var gulp = require('gulp'),
connect = require('gulp-connect'),
option = req... |
import React from 'react';
import { View, StyleSheet, Text } from 'react-native';
import { SimpleLineIcons } from '@expo/vector-icons';
const TabIcon = (props) => (
<SimpleLineIcons
name="camera"
size={25}
color={props.focused ? 'grey' : 'darkgrey'}
/>
)
export default class Photos extends React.Compone... |
export { default } from '@mui/material/ListItemIcon' |
/**
* A small infection graph to show above the stats
*/
import { select, scaleOrdinal, scaleLinear, nest, stack, extent, area } from 'd3'
class D3Plot {
constructor(svgNode, days) {
this.days = days
this.el = svgNode
this.width = this.el.parentNode.offsetWidth
this.height = this.el.parentNode.offsetHei... |
deepmacDetailCallback("fc0012000000/24",[{"d":"2011-06-04","t":"add","a":"14 Floor, Bldg. No. 102, Digital Empire2, 486, Sin-dong, Yeongtong-gu, Suwon-si,\nSu-won Gyeonggi 443-734\n\n","c":"KOREA, REPUBLIC OF","o":"Toshiba Samsung Storage Technolgoy Korea Corporation"},{"d":"2011-11-17","t":"change","a":"14 Floor, Bl... |
import mysql from 'mysql'
import { stat } from 'fs';
export default {
namespaced: true,
state: {
connection: null,
sql: null,
databases: [],
database: null,
selectedDB: null,
tables: [],
table: null,
loading: false,
error: null,
p... |
"use strict";
/* jshint -W079, esnext: true, undef: true, unused: true */
/* global require, describe, it */
var assert = require('assert');
var SQL = require('named_sql');
var _ = require('lodash');
function strip (v) {
return v.split("\n").map(function (v) { return v.trim();}).join("\n");
}
desc... |
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not... |
/**
* A binding handler that given a value will add classes and attributes that allow styling
* to indicate that the bound input has content.
*
* This binding handler will automatically handle `input`and `textarea` elements using
* the `value` binding handler.
*
* A `has-content` class will be added to the eleme... |
const Joi = require("@hapi/joi");
class validations {
validateRequest = (req, res, next) => {
const rules = Joi.object({
name: Joi.string(),
email: Joi.string(),
phone: Joi.string(),
id: Joi.string(),
});
const validationResult = rules.validate(req.body);
if (validationResult.... |
import React from 'react';
import Navigation from '../Navigation/Navigation';
import Header from './styles';
const Appbar = () => (
<Header>
<Navigation />
</Header>
);
export default Appbar; |
/**
* @name exports
* @summary LocationPosition Class
*/
module.exports = class LocationPosition {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty(this, '_id', {
enumerable... |
/*
@license
dhtmlxScheduler v.4.4.4 Professional Evaluation
This software is covered by DHTMLX Evaluation License. Contact sales@dhtmlx.com to get Commercial or Enterprise license. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
Scheduler.plugin(function(e){e.templates.calendar_month=e.date.date_to... |
'use strict';
angular.module('ontimeApp', ['LocalStorageModule', 'tmh.dynamicLocale', 'pascalprecht.translate',
'ngResource', 'ngCookies', 'ngAria', 'ngCacheBuster', 'ngFileUpload',
'ui.bootstrap', 'ui.router', 'infinite-scroll', 'angular-loading-bar'])
.run(function ($rootScope, $location, $window, $ht... |
$(function () {
consoleInit(main)
});
async function main() {
const App = await init_ethers();
_print(`Initialized ${App.YOUR_ADDRESS}\n`);
_print("Reading smart contracts...\n");
const SPECT_CHEF_ADDR = "0x0a53F16a00c593cbe5F6C890E751338396FE68... |
/* @generated */
// prettier-ignore
if (Intl.PluralRules && typeof Intl.PluralRules.__addLocaleData === 'function') {
Intl.PluralRules.__addLocaleData({"data":{"eu":{"categories":{"cardinal":["one","other"],"ordinal":["other"]},"fn":function(n, ord) {
if (ord) return 'other';
return n == 1 ? 'one' : 'other';
}}},... |
/**
* Analytics dashboard components.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENS... |
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function() {var l=this;
function p(b, e) {
var a = b.split("."),c = l;
for(var i=0; i<a.length; i++){
var item = a[i];
if(!c[item]){
c[item] = {};
}
... |
import React from 'react';
import Navbar from './components/Navbar/';
import Contact from './pages/Contact';
import About from './pages/About';
import Portfolio from './pages/Portfolio';
import { BrowserRouter as Router, Route } from "react-router-dom";
function App() {
return (
<Router>
<div>
<Na... |
/*jshint node: true, browser: true */
function Email(client) {
this.client = client;
}
module.exports = Email;
Email.EMAIL_ORIGIN = 'app://email.gaiamobile.org';
var Selector = {
notificationBar: '.card-message-list .msg-list-topbar',
setupNameInput: '.card-setup-account-info .sup-info-name',
setupEmailInput:... |
import { defaultValue, isNullOrUndefined } from "../helper/utils";
import { replaceAll, capitalize } from "../helper/strings";
import jQuery from "jquery";
const TranslationService = (function($)
{
let _translations = {};
// initialize translations
if (typeof translations !== "undefined")
{
_t... |
/* globals Intl */
import { extend } from "../../core/utils/extend";
import { locale } from "../core";
const SYMBOLS_TO_REMOVE_REGEX = /[\u200E\u200F]/g;
const getIntlFormatter = format => {
return date => {
// NOTE: Intl in some browsers formates dates with timezone offset which was at the moment for thi... |
(function(a,b){if('function'==typeof define&&define.amd)define(['exports','react'],b);else if('undefined'!=typeof exports)b(exports,require('react'));else{var c={exports:{}};b(c.exports,a.react),a.ruler=c.exports}})(this,function(a,b){'use strict';Object.defineProperty(a,'__esModule',{value:!0});var e=function(h){retur... |
var fs = require('fs-extra');
var path = require('path');
var xml2js = require('xml2js');
var ig = require('imagemagick');
var colors = require('colors');
var _ = require('underscore');
var Q = require('q');
var argv = require('minimist')(process.argv.slice(2));
/**
* @var {Object} settings - na... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const Cat = require("./endpoints/Catalog");
const Sch = require("./schemas/index");
module.exports = { ApiCatalog: Cat, DatabaseSchemas: Sch }; |
import * as React from 'react';
import Loadable from '@react-loadable/revised';
import Box from '@material-ui/core/Box';
import AlertTitle from '@material-ui/lab/AlertTitle';
import Collapse from '@material-ui/core/Collapse';
import mui from '@material-ui/core/package.json';
import Loading from './Loading';
const MuiA... |
//# sourceMappingURL=front.js.map |
// Copyright © 2020 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.2.2 (2020-04-23)
*/ |
var Cow = Class.create(Animal, {
initialize : function(pos, scale) {
Animal.call(this, 64, 64,
"cow",
18,
pos, 30, 120, scale.mulS(0.8));
},
smell: function (a) {
var limit = 0;
if (this.followedObject) {
var head = this.followedObject... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var __chunk_1 = require('../chunk-49d9503c.js');
var React = _interopDefault(require('react'));
require('@carbon/icon-helpers');
require('prop-types');
var Number_724 =
/*#__PURE__*/
React... |
import * as utils from './utils'
// ------------------------------------
// Constants
// ------------------------------------
export const GENERATE_EQUATION = 'GENERATE_EQUATION'
export const SET_FORMULA = 'SET_FORMULA'
export const SET_EQUATION = 'SET_EQUATION'
export const ADD_ERROR = 'ADD_ERROR'
export const SET_ANS... |
const left = document.querySelector('.left');
const right = document.querySelector('.right');
const container = document.querySelector('.container');
left.addEventListener('mouseenter', () => {
container.classList.add('hover-left');
});
left.addEventListener('mouseleave', () => {
container.classList.remove(... |
var data = {
"body": "<path opacity=\".3\" d=\"M9.83 12H11v6h2v-6h1.17L12 9.83z\" fill=\"currentColor\"/><path d=\"M5 4h14v2H5zm7 3l-7 7h4v6h6v-6h4l-7-7zm1 5v6h-2v-6H9.83L12 9.83L14.17 12H13z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule = true;
exports.default = data; |
NDSummary.OnToolTipsLoaded("File:export.ahk",{1:"<div class=\"NDToolTip TSection LAutoHotKey\"><div class=\"TTSummary\">hoppfrosch: Original</div></div>",3:"<div class=\"NDToolTip TFunction LAutoHotKey\"><div id=\"NDPrototype3\" class=\"NDPrototype WideForm\"><div class=\"PSection PParameterSection CStyle\"><table><tr... |
/*!
SearchBuilder 1.2.2
©SpryMedia Ltd - datatables.net/license/mit
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==ty... |
var assert = require("chai").assert
var data = require("../generate")
describe("Test getRegexSize",function(){
/**
* Normal Case Special Object
*/
describe("Normal Input",function(){
/**
* Min and Max Provided
*/
it("Should be return string {min,max}",function(){
var specialObject = {... |
/**
* External dependencies
*/
import { render } from '@wordpress/element';
import { withPluginsHydration } from '@woocommerce/data';
/**
* Internal dependencies
*/
import ShippingBanner from './shipping-banner';
import { getAdminSetting } from '~/utils/admin-settings';
const metaBox = document.getElementById( 'w... |
import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
new Vue({
el: '#app',
components: { App },
render (createElement) {
return createElement(App)
},
}) |
// @flow
import fs from 'mz/fs';
import {
Account,
Connection,
BpfLoader,
PublicKey,
SystemProgram,
Transaction,
BPF_LOADER_PROGRAM_ID,
} from '@solana/web3.js';
import {AccountLayout, Token} from '@solana/spl-token';
import {TokenSwap, CurveType} from '../client/token-swap';
import {sendAndConfirmTrans... |
//const Plugin = require("../models/plugin");
const db = require("../db/index.js");
const {
table_pack,
view_pack,
plugin_pack,
page_pack,
fetch_available_packs,
fetch_pack_by_name,
is_stale,
install_pack,
can_install_pack,
uninstall_pack,
} = require("../models/pack");
const { getState } = require... |
var products = [
{
name:"dress 1",
price:500,
sizes: [{size:"1 year"},{size: "2 year"}]
},
{
name:"dress 2",
price:200,
sizes: [{size:"3 year"},{size: "4 year"}]
},
{
name:"dress 3",
price:300,sizes: [{size:"6 year"},{size: "5 year"}]
},
]; |
import styled from "styled-components";
import { device } from "../../../../constants/mediaBreakpoints";
export const Wrapper = styled.div`
background-color: #aa6f510d;
padding: 10px 0;
display: flex;
justify-content: center;
align-items: center;
@media ${device.tablet} {
padding: 20px 0;
}
`;
expo... |
describe('MyCtrl', function(){
var scope, ctrl, httpBackend;
beforeEach(module("MyApp"));
beforeEach(inject(function($controller, $rootScope, TwitterAPI, $httpBackend) {
httpBackend = $httpBackend;
scope = $rootScope.$new();
ctrl = $controller("MyCtrl", { $scope: scope, TwitterAPI: TwitterAPI });
... |
const scramPathModule = require('path');
const filename = require('electron').remote.getCurrentWindow().getFilename();
__dirname = scramPathModule.resolve(__dirname, '../../../../../../', filename.split('/').slice(0, -1).join('/')); //TODO this path is possibly subject to change if Electron changes its file structure... |
var f = [];
f[0] = "v0.0.9";
f[1] = "01 Pool Hall Richard [2006 Remastered Single Version][Version].mp3";
f[2] = "02 I Wish It Would Rain (With a Trumpet) [Live at Reading Festival, August.mp3";
f[3] = "03 Rear Wheel Skid [Remastered Single Version][Version].mp3";
f[4] = "04 Maybe I'm Amazed [Remastered Si... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _backupMedia = require('./backupMedia');
var _backupMedia2 = _interopRequireDefault(_backupMedia);
var _fetchSame = require('./fetchSame');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }... |
const jwt = require('jsonwebtoken');
const Joi = require('joi');
const util = require('util');
const { statusCodes } = require('../constants');
const verifyToken = util.promisify(jwt.verify);
function initState(req, res, next) {
if (!req.state) {
req.state = {};
}
return next();
}
async function validateT... |
/**
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 6.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.1
*... |
function inputJsonConverter(idofReqForm, keyToFind) {
var inp = $("#" + idofReqForm + " :input");
var rObject = {};
for (var i = 0; i < inp.length; i++) {
if (inp[i]['name'].substr(inp[i]['name'].length - 2) == "[]") {
var tmp = inp[i]['name'].substr(0, inp[i]['name'].length - 2);
... |
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
* 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 o... |
import regeneratorRuntime from "regenerator-runtime";
function _defineProperty(obj, key, value) {
return key in obj ? Object.defineProperty(obj, key, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}) : obj[key] = value, obj;
}
foo("", regeneratorRuntime.mark(funct... |
export default {
constant: '#BBBBBB',
actions: '#FF81C3',
action: '#FF81C3',
component: '#FFB14A',
components: '#FFB14A',
misc: '#A1887F',
file: '#8d6e63',
folder: '#8d6e63',
feature: '#00C0FF',
featureInner: '#00C0FF',
route: '#26a69a',
routes: '#26a69a',
}; |
/*===========================
Device/OS Detection
===========================*/
'use strict';
var device = {};
var ua = navigator.userAgent;
var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
var iphone = !ipad && ua.match... |
///////////////////////////////////////////////////////////
// Class MultiStateControl
// Used to change state across its content.
/* ////////////////////////////////////////
//////////////////Implementation Example
<div data-class="MultiStateControl paramset='p1,p2'"
data-bind-$p1[0]="{read source=static te... |
import React from "react"
import { graphql } from "gatsby"
import Header from "../components/header"
import blogStyles from "./blog.module.scss"
export const query = graphql`
query($slug: String!) {
markdownRemark(fields: { slug: { eq: $slug } }) {
frontmatter {
title
}
html
}
}... |
module.exports = class {
/**
*
* @param {Collection<Number, Role>} roles List of roles the server has
*/
constructor(roles) {
this.roles = roles
}
} |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
module.exports = function (myApp) {
myApp.filter('startFrom', function () {
return function (data, start) {
return data.slice(start);
};
});
}; |
var models = require('../dist/models');
var controllers = require('../dist/controllers');
var moment = require('moment');
async function run() {
await models.ScheduleFilm.destroy({
where: {
}
});
let films = await models.Film.findAll({
where: {
}
});
let rooms = await models.Room.findAll({
... |
import React from 'react'
import useClipboard from "react-use-clipboard"
import SyntaxHighlighter from 'react-syntax-highlighter'
import schemas from '../data/saturday-sample'
export default function Template() {
let codeStringClass= `"uk-button uk-button-secondary"`
let codeClass = `uk-button uk-button-second... |
const carrier = require('../../build/Release/carrier')
module.exports = {
create: function create (greeting) {
return carrier.new(greeting)
}
} |
/*Programming Challenge: Grade Determiner
Section 6, Lecture 21
Dr. Fuentes teaches a Python class and uses the following grading scale for all of her exams. You work as a teacher's assistant and due to
her busy schedule she has requested that you write a program which will determine the grades of the class's 20 stu... |
/* istanbul instrument in package npmdoc_nar */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - init-before
(function () {
/... |
const NS = `/api`;
export const querify = (obj) => {
const queryComponents = [];
for (const [key, value] of Object.entries(obj)) {
if (value === undefined || value === null) {
throw new Error('Query string value cannot be null or undefined');
}
queryComponents.push(`${key}... |
import htmlhint from 'gulp-htmlhint';
import plumber from 'gulp-plumber';
import _isUndefined from 'lodash/isUndefined';
import debug from 'gulp-debug';
let taskMetadata = {
description: 'Analiza arquivos .html com htmlhint e reporta resultado.',
options: {
options: {
src: 'Arquivos source... |
const app = getApp()
const util = require('../../utils/util.js')
Page({
data: {
texts: ["头马世界冠军教你四招搞定公众演讲", "必学!头马演讲达人给你的五条演讲建议"]
},
onShow: function() {
},
onLoad: function () {
},
onHide: function() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
}) |
import React from "react"
import flickrgal from "js/flickrgal.min.js"
import flickrgalStyles from "styles/flickrgal.scss"
import loading from "styles/loading.scss"
class FlickrGal extends React.Component {
componentDidMount() {
window.FlickrGal.init();
}
render() {
return <div id="flickrgal" data-collec... |
import { Schedule } from './schedule.js';
/**
* Reusable AudioBuffer player node.
*
* @memberOf VaadinAudioPlayer
*/
export const BufferPlayer = (() => {
return class BufferPlayer {
/**
* @param {AudioContext} context
*/
constructor(context) {
this._context = conte... |
/**
* -----------------------------------------------------------------------------
* VITALS UNIT TESTS: vitals.is._string
* -----------------------------------------------------------------------------
* @section base
* @see [vitals.is docs](https://github.com/imaginate/vitals/wiki/vitals.is)
* @see [test api](h... |
const express = require('express');
const router = express.Router();
const Product = require('../models/Product');
// @route GET api/products
// @desc Get products
// @access Public
router.get('/', async (req, res) => {
try {
const products = await Product.find();
res.json(products);
} ... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed 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/licenses/LICENSE-2.0
Unless required by applicable law or agree... |
const db = require('../data/dbConfig');
const Users = require('./users-model');
describe('users router', function() {
it('should run the tests', function() {
expect(true).toBe(true);
});
});
describe('users model', () => {
beforeEach( async () => {
await db('users').truncate();
});
des... |
import path from 'path';
import typescript from '@rollup/plugin-typescript';
import commonjs from '@rollup/plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import json from '@rollup/plugin-json';
import builtins from 'rollup-plugin-node-builtins';
import globals from 'rollup-plugin-node-globals'... |
var convert = require('./convert'),
func = convert('pullAllWith', require('../pullAllWith'));
func.placeholder = require('./placeholder');
module.exports = func; |
import HeaderCell from './HeaderCell';
import TableLoader from './loaders/Table';
import TableDeltaHelper from './snippets/TableDeltaHelper';
import {TABLE_FADE_IN, TABLE_FADE_OUT} from '../animations';
import {
DISTRICT_TABLE_COUNT,
STATE_NAMES,
STATISTIC_CONFIGS,
TABLE_STATISTICS,
TABLE_STATISTICS_EXPANDED... |
// @flow
import React, {type Node} from 'react';
import {isString} from '../../../lib/is';
type PropsType = {|
+width: number,
+height: number,
+className?: string,
|};
export function ImagePlaceholder(props: PropsType): Node {
const {width, height, className} = props;
const additionalClassName... |
// Код является всего лишь прототипом и оригинальная задумка
// будет выполняться на С++(SFML/OpenGL) или pyhton(Pygame/PyOpenGL).
// Прототип создаётся без использования canvas, т.к. автор в него не шарит
// Объект игры
let game = {
// Карта
map: [],
// Массив фракций
factions: [],
// Объект взаимоотношений фрак... |
import React from "react"
const PContext = React.createContext();
export {PContext} |
const mysql = require('mysql');
//连接
var db=mysql.createConnection({host:'localhost',user:'root',password:'123456',database:'user'})
console.log(db);
//查询
db.query('SELECT * FROM `user_table`',(err,data)=>{
if(err){
console.log('出错')
}else{
// console.log(data)
console.log('成功了')
console.log(JSON.stringify... |
const lock = require(`lock`).Lock
const lockInstance = lock()
module.exports = resources =>
new Promise(resolve =>
lockInstance(resources, release => {
const releaseLock = release(() => {})
resolve(releaseLock)
})
) |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
/*
[
{
route: '/route-path',
controller: FUNCTION,
middleware: [{ 'Name of middleware': MIDDLEWARE_FUNCTION }],
description: STRING (About this url endpoint),
// Optionals
ignore: true // does not show on docs
},
]
*/
module.exports = [
]; |
import { getTemplate, getSlotContent, getStringTypeAttr } from '@/components/template'
var handle = function(_attr, _slots) {
//定义默认属性
let attributes = {
value:{
type:'boolean',
value:false
},
label:{
type:'text',
... |
const https = require("https");
const URL = "https://ipinfo.io";
/**
* Get IP information form ipinfo.io
*
* @param {String} ip The IP to get information about
* @param {String} token The optional authentication token
* @returns {Promise<string>}
*/
function ipInfo(ip, token = null) {
return new Promise((resol... |
!function(){var aa=this;function h(a,c){var b=a.split("."),d=aa;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)b.length||void 0===c?d[e]?d=d[e]:d=d[e]={}:d[e]=c}function l(a,c){function b(){}b.prototype=c.prototype;a.M=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.N=fu... |
import { setItem } from '../helpers/storage';
import { browserHistory } from 'react-router';
import axios from 'axios'
function loginSuccess(response) {
// setToken( "token", response.token );
return { type: 'LOGIN_SUCCESS', message: response.message }
}
function loginFailure(error) {
return { error: erro... |
var goto =/**@class */ (function(){
function goto(linea, columna, tipo, id){
this.linea=linea
this.columna = columna
this.tipo = tipo
this.id = id
this.codigo =""
this.optimizado=false
}
goto.prototype.getTipo = function(){
return this.tipo
}
g... |
'use strict';
var Fcon = require('../../index');
var fcon = Fcon();
var mark = fcon.mark;
var control = fcon.control;
var ctx = {
getA: () => Math.random(),
getB: (a) => a + Math.random()
};
var proc = mark(function () {
let s = this.s;
let a = s.funVar('a', ctx.getA)();
return new Promise((resol... |
import webpack from 'webpack'
import helmet from 'helmet'
import compression from 'compression'
import base from 'base'
const config = require('../../webpack/index.babel.js')
const compiler = webpack(config)
let bundleStart = Date.now()
compiler.plugin("compile", function() {
base.console.info(`Bundling project..... |
function setFileName() {
const text = document.querySelector('#dropzoneText');
const input = document.querySelector('#image');
if (input.files.length) {
text.innerHTML = input.files[0].name;
} else {
text.innerHTML = `<button type="button" id="upload" class="font-medium text-indigo-600 h... |
/**
* @author Eric COURTIAL <e.courtial30@gmail.com>
*/
define(
["jquery", "platforms", "games", "game", "home", "platformEditor", "gameEditor", "historyEditor", "history", "tradingEditor", "trading"],
function ($, platforms, games, game, home, platformEditor, gameEditor, historyEditor, history, tradingEditor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.