text stringlengths 5.97k 41.2k |
|---|
$(document).ready(function() {
var app_url = $('#app_url').attr('url');
var gos_os_id = document.getElementById('gos_os_id').value;
var editor;
$.ajaxSetup({
headers : {
'X-CSRF-TOKEN' : $('meta[name="csrf-token"]').attr('content')
}
});
$.get(app_url+'/osg-siguiente-etapa-f/'+gos_os_id, function(data){
... |
import React, { PureComponent } from 'react';
import {
Text, View, Dimensions, Platform, TouchableOpacity, Image, Modal, StatusBar, Alert, ActivityIndicator,
} from 'react-native';
import {
Container, Grid, Row, Col,
} from 'native-base';
import { Header } from 'react-native-elements';
import { Actions } from 'reac... |
import React, {useState} from "react"
import Seo from "./seo"
import Button from '@mui/material/Button';
import clsx from "clsx";
import { Grid } from "@mui/material";
import { GatsbyImage } from "gatsby-plugin-image";
import Typography from "@mui/material/Typography";
import makeStyles from '@mui/styles/makeStyles';
i... |
/* eslint
no-console: 0,
no-unused-vars: 0
*/
import React from 'react';
import {
Message,
Menu,
Button,
Popup,
Accordion,
Table,
Icon
} from 'semantic-ui-react';
import { DataConsumer } from '../../context/data';
import AceEditor from 'react-ace';
import ReactMarkdown from 'react-markdown';
import jsyam... |
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import Button from "react-bootstrap/Button";
import Form from "react-bootstrap/Form";
import Spinner from "./Spinner";
import CardCompoundBrowser from "./compoundbrow... |
/*****************************************************************************
* inteface.js
* ===========
* Classes and functions relating to the media player interface.
*****************************************************************************/
/* Classes
**********/
/*************************************
... |
// javascript code for SportTracks
// fixed values
//var CORSURL = 'https://cors-anywhere.herokuapp.com/'; // backup CORS server
var OAUTHURL = 'https://api.sporttracks.mobi/oauth2/authorize?client_id=';
var VALIDURL = 'https://api.sporttracks.mobi/oauth2/token';
var STATE = 'test';
var CLIENTI... |
/* eslint-disable no-undef */
/* jshint -W117 */
/* jshint -W097 */
/* jshint -W083 */
/* jshint -W040 */
/* jslint esversion: 6 */
'use strict';
// console.log('starting moma admin-tab script');
//==== socket.io connection ======================================
//const firstConnect = true;
const main = {
socket: io... |
'use strict';
///////////////////////////////////////
// Modal window
const modal = document.querySelector('.modal');
const overlay = document.querySelector('.overlay');
const btnCloseModal = document.querySelector('.btn--close-modal');
// "querySelectorAll" is a node list
const btnsOpenModal = document.querySelector... |
import Immutable from 'immutable'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { push, replace } from 'react-router-redux'
import set from 'lodash/set'
import { trackEvent } from '../actions/analytics'
import { openModal, closeModal } from '../... |
import React from "react";
import RecommendationPanel from "../recommendation-panel";
import {createInputSpec} from "./inputspec";
import "./Inputpage.css";
import {
inputFileFormats,
// colorScheme,
fileInputFieldsActive,
defaultInputForFiles,
taskList,
} from "../global/globalvar";
import {
createDropDown... |
const path = require('path');
const fs = require('fs');
const mimeType = require('./mimeType');
const { PDFNet } = require('@pdftron/pdfnet-node');
const XLSX = require('xlsx');
const moment = require('moment');
const csvtojson = require('csvtojson');
const paypal = require('paypal-rest-sdk');
const QRCode = require('q... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v24.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics ... |
/** @jsx jsx */
import React from 'react';
import styled from '@emotion/styled';
import {css, jsx} from '@emotion/core';
import {Link as RouterLink} from '@reach/router';
import {routes} from '../../constants';
import {BasicPageWrapper, forSmallScreens, forMobile} from '../common';
import WorkflowToggle from '../Home/... |
/**
* @license
* Copyright 2014 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 requir... |
// Approach:
//
// 1. Get the minimatch set
// 2. For each pattern in the set, PROCESS(pattern)
// 3. Store matches per-set, then uniq them
//
// PROCESS(pattern)
// Get the first [n] item from pattern that are all strings
// Join these together. This is PREFIX.
// If there is no more remaining, then stat(PREFIX) an... |
'use strict';
const EventEmitter = require('events').EventEmitter;
const msgpack = require('msgpack-lite');
const net = require('net');
const stream = require('stream');
const crypto = require('crypto');
const tls = require('tls');
const zlib = require('zlib');
const FluentLoggerError = require('./logger-error');
const... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { registerCustomElement } from './utils/register-custom-element.js';
let iconConstructor = null;
export class Icon extends HTMLSpanElement {
des... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
import React from 'react';
import { styled } from '@mui/material/styles';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import {
Grid,
List,
ListItem,
ListItemText,
ListItemIcon,
Checkbox,
ListItemSecondaryAction,
IconButton,
FormControl,
FormLabel,
FormHelperText,
Toolbar,
Tex... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var util = require('../utils/util');
var ElCheckbox = require('../el-checkbox');
require('../utils/dom');
require('@popperjs/core');
require('../utils/popup-manager');
function _interopDefaultLegacy (e) { return e ... |
'use strict';
// smtp network server
// var log = require('why-is-node-running');
var net = require('./tls_socket');
var conn = require('./connection');
var outbound = require('./outbound');
var constants = require('haraka-constants');
var os = require('os');
var cluster = require('clu... |
#!/usr/bin/env node
const conf = require('./smc_config.js')
const StateMachine = require('javascript-state-machine')
const merge = require('merge')
const http = require('http')
const URL = require('url')
const { EventEmitter } = require('events')
const { StompService, stompConfig } = require('stomp-service')
const { b... |
#!/usr/bin/env node
var fs = require('fs');
var _ = require('lodash');
var http = require('http');
var https = require('https');
var domain = require('domain');
var moment = require('moment-timezone');
var parser = require('nomnom');
var semver = require('semver');
var Promise = require("bluebird");
var GithubApi = re... |
import fs from 'fs'
import path from 'path'
import process from 'process'
import PersistPlugin from '@/store/persist-plugin'
import Utils from './index.js'
import router from '@/router'
import config from '@/config'
import axios from 'axios'
import i18n from '@/i18n'
let store = null
let instance = null
let dialog = n... |
var EventEmitter = require('events').EventEmitter;
var util = require('util'),
sleep = require('sleep');
Client.UdpControl = require('./control/UdpControl');
Client.Repl = require('./Repl');
Client.UdpNavdataStream = require('./navdata/UdpNavdataStream');
Client.PngStream = ... |
/**
* Add any control elements for the table - specifically scrolling
* @param {object} oSettings dataTables settings object
* @returns {node} Node to add to the DOM
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlTable(oSettings) {
/* Check if scrolling is enabled or not - if not then leave the DOM un... |
/* Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Software in the Sustain Ecosystem are Released Under Terms of Apache Software License
This research has been supported by funding from the US National Scienc... |
/*****************************************************************************/
/* Imports */
/*****************************************************************************/
var debug = Iron.utils.debug('iron:dynamic-template');
var assert = Iron.utils.assert;
var get = Iron.utils.get;
var camelCase = Iron.utils.camelC... |
'use strict'
const assert = require('assert')
const chai = require('chai')
const dirtyChai = require('dirty-chai')
const path = require('path')
const { closeWindow } = require('./window-helpers')
const { resolveGetters } = require('./assert-helpers')
const { remote, ipcRenderer } = require('electron')
const { ipcMain... |
var pDiv = document.createElement("div");
pDiv.setAttribute("onclick", "return window;");
var p = pDiv.onclick();
var $ = p.$,
lrdata = new LRDataInterface("lrdata.alnorth.com"),
charts = new Charts(p.room.id, lrdata, "addons_charts_menu", "addons_charts_table"),
settings,
storedTrackInfo = {},
recordsWi... |
/**
* @fileoverview Element that renders data as a spark line.
*/
import {html, svg} from "lit-element";
import {BaseElement} from "../BaseElement";
import "./_styles.scss";
const HAS_RESIZE_OBSERVER = typeof ResizeObserver === "function";
/**
* @typedef {{
* x: number,
* y: number,
* score: number,
* ... |
var timeid = 0;
var sel_edge = null;
var sel_edge_nodes = null;
var LOAD_TOTAL_STEP = 496;
var LENGTH_MAIN = 250;
var LENGTH_SUB = 50;
var ROW_CNT = 56;
var ROW_PRE_CNT = 12;
var ROW_STEP = 70;
var edges_colors = ['#FF0000','#00FF00','#0000FF','#FF00FF','#00FFFF','#FFA500','#8968CD','#8B7500','#B03060','#6E8B3... |
import React from 'react';
import PropTypes from 'prop-types';
import {
Platform, View, FlatList, BackHandler, ActivityIndicator, Text, Image, Dimensions, ScrollView, Keyboard, LayoutAnimation
} from 'react-native';
import { connect, Provider } from 'react-redux';
import { isEqual } from 'lodash';
import { Navigation ... |
/*
Terminal Kit
Copyright (c) 2009 - 2019 <NAME>
The MIT License (MIT)
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,... |
var async = require('async');
var dreamer = require('dreamer').instance;
var models = dreamer.models;
var Collection = require('./collection.js');
var Fields = require('./fields.js');
var validators = require('validator').validators;
var ItemData = require('./item-data');
var escape = require('./escape');
var moment = ... |
"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... |
/**
* Titanium SDK Library for Node.js
* Copyright (c) 2012 by Appcelerator, Inc. All Rights Reserved.
* Please see the LICENSE file for information about licensing.
*/
var fs = require('fs'),
path = require('path'),
wrench = require('wrench'),
appc = require('node-appc'),
afs = appc.fs,
plist = appc.plist,
... |
var racer = require('racer')
, domShim = require('dom-shim')
, EventDispatcher = require('./EventDispatcher')
, viewPath = require('./viewPath')
, escapeHtml = require('html-util').escapeHtml
, textOt = require('./textOt')
, merge = racer.util.merge
, markers = {}
, markersDirty = true
, globalElement... |
//
//Creates the Case Detail window when user clicks on table row.
//
/* global notify, oTable, loadCaseNotes, adjustedHeight */
var $tabs, panelTarget;
function setDetailCss() {
//once tabs are loaded, set the css for the interior blocks
var windowWidth = Math.ceil($('#case_detail_window').width());
var... |
var dockerhub = require( './dockerhub.js' );
var logger = require( './logger.js' );
function init(app) {
dockerhub.init(app);
//Set routes
app.get( '/repos/:username/' , get_repos );
app.get( '/info/:username/:reponame/' , get_repo_info );
ap... |
import React from 'react';
import PropTypes from 'prop-types';
import gql from 'graphql-tag';
import { graphql } from 'react-apollo';
import { FormattedMessage, defineMessages } from 'react-intl';
import Currency from './Currency';
import { get, cloneDeep } from 'lodash';
import router from '../server/pages';
import { ... |
/*
This HTML/js web browser user interface utilizes the Web Audio API (https://www.w3.org/TR/webaudio/)
which allows to record raw audio frames (@48 kHz in 16bit PCM format) from an audio/microphone input
via a web browser.
The trigger threshold can be set with 2 buttons, '+'/'-' and up/down arrow keys or by swiping u... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var count_all = 0; // counts coins
var count_same = 0; // counts additions to same coin/side or other side
var count_side = 0; ... |
/* jshint camelcase: false */ //for js_beautify and indent_size
'use strict';
var fs = require('fs-extra');
var glob = require('glob');
var path = require('path');
var async = require('async');
var beautify = require('js-beautify').js_beautify;
var pngquant = require('node-pngquant-native');
var imgOp... |
/**
* Created by <NAME> on 01.09.2015.
*/
import { GlobalEventHandler, AppContext, BaseUtils, I18nextManager, EventHandler } from 'phovea_core';
/**
* normalizes the given coordinates to sum up to one
* @param arr
* @returns {any}
*/
function normalize(arr) {
const sum = arr.reduce((a, b) => a + b, 0);
re... |
/////////////////////////////////////////////////////////////////
//
// FFT 快速傅里叶变换
//
// 依赖:无
//
/////////////////////////////////////////////////////////////////
function FFT(length) {
// 对数查找表
this.LOG_2 = {
'1':0, '2':1, '4':2, '8':3, '16':4, '32':5, '64':6, '12... |
import axios from 'axios';
/*!
* @wxhccc/es-util v1.3.1
* (c) 2021 wxhccc
* @license MIT
*/
const { hasOwnProperty: hasOwnProperty$1, toString: toString$1 } = Object.prototype;
const objType$1 = (val) => {
const typeKeys = toString$1.call(val).match(/^\[object (.*)\]$/);
return typeKeys ? typeKeys[... |
//レーティング計算
function calcRatingChange(rWinner, rLoser, diff){
if(rWinner - rLoser > 800)return 0;
return parseInt((800 + (rLoser - rWinner) + diff * 10) / 20);
}
function isRegularType(typeName) {
for(i = 0; i < gameTypeList.length; i++) {
const type = gameTypeList[i];
if (type.name... |
//Copyright (c) 2015 <NAME> <<EMAIL>>
//MIT License: https://raw.githubusercontent.com/Magnitus-/ExpressUserLocalBasic/master/License.txt
var Nimble = require('nimble');
var Express = require('express');
var Http = require('http');
var ExpressUser = require('express-user');
var ExpressUserLocal = require('express-use... |
// From : https://bl.ocks.org/d3noob/43a860bc0024792f8803bba8ca0d5ecd
// Set the dimensions and margins of the diagram
var margin = {top: 20, right: 200, bottom: 30, left: 90},
width = 960 - margin.left - margin.right,
height = 1000 - margin.top - margin.bottom;
var node_width = 0;
var max_overlay_width = 150... |
/**
* This route should be called when we have submitted the payment of a non-game creator's
* entry fee to the Ethereum network and we are waiting for confirmation of that payment.
*/
var express = require("express");
const http_status_codes = require('http-status-codes');
const router = express.Router();
// con... |
this.PeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection;
this.IceCandidate = window.RTCIceCandidate || window.RTCIceCandidate;
this.SessionDescription = window.RTCSessionDescription || window.RTCSessionDescription;
navigator.getUserMedia = navigator.getUserMedia || navigator.mozGetUserMedia || ... |
// whether sidebars to be shown or not
var $showLeftSide = getCookie("showLeftSide");
var $showRightSide = getCookie("showRightSide");
// Add class to given id
function addClassToId(id, name) {
document.getElementById(id).classList.add(name);
}
// Remove class from given id
function removeClassFromId(id, name) {... |
//declarando variables selectoras
const formulario = document.querySelector('#formulario')
const boton = document.querySelector('#boton')
const resultado = document.querySelector('#resultado')
const mostrarTodas = document.getElementById ("btnTodas")
//array con palabras
const palabras = [
{nombre: "Add", signific... |
let dataset = {
trees:[
{
name: "Health",
seed: Math.random(),
state: [
{
timestamp: Date.now(), // timestamp
}
]
}
]
}
// Template Utilities
const MONTH_NAMES = ["January", "February", "March", "April", "May", "June",
"July", "August", "September",... |
//funciones dentro del document
$(document).ready(function () {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
var eltoken = $('meta[name="csrf-token"]').attr('content');
////abrir el formulario de... |
const axios = require("axios");
const fs = require("fs");
const FormData = require("form-data");
const { createCanvas, loadImage } = require("canvas");
const console = require("console");
const { layersOrder, format, rarity } = require("./config.js");
const { generateMetadata } = require('./generate.js');
const gifler ... |
'use strict';
/* ***** Project Layout *****
Assumptions:
This assignment so far is only written for a single day. I imagine we will extend this across days later.
*** Global Variables ***
Array of hourly bucket names
*** Object Structure ***
Each store will be its own object.
Object properties will include:
... |
import React from 'react';
import {
Text,
View,
StyleSheet,
TouchableOpacity,
TouchableWithoutFeedback,
Slider
} from 'react-native';
import { Video } from 'expo';
import PropTypes from 'prop-types';
import * as Animatable from 'react-native-animatable';
import * as styles from './styles';
// Don't show th... |
'use strict';
import Chart from 'chart.js';
import streamingHelpers from '../helpers/helpers.streaming';
var helpers = Chart.helpers;
var TimeScale = Chart.registry.scales.items['time'] !== undefined ? Chart.registry.scales.items['time'] : undefined;
// Ported from Chart.js 2.8.0-rc.1 35273ee.
function toTimestamp(... |
/**
* Copyright 2017 Adobe Systems Incorporated. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
var... |
/**
* vue-custom-element v3.2.13
* (c) 2020 <NAME>
* @license MIT
*/
/**
* ES6 Object.getPrototypeOf Polyfill
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf
*/
Object.setPrototypeOf = Object.setPrototypeOf || setPrototypeOf;
function setPrototypeOf(... |
/**
* @copyright Copyright (c) 2019 RNP
* @license http://github.com/ufrgs-hyman/meican#license
* @author <NAME>
*/
var meicanMap;
var circuitApproved = false;
var circuitDataPlane;
var path;
var statsCurrentPts;
var statsGraphic;
var refreshInterval;
$(document).ready(function() {
circuitApproved = isAuthori... |
import dungeonBg from '../assets/dungeon3x2.png';
import selectAction from '../assets/actions.png';
import selectActionReap from '../assets/actions_reap.png';
import partymember from '../assets/party1_alive.png';
import partymember_hurt from '../assets/party1_hurt.png';
import partymember_dead from '../assets/party_dea... |
"use strict";
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getProtot... |
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new Mer... |
const { Guilds } = require('../../database/models/Guild')
const { Themes } = require('./Themes')
const { Rooms } = require('../../database/models/Room')
const { logger } = require('../../utils/logger')
const { UserLib } = require('../Users')
const stringSimilarity = require('string-similarity')
const mal = require('ma... |
CanvasOverlay.prototype = new google.maps.OverlayView();
// https://github.com/wbyoko/angularjs-google-maps-components
/** @constructor */
function CanvasOverlay(image, map) {
// Now initialize all properties.
this.top = 0;
this.left = 0;
this.width = image.width;
this.height = image.height;
... |
'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... |
import { Component, HostBinding, ViewChild, ContentChild, ViewContainerRef, Output, ElementRef, EventEmitter, forwardRef, Input } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { BehaviorSubject, fromEvent } from 'rxjs';
import { map, filter } from 'rxjs/operators';
import { ToolBarCom... |
"use strict";
(function () {
GameEvents.Subscribe("end_game", EndScoreboard);
/*
// Placeholder
var args = {
"data":{
"players":{
"76561198015161808":{
"xp_multiplier": 10,
"xp": "0",
"xp_change": 200
},
"90071996842377216":{
"xp_multiplier": 1,
"xp": "0",
"xp_change":... |
"use strict";
exports.__esModule = true;
exports.Calendar = void 0;
var _react = _interopRequireWildcard(require("react"));
var _styledComponents = require("styled-components");
var _Box = require("../Box");
var _Button = require("../Button");
var _Heading = require("../Heading");
var _Keyboard = require("../Key... |
import deepClone from './utils/deepClone.js';
import enums from './utils/enums.js';
const constrainModel = function (model, ranges, monaco) {
const rangeConstructor = monaco.Range;
const sortRangesInAscendingOrder = function (rangeObject1, rangeObject2) {
const rangeA = rangeObject1.range;
const rangeB = ra... |
'use strict';
const ical = require('ical');
const util = require('util');
const latinize = require('latinize');
const periodCriterion = require('../modules/periodcriterion');
/**
* Source URL for non-working day ICS file or workshedules ICS file
*
* The events in CalendarEvent schema will be delete and recreated a... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not u... |
/*
* MIT License
*
* Copyright (c) 2005-2017 TorrentPier
*
* 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,... |
import React from 'react';
import './assets/css/style.css';
import {ChromePicker} from 'react-color';
import lottie from 'lottie-web'
import {parseColors, assignNewSolidColor, assignNewGradientColor} from './editor'
import {MdVpnKey, MdKeyboardArrowDown, MdPlayArrow, MdUndo, MdRedo, MdFileDownload, MdClearAll, MdPause,... |
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import update from 'immutability-helper';
import Head from './Head';
import Body from './Body';
import Toolbar from './TableToolbar';
import Pagination from './Pagination';
import filter... |
import jstracker from './js-tracker'; // 跟踪js代码
import rule from './rule'; // 校验上报数据是否合法
import config from '../config';
import { get, has, clone, isFunction, merge } from 'lodash-es';
// 将loadsh的方法集中到_中
let _ = {};
_.get = get;
_.has = has;
_.clone = clone;
_.isFunction = isFunction;
_.merge = merge;
//const feeTarg... |
/* eslint new-cap:0 */
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _create... |
var config = null;
var documentData = null;
var sign_data = '';
var is_signed = false;
var _resize = null;
var currencies = [];
var lastLineObject = null;
function prepareForAdding() {
documentData = {
DocumentLines: []
};
$(".loader").hide();
$("div.add").show();
$("div.sign").hide();
$... |
// We make use of this 'server' variable to provide the address of the
// REST Janus API. By default, in this example we assume that Janus is
// co-located with the web server hosting the HTML pages but listening
// on a different port (8088, the default for HTTP in Janus), which is
// why we make use of the 'window.lo... |
var radar = {};
var util = (function () {
var exports = {};
/**
* 事件观察者
*
* @constructor
*/
function Observable() {
this.events = {};
}
Observable.prototype = {
constructor: Observable,
on: function ( type, listener ) {
if ( !(this.eve... |
"use strict";
var FudgeNet;
(function (FudgeNet) {
let COMMAND;
(function (COMMAND) {
COMMAND["UNDEFINED"] = "undefined";
COMMAND["ERROR"] = "error";
/** sent from server to assign an id for the connection and reconfirmed by the client. `idTarget` is used to carry the id */
COMM... |
/*
* Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License
* is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "licens... |
/**
* @overview
* Library for controlling an Android Emulator.
*
* @module lib/emulators/avd
*
* @copyright
* Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved.
*
* @license
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for de... |
/**
* DOM config
*/
// 属性的名字开头的正则
const ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'
const ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\uB7\\u03... |
/**
* LMS-Material
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* MIT license.
*/
var PMGR_EDIT_GROUP_ACTION = {cmd:"edit", icon:"edit"};
var PMGR_DELETE_GROUP_ACTION = {cmd:"delete", icon:"delete"};
var PMGR_SYNC_ACTION = {cmd:"sync", icon:"link"};
var PMGR_SETTINGS_ACTION = {cmd:"settings", i... |
import Ember from 'ember';
import * as d3 from 'd3';
import { keys, values } from 'lodash-es';
import ChartComponent from './chart-component';
import LegendMixin from '../mixins/legend';
import FloatingTooltipMixin from '../mixins/floating-tooltip';
import AxesMixin from '../mixins/axes';
import NoMarginChartMixin fro... |
// TODO:
// - vertical alignment of x-axis label (Safari)
// - resize graph when window size is changed and simulation is running
function get_numeric(params,name,default_value) {
var value = default_value;
if(name in params) {
var pvalue = params[name];
if($.isNumeric(pvalue)) value = pvalue;
... |
import $ from 'jquery';
import DEFAULTS from './Defaults';
import lazyload from './func/lazyload';
class Gantt {
constructor(element, options) {
const gridDefaults = {
gridtotalHeight: 0,
gridtotalWidth: 0,
eventsWidth: 0,
};
const lang = options.language || DEFAULTS.language;
// es... |
'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 ('v... |
/*
Copyright (c) 2014 <NAME>
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, publish, distribute, sublicen... |
document.getElementById("description").innerHTML = "Tests that we clone object hierarchies";
tryPostMessage('null');
tryPostMessage('undefined');
tryPostMessage('1');
tryPostMessage('true');
tryPostMessage('"1"');
tryPostMessage('({})');
tryPostMessage('({a:1})');
tryPostMessage('({a:"a"})');
tryPostMessage('({b:"a", ... |
// Initialize the data
getdata();
var data, globaldata, unfiltered;
var minute = [], actual = [], poschange = [], negchange = []
//Use gogo to turn interval off/on at need. Makes basic changes e.g. HTML easier to process
var gogo = true
// var gogo = false
var max = 0
//Stop e at max - 10 because it allows a 10 tick g... |
'use strict';
var _ = require('underscore'),
fs = require('fs'),
numeric = require('numeric'),
async = require('async'),
moment = require('moment'),
classificator = require('./evaluators'),
nodesvm = require('./svm');
var readDatasetAsync = function(path, callback){
fs.readFile(path, 'utf8'... |
const $div = d3.select('.part3-test');
const $graphic = $div.select('.graphic');
const $graphicA = $div.select('.graphic-all');
let bigrams = null
let nested = null
let nested_cuisines = null
let most_shared = null
let foods = null
let top100 = null
let current = "asian"
let current_nb = 25
let xValues = {"asian": n... |
var delegatePopup, delegateUser;
var tasksTaskDetailDefaultTemplateInit = function() {
BX.bind(BX("task-comments-switcher", true), "click", ToggleSwitcher);
BX.bind(BX("task-log-switcher", true), "click", ToggleSwitcher);
BX.bind(BX("task-time-switcher", true), "click", ToggleSwitcher);
if (BX("task-add-elapsed-... |
'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 ("val... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.