text stringlengths 5.97k 41.2k |
|---|
import React from 'react';
import styled from 'styled-components';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import PropTypes from 'prop-types';
import {withRouter} from 'react-router';
import qs from 'query-string';
import Toggle from 'react-toggle';
import * as actionCreators fro... |
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {injectIntl, intlShape} from 'react-intl';
import {
Keyboard,
InteractionManager,
Platform,
SectionList,
... |
/*
* courseFiles.js
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* Distributed under terms of the MIT license.
*/
/**
* 学生课程文件新版
*/
var courseware = new Object;
var courseSource="0";//课程来源于课堂
var coursewareTreeList;//所有课程结构数据
/**
* 取String 或者 object的长度
*
* */
function count(o){
var t = typeof o;
if(t == ... |
// Basic error messaging
window.onerror = function(msg, url, lineno) {
alert(url + '\n(' + lineno + '): ' + msg);
console.log(url + '\n(' + lineno + '): ' + msg);
};
var FileUtils = {
// Load external assets
LoadFile: function(file, Callback, noCache, isJSON) {
var request = new XMLHttpRequest... |
"use strict";
var _createClass = require('babel-runtime/helpers/create-class')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _Promise = require('babel-runtime/core-js/promise')['default'];
var _regeneratorRuntime = require('babel-runtime/regenerator')['default... |
const { debug, run } = require('../../lib');
const SIDE_TOP = 0;
const SIDE_RIGHT = 1;
const SIDE_BOTTOM = 2;
const SIDE_LEFT = 3;
const SEAMONSTER = ` #
# ## ## ###
# # # # # # `;
const seamonsterChecks = [];
SEAMONSTER.split('\n').forEach((row, rowNum) => {
row.split('').forEach... |
'use strict';
const faker = require('faker')
const poems = [];
const gen_paragraph = () => {
let str = ''
for (let a=0; a<3; a++) {
str += faker.lorem.paragraph(5);
str += '\n\n'
}
return str
}
for (let a=0; a<25;a++) {
const poem = {
body: gen_paragraph(),
title: faker.lorem.sentence(1),
... |
var directionaggregates = {
'horizontal' : ['left', 'right'],
'vertical' : ['up', 'down'],
'moving' : ['up', 'down', 'left', 'right', 'action'],
'orthogonal' : ['up', 'down', 'left', 'right'],
'perpendicular' : ['^','v'],
'parallel' : ['<','>']
};
var relativeDirections = ['^', 'v', '<', '>','horizontal','vertic... |
import 'datatables.net';
import 'datatables.net-dt/css/jquery.dataTables.css';
import 'datatables.net-buttons';
import 'datatables.net-buttons-dt/css/buttons.dataTables.min.css';
import 'datatables.net-buttons/js/buttons.colVis.js'; // Column visibility
import 'datatables.net-buttons/js/buttons.html5.js';
import 'datat... |
'use strict';
const ohm = require('ohm-js');
const fs = require('fs');
const macros = require('./macros');
const contents = fs.readFileSync('grammar.ohm');
const grammar = ohm.grammar(contents);
const semantics = grammar.createSemantics();
const output = [];
const vars = [new Map()];
const labelrefs = new Map();
le... |
const https = require('https');
const fs = require('fs');
const puppeteer = require('puppeteer');
const _ = require('lodash');
const words = [{
"text": "Brochure",
"audio": "brochure.mp3",
"pronunciation": "/ˈbrəʊʃə/"
}, {
"text": "Origin",
"audio": "origin.mp3",
"pronunciation": "/ˈorəʤən/"
}, {
"text":... |
/* global window, Audio */
const getYoutubeId = require('get-youtube-id');
const generateRandomAnimalName = require('random-animal-name-generator');
const youtubeThumbnail = require('youtube-thumbnail');
const Cookies = require('js-cookie');
const tippy = require('tippy.js');
const chime = new Audio('chime.wav');
... |
import { UrlUtil, isDev, isEmptyString } from '../util';
import { config } from '../conf';
import * as Genesis from './type/genesis';
import * as Atari7800 from './type/7800';
import * as Lynx from './type/lynx';
import * as Nes from './type/nes';
let n64Str = UrlUtil.getParam(
window.location.search, "n64");
if (n6... |
// Copyright 2018 Google LLC
//
// 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";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
"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 _createClass = function () { f... |
import {extend,direction,roundRect,extendClass,roundPloyin} from './utils'
/**
* 组件
*/
function Block (setting,text){
this.setting = setting;
this.text = text?text:'';
this.line = Math.floor(this.text.length / this.setting.lineAmount) + 1;
this.components = [];
this.lines = [];
this.width = 20;
this.height = 2... |
/*
* Plot creation screen with validation
*
* expected args: transectID
*/
var args = arguments[0];
var transectID = args.transectID;
// Get the plot name and the transect defaults for stake orientation and plot distance
try {
var db = Ti.Database.open('ltemaDB');
var results = db.execute('SELECT plot_id FROM ... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
"use strict";
const parseJson = require("json-parse-better-errors");
const stringify = require("json-stable-stringify");
const asyncLib = require("neo-async");
const path = require("path");
const {
SyncHook,
SyncBailHook,
A... |
import { AppShell, KPI, Link, PageHeader, PairIcon } from "app/components";
import {
Avatar,
Box,
Grid,
Paper,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
Typography,
makeStyles,
} from "@material-ui/core";
import {
barUserQuery,
blockQuery,
currencyFormatter,
decim... |
import _ from "underscore";
import $ from "jquery";
import { getAppRoot } from "onload/loadConfig";
import { getGalaxyInstance } from "app";
import HISTORY_VIEW_EDIT from "mvc/history/history-view-edit";
import BASE_MVC from "mvc/base-mvc";
import _l from "utils/localization";
// ======================================... |
var Config = require("./config"),
domAdapter = require("./dom_adapter"),
extend = require("./utils/extend").extend,
Class = require("./class"),
Action = require("./action"),
errors = require("./errors"),
coreDataUtils = require("./utils/data"),
commonUtils = require("./utils/common"),
ty... |
let allZones = [
"Pacific/Midway",
"Pacific/Niue",
"Pacific/Pago_Pago",
"Pacific/Honolulu",
"Pacific/Johnston",
"Pacific/Rarotonga",
"Pacific/Tahiti",
"America/Anchorage",
"America/Juneau",
"America/Nome",
"America/Sitka",
"America/Yakutat",
"America/Santa_Isabel",
"America/Dawson",
"America/Los_Angeles",
"America/Tiju... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/**
* Copyright 2018 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/* eslint-env browser */
/* eslint no-invalid-this: "off" */
/* global Phaser cop Trait */
// =============================================================================
// Table object
// -----------------------------------------------------------------------------
const divLog = document.getElementById("divLog");
... |
/*
AWS Streams to Firehose
Copyright 2015 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
U... |
import React, {useEffect, useState} from "react";
import Col from "react-bootstrap/Col";
import Row from "react-bootstrap/Row";
import "./index.css"
import Button from "react-bootstrap/Button";
import {CheckboxItem} from "../FacilityFilterTab";
import {useHistory} from "react-router-dom";
import config from "../../conf... |
const ClubHouseApi = require("clubhouse-api");
const store = require("store");
function isLatinString(s) {
if (s) {
if (
s.match(
/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/
)
) {
return false;
} else {
return true;
}
} else {
return true;
}
}
const Home = {
bef... |
'use strict';
var eventBus = require('ocore/event_bus.js');
angular.module('copayApp.services').factory('go', function($window, $rootScope, $timeout, $location, $state, profileService, fileSystemService, nodeWebkit, notification, gettextCatalog, authService, $deepStateRedirect, $stickyState, configService) {
var roo... |
/*
* Copyright (C) 2007 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
'use strict';
exports.__esModule = true;
var _ObjectRenderer2 = require('../../renderers/webgl/utils/ObjectRenderer');
var _ObjectRenderer3 = _interopRequireDefault(_ObjectRenderer2);
var _WebGLRenderer = require('../../renderers/webgl/WebGLRenderer');
var _WebGLRenderer2 = _interopRequireDefault(_WebGLRenderer);
... |
import React, { Component } from 'react';
import { compose } from 'redux';
import { object, string, bool, number, func, shape } from 'prop-types';
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
import classNames from 'classnames';
import { withRouter } from 'react-router-dom';
import om... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
import fetch from '../wizards/fetch-api-data';
import getModelValues from '../wizards/get-model-values';
import isElementInView from '../utils/is-element-in-view';
import nextStepsView from './next-steps-view';
import numToMoney from '../utils/num-to-money';
import questionsView from './questions-view';
import strToNum... |
/*
Use this class to extend the entryController from your app. It provides you with recurring functionalities across the itgApps platform.
*/
//import { relativeTimeRounding } from "moment";
export default class modUtility {
constructor() {
this.userRole = "All";
this.currentFocus = '';
}
... |
/**
* Copyright 2019 MetaRing s.r.l.
*
* 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 ap... |
/**
* @license Copyright 2019 The Lighthouse 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 required by applica... |
Template.headline.release = function () {
return Meteor.release ? "0.9.1.1" : "(checkout)";
};
Meteor.startup(function () {
// XXX this is broken by the new multi-page layout. Also, it was
// broken before the multi-page layout because it had illegible
// colors. Just turn it off for now. We'll fix it and tur... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
var Object3DUtil = require('geo/Object3DUtil');
var GeometryUtil = require('geo/GeometryUtil');
var FileUtil = require('io/FileUtil');
var _ = require('util/util');
/**
* Export a mesh as PLY
* @param options
* @param options.fs File system to use for exporting (defaults to FileUtil)
* @param [options.format='bina... |
import alt from "alt-instance";
import WalletApi from "api/WalletApi";
import WalletDb from "stores/WalletDb";
import {ChainStore} from "bitsharesjs";
import {Apis} from "bitsharesjs-ws";
import marketUtils from "common/market_utils";
import accountUtils from "common/account_utils";
import Immutable from "immutable";
... |
import * as React from 'react';
import * as PropTypes from 'prop-types';
import {
Image,
ImageFit
} from '@fluentui/react/lib/Image';
import { Link } from '@fluentui/react/lib/Link';
import { Stack, StackItem } from '@fluentui/react/lib/Stack';
import { Text } from '@fluentui/react/lib/Text';
import { UxpColors... |
const yargs_parser = require('yargs-parser');
const moment = require('moment');
class Bot{
constructor(ENV) {
this.ENV = ENV;
}
log(message, type) {
type = type || 'info';
let msg = `[${moment().locale('zh-cn').format('YYYY-MM-DD HH:mm:ss')}][${type.toUpperCase().padSta... |
/*
* Copyright 2017-2020 Elyra Authors
*
* 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 ... |
/*
* 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 ma... |
var algorderContract = undefined;
var algorderWriteContract = undefined;
var createAccountContract = undefined;
$( document ).ready(function() {
$('[data-toggle="tooltip"]').tooltip()
initializeWalletState(function(){
initialize();
});
$( "#accountButton" ).click(function() {
accountTapped();
});
... |
// Currently in sync with Node.js lib/internal/assert/assertion_error.js
// https://github.com/nodejs/node/commit/0817840f775032169ddd70c85ac059f18ffcc81c
'use strict';
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Obj... |
'use strict';
const { Readable, Writable } = require('stream');
const StreamSearch = require('streamsearch');
const {
basename,
convertToUTF8,
getDecoder,
parseContentType,
parseDisposition,
} = require('../utils.js');
const BUF_CRLF = Buffer.from('\r\n');
const BUF_CR = Buffer.from('\r');
const BUF_DASH ... |
import * as d3 from 'd3';
import { kmeans } from './data_process';
import { getActualDim } from './utils';
const show_attr = [
'FGA ',
'FG% ',
'3PA ',
'3P% ',
'FTA ',
'FT% ',
'AST ',
'TOV ',
'PTS ',
'ORtg ',
'ORB ',
'DRB ',
'STL ',
'BLK ',
'PF ',
'DRtg ',
];
let data = null;
let data_fil... |
var sBookItem;
$(document).ready(function(){
if(getCookie("stat") != "success" ){
var username;
$("#login").click(function(){
var username=$("#l_username").val();
var password=$("#password").val();
var inputCheck=false;
if(IsValid(usern... |
let json;
const nodeW = 150, nodeH = 30;
const filePath = "resnet-50-open-exchange.json";
const miniW = window.innerWidth * 0.12
const miniH = (window.innerHeight-85) * 0.98
let rankBT = true
/*hanle import model*/
const handleFileSelect = (evt) => {
// console.info('load a file')
let file = evt.target.files[... |
import React from 'react';
import { Card, Form, Select, Button, message, Row, Col, Input, Table, Radio, DatePicker, TimePicker } from 'antd';
import './index.less';
import { getServiceList, getYxList, getItems, createGiftCodeContent } from '../../api/service';
const FormItem = Form.Item;
const Option = Select.Option;
c... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const Cu = Components.utils;
const Cc = Components.classes;
const Ci = Components.interfaces;
const... |
import React from 'react';
import {Engine, Scene, Texture} from 'react-babylonjs'
import * as BABYLON from 'babylonjs';
import * as LOAD from 'babylonjs-loaders';
import {ButtonColor} from "./Begin";
import Textures from './Textures';
import Ring_Color from './Render_Textures/ring_color.png'
import Ring_Ao from './Rend... |
/* niui by rado.bg */
/* DOM functions via http://youmightnotneedjquery.com */
document.body.dataset.nuiJs = true;
if (!!window["chrome"]) {
document.body.dataset.nuiChrome = true;
}
if (navigator.userAgent.match(/Safari/) && !navigator.userAgent.match(/Chrome/)) {
document.body.dataset.nuiSafari = true;
}
if (na... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const SPECIFICITY = {
type: 1,
not: 1,
oneOf: 1,
anyOf: 1,
if: 1,
enum: 1,
const: 1,
instanceof: 1,
required: 2,
pattern: 2,
patternRequired: 2,
format: 2,
formatMinimum: 2,
formatMaximu... |
//
// 文件管理 模块
//
const LANG_T = antSword['language']['toastr'];
const LANG = antSword['language']['filemanager']['files'];
const clipboard = require('electron').clipboard;
const Terminal = require('../terminal/');
class Files {
// 需要参数
// 1.cell: 左侧layout.cell对象
// 2.manager 主对象(index.jsx)
constructor(cell, ... |
/*
* Copyright(c) 2017 Microsoft Corporation. All rights reserved.
*
* This code is licensed under 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 rest... |
//
// terraform-graph.js
//
// enumerate the various kinds of edges that Blast Radius understands.
// only NORMAL and LAYOUT_SHOWN will show up in the <SVG>, but all four
// will likely appear in the json representation.
var edge_types = {
NORMAL : 1, // what we talk about when we're talking about edges.
... |
function toInt(str) {
try {
var result = parseInt(str)
return Number.isNaN(result)?0:result
} catch(ex) {
return 0
}
}
function convertUnit(data,unit){
unit = unit || "px"
if (!data) {
return 0
} else if (unit === "px") {
return data
} else if(unit ==... |
/**
* Custom Javascript functions added as part of the S3 Framework
* Strings are localised in views/l10n.js
*/
// Global variable to store all of our variables inside
var S3 = Object();
S3.gis = Object();
S3.JSONRequest = Object(); // Used to store and abort JSON requests
S3.TimeoutVar = Object(); // Used to stor... |
//Created by <NAME> All Rights Reserved
// Global Variables
// Map Variables
L.mapbox.accessToken = '<KEY>';
var map_id = "arankhanna.m3ankjj3";
// Map object
var map = null;
// Lines between points drawn on map
var polyline = null;
// Facebooks message data endpoint
var endpoint_url = "https://www.facebook.... |
import RgbaColor from '../rgba-color';
const colorStruct = {
aliceblue: { r: 240, g: 248, b: 255 },
antiquewhite: { r: 250, g: 235, b: 215 },
aqua: { r: 0, g: 255, b: 255 },
aquamarine: { r: 127, g: 255, b: 212 },
azure: { r: 240, g: 255, b: 255 },
beige: { r: 245, g: 245, b: 220 },
bisque: { r: 255, g: ... |
import { html, customElement } from '@bolt/element';
import {
defineContext,
withContext,
define,
props,
containsTagName,
getUniqueId,
whichTransitionEvent,
waitForTransitionEnd,
} from '@bolt/core-v3.x/utils';
import { withLitHtml } from '@bolt/core-v3.x/renderers/renderer-lit-html';
import { smoothScr... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Texture = exports.isTextureData = exports.TextureFilteringType = exports.TextureSourceType = exports.TextureExtensions = exports.TextureVideoExtensions = exports.TextureImageExtensions = void 0;
var tslib_1 = require("tslib");
// impor... |
// Author: <NAME>
// Variables
var NUMBER_OF_TRIALS = 100; // this is per ball. Make sure it's 200 or less.
var BREAK_TIME = 1000; // in ms
// var ALLOWABLE_TIME_DIFFERENCE = 400; // in ms
var BEGINNING_BUFFER_TIME = 5000; // in ms
// Code starts here
var WINDOW_WIDTH = 600;
var WINDOW_HEIGHT = 600;
var BALL_RADIUS =... |
$(document).ready(()=>{
$("form").submit((e)=>{e.preventDefault();});
/**************100 VH NO FUNCIONA BIEN EN MOVIL*****************/
if(window.mobileCheck()){
$("#divBuscar").css("height",window.innerHeight);
$("#divBuscar").css("top",-window.innerHeight-100);
$("#divBusca... |
/*
* File: HomeMaticThermostatAccessory.js
* Project: hap-homematic
* File Created: Wednesday, 25th March 2020 10:01:00 am
* Author: <NAME> (<EMAIL>)
* -----
* The MIT License (MIT)
*
* Copyright (c) <NAME> <<EMAIL>> (https://github.com/thkl)
*
* Permission is hereby granted, free of charge, to any person obt... |
"use strict";
const _ = require("lodash");
const chalk_1 = require("chalk");
const snyk = require("../../../lib");
const config = require("../../../lib/config");
const is_ci_1 = require("../../../lib/is-ci");
const api_token_1 = require("../../../lib/api-token");
const common_1 = require("../../../lib/snyk-test/common"... |
// To Finalize
// <a-entity id="hexbox" hexbox></a-entity>
// To Test
// <a-entity scale="0.01 0.01 0.01" gltf-model="#shock-absorber">
// <a-box scale="300 300 300"material="transparent: true; color: red; opacity: 0.5"></a-box>
// </a-entity>
let sensorRight = 500;
let sensorLeft = 500;
let sensorTop = 500;
let ... |
var vue ;
var table_item_index = 0
$(function(){
vue = new Vue({
el: '#main',
data:{
blockItemList:[], //当前页面解析的block元素
tableBlockList:[],
currentTableBlock:{},
// data_url:"https://dikers-html.s3.cn-northwest-1.amazonaws.com.cn... |
import { m4 } from '../math/m4';
import chroma from 'chroma-js';
import * as twgl from 'twgl.js';
import fragmentShaderSource from './shader/fragment.glsl';
import vertexShaderSource from './shader/vertex.glsl';
const colorVS = `#version 300 es
in vec4 a_position;
uniform mat4 u_projection;
uniform mat4 u_view;
unif... |
// https://github.com/tj/connect-redis
var path = require('path')
var util = require('util')
var parseurl = require('parseurl')
var moment = require('moment')
var _ = require('lodash')
var session = require('express-session')
var RedisStore = require('connect-redis')(session)
var maxmind = require('maxmind')
var uaPars... |
import isEditable from 'dom-element-is-natively-editable';
const CTRL = 1 << 0;
const META = 1 << 1;
const ALT = 1 << 2;
const SHIFT = 1 << 3;
// Key Events
export const KeyEvents = {
DOWN: 1 << 0,
PRESS: 1 << 1,
UP: 1 << 2,
INPUT: 1 << 3
};
KeyEvents.ALL =
KeyEvents.DOWN | KeyEvents.PRESS | KeyEvents.UP | ... |
import React, { Component } from 'react';
import axios from 'axios';
import Socket from './../../../Socket2.js';
import { writeSize, writeNumber, writeSpeed, writeTimespan, capitalizeFirstLetter, formatTime } from './../../../Utils/Util.js';
import SvgImage from './../../Components/SvgImage';
import Button from './..... |
'use strict';
var Chart = require('viz/Chart');
var Util = require('util/Util');
function BarChart(params) {
Chart.call(this, params);
}
BarChart.prototype = Object.create(Chart.prototype);
BarChart.prototype.constructor = BarChart;
BarChart.prototype.__create = function (params) {
var mappedParams = {};
Util... |
// const getLine = () =>
// new Promise(reslv => {
// rlint.question("? ", v => {
// reslv(v);
// });
// });
/*
---- getline()
const readline = require("readline");
readline.emitKeypressEvents(process.stdin);
process.stdin.setRawMode(true);
let linev = oneway();
let getLine = linev.read;
process.stdin.res... |
// Copyright 2014 Globo.com Player 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 { uniqueId, currentScriptUrl } from '../base/utils'
import BaseObject from '../base/base_object'
import Events from '../base/events'
import Br... |
'use strict';
const BuHelper = require('./businessUnit');
const File = require('./file');
const inquirer = require('inquirer');
const MetadataDefinitions = require('./../MetadataTypeDefinitions');
const Util = require('./util');
/**
* CLI helper class
*/
const Cli = {
/**
* used when initially setting up ... |
// Copyright 2008 the V8 project authors. 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 ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var vuePropertyDecorator = require('vue-property-decorator');
var rxjs = require('rxjs');
var operators = require('rxjs/opera... |
var http = require('http'),
express = require('express'),
app = express(),
server = http.createServer(app),
io = require('socket.io').listen(server, { log: false });
require('dotenv').config();
app.use(express.static(__dirname + '/public'));
app.get('/', function(req, res) {
res.sendFile(__dirnam... |
var UTIL = require("modules/util"),
JSON = require("modules/json"),
DOM = require("./util/dom"),
ENCODER = require("insight/encoder/default"),
DECODER = require("insight/decoder/default"),
DOMPLATE_UTIL = exports.DOMPLATE_UTIL = require("domplate/util"),
Q = require("modules/q"),
RESOURCE =... |
//codigo de barra
//codigo de buarra generador
function codigoBarra(){
var marcaOption = marca.options[marca.selectedIndex];
var categoriaOption = categoria.options[categoria.selectedIndex];
$.ajax({
url: base_url+"mantenimiento/productos/getSerie",
type: "POST",
... |
'use strict'
var mongoose = require('mongoose');
var User = require('../model/userSchema');
var express = require('express');
var request = require('request');
var AWS = require('aws-sdk');
AWS.config.region = 'eu-central-1';
AWS.config.accessKeyId='token'
AWS.config.secretAccessKey='token'
var s3 = new AWS.S3();
var f... |
let User
let Users
const SessionID = JSON.parse(window.localStorage.getItem("SessionID"));
function ValidarSession() {
if (SessionID == null) {
Swal.fire({
icon: 'error',
title: 'Faça o login!',
showConfirmButton: false,
timer: 1500,
}).then(res... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _bow... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
var ColorSpace = (function ColorSpaceClosure() {
// Constructor should define this.numComps, this.defaultColor, this.name
function ColorSpace() {
e... |
var Editing_LiNo = -1;
function clearDet() {
$("#EmpNo").data("kendoComboBox").value("");
$("#EmpNm").data("kendoComboBox").value("");
var todayDate = new Date();
$("#FromD").data("kendoDatePicker").value(todayDate);
$("#ToD").data("kendoDatePicker").value(todayDate);
$("#LeaveType").data("k... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v3.3.3
* @link http://www.ag-grid.com/
* @license MIT
*/
var utils_1 = require('../utils');
var renderedRow_1 = require("./renderedRow");
var groupCellRendererFactory_1 = require("../cellRenderers/... |
var StudentIndex = (function() {
var index = {};
var add = function(student, assignment, detector, cluster) {
if(!index[student]) {
index[student] = {};
}
var studentData = index[student];
if(!studentData[assignment]) {
studentData[assignment] = {};
}
var assignData = studentData[assignment];
i... |
var url = hqImport('hqwebapp/js/initial_page_data').reverse;
function ServiceDeliveryDashboardController($rootScope, $scope, $http, $location, $routeParams, $log, DTOptionsBuilder,
DTColumnBuilder, $compile, storageService, userLocationId,
... |
function DDTstartgame(){
window.open("http://ddt.wan.com/server/index.html");
};
DDT_ACTION.getNewServer = "/index/get_new_server";
DDT_ACTION.rank = "/index/get_rank";
D2_Util = {
init : function(){
/* 左边微信start */
$(".weixin-b span").on("click",function(){
$(".weixin-s").show();
$(".weixin-b").h... |
// Axel '0vercl0k' Souchet - 16 October 2018
//
// Walks the IAT of ModuleBase until finding the ImportDescriptor
// for DllName2Find.
//
function FindImportDescriptor(Memory, ModuleBase, DllName2Find) {
// dt ntdll!_IMAGE_DOS_HEADER e_lfanew
// +0x03c e_lfanew : Int4B
const ImgDosHeader_e_lfanew = Memo... |
const electron = require('electron');
const remote = electron.remote;
const Menu = remote.Menu;
const ipcRenderer = electron.ipcRenderer;
const _ = require('lodash');
const _opener = require('opener')
const upath = require('upath');
const fs = require('fs-extra');
var watch = require('node-watch');
global.jQuery =... |
// Licensed under the MIT License
// https://github.com/craigahobbs/schema-markdown-js/blob/main/LICENSE
/** @module lib/schema */
import {typeModel} from './typeModel.js';
import {validateTypeModelTypesErrors} from './schemaUtil.js';
/**
* Get a user type's referenced type model
*
* @param {Object} types - The ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.uploadCsv = exports.downloadCsv = exports.setCollection = exports.setupSystem = undefined;
var setupSystem = exports.setupSystem = function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _cal... |
// ==========================================================================
// Plyr Trim control
// ==========================================================================
import controls from '../../controls';
import { createElement, toggleClass, toggleHidden } from '../../utils/elements';
import { on, triggerEv... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.