text stringlengths 8.5k 48.7k |
|---|
const fontStack = '"Avenir Next", "Museo Sans", Roboto, "Helvetica Neue", Ubuntu, Cantarell, sans-serif';
const dateUnits = {
days: 'tagoj',
weeks: 'semajnoj',
months: 'monatoj',
years: 'jaroj',
};
const dateFields = {
d: 'tago',
M: 'monato',
y: 'jaro',
};
const timestampFields = {
s: '... |
/*
* LICENSE
* Copyright (c) 2015-2017, <NAME> http://linkedin.com/in/simonbirtles
* All rights reserved.
* Dual licensed under the MIT and GPL licenses.
*/
function getChildren(parentNode) {
//console.log("******************************************************");
//console.log("Node is ", parentNode);... |
// ==UserScript==
// @name OGame Redesign Empire Extension
// @namespace -
// @description Extends OGame Redesign Empire with tooltips about costs of one level-higher buildings and research
// @include http://*.ogame.*/game/index.php?*page=*
// @version 3.2.11
// ==/UserScript==
// jQue... |
import alt from "alt-instance";
import SettingsActions from "actions/SettingsActions";
import IntlActions from "actions/IntlActions";
import Immutable, {fromJS} from "immutable";
import ls from "common/localStorage";
import {Apis} from "bitsharesjs-ws";
import {settingsAPIs} from "api/apiConfig";
import {
getDefaul... |
var async = require('async');
var mongoose = require('mongoose');
var _ = require('lodash');
var Base = require('./Base.js');
var Doc = require('./Doc.js');
var Div = require('./Div.js');
var RowHelper = function(Context){
Context.UseCache = false;
Context = _.clone(Context);
Context.PluginName = "ROW... |
function compareObjs(a, b) {
if (a == b) return true
for (let p in a) if (a[p] !== b[p]) return false
for (let p in b) if (!(p in a)) return false
return true
}
class WidgetType {
constructor(toDOM, spec) {
this.spec = spec || noSpec
this.side = this.spec.side || 0
this.toDOM = toDOM
}
map(m... |
sitename = jsonmysite.name;
$('#mybreadcrumb').append(
'<nav aria-label="breadcrumb">' +
'<ol id="mybreadcrumbs" class="breadcrumb">' +
'<li class="breadcrumb-item"><a href="/entity/view/' + jsonmysite.site_id + '">' + sitename + '</a></li>' +
'</ol>' +
'</nav>');
if (systemtype == 'place') {
... |
import { LSystemInterface, DrawOperation, DrawingParametersInterface } from "lsystems-web";
import { memory } from "lsystems-web/lsystems_web_bg";
import * as three from "three";
import {TrackballControls} from "three/examples/jsm/controls/TrackballControls";
import "jquery";
import "popper.js";
import "bootstrap-sele... |
// Copyright 2016 <NAME>, University of San Francisco. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of... |
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import {
constant,
checkIndexBounds,
computeIndex,
getDisplaySameSlide,
} from 'react-swipeable-views-core';
function addEventListener(node, event, handler, options) {
node.addEventListener(event, handler, options);... |
import { BaseRunner } from '~/assets/js/webnn/util/BaseRunner'
class WebNNRunner extends BaseRunner {
constructor() {
super();
this._currentBackend = null;
this._currentPrefer = null;
this._inputTensor = [];
this._outputTensor = [];
this._rawModel = null;
this._subgraphsSummary = [];
... |
/*
* lib/datasource-file.js: implementation of Datasource for file-based data
* sources
*/
var mod_assertplus = require('assert-plus');
var mod_fs = require('fs');
var mod_krill = require('krill');
var mod_path = require('path');
var mod_stream = require('stream');
var mod_vasync = require('vasync');
var mod_vstrea... |
function propertyValue (object, property, val){
if(object.hasOwnProperty(property)){
return object[property];
} else {
return val;
}
}
function getColor (index) {
var colorPallette = ['#1dd1d1', '#ff4676', '#9c01fe', '#5f61f7', '#167ffc', '#4cd1ee', '#53d86a', '#ffcb2f', '#fe9526', '#ee5... |
$(document).ready( function () {
var inicio, fin;
$("#txtFecha").daterangepicker({
locale: {
format: "DD/MM/YYYY"
},
opens: 'right'
});
$(".daterangepicker .fa-calendar").removeClass().addClass("fas fa-calendar");
function actualizarFechas () {
inicio = {
string: $("#txtFecha").val().split(" ")[0]... |
'use strict';
var srlog = SIREPO.srlog;
var srdbg = SIREPO.srdbg;
SIREPO.app.config(function() {
SIREPO.SINGLE_FRAME_ANIMATION = ['epochAnimation'];
SIREPO.lattice = {
elementColor: {},
elementPic: {
zeroLength: ['EMATRIX'],
magnet: ['QUAD'],
rf: ['RFCA'],
... |
import React, { useEffect, useRef, useState, useMemo } from 'react';
import { useStaticQuery, graphql, Link, a } from 'gatsby';
import Slider from 'react-slick';
import { useSpring, animated } from 'react-spring';
import { useMediaQuery } from 'react-responsive';
import classNames from 'classnames';
import get from 'lo... |
'use strict';
// base URL to the root with trailing slash
var BASE_URL = 'https://sysbio.sitehost.iu.edu/express/';
var API = 'app/api.php'
// a global variable for the browser since
// it will be generated only once
var browser = null;
// global spinner and target, actually body element
var target = document.body;
va... |
import React, { Component } from 'react';
import { Badge, Card, CardBody, CardHeader, Col, Row, Table, Button, Modal, ModalBody, ModalFooter, ModalHeader,Input, InputGroup, InputGroupAddon, InputGroupText, Dropdown, DropdownItem,DropdownMenu, DropdownToggle} from 'reactstrap';
import { RequestService } from '../../shar... |
/// ^.*('\\.*').*
import { FUNCTIONS, MATH_SYMBOLS } from '../core/definitions.js';
// Frequency of a symbol.
// String constants corresponding to frequency values,
// which are the number of results returned by latexsearch.com
// When the precise number is known, it is provided. Otherwise,
// the following constants ... |
/*
*
* Wijmo Library 3.20143.59
* http://wijmo.com/
*
* Copyright(c) GrapeCity, Inc. All rights reserved.
*
* Dual licensed under the MIT or GPL Version 2 licenses.
* <EMAIL>
* http://wijmo.com/widgets/license/
* ----
* Credits: Wijmo includes some MIT-licensed software, see copyright notices below.
*/
//... |
//In dieser Datei wird der Datenimport geregelt.
//Die importierten Daten werden im GlobalVariableManager gespeichert.
let widthAndHeightExists = false;
let layerExists = false;
let urlExists = false;
//Bei Bereitwerden des Dokumentes wird geprueft ob die API funktioniert.
//Wenn dies nicht funktioniert werden Fehler ... |
var to_id = "obheeflpdipmaefcoefhimnaihmhpkao";
var buttonDisabledAtRunStart = false;
var loggingServerWebsocket = null;
var serverDOM = null;
var eventQueue = [];
var logging_server = null;
document.addEventListener('DOMContentLoaded', function () {
document.getElementById('files').addEventListener('change', handle... |
/* eslint-env jest */
/**
* @fileoverview Enforce static elements have no interactive handlers.
* @author <NAME>
*/
// -----------------------------------------------------------------------------
// Requirements
// -----------------------------------------------------------------------------
import { RuleTester }... |
const _ = require("lodash");
window.round = _.round;
const dayjs = require("dayjs");
require('dayjs/locale/es-do');
//Se adiciona el pluging para tiempo relativo
var relativeTime = require('dayjs/plugin/relativeTime');
dayjs.extend(relativeTime);
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
dayjs.ext... |
import d3 from 'd3';
import { venn } from 'venn.js';
import 'ace';
import './angular-venn-simple.js';
import gws from './graphClientWorkspace.js';
import utils from './utils.js';
import { capitalize, partial } from 'lodash';
import IndexPatternsProvider from 'ui/index_patterns/index_patterns';
import 'ui/autoload/all'... |
import { parser, configureNesting } from '@lezer/html';
import { cssLanguage, css } from '@codemirror/lang-css';
import { javascriptLanguage, javascript } from '@codemirror/lang-javascript';
import { EditorView } from '@codemirror/view';
import { EditorSelection } from '@codemirror/state';
import { syntaxTree, LRLangua... |
/*
pentaho.VizController
A controller for visualization objects
author: <NAME>
*/
pentaho = typeof pentaho == "undefined" ? {} : pentaho;
/*
A list of color palettes that can be used by visualizations
*/
pentaho.palettes = [];
pentaho.palettes.push( {
name: 'palette 1',
colors: [
"#33669... |
/* eslint-disable no-useless-escape */
/* @file xml-converter.js
*
* @brief Loads a json blueprint and build a bpmn xml representation
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*
* Based in the paper Kitzmann, Ingo, et al. 2009
* "A simple algorithm for automatic layout of bpmn processes."
*
* T... |
/**
* This work is based on original code developed and copyrighted by TNO 2020.
* Subsequent contributions are licensed to you by the developers of such code and are
* made available to the Project under one or several contributor license agreements.
*
* This work is licensed to you under the Apache License, ... |
//Author: <NAME>; <EMAIL>
//Adding initialization event listeners
window.onload = initialize;
window.onresize = resize;
window.onkeydown = function(e) {
for (var i = 0; i < keyboardDownAudience.length; i++) {
keyboardDownAudience[i].keyboardDownEvent(e);
}
};
window.onkeyup = function(e) {
for (v... |
import * as THREE from 'three-full';
import Stats from 'stats.js';
import * as d3 from 'd3';
const IMAGE_VIEW_REGISTRY = {};
export function getImageView(name) {
return IMAGE_VIEW_REGISTRY[name];
}
/* eslint-disable */
export const StdShader = {
cmaps: {
'viridis': 0,
'plasma': 1,
'magma': 2,
'in... |
'use strict';
const Qs = require('qs');
const SortedArray = require('collections/sorted-array');
const Gm = require('./googlemusic');
const Gmoauth = require('./googlemusic_oauth');
const Health = require('./health');
const License = require('./license');
const Page = require('./page');
const Playlist = require('./pl... |
import React, { Component } from 'react';
import { Text, Button, ScrollView, Image, View } from 'react-native';
// import Countly
import Countly from 'countly-sdk-react-native-bridge';
var successCodes = [100, 101, 200, 201, 202, 205, 300, 301, 303, 305];
var failureCodes = [400, 402, 405, 408, 500, 501, 502, 505];
c... |
/**
* 積み上げグラフグラフコンポーネント
* CANVASまたはSVG要素を出力する。
*/
function Evgraph() {
//グラフのウェブページ上でのピクセルサイズ
this.size = {width: 0, height: 0};
//グラフ描画領域
this.titleArea = {x:0, y:0, width: 0, height: 0};
this.title = null;
//グラフ描画領域
this.graphArea = {x:0, y:0, width: 0, height: 0};
this.graphAreaRect = {x:0, y:0, width... |
'use strict';
// Third-party libs
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import { PanelGroup, Panel } from '../../../libs/bootstrap/panel';
// Internal libs
import { RestMixin } from '../../rest';
impo... |
var icon = "one two three four five six seven eight".split(" "),
goods_detail_url = "/goods/goods",
pageCount = 0,
page = 0,
bd_brand = "",
bd_class1 = "",
bd_class2 = "",
speedCid;
$(function () {
$(".w_specific_class ul").delegate("li a", "click", function (a) {
a = a || window... |
const axios = require('axios')
const fs = require('fs')
const util = require('util')
const zlib = require('zlib')
const path = require('path')
const fsReadfilePromise = util.promisify(fs.readFile)
const fsWritefilePromise = util.promisify(fs.writeFile)
const fsMkdirPromise = util.promisify(fs.mkdir)
const fsStatPromis... |
/* eslint-disable */
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced ... |
function init() {
const data = new DataLoader();
data.loadPosData("data/data.json");
}
function visualize(data){
WGL.init(data.num,'../../','map', true);
map.on("move", onMove);
window.onresize = onResize;
const heatmap = WGL.addHeatMapDimension(data.pts, 'heatmap', 4);
heatmap.radiusFu... |
function ci_close() {
$('#chat-container').toggle('slide', {
direction: 'right'
}, 500);
}
jQuery().noConflict();
$(document).ready(function(){
var base = 'http://localhost/opskill/';
$(document).on('click', '#usersListWrapper li', function(){
$('#usersListWrapper li').each( function(i,e) {
... |
/*
Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that... |
'use strict';
// Usage reporting service.
const _ = require('underscore');
const webapp = require('abacus-webapp');
const router = require('abacus-router');
const dbclient = require('abacus-dbclient');
const batch = require('abacus-batch');
const retry = require('abacus-retry');
const breaker = require('abacus-breake... |
/* eslint-env node, browser */
/* global createjs */
'use strict';
const Replicant = require('./replicant');
const server = require('./server');
const filteredConfig = require('./config').filteredConfig;
const utils = require('./util');
const replicator = require('./replicator');
let io;
/**
* Creates a new NodeCG A... |
const Discord = require('discord.js');
const { Client, Util} = require('discord.js');
const config = require("./config.json");
const YouTube = require('simple-youtube-api');
const ytdl = require('ytdl-core');
const devs = ['564414567946387487']
const developers = ['564414567946387487'];
const prefix = "3"
const client... |
'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... |
// BIO 30 Plant Cell Model
let cellWallX = 150;
let cellWallY = 25;
let cellWallW = 650;
let cellWallH = 700;
let cellMembraneX = 160;
let cellMembraneY = 35;
let cellMembraneW = 630;
let cellMembraneH = 680;
let nucleusX = 175
let nucleusY = 275
let nucleusW = 160;
let nucleusH = 165;
let nucleolusX = 210
let nucle... |
var map = [];
var bigmap;
var smallmap;
var mapbox;
var markerssmall;
var markersbig;
var notes;
var link;
var markertype = 0;
var add = 0;
var markernum = 0;
var url = "";
var maplists = [];
var maplistselect = [];
var holdup = 0;
var keydown = 0;
var realcurrent = 0;
var tempminx = 0;
var tempminy = 0;
var tempmaxx =... |
import BallpenUtil from './ballpen-util.js';
import BallpenObserver from './ballpen-observer.js';
import BallpenProxy from './ballpen-proxy.js';
import BallpenDecorator from './ballpen-decorator.js';
import BallpenError from './ballpen-error.js';
import BallpenGlobalWrapper from './ballpen-global-wrapper.js';
class Ba... |
// .env Variables
require('dotenv').config({path: '../.env'});
// Node Modules
const Discord = require('discord.js');
const client = new Discord.Client();
// Bot Modules (stores http requests & random functions respectively)
const dataRequest = require('../modules/dataRequest');
const calcRandom = require('../modules... |
//Debugging
let reff = false;
let debug = false;
let stop = false;
let MeteorAlert = true;
if(debug){
}
/*
Environement Setup
*/
let height = 800 ;
let width = 800;
let action = false;
let gameOver = false;
let g;
let time = new Date();
let now;
let SPACE = 32;
let r;
let radar;
let m = [];
let infoBonus = 0;
let... |
$(function() {
//==============
// ATTRIBUTES
//==============
var DATE_RANGE_DATE_FORMAT = "MMM D, YYYY";
var REQ_DATE_FORMAT = "YYYY-MM-DD";
var DEFAULT_DATE_RANGE_PERIOD = 6; // Last 7 days
var startDate = moment().subtract(DEFAULT_DATE_RANGE_PERIOD, 'days');
var endDate = moment();
... |
/**
* global.js
* @name 后台系统全局js
* @author <NAME>
* @since 2018/2
* @version 1.0
*/
$(function () {
var idList = [];//批量选择id所存的数组
//屏幕阈值参数设置
var screen_adpt_obj = {
screen_width: $(window).width(),
screen_threshold: 1024,
bread_threshold: 680
};
//侧边栏点击事件
$('.sideb... |
// Definir variables para la clasificación.
let LEVEL_PERCENTS = [0.7, 0.55, 0.4, 0.25, 0.2, 0.15, 0.1, 0.05, 0];
let LEVEL_NAMES = [
"Xenial",
"Excepcional",
"Fabuloso",
"Magnífico",
"<NAME>",
"Ben",
"Mellorando",
"Empezando",
"Salindo",
];
if (hmm()) {
LEVEL_NAMES = [
"Xenial",
"Excepcion... |
// "use strict";
const sendOrderBF = require('./sendOrderBF.js');
const sendOrderZaif = require('./sendOrderZaif.js');
const callOrderFunction = require('./callsendorderFunction.js');
const callorderBF = require('./callsendorderBF.js')
const assetZaif = require('../asset/assetZaif.js');
const assetBF = require(... |
/**
* cvi_curl_lib.js 1.21 (21-Mar-2009)
* (c) by <NAME>
* All Rights Reserved
* Source: curl.netzgesta.de
* Distributed under Netzgestade Software License Agreement
* http://www.netzgesta.de/cvi/LICENSE.txt
* License permits free of charge
* use on non-commercial and
* private web sites only
* syntax:
cv... |
/**
* Created by zhigang on 14-9-26.
*/
'use strict';
angular.module('roshanGymDongkerApp')
.directive('operate', function () {
return {
scope: {item: '='},
restrict: 'E',
template: '<span> {{item.product_name}}</span>',
replace: true
};
})
.... |
var _ = require('./utils.js');
var Scope = require('./scope.js');
// Renders a parse tree from <topNode> downward and emits either
// a document fragment or a virtual DOM
var Evaluator = function(topNode, viewModels, parseTrees, interface, mainModel) {
// Replace all mustaches in text with the value at their paths... |
"use strict";
var current_time = moment() / 1000;
var start_root;
var scanned_dir;
var mtime_on;
var volume_bytes;
var sep;
var fade_on;
var newest_dir;
var oldest_dir;
var prettyCount = d3.format(".3s");
var width;
var height;
var svg_size;
var svg;
var radius;
setSizes();
$(window).resize(buildVisual);
// Init... |
export const caseOfMondayBeginning = [0, 1, 2, 3, 4, 5, 6]
export const caseOfSaturdayBeginning = [1, 2, 3, 4, 5, 6, 0]
export const caseOfWednesdayBeginning = [4, 5, 6, 0, 1, 2, 3]
export const date201901 = [
{date: new Date(2019, 0, 1), day: 1},
{date: new Date(2019, 0, 2), day: 2},
{date: new Date(2019, 0, 3)... |
// vendor
import React, { Component, Fragment } from 'react';
import { Route, Switch } from 'react-router-dom';
import {
createRefetchContainer,
graphql,
} from 'react-relay';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import classNames from 'classnames';
import... |
// Copyright 2019 ETH Zurich
//
// 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 agreed to in wri... |
// TODO: set the scope config from package.json or explicit cli config
const walkUp = require('walk-up-path')
const ini = require('ini')
const nopt = require('nopt')
const mkdirp = require('mkdirp-infer-owner')
/* istanbul ignore next */
const myUid = process.getuid && process.getuid()
/* istanbul ignore next */
const... |
import macro from 'vtk.js/Sources/macro';
import vtkInteractorStyleMPRSlice from './vtkInteractorStyleMPRSlice.js';
import Constants from 'vtk.js/Sources/Rendering/Core/InteractorStyle/Constants';
import vtkCoordinate from 'vtk.js/Sources/Rendering/Core/Coordinate';
import vtkMatrixBuilder from 'vtk.js/Sources/Common/C... |
const TRANSITION_EVENTS = [
"transitionend",
"webkitTransitionEnd",
"oTransitionEnd"
];
const TRANSITION_PROPERTIES = [
"transition",
"MozTransition",
"webkitTransition",
"WebkitTransition",
"OTransition"
];
const DELTA = 5;
class SideNav {
constructor(el, options = {}, _PS = null) {
this._el = e... |
var console = window.console || {
log: function (s) {
}
};
$(function () {
var $MAIN_NAV = $('#cbg-main-nav');
var $ACTIVE_ITEM = $MAIN_NAV.find('li.cbg-current');
var $SUBMENU_WRAPPER = $('#cbg-submenu-wrapper');
var SLIDE_SPEED = 0;
var $hoverSubmenu = null;
var $activeItem... |
// Copyright (c) 2021 Uber Technologies, Inc.
//
// 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 rights
// to use, copy, modify, merge... |
main();
var zoom;
var camera;
var cameraFp;
var resolution;
var flags;
var time;
var iterations;
var julia;
var type;
var programInfo;
var paused;
var resumed = false;
var orbit_x, orbit_y;
var animated;
var curDrag;
var prevDrag;
function main() {
const canvas = document.querySelector('#glcanvas');
const placeho... |
/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
// Karma configuration
// Install required modules by running "npm install"
const Jimp = require('jimp');
const fs = require('fs');
const path = require('path');
const rimraf = require('rimraf');
const util = require(... |
const SteamUser = require('steam-user');
const moment = require('moment');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');
const { EOL: BR } = require('os');
const {
Log, storeChatData, formatNumber, sleep, Pattern,
} = require('azul-tools');
const Help... |
import localDbSvc from './localDbSvc';
import store from '../store';
import utils from './utils';
import diffUtils from './diffUtils';
import networkSvc from './networkSvc';
import providerRegistry from './providers/providerRegistry';
import googleDriveAppDataProvider from './providers/googleDriveAppDataProvider';
impo... |
/*
* Application Insights JavaScript SDK - Channel, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
import { __extendsFn, __assignFn } from "@microsoft/applicationinsights-shims";
import { SessionStorageSendBuffer, ArraySendBuffer } from './SendBuffer';
import { DependencyEnvelopeCreator,... |
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
var _Object$ge... |
(function (FinanceJS) {
"use strict";
var Q;
if (typeof module !== 'undefined' && module.exports) {
Q = require('q');
var _ = require('lodash');
var moment = require('moment');
module.exports = new FinanceJs();
} else if (angular) {
angular.module('FinanceJs', [])
.factory('FinanceSe... |
var logger;
var sessionKeeper;
var stringSimilarity = require('string-similarity');
var tagger = require( 'wink-pos-tagger' );
var myTagger = tagger();
var tokenize = require( 'wink-tokenizer' )().tokenize;
const Inflectors = require("en-inflectors").Inflectors;
var inflectors = new Inflectors("book");
var fs = requir... |
'use strict';
var _ = navigator.mozL10n.get;
var ClockView = {
_clockMode: 'analog', /* digital or analog */
_analogGestureDetector: null,
_digitalGestureDetector: null,
get digitalClock() {
delete this.digitalClock;
return this.digitalClock = document.getElementById('digital-clock');
},
get a... |
//====================================================================
//Global vars
var filter;
var poiDimension;
var poiGrouping;
var decadeDimension;
var decadeGrouping;
var minDate, maxDate, fullRange; //full range of POI dates. Used to clear filters
var dataHour = "1200"; //hour to set each dateRef to (default 00... |
var EditorPredefinedControls = {
'default': [
[ 'bold', 'italic', 'underline' ],
],
smallEditorDefault: [
['bold', 'italic', '|', 'link']
]
};
var MWEditor = function (options) {
;(function (){
var self;
var RtlDetect=self={_regexEscape:/([\.\*\+\^\$\[\]\\... |
const date = (format, timestamp) => {
// example 1: date('H:m:s \\m \\i\\s \\m\\o\\n\\t\\h', 1062402400)
// returns 1: '07:09:40 m is month'
// example 2: date('F j, Y, g:i a', 1062462400)
// returns 2: 'September 2, 2003, 12:26 am'
// example 3: date('Y W o', 1062462400)
// returns 3: '2003 36 ... |
//
// BMV
//
'use strict';
const Math = require('mathjs');
var term = require( 'terminal-kit' ).terminal;
var vedirect = require( 've_bms_forecast' );
var fs = require('fs');
var log4js = require('log4js');
//var config_file = fs.createWriteStream(__dirname + '/config.json', {flags: 'w'});
log4js.configure({
appen... |
const FILTER_IMG = {
filters: [{
name: L('file-image'),
extensions: [ 'jpg', 'png', 'gif' ]
}],
properties: [ "openFile" ]
};
const STATUS_CLASS = {
'online': "online",
'afk': "afk"
};
const USER_NOTICE = {
id: "j-launcher",
image: __dirname.replace(/\\/g, "/") + "/img/logo.ico",
nickname: L('notice')
};
co... |
let wto;
$(document).ready(function() {
load_options();
$('#loader').hide();
load_data();
});
function load_options() {
$('#ysortchk').on('change', function() {
processData(glob_data);
});
$('#colorscalechk').on('change', function() {
processData(glob_data);
});
}
let ta... |
// This file is licensed under the MIT License (MIT) available on
// http://opensource.org/licenses/MIT.
function addEvent(a, b, c) {
// Attach event to a DOM node.
// Ex. addEvent(node,'click',function);
return (a.addEventListener) ? a.addEventListener(b, c, false) : (a.attachEvent) ? a.attachEvent('on' + b, c) : fal... |
/* global defaultdateformat, base_url, bootbox, CKEDITOR */
var eventDatePickerCounter = 0;
$( document ).ready(function() {
$('[data-toggle="tooltip"]').tooltip({ html: true, container: 'body' });
$('[data-toggle="tooltip2"]').tooltip({
html: true,
container: 'bod... |
import React, { Component } from "react";
import { observer, inject, Provider } from "mobx-react";
import { detach, types, getType, getParentOfType, destroy, getRoot, isValidReference } from "mobx-state-tree";
import { Stage, Layer, Rect, Text, Group, Line, Image, Transformer } from "react-konva";
import { Icon } from... |
//Imports
const project = require('./project')
const application = require('./application')
const controller = require('./controller')
const timeline = require('./timeline')
const actors = require('./actors')
const utility = require('./utility')
const electron = require('electron')
const fs = require('fs-extra')
const... |
/*globals Stativus:true, exports, $, createNode*/
/**
This is the code for creating statecharts in your javascript files
@author: <NAME>
*/
var jQueryIsLoaded=false;
try {
if (jQuery) jQueryIsLoaded=true;
}
catch(err){
jQueryIsLoaded=false;
}
/** #preserve #license
=========================================... |
"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... |
function clearIfDefaultString(formField, defaultString) {
if(formField.value == defaultString) {
formField.value = "";
}
}
// We sometimes want to have a default submit button that's not
// the first one in the form.
//
// USAGE:
//
// <h:inputText id="Score" value="#{scoreRow.score}"
// onkeypress="return s... |
import * as THREE from '../libs/three.module.js';
import {GLTFLoader} from '../libs/GLTFLoader.js';
import {GLTFExporter} from '../libs/GLTFExporter.js';
import wbn from "./wbn";
import {blobToFile, makePromise, downloadFile, convertMeshToPhysicsMesh, bindUploadFileButton, getExt} from './util';
const localVector = n... |
//NPM Install
const fse = require('fs-extra');
//Importando arquivo site-model.js que possui a classe com as funções de consulta
const DB = require('./../listas/selects');
const FUNCOES = require('./../util/funcoes');
const mysql = require('mysql2');
const config = require('./../../database/config');
const conn = mysq... |
// variables
const genomesize = {
ce10: 100286070,
ce11: 100286070,
dm3: 168736537,
dm6: 168736537,
hg19: 3137161264,
hg38: 3137161264,
mm9: 2725765481,
mm10: 2725765481,
sacCer3: 12157105,
rn6: 2870182909
};
const numGenes = {
ce10: 17958,
ce11: 17958,
dm3: 12635,
dm6: 12635,
hg19: 18622... |
var drake = drake || {};
var gViewDetailBoxId = 'view-detail-box';
var gUeditor = gHtmlUeditor = null;
var gInfoOnSave = {t:0,publish:false};
var gPreviewItemOnclick = {wrap:null,el:null};
var gEditId = 0,gDraftId = 0,gDraftStatus = 0;gVersion= 0,gPreviewId = '',gCopyFlag = 0, gTemplateId = 0;
$(function () {
//弹窗... |
/**
* shared/common utilities
*/
const pinyin = require('pinyin');
const crypto = require('crypto');
const Mime = require('mime');
const util = require('util');
const path = require('path');
const fs = require('fs');
const IllegalRequestError = require('../error/fe/IllegalRequestError');
const exec = require('child_p... |
import XEUtils from 'xe-utils'
import GlobalConfig from '../../v-x-e-table/src/conf'
import VXETable from '../../v-x-e-table'
import { UtilTools, DomTools, isEnableConf } from '../../tools'
import { getOffsetSize, calcTreeLine, mergeBodyMethod, removeScrollListener, restoreScrollListener } from './util'
import { browse... |
import StorageHelp from './storageHelp.js';
export default class Cards {
constructor() {
this.whiteCards = [];
this.blackCards = [];
this.initialized = false;
}
initializeFromSource() {
if (this.initialized) {
throw new Error('initializeFromSource: Cards instance already initialized');
... |
const Discord = require("discord.js");
const { button } = require("../commands/buttons");
const { MessageActionRow, MessageButton, IntegrationApplication } = require('discord.js');
module.exports = {
name: "ready",
once:true,
async execute (client,interaction){
client.user.setActivity("Gettin... |
var iris = angular.module("irisApp");
iris.controller("annotationGalleryCtrl", [
"$rootScope", "$scope", "$http", "$filter", "$log",
"$location", "hotkeys", "helpService", "cytomineService",
"navService", "annotationService", "sessionService", "sharedService", "settingsService", "$routeParams",
function($rootScope... |
"use strict;";
/*/ Trigers function for radio button /*/
function OnRadioChange(radio) {
if (!isSuccess("btnApiConnect")){
if(isDisable("btnApiConnect")){
enableButton("btnApiConnect");
}
let lastLab=$("label.btn-success[name=radioLabel]")[0];
if(lastLab !== undefined ... |
var hourly_employee = new Person(0, '<NAME>', 'hourly', 10, 23);
var salaried_employee = new Person(1, '<NAME>', 'salaried', 52000, 23);
var scanner = 'Flatbed scanner (i.e., an Epson 11000XL)';
var blank_estimate = estimate;
// QUnit.test("template", function( assert ) {
// assert.ok(1 == "1", "Passed");
// });
... |
debugMode = true //set to false to deactivate the debug commands
debugVerbosity = 0 //send to 1 to have some messages send by debug commands
// /exe -pi commandHelper.commandList.hello = { execute: function(args) { state.message = "Hello world!" }}
// /exe state.debug.instructions.splice(0,1)
commandHandler = {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.