text stringlengths 3.22k 29.5k |
|---|
import Connect from "diagram-js/lib/features/connect/Connect";
import ContextPad from "diagram-js/lib/features/context-pad/ContextPad";
import Modeling from "bpmn-js/lib/features/modeling/Modeling";
import Create from "diagram-js/lib/features/create/Create";
import ElementFactory from "diagram-js/lib/core/ElementFactor... |
import React, { Component } from 'react'
import { Checkbox } from 'antd'
const CheckboxGroup = Checkbox.Group;
import moment from 'moment'
// 相比上次勾选增加和减少的列
class CalendarHeader extends Component {
constructor() {
super()
this.state = {
colunms: {}
}
}
componentDidMount() {... |
// définition des dimensions et des marges du graphe
const margin = {top: 100, right: 0, bottom: 0, left: 0},
width = 1000 - margin.left - margin.right,
height = 1150 - margin.top - margin.bottom,
innerRadius = 50;
// définition des valeurs globales
// données du fichier csv d'input
let radbData;
// échell... |
// Global state
var $upNext = null;
var $document;
var $body;
var $section;
var $slides;
var $arrows;
var $nextArrow;
var $previousArrow;
var $startCardButton;
var isTouch = Modernizr.touch;
var $videoControlBtn;
var $thisPlayerProgress;
var $playedBar;
var $ambientPlayer;
var $skipIntroBtn;
var $videoSlide;
var $video... |
import { debounce } from "throttle-debounce";
import { MAP_SIZE_LENGTH, MAP_SIZE_WIDTH } from "../../shared/constants";
import { getAsset } from "./assets";
import { getCurrentState } from "./state";
const Constants = require("../../shared/constants");
const {
PLAYER_RADIUS,
PLAYER_MAX_HP,
BULLET_RADIUS,
PLAY... |
import { debug } from "../../../lib/1.0.0/etc/etc.js"
import { api } from "../../../lib/1.0.0/api.js"
import { CronDB } from "./db.js"
import { TalkClock } from "./talkClock.js"
import { Alarm } from "./alarmWin.js"
const db = new CronDB()
export class BinPosCode {
static doc = `
new BinPosCode(date1:Date, date2:D... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import _isNil from "lodash/isNil";
import _get from "lodash/get";
import _isUndefined fro... |
/*
* Copyright (c) 2021, the hapjs-platform Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import path from 'path'
import fs from 'fs'
import qr from 'qr-image'
import { getRecords, getProjectClients } from '@hap-toolkit/shared-utils/lib/record-client'
import {
getDeviceInfo,
colorconsole,
get... |
/**
* Duckigotchu was built by <NAME>. Any unauthorized use is strictly prohibited.
*/
import {gameWidth, gameHeight, frameOptions, storageKey, globalStorageKey} from './constants.js';
export const addFrame = function(game) {
// Also add the bg to the back.
game.add.image(0, 0, 'background').setOrigin(0, 0)... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
import React, { Component, PureComponent, createContext } from 'react';
import { func, objectOf, arrayOf, object } from 'prop-types';
import { applyMiddleware, compose, createStore, bindActionCreators } from 'redux';
import createSagaMiddleware from 'redux-saga';
function _typeof(obj) {
if (typeof Symbol === "functi... |
/*
Reference:
https://github.com/christroutner/benchmark-bch/blob/master/docs/test02-indexer.md
This command runs the test defined in the document above.
*/
"use strict"
const config = require("../../config")
const AppUtils = require("../util")
const appUtils = new AppUtils()
const Send = require("./send")
c... |
/* eslint-disable no-console, no-sync, max-statements */
const fs = require('fs');
const path = require('path');
const {
promisify
} = require('util');
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
const projectRoot = path.resolve(__dirname, '..');
/**
* Dependency name and ... |
const sk_SK = {
language_name: "Slovenčina",
// Menu
sub_title: "Jednoduché, rýchle a bezpečné šifrovanie súborov na strane klienta",
home: "Domov",
about: "O projekte",
// About page menu
introduction: "Úvod",
features: "Funkcie",
installation: "Inštalácia",
usage: "Použitie",
limitations: "O... |
import {
setTagNavListInLocalstorage,
getTagNavListFromLocalstorage,
getHomeRoute,
getNextRoute,
routeHasExist,
routeEqual,
getRouteTitleHandled
} from '@/libs/util'
// import { getModal, getModalMenu, setEnvironment, getExternalEnv, getBillGroupEnv, getProductInfo } from '@/api/app'
import router from '@... |
const { EventEmitter } = require('events')
const ethUtil = require('ethereumjs-util')
const Transaction = require('ethereumjs-tx')
const DcentConnector = require('dcent-web-connector')
const { getFullPath, getCoinType } = require('./scripts/util')
const DefaultKeyPathString = `m/44'/60'/0'/0/0`
const keyringType = 'DC... |
function carica(){
$.blockUI.defaults.css.width = '0%';
$.blockUI.defaults.css.height = '0%';
$.blockUI.defaults.css.left = '50%';
$.blockUI.defaults.css.border = '';
$.blockUI.defaults.baseZ = 2000;
$.blockUI.defaults.message = '<div class="spinner-border text-light" role="status" style=""><spa... |
/*
Copyright (c) 2012 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
* Redi... |
/**
* @class Layer.Core.Websockets.RequestManager
* @private
*
* This class allows one to send requests to the websocket server, and provide a callback,
* And have that callback either called by the correct websocket server response, or
* be called with a timeout.
*/
import { client as Client } from '../../sett... |
// Set new default font family and font color to mimic Bootstrap's default styling
Chart.defaults.global.defaultFontFamily = 'Nunito', '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = '#858796';
function number_format(number, dec... |
$('#workers').removeClass('collapsed');
$('#collapseThree').addClass('show');
$('#workers_active').addClass('active');
// console.warn("THIS PAGE IS A WORK IN PROGRESS!")
$(document).ready(function() {
show_active_workers()
})
WORKER_MODAL = __EMPOWER_WEBUI.MODAL.ACTION
function show_active_workers(){
show_w... |
const mongoose = require('mongoose');
const broker = require('../commons/broker.js');
const tenancy = require('../commons/tenancy.js');
const factory = require('../commons/factory.js');
const bcrypt = require('bcryptjs');
exports.get = async function(id, field, model, select) {
try {
let item = null;
... |
$( document ).ajaxError(function( event, jqxhr, settings, thrownError ) {
if(jqxhr.status == 403) {
alert("Session expired. You'll be take to the login page");
location.href = "/login";
}
});
// create Or Update Todolist Modal show
$('body').on('click', '.show-todolist-modal', function (e) ... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... |
'use strict';
var path = require('path');
var gutil = require('gulp-util');
var constants = require('./constants');
var fs = require('fs');
var PluginError = gutil.PluginError;
var child = require ('child_process');
var constants = require("./constants");
var childProcess = require("child_process");
var os = require("... |
/**
* data.js
*
* <NAME>
*
* This Javascript file contains all functions that have anything to do with manipulating the data stored
* in the refugees.json and migrants.json files (in 'data' folder) and with manipulating data in general.
*
* NOTE: data.js has to be loaded first
*/
/*
* Safe data for a coun... |
//some constant
const lengthOfVector = 50;
const stageWidth = document.getElementsByName('preview')[0].offsetWidth - 15;
const stageHeight = document.getElementsByName('controller')[0].offsetHeight;
// konva stage
var stage = new Konva.Stage({
container: 'canvas1',
width: stageWidth,
height: stageHeight,... |
// ***********************************************************************
// Global javascript functions for Protein|Clpper
// <NAME>, <NAME>, <NAME>
// Version 0.2
// January 2015
// ***********************************************************************
//
// *********************************************************... |
/*
Copyright 2014 Extensions of Logic Programming - Universitat Politècnica de València
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the righ... |
import React from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { DragDropContext} from 'react-beautiful-dnd';
import ToolTip from 'react-portal-tooltip'
import {
compose,
differenceWith,
eqBy,
equals,
find,
findIndex,
identity,
insert,
isEmpty,
isNil,
... |
var WIDTH, HEIGHT = WIDTH;
var running, ready;
var frames, fps, secTimer, lastTime, survivalTime, spawnTimer, paused;
var canvas, ctx, keystate;
var mouseDown, mouse, keys;
var player, bullets, enemies;
function main() {
WIDTH = 800;
HEIGHT = WIDTH * 9/16;
mouseDown = false;
mouse = {x: null, y: null};
survivalT... |
"use strict";
//mongoose file must be loaded before all other files in order to provide
// models to other modules
var mongoose = require("./mongoose"),
passport = require("passport"),
express = require("express"),
jwt = require("jsonwebtoken"),
expressJwt = require("express-jwt"),
router = express.Router(),... |
/*
* 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 ... |
/* eslint-disable camelcase */
var empty = require('is-empty')
var express = require('express')
var request = require('request')
var bodyParser = require('body-parser')
var app = express()
app.set('views', './views')
app.set('view engine', 'ejs')
// var HAAPI = require('./requestHAAPI')
app.listen(process.env.PORT ||... |
// Initialize user character
var img = document.querySelector('.imgBox');
var user = document.getElementById('avatar');
var hasMoved = false;
var isMoving = false;
// Initialize information boxes
var intro = document.querySelector('.infoBoxIntro');
var proj = document.querySelector('.infoBoxProj');
var exp = document.... |
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(generator["throw"]... |
//==================================
//====================ПОДКЛЮЧЁН ТОЛЬКО В АДМИНКЕ
document.addEventListener("DOMContentLoaded", () => {
//window.onload=function(){
let imgInput = document.querySelector('.single-img__input')
if (imgInput) {
imgInput.addEventListener('change', function (e) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DemoGame = void 0;
const dna_1 = require("../common/dna");
class DemoGame extends dna_1.Game {
constructor() {
super();
dna_1.ResourceManager.Preload(() => this.ContentLoaded());
// this.canvas = document.cr... |
import {
isNode,
isSvg,
getImagesFromSelector,
createOverlay,
cloneTarget,
createCustomEvent,
} from './utils'
const mediumZoom = (selector, options = {}) => {
/**
* Ensure the compatibility with IE11 if no Promise polyfill are used.
*/
const Promise =
window.Promise ||
function Promise(f... |
const botconfig = require("./botconfig.json");
const Discord = require("discord.js");
const fs = require("fs");
const { Client, Collection, Intents } = require("discord.js");
const bot = new Client({ intents: ['GUILDS', 'GUILD_MESSAGES'] });
const prefix="!";
const db = require('quick.db');
module.exports = bot;
const ... |
import axios from 'axios';
import { WORDPRESS_BASE_URL } from '../config';
const wordpressApiClient = axios.create({
baseURL: `${WORDPRESS_BASE_URL}/wp-json/wp/v2`,
timeout: 50000
});
wordpressApiClient.interceptors.request.use(config => {
return config;
});
export const getPosts = () => wordpressApiClient.get... |
const _ = require('lodash');
const async = require('async');
const dJSON = require('dirty-json');
const request = require('request');
const { Prisma } = require('prisma-binding');
const keys = require('./keys');
const LOG_LEVELS = {
SEVERE: 1,
ERROR: 2,
WARNING: 3,
INFO: 4,
DEBUG: 5,
VERBOSE: 6
};
const ... |
/**
* Created by raychen on 16/9/6.
*/
import {
userSchema
} from '../../models/userSchema'
import {
github_repoSchema
} from '../../models/github_repoSchema';
import {
github_userSchema
} from '../../models/github_userSchema'
import {
languageSchema
} from '../../models/languageSchema';
import {
transTime... |
const Bitfinex = require("bitfinex-api-node");
const _ = require('lodash');
const moment = require('moment');
const Errors = require('../exchangeErrors');
const retry = require('../exchangeUtils').retry;
const marketData = require('./bitfinex-markets.json');
var Trader = function(config) {
_.bindAll(this);
if(_... |
const datetime = require('./datetime');
const { rrulestr } = require('rrule');
class VEvent {
constructor(vevent, timezones) {
this.timezones = timezones;
this.description = null;
this.location= null;
this.uid = null;
this.summary = null;
for(const i in vevent) {
... |
var anc = [{"n":"White","c":"ffffff"},{"n":"Black","c":"000000"},
{"n":"Bamboo1","c":"b8d94c"},{"n":"Bamboo2","c":"9cbe30"},{"n":"Bamboo3","c":"6ba410"},{"n":"Bamboo4","c":"42860e"},{"n":"Bamboo5","c":"356507"},
{"n":"Coral1","c":"fcb7bd"},{"n":"Coral2","c":"f58888"},{"n":"Coral3","c":"f06158"},{"n":"Coral4","c... |
var PositionModel = require('./PositionModel');
var Dilla = require('dilla');
var instanceOfType = require('./types/instanceOfType');
var debounce = require('lodash.debounce');
var memoize = require('meemo');
var inited = false;
function init (context) {
inited = true;
var source = context.createBufferSource();
... |
var Msg = require('./msg');
var moment = require('moment');
var Robot = require('../controllers/robot');
var RobotLog = require('../controllers/robot_log');
module.exports = function(wx_api) {
var Base = require('./base')(wx_api);
var subscribe = function(info, next) {
var uid = info.uid;
var eventKey = B... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _fs = require('fs');
var _fs2 = _interopRequireDefault(_fs);
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _Chunk = require('webpack/lib/Chunk');
var _Chunk2 = _interopRequireDefault(... |
function api_call(b, a, c) {
b.open("POST", api_url);
b.setRequestHeader("Content-Type", "application/json");
b.withCredentials = true;
b.onreadystatechange = c;
b.send(JSON.stringify(a))
}
function api_response(b) {
if (b == undefined) {
return false
}
if (b.readyState == 4) {
if (b.status == 200) {
va... |
// Ordering client (this RideSheet instance) receives request for tripRequests from provider and
// returns an array JSON objects, each element of which complies with
// Telegram 1A of TCRP 210 Transactional Data Spec.
function receiveRequestForTripRequestsReturnTripRequests() {
try {
const ss = SpreadsheetApp.ge... |
/**
* Copyright (c) Microsoft. All rights reserved.
*
* 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 ... |
import {createSelector} from 'reselect'
import {
OS_WINDOWS,
OS_MAC,
DB_TYPE_WEB,
DB_TYPE_OLTP,
DB_TYPE_DW,
DB_TYPE_DESKTOP,
DB_TYPE_MIXED,
HARD_DRIVE_HDD,
HARD_DRIVE_SSD,
HARD_DRIVE_SAN
} from 'reducers/configuration/constants'
const SIZE_UNIT_MAP = {
KB: 1024,
MB: 1048576,
GB: 1073741824,
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/* ================================================== */
/** Base Configuration Variables */
/* ================================================== */
var configFileDir = '../../../config/';
var fileExtension = '.json';
var requestValue = 'GET';
var localDicomServerPath = 'http://localhost:8042/';
/* =================... |
/*
Original source from:
- Drag & Drop Menu Editor (Wordpress-like) jQuery plugin
https://github.com/FrancescoBorzi/Nestable.git
*/
/*************** General ***************/
var updateOutput = function (e) {
var list = e.length ? e : $(e.target),
output = list.data('output');
if (window.JSON) {
if (output)... |
var events = require('./events').events;
var ALL = 2, ALL_BUT_SENDER = 1, SENDER = 0;
var PASSLEFT = 0, PASSACROSS = 1, PASSRIGHT = 2, NOPASS = 3;
var cardClass = require('./card-class');
var tableClass = require('./table-class');
var sleepSeconds = 0.5 * 200000;
var Engine = require('./engine/trump-engine');
hearts.... |
// We're using Tone.js for the music!!
music = {}
music.hitChord = (n) => {return -5 -36 + n * 4}
music.normalNotes = ['A3', 'C#4', 'D4', 'F#4', 'A4', 'C#5', 'D5']
// Flags:
music.asteroidHit = 0;
music.playerHit = false;
music.playerControl = false;
music.playerShoot = false;
music.outOfControl = false;
music.gam... |
'use strict'
import React, { Component } from 'react';
import {
View,
StyleSheet,
Text,
TouchableHighlight,
ListView,
Platform,
} from 'react-native';
import {Spinner, StyleProvider, Footer, FooterTab, Button, Header, Title, Subtitle, Container, Content, List, ListItem, Icon, Badge, Left, Body, Right, Swi... |
/**
* @module mesh ... functions to generate the basic map
*
* a mesh is a triangular tessalation of the map.
* a mesh includes:
* pts ... the original well spaced points
* vor ... Voronoi tesselation of those points
* vxs ... <x,y> coordinate of each Voronoi vertex
* adj ... list of vertex indices of neigh... |
import React, { useState, useEffect } from "react";
import {
Placeholder,
VisitorIdentification,
withSitecoreContext,
} from "@sitecore-jss/sitecore-jss-react";
import { NavLink, useLocation } from "react-router-dom";
import { withTranslation } from "react-i18next";
import Helmet from "react-helmet";
import { use... |
'use strict';
const _ = require('lodash');
const { App } = require('jovo-framework');
const { Alexa } = require('jovo-platform-alexa');
const { JovoDebugger } = require('jovo-plugin-debugger');
const { FileDb } = require('jovo-db-filedb');
console.log('This template uses an outdated version of the Jovo Framework. We ... |
/*
Neodigm 55 UX v1.2.0
Copyright (c) 2021, Arcanus 55 Privacy Paranoid Vault | <NAME>
All rights reserved. Redistributions of source code must retain the above copyright notice.
Neodigm 55 UX is an eclectic JavaScript UX micro-library.
The lightweight components come together in a unique way that will make visiting ... |
var prevTypes = {},
origRepoTypes = [];
function updateFormDisplay(id, tools_info) {
var type = $("#id_" + id)[0].value,
oldInfo = tools_info[prevTypes[id]],
newInfo = tools_info[type],
text,
field,
i;
for (i = 0; i < oldInfo.fields.length; i++) {
$("#row-" ... |
import {vector} from "./entities.js";
import {objects} from "./entities/objects.js";
import {random, randomNdx} from "./math.js"
var nests = [], generation = 0, clearGame;
const targetNbrLinks = {min: 30, max: 50}, nbrNests = 100;
function R2one(n) {
return 2*Math.atan(n)/Math.PI;
}
function one2R(n) {
if(n>1) n = ... |
import React from 'react';
import { uuid } from '@vuu-ui/utils';
import { getManagedDimension } from '../layoutUtils';
import { getProp, getProps, nextStep, resetPath, typeOf } from '../utils';
import {
createPlaceHolder,
getFlexDimensions,
getFlexOrIntrinsicStyle,
getIntrinsicSize,
wrapIntrinsicSizeComponent... |
var query='';
$(document).on("pageshow", "#analytics-page", function(){
drawChartFake();
});
$(document).on('tap','[action="selectchk"]', function(event) {
var x=document.getElementById("selectAllFences");
if (x.innerHTML=="Select all"){
document.getElementById("selectAllFences").innerHTML="Deselect all";
var c... |
import React, { useState } from "react"
import { Link, graphql, useStaticQuery } from "gatsby"
import styled from "styled-components"
import Layout from "../../components/Layout"
import HeroHeader from "../../components/HeroHeader"
import HeroImage from "../../images/mini-hd-walk-behind-header.jpg"
const PageBody = st... |
var widgets = require('@jupyter-widgets/base');
var THREE = require('three');
var _ = require('underscore');
/**
* Compute the box bounding all objects in a scene graph.
*
* Returns an empty if no relevant objects were found.
*/
var computeBoundingBox = function() {
var objectBoundingBox = new THREE.Box3();
... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors'),
winston = require('winston'),
logger = winston.loggers.get('app_log'),
async = require('async'),
redis = require('redis'),
Game = mongoose.model('Game'),
Round = mongoose.model('Roun... |
//MIT License - Copyright (c) 2020-2021 Picorims
//EXPORTING THE PROJECT INTO A VIDEO || RENDERER PROCESS PART (completely excluded from main window process)
var path = require("path");
var export_mode = true; //in export window
var received_data;
var screen;//HTML screen element
var audio_file_path;
var PCM_data, s... |
var core = require("./fm-core.js");
// Formality's runtime works by compiling normal Terms to a
// Runtime Terms (RtTerm), reducing, and decompiling back.
// A RtTerm is a map `{mem:[U32], ptr:U32}` containing the
// term data in a compressed form. It exists in a context of
// top-level defs, `rt_defs`, of type `Map(R... |
"use strict";
var Shim = require("./shim");
var GenericCollection = require("./generic-collection");
var GenericSet = require("./generic-set");
var Set, GlobalSet, CollectionsSet;
if((global.Set !== void 0) && (typeof global.Set.prototype.values === "function")) {
GlobalSet = module.exports = global.Set;
Gl... |
'use strict';
const { rendererFactory: mapnikRendererFactory } = require('@carto/cartonik');
const mapnik = require('@carto/mapnik');
const grainstore = require('grainstore');
const layersFilter = require('../../utils/layers-filter');
const MapnikAdaptor = require('./adaptor');
const DefaultQueryRewriter = require('..... |
import { COMMANDS } from "./constants";
import Variable from "./variable";
const MAGIC = "FG";
const PRIMITIVE_TYPES = {
5: "BOOLEAN",
2: "INT",
3: "FLOAT",
4: "DOUBLE",
6: "STRING",
};
// TODO: Don't depend upon COMMANDS
function opcodeToArgType(opcode) {
const command = COMMANDS[opcode];
if (command =... |
var myMap;
var myObject = new Array();
var myInterval;
var intervalCounter = 0;
var myInfoWindow;
var centerpoint;
// although we are using a static data source consisting of 4 pairs of
// lat/lon/elevation, we could have used an Ajax call to get such data
// from a database or a mi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _UniversalDisposable;
function _load_UniversalDisposable() {
return _UniversalDisposable = _interopRequireDefault(require('nuclide-commons/UniversalDisposable'));
}
var _featureConfig;
function _load_featureConfig() {
return _fe... |
var fs = require('fs');
var _ = require('lodash');
var Mustache = require('mustache');
var d = new Date();
var curyear = d.getFullYear();
var language;
var languageFile = "/lang.se.json";
function getLanguage(){
if (!language)
language = JSON.parse(fs.readFileSync(__dirname + languageFile, "utf-8"));
return l... |
farmInfo = document.getElementById("farmInfo");
var url_string = window.location.href;
var url = new URL(url_string);
var farmNo = url.searchParams.get("farm");
var table = document.getElementById("tableBody")
var preview = document.getElementById("upload-files-display");
var newFile = null;
var newFileType = document.... |
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]; } } } return target; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
/*
REPLIEMENT SPECTRAL
Version du 08/12/2016
Copyright <NAME> (<EMAIL>), <NAME>, <NAME>, 2016.
Les programmes Javascript fournis par l'intermédiaire de ces pages
proposent des illustrations et des animations pédagogiques pour le
traitement du signal, les communications numériques, etc.
C... |
/**
* Created by wizard on 11/1/16.
*/
const mongodb = require('./mongodb'),
Promise = require('bluebird').Promise,
WordExerciseProgress = require('../models/wordExerciseProgress'),
WordExercise = require('../models/wordExercise'),
wordSource = require('../models/wordExerciseSource'),
User = requ... |
// Declaration for the required global variables
const fontName = 'Joystix';
// Constants for the game
const gameCanvas = document.getElementById('game-canvas');
const gameContext = gameCanvas.getContext('2d');
// Constants for the game settings
const tileSize = 24;
const desiredFps = 16;
const fpsInterval = 1000 / d... |
/**
* 存储localStorage
*/
export function parseWidth(width) {
if (width !== undefined) {
width = parseInt(width, 10);
if (isNaN(width)) {
width = null;
}
}
return width;
}
export function parseMinWidth(minWidth) {
if (typeof minWidth !== 'undefined') {
minWi... |
import nock from 'nock';
import addWeeks from 'date-fns/addWeeks';
import format from 'date-fns/format';
import processorFunctions from '../processor';
import {
getDatabaseConnection,
closeDBConnection,
deleteMany,
insertMany,
find
} from '../../lib/mongo';
const {
getCookieAndToken,
getFilteredOffices,... |
// © Copyright IBM Corporation 2020. All rights reserved.
// SPDX-License-Identifier: Apache2.0
//
const fs = require('fs');
const util = require('util');
const readFile = util.promisify(fs.readFile);
const encoder = require('nodejs-base64-encode');
module.exports = async(
SETTLE_METHOD,
OFI_ID,
OFI_ACCOU... |
module.exports = users;
users.list = list;
users.create = create;
users.read = read;
users.delete = deleteUser;
users.update = update;
users.import = importUsers;
users.desc = "Administer FeedHenry Users";
users.usage = "\nfhc admin-users list"
+"\nfhc admin-users create username=<username> [password=<pa... |
const config = require('../config')
const ws = require(config.app.ws)
const wsmysql = require(config.app.wsmysql)
const com = require('../common')
const fs = require('fs-extra') //not fs
const url = require('url')
const mime = require('mime')
const express = require('express')
const multer = require('multer')
const ff... |
var xmlHttp;
var base_url="http://10.13.71.176/";
//var base_url="http://10.13.71.176/cim/";
var initflag = 1;
$(document).ready(function(){
str="CeShiTest";
getThresholdInfo(str);
})
function getThresholdInfo(str){
url=base_url+"index.php/ajax_infoset/getThresholdInfo/";
url=url+"sid="+Math.random();... |
/**
* @author <NAME>
* @licence MIT
*/
'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 || ... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
'use strict';
var fs = require('fs');
var EventEmitter = require('events');
var emitter = new EventEmitter();
var deviceList = [];
fs.exists('/etc/devices', function (exists) {
console.log('devices exists: ', exists);
if (exists) {
fs.readFile('/etc/devices', function (err, data) {
if (er... |
const isBrowser = typeof window !== 'undefined'
const querystring = require('querystring');
import { CtoSTimeout, StoSTimeout, isProduction,disableRetry} from '../config/constants.js';
import axios from 'axios';
var appendQuery = require('append-query')
const queryString = require('query-string');
var async = require('... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
'use strict';
/*
Structure and naming:
this is a layer Package. it contains information about a single server-side layer.
note this is not always 1-to-1 with client side. a client side DynamicLayer can have
many server-side sublayers, each with their own attribute sets
DO NOT access the ._attribData property direct... |
import counterpart from 'counterpart';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { deleteViewRequest, advSearchRequest, patchRequest } from '../../api';
import { PATCH_RESET } from '../../constants/Ac... |
import _ from 'lodash';
import { Button } from 'primereact/button';
import { Dialog } from 'primereact/dialog';
import { InputText } from 'primereact/inputtext';
import { ListBox } from 'primereact/listbox';
import { ProgressSpinner } from 'primereact/progressspinner';
import { ToggleButton } from 'primereact/togglebut... |
//jshint maxstatements:false, maxcomplexity:false, maxdepth:false
//Performance reason
'use strict';
function prepareColor(colorMap, voxel) {
if (Array.isArray(voxel)) {
var ci1 = (Math.abs(voxel[0]) - 1) * 3;
var ci2 = (Math.abs(voxel[1]) - 1) * 3;
return [
(colorMap[ci1] + c... |
var ATTRIBUTE = {
alternateServer : require('./Attribute/alternateServer'),
changeRequest : require('./Attribute/changeRequest'),
changedAddress : require('./Attribute/changedAddress'),
errorCode : require('./Attribute/errorCode'),
fingerprint : require('./Attribute/fingerprint'),
ice... |
/* Import statements */
import React from 'react';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { default as Images } from '../middleware/images';
import Dropdown from '../components/dropdown.js';
import Header from '../components/header.js';
import MetaMaskInstall from '../components/metamask-inst... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.