text stringlengths 5.97k 41.2k |
|---|
// Single-line comments start with two slashes.
/* Multiline comments start with slash-star,
and end with star-slash */
// Statements can be terminated by ;
doStuff();
// ... but they don't have to be, as semicolons are automatically inserted
// wherever there's a newline, except in certain cases.
doStuff()
// B... |
import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode, createPortal } from 'react-dom';
import createReactClass from 'create-react-class';
import contains from 'rc-util/lib/Dom/contains';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import Popup from './Popup';
import {... |
import moment from 'moment';
import { isPresent, isBlank } from "@ember/utils";
import { getWithDefault } from '@ember/object';
import { buildDateEod } from 'thirdeye-frontend/utils/utils';
import { getFormattedDuration } from 'thirdeye-frontend/utils/anomaly';
import floatToPercent from 'thirdeye-frontend/utils/float-... |
import mpcpattern_file_tamplate from "./templates/mpcpattern_file_template.handlebars";
const hexTab = ["0", "1", "2", "3",
"4", "5", "6","7",
"8", "9", "A", "B",
"C", "D", "E", "F"];
function hexLZ32(v) {
let result = "";
let shifty = 28;
for (let shifty = 28; shifty >= 0; shifty-=4) {
let nibble ... |
#!/usr/bin/env node
const http = require('http');
const url = require('url');
const fs = require("fs");
const path = require("path");
const os = require("os");
const assert = require("assert");
const performance = require('perf_hooks').performance;
const { exec, execSync, spawn, spawnSync, fork } = require('child_proc... |
const {
app,
BrowserWindow,
Menu
} = require('electron')
const path = require('path')
const url = require('url')
const request = require('request')
const storage = require('electron-json-storage')
const fs = require('fs')
const ini = require('ini')
// Keep a global reference of the window object, if you don't, t... |
import { EventHandler } from '@syncfusion/ej2-base';
import { remove } from '@syncfusion/ej2-base';
import { removeElement, RectOption, PolygonOption, createTooltip, minMax, getElement } from '../../common/utils/helper';
import { textElement, } from '../../common/utils/helper';
import { PathOption, Rect, measureText, T... |
/*
* Copyright 2005 <NAME>
*
* 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 w... |
import utils from '../common/utils/index';
import { Item } from 'pro-layouts';
import RESIZE_METHODS from '../common/constants/resizeMethods';
import { URL_TYPES } from '../common/constants/urlTypes';
class GalleryItem {
constructor(config) {
this.uniqueId = utils.generateUUID();
this.isGalleryItem = true;
... |
// Approach:
//
// 1. Get the minimatch set
// 2. For each pattern in the set, PROCESS(pattern, false)
// 3. Store matches per-set, then uniq them
//
// PROCESS(pattern, inGlobStar)
// Get the first [n] items from pattern that are all strings
// Join these together. This is PREFIX.
// If there is no more remaining, ... |
require('../../spec_helper')
require('mocha-banner').register()
const chalk = require('chalk').default
const _ = require('lodash')
let cp = require('child_process')
const niv = require('npm-install-version')
const path = require('path')
const http = require('http')
const human = require('human-interval')
const morgan ... |
//Author: <NAME>
var productData;
var tropicalCycloneLayerAE;
var tropicalCycloneLayerWI;
var tropicalDepressionLayerAE;
var tropicalDepressionLayerWI;
var tropicalStormLayerAE;
var tropicalStormLayerWI;
var hurricaneLayerAE;
var hurricaneLayerWI;
var thresholdVal;
var info = L.control();
var markerList=[];
var ... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
// Copyright 2017 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 ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModalBase = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var Utilities_1 = require("../../Utilities");
var FocusTrapZone_1 = require("../../FocusTrapZone");
var Modal_styles_1 = require("./Modal.styles");
var O... |
import _ from "underscore";
import jQuery from "jquery";
import Backbone from "backbone";
import { getAppRoot } from "onload/loadConfig";
import CONTROLLED_FETCH_COLLECTION from "mvc/base/controlled-fetch-collection";
import HDA_MODEL from "mvc/history/hda-model";
import HDCA_MODEL from "mvc/history/hdca-model";
import... |
import { Promise } from "rsvp";
import { isPresent } from "@ember/utils";
import DiscourseURL from "discourse/lib/url";
import { cookAsync } from "discourse/lib/text";
import { escapeExpression } from "discourse/lib/utilities";
import loadScript from "discourse/lib/load-script";
import { withPluginApi } from "discourse... |
/* eslint-disable mocha/no-pending-tests */
/*
* Copyright © 2019 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this ... |
import React, { Component } from 'react'
import classNames from 'classnames'
import { FormattedMessage, FormattedDate, FormattedTime }
from 'react-intl'
import _get from 'lodash/get'
import _each from 'lodash/each'
import _map from 'lodash/map'
import _isFinite from 'lodash/isFinite'
import _kebabCase from 'loda... |
import React from "react";
import {StyleSheet, css} from "aphrodite";
import SegmentedControl from "./SegmentedControl.js";
import Toggle from "./Toggle.js";
import {F4, Mig21} from "./Planes.js";
const BLUE = "#558cf4";
const RED = "#c13c3d";
const styles = StyleSheet.create({
app: {
backgroundColor: "#282c34... |
/*
* Copyright (c) 2020. <NAME>
*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*/
const FHC_WINDOW_MANAGE = { path:"popup/tableview/popup-big.html", width:1000, height:500, type:"popup", currentId: -1, pref: 'prefPosSizeTableview' };
c... |
var assign_to_depth = function(obj, depth) {
var rendering_group = SET.rendering_groups[depth];
if (rendering_group == undefined) SET.rendering_groups[depth] = [obj];
else rendering_group.push(obj);
}
// updates any groups
var update_groups = function(groups) {
var obj_update = function(x) {
if (x ... |
/* globals fin */
'use strict';
/**
* Created by haseebriaz on 03/03/15.
*/
var __extends = function(d, b) {
function Construct() {
this.constructor = d;
}
Construct.prototype = b.prototype;
d.prototype = new Construct();
};
var monitors = [];
function getMonitorInfo(){
fin.desktop.Sy... |
function getElementPosition(element) {
if (element instanceof String) {
element = document.getElementById(element);
}
if (element) {
if (element.offsetLeft && element.offsetTop) {
return {x: element.offsetLeft, y: element.offsetTop};
}
if (element.x && element.y) ... |
// 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 { factory } from '../../../utils/factory'
import { csFkeep } from './csFkeep'
import { csFlip } from './csFlip'
import { csTdfs } from './csTdfs'
const name = 'csAmd'
const dependencies = [
'add',
'multiply',
'transpose'
]
export const createCsAmd = /* #__PURE__ */ factory(name, dependencies, ({ add, mul... |
const fs = require("fs");
const xml2js = require("xml2js");
const StreamZip = require("node-stream-zip");
const parserXml2js = new xml2js.Parser();
const readLineFile = require('readline');
countFiles = 0;
timeExtractZip = 0;
timeParseXML2JSON = 0;
timeMapJSON = 0;
totalLines = 0;
// Meses
// const ficheroZIP = "C:/Us... |
var SCSocket = require('./scsocket');
var AuthEngine = require('sc-auth').AuthEngine;
var EventEmitter = require('events').EventEmitter;
var base64id = require('base64id');
var async = require('async');
var url = require('url');
var domain = require('domain');
var crypto = require('crypto');
var uuid = require('node-uu... |
//@line 4 "c:\WSG\Projects\ABCpdf\Source\mozilla-release\toolkit\components\url-classifier\nsUrlClassifierListManager.js"
const Cc = Components.classes;
const Ci = Components.interfaces;
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
//@line 4 "c:\WSG\Projects\ABCpdf\Source\mozilla-release\toolkit... |
$(document).ready(function () {
activateJSOnlyContent();
createCustomFocuses();
var focus = $('#foki > li.active > a').attr('aria-controls');
var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector');
getDocumentReadyForUse(focus, custom);
botProtection();
new Results().updateResultPageInt... |
import {BaseNode, utils, querySelector, querySelectorAll} from 'sprite-core';
import Layer from './layer';
import Resource from './resource';
import {createCanvas, getContainer} from './platform';
import {setDebugToolsObserver, removeDebugToolsObserver} from './platform/devtools';
const {setDeprecation, sortOrderedSp... |
const Command = require("../../structures/Command");
const { MessageEmbed, MessageActionRow, MessageButton } = require('discord.js');
const { generateRandomHex } = require("../../structures/functions");
const RemindList = require("../../structures/models/RemindList");
const buttonMonthOptions = [
{ customId: 'remin... |
if (typeof window.endless === 'undefined')
window.endless = false
WebFontConfig = {
google: { families: [ 'Source+Sans+Pro:300,400,700:latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googlea... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import MessageDialog from '../components/MessageDialog'
import CreatePortfolioDialog from '../components/CreatePortfolioDialog'
import StockSelectSection from '../views/StockSelectSection'
import... |
var util = require("util"),
ansi = require("ansi"),
cursor = ansi(process.stdout),
crypto = require("crypto"),
through = require("through"),
glob = require("glob"),
path = require("path"),
minimatch = require("minimatch"),
isPromise = require("is-promise"),
fs = require("fs"),
mk... |
const evaluationHost =apiGateWayHost+"/configcenter/";
var checked=new Array();
layui.config({
base:'../../'
}).extend({
index:'lib/index'
}).use(['index','form', 'element', 'laydate', 'laypage', 'table', 'layer'], function() {
var $ = layui.jquery,
admin = layui.admin,
form = layui.form,
element = layui.eleme... |
import pMap from 'p-map';
import flatMap from 'lodash/flatMap';
import sortBy from 'lodash/sortBy';
import moment from 'moment';
import i18n from 'i18next';
import Timecode from 'smpte-timecode';
import { getOutPath, isDurationValid, getExtensionForFormat, isMac, isWindows } from './util';
const execa = window.requir... |
import { observable, computed } from 'mobx';
import CryptoJS from 'crypto-js';
import ethereumJsWallet from 'ethereumjs-wallet';
import { TIMENODE_WORKER_MESSAGE_TYPES } from '../js/timenode-worker-message-types';
import { showNotification } from '../services/notification';
import { LOGGER_MSG_TYPES, LOG_TYPE } from '... |
const TMan = require('foglet-core').abstract.tman;
const Communication = require('foglet-core').communication;
const vivaldi = require('vivaldi-coordinates');
const debug = require('debug')('overlay:latency')
const lmerge = require('lodash.merge');
const isEmpty = require('lodash.isempty');
const uuid = require('uuid/v... |
_.each(templates, function(template, id) {
tbone.addTemplate(id, template);
});
function _render (opts) {
var tboneAttr = _.reduce(opts.attrs, function (agg, v, k) {
agg.push(k + ': ' + v);
return agg;
}, []).join(', ');
var $el = $('<div>').attr('tbone', tboneAttr);
if (opts.inline... |
// This JS file is for the map and list view creations on the homepage of the
// Maps4All site for the user. This example requires the Places library. Include
// the libraries=places parameter when you first load the API. For example:
// <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=pl... |
import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import { FastField, useFormikContext } from 'formik';
import { Box, Flex, BoxProps } from 'rebass/styled-components';
import bows from 'bows';
import compact from 'lodash/compact';
import find from 'lodash/find';
i... |
import $, { data } from 'jquery'
import Chart from 'chart.js/auto';
import ChartDataLabels from 'chartjs-plugin-datalabels';
import Datamap from 'datamaps'
require('waypoints/lib/noframework.waypoints.min')
Chart.register(ChartDataLabels);
// Load Styles
import '../scss/main.scss';
import { hide } from '@popperjs/cor... |
import styled from '@emotion/styled'
import { math, lighten, opacify, desaturate } from 'polished'
const EditorContainer = styled.div`
font-family: ${props => props.theme.dante_font_family_serif};
letter-spacing: 0.01rem;
font-weight: 400;
font-style: normal;
font-size: ${props => props.theme.dante_editor_fo... |
/**
* @license
* Copyright 2018 Google LLC. 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 requ... |
"use strict";
const fs = require("fs");
const concat = require("concat-stream");
const bwipjs = require("bwip-js");
const AWS = require("aws-sdk");
const s3 = new AWS.S3();
const PDFDocument = require("./library-override/pdfkit-customized");
const coverPDFLogic = require("./pdf-types/cover-logic");
const setupPDFType... |
var fsm = require('./fsm.js')
var settings = require('./settings.js')
var widgets = require('./widgets.js')
var view_fsm = require('./view_fsm.js')
var menu_fsm = require('./menu_fsm.js')
function Application () {
this.main_controller = new fsm.Controller()
this.main_controller.application = this
this.main... |
#!/usr/bin/env node
"use strict";
// Imports
var fs = require('fs');
var path = require('path');
var files = require('./fileOperationHelper.js');
var paths = require('./pathsConstants.js');
var logger = require('./logger.js');
// Config File
var TAG_GENERAL = "GENERAL";
var TAG_MOBILE = "NATIVE";
var TAG_JSAGENT =... |
window.onload = function(){
foruser_local_track();
// var constraints = {audio:true,video:true};
// navigator.mediaDevices.getUserMedia(constraints).then(function(mediaStream){
// var video = document.querySelector('video');
// video.srcObject=mediaStream;
// video.... |
var w;
var h;
var previous_m = 1;
var top_height;
var scrollPast;
var AppSizes = [0,0]; // heigh1, heigh2
// Modal Image Gallery
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("modal01").style.display = "block";
var captionText = document.getElementById("c... |
'use strict';
const fs = require('fs');
const path = require('path');
const assert = require('assert');
const O = require('omikron');
const esolangs = require('../..');
const TAB_SIZE = 2;
const tab = (num=1, str='') => {
return `${' '.repeat(TAB_SIZE * num)}${str}`;
};
class Base extends O.Stringif... |
const {
Octokit
} = require("@octokit/core");
const {
throttling
} = require("@octokit/plugin-throttling");
const parse_headers = require('parse-link-header');
const fs = require('fs');
const errorHandler = require('./errorHandler.js');
const path = require('path'),
errors = require('./errors.js'),
fm = require... |
let canvas = document.getElementById("canvas_kap");
let context = canvas.getContext("2d");
let blockBreaker = {
init: function () {
this.wall.collection = this.wall.build();
this.animate();
document.addEventListener("mousedown", this.eventCallbacks.mouseDownHandler, false);
documen... |
var data, labels;
var layer_defs, net, trainer;
// create neural net
var t = "layer_defs = [];\n\
layer_defs.push({type:'input', out_sx:1, out_sy:1, out_depth:2}); // 2 inputs: x, y \n\
layer_defs.push({type:'fc', num_neurons:25, activation:'relu'});\n\
layer_defs.push({type:'fc', num_neurons:25, activation:'relu'});... |
import React, { PureComponent } from 'react';
import { Table, Card, Row, Col, Icon, Form, Select, Modal, Input, Button, Divider } from 'antd';
import { FormattedMessage } from 'umi-plugin-react/locale';
import { connect } from 'dva';
import { formatMessage } from 'umi/locale';
import moment from 'moment/moment';
import... |
// Azure tables log transport.
var azure = require('azure-storage');
var base32 = require('base32');
var async = require('async');
var levels = require('../levels');
// Transport factory.
// Options are taken from farm logging transport configuration.
exports.create = function(options, callback) {
options = option... |
// TryMongo
//
// Copyright (c) 2009 <NAME>
// Licensed under the MIT Licence.
// http://www.opensource.org/licenses/mit-license.php
// Readline class to handle line input.
var ReadLine = function(options) {
this.options = options || {};
this.htmlForInput = this.options.htmlForInput;
this.inputHandler = thi... |
const axios = require('axios');
const cheerio = require('cheerio');
const Store = require('electron-store');
const { shell } = require('electron');
const NodeCache = require('node-cache');
const { execCommand } = require('./promExec');
const ALL_PIPS_KEY = 'ALL_PIPS';
const CURRENT_PIP_KEY = 'CURRENT_PIP';
const HAS_... |
/// <reference path="../../../Source/ThirdParty/ammo.js-master/builds/ammo.js" />
/// <reference path="../common.js" />
/*requirejs([
"../../../requirejs.config.js",
"../../../appconfig.js",
'../../../Source/Main',
'../common.js'
], function (
config,
appconfig,
... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
View,
TouchableOpacity,
ScrollView,
} from 'react-native';
import Dimensions from 'Dimensions';
const { width } = Dimensions.get('window');
const difficulty = 0.5; // map this to state value to creat... |
import React, {useState, useRef, useEffect} from 'react';
import styled, {keyframes} from 'styled-components';
import 'bootstrap/dist/css/bootstrap.min.css';
import LoadingButton from './components/LoadingButton';
import NewGameModal from './components/NewGameModal';
const View = styled.div`
display: flex;
background... |
import React, { useRef, useEffect, useMemo } from 'react'
import { css } from 'glamor'
import { withRouter } from 'next/router'
import { renderMdast } from 'mdast-react-render'
import { graphql, compose } from 'react-apollo'
import * as reactApollo from 'react-apollo'
import * as graphqlTag from 'graphql-tag'
import {... |
import {
NoWork,
Never,
Sync,
msToExpirationTime
} from './ReactFiberExpirationTime'
import {
now,
noTimeout,
prepareForCommit,
resetAfterCommit
} from './ReactFiberHostConfig'
import {
ConcurrentMode,
NoContext
} from './ReactTypeOfMode'
import {
HostRoot
} from '../../sh... |
import { Card, CardSubHeader, Header, LinkButton, Loader, Row, StatusTable,MultiLink } from "@egovernments/digit-ui-react-components";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { useParams } from "react-router-dom";
import getPTAcknowledgementData from ".... |
/**
* bovins_prepareMessageResultatConcours
* Retourne le message à envoyer à la presse dans "cible_range"
* Les colonnes devront êtres préalablement triées sur Categorie, Section, Classification
* On ne prend que les lignes avec Travail non vide
* @param {String} urlOrIdOfSheet : id du Spreadsheet
* @param {Stri... |
Ti.include("/api/config.js");
Ti.include("/database/clientes.js");
Ti.include("/database/carrinho.js");
Ti.include("/database/carrinho_pedido.js");
Ti.include("/database/prazo_medio.js");
Ti.include("/database/pedido.js");
Ti.include("/database/datas.js");
Ti.include("/database/representante.js");
var base = 0;
var br... |
/*
* 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 n... |
var gulp = require('gulp'), concat = require('gulp-concat'), uglify = require('gulp-uglify'),
// jade = require('gulp-jade'),
less = require('gulp-less'), path = require('path'),
livereload = require('gulp-livereload'), // Livereload plugin needed:
// https://chrome.google.com/webstore/detail/livereloa... |
// relatorio-aluno-ctrl.js
// Este arquivo contém o script de controle da tela relatorio-aluno-view.
// Preenchimento da Tabela via SQL
var listaDeAlunos = new Map();
var totalNumEscolas = 0;
var totalNumRotas = 0;
// Dados para serem plotados
var dataEscola = { series: [], labels: [] };
var dataEscolaFilter = { ser... |
//Classes:
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
this.radius = 10;
}
draw(ctx, color) {
ctx.beginPath();
ctx.fillStyle = color;
ctx.arc(this.x, this.y, this.radius, 0, 2 * Math.PI);
ctx.fill();
}
isPointWithin(x, y) {
var dx = this.x - x;
var dy = this... |
//comprFinal
var CHECK = null;
var Direc = true;
var Pag = true;
var changeDirec = function () {
let direccion1 = $("#comprar_direccion1");
let direccion2 = $("#comprar_direccion2");
let pais = $("#comprar_pais");
let provincia = $("#comprar_provincia");
let ciudad = $("#comprar_ciudad");... |
//creating variables
let splashPage = document.querySelector(".splash-page");
let startButton = document.querySelector("#start-quiz");
let timerCount = document.querySelector(".timer-count");
let timerContainer = document.querySelector(".timer");
let seconds = document.querySelector("#seconds");
let viewScores = docum... |
/**
* Custom adapter that handles model synchronization between client and server
* using a websocket connection.
* @module adapters/application
* @author <NAME>
* @author <NAME>
* @copyright (C) 2016-2017 ACK CYFRONET AGH
* @license This software is released under the MIT license cited in 'LICENSE.txt'.
*/
//... |
import Base from '../base'
import tpl from './index.html'
import style from './index.less'
import dialogTpl from './dialog.html'
import dialogStyle from './dialog.less'
import regionJson from './region.json'
import {
formatTime,
isEqual,
} from '../../utils/tool'
const template = document.createElement('templa... |
const debug = require('debug')('ring-mqtt')
const utils = require( '../lib/utils' )
class Camera {
constructor(deviceInfo) {
// Set default properties for camera device object model
this.camera = deviceInfo.device
this.mqttClient = deviceInfo.mqttClient
this.subscribed = false
... |
"use strict";
var C = require('../lib/combinators'),
M = require('../lib/maybeerror'),
assert = require("assert");
var module = describe, // magic mocha variables -- `describe` and `it`
test = it,
deepEqual = assert.deepEqual;
module('combinators', function() {
var iz1 = C.basic,
iz2 = C... |
/**
* SPECIFICATION DETAILS
*/
// Get config
const DETAILS_UPDATE_INTERVAL = config.details.updateInterval * 1000;
// Get current Specification Id (passed via URL query)
const URL_QUERY = new URLSearchParams(window.location.search);
const QUERY_SPECIFICATION_ID = URL_QUERY.get("specification");
// Get page element... |
// === ATTRIBUTE ARRAYS
// note: I had the underscore in front of the arrays key to distinguish it from the name of the attribute
const arrays = {
_stats: ['strength', 'constitution', 'dexterity', 'intelligence', 'power', 'charisma'],
_hit_points: ['strength_score', 'constitution_score'],
_sanity_points: [... |
//请求地址(列表)
var RequestListUrl = "/News/GetNewsList";
//请求地址(单条记录)
var RequestUrl = "/News/GetNews";
//请求地址(删除记录)
var RequestDelUrl = "/News/DelNews";
//请求地址(修改)
var RequestEditUrl = "News/EditNews";
//请求控制器(添加)
var RequestAddUrl = "News/AddNews"
$(function () {
//1.初始化Table
var oTable = new TableInit();
... |
import { CdkAutofill, AutofillMonitor, CdkTextareaAutosize, TextFieldModule } from '@angular/cdk/text-field';
import { NgIf, CommonModule } from '@angular/common';
import { ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵdefineComponent, ɵɵlistener, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵsetClassMetadata, Component, ɵɵdirectiveIn... |
var cube2unichars =
[
0, 192, 193, 194, 195, 196, 197, 198, 199, 9, 10, 11, 12, 13, 200, 201,
202, 203, 204, 205, 206, 207, 209, 210, 211, 212, 213, 214, 216, 217, 218, 219,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
... |
import React, { PureComponent, Children, cloneElement } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import deprecated from 'react-prop-types/lib/deprecated';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import getField from '../utils/getField';
import contr... |
import Vue from 'vue';
import PerfectScrollbar from 'perfect-scrollbar';
import PerfectScrollbarCss from 'perfect-scrollbar/dist/css/perfect-scrollbar.css';
import template from './diagram-template.html';
import {addTask, removeTask, clearTasks, addFlow, removeFlow,
clearFlows, changeWorkflowName, saveWorkflow, ... |
const {Discord, Client, Guild, GuildChannel, TextChannel} = require("discord.js");
const mongoose = require("mongoose");
const helper = require("./Bot.json");
const client = new Client();
const Bots = global.Bots = [];
// Mongoose
mongoose.connect("", {useNewUrlParser: true, useUnifiedTopology: true});
mongoos... |
import {BehaviorSubject, Subject, combineLatest, concat, distinctUntilChanged, filter, finalize,
first, last, of, pipe, map as rxMap, share, switchMap, takeUntil, windowTime} from 'rxjs'
import {Content, SectionLayout} from 'widget/sectionLayout'
import {ElementResizeDetector} from 'widget/elementResizeDetector'
im... |
import styled, { css, keyframes } from 'styled-components';
import TextField from '@material-ui/core/TextField';
import IconButton from '@material-ui/core/IconButton';
import Checkbox from '@material-ui/core/Checkbox';
import { stripUnit, rgba } from 'polished';
// Styles for overriding material UI
// General colors
/... |
import MANUFACTURERS from './components/common/enums/manufacturers';
const CATEGORIES = {
'walls' : {
Name : 'Walls',
Key : 'Walls'
},
'ceilings-roof' : {
Name : 'Ceilings & Roofs',
Key : 'CeilingsRoofs'
},
'foundation-floors' : {
Name : 'Foundation & Floor... |
function Site(space, canvas) {
var that = this;
this.elements = {
chat: $('#chat'),
chatBody: $('#chat-body'),
chatInput: $('#chat-input'),
toggleChat: $('#toggle-chat'),
chatBodyInputContainer: $('#chat-body-input-container'),
pixelCount: $('#pixel-count'... |
// adjusting comments section on window resize and window load
window.addEventListener('resize', function (e) {
var adjust = $('.player-wrapper').css('height');
var hd = $('.ser-hd').css('height');
var hdd = $('.bt-heig').css('height');
adjust = parseInt(adjust)-parseInt(hd)-parseInt(hdd);
$('#movie-vid... |
/*
* DataProvider
* https://github.com/Gerdenlink
*
*/
var method = DataProvider.prototype;
var async = require("async");
var _later = require("later");
var path = require ('path'); //para utilizar rutas
var Sources = {
Device : require('./DeviceProvider.js'),
Sensor : require('./SensorProvider.js'... |
import Head from "next/head"; // allows to add elements to head section of webpage
import { useEffect, useState, Fragment } from "react";
import UserList from "../components/users/UserList";
import { MongoClient } from "mongodb"; // if some package is used only in getServerSideProps or getStaticProps, then it will not ... |
var CityListCache = [] ;
var adressArr = [];
var _provid = "";
var _cityid = "";
var _areaid = "";
var _isIE6 = window.VBArray && !window.XMLHttpRequest;
// init Address
function Loadmyaddress(provid,cityid,areaid) {
_provid = provid;
_cityid = cityid;
_areaid = areaid;
if(areaid != null && areaid != ""){
d... |
"use strict";
/**
* Copyright 2016 <NAME>.co.th.
*
* This is pure function action for redux app.
*/
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProper... |
/**
* WooCommerce Quanity buttons add-back
*/
jQuery(
function( $ ) {
if ( typeof js_local_vars.woocommerce_23 !== 'undefined' ) {
var $testProp = $( 'div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)' ).find( 'qty' );
if ( $testProp && $testProp.prop( 'type' ) != '... |
/// <reference path="Errors.js" />
function Transform(array, forLive) {
if (array == null) throw new ArgumentNullError("array", "transform input is required");
if (!(array instanceof Array)) throw new ArgumentTypeError("array", "array", array);
this._array = array;
this.rootInput = array;
if (forLive === true) {... |
// Copyright (C) 2013 - Texas Instruments, <NAME>
//
// This is meant to hold some private functions
//
var fs = require('fs');
var winston = require('winston');
var child_process = require('child_process');
var bone = require('./bone');
var g = require('./constants');
var debug = process.env.DEBUG ? true : false;
var... |
import {utils} from './utils';
import {utilsDom} from './utils-dom';
import {utilsDraw} from './utils-draw';
import {default as d3} from 'd3';
import interpolatePathPoints from './path/interpolators/path-points';
import {getLineInterpolator, getInterpolatorSplineType} from './path/interpolators/interpolators-registry';... |
import { Web3ReactProvider, useWeb3React } from '@web3-react/core';
import React, { useContext, createContext, useState, useEffect, useMemo, useCallback } from 'react';
import { Web3Provider } from '@ethersproject/providers';
import invariant from 'tiny-invariant';
import { formatEther } from '@ethersproject/units';
im... |
$j(document).ready(function() {
"use strict";
$j('.price_slider_wrapper').parents('.widget').addClass('widget_price_filter');
initSelect2();
initAddToCartPlusMinus();
qodeInitProductListMasonryPinterestShortcode();
qodeProductPinterestAddedToCartButton();
qodeProductElegantAddedToCartButton();
... |
// sample.js : シューティングゲーム「EVADE AND DESTROY」(試作版)
//
// See : https://mikkun.github.io/gacco/ga028/study02/
//
// Written by <NAME> <<EMAIL>> / Date : 2018-02-12
"use strict";
var SCREEN_WIDTH = 320,
SCREEN_HEIGHT = 480,
BG_COLOR = "rgb(0, 0, 0)",
FONT_FACE = "bold 12px monospace",
FONT_COLOR = "rgb(2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.