text stringlengths 5.97k 41.2k |
|---|
import React, { Component } from "react";
import PropTypes from "prop-types";
import "../../assets/css/styles/app.scss";
import "../../assets/css/styles/bootstrap.scss";
import "jquery";
import "jquery-slimscroll/jquery.slimscroll.min";
import classNames from "classnames";
// core components
import { withStyles } fr... |
import { select, mouse } from 'd3-selection';
import { json } from 'd3-request';
import { geoGraticule, geoPath } from 'd3-geo';
import { symbol } from 'd3-shape';
import { max } from 'd3-array';
import { feature, mesh, neighbors } from 'topojson';
import {
geoAlbers,
geoAlbersUsa,
geoEquirectangular,
geoMerc... |
function showLogin(error) {
$('#logout-btn').hide();
$('#login').show();
if(error) {
$('#error').show();
}
}
function hideLogin() {
$('#login').hide();
$('#logout-btn').show();
}
function showProfilePic(profile, url) {
$('#profile-pic').append('<a href="'+profile+'"><img src="'+url+'" width="40" hei... |
'use strict';
var cac = require('cac');
var vite = require('vite');
var path = require('path');
var fs = require('fs');
var jiti = require('jiti');
var chalk = require('chalk');
var prettyBytes = require('pretty-bytes');
var boxen = require('boxen');
var vueApp = require('@nxxt/vue-app');
var vue = require('@vitejs/pl... |
const spawn = require('child_process').spawn;
const stream = require('stream');
const express = require('@cisl/express');
const BinaryRingBuffer = require('@cisl/binary-ring-buffer');
const io = require('@cisl/io')();
const logger = require('@cisl/logger');
const SpeechToTextV1 = require('ibm-watson/speech-to-text/v1'... |
const TerminusClient = require('@terminusdb/terminus-client');
let HTMLHelper = {};
HTMLHelper.getSettingsControl = function(view){
var icon = document.createElement('icon');
if(view == 'property') icon.setAttribute('class', 'fa fa-cog terminus-pointer');
else if(view == 'data') icon.setAttribute('class', 'fa fa-ed... |
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-use-before-define */
/*///////////////////////////////// ABOUT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\
A class for managing hash-mapped data and detecting differences
in a dataset.
(1) manages differences - an array of ... |
window.captainform_is_widget_page = true;
jQuery(document).ready(function ($) {
captainform_bind_widget();
});
function captainform_bind_widget(widget_id_to_bind)
{
var prefix = '';
if (typeof widget_id_to_bind != 'undefined' && widget_id_to_bind != '' && widget_id_to_bind != null)
prefix = "#" + widget_id_to_bin... |
var App = {
Model : {},
Collection : {},
View : {},
Route : {}
};
//Backbone.emulateHTTP = true;
//Backbone.emulateJSON = true;
App.Model.Forum = Backbone.Model.extend({
defaults : {
id : '',
name : '',
username : '',
user_id : '',
message : '',
repli... |
import { projectsController } from "../controllers/projectsController.js";
import { phrasesController } from "../controllers/phrasesController.js";
import { authenticationController } from "../controllers/authenticationController.js";
import { languagesController } from "../controllers/languagesController.js";
import {... |
'use strict';
/*import { data } from "jquery"; */
/*eslint-disable*/
var ScheduleList = [];
var databaseScheduleList = [];
var genereatedRecurrence = false;
var recurrenceChecked = false;
var recurrenceCheckbox = "";
var weeksKeyPressField = 1;
var scheduleOpen = false;
var SCHEDULE_CATEGORY = [
'milestone',
... |
// This is a content script, it runs on starbase_trade.php and planet_trade.php.
// From other files:
var Overlay, Building, Sector, Universe = Universe.fromDocument( document );
// Globals
var configured, userloc, time, psbCredits;
configure();
setup();
// End of script execution.
function configure() {
var scri... |
"use strict";
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];
... |
//========================================================
//========================================================
//===================== CV ============================
//========================================================
//========================================================
var g_cv = null;
//====... |
const _ = require('underscore');
const AbilityDsl = require('./abilitydsl.js');
const CardAction = require('./cardaction.js');
const EffectSource = require('./EffectSource.js');
const TriggeredAbility = require('./triggeredability');
const PlaySpell = require('./BaseActions/PlaySpell');
const PlayUnitAction = require(... |
// DB ///////////////////////////////////////
const mongoose = require('mongoose')
// Je me connecte à ma DB chez mlab.com:
// DB name: idp
// DB User: etcomlab2018
// DB Pass: <PASSWORD>
var mongoDB = 'mongodb://etcomlab2018:<EMAIL>:47270/idp'
mongoose.connect(mongoDB)
mongoose.Promise = global.Promise
var db = mongo... |
(function parseLatex () {
var N = 0
function tree(text) {
var ancestors = [], buffer = ""
var cur0, cur = []
var _tree = cur
function dump() {if (buffer) cur.push(buffer), buffer = ""}
function open() {cur.push(cur0 = []); ancestors.push(cur); cur = cur0; }
function close() {cur = ancestors.pop()}
function accu... |
/**
* This file contains network interactions with the Teleport API. See docs for the API here:
* https://developers.teleport.org/
* This application performs 5 different API calls. Those are:
* 1. Get list of cities by name (see https://developers.teleport.org/api/getting_started/#search_name). This is perform... |
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) { try { step(g... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import {
message,
Card,
Form,
Upload,
DatePicker,
Tooltip,
Button,
Radio,
Icon,
Tag,
List,
Modal,
Input,
Select,
} from 'antd';
import Ellipsis from 'c... |
// Dependencies
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { FONT, resetAction, flattenAnswers, requestCurrentPosition } from '../utils'
import { storeAnswers, sendSurvey, setEsmAvailability } from '../ducks/survey'
import { startSurveyDone } from '../ducks/user'
import IconIo... |
// ==UserScript==
// @name Zooniverse SuperWASP tweak
// @namespace astro.superwasp
// @match https://www.zooniverse.org/projects/ajnorton/superwasp-variable-stars*
// ^ the feature only works on talk pages (and classify page for mobile-tweak),
// but we match the entire proje... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var ElButton = require('../el-button');
var ElInput = require('../el-input');
var locale = require('../locale');
var overlay = require('../el-overlay');
var hooks = require('../hooks');
var directives = require('../... |
import { defineComponent, inject, ref, computed, watch, nextTick, onMounted, onBeforeUnmount, resolveComponent, resolveDirective, openBlock, createBlock, withCtx, withDirectives, createVNode, withModifiers, Fragment, renderList, toDisplayString, withKeys, vModelText, createCommentVNode, vShow, renderSlot } from 'vue';
... |
import L from './leaflet/leaflet.js';
import heatLayer from './leaflet/leaflet-heat.js';
import moment from 'moment';
import appEvents from 'app/core/app_events';
import {MetricsPanelCtrl} from 'app/plugins/sdk';
import './leaflet/leaflet.css!';
import './partials/module.css!';
const panelDefaults = {
maxDataPoin... |
/// <reference types="cypress" />
import {
apiUrl, addDefaultFixtures, FIXTURE_REF_CLUSTERHEALTH, nodes_route, checkTableSize,
upgradeProgress_route, FIXTURE_REF_UPGRADEPROGRESS, FIXTURE_REF_MANIFEST, addRoute, checkTableErrorMessage, EMPTY_LIST_TEXT, FAILED_TABLE_TEXT, FAILED_LOAD_TEXT, repairTask_route, manifest... |
/**
* Main controller for Ghost frontend
*/
/*global require, module */
var moment = require('moment'),
RSS = require('rss'),
_ = require('lodash'),
url = require('url'),
Promise = require('bluebird'),
api = require('../api'),
config = require(... |
import { useState, useRef, useEffect } from 'react';
import { v4 as uuid } from 'uuid';
import SendbirdChat, { UserUpdateParams } from '@sendbird/chat';
import {
OpenChannelModule,
OpenChannelHandler,
OpenChannelCreateParams,
OpenChannelUpdateParams
} from '@sendbird/chat/openChannel';
import {
Us... |
var smoother = new Smoother(0.85, [0, 0, 0, 0, 0]);
var $video=document.getElementById('video');
var $tCanvas = document.getElementById('canvas');
var $tCtx = $tCanvas.getContext("2d");
var $fCanvas = document.getElementById('focuscanvas');
var $fCtx = $fCanvas.getContext("2d");
var $hullCanvas = document.getEl... |
import Vue from 'vue'
import Router from 'vue-router'
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
/**
* hidden: true if `hidden:true` will not show in the sidebar(default is false)
*... |
/**
* @file Residue Type
* @author <NAME> <<EMAIL>>
* @author <NAME>
* @private
*/
import { calculateResidueBonds } from "../structure/structure-utils.js";
import {
ProteinType, RnaType, DnaType, WaterType, IonType, SaccharideType, UnknownType,
ProteinBackboneType, RnaBackboneType, DnaBackboneType, Unkno... |
import React, {useState, memo, useEffect, useMemo} from "react";
import { connect } from 'react-redux';
import { compose } from 'redux';
import { useInjectReducer } from 'utils/injectReducer';
import { createStructuredSelector } from 'reselect';
import reducer from './reducer';
import {
makeSelectCurrentUser,
mak... |
/* global $, hljs, window, document */
///// represents a single document
class haste_document {
constructor(app) {
this.locked = false;
this.app = app;
}
// Escapes HTML tag characters
htmlEscape(s) {
return s
.replace(/&/g, '&')
.replace(/>/g, '>')
.replace(/</g, '<')
.replace(/"/g, '... |
/**
* Dialog
*
* @author <NAME> <<EMAIL>>
* @license MIT
* @version 2.1
**/
var Dialogs = {
Lang:{
close: ' × ',
prev: '« Previous',
next: 'Next »',
loading: 'Loading...',
ok: 'OK',
yes: 'Yes',
no: 'No'
},
Default:{
handle: ... |
// Copyright 2017 ODK Central Developers
// See the NOTICE file at the top-level directory of this distribution and at
// https://github.com/opendatakit/central-backend/blob/master/NOTICE.
// This file is part of ODK Central. It is subject to the license terms in
// the LICENSE file found in the top-level directory of ... |
/* sprites.js */
// Contains functions for finding, setting, and manipulating sprites
// Resets the main canvas and context
function resetCanvas() {
// The global canvas is one that fills the screen
window.canvas = getCanvas(innerWidth, innerHeight, true);
// window.canvas = createElement(
// "canvas",
/... |
/**
* @since 20180227 18:31
* @author amos
*/
Object.merge_es_private = function (dst, ...rest) {
for (const src of rest) {
if (typeof dst != 'object' || typeof dst != typeof src) {
dst = src;
continue;
}
let isArr = Array.isArray(src);
if (Array.isArray(d... |
var datos_respuestas;
$(document).ready(function () {
LlenarTabla();
$.ajax({
url: "/ResOpcMults/TodasRespuestas/",
type: "GET",
success: function (data, textStatus, jqXHR) {
datos_respuestas = data;
},
error: function (jqXHR, textStatus, errorThrow... |
"use strict";
exports.__esModule = true;
var Ajv = require("ajv");
var openapi_jsonschema_parameters_1 = require("openapi-jsonschema-parameters");
var ts_log_1 = require("ts-log");
var contentTypeParser = require('content-type');
var LOCAL_DEFINITION_REGEX = /^#\/([^\/]+)\/([^\/]+)$/;
var OpenAPIRequestValidator = /** ... |
import { ElementoHTML } from "./modules/clases.mjs"
// Accedemos al section donde se cargará el juego y declaramos las variables de la imagen inicial y el botón jugar.
const ModuleGame = document.getElementById("game");
const ImageStart = "./assets/zorroFeroz.jpg";
const BtnStart = "./assets/boton__play.png";
cons... |
//
// NOTE: This action script is Ubuntu specific!
//
const os = require('os')
const fs = require('fs')
const path = require('path')
const crypto = require('crypto')
const core = require('@actions/core')
const exec = require('@actions/exec')
const cache = require('@actions/cache')
const io = require('@actions/io')
l... |
// HELPERS
function parseData(d) {
var keys = _.keys(d[0]);
return _.map(d, function(d) {
var o = {};
_.each(keys, function(k) {
if( k == 'Country' )
o[k] = d[k];
else
o[k] = parseFloat(d[k]);
});
return o;
});
}
function getBounds(d, paddingFactor) {
// Find min and... |
'use strict';
const strings = require('./strings');
const trim = strings.trim;
const isNotBlank = strings.isNotBlank;
const any = require('./any');
const toType = any.toType;
const propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
/**
* Module containing utilities for working with objects.
* @module c... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var react = require('react');
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
... |
const utils = require('./utils');
const parseUri = require('drachtio-srf').parseUri ;
const SipError = require('drachtio-srf').SipError;
const config = require('config');
const debug = require('debug')('drachtio-rtpengine-webrtcproxy') ;
class CallProcessor {
/**
* creates an instance of the call processor. thi... |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _chunk42OWKG5Wjs = require('./chunk-42OWKG5W.js');
var _chunkHIJQIC5Vjs = require('./chunk-HIJQIC5V.js');
// src/core/unplugin.ts
v... |
const hue = require('./hue');
const hueConfig = require('../../config/hue');
const { Client } = require('tplink-smarthome-api');
const energyModel = require('../../Models/mongo/energy');
const moment = require('moment');
const client = new Client();
// update every 10 seconds
const energyHistoryUpdateEveryXSeconds = ... |
import {
gameover1
} from "./gameover1.js";
import {
fase2
} from "./fase2.js";
//criação do player 1
var player;
//criação de inimigos
var bombs;
var inimigo;
var boneco1;
var boneco2;
var boneco3;
//plataformas/icones na tela
var scoreText;
var scoreJogador1 = 0;
var platforms;
//par... |
'use strict';
const chrome = require('selenium-webdriver/chrome');
const selenium_webdriver = require('selenium-webdriver');
const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');
const fs = require('fs');
const path = require('path');
const R = require('ramda');
const jStat = req... |
// This is the custom package for PLSQL to MD
var
debug,
extend,
path = require('path'),
dox = require('./dox.js')
;
var pmd = {};
// Constants
pmd.DOCTYPES = {
FUNCTION: "function",
PROCEDURE: "procedure",
CURSOR: "cursor",
//Note: For constants or dataTypes to be triggered @constants or @types ne... |
const singleInstance = require('./single-instance');
const Route = require('./route');
const utils = require('./utils');
const errors = require('./errors');
const historyActions = require('./constants/history-actions');
module.exports = class Router {
/**
* @param {history} history - The history.
* @param {Rea... |
import * as THREE from "three";
import constants from "../constants";
import { centroid, gridPosToWorldPos, worldToGridPos, worldToScreen, playSound, loadAudios } from "./Utils";
const ROTATIONS = {
NONE: "none",
BASE_RIGHT: "baseRight",
BASE_LEFT: "baseLeft",
LEFT_DOWN: "leftDown",
LEFT_UP: "leftU... |
'use strict';
const Code = require('@hapi/code');
const Lab = require('@hapi/lab');
const { AttrList } = require('..');
// Test shortcuts
const { before, describe, it } = exports.lab = Lab.script();
const { expect } = Code;
describe('AttrList', () => {
describe('constructor()', () => {
it('supports... |
import React from 'react'
import {View,Dimensions,Animated} from 'react-native'
import {Layout as Lay,Text,useTheme,TopNavigation,Icon} from '@ui-kitten/components'
import {TabView,TabBar} from 'react-native-tab-view'
import Skltn from 'react-native-skeleton-placeholder'
import Modal from 'react-native-modal'
import an... |
/*jslint node:true, vars:true, bitwise:true, unparam:true */
/*jshint unused:true */
// Leave the above lines for propper jshinting
// data variable to write
var dataToWrite;
// The program is using the Node.js built-in `fs` module
// to load the config.json and any other files needed
var fs = require("fs");... |
/**
* 截屏编辑器
*
* 参考文章
* @see {@link https://juejin.cn/post/6844903687706378247} 从零开始用 electron 手撸一个截屏工具
* @see {@link https://juejin.cn/post/6844903697705598983} Electron 截图踩坑和优化集合
* @see {@link https://juejin.cn/post/6982124234180919327} 基于 Electron 实现屏幕取色和截屏
* @see {@link https://zhuanlan.zhihu.com/p/121075555... |
var Test = require('../utils/testConfig.js');
var {FlightSuretyAppHelper} = require('../utils/FlightSuretyAppHelper.js');
var BigNumber = require('bignumber.js');
contract('Flight Surety App Tests', async (accounts) => {
const STATUS_CODE_UNKNOWN = 0;
const STATUS_CODE_ON_TIME = 10;
const STATUS_CODE_LATE_AIRLI... |
import { createStructuredSelector, createSelector } from 'reselect';
import indonesiaPaths from 'utils/maps/indonesia-paths';
import uniqBy from 'lodash/uniqBy';
import uniq from 'lodash/uniq';
import sortBy from 'lodash/sortBy';
import get from 'lodash/get';
import isArray from 'lodash/isArray';
import groupBy from 'l... |
import React, { Component } from 'react';
import {Label, Table, Input, Col } from 'reactstrap';
import PropTypes from 'prop-types';
import {commons} from '../../_helpers/commons.js';
import AttributeArrayGroup from './AttributeArrayGroup.js';
import AttributeArrayObjectGroup from './AttributeArrayObjectGroup.js';
impor... |
// Globals.
const r = React;
const rd = ReactDOM;
const e = r.createElement;
document.addEventListener('DOMContentLoaded', () => {
rd.render(e(App), document.getElementById('root'));
});
function App() {
const defaultGroupByCountry = covidFilters.groupByCountry.defaultValue;
const defaultSelectedTypes = covidF... |
let table;
let currentEditRow;
const icons = '<i class="fas fa-trash removeIcon" onclick="removeRow(this)"></i> <i class="fas fa-edit editIcon" onclick="showEditRowModal(this)"></i>';
let inputsMetaData = [];
let currentColumnIndex;
window.onload = function () {
if (window.jQuery) {
$(document).ready(funct... |
// Test case editor server - helps edit test cases
// Setup all required packages
'use strict';
// Object definition for holding Complex Paragraphs - object factory
var complexParagraph = function() { return Object.create({ id : "",
text : "",
steps: [],
index : 0,
add : function(id, te... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.storeFactory = exports.SpeechRuleEngine = void 0;
const auditory_description_1 = require("../audio/auditory_description");
const debugger_1 = require("../common/debugger");
const DomUtil = require("../common/dom_util");
const engine_1 ... |
import PropTypes from 'prop-types'
import React, { useEffect, useState } from 'react'
import { Edit, Link as LinkIcon } from '@material-ui/icons'
import selectn from 'selectn'
import Immutable from 'immutable'
// FPCC
import useDialect from 'dataSources/useDialect'
import useDirectory from 'dataSources/useDirectory'
... |
import React, {Component} from "react";
import classNames from "classnames";
import {AppTopbar} from "./AppTopbar";
import {AppMenu} from "./AppMenu";
import {Route} from "react-router-dom";
import {Partners} from "./components/Partners";
import {LoginPage} from "./components/LoginPage";
import {GardenPage} from "./com... |
const crypto = require('crypto');
const operators = require('./operators');
const util = require('util');
const stringifyAttrs = require('./utils/stringifyAttrs');
const { safeAsyncEachSeries } = require('./utils/asyncUtils');
const builtins = ['key', 'secondary', 'ip', 'country', 'email', 'firstName', 'lastName', 'a... |
import { utils } from 'troika-core'
import {
InstancedBufferAttribute,
InstancedBufferGeometry,
Matrix4
} from 'three'
import Group3DFacade from '../Group3DFacade.js'
import { getInstancingDerivedMaterial } from './InstancingDerivedMaterial.js'
import { getShadersForMaterial } from 'troika-three-utils'
const { a... |
"use strict";
var baseUrl = "http://data.pxl.be/roosters/v1/";
var templates = {};
var classes;
var currentClass;
var roster;
var ScreensEnum = Object.freeze({
CLASSLIST : 0,
ROSTER : 1,
ROSTER_TABBED : 2
});
var currentScreen;
var tabbedRosterMinSize = 720;
$(document).ready(function() {
compileTemplates();
... |
// Copyright 2012 Google Inc. 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 law or... |
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
import { get, isEmpty, sortBy } from 'lodash';
import { FormattedMessage, useIntl } from 'react-intl';
i... |
const TARGET_DPI = 300;
const SCALE = TARGET_DPI / 96; // 96 is fixed canvas DPI
const PX_TO_MM = 0.26465566306203764; // @ 96 DPI
class PTouchRenderer {
static RenderMap = {
"text:text": PTouchRenderer.prototype.drawText,
"table:table": PTouchRenderer.prototype.drawTable,
"image:image": P... |
var opponentCount = parseInt(readline()); // Opponent count
var W = 35;
var H = 20;
var map = [];
var mapPrev = [];
var myPath = [];
var lastGameRound = -1;
var lastPoint = null;
var lastOwnPointCount = 0;
var ownPointCount = 0;
var emptyPointCount = 0;
var lastMyJump = -1;
var lastMyJumpSize = 0;
var enemyInfo = {
... |
import { createDocumentFragment } from 'utils/dom';
import { isArray, isObject, isObjectType } from 'utils/is';
import { findMap, buildNewIndices } from 'utils/array';
import { toEscapedString, toString, shuffled } from 'shared/methodCallers';
import Fragment, { getKeypath } from './Fragment';
import { ELEMENT } from '... |
const fs = require('fs');
const https = require('https');
const JSZip = require('jszip');
const {parseString,Builder} = require('xml2js');
const uuid = require('uuid/v4');
const IMAGE_URI = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image';
const IMAGE_TYPE = 'image/png';
const IMAGE_RETRI... |
'use strict';
var Matrix = require(__dirname + '/../matrix/extends'),
SvgObject = require(__dirname + '/svgobject'),
utils = require(__dirname + '/../matrix/utils'),
_ = require('underscore'),
nUtil = require('util');
var EPSILON = 0.1;
var Polygon = function() {
if (... |
/**
Project 1
by <NAME>
**/
var state;
var fishStatic = 0;
var fish1 = 1;
var fish2 = 2;
var fish3 = 3;
var fish4 = 4;
var fish5 = 5;
let r;
let g;
let b;
let col = {
r: 250,
g: 76,
b: 206
};
let dot = {
x: 150,
y: 200,
size: 20
};
// Rect 1
rect1Left = 100;
rect1Width = 200;
rect1Top = 400;
... |
//_ = require('underscore');
function hivtrace_cluster_adjacency_list(obj) {
var nodes = obj.Nodes,
edges = obj.Edges;
var adjacency_list = {};
edges.forEach(function(e, i) {
function in_nodes(n, id) {
return n.id == id;
}
var seq_ids = e["sequences"];
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var rfc2047 = _interopDefault(require('rfc2047'));
var debug = _interopDefault(require('debug'));
function _typeof(obj) {
... |
$(document).ready(function () {
var f = new Date();
if(f.getDate() +1 <=9 && f.getMonth() +1 <=9){
let fecha = (f.getFullYear() + "-0" + (f.getMonth() +1) + "-0" + f.getDate());
$('#inputFechReaj').val(fecha);
console.log(fecha + 'Dia y mes menores a 10');
}else if(f.getDate() +1 ... |
var express = require('express');
var router = express.Router();
const { check, validationResult } = require('express-validator');
const uuidv4 = require('uuid/v4')
var body = require('express-validator'); //validation
var moment = require('moment'); //datetime
const multer = require('multer'); //middleware for handlin... |
/******************************************************************************
* Copyright 2020 IEXEC BLOCKCHAIN TECH *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
... |
//To Insert Drowing
$('.drowing form.drowingActual').submit(function (e) {
$(this).find('button[type="submit"]').prop('disabled', true);
$(this).find('.spinner').removeClass('d-none');
e.preventDefault();
let that = this;
let dataForm = {};
let token = $(this).find('input').eq(0).attr('value');... |
// @ts-check
const GitHub = require('github-api');
const commitTitlePosts = 'Wordpress Posts Update';
const commitTitlePages = 'Wordpress Pages Update';
const commitTitleMedia = 'Wordpress Media Update';
const fieldMetaReference = {
posts: "https://developer.wordpress.org/rest-api/reference/posts/",
pages: "https:/... |
/***** Delivery Challan js *******/
//alert();
$("#deviceList").select2({
placeholder:" Select Device"
});
$("#simList").select2({
placeholder:" Select Sim"
});
$("#otherstock").select2({
placeholder:" Select Sim"
});
$("#created_by").select2({
placeholder:" Select Created By"
});
$("#gst").select2({
... |
/**
* DataFormsJS <json-data>, <is-loading>, <has-error> and <is-loaded> Web Components
*
* This component downloads data from a specified JSON Web Service and binds
* the data to elements on the rendered template.
*
* @link https://www.dataformsjs.com
* @author <NAME> (https://conradsollitt.com)
* @licen... |
const fs = require('fs');
const os = require('os');
const path = require('path');
let childProcess = require('child_process');
let textEncoding = require('text-encoding');
let TextDecoder = textEncoding.TextDecoder;
import { platform, cliPath } from './binaries';
export class WowRpc {
// ps -ef | grep defunct | gr... |
'use strict';
export class MultiLayerNetwork{
constructor(){
// structural properties for the network
this.nodes = new Map();
this.layers = new Map();
this.vm = new Map();
// convenience variable data on display/hidden
this.displayedLayers = new Map();
}
/**
* Add the details for a new Layer to the n... |
'use strict';
const MergeTrees = require('broccoli-merge-trees');
const Funnel = require('broccoli-funnel');
const path = require('path');
const resolve = require('resolve');
const concatBundle = require('./concat-bundle');
const buildDebugMacroPlugin = require('./build-debug-macro-plugin');
const buildStripClassCallc... |
'use strict'
const lyricFirstValues = [`Jimac - 歌枠字幕ジェネレータ -
歌枠をもっとオシャレにしよう!
Jimac は歌枠の歌詞字幕オーバーレイを
お手軽に作れるWebツールです
配信前に中央のボードに歌詞を
貼り付けて準備をします。
配信中は左右キーで字幕を
切り替えるだけ!
背景や文字の色、フォントは
自由に変えられます。
流れるようなアニメーションと、
落ちてくるようなアニメーションの
2種類が選べます
楽曲は複数登録することができて、
ワンクリックで切り替えられます。
曲名でフィルタをかけたり曲ごとに
タグを登録することで
ボカロ曲やバラードなどのフィルタも
するこ... |
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defaults2 = require("lodash/defaults");
var _defaults3 = _interopRequireDefault(_defaults2);
var _assign2 = require("lodash/assign");
var _assign3 = _interopRequireDefault(_assign2);
var _createClass = function () { function defineProperties(tar... |
'use strict';
//KTODO: use: css-global-variables
//KTODO: si --iconSize es cero deshabilitar íconos
const path = require('path');
const fs = require('fs');
const { flattenDeep, isString } = require('lodash');
const Logger = require('@render/logger.js');
const Config = require('@render/config.js');
const sharedData = ... |
/**
* Created with IntelliJ IDEA.
* User: hkon
* Date: 6/8/13
* Time: 4:53 AM
* To change this template use File | Settings | File Templates.
*/
alert('in UtilLayout.js');
// from http://www.hardcode.nl/subcategory_1/article_526-singleton-examples-in-javascript.htm
var singletonUtilLayout_layout_showAll_state ... |
/* eslint-disable array-callback-return */
import moment from 'moment';
import React from 'react';
import nzh from 'nzh/cn';
import { parse, stringify } from 'qs';
// const baseUrl = 'https://yuezym-1256524715.cos.ap-guangzhou.myqcloud.com';
// const replaceDocUrl='https://static.yuezym.com';
// const baseUrl = 'http... |
import '/resources/polymer/@polymer/polymer/polymer-legacy.js';
import '/resources/polymer/@polymer/iron-flex-layout/iron-flex-layout.js';
import '/resources/polymer/@polymer/paper-button/paper-button.js'
import '/resources/master/tg-entity-master.js';
import '/resources/components/security-tree-table/tg-security-tr... |
//
// == Find & Validate Vault Contract ==
//
var MAJOR_VERSION = "2";
var MINOR_VERSION = "0";
var VERSION = [MAJOR_VERSION, MINOR_VERSION].join('.');
function enableFindVaultAddressInputFeedback() {
$('#find-vault-address-input').on("input", function(event) {
var address = event.target.value;
var check... |
import React from 'react'
import {connect} from "react-redux";
import * as XLSX from 'xlsx';
import * as refer from '../../rmind/statics/refer';
import {
Avatar,
Button,
Card,
Col,
Form,
Icon,
Input,
message,
Row,
Select,
Switch,
Table,
Tag,
Tooltip,
Tree,
... |
import config from '../config/config.js';
import view from './view.js';
import wizard from './wizard.js';
import { PAGES } from './enums.js'
import { setPageLanguage, localizePage, getSelectedLanguage, getTranslatedText } from './language-manager.js';
import { getResourcePath, beautifyModuleKey, getQueryParameters } fr... |
// dummy button for toggle
$(function () {
$('.toggle-dummy')
.bootstrapToggle({
on: 'Civil Deaths',
off: 'Total Deaths',
style: 'dummy-toggle'
})
});
// year slider
var map_column = 'deaths_civilians_sum';
var map_data = 'deaths_civilians_';
var descriptor_data ... |
let chartMargins = [10, 0, 30, 20];
//(map size - margins)/2 map size is specified in the css for leaflet charts
let chartHeight = (400 - chartMargins[0] - chartMargins[2]) / 2;
let chartWidth = 400;
let timeChart, decisionChart;
var authorityNames = [],
authorityNamesChecked = []; //names of authoirites as strings
v... |
'use strict';
var logger = require('../logger');
var util = require('util');
var shimmer = require('../shimmer');
/**
* @namespace Library.Spec
*
* @property {string} name
* The name of this promise library.
*
* @property {?string} constructor
* Optional. The name of the property that is the Promise constru... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.