text stringlengths 3.22k 29.5k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const E = require("fp-ts/lib/Either");
const Array_1 = require("fp-ts/lib/Array");
const O = require("fp-ts/lib/Option");
const pipeable_1 = require("fp-ts/lib/pipeable");
const R = require("fp-ts/lib/Reader");
const RE = require("fp-ts/lib/Re... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* globals $: true */
var $ = require("jquery");
var strings = require("strings");
var Project = require("../project");
var FileSystemSync = require("../filesystem-sync");
var SyncState = require("../filesystem-sync/state");
var glitch = require("../glitch");
var host;
var TEXT_PUBLISH = strings.get("publishBtn");
v... |
const _ = require('lodash');
const SauceLabs = require('saucelabs').default;
const region = process.env.SAUCE_REGION || 'us-west-1';
const tld = region === 'staging' ? 'net' : 'com';
const api = new SauceLabs({
user: process.env.SAUCE_USERNAME,
key: process.env.SAUCE_ACCESS_KEY,
region,
tld
});
const fs = requ... |
import Dropzone from 'dropzone';
import $ from 'jquery';
import 'materialize-css/dist/js/materialize';
import 'select2';
import Sortable from 'sortablejs';
import SVGInjector from 'svg-injector-2';
import '../scss/dashboard.scss';
var supportsPassive = false;
try {
var opts = Object.defineProperty({}, 'passive', {
... |
const misc = require('cMisc.js');
const player = mp.players.local;
let ped = false;
let ballThrown = false;
//Event to reload anims to stream it
function playerSpawn() {
mp.game.streaming.requestAnimDict("creatures@rottweiler@amb@world_dog_sitting@exit");
mp.game.streaming.requestAnimDict("creatures@rottweile... |
import axios from 'axios'
import React, { useEffect, useState } from 'react'
import { useParams } from 'react-router'
import { Link } from 'react-router-dom';
import { toast, ToastContainer } from 'react-toastify';
import { getUseriD, isUserLogedIn } from '../../Controllers/AuthController';
import { Loading } from '../... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* This file is taken from create-react-app.
* We disabled tty support, removed unessential parts to us and
* added support for `warning... |
function stringify(o) {
return JSON.stringify(o)
}
var DEBUG = true;
var printf = new NativeFunction(Module.getExportByName(null, 'printf'), 'uint32', ['pointer'])
function debug(msg)
{
if (DEBUG)
{
var mem = Memory.allocAnsiString('[bCov_bp]: ' + msg + '\n')
printf(mem)
}
}
function info(msg)
{
var mem = ... |
const localconf = require('../localconf');
const spawn = require('child_process').spawn;
const exec = require('child_process').exec;
const kill = require('tree-kill');
const gpio = require('rpi-gpio');
const WebSocket = require('ws');
const argv = require('yargs')
.option('server', { describe: 'addres of remote serve... |
/**
* EOS UDP Socket client
*
* implements the very low-level UDP interface with the Python UDP server running on the
* raspberry pi
*
*
* Control the Halogen lights with the MESSAGE_HALOGEN and 32 16-bit ints representing the values
* between 0-4095
*
* Control the LED lights with the MESSAGE_LED and 120 byt... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import LoadingScreen from 'react-loading-screen'
import swal from 'sweetalert'
import createHistory from 'history/createBrowserHistory'
import DualListBox from 'react-dual-listbox';
import 're... |
/// <summary>
/// 矢量地图文档资源_以瓦片方式
/// </summary>
import {Zondy} from '../../service/common/Base';
import {newGuid} from '../../service/common/Util';
import TileImage
from 'ol/source/TileImage.js';
import * as ol_extent
from 'ol/extent.js';
import TileGrid
from 'ol/tilegrid/TileGrid.js';
import {inherits} f... |
var _keyBinding_VKCODE = {
' ': 0x20,
'←': 0x25, '↑': 0x26, '→': 0x27, '↓': 0x28,
'0': 0x30, '1': 0x31, '2': 0x32, '3': 0x33, '4': 0x34, '5': 0x35, '6': 0x36, '7': 0x37, '8': 0x38, '9': 0x39,
'a': 0x41, 'b': 0x42, 'c': 0x43, 'd': 0x44, 'e': 0x45, 'f': 0x46, 'g': 0x47, 'h': 0x48,
'i': 0x49, 'j':... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCal... |
import React, { useState } from 'react';
import styled from 'styled-components';
import { apiUrl } from '../../constants/urls';
import { colors } from '../../constants/colors';
import { formatDateTime } from '../../utils/helpers';
import { remove, update } from '../../utils/api';
export const Habit = ({ habit, addOcc... |
const Winston = require('winston');
const ObjectId = require('mongodb').ObjectId;
const deepmerge = require('deepmerge');
const Utils = require('./Utils');
const Schema = require('./Schema');
const Configurations = require('./Configurations');
const Db = require('./DBHandler');
const SensorTypes = require('./SensorTyp... |
const { basename } = require('path')
const R = require('ramda')
const Config = require('./configuration')
const Builder = require('./builder')
const Navigation = require('./navigation')
const Component = require('./component')
const Page = require('./page')
const Interface = require('./interface')
const Connector = req... |
$(function() {
excel();
page();
$('.grade').change(function() {
var arr = $('.grade');
var data = {}
$.each(arr, function(index, array) {
data[index] = $(this).val();
})
layui.use('laypage', function() {
var laypage = layui.laypage;
... |
'use strict'
const Buffer = require('./buffer.js')
const MiniPass = require('minipass')
const Pax = require('./pax.js')
const Header = require('./header.js')
const ReadEntry = require('./read-entry.js')
const fs = require('fs')
const path = require('path')
const types = require('./types.js')
const maxReadSize = 16 * 1... |
var common = {
get_modal: function (title, body_html) {
var modal = $('<div class="modal" style="overflow: auto;" tabindex="-1">\
<div class="modal-dialog">\
<div class="modal-content">\
<div class="modal-header">\
<a type="button" class="close"\
data-dismiss="modal" aria-hidden="true">&time... |
import React from 'react'
import {ModalBody, Form as BootstrapForm, Row, Col, Collapse} from 'reactstrap'
import ReactGA from 'react-ga'
import WithContext from '../utils/context'
import AsModal, {SetModalTitle, ModalFooter} from '../general/Modal'
import Markdown from '../general/Markdown'
import {Money} from '../gene... |
$(document).ready(function () {
//mandatory and field sequence
var mandatoryCheck = new mandatoryFieldMain();
mandatoryCheck.header_id = 'ap_payment_header_id';
mandatoryCheck.mandatoryHeader();
mandatoryCheck.form_area = 'form_header';
mandatoryCheck.mandatory_fields = ["bu_org_id", "ledger_id"];
mandatoryCheck.... |
/**
* Database query result set parser module.
*
* @module x2node-rsparser
* @requires module:x2node-common
* @requires module:x2node-records
* @implements {module:x2node-records.Extension}
*/
'use strict';
const common = require('x2node-common');
const ResultSetParser = require('./lib/result-set-parser.js');
... |
/*
* Minicart
*/
import getConfig from './../utils/getConfig';
import * as cookie from './../utils/cookie';
import request from './../utils/request';
import Module from './../utils/module';
import prop from './../utils/toolbelt/prop';
import {hasClass, addClass, removeClass, formatMoney, smartClick, smartHover, redi... |
//called every so often.
function redraw() {
//draw all nodes first.
if (updateNodeRenders()) {
updateLinkRenders();
updateDisplayData();
}
//update light pos.
Genxyz.Gfx.PointLight.position.copy(Genxyz.Gfx.Camera.position);
Genxyz.Gfx.PointLight.rotation.copy(Genxyz.Gfx.Camera... |
var fs = require('fs');
var path = require('path');
var toml = require('toml');
var graphlib = require('graphlib');
var subProcess = require('./sub-process');
module.exports = {
inspect: inspect,
};
function inspect(root, targetFile, options) {
return Promise.all([
getMetaData(root, targetFile),
getDepen... |
/*! *******************************************************
*
* evolutility-server-node :: utils/database.js
* Methods to create new database from models.
*
* https://github.com/evoluteur/evolutility-server-node
* (c) 2018 <NAME>
********************************************************* */
var pg = require('pg'... |
/******************
* ACTIVITY MODULE
******************/
import { props } from '../../../../base/scripts/base.js';
const ACTIVE_CLASS = 'active';
const Activity = BaseElm => class extends BaseElm {
/* Lifecycle
************/
viewReady() {
super.viewReady && super.viewReady();
if (!this.props.active) return;... |
// NOTE for unit test, use this:
// import { Protocol, AnsonResp, AnsonBody } from '../../node_modules/anclient/lib/protocol.js';
// import { L } from '../../node_modules/anclient/lib/utils/langstr.js';
// for jsample, use
import { Protocol, AnsonResp, AnsonBody } from '@anclient/semantier';
import { L } from '@anclien... |
let { spawn } = require('child_process')
let { readdirSync } = require('fs')
let kill = require('tree-kill')
let { template } = require('../lib')
let { head } = template
const SIG = 'SIGINT'
const arcStart = '__ARC__'
const arcEnd = '__ARC_END__'
const arcMetaStart = '__ARC_META__'
const arcMetaEnd = '__ARC_META_END__'... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.writeEvents = exports.genParams = exports.writeMessages = exports.writeParticipants = exports.streamSingleTxPuml = exports.streamMultiTxsPuml = exports.streamTxPlantUml = void 0;
const stream_1 = require("stream");
const utils_1 = requ... |
/**
* External dependencies
*/
import {
createContext,
useContext,
useReducer,
useRef,
useMemo,
useEffect,
useCallback,
} from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import {
useCheckoutNotices,
useStoreNotices,
useEmitResponse,
usePrevious,
} from '@woocommerce/base-hooks';
/**
* In... |
/*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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";
var ɵngcc0 = require('@angular/core');
var _c0 = ["host"];
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === ... |
function searchHits(searchStr) {
var numResults = 50, // maximum number of results returned, pre-filter options
tfidfThreshold = 0.5, // threshold value to filter out bad matches by
i,
j,
searchArray, // split the searchStr into pieces
searchWord, // word to be passed through stemming process
f... |
import React, { useState, useEffect, useRef, useCallback } from "react";
import PropTypes from "prop-types";
import invariant from "invariant";
import {
filterStyledSystemMarginProps,
filterOutStyledSystemSpacingProps,
} from "../../../style/utils";
import SelectTextbox, {
formInputPropTypes,
} from "../select-t... |
import React, { Component } from 'react';
import {
Button, Form, Layout, Input, Popconfirm, Select, Checkbox,
} from 'antd';
import TableList from '@tableList';
import Drawer from '@components/draw/draw'
import {
fetchWithdraw,
fetchWithdrawAction,
} from '@apis/manage';
import { browserHistory } from 'react-rout... |
/* Common Javascript functions for use throughout StoreSuite */
// Fetch the value of a cookie
function get_cookie(name) {
name = name += "=";
var cookie_start = document.cookie.indexOf(name);
if(cookie_start > -1) {
cookie_start = cookie_start+name.length;
cookie_end = document.cookie.indexOf(';', cookie_start... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
const bcrypt = require('bcryptjs');
const pool = require('../database');
const { transporter } = require('./mailerTransporter');
const helpers = {};
helpers.encryptPassword = async (password) => {
const salt = await bcrypt.genSalt(10);
const hash = await bcrypt.hash(password, salt);
return hash;
};
helper... |
import React, { useContext, useEffect,useState } from 'react';
import MaterialTable from 'material-table';
import { makeStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import { CButton } from '@coreui/react';
import BackContext from '../../../Provider/BackContext';
import ... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Tree, Card, Divider, Modal, Button, message} from "antd";
import URL from "../../../api/config";
// import { connect } from "react-redux";
import "./index.less";
const { TreeNode } = Tree;
class DataAuth extends Component {
state ... |
const express = require('express');
const { ActionRunner } = require('./ActionRunner');
const { WorkspaceHandler } = require('./WorkspaceHandler');
//-------------------------------
//debug
DEBUG_NEXT_REQUEST_ID = 1;
function getTimestamp() {
return new Date().toISOString();
}
//-------------------------------
/... |
import {Tool} from "./tool.js"
import * as utils from "./utils.js"
import "./lib/forceatlas2.min.js"
import "./lib/forceatlas2_worker.min.js"
const DEFAULTS = {
attraction: 0.02, // 0.02
repulsion: 150, // 150
drag: 2, // 2
drag_threshold: 0.01, // speed at which nodes stop moving 0.01
gravi... |
'use strict'
var h = require('hyperscript')
var com = require('../com')
module.exports = function (app) {
var content
if (app.page.param == 'apps') {
content = [
com.panel('Applications', [
'Web applications can detect that you\'re running Scuttlebutt and ask for access. ',
'This is a bet... |
"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 ... |
import React from 'react';
import PropTypes from 'prop-types';
import { Link, graphql } from 'gatsby';
import Layout from '../components/Layout';
import Features from '../components/Features';
import BlogRollEng from '../components/BlogRollEng';
import ControlledCarousel from '../components/ControlledCarousel';
impor... |
'use strict';
const Events = require('events');
const log = require('../../common/log');
const commonUtils = require('../../common/utils');
const diff = require('deep-object-diff').diff;
const _ = require('lodash');
const FLAG_PROXY = 'PROXY';
function genDefaultIp(ipv6) {
if (ipv6) {
return '::';
} else {
... |
const { accounts, contract, web3 } = require('@openzeppelin/test-environment');
const { balance, BN, ether, expectEvent, expectRevert, time } = require('@openzeppelin/test-helpers');
const { assert, expect } = require('chai');
const { getEvents } = require('./helpers');
const Configurator = contract.fromArtifact('Conf... |
const Net = require('net');
const {FFmpegSession, PushServerInfo} = require("./ffmpeg/ffmpeg_session");
const {EventHandler, Event, EventItem, EventsCache} = require("./event_handler");
const {RtmpRelayEvents, RtmpServerEvents, RtmpSessionEvents, FFmpegEvents} = require("./events");
const {RtmpRelaySession} = require("... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Button,
Dropdown,
Menu,
InputNumber,
DatePicker,
Modal,
message,
Badge,
Divider,
Steps,
Radio,
Checkbox,
Tree,
}... |
import {
on,
off,
css,
throttle,
cancelThrottle,
scrollBy,
getParentAutoScrollElement,
expando,
getRect,
getWindowScrollingElement
} from '../../src/utils.ts';
import Sortable from '../../src/Sortable.js';
import { Edge, IE11OrLess, Safari } from '../../src/BrowserInfo.js';
let autoScrolls = [],
scrollEl,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.dexieQuery = void 0;
exports.getDexieKeyRange = getDexieKeyRange;
exports.getPouchQueryPlan = getPouchQueryPlan;
var _rxSchema = require("../../../rx-schema");
var _util = require("../../../util");
var _pouchdb = require("../../p... |
import React, {PureComponent} from 'react';
import {
Modal ,
Form,
message
} from 'antd';
import AddPointForm from './addOrEditPoint';
import uuid from 'uuid/v4'
const FormItem = Form.Item;
export default class MapData extends PureComponent {
constructor(props) {
super(props);
this.BMapLib = window.BM... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { Grid, Typography, Box } from '@material-ui/core';
import { Warning } from '@utils/error';
import { store, dispatcher, Actions, Events } from '@store';
import { SWAP_TYPE, TYPE } ... |
/*
* Copyright 2015-2018 Klarna Bank AB
*
* 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 a... |
import React from 'react';
import get from 'lodash/get';
import set from 'lodash/set';
import warning from 'warning';
import { getOptionList } from '../reducers';
import Field from '../components/record/Field';
import { DATA_TYPE_STRUCTURED_DATE } from '../constants/dataTypes';
import { formatExtensionFieldName } from ... |
/**
Original DatePicker from <NAME> -- http://www.nsftools.com
*/
var datePickerDivID="datepicker";
var iFrameDivID="datepickeriframe";
var defaultDateSep="/";
var dateSep=defaultDateSep;
var dateFormat=defaultDateFormat;
function ShowDatePicker(fldName, belowThis, dtFormat, dtSep){
var tDateFld=document.getElements... |
var GRASS = "../shared_assets/images/grass.png",
ROCK = "../shared_assets/images/rock.png",
SAND = "../shared_assets/images/sand.png",
WATER = "../shared_assets/images/water.png",
DECK = "../shared_assets/images/deck.png",
CODE_KEY = "Pacman code",
env = new Primrose.BrowserEnvironment({
backgroundColo... |
/*
Copyright 2015 <NAME>, <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... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import { findDOMNode } from 'react-dom';
import { hot } from 'react-hot-loader';
import screenfull from 'screenfull';
import ReactPlayer from 'react-player';
import { FontAwesomeIcon } from '@f... |
'use strict';
// ------------------------
// --- Global Variables ---
// ------------------------
const countDownSectionId = document.getElementById('quarantine-countdown-section');
const quarantineFormSectionId = document.getElementById('quarantine-form-section');
const quarantineDaysFormId = document.getElementById('... |
'use strict';
var srlog = SIREPO.srlog;
var srdbg = SIREPO.srdbg;
SIREPO.PLOTTING_SUMMED_LINEOUTS = true;
SIREPO.app.config(function() {
if (SIREPO.IS_LOGGED_OUT) {
return;
}
SIREPO.addRoutes(SIREPO.APP_SCHEMA.localRoutes);
});
SIREPO.app.controller('HellwegLatticeController', function (appState... |
/**
Python Parameters
-----------------
{svg_id} : str
SVG elemnt's ID.
{svg_width} : int
Width of SVG area.
{svg_height} : int
Height of SVG area.
{helper_func_get_max_width} : str
A string of helper functions to get the maximum width of elements.
{basic_margin} : int
Basic margin value... |
const Process = require("child_process");
const FFmpegStatic = require("ffmpeg-static");
const {sync: mkdirp} = require('mkdirp');
async function startRecordingExternal() {
// Return a Promise that can be awaited
let resolve;
const promise = new Promise((res, _rej) => {
resolve = res;
});
// Countdown... |
'use strict';
var fs = require('fs');
var crypto = require('crypto');
var EventEmitter = require('events').EventEmitter;
var inherits = require('util').inherits;
var thr = require('format-throw');
var _ = require('lodash');
var fontkit = require('fontkit');
var SVGPath = require('svgpath');
var compressPath = require(... |
/**
* Copyright 2015, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const assign = require('object-assign');
const {UrlParams} = require("../utils/PermaLinkUtils");
const LayerUtils =... |
import React, { useEffect, useState } from 'react'
import Swal from 'sweetalert2'
import Input from '@material-tailwind/react/Input'
import Icon from '@material-tailwind/react/Icon'
import Dropdown from '@material-tailwind/react/Dropdown'
import DropdownItem from '@material-tailwind/react/DropdownItem'
import '../../..... |
import $ from '../vendor/jquery-3.2.1.min';
import config from './_config';
const [apiKey, url] = [config.wKey, config.url];
const storage = chrome.storage.local;
const skycons = new Skycons({ // weather icons
color: '#e0e0f8',
resizeClear: true,
});
const wForecast = []; // All weather data
let today; // Weat... |
import {eventMap} from '@testing-library/dom/dist/event-map'
// this is pretty helpful:
// https://codesandbox.io/s/quizzical-worker-eo909
// all of the stuff below is complex magic that makes the simpler tests work
// sorrynotsorry...
const unstringSnapshotSerializer = {
test: val => val && val.hasOwnProperty('sna... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.InternalDropdownItem = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var React = _interopRequireWildcard(require("react"));
var _reactStyles = require("@patternfly/react-styles");
var _dropdownConstants... |
import React, { useEffect, useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardCon... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router-dom'
import {
withStyles,
Paper,
Grid,
Typography,
Checkbox,
Switch,
Menu,
MenuItem,
Button
} from '@material-ui/core'
import LanguageIcon from '@material-ui/icons/Language'
import { ... |
import React, { useEffect, useRef, useState } from 'react'
import '../../styles/gestioneChat/chatCSS.css'
import axios from 'axios'
import { Button } from 'react-bootstrap'
import paperPlane from '../../assets/paperPlane.png'
import chatButton from '../../assets/chatButton.svg'
import closeButton from '../../assets/clo... |
$(document).ready(function() {
initAddOrderFundField();
initAddOrderDateField();
initAllOrdersTable();
initAllOrdersCards();
addOrderUpdateCallback(refreshAllOrdersTable);
addOrderUpdateCallback(refreshAllOrdersCards);
initEvents();
});
function initEvents() {
$('#clearAllOrders').on('c... |
const Joi = require('joi');
const Paymentschedule = require('../models/paymentschedule.model');
const Paymentscheduleview = require('../views/paymentschedule.view');
import roundTo from 'round-to';
import async from "async";
const moment = require('moment');
const paymentscheduleSchema = Joi.object({
memberid: Joi.s... |
import Component from 'nanocomponent'
import html from 'nanohtml'
import {
BlipTag,
defaultTagBackground,
} from '../blipTag'
import { BlipSelect } from '../blipSelect'
import { EventEmitter } from '@lib/eventEmitter'
import {
last,
guid,
} from '@lib/utils'
import { TagOption } from './TagOption'
import { co... |
'use strict';
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var gCheerio = require('gulp-cheerio');
var ngHtml2js = require('gulp-ng-html2js');
var ngAnnotate = require('gulp-ng-annotate');
var htmlmin = require('gulp-html... |
var CORE_SERVICES = URL_CONNECTIONS.core;
$(document).ready(function () {
selectMenuItem(5);
$(".btn_edit_promotion").click(function () {
var promotion_id = $(this).attr("data-id");
get_promotion_data_and_show_profile(promotion_id);
});
$(".btn_enable_promotion").click(func... |
/**
* Kingyobachi, <NAME>
*
* Final Presentation (Intro to Creative Computing)
* © 2019 All Rights Reserved
*/
/* Define constants */
const BACKGROUND_COLOR = 0
const FRAME_RATE = 45
const FISH = []
const NUM_DOTS = 100
const NUM_FISH = 7
const FISH_SIZE = 20
/* Setup canvas */
function setup() {
createCanvas(... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DebugPanel = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var _ = require("lodash");
var DebugPanelItem_1 = require("./DebugPanelItem");
var utils_1 = require("./utils");
var DebugComponentViewer_1 = require(".... |
/*
* BGPlay.js
* Copyright (c) 2013 <NAME>, <NAME>, <NAME>, Roma Tre University and RIPE NCC
* http://www.bgplayjs.com
*
* See the file LICENSE.txt for copying permission.
*/
window.currentUrl = document.location.search;
window.isMobile;
window.templateCache = window.templateCache || {};
function ge... |
const VOID_TAGS = 'img,br,hr,input,area,col,command,embed,keygen,link,meta,param,source,track,wbr,base,circle,path,!doctype'.split(','),
BLACKLIST = 'title,meta,script,input,textarea,button,link,base,style,frame,frameset,noscript,canvas,applet,audio,video,select'.split(','),
RM_TAG_ONLY = 'html,head,body,!do... |
"use strict";
/*-- Configuration --*/
var CHARACTER_SETS = [
[true, "Số", "0123456789"],
[true, "Ký tự thường", "abcdefghijklmnopqrstuvwxyz"],
[false, "Ký tự viết hoa", "ABCDEFGHIJKLMNOPQRSTUVWXYZ"],
[false, "Ký tự đặc biệt (ASCII)", "!\"#$%" + String.fromCharCode(38) + "'()*+,-./:;" + String.fromCharCode(60) + "... |
import Head from "next/head";
import { useState } from "react";
import { CopyToClipboard } from "react-copy-to-clipboard";
import { SelectorIcon, DuplicateIcon } from "@heroicons/react/outline";
import toast, { Toaster } from "react-hot-toast";
let host = "";
if (typeof window !== "undefined") {
host = window.locati... |
/**
* This file contains logic to grayscale a PNG from a ReadableStream.
*/
/**
* Remove Paeth filter from three data points.
*/
function paeth(a, b, c) {
const p = a + b - c;
const pa = Math.abs(p - a);
const pb = Math.abs(p - b);
const pc = Math.abs(p - c);
if (pa <= pb && pa <= pc) retur... |
// test exp
var assert = require('assert');
var approx = require('../../../tools/approx');
var math = require('../../../index');
var mathPredictable = math.create({predictable: true});
var complex = math.complex;
var matrix = math.matrix;
var unit = math.unit;
var range = math.range;
var log10 = math.log10;
describe('... |
const { provider } = require('@openzeppelin/test-environment');
const chai = require('chai');
const ethers = require('ethers');
// umbra-js components
const KeyPair = require('../classes/KeyPair');
const RandomNumber = require('../classes/RandomNumber');
const utils = require('../utils/utils');
const { expect } = cha... |
import React, { useState, Fragment } from "react";
import { Parallax, Background } from "react-parallax";
import ScrollToTop from 'react-scroll-up';
import { FiChevronUp } from "react-icons/fi";
import Header from "../components/header/Header";
import Footer from "../components/footer/Footer";
import { PortfolioList, D... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// array
var contains_1 = require("./contains");
exports.contains = contains_1.default;
exports.includes = contains_1.default;
var difference_1 = require("./difference");
exports.difference = difference_1.default;
var find_1 = require("./find"... |
import { common } from './common.js';
/**
* 初期値のエントリーフォームを作成
*/
(function initElement() {
for (let i = 0; i < 12; i++) {
const newEntryDiv = document.createElement("div");
const newEntry = document.createElement("input");
const killRate = document.createElement("input");
const teamMate = ... |
/**
* mhtml2html
*
* @Author : <NAME>
* @Date : 2016-09-05
* @Description : Converts mhtml to html.
*
* Licensed under the MIT License
* Copyright(c) 2016 <NAME>
**/
const QuotedPrintable = require('quoted-printable');
const Base64 = require('base-64');
// Asserts a condition.
function assert(condition, er... |
const get_params = require('../common/url').get_params;
const compareBigUnsignedInt = require('../common/utility').compareBigUnsignedInt;
const getOffset = require('../common/utility').getOffset;
const template = require('../common/utility').template;
const Validation = (() => {
... |
"use strict";
/******************************************************************************
*
* Levenshtein prefix distance.
*
* Given sequences a and b, compute the minimum Levenshtein distance match
* between b and a prefix of a.
*
* This algorithm is intended to be used to evaluate potential partial matches... |
var camera, scene, renderer, geometry, material, mesh, controls, raycaster;
var keys = [],
objects = [],
collidableMeshList = [],
worldChunks = [];
var controlsEnabled = false,
canJump = false;
var velocity = new THREE.Vector3(),
mouse = new THREE.Vector2(),
raycaster2 = new THREE.Raycaster(),
loader =... |
const assert = require('assert')
const { getCount, sendCount, calcCount, PartialReadError } = require('../utils')
module.exports = {
varint: [readVarInt, writeVarInt, sizeOfVarInt, require('../../ProtoDef/schemas/utils.json').varint],
bool: [readBool, writeBool, 1, require('../../ProtoDef/schemas/utils.json').boo... |
/**
* Created by YD on 2020/6/14.
*/
import React, {Component} from "react";
import {connect} from "react-redux";
import userModel from "store/reducers/user";
import {Descriptions, Card, Row, Col} from 'antd'
import PageTitle from '../../../components/account/page-title'
import BaseInfo from '../../../components/acco... |
let canvas
let PROJECTS_ARRAY
let PROJECTS_SCHEMA
let SCHEMAS_BY_PROJECT = new Map()
/* New Root object*/
let UI = {
projects: {}
}
/* User Interface Colors */
const UI_COLOR = {
DARK: "48, 48, 54",
LIGHT: "234, 226, 222",
GREY: "150, 150, 150",
LIGHT_GREY: "247, 247, 247",
WHITE: "255, 25... |
/**
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"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.