text stringlengths 3.22k 29.5k |
|---|
// $('#fondo').hide();
// $("#wrapper").show();
$("#Cuenta").click(function () {
// Animacion para mostrara el regiitro:
$("#Registro").removeClass("animate__animated animate__backOutRight");
$("#login").removeClass("animate__backInLeft");
$("#login").addClass(" animate__backOutLeft");
$("#Registro... |
const connection = require("./db/connection");
const inquirer = require('inquirer');
const cTable = require("console.table");
prompt = inquirer.createPromptModule();
// ------ Start Server after DB Connection ------ //
connection.connect((err) => {
if (err) throw err;
});
// ------ Welcome Message ------ //
promp... |
import React from 'react'
import ReactDOM from 'react-dom'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import { Map, fromJS } from 'immutable'
import moment from 'moment'
import utils from 'mk-utils'
const colKeys = ['name', 'rela', 'mobile', 'birthday', 'isWork']
cl... |
let bcurves={
B: {
0: "M-3,20 Q0,10 2,20 M-2,20 Q0,20 2,20 M-2,20 Q0,30 3,20", //bolt start
1: "M-22,16 Q-1,22 20,16 M-25,20 Q-1,19 25,20 M-23,24 Q-1,18 21,24", //bolt active 1
2: "M-20,18 Q14,9 20,16 M-25,20 Q-16,9 25,20 M-24,24 Q-1,20 21,22", //bolt active 2
3: "M-13,8 Q0,27 20,7 M-17,11 Q2,16 -4,28... |
function pause(numberMillis) {
var now = new Date();
var exitTime = now.getTime() + numberMillis;
while (true) {
now = new Date();
if (now.getTime() > exitTime)
return;
}
}
var arDrone = require('ar-drone');
var fs = require('fs');
var client = new arDro... |
const CommandHeader = require("./command-header");
const DS_BASE = 3000;
const NS_BASE = 4000;
const SB_BASE = 5000;
const PS_BASE = 6000;
const FS_BASE = 7000;
const IPPHONE_BASE = 12000;
const CS_BASE = 13000;
const CHAT_DATA_BASE = 15000;
const FET... |
/*==============================================================================
(C) Copyright 2019,2021 <NAME>, All rights reserved.
-----------------------------------------------------------------------------
DESCRIPTION: NodeJS module to handle board functions. Communicates with
the Arduino Mega boar... |
var os = require('os')
var path = require('path')
var glob = require('glob')
var fs = require('fs')
var webpack = require('webpack')
var config = require('./config.js')
var assign = require('object-assign')
var shell = require('shelljs')
var colors = require('colors')
function resolve(dir) {
return path.join(__dirna... |
import Grid from "@material-ui/core/Grid";
import FormControl from "@material-ui/core/FormControl";
import FormControlLabel from "@material-ui/core/FormControlLabel";
import FormHelperText from "@material-ui/core/FormHelperText";
import FormLabel from "@material-ui/core/FormLabel";
import Input from "@material-ui/core/... |
//I've heard it's cool to build your own job gauge.
import React, {Fragment} from 'react'
import {ActionLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
//import STATUSES from 'data/STATUSES'
import Module from 'parser/core/Module'
import {Suggestion, SEVERITY} from 'parser/core/modules/Suggestions... |
import React, { Component } from 'react'
import { TweenMax, Bounce, Elastic, Power2 } from 'gsap'
import CustomEase from '../utils/CustomEase'
const defaultSpring = {
friction: 10,
tension: 2,
}
CustomEase.create(
'CustomElastic',
"M0,0,C0.09,-0.1,0.05,1,1,1"
// "M0,-0.01,C0,0.1,1,1,1,1"
)
const ScrollerCon... |
jQuery(document).ready(function() {
var table = jQuery('#call_logs').DataTable({
scrollY: "450px",
scrollCollapse: true
});
jQuery(document).on('click', '#menu-item-92', function() {
jQuery('.none_logout a').trigger('click');
});
jQuery('.buy_yoptionumber,.change_yoptionumber').magnificPopup();
... |
import clx from "classnames";
import PropTypes from "prop-types";
import React from "react";
import { adjustColor, changeColor } from "../styles/colorUtils";
import makeStyles from "../styles/makeStyles";
import { blue } from "../styles/pallete";
import getVar from "../utils/getVar";
import useEventCallback from "../ut... |
// quick run through the nodes to count label characters
var charPolys = 0;
$.each(initial_data.nodes, function (key, value) {
charPolys += key.length;
});
console.log('number of characters:', charPolys, '(' + charPolys * 2 + ' triangles)');
var lettersPerSide = 16;
var numberOfLabels = _.size(initial_data.edges)... |
import React, { Component, Fragment } from 'react'
import { Link } from 'react-router-dom'
import { connect } from 'react-redux'
import { showAlert } from '../actions/Alert'
import { storeWeb3Intent } from '../actions/App'
import Modal from './modal'
import Review from './review'
import UserCard from './user-card'
//... |
import React, { useMemo, useCallback, memo, useRef, useState, useEffect } from 'react'
import { View, Text, StyleSheet, FlatList } from 'react-native'
import { useGetter, useDispatch } from '@/store'
import Menu from '@/components/common/Menu'
import MusicAddModal from '@/components/MusicAddModal'
import MusicMultiAdd... |
var extend = require('extend');
var util = require('util');
var log = require('./logging.js').getLogger('_mongoDriver.js');
var bson = require('mongodb').BSONPure;
/*
* @module mongoDriver
*/
module.exports = function(MongoClient, ObjectID, QueryFilter) {
var _database = null;
var self={
/*
* @func init
... |
let global = global || window
/**
* watchman
*
* watchman('/', function(ctx) {
* console.log('I am on index.');
* });
* watchman({
* '/users': function(ctx) {
* console.log('I am showing the list of the users.');
* },
* '/user/:id': function(ctx) {
* console.log('I am showi... |
/// <reference path="../../../../../applibs/sdk/jQuery-2.1.3.min.js" />
/// <reference path="../../../../../applibs/sdk/json.js" />
/// <reference path="../../../../../applibs/sdk/date.js" />
/// <reference path="../../../../../applibs/sdk/baiduTpls.js" />
/// <reference path="../../../../../applibs/sdk/base64.js" />
... |
var SVG_WIDTH = 2048;
var SVG_HEIGHT = 2048;
var GRID_X_TICKS = 64;
var GRID_Y_TICKS = GRID_X_TICKS * (SVG_HEIGHT / SVG_WIDTH)
var GRID_X_PITCH = SVG_WIDTH / GRID_X_TICKS;
var GRID_Y_PITCH = SVG_HEIGHT / GRID_Y_TICKS;
var GRID_DOT_COLOR = '#000';
var GRID_DOT_OPACITY = 0.15;
var GLYPH_COLOR = '#fff';
var GLYPH_RECT_M... |
import React, { Component } from 'react';
import {
View,
ScrollView,
Text,
TouchableOpacity,
Switch,
Platform
} from 'react-native';
import { Icon } from 'react-native-elements';
import Ionicons from 'react-native-vector-icons/Ionicons';
import LabelIconText from '../../components/IconText/Label... |
const d3 = require('../d3.js');
const margin = {top: 0, right: 10, bottom: 10, left: 60}
const facetWidth = 30;
const legendHeight = 40;
const xAxisHeight = 20;
const xLabelHeight = 20;
class SubGraph {
constructor({ container, topName, name, lineSetup, outerHeight, drawXAxis, xlimTime, xlimEpochs, ylim }) {
t... |
//! This script contains the WorldLoader class and several utility functions.
//! The WorldLoader class is able to load a THREEJS scene from a custom JSON
//! file describing it.
/// The following references are for VisualStudio, so that Intellisense recognizes every library.
/// <reference path="../jslib/weblabjs.js"... |
import React from 'react';
import ReactTable from 'react-table';
import TableStyle from 'react-table/react-table.css';
import { connect } from 'react-redux';
import * as actions from '../../../actions/dash.js';
import {api,API_URL, request_file} from '../../../actions/_request';
import _ from "lodash";
import {Contain... |
var fs = require('fs');
var crypto = require('crypto');
var Bitcore = require('bitcore-lib');
var Message = require('bitcore-message');
var bs58 = require('bs58');
var AWS = require('aws-sdk');
/**
* Put AWS credentials here.
*/
AWS.config.update({
"accessKeyId": "",
"secretAccessKey": "",
"region": ""
});... |
const helper = require('../dist/index.js')
const hash = require('../dist/hash.js')
const {debounce, throttle} = require('../dist/lodash.js')
const sleep = function(num) {
return new Promise(resolve => {
setTimeout(() => resolve(true), num)
})
}
const test = {
async run() {
// eslint-disable... |
import axios from 'axios';
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { useParams } from 'react-router-dom';
import { withRouter } from 'react-router';
import Loading from '../app/components/Loading';
import CONFIG from '../app/config';
import history from '../app/His... |
import {Layer, assembleShaders} from 'deck.gl';
import {GL, Model, Geometry} from 'luma.gl';
import {scaleLinear} from 'd3-scale';
import {textMatrixToTexture} from './utils';
import fragmentShader from './fragment.glsl';
import gridVertex from './grid-vertex.glsl';
import labelVertex from './label-vertex.glsl';
impo... |
import React, { PropTypes } from 'react'
import { CardActions } from 'material-ui/Card'
import RaisedButton from 'material-ui/RaisedButton'
import { List, ListItem } from 'material-ui/List'
import { Form } from 'formsy-react'
import { FormsyText } from 'formsy-material-ui/lib'
import Lock from 'material-ui/svg-icons/ac... |
/**
* ioBroker MiHome
*
* Copyright 2017-2018, bluefox <<EMAIL>>
*
* License: MIT
*/
'use strict';
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const MiHome = require('./lib/Hub');
const adapter = utils.Adapter('mihome');
let objects = {};
let delayed = {};
let... |
if (location.hostname.match(/^www/))
ENV = "production";
else if (location.hostname.match(/^staging/))
ENV = "staging";
else if (location.hostname.match(/localhost/))
ENV = ["production", "staging"];
function ugly_flag(flagurl) {
return ce('img', null, {
src: flagurl,
width: MOBILE ? 100 : 200,
});
};
async ... |
function CBetPanel(){
var _iTotBet;
var _iCurPage;
var _iChipSelected;
var _aPages;
var _aHistory;
var _pStartPosExit;
var _pStartPosAudio;
var _pStartPosFullscreen;
var _oButFullscreen;
var _fRequestFullScreen = null;
var _fCancelFullScreen = null;
var _oMaskPanel;
... |
const fs = require('fs')
module.exports = {
botMove: botMove,
checkWin: checkWin,
footerDetermineText,
gameOverResponse,
lastMoveDetermineName,
lastMoveDetermineValue,
sendTicTacToeBoard,
visualBoardGen
}
function botMove (gameBoard) {
var availableMoves = []
for (let i = 0; i... |
import { weel as $ } from "./libs/Weel"
import { wave, select } from "./libs/ui/common"
import { swapLanguages, config_to_render, option_to_config } from "./libs/ui/translation"
import { translate_from } from "./libs/actions"
import { log, getInputMeta, do_action, add_action, i18n } from "./libs/functions"
import { set... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var lodash_1 = tslib_1.__importDefault(require("lodash"));
var autolinker_1 = tslib_1.__importDefault(require("../src/autolinker"));
describe("Autolinker Mention Matching -", function () {
var twitterAutolin... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
var MongoClient = require('mongodb').MongoClient;
var checkVerification = require(__dirname+'/../library/db/checkVerification.js');
var fieldsValidation = require(__dirname+'/../library/fieldsValidation.js');
var internationalizeNumber = require(__dirname+'/../library/internationalizeNumber.js');
module.exports = func... |
"use strict";
const EventEmitter = require('events'),
util = require('util');
/**
* Writer callback
*
* This callback is invoked to send data to the client
* @Callback rfb~writer
* @param {String|Buffer} Data to be written
*/
/**
* Close callback
*
* This is called to close a session
* @Callback rfb~cl... |
/**
* Client-side script for form submission
*
* requires: jQuery - todo remove later
*/
const myRoot = (typeof self === 'object' && self.self === self && self) ||
(typeof global === 'object' && global.global === global && global) ||
this
class GcfClient {
constructor(opts = {}) {
this._name = 'GcfClient... |
"use strict";
const Firestore = require("@google-cloud/firestore");
const adapterOptions = new Set([
"typeMap",
"bufferEncoding",
"convertTimestamps",
"nullUndefinedFields"
]);
/**
* Firestore Adapter options
*
* To connect to Firestore, one of the following three combinations of
* parameters must be pre... |
const helper = require('../helper/helper.js');
const schemaHelper = require('../helper/schemaHelper.js');
module.exports = {
generateScript(data, logger, cb) {
const { jsonSchema, modelData, entityData, isUpdateScript } = data;
const containerData = data.containerData || {};
let result = "";
let fieldsSchema ... |
var LargeDevice = 1140;//Large devices Desktops (≥1200px)
var MediumDevice = 970; //Medium devices Desktops (≥992px)
var SmallDevice = 750;//Small devices Tablets (≥768px)
function arrangedList(parentDiv/*Jquery Object*/, container)
{
this.parentDiv = parentDiv;
this.sortedList = null;
... |
'use strict';
//App Libraries
const express = require('express');
// cors = Cross Origin resource sharing
const cors = require('cors');
//dotenv (read our enviroment variable)
const dot = require('dotenv');
dot.config();
const { request } = require('http');
const { response } = require('express');
const superAgent0 = ... |
import { storiesOf } from '@storybook/react';
import React from 'react';
import ReactSelect, { components } from 'react-select';
import Select, { AsyncSelect, Createable } from '.';
import './select.module.scss';
const stories = storiesOf('Select', module);
const feels = [
{ label: 'Double plus ungood', value: 'dbl... |
let async = require('async'),
fs = require('fs'),
GitHubAPI = require('github'),
_ = require('underscore');
const github = new GitHubAPI({
version: '3.0.0',
protocol: 'https',
timeout: 5000,
});
module.exports.name = 'github';
// Only auth if auth details given
github.tryAuthenticate = function () {
if... |
import debugLib from 'debug';
import fs from 'fs';
import GitHubApi from 'github';
import homedir from 'os-homedir';
import moment from 'moment';
import path from 'path';
import semver from 'semver';
import {
capitalizeWords,
cleanTagName,
formatMessage
} from './utils';
let debug = debugLib('org-commits')... |
#!/usr/bin/env node
var N3 = require('../N3.js'),
fs = require('fs'),
url = require('url'),
path = require('path'),
request = require('request'),
exec = require('child_process').exec,
async = require('async');
require('colors');
// How many test cases may run in parallel?
var workers = 1;
// P... |
var path = require('path');
var logger = require('./logger');
var log = logger.create('config');
var helper = require('./helper');
var constant = require('./constants');
// Coffee is required here to enable config files written in coffee-script.
// It's not directly used in this file.
require('coffee-script');
var ... |
import React, { Component } from 'react';
import {
View, Text, ScrollView, StyleSheet, TouchableOpacity, Image, Modal
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { connect } from 'react-redux';
import { Header } from '../../components/Index';
import { Colors, Metrics } f... |
var Service, Characteristic
const packageJson = require('./package.json')
const request = require('request')
const ip = require('ip')
const http = require('http')
module.exports = function (homebridge) {
Service = homebridge.hap.Service
Characteristic = homebridge.hap.Characteristic
homebridge.registerAccessory(... |
$.wars = {
debug: true,
idevice: isIdevice(),
quick_transactions: true,
keyboard_shortcuts: true,
paths: {
buy: {
product: '/product/%(id)d/buy/%(quantity)d',
equipment: '/equipment/%(id)d/buy/%(quantity)d'
},
sell: {
product: '/product/%(id)d/sell/%(quantity)d',
equipment:... |
'use strict';
const sslCertificate = require('get-ssl-certificate')
const SCORE_DEDUCTION_CRUCIAL = 1;
const SCORE_DEDUCTION_MAJOR = .5;
const SCORE_DEDUCTION_MINOR = .25;
const SCORE_DEDUCTION_CONSIDER = 0;
class Tool {
constructor({ page }) {
this.page = page;
this._results = [];
}
asyn... |
// Defining margins, width and height
var margin = {top: 100, right: 160, bottom: 100, left: 100};
var outer_width = 1000;
var outer_height = 1000;
var svg_width = outer_width - margin.left - margin.right;
var svg_height = outer_height - margin.top - margin.bottom;
// Initialising display_year so I can define yearFil... |
import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { addOrder, getAddress, getCartItems } from '../../actions';
import { MaterialButton } from '../../components/MaterialUI';
import Layout from '../../containers/TheLayout';
import PriceDetails from '../../... |
var Emitter = require('emitter');
// var dimensions = require('dimensions');
module.exports = flexstatic;
var uFlexID = 0;
function flexstatic(divValue, reqOptions)
{
// console.log(divValue);
var self = this;
console.log("POP POP!!d!");
if(!reqOptions || !reqOptions.objectSize || !reqOptions.objectSize.w... |
import React, {Component, PropTypes} from 'react'
import { Animated, ScrollView, StyleSheet, Dimensions, View, PanResponder, Image, TouchableWithoutFeedback, TouchableHighlight, Modal, Text } from 'react-native'
import PulsingCircle from './PulsingCircle'
const MAX_ZOOM = 2.5
const ANIMATION_DURATION = 400
const { hei... |
import React, { Component, useEffect } from 'react';
import Grass from './components/ViewObjects/grass';
import Road from './components/ViewObjects/road';
import Divider from './components/ViewObjects/divider';
import { Button } from 'react-bootstrap';
import styles from './mystyles.css';
import TrafficManager from './... |
const util = require('../../utils/util.js');
const api = require('../../config/api.js');
const user = require('../../utils/user.js');
//获取应用实例
const app = getApp();
Page({
data: {
newGoods: [],
hotGoods: [],
topics: [],
brands: [],
groupons: [],
floorGoods: [],
banner: [],
channel: [... |
var showFullName,
maxCombatantsShown,
showDpsBar,
encounterDefine,
useHTMLEncounterDefine,
headerDefine,
bodyDefine,
viewModes,
vMode = "damage",
data;
function setMode(mode) {
vMode = mode;
update(data);
}
// 順位を表示する(text に関数を指定する例)
// 引数... |
import 'easy-icon';
import $ from 'easy-dom-util';
import {toast, confirm} from 'tacl-ui';
import TCEditor from 'tc-editor';
import Log from './log';
import {TOOL_HEIGHT, initResize, initKeyEvent} from './event';
import {getUrlParam, DEFAULT_CODE, initWindowFunc, IsPC, toggleCls, exeJs} from './util';
import {copyText}... |
'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 ("va... |
/*eslint-disable*/
import React, {Component,Fragment} from 'react';
import {Tabs,DatePicker,Row,Table,Col,Tag,message} from 'antd';
import { formatMessage, FormattedMessage } from 'umi/locale';
import {Bar} from '@/components/Charts';
import moment from "moment/moment";
import {connect} from "dva/index";
import {compar... |
//Action
var page = "procurar";
var productsData;
$(document).ready(function () {
page = "procurar";
$.getJSON("products.json", function (res) {
})
.done(function (res) {
productsData = res[0];
getCarrinho();
})
.fail(function (err) {
console.log... |
'use strict';
const yaml = require('js-yaml');
const util = require('util');
const readFile = util.promisify(require('fs').readFile);
const spawn = require('await-spawn');
const LineReader = require('line-by-line-promise');
const minimatch = require('minimatch');
const projectInfo = {};
const data = {
projectPlaye... |
import React, { PropTypes } from 'react'
import ReactTable from 'react-table'
import classnames from 'classnames'
import contains from 'ramda/src/contains'
import find from 'ramda/src/find'
import propEq from 'ramda/src/propEq'
import { Link } from 'react-router'
import { isoDateTolocaleDate, checkObjectIsEmpty } from ... |
const fetch = require('node-fetch');
const fs = require('fs');
const cacheBust = require('./_cacheBust');
console.log("\n");
const update = async function (args) {
let config = {};
if (args.length)
args.forEach(a => config[a] = true);
else
config = false;
let achievementCategories;
let achieveme... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = mjml2html;
Object.defineProperty(exports, "ini... |
const get_ref = require("./helper_get_ref.js").get_ref;
const get_deref_all = require("./helper_get_ref.js").get_deref_all;
/**
* Create a node-map
* @class
* @classdesc Node-Map class
* @name node_map
* @param {node} node - A node instance
* @param {object} config - A config object
* @param {(string|applicatio... |
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE
'use strict';
var Curry = require("bs-platform/lib/js/curry.js");
var Client = require("./gql/Client.bs.js");
var Js_exn = require("bs-platform/lib/js/js_exn.js");
var Belt_Array = require("bs-platform/lib/js/belt_Array.js");
var Belt_Option = require("bs-platform/li... |
import _ from 'lodash';
const LEFT = 'Left';
const RIGHT = 'Right';
const TOP = 'Top';
const BOTTOM = 'Bottom';
const MINDIST = 20;
const TOL = 0.1;
const TOLxTOL = 0.01;
const DEFAULT_RADIUS = 15;
const Point = function (x, y) {
this.x = x;
this.y = y;
};
// 曼哈顿折线路由算法
function _route(conn, fromPt, fromDir, toPt... |
import { Point } from '../point';
const regexSupportedData = new RegExp(`^[\\s\\dLMCZz,.]*$`);
export function isValid(data) {
if (typeof data !== 'string') {
return false;
}
return regexSupportedData.test(data);
}
/**
* Returns the remainder of division of `n` by `m`. You should use this
* instea... |
/**
* call log sync feature
*/
import { thirdPartyConfigs } from 'ringcentral-embeddable-extension-common/src/common/app-config'
import { createForm, formatPhoneLocal, getContactInfo } from './call-log-sync-form'
import {
showAuthBtn
} from './auth'
import _ from 'lodash'
import {
notify,
host,
formatPhone
}... |
import { withIronSession } from "next-iron-session";
import sessionConfig from "@/configs/session.config";
import excuteQuery from "@/services/mysql"
import { useState, useEffect } from "react";
import Error from '@/pages/404'
import Link from "next/link";
import _ from "lodash";
import style from '@/styles/module... |
import React, { Component } from "react";
import { connect } from "react-redux";
import {
Button,
CircularProgress,
Dialog,
DialogActions,
DialogContent,
Modal,
} from "@material-ui/core";
import {
gatherUsers,
setUsersToNewStatus,
setUserToNewStatus,
} from "../../../../redux/action... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var collection_share_component_1 = require("../components/collection-share.component");
var core_1 = require("@angular/core");
var collections_service_1 = require("../../shared/services/collections.service");
var router_1 = require("@angular/r... |
var w;
var h;
var dw;
var dh;
var resizefunc = [];
$(document).ready(function(){
FastClick.attach(document.body);
resizefunc.push("initscrolls");
resizefunc.push("changeptype");
$(".open-left").click(function(e){
e.stopPropagation();
$("#wrapper").toggleClass("enlarged");
$("#wrapper").a... |
'use strict';
const error = require('debug')('websockets:websockets:error');
const trace = require('debug')('websockets:websockets:trace');
const jsonpointer = require('jsonpointer');
const oadaError = require('oada-error');
const OADAError = oadaError.OADAError;
const WebSocket = require('ws')
const uuid = require(... |
const http = require('http'),
fetch = require('node-fetch'),
stripJsonComments = require('strip-json-comments'),
fs = require('fs'),
os = require('os'),
util = require('util'),
WebSocket = require('ws'),
dateFormat = require('dateformat');
const OPCODE_DISPATCH = 0;
const ... |
'use strict'
const { unlinkAsync } = require('asfs')
const asleep = require('asleep')
const { clone } = require('asobj')
const { ClayLump } = require('clay-lump')
const isClass = require('is-class')
const { v4: uuid } = require('uuid')
const theAssert = require('@the-/assert')
const { unlessProduction } = require('@th... |
"use strict";
const vfs = require("~/browser-shims/fs");
const vmodules = require("./vmodules");
const readVirtualFiles = require("./readVirtualFiles");
const path = require("path");
const EventEmitter = require("events-light");
const fileExtensions = require("~/util/file-extensions");
require("events");
const proje... |
// pages/home_center/statistics_panel/index.js
var app = getApp();
import { getStatiHours, getStatiDays, getStatiMonths, getStatiAll, getStatiType } from '../../../utils/api/statistics-api'
var wxCharts = require('../../../utils/wxcharts.js');
var lineChart = null;
Page({
/**
* 页面的初始数据
*/
data: {
custom... |
const etherlime = require('etherlime-lib')
const ethers = require('ethers')
const assert = require('assert')
const fs = require('fs')
const {
multihash,
constants,
encodeCreateCall,
} = require('@erasure/crypto-ipfs')
const { RATIO_TYPES, TOKEN_TYPES } = constants
const { ErasureV130 } = require('@erasure/abis')... |
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"... |
var FFI = require('ffi');
var fs = require('fs');
var ref = require('ref');
var ArrayType = require('ref-array');
var iconv = require('iconv-lite');
var cArray32 = new ArrayType('uchar', 32);
var cArray64 = new ArrayType('uchar', 64);
var cArray256 = new ArrayType('uchar', 256);
var cArray4096 = new ArrayType('uchar',... |
var util = require('./util.js');
const fs = require('fs');
const https = require('https');
var dict = {};
var names = [];
var nameToId = {};
var full_names = [];
var imagedict = {};
var cardimages = {};
if (!fs.existsSync('private')) {
fs.mkdirSync('private');
}
function updateCardbase() {
dict = {};
names = ... |
"use strict";
import * as expands from "../modules/handsonTable.js";
import { Pagination } from "../modules/pagination.js";
import { SearchParam } from "../modules/searchParam.js";
import * as common from "../common.js";
document.getElementById("nav-family-tab").addEventListener("shown.bs.tab", setFamily);
const pagi... |
$(document).ready(() => {
if (pesquisaId) {
$.ajax({
data: { IDPESQUISA: pesquisaId, "_token": token },
method: "post",
url: "//www.ceaterj2.rj.caixa/ceateplansul/distribuicao/public/pesquisaJson",
success: (result) => {
let perguntas = JSON.p... |
/**
* Created by liuligang on 2019/1/2.
*/
//建议值[16,9]
var table = [];
var maxCol = 16, maxRow = 9;
var camera, scene, renderer;
var controls;
var radius = 100, theta = 0;
var objects = [];
var targets = {table: [], sphere: [], helix: [], grid: []};
function init() {
camera = new THREE.PerspectiveCamera(40,... |
const { Permissions, MessageButton } = require('discord.js')
const pWaitFor = require('../util/pwaitfor')
const Components = require('./components')
const CATEGORY_NAME = 'Valorant'
const CHAT_CHANNEL_NAME = 'Chat Here'
const GAME_SETTINGS_CHANNEL_NAME = 'Game Settings'
const VOICE_CHANNEL_NAME = 'Check-In'
const TEAM... |
"use strict";
var __assign = (this && this.__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];
}
return t;
};
var __rest = (this && this.... |
import { chamfer_geom, make_geom, create_dice_materials } from "./three-helper";
import { Vector3, Mesh, MeshBasicMaterial, MeshPhongMaterial, TextureLoader } from "three";
import { Vec3, Body, ConvexPolyhedron } from "cannon";
import { materials } from "./world";
import seedrandom from 'seedrandom';
const random = se... |
// Objects
var $ = {
post: true,
info: "#info",
header: "#header",
terrain: "#terrain",
torus: "#torus",
floor: "#floor",
ring: "#ring",
sky: "#sky",
audio: "audio",
camera: "#camera",
ambient: "#ambient",
skylight: "#skylight",
earthlight: "#earthlight",
bloom:... |
function Graphics(mainCanvasId, hudBackCanvasId, hudFrontCanvasId, pointsDivId, levelDivId) {
this.hud = new Hud();
this.skyFront = new Sky();
this.skyBack = new Sky();
this.images = new Images();
this.utils = new Utils();
this.main = document.getElementById(mainCanvasId);
this.main.width ... |
import React, { Component, Fragment } from 'react'
import { DatePicker, Table, Button, message, TreeSelect, Spin, Popover } from 'antd'
import axios from '@src/utils/axios'
import urls from '@src/config'
import moment from 'moment'
import { connect } from 'react-redux'
const mapStateToProps = (state) => {
return {
... |
var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function ITER$0(v,f){if(v){if(Array.isArray(v))return f?v.slice():v;var i,r;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='functi... |
/*
* Copyright 2018 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 appli... |
var async = require('async');
var exec = require('child_process').exec;
var fs = require('fs-extra');
var mv = require('mv');
var os = require('os');
var path = require('path');
var Q = require('q');
var Qfs = require('q-io/fs');
var ga = require('../utils/ga.js');
var config = require('../../config/config.js');
var d... |
"use strict";
const CANVAS = document.getElementById("canvas")
const CONTEXT = CANVAS.getContext("2d");
const FRAME_RATE = 60;
let frameCount = 0;
//キューブの中心から視点までの距離
let cameraDistance = 10;
//キューブの中心から投射面までの距離
let canvasDistance = 7;
let stop = false;
//回転速度
let rotSpeed = 1;
//立方体の8つの頂点を立方体の... |
/**
* Copyright (c) 2014 <NAME>
* Developer <NAME>
* <EMAIL>
*/
var body = $("body").attr("param");
var parse = $.parseJSON(body);
var basePath = parse.baseURL;
var specialNumber = 888;
var once = false;
var App = {
Ready: function () {
this.SetAjaxLoader.Ready();
this.Dialog.Ready();
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.