text stringlengths 5.97k 41.2k |
|---|
'use strict'
var config = require('config.json');
var _ = require('lodash');
var Q = require('q');
var mongo = require('mongoskin');
var accountSid = config.accountSid;
var authToken = config.authToken;
var client = require('twilio')(accountSid, authToken);
var twilioNumber = config.twilioNumber;
var db = mongo.db(conf... |
import React, { Component } from 'react';
import { Text, View, Image, TouchableOpacity, Alert, Platform, PermissionsAndroid, AppState } from 'react-native';
import NetInfo from "@react-native-community/netinfo";
import { globalStyles as global, homeStyles as home, colorScheme as color} from 'assets';
import { FontAweso... |
/**
*
* Plugin definition
* @module multer-gridfs-storage/gridfs
*
*/
'use strict';
var mongodb = require('mongodb');
var ObjectID = mongodb.ObjectID;
var MongoClient = mongodb.MongoClient;
var crypto = require('crypto');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var isPromis... |
//imports
import document from "document"
import { peerSocket } from "messaging";
import clock from "clock";
import { preferences } from "user-settings";
import * as util from "../common/utils";
import { HeartRateSensor } from "heart-rate";
import userActivity from "user-activity";
import { goals, today } from "user-a... |
/**
* This is a fork of Rheostat for Preact X.
*
* @see https://github.com/airbnb/rheostat
*/
/** @jsx h */
import { h, Component } from 'preact';
import PropTypes from 'prop-types';
const KEYS = {
DOWN: 40,
END: 35,
ESC: 27,
HOME: 36,
LEFT: 37,
PAGE_DOWN: 34,
PAGE_UP: 33,
RIGHT: 39,
UP: 38,
};... |
import React, { useCallback, useState, useEffect } from 'react';
import {
Box,
CssBaseline,
TextField,
Breadcrumbs,
Link,
Typography,
Button,
Grid,
CircularProgress,
IconButton,
Icon,
InputAdornment,
Divider,
InputLabel,
Select,
MenuItem,
Dialog,
DialogTitle,
DialogCont... |
function _cancelBubble(event){
var ie =navigator.appName=="Microsoft Internet Explorer"?true:false;
e=event?event:window.event;
if(ie) e.cancelBubble=true;
else e.stopPropagation();
}
var Sys={};
var ua=navigator.userAgent.toLowerCase();
var s;
(s=ua.match(/msie ([\d.]+)/))?Sys.ie=s[1] :
(s=ua.match(/firefox\/(... |
// Effect Games Engine v1.0
// Copyright (c) 2005 - 2011 <NAME>
// Source Code released under the MIT License:
// http://www.opensource.org/licenses/mit-license.php
/**
* Joe's JavaScript Toolkit
* Event Handling Code
**/
var dblclick_threshold = 0.25;
// common key codes
var SPACE_BAR = 32;
var ENTER_KEY = 13;
... |
/* Copyright (C) 2020 <NAME> */
/*
* Parmeters
* config: default 'default'
* timeout: default 5 Dauer der Anzeige
* noUpdate: default 0 Anzeige stehen lassen
* prestart: default 3600 Zeit vor Spielstart, ab wann angezeigt wi... |
// This script is used to test elements that implement
// nsIDOMXULSelectControlElement. This currently is the following elements:
// listbox, menulist, radiogroup, richlistbox, tabs
//
// flag behaviours that differ for certain elements
// allow-other-value - alternate values for the value property may be used
// ... |
import React, { Component } from 'react'
import Button from '@material-ui/core/Button/'
import questions from './questions/questions.json'
import './css/main.css'
class App extends Component {
constructor(props) {
super(props)
this.state = {
data: questions,
activeQuestionIndex: 0,
result: {
pigeon:... |
$(document).ready(function() {
"use strict";
FirstLoad();
PageAnim();
PageShare();
HeroHeight();
OpenAbout();
ProjectExpander();
FullPage();
ClassicSlider();
MagnificPopup();
Shortcodes();
ContactForm();
});
$(window).on( 'resize', function () {
HeroHeight();
});
$(... |
Array.prototype.contains = function(str){
return this.some( function(v,i,a){
return v === str;
});
};
XMOVIES8_LIST = [
"http://xmovies8.co",
"http://xmovies8.tv",
"http://xmovies8.org",
];
IS_XMOVIES8 = (XMOVIES8_LIST.indexOf(location.origin) !== -1);
IS_HDTVNET = (location.origin === "http://hdtvshows.net... |
/**
* Configuration values. Values defined here are available to both the client
* and the server.
*/
// ESLint global declarations: https://eslint.org/docs/rules/no-undef
/*
global linodeNearLocation:true,
_:true,
ZOR:true
*/
const NODEJS_CONFIG = typeof module !== 'undefined' && module.exports;
if (NODEJS_CO... |
import PropTypes from 'prop-types';
import React from 'react';
import {helpers} from '../../common';
import {DataTable, NewWindowLink, PlayerPicture, SafeHtml, SkillsBlock, WatchBlock} from '../components';
import {getCols, setTitle, toWorker} from '../util';
const RatingsOverview = ({ratings}) => {
const r = rati... |
// ************************************************
// NEXUS Hub Node Server Cluster
// <NAME> (2017)
//
// To Launch:
// NODE_ENV=production sudo node nexusCluster.js
// (sudo is required to launch on port 80.)
//
// To start server with Xtra RAM - NODE_DEBUG=cluster node --max_old_space_size=4096 appCl... |
// Cronicle Server Scheduler
// Copyright (c) 2015 <NAME>
// Released under the MIT License
var async = require('async');
var fs = require('fs');
var moment = require('moment-timezone');
var Class = require("pixl-class");
var Tools = require("pixl-tools");
var PixlMail = require('pixl-mail');
module.exports = Class.... |
function update_report() {
var report_section = document.getElementById( 'report_wrapper_inner' );
report_section.innerHTML = '';
var servers_rep_list = document.createElement( 'ul' );
servers_rep_list.appendChild( build_slide_title_row( field_values['servers'].title ) );
for ( var field in field_v... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Vincenty Direct and Inverse Solution of Geodesics on the Ellipsoid (c) <NAME> 2002-2019 */
/* MIT Licence */
/* www.movable-type.co.... |
const { concat } = []
const flatten = arr => concat.apply([], arr)
const repeat = (rep, num) => new Array(num + 1).join(rep)
const toSet = arr => {
const result = {}
arr.forEach(name => { result[name] = true })
return result
}
// Ref: https://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html
// A complete li... |
// Copyright (c) 2017 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... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
var tagalong = require('./tagalong');
var d3 = require('d3');
var querystring = require('querystring');
if (typeof document !== 'undefined') {
require('./components/compat/custom-event');
}
module.exports = function compare() {
var loadable = d3.select('.loadable');
var root = d3.select('.compare-bg');
var c... |
function Fish(AI, x, y, size, dir, frame) {
var randCol = randColor()
this.dir = dir || 0 // radians
this.AI = AI || false
this.targetDir = dir
this.arcSpeed = 0.14
this.canv = document.createElement('canvas')
this.circles = Array.apply([], new Array(6)).map(function(cir, i){
return {
x: this.x... |
// UWB, blknr_copy, neighbors, neighbor_blocks, Insgesamt
// global objects
let geojson,
map, mapLoaded = false,
districts = [],
districtKeys = {},
blockKeys = {},
hoveredStateId = null,
selectedStateId = null,
hoveredDistrictId = null,
over = 0,
under = 0,
initOver = 0,
... |
const commands_it = [
`⏬ __***Comandi Utente***__ ⏬`,
`▶ **g!lfg -help** 🔹Mostra questo menù`,
`▶ **g!lfg -rolelist** 🔹Mostra la lista dei ruoli utilizzabili per il LFG`,
`▶ **g!lfg @ruolo** 🔹Attiva un ruolo nel proprio profilo per il LFG (usa \`g!lfg -listaruoli\` per visualizzare i ruoli usa... |
/**
* Initialize the map
*/
function initMap(){
var mapOptions={
zoom: 12,
center: new google.maps.LatLng(21.017217, 105.783722),
mapTypeId: 'roadmap'
};
map = new google.maps.Map(document.getElementById('map'), mapOptions);
directionsService = new google.maps.Direc... |
import fs from 'fs';
import path from 'path';
import chalk from 'chalk';
import camelcase from 'camelcase';
import arrFlatten from '@bemoje/arr-flatten';
/**
* Various utility for or related to javascript regular expression RegExp objects.
* @module regex
* @author <NAME>
* @version 0.0.1
* @date 2020-08-15
* @n... |
/*
~~ == Quartz ==================================
Development Version : 0.1
This Product is copyrighted and cannot be used without proper license or Author's Permission
*/
var QUARTZ_GLOBALS = {
};
//;(function ( $, window, document, undefined ) {
// == Global Constants for plugin =======... |
/**
*
* ProjectExportPage
*
*/
import { compose } from 'redux';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedMessage } from 'react-intl';
import { Helmet } from 'react-helmet';
import { Map } from 'immutable';
import { map, some, forEach } from 'loda... |
function plotData(t, tide, msl_obs, msl_for, wav, extremeH, name) {
var trace1 = {
x: t,
y: tide,
mode: "lines",
name: 'High Tide Prediction',
type: 'scatter',
line: {
color: 'rgb(0, 0, 0)',
width: 3,
dash: 'dash'
},
// fill: 'tozeroy'
};
// This is a trace place... |
/*
Contains all code that processes the settings
and changes the website accordingly.
Some features and structures are hardcoded here.
*/
/*==== feature functions ====*/
function recenterChatButton() {
let buttonContainer = jQuery(".widget_default_blok_2").find(".widget_button");
buttonContainer.css("bac... |
// @flow
import _ from 'lodash';
import * as Arel from 'arel';
import AlterTable from './schema/AlterTable';
import SchemaCreation from './schema/SchemaCreation';
import TableDefinition from './schema/TableDefinition';
import Table from './schema/Table';
import SchemaCache from './schema/SchemaCache';
import Relation f... |
/* Initialize the contenttools editor */
window.addEventListener('load', function() {
var editor = ContentTools.EditorApp.get();
// Initialize the editor on data-editable regions with data-name attribute,
// no fixture test but WITHOUT ignition ui. Why? Because we have to call
// edit/save manually for... |
var modal = $("#modal-estudiantes")
var AllRegister = []
var permisos = [];
var ides = [];
var emails = [];
$(document).ready(function() {
Reload()
$("#estudiantes-table").on('click', '[id^=Btn_Edit_]', function() {
var id = $(this).attr('data-id')
var filtro = AllRegister.filter(f => f.id... |
var ip;
var connectedFlag = false;
var fetchClient;
var lightSocket;
var uploadBox = $('.box');
var filesInput = uploadBox.find('input[type="file"]');
var selectedFiles;
var runningSkills = {};
var currentSkillName;
var skillIds = {};
$('[data-toggle="tooltip"]').tooltip();
$(".new-window-tab").hover(
... |
// Copyright (c) 2015 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 * as Common from '../../core/common/common.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as Platform from '../../core/platform/... |
//首页 轮播图
jQuery(".main-slider").slide({ mainCell: ".bd ul", effect: "fold", autoPlay: true, interTime: 4000, delayTime: 1000 });
//商品精选
$(".showcase .item").hover(function() {
$(this).find("img").stop().animate({ 'left': '-10px' }, 300);
}, function() {
$(this).find("img").stop().animate({ 'left'... |
window.dataModal = [];
window.data = [];
window.data.filtros = [];
window.data.filtros.comuna = [];
window.data.filtros.prioridad = [];
window.data.filtros.estados = [];
window.data.modelos = [];
window.data.modelos.comuna;
window.data.modelos.prioridad = [];
window.data.modelos.estados = [];
var appPensionadoBasePot... |
import React, { useState, useRef } from "react";
import Form from "react-validation/build/form";
import Input from "react-validation/build/input";
import CheckButton from "react-validation/build/button";
import { isEmail } from "validator";
import AuthService from "../services/auth.service";
const required = (value) ... |
import * as React from "react";
import classNames from "classnames";
import find from "lodash/find";
// import Tooltip from "./Tooltip";
function rootPath(path) {
if (path[0] !== "/") {
return path = "/" + path;
} else {
return path;
}
}
export default class FileTree extends React.Component {
constru... |
$('#calendarTypeName').html('Tháng')
$('.warning-text').toggle(false)
// calendar handling - start
var calendar = new tui.Calendar('#calendar', {
defaultView: 'month',
taskView: false,
narrowWeekend: false,
startDayOfWeek: 1,
visibleWeeksCount: 3,
visibleScheduleCount: 4,
month: {isAlways... |
import React, { Component } from "react";
import { connect } from "react-redux";
import styles from "./Cart.module.css";
import {
GET_CART,
MIN_ITEM,
DELETE_ORDER,
UPDATE_QTY,
UPDATE_DATA_REDUX
} from "../../yecipe/redux/actions/cart";
import update from "immutability-helper";
import { formatRupiah } from "..... |
import React, { useEffect, useState, useContext, useRef } from 'react'
import { Link } from 'react-router-dom'
import api from '../services/api'
import HEADER from '../components/header'
import BROWSER_MOVIES_CONTEXT from '../contexts/browser_movies'
import BROWSER_INFOS from '../contexts/browser_infos'
import '..... |
const backend = require( './backend-request' );
const metadata = require( './metadata' );
const config = require( '../config' );
const HttpResponseError = require( './HttpResponseError' );
const SCAN_CHECK_INTERVAL = config.files.scan.statusCheckInterval;
const SCAN_MAX_ATTEMPTS = Math.round( config.files.scan.maxWait... |
var currentActivityMode = null;
var runningPathCoordinates = [];
var runningDistanceKm = 0;
var runningDistanceKmLabelValue = '';
var runObject = {};
var runFirstSetOfCoordinates = null;
//UI components
var viewRun = null;
var runDistanceValueLabel = null;
var runDistanceUnitLabel = null;
var runDurationValueLabel = n... |
class bankAccountMultipleNameException extends Error {
setAccountList(acctList) {
this.resultList = [];
for(let i=0;i<acctList.length;i++) {
this.resultList.push({'name':acctList[i].ownerName,'birthday':acctList[i].ownerBirthdate,'number':acctList[i].accountNumber});
}
}
};
class bankAccount {
/*
... |
/*jshint globalstrict: true*/
"use strict";
var settings = {};
var relay_symbols = {
off: "☒", // "⚪",
on: "☑", // "⚫",
toggle: "⟳", //"♺",
untouched: "☐"
};
var key_event_symbols = {
pressed: "↓",
released: "↑"
};
var event_type_dict = {};
event_type_dict[0] = key_event_symbols.pressed;
eve... |
// goal.js
import {
generateId,
openPopup,
closePopup,
popup
} from './common.js';
// 함수]
// generateId(배열) : 배열에 생성될 요소의 아이디를 생성
// openPopup(popup요소) : 팝업 열기
// closePopup(popup요소) : 팝업 닫기
// popup(event.target, popup요소, popup 기능 버튼 실행할 함수, popup 닫을 떄 실행할 함수) : 해당 팝업의 기능 수행
// 상태
let targetId = null;
let go... |
"use strict";
///////////////////////////////////////////////////////////////////////////////
// \author (c) <NAME> (<EMAIL>)
// 2015-2018, PALANDesign Hannover, Germany
//
// \license The MIT License (MIT)
//
// This file is part of the mipher crypto library.
// Permission is hereby granted, free of charge... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
// -----------------------------------------------------------------------------
// - - - - - - - - - - - - - - - I M P O R T S - - - - - - - - - - - - - - - - -
// -----------------------------------------------------------------------------
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -... |
/***
Copyright 2007 Google Inc.
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 writing... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.list = undefined;
//test
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).d... |
$(document).ready(function(){
$('#new_system').on('click',function(){
event.preventDefault();
$('#insert_form')[0].reset();
$('#add_data_Modal').modal('hide');
})
$(document).on('change', '#type_input', function(){
let type_input = $('#type_input').val();
$('#add_data_Modal').fi... |
import React, { PropTypes } from 'react';
import RS, { Options } from '../../../../resources/resourceManager';
import _ from 'lodash';
import { getUrlPath } from '../../../../core/utils/RoutesUtils';
import { URL } from '../../../../core/common/app.routes';
import Breadcrumb from '../../../elements/Breadcrumb';
import ... |
import React, {useReducer, useContext} from 'react'
import BookmarkContext from './bookmarkContext'
import bookmarkReducer from './bookmarkReducer'
import setAuthToken from '../../utils/setAuthToken'
import AuthContext from '../auth/authContext'
import uuid from 'uuid/v4'
import axios from 'axios'
import {
GET_BOOKMA... |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
import React, { Component } from 'react';
import './OpenviduHangoutsReact.css';
import { OpenVidu } from 'openvidu-browser';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import StreamComponent from './StreamComponent.js';
import SimpleDialog from './SimpleDialog.js';
import... |
'use strict';
/*
* Modules
*/
require('core-js/fn/object/assign');
const Immutable = require('immutable');
const m = require('mithril');
const marked = require('marked');
const moment = require('moment');
const Stream = require('mithril/stream');
/*
* Globals used for cross-cutting concerns
*/
// Application ... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
const ID_CLIENTE_FACEBOOK = "<?php echo ID_CLIENTE_FACEBOOK ?>"
const ID_CLIENTE_GOOGLE = "<?php echo ID_CLIENTE_GOOGLE ?>"
// Variable Global para evitar auto-inicio de google
var clicked=false;
function init(){
clicked=false;
//Dar border radius a boton de google
$("#google-button").css("border-radi... |
// Global vars
console.clear()
var userData = "";
var pym = require("./lib/pym");
var ANALYTICS = require("./lib/analytics");
require("./lib/webfonts");
var { isMobile } = require("./lib/breakpoints");
var aria = require("./listbox-combobox.js");
var $ = require("./lib/qsa");
var COUNTIES = require("./counties.js");... |
import { push } from 'connected-react-router';
import moment from 'moment';
import PropTypes from 'prop-types';
import React from 'react';
import DatePicker from 'react-datepicker';
import 'react-datepicker/dist/react-datepicker.css';
import { Helmet } from 'react-helmet';
import {
FaArrowLeft,
FaCheck,
FaTimes
}... |
/**
* @name Topo图插件二次封装,基于JTopo 0.4.8
* @description 完全封装JTopo基础api,解决鼠标cursor报错和滚轮缩放方向bug,修改源码中callee,现支持es5严格格式不报错
* @author <NAME>
* @version 2019/3/27
*
* @constructor
* @param {selector|String} DOM 必选 构造函数接受一个参数,当前绑定topo的canvas类名或id名,与jq选择器一致,必须是canvas标签
* @instance 实例方法
* @method setData(dataset) 设置to... |
/**
* @module ol/renderer/canvas/TileLayer
*/
import {getUid} from '../../util.js';
import {fromUserExtent} from '../../proj.js';
import TileRange from '../../TileRange.js';
import TileState from '../../TileState.js';
import {createEmpty, equals, getIntersection, getTopLeft} from '../../extent.js';
import CanvasLayer... |
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
const { parse, loadLanguages, allLanguages } = require('../syntax')
loadLanguages({
de: require('../locales/de'),
ja: require('../locales/ja'),
ko: require('../locales/ko'),
pt_br: require('../locales/pt-br'),
rap: require('../locales/rap'),
uz: require('../locales/uz'),
})
const optionsFor = (code) => ({... |
import React, { PureComponent, useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, Input, Select, Form } from 'antd';
import BpmnModeler from 'bpmn-js/lib/Modeler';
// import elementHelper from 'bpmn-js-properties-panel/lib/helper/ElementHelper';
import propertiesPanelModule... |
import RopeSequence from "rope-sequence"
import {Mapping} from "prosemirror-transform"
import {Plugin, PluginKey} from "prosemirror-state"
// ProseMirror's history isn't simply a way to roll back to a previous
// state, because ProseMirror supports applying changes without adding
// them to the history (for example du... |
/**
* author:<EMAIL>
* date:20140523
* version:1.0.0
*/
function Calendar(arg){
var that = this,
relevant = Calendar.relevant,
options = $.extend({
frondose : false,
week : ['日','一','二','三','四','五','六'],
month : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
yearRange : [2000,20... |
/**
*
* Web Starter Kit
* Copyright 2015 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*... |
const newFormHandler = async (event) => {
event.preventDefault();
const billName = document.querySelector('#bill-name').value.trim();
const billAmount = document.querySelector('#bill-amount').value.trim();
const dueDate = document.querySelector('#due-date').value.trim();
const billType = document.query... |
/**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
var Fil... |
let reqData = {
fromCity: "MCO",
toCity: "ORD",
departdate: "2022-01-03",
adultNum: 4,
childNum: 1
}
// 预定机票
document.querySelector("#liBookFlight > a").click()
// 单程
let oneWay = document.querySelector("#findFlights > div.transformer-tabs__section--border-bottom.flights > div > div.divOn... |
/* global __coverage__ */
var arrify = require('arrify')
var fs = require('fs')
var glob = require('glob')
var libCoverage = require('istanbul-lib-coverage')
var libHook = require('istanbul-lib-hook')
var libReport = require('istanbul-lib-report')
var libSourceMaps = require('istanbul-lib-source-maps')
var reports = re... |
const promiseUtils = require('../../../utils/promiseUtils');
const { Selection } = require('../select/Selection');
const { uniqBy, values } = require('../../../utils/objectUtils');
const { Type: ValidationErrorType } = require('../../../model/ValidationError');
const { createModifier } = require('../../../utils/create... |
lilv_array = new Array;
//08年12月23日基准利率
lilv_array[1] = new Array;
lilv_array[1][1] = new Array;
lilv_array[1][2] = new Array;
lilv_array[1][1][5] = 0.0576;//商贷 1~5年 5.76%
lilv_array[1][1][10] = 0.0594;//商贷 5-30年 5.94%
lilv_array[1][2][5] = 0.0333;//公积金 1~5年 3.33%
lilv_array[1][2][10] = 0.0387;//公积金 5-30年 3.87%
//10年1... |
var hat = require('hat');
var util = require('./util');
var types = require('./types');
var logger = require('./logger');
/**
* Agent deserializes the wire protocol messages received from the stream and
* calls the corresponding functions on its Agent. It uses the return values
* to send responses back. Agent also ... |
// Import React
import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
// Material UI
import { Avatar } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import Badge from '@material-ui/core/Badge';
import Tooltip from '@material-ui/core/Tooltip';
// Ma... |
'use strict';
let cSim = 0
function get_colors(runtype) {
/* servo/components/style/values/specified/color.rs */
let aList = [],
sTarget = "",
sControl = ""
let sName = "css_colors_"+ runtype
clearDetail(sName)
if (runtype == "system") {
sControl = "5bcd87c4c7753f09a14546911686a62e8625faf8"
sTarget = do... |
import BN from 'bn.js';
import * as nearApiJs from 'near-api-js';
import { createActions } from 'redux-actions';
import {
ACCOUNT_HELPER_URL,
REACT_APP_USE_TESTINGLOCKUP,
STAKING_GAS_BASE,
} from '../../config';
import { getLockupAccountId, getLockupMinBalanceForStorage } from '../../utils/account-with-loc... |
import React from "react";
import * as PIXI from "pixi.js";
import styles from "./Replay.css";
import Navigation from "../../Navigation";
import Erangel from "../../asset/Erangel_Main_Low_Res.png";
import Erangel_Remastered from "../../asset/Erangel_Remastered_Main_Low_Res.png";
import Miramar from "../../asset/Miramar... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var data_renderer_1 = require("./data_renderer");
var line_1 = require("../glyphs/line");
var cds_view_1 = require("../sources/cds_view");
var logging_1 = require("../../core/logging");
var p = require("../../co... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var ReactDOM = _interopDefault(require('react-dom'));
var invariant = _interopDefault(require('invariant'));
var t... |
/* eslint-disable */
import assert from 'assert'
import clone from 'clone'
import EthQuery from 'eth-query'
import nock from 'nock'
import sinon from 'sinon'
import { obj as createThoughStream } from 'through2'
import MetaMaskController from '../../../src/controllers/TorusController'
import firstTimeState from '../../... |
/**
* geocat.mapa.altres-fonts-dades
*/
function cercaCapes(e){
var code = e.which; // recommended to use e.which, it's normalized across browsers
if(code==13) {//enter
var data = {
searchInput: jQuery("#txt_capesInstamaps").val()
};
valorCampText=jQuery("#txt_capesInstamaps").va... |
$( document ).ready(function() {
// With JQuery
$("#slider_accion").slider();
$("#slider_accion").on("slide", function(slideEvt) {
$("#slider_accion_input").val(slideEvt.value);
});
$("#slider_aventuras").slider();
$("#slider_aventuras").on("slide", function(slideEvt) {
$("#sl... |
// built-in modules
const fs = require('fs');
const os = require('os');
const electron = require('electron');
const electronApp = electron.app;
const electronBrowserWindow = electron.BrowserWindow;
const session = electron.session;
const shell = electron.shell;
const { crashReporter, idleState } = electron;
// npm mod... |
/*****************
ChartYourMusic
@author GiraffeKey and sorwu
******************/
// Array for the chart list
let charts = [];
// Handle for the selected chart
let chart;
// Index of selected chart
let chartIndex;
// Helps with dynamic reordering during drag & drop
let dragIndex = -1;
// Helps with fix for whe... |
import React from "react";
import { catchError, multicast } from "rxjs/operators";
import { TextContainer, Card, Stack, RangeSlider, Button, ButtonGroup, Modal, Link } from "@shopify/polaris";
import { saveAs } from 'file-saver';
import { take, takeUntil } from "rxjs/operators";
import { Subject, timer } from "rxjs";
... |
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { getRoot, types } from "mobx-state-tree";
import ColorScheme from "pleasejs";
import { Button } from "antd";
import { PauseCircleOutlined, PlayCircleOutlined } from "@ant-design/icons";
import ObjectBase from "./Base";
imp... |
/**
* URI.js
*
* @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
* @author <a href="mailto:<EMAIL>"><NAME></a>
* @see http://github.com/garycourt/uri-js
*/
/**
* Copyright 2011 <NAME>. All rights reserved.
*
* Redistribution and use in source and ... |
function getDimensionBoostPower(next) {
if (player.currentChallenge == "challenge11" || player.currentChallenge == "postc1") return Decimal.fromNumber(1);
var ret = 2
if (!player.galacticSacrifice) {
if (player.infinityUpgrades.includes("resetMult")) ret = 2.5
if (player.challenges.includes("postc7")... |
'use strict'
/*
Char codes:
'#': 35
'*': 42
'-': 45
'/': 47
':': 58
';': 59
'?': 63
*/
const assert = require('assert')
const http = require('http')
const fastDecode = require('fast-decode-uri-component')
const isRegexSafe = require('safe-regex2')
const Node = require('./node')
const NOD... |
/*!
* Needful things v2.1.0
* Copyright 2021 <NAME> - ppm visuals & internet GmbH
* Released under the MIT License.
*/
import rfg from 'rfg-api';
import pify from 'pify';
import fs from 'fs';
import path from 'path';
import ora from 'ora';
import tinify from 'tinify';
import glob from 'glob';
import logSymbols from ... |
const {
React: { useState, useRef, useEffect, Fragment },
ReactDOM: { render },
gsap: {
set,
to,
timeline,
utils: { random } } } =
window;
const rootNode = document.getElementById('app');
const armLimit = random(0, 3);
const headLimit = random(armLimit + 1, armLimit + 3);
const angerLimit = rando... |
/*
Support for CS1101S Mission 15
Sound mission - Tone Matrix
Author:
v1 (2014/2015) <NAME> - September 2014
Modifier:
v2 (2016/2017) <NAME> - September 2016 - fit source academy IDE
*/
var $tone_matrix; // canvas container for tone matrix
var color_white = "#ffffff"; // color of the highlighted square
... |
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
/**
* The whole purpose of this code is to detect when we're in the state of having
* the UMS Enabled checkbox unchecked, but the SD-card is still being shared
* with ... |
/* eslint-disable import/no-cycle */
import Tooltip from 'tooltip.js';
import Vue from 'vue';
import Node from './node.vue';
import contextMenu from './contextmenu';
import instance from './instance';
import model from './model';
import FlowChart from './flowchart';
import { EventCenter } from './eventcenter';
import {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.