text stringlengths 3.22k 29.5k |
|---|
import React, { useState } from "react";
import { Link } from "react-router-dom";
import SideMenu from "./SideMenu";
import { connect } from "react-redux";
import homeGif from "../../assets/gif/home.gif";
import myFilesGif from "../../assets/gif/myfiles.gif";
import recentFilesGif from "../../assets/gif/recentfiles.gif... |
//
function getOS() {
var OSName = "unknown OS";
if (navigator.appVersion.indexOf("Win") != -1) OSName = "Windows";
if (navigator.appVersion.indexOf("Mac") != -1) OSName = "MacOS";
if (navigator.appVersion.indexOf("X11") != -1) OSName = "UNIX";
if (navigator.appVersion.indexOf("Linux") != -1) OSName = "Linux... |
'use strict';
var inflection = require('inflection');
var util = require('util');
/**
* Clears SQL type escapes (Two quote '' to one quote ') and strips beginning and trailing quotes around string.
* Also escapes result according to JSON standards.
* @param {string} string - Default v... |
/**
* @fileoverview Factory module for WeekView
* @author NHN Ent. FE Development Team <<EMAIL>>
*/
'use strict';
var util = require('tui-code-snippet');
var config = require('../config');
var domutil = require('../common/domutil');
var common = require('../common/common');
var VLayout = require('../common/vlayout'... |
// Required packages: node-fetch, moment
"use strict";
var fs = require("fs");
var fetch = require("node-fetch");
var moment = require('moment');
const ZOTERO_CONFIG = {
"zotId": "2211939", // ID of group or user library to search in Zotero, e.g., 2211939, 2055673
"zotIdType": "group", // group or user
"col... |
// Icon configuration
var blueIcon = new L.icon(default_markers_json);
var redIcon = new L.Icon(selected_markers_json);
// var last_marker = {};
// Array & layer to display the nodes
var devices_layer = new L.layerGroup();
var devices_cluster = new L.MarkerClusterGroup({
// showCoverageOnHover: true,
... |
function caDrawHelper(){
this.version = 0.5;
}
caDrawHelper.prototype.getRect = function(start,end){
if(start < end){
return [start, end-start]
}else{
return [end, start-end]
}
}
caDrawHelper.prototype.forRect = function(start,end){
let [x,width] = this.getRect(start[0],end[0]);
... |
/* global describe, it */
var assert = require('assert')
var bitcoin = require('../../')
var regtestUtils = require('./_regtest')
var regtest = regtestUtils.network
var bip65 = require('bip65')
var alice = bitcoin.ECPair.fromWIF('cScfkGjbzzoeewVWmU2hYPUHeVGJRDdFt7WhmrVVGkxpmPP8BHWe', regtest)
var bob = bitcoin.ECPair... |
'use strict';
var fs = require('fs');
var path = require('path');
var zlib = require('zlib');
var GIT_DIR = '.git';
function changeGitDir(newDirName) {
GIT_DIR = newDirName;
}
function findRepoHandleLinkedWorktree(gitPath) {
var stat = fs.statSync(gitPath);
if (stat.isDirectory()) {
return {
// fo... |
/*jslint node: true */
'use strict';
var db = require('trustnote-pow-common/db/db.js');
var storage = require('trustnote-pow-common/db/storage.js');
var round = require('trustnote-pow-common/pow/round.js');
var gossiper = require('trustnote-pow-common/p2p/gossiper.js');
var moment = require('moment');
var async = requ... |
/*
# Copyright 2015 IBM
#
# 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, sof... |
const holiday = [
{date: '2017-12-30', className: 'xiu', content: '休'},
{date: '2017-12-31', className: 'xiu', content: '休'},
{date: '2018-1-1', className: 'xiu', content: '休'},
{date: '2018-2-15', className: 'xiu', content: '休'},
{date: '2018-2-16', className: 'xiu', content: '休'},
{date: '2018-2-17', clas... |
import Base from './core/Base';
import Texture from './Texture';
import TextureCube from './TextureCube';
import glenum from './core/glenum';
import Cache from './core/Cache';
var KEY_FRAMEBUFFER = 'framebuffer';
var KEY_RENDERBUFFER = 'renderbuffer';
var KEY_RENDERBUFFER_WIDTH = KEY_RENDERBUFFER + '_width';
var KEY_R... |
require('./css/video.css');
var tpl = require('./tpl/video.tpl');
function try_video() {
var video = document.createElement("video");
if (video) return true;
return false;
}
/**
* BizPlayer constructor
*
* @constructor
* @param {Object} [options] 参数
* @param {Object} [options.el] 目标节点
* @param {Boo... |
"use strict"
//
// Parsers for properties that take CSS-style strings as values
//
// -- Font & Variant --------------------------------------------------------------------
// https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant
// https://www.w3.org/TR/css-fonts-3/#font-size-prop
var splitBy = requir... |
'use strict';
const co = require('co');
const path = require('path');
const is = require('is-type-of');
const rimraf = require('rimraf');
const sleep = require('ko-sleep');
const ready = require('get-ready');
const detectPort = require('detect-port');
const debug = require('debug')('egg-mock');
const EventEmitter = re... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ui = require("@sanity/ui");
var _closeIcon = _interopRequireDefault(require("part:@sanity/base/close-icon"));
var _default2 = _interopRequireDefault(require("part:@sanity/components/buttons/default"));
var... |
// Copyright 2015-present Barefoot Networks, 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 l... |
var timer,hover=$(".book_hover_card_wrap");
//封面停1秒后弹出窗
function showbook(obj){
var ts = $(obj);
//设置定时器
timer=setTimeout(function(){
if(ts.find(".book_hover_card_wrap").size()===0){
//获取鼠标停留书籍信息
var html = hover.clone(true);
var intro = ts.find(".bookintro").attr("data-content");
... |
const { config } = require('../config');
function calculatePositionsInCircle(
monomers,
start,
end,
shape,
seqIndex,
originalIndex,
monomerPositionsInsideCircles,
) {
const seqLength = Math.abs(end - start) + 1;
const diameter = (seqLength * config.defaultConnectionLineLength) / Math.PI + config.mono... |
var isPlay = false;
var ip = '';
var address = '';
var browserType = '';
var systemType = '';
var playCount = 0;
var pauseCount = 0;
var fullOnCount = 0;
var fullOffCount = 0;
window.onload=submitUserInfo();
function getBrowserInfo()
{
var agent = navigator.userAgent.toLowerCase() ;
var regStr_ie = /msie [\... |
import "bootstrap";
import "bootstrap/dist/css/bootstrap.min.css";
import "./css/styles.css";
import $ from "jquery";
import { Player } from "./js/player";
import { Game } from "./js/game";
function callAPI(game) {
// Call API, format and display response
fetch(
`https://us-central1-dadsofunny.cloudfunctions.n... |
// ==UserScript==
// @name Libra - Agario YT Public Test Server V.1.4 💡🤵
// @version 1.4 💡
// @match *.agar.io/*
// @grant none
// @run-at document-end
// @namespace www.youtube.com/Libraa
// @Discord www.discord.com/invite/UuVHSZR // Sign in to follow updates and even... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... |
import { app, BrowserWindow, dialog, ipcMain as ipc } from "electron";
import installExtension, {
REACT_DEVELOPER_TOOLS,
} from "electron-devtools-installer";
import { enableLiveReload } from "electron-compile";
import is from "electron-is";
import fs from "fs";
import url from "url";
import sql from "sql.js";
import... |
// Copyright (c) 2018 ml5
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
/* eslint prefer-destructuring: ["error", {AssignmentExpression: {array: false}}] */
/* eslint no-await-in-loop: "off" */
/*
A LSTM Generator: Run inference mode for a pre-trained LSTM.
*/
import * ... |
const path = require('path');
const EventEmitter = require('events');
const Collection = require((require.resolve('discord.js')).split(path.sep).slice(0, -1).join(path.sep) + `${path.sep}util${path.sep}Collection.js`);
/**
* Options required to configure a RoleCall instance. Specifies one message to listen to
* @typ... |
/* jshint -W079 */
// # can/component/component.js
//
// This implements the `Component` which allows you to create widgets
// that use a view, a view-model, and custom tags.
//
// `Component` implements most of it's functionality in the `Component.setup`
// and the `Component.prototype.setup` functions.
//
// `Compone... |
import { __decorate } from "../../../../_snowpack/pkg/tslib.js";
import { LitElement, customElement, html, property, css, } from '../../../../_snowpack/pkg/lit-element.js';
import { ifDefined } from '../../../../_snowpack/pkg/lit-html/directives/if-defined.js';
import { translate, get } from '../../../../_snowpack/pkg/... |
import React, {Component} from 'react';
import {
Avatar,
Box,
Container,
ButtonGroup,
Button,
Card,
CardContent,
TextField,
Checkbox,
InputAdornment,
Table,
TableBody,
TableCell,
TableHead,
TableRow,
Typography,
Dialog,
IconButton,
Slide,
SvgIcon,
DialogTitle,
DialogContent... |
import React, { useState } from "react";
import AsyncLoad from "global/AsyncLoad";
import { entryBackend } from "../../ClientEntry/clientEntry_backend";
import Loader from "global/Loader/Loader";
import SheetComponentPage from "./SheetComponentPage";
import {
Row,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
... |
const electron = require('electron')
const v8Util = process.atomBinding('v8_util')
const {ipcMain, isPromise} = electron
const objectsRegistry = require('./objects-registry')
const bufferUtils = require('../common/buffer-utils')
const hasProp = {}.hasOwnProperty
// The internal properties of Function.
const FUNCTIO... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _rcTrigger = require('rc-trigger');
var _rcTrigger2 = _i... |
/*
Copyright [2016] [Relevance Lab]
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, soft... |
var _ = require('lodash');
var url = require('url');
var read = require('read')
var log = require('npmlog');
var Client = require('bitcore-wallet-client-dash');
var FileStorage = require('./filestorage');
var sjcl = require('sjcl');
var WALLET_ENCRYPTION_OPTS = {
iter: 5000
};
var Utils = function() {};
var die = ... |
export function getTimeDesc(seconds) {
const h = Math.floor(seconds / 3600)
const m = Math.floor((seconds % 3600) / 60)
const s = Math.floor(seconds % 60)
const left_desc = `${h}h${m}m${s}s`
return left_desc
}
export const getDateDelta = (s, e) => {
const yearDelta = e.getFullYear() - s.getFullYear()
con... |
// Copyright 2020 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 './icons.js';
import './emoji_group.js';
import './emoji_group_button.js';
import './emoji_search.js';
import 'chrome://resources/cr_elements/cr_ic... |
///<reference path="../../typings/typescript.d.ts" />
///<reference path="../../typings/node.d.ts" />
///<reference path="../../typings/grunt.d.ts" />
///<reference path="./util.ts" />
///<reference path="../../typings/bluebird.d.ts" />
///<reference path="./task.ts" />
var ts = require("typescript");
var util =... |
var gl_canvas;
var gl_ctx;
var _position;
var _triangleVertexBuffer;
var _triangleFacesBuffer;
var _color;
var _PosMatrix;
var _MovMatrix;
var _ViewMatrix;
var _matrixProjection;
var _matrixMovement;
var _matrixView;
var animation;
var pause_animation; // Wstrzymywanie ruchu obiektu.
var dAngle;
var rotationSpeed = ... |
const build = require("./builder");
const startRouter = require("./router");
const Queue = require("p-queue").default;
const path = require("path");
const fs = require("fs");
const copyDirectory = require("./utils/copyDirectory");
const del = require("del");
const debug = require("debug")("core");
const mkdirp = requir... |
// MAEL PART // // MAEL PART // // MAEL PART // // MAEL PART // // MAEL PART // // MAEL PART //
let actualPage = "home";
let title = document.getElementById('title');
let background = document.getElementById('container');
let fabio = document.getElementById('yamfabio');
let timed = document.getElementById('date... |
"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... |
"use strict";
/** @module path */ /** for typedoc */
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../common/common.d");
var hof_1 = require("../common/hof.d");
var targetState_1 = require("../state/targetState.d");
var pathNode_1 = require("./pathNode.d");
/**
* This class con... |
import React, { PropTypes, Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import InfoSection from '../InfoSection/InfoSection';
import { getCoins } from './HomeReducer';
import DocumentMeta from 'react-document-meta';
import numeral from 'numeral';
import callApi f... |
"use strict";
var NodeBB = require('./lib/nodebb'),
UploadsController = NodeBB.UploadsController,
ControllerHelpers = NodeBB.ControllerHelpers,
Config = require('./lib/config'),
Gallery = require('./lib/gallery'),
async = require('async'),
GroupGallery = {},
app;
GroupGallery.init = function(params, callbac... |
const fs = require("fs");
const action = require("./action.js");
const units = require("./units.js");
const Tile = require("./tile.js");
const Player = require("./player.js");
class Session {
constructor(name, io) {
this.name = name;
this.unitCount = 0;
this.round = 0;
this.units = [];
this.tiles... |
'use strict';
const HSeqTypes = Object.freeze({
0: 'RRT',
1: 'n.a.',
2: 'n.a.',
3: 'TRT',
4: 'RMT',
5: 'TCT',
});
const OrgTypes = Object.freeze({
0x05: 'RPS',
0x06: '1BS',
0x07: '4BS',
0x08: 'HRC',
0x0A: '6DT',
0x0B: 'MDA',
});
const T21Types = Object.freeze({
0: ... |
/*##############################################################################
# HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
#
# 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 Lic... |
/* eslint no-console: 0, class-methods-use-this: 0, no-restricted-syntax: 0 */
const EventEmitter = require("events");
const path = require("path");
const fs = require("fs");
const chromeLauncher = require("chrome-launcher");
const unmirror = require("chrome-unmirror");
const globby = require("globby");
const precinct ... |
import "./Doctor.css";
import doc1 from "../../assets/DocIconV2.png";
import { useHistory } from "react-router";
import edit_pencilIcon from "../../assets/edit_pencil.png";
import submitIcon from "../../assets/submit.png";
import bookedslotIcon from "../../assets/bookedslot.png";
import pharma from "../../assets/pharma... |
var _SOCK_STATE_CLOSED = 0;
var _SOCK_STATE_CONNECTING = 1;
var _SOCK_STATE_CONNECTED = 2;
var _CmdNone = 0;
var _CmdRequest = 1;
var _CmdResponse = 2;
var _CmdNotify = 3;
var _HeaderIndexBodyLenBegin = 0;
var _HeaderIndexBodyLenEnd = 4;
var _HeaderIndexReserved = 4;
var _HeaderIndexCmd = 5;
var _HeaderIndexFlag = 6;... |
var srch_nodes;
var srch_fh;
var srch_fhf;
var srch_depth;
var srch_time;
var srch_start;
var srch_stop;
var srch_best;
var srch_thinking;
function CheckUp() {
if( ($.now()-srch_start) > srch_time ) srch_stop = BOOL.TRUE;
}
function PickNextMove(moveNum) {
var index = 0;
var bestScore = 0;
var... |
"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... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
const node_core_library_1 = require("@microsoft/nod... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _clamp = _interopRequireDefault(require("lodash/clamp"));
var React = _interopRequireWildcard(require("react"));
var _dataGrid = _interopRequireDefault(require("../data-grid/data-grid"));
function _getRequi... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.BookableResourceApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogicalNa... |
const Canvas = require("canvas");
const { CanvasRenderingContext2D } = require('canvas');
const { formatVariable, applyText } = require(`../utils/functions`);
const Util = require("../Utils.js");
let estado = {
online: '#44b37f',
idle: '#faa51b',
offline: '#747f8d',
dnd: '#f04848'
}
module... |
'use strict';
const schema = require('async-validator').default;
const util = require('util');
const databases = require('../databases');
const {
paramRegex,
paramPrefixMap,
MAIN_DB_NAME,
} = require('../common/constants');
const {
specialParamCalculatorMap,
isString,
isEqualStringArrays,
isDevMode,
isD... |
#!/usr/bin / env node
'use strict';
// libs init
var program = require('commander');
var colors = require('colors');
var Q = require('bluebird');
var fs = require('fs-extra');
var path = require('path');
var _ = require('lodash');
var Gauge = require("gauge");
var sharp = require('sharp');
const IMAGE_FORMATS = ['s... |
import React from "react";
import {
View,
Text,
Image,
StyleSheet,
Dimensions,
TouchableOpacity,
TouchableWithoutFeedback
} from "react-native";
import { Entypo, AntDesign } from "@expo/vector-icons";
import { LinearGradient, Font } from "expo";
// import { like,dislike } from '../../../redux/action/like... |
function prettyTime(time) {
var times = time.split(':', 3);
return times[0] + ':' + times[1];
}
function clearForm() {
$(".visitor-firstname").val("");
$(".visitor-lastname").val("");
$(".visitor-document-number").val("");
$(".visitor-phone-number").val("");
$(".visitor-email").val("");
... |
import {encode, encodeSync} from '@loaders.gl/core';
import {GLTFScenegraph, GLTFWriter} from '@loaders.gl/gltf';
import {Tile3DWriter} from '@loaders.gl/3d-tiles';
import {ImageWriter} from '@loaders.gl/images';
import {Matrix4, Vector3} from '@math.gl/core';
const Z_UP_TO_Y_UP_MATRIX = new Matrix4([1, 0, 0, 0, 0, 0,... |
var previewNode = document.querySelector("#template");
previewNode.id = "";
var previewTemplate = previewNode.parentNode.innerHTML;
previewNode.parentNode.removeChild(previewNode);
var app = {};
app.signS3RequestURL = '/sign-upload';
app.S3_BUCKET = 'http://securesend.s3.amazonaws.com/';
app._dropzoneAcceptCallback = ... |
const canvas = document.getElementById("myCanvas");
const context = canvas.getContext("2d");
const btn = document.getElementById("runButton");
const input = document.getElementById("command-input");
const info = document.getElementById("info");
const error = document.getElementById("errorBox");
const dx = canvas.width... |
'use strict';
var work = require('webworkify'),
OpenCtmError = require('./../openctmerror'),
MG2_MAGIC = 0x4832474D,
MG2_VERTEX_MAGIC = 0x54524556,
MG2_GRID_INDEX_MAGIC = 0x58444947,
MG2_INDEX_MAGIC = 0x58444E49,
MG2_NORMAL_MAGIC = 0x4D524F4E,
MG2_UVMAP_MAGIC =... |
const log = require('tinylogger');
const conf = require('../enode.config.js').config;
Buffer.prototype._pointer = 0;
Buffer.prototype.pos = function (pos) {
if (pos === undefined) {
return this._pointer
} else {
this._pointer = pos;
if (this._pointer > this.length) {
this._p... |
import { fromJS } from 'immutable'
import qs from 'qs'
import Api from 'Api'
import { actions as apiActions, API_LOGOUT_SUCCESS, API_MERGEIN_KEY } from 'Api/reducer'
// ------------------------------------
// Constants
// ------------------------------------
export const FORM_LIST_INPUT_CHANGE = 'FORM_LIST_INPUT_CHAN... |
import React, { Component } from 'react';
import styled from 'styled-components';
import * as d3 from 'd3';
import provinces from '../data/china-provinces.json';
// import { fetchPrefecturalCity } from '../utils/api';
import prefectures from '../data/china-prefectural-cities/congregated-data-geo.json';
import { formatN... |
/**
* gulp file 执行compass解析,spm build以及文件合并压缩等
* author: xuqi(<EMAIL>)
* date; 2015/3/27
*/
var gulp = require('gulp'),
fs = require('fs'),
ftp = require('gulp-ftp'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
compass = require('gulp-compass'),
exec = require('child_proce... |
const Applet = imports.ui.applet;
const Main = imports.ui.main;
const St = imports.gi.St;
const { AppletSettings } = imports.ui.settings;
const PopupMenu = imports.ui.popupMenu;
const Lang = imports.lang;
const Gettext = imports.gettext;
const GLib = imports.gi.GLib;
const SignalManager = imports.misc.signalManager;
c... |
export function circleInput(root,widthroot,heightroot,options={}) {
// const {height, width} = root.getBoundingClientRect()
if (!root)
{
console.error("circleInput: root component not found")
return
}
if (!widthroot || !heightroot)
{
console.error("circleInput: size component not found")
re... |
const express = require('express');
const fetch = require('node-fetch');
const apicache = require('apicache');
const cache = apicache.middleware
const app = express();
const bodyParser = require('body-parser');
var lastRec = 0,
query = "";
app.use(express.static('public'));
app.use(bodyParser.urlencoded({ extended... |
export { default as Accessible } from './Accessible'
export { default as AddUser } from './AddUser'
export { default as AlarmClock } from './AlarmClock'
export { default as ArrowDown } from './ArrowDown'
export { default as ArrowUp } from './ArrowUp'
export { default as ArtificialIntelligence } from './ArtificialIntell... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_1 = require("react");
var media_ui_1 = require("@atlaskit/media-ui");
var vid_play_1 = tslib_1.__importDefault(require("@atlaskit/icon/glyph/vid-play... |
var onboard = {};
var current = 0;
var words = [];
if ($('.logged-in').length) {
$('.nav-item.dropdown #navbarDropdown').css('visibility', 'visible');
$('.nav_avatar').css('visibility', 'visible');
}
$('.js-select2').each(function() {
$(this).select2({
minimumResultsForSearch: Infinity
});
});
// removes... |
/*
* collector.js - simple document indexing and search with redis
*
* Example:
*
* Getting an instance
*
* > var collector = require("./collector");
*
* Indexing documents
*
* > collector.indexDocument(1, "I love cats; I love every kind of cat.");
* > collector.indexDocument(2, "Sorry, I'm thinking about ... |
//importScripts("libopus.js");
var _OpusUrl = location.href;
_OpusUrl = _OpusUrl.replace(/\.worker\.js$/, '.js');
importScripts(_OpusUrl);
var handle_ = null;
var encoding_ = false, decoding_ = false;
var in_ = null, out_ = null, out2_ = null, max_packet_size_ = null;
var sampling_ = null, channels_ = null, framesize_ ... |
import React, { Component } from 'react';
import {
Text,
StyleSheet,
View,
TouchableOpacity,
Platform,
TouchableHighlight,
Image,
} from 'react-native';
import Slider from '@react-native-community/slider';
import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles';
import Ex... |
/**
* Copyright (c) 2016 Orange
* 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, s... |
var appHosp = $('#appHosp').val();//varivel constate atribuida no header
//ADICIONA PEDIDO/ ALTERAR CADASTRO
$('#frmModalLogistica').submit(function () {
var valor = $("#valor").text();
var valorCorrigido = $("#valorcorrigido").val();
if(valor != '0,00' || valorCorrigido != ''){
... |
'use strict';
const utils = require('../libs/elife-utils')();
const BarChart = require('./BarChart');
class Metrics {
constructor($el) {
this.$el = $el;
const $charts = utils.buildElement('div', ['charts'], '', this.$el);
const container = utils.buildElement('div', [], 'Loading...', $charts);
con... |
const fs = require("fs");
const path = require("path");
const assert = require('assert').strict;
qx.Class.define("qxl.apiviewer.RequestUtil", {
extend: qx.core.Object,
statics: {
get: function (url, opts) {
return new qx.Promise((resolve, reject) => {
fs.readFile(url, (err, data) => {
i... |
#!/usr/bin/env ts-node
'use strict';
var __importDefault =
(this && this.__importDefault) ||
function (mod) {
return mod && mod.__esModule ? mod : { default: mod };
};
Object.defineProperty(exports, '__esModule', { value: true });
const mongodb_1 = require('mongodb');
const assert_1 = __importDefault(require(... |
const moment = require('moment');
const TradingAnalysis_Beta = require('./analysis');
const Contract_Beta = require('./contract');
const Durations_Beta = require('./duration');
const Price_Beta = require('./price');
const StartDates_Beta = require('./starttime');
const commonTr... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
const glob_all_1 = require("glob-all");
const AutoComplete = require("inquirer-autocomplete-prompt");
const Generator = require("yeoman-generator");
const npm_exists_1 = require("@webpack-cli/utils/npm-exists");... |
$("#form-spidertask-add").validate({
rules : {
taskName : {
required : true,
maxlength : 30,
remote: {
url: ctx + "spider/spidertask/checkTaskNameUnique",
type: "post",
dataType: "json",
data: {
"taskName" : function() {
... |
import EmbarkJS from 'Embark/EmbarkJS';
import TapWalletFactory from 'Embark/contracts/TapWalletFactory';
import TapWallet from 'Embark/contracts/TapWallet';
import { emptyAddress } from '../utils';
export const NEW_WALLET = 'NEW_WALLET';
export const newWallet = () => ({
type: NEW_WALLET,
});
export const ETHEREUM... |
import os from 'os';
import path from 'path';
import { createLogger, readableSize } from '@chialab/rna-logger';
import { getEntryBuildConfig, mergeConfig, readConfigFile, locateConfigFile } from '@chialab/rna-config-loader';
import { assignToResult, createResult, remapResult } from '@chialab/esbuild-rna';
import { buil... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limit... |
var modelist = ace.require('ace/ext/modelist');
function drawUserMarkerFn(name, colorClass) {
return function(html, range, left, top, config) {
var firstRow = config.firstRow;
var lastRow = config.lastRow;
var leftPos = left;
var topPos = top + config.lineHeight;
var el, caret;
el = '<div class="userMar... |
//TODO code quality
var fs = require("fs");
var sqlite3 = require("sqlite3").verbose();
var path = "../dstore/db/dstore.sqlite";
var sipac = new sqlite3.Database(path);
var chunkopts = {};
var json_iati_codes = require("../../dstore/json/iati_codes.json");
var un_agencies_data = require("../../dstore/json/un_agencies_... |
import React, { useEffect, useState, useRef } from "react";
import ReactGA from "react-ga";
import CookieConsent from "react-cookie-consent";
import { SIR_Model } from "model/Model";
import {
AppBar,
Toolbar,
Typography,
Box,
Container,
Grid,
Slider,
Button,
Divider,
FormControlLabel,
Switch,
Li... |
$(function () {
$("#jqGrid").jqGrid({
url: baseURL + 'sys/orderrefund/list',
datatype: "json",
colModel: [
{ label: 'id', hidden: true,name: 'id', index: 'id', width: 50, key: true },
{ label: '订单编号', name: 'orderNo', index: 'order_no', width: 80 },
{ label: '订单名称', name... |
/**
* RichTextBlock Element.
*
* Refer https://github.com/Microsoft/AdaptiveCards/issues/1933
*/
import React from 'react';
import {
StyleSheet,
Text
} from 'react-native';
import { Label } from './';
import {
InputContext,
InputContextConsumer
} from '../../utils/context';
import ElementWrapper ... |
/*
* 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... |
/**
* Copyright 2011 Microsoft Corporation
*
* 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 i... |
const JardiDocs = require('../lib/JardiDocs');
const pjson = require('../package.json');
const assert = require('assert').strict;
const expect = require('chai').expect
const util = require('util')
const TestHelper = require('./TestHelper');
const UNAVAILABLE_ERROR = 'la base de données n\'est pas disponible.';... |
if (!pautonext) var pautonext = !0;
if (!resizePlayer) var resizePlayer = !1;
var light = 0;
var expandPlayer = 0;
if (!miniPlayer) var miniPlayer = !1;
jQuerycookie = {
getItem: function(a) {
return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(a)... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :... |
function checkModel(model) {
var errors = []
var hasElements = true
var hasTextures = true
if (!model.hasOwnProperty('elements')) {
errors.push('Couldn\'t find the "elements" property.')
hasElements = false
}
if (hasElements && model.elements.length < 1) {
errors.push('Couldn\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.