text stringlengths 3.22k 29.5k |
|---|
import { treeMatchUps } from '../../drawEngine/generators/eliminationTree';
import { getStageDrawPositionsCount } from '../../drawEngine/getters/stageGetter';
import { structureTemplate } from '../../drawEngine/generators/structureTemplate';
import { generateRange, nextPowerOf2, UUID } from '../../utilities';
import { ... |
const DEFAULT_CAPACITY = 5;
const NOT_FOUND = -1;
function ArrayList(other) {
this.theItems;
this.theSize;
this.modCount = 0;
this.capacity = DEFAULT_CAPACITY;
this.clear();
if (!other)
return;
if (other.constructor === Array) {
for (var i = 0; i < other.length; i++)
... |
import React, {useRef, useState, useEffect} from 'react';
import {View,Text,TextInput,StyleSheet,ScrollView,Image,StatusBar,Dimensions,Touchable,FlatList,Platform,SafeAreaView} from 'react-native';
import {TouchableOpacity} from 'react-native-gesture-handler';
import images from '../../res/images';
import axios from 'a... |
import * as THREE from "three";
import Skybox from "./Skybox";
import PlayerController from "./PlayerController.js";
import Physics from "./lib/Physics.js";
import Constants from "./Constants.js";
import state from "./State";
import MonsterManager from "./MonsterManager";
import Player from "./Player";
import SceneLoad... |
/**
* @license
* Copyright 2016 Cluster Labs, 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 applicab... |
import deepEqual from 'fast-deep-equal';
import {createAxiosConfig} from './utils';
import {API_REQUEST_TYPE, API_CANCEL_TYPE, SEND_LATEST, DEBOUNCE, IGNORE, SEND_ALL} from './types';
import {
createRequest,
cancelRequest,
completeRequest,
resetRequests,
getSavedRequest,
getRequestCount,
saveRequest,
ge... |
// -------------------------------------------
// Added Automatically During Library Upgrade.
// Convenience Declarations For Dependencies.
// 'Core' Is Configured In Libraries Section.
// -------------------------------------------
//var Debug = Core.Debug;
var Mesh3D = Core.Mesh3D;
var Path2D = Core.Path2D;
//var Plu... |
var $ = require("common:widget/ui/jquery/jquery.js");
var UT = require("common:widget/ui/ut/ut.js");
var Helper = require("common:widget/ui/helper/helper.js");
var WINDOW = $(window);
var BODY = $(document.body);
/*
* 换肤插件
* loadTime:
1. "" - 默认值,即刻加载
2. 数字 - 延迟加载,毫秒数
* recommandSkin:设置推荐皮肤
* data:
key为皮肤关键... |
/**
* Notes a details about a storage adapter failure within the file record
* @param {string} storeName
* @param {number} maxTries
* @return {undefined}
* @todo deprecate this
*/
FS.File.prototype.logCopyFailure = function(storeName, maxTries) {
var self = this;
// hasStored will update from the fileRecord
... |
import React, { Component } from 'react';
import { Animated, View, Image, StyleSheet, TouchableWithoutFeedback, Text, ScrollView, FlatList } from 'react-native';
import { Avatar, Card, Paragraph, Badge, Appbar, Title, Button as ButPaper, List, IconButton} from 'react-native-paper';
// import { Avatar } from 'react-nati... |
// Input Version 1.2.130825
// usage:
// local input = Input:New(glwidget)
// input:setMouseSensitivityX( .05 ) // defaults to .05
// input:setMouseSensitivityY( .05 ) // defaults to .05
// inside of a timing.every function
// Camera:moveForward( input:W() * elapsed );
// Camera:yawLeft( input:LeftMouseButton() * inpu... |
import React from "react";
import { Redirect } from "react-router-dom";
import { connect } from "react-redux";
import { web3Actions } from "../../actions"
import InfiniteScroll from 'react-infinite-scroll-component'
class Index extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
import {Lexer, creat... |
import React, {Component} from "react";
import Axios from 'axios';
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// core components
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Table from "components/Tab... |
var EventEmitter = require('../util/eventemitter'),
Crypto = require('../util/crypto'),
globals = require('../globals.js'),
KBucket = require('./kbucket'),
Peer = require('./peer'),
PeerArray = require('../util/peerarray'),
log ... |
// ==UserScript==
// @name UTS Timetable Generator
// @author szdc
// @namespace http://github.com/szdc
// @version 0.1
// @description Timetable generator for UTS students
// @match https://mysubjects.uts.edu.au/aplus2015/aptimetable*
// @require http://ajax.googleapis.com/ajax/libs/... |
import * as THREE from "three";
// TODO: OrbitControls import three.js on its own, so the webpack bundle includes three.js twice!
import OrbitControls from "orbit-controls-es6";
import * as Detector from "./vendor/Detector";
import * as DAT from "./vendor/dat.gui.min";
import * as checkerboard from "../textures/checker... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Button, Modal } from 'antd';
import { throttle } from 'lodash';
import BodyContainer from '../../containers/Story/BodyContainer';
import TagsSelector fro... |
/**
* Created by jun on 15/11/23.
*/
var perpage = 20;
var maxSeconds;
$(function() {
var cid = getCid();
var page = getPage();
$.getJsonp(apiBaseUrl+'/product/catlist','',function(json) {
createCateListHtml(json);
sortListSelect();
});
var url = apiBaseUrl+'/period/list';
v... |
import React, { useState, useEffect } from 'react';
import { filter } from 'lodash';
import { Icon } from '@iconify/react';
import { sentenceCase } from 'change-case';
import plusFill from '@iconify/icons-eva/plus-fill';
import { Link as RouterLink } from 'react-router-dom';
// material
import {
Card,
Table,
Stac... |
import Base from '../base'
import tpl from './index.html'
import style from './index.less'
import {
transformRGB2Hex,
} from '../../utils/tool'
const template = document.createElement('template')
template.innerHTML = `<style>${style}</style>${tpl}`
export default class WxTextarea extends Base {
constructor() ... |
$(function(){
//导航下拉
//$('#nav li').eq(0).addClass('hover active');
var slide = false;
$('#nav li').hover(function() {
var _S = $(this);
if(_S.find('> dl').css('display') == "none"){
_S.find('> dl').slideDown(200);
slide = true;
_S.addClass('active');
}
_S.addClass('on');
}, function(... |
/*
* (C) Copyright 2017 TheOtherP (<EMAIL>)
*
* 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... |
'use strict'
const uuid = require('uuid/v4')
const archy = require('archy')
const libCoverage = require('istanbul-lib-coverage')
const {dirname, resolve} = require('path')
const {promisify} = require('util')
/* Shallow clone so we can promisify in-place */
const fs = { ...require('fs') }
const {spawn} = require('cross-... |
require("dotenv").config();
const parseArgs = require("minimist");
const moment = require("moment");
const { findFlats } = require("./flats");
const telegramApi = require("./telegramApi");
const DEFAULT_CONFIG = {
chatId: `${process.env.TELEGRAM_CHAT_ID}`,
priceMin: 1,
priceMax: 2300000,
currency: "usd",
n... |
'use strict';
var Expression = (function() {
var isFunction = function(string) {
if (!string) {
return false;
}
var regex = /^([\w\d.]+)[ ]*\(([\w\d, .]*)\)$/;
var match = string.trim().match(regex);
if (match === null) {
return false;
};
... |
//Global constants
const cluePauseTime = 333; //how long to pause in between clues
const nextClueWaitTime = 1000; //how long to wait before starting playback of the clue sequence
//Global variables
var pattern = [];
var patternLen = 5;
var progress = 0;
var gamePlaying = false;
var tonePlaying = false;
var clueHoldTim... |
/*
* *******************************************************************************************
* @author: <NAME> (Kyri123)
* @copyright Copyright (c) 2020, <NAME>
* @license MIT License (LICENSE or https://github.com/Kyri123/KAdmin-ArkWIN/blob/main/LICENSE)
* Github: https://github.com/Kyri123/KAdmin-ArkWIN
* ... |
const discord = require("discord.js")
const { Client, Intents, Collection } = require('discord.js');
// const client = new discord.Client()
config = require("./config.json")
const fs = require("fs")
const allIntents = new Intents(32509);
allIntents.add(Intents.FLAGS.GUILD_PRESENCES, Intents.FLAGS.GUILD_MEMBERS);
con... |
/*
* Copyright 2012 Aarhus University
*
* 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 agre... |
import React from "react";
import styled, { css } from "styled-components";
import { Row, Col, Container, ButtonGroup } from "react-bootstrap";
import Head from "next/head";
import CourseBar from "@app/ondrejsika-theme/components/CourseBar";
import ondrej_chair from "@app/data/pictures/landing-page/tinipng/ondrej_chai... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-8f9a8751.js');
var createComponent = require('reakit-system/createComponent');
var createHook = require('reakit-system/createHook');
require('reakit-utils/shallowEqual');
... |
$(document).ready(function () {
var id_bln = $('#bln_pd').val()
var unit = $('#unit_pd').val()
show_pd(id_bln, unit)
grafik_pd()
$('#bln_pd').change(function () {
var id_bln = $(this).val();
var unit = $('#unit_pd').val()
swal({
title: 'Menampilkan Data ' + GetM... |
import {crearAttrEvent} from "app/utils/misc.js";
import * as iface from "app/interface/index.js";
import ORS from "app/ors";
/**
* Carga el mapa y crea la capa de cluster donde se agregan los centros.
* @this {MapAdjOfer.prototype} El objeto que implemnta el mapa
* @private
*/
function load() {
const options ... |
/**
* @fileoverview Disallow unused properties, data and computed properties.
* @author Learning Equality
*/
'use strict'
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const utils =... |
'use strict'
/*Globals*/
const productNames = ['bag', 'banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair', 'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors', 'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can', 'wine-glass']
const maxClicks = 26;
let totalClicks = 1;
// set these at... |
import React, { Fragment } from 'react';
import _ from 'lodash';
import { Form, Button, Select } from 'antd';
import CustomFormItem from '../../components/Form/CustomFormItem';
const { Option } = Select;
const FormItem = ({ children }) => {
return <CustomFormItem style={{ marginRight: '10px' }}>{children}</CustomFo... |
var Entity = function(x, y, radius, color){
this.x = x;
this.y = y;
this.r = radius;
this.col = color;
this.onTick = function(dt){};
this.onClick = function(x, y, btn){};
this.onMouse = function(x, y, btn){};
this.render = function(ctx){
ctx.beginPath();
ctx.fillStyle = this... |
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __())... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
var iconUrl= 'http://localhost/support/assets/images/icons/warning.png';
var successiconUrl= 'http://localhost/support/assets/images/icons/success.png';
var confirmiconUrl= 'http://localhost/support/assets/images/icons/verify.png';
$(document).ready(function(){
$(".datepicker").datepicker({... |
'use strict';
const name = 'Hidden Type';
const description = '__The theme that won our April 2015\'s NBT!__ Game rules: http://survivor-ps.weebly.com/hidden-type.html';
const id = Tools.toId(name);
class HT extends Games.Game {
constructor(room) {
super(room);
this.name = name;
this.description = descripti... |
/*var chartColors = [
'rgb(54, 162, 235)', //blue
'rgb(54, 162, 235)', //blue
'rgb(54, 162, 235)', //blue
'rgb(54, 162, 235)', //blue
'rgb(54, 162, 235)', //blue
'rgb(54, 162, 235)', //blue
'rgb(255, 99, 132)', //red
'rgb(255, 99, 132)', //red
'rgb(255, 99, 132)', //red
'rgb(255, 99, 132)', //red
... |
var page_id = 0;
var page_controller = 'core';
var current_pallette = null;
$(function() {
$('#cp-widgets-select-template select').on('change', function (){
window.location.href = $('#cp-widgets-select-template').data('current_url')+'?template_name='+$(this).val();
});
current_pallette = false;
... |
const vscode = require('vscode');
const { time, info } = require('console');
const fs = require('fs');
const { exit } = require('process');
const path = require('path');
const { FILE } = require('dns');
module.exports=async ()=>{
// The code you place here will be executed every time your command is executed
... |
import React, { Component, useState, useEffect } from "react";
import { Link } from "react-router-dom";
import Customer from "../Customer/Customer";
import { defaultRouteLink } from "../../common/config";
import TreeView from "@material-ui/lab/TreeView";
import ExpandMoreIcon from "@material-ui/icons/ExpandMore";
impor... |
/* gnuplotter
* this project is a fork of <NAME>'s 'node-plotter'
*
*/
const exec = require('child_process').exec;
const _ = require('underscore');
/*
* Performs a n-point moving average on array.
*/
function moving_average(array, n) {
var nums = [];
Object.keys(array).forEach(function(i) {
/* If this it... |
var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
* base64编码
* @param {Object} str
*/
function base64encode(str){
var out, i, len;
var c1, c2, c3;
len = str.length;
i = 0;
out = "";
while (i < len) {
c1 = str.cha... |
import fs from 'fs'
import { execSync } from 'child_process'
import semver from 'semver'
import open from 'opener'
import 'colors'
import replace from 'replace-in-file'
import pkg from '../package.json'
/* eslint-disable no-console */
export const spinner = ['⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷']
export const releas... |
//定义是框架菜单
var Globa_IsCPMenuFrame = "true";
//JavaScript代码区域
layui.use('element', function () {
var element = layui.element;
});
//获取本页面里通过layer产生弹出层的iframe
function CPGetContextFrame() {
return document.getElementById("CPFrameMenu").contentWindow;
}
//设定左侧菜单滚动条
function CPFrameSetModuleScroll()
{
$(".gdt... |
// Stocks.js
///////////////////////////////////////////
///////////////////////////////////////////
// Fade-in effect (jQuery)
const speed = "fast";
$("html, body").hide();
$(document).ready(function () {
$("html, body").fadeIn(speed, function () {
$("a[href], button[href]").click(function (event) ... |
const fs = require('fs');
const net = require('net');
const path = require('path');
const Mocha = require('mocha-parallel-tests').default;
const {exec, spawn} = require('child_process');
const os = require('os')
process.env.PORT = 0
const app = require('../../app')
const mochaDirectParameters = process.argv.slice(2)... |
/* global db */
/* global Mongo */
/* global ISODate */
// Insert per-day active class counts into analytics.perdays collection
// Usage:
// mongo <address>:<port>/<database> <script file> -u <username> -p <password>
// TODO: Does not handle course prepaid updates on a user
// TODO: Does not handle class membership c... |
require('dotenv').config();
console.log('Starting...');
const discord = require('discord.js');
let client = new discord.Client({
http: {
api: 'https://discord.com/api',
cdn: 'https://cdn.discordapp.com'
}
});
//#region Global variables
let prefix = process.env.prefix;
var channels = {
logs:... |
console.log("Starting Discord-Twitch-Notifier Service")
var userConfig = {
accounts: [],
}
const fs = require("fs")
const config = require("./config")
const Discord = require("discord.js")
var twitchAPI = require("twitch-api-v5")
twitchAPI.clientID = config.twitch.clientID
const client = new Disc... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const diff = require("diff");
const jsDiff = diff;
var DiffType;
(function (DiffType) {
DiffType[DiffType["DEFAULT"] = 0] = "DEFAULT";
DiffType[DiffType["ADDED"] = 1] = "ADDED";
DiffType[DiffType["REMOVED"] = 2] = "REMOVED";
})(Dif... |
/*
*Synopsis: This function provides complete handling of Flex In-Queue Voicemail capabilities to include:
* 1. request to leave a voicemail with callback to originating ANI
*
*Voicemail tasks are created and linked to the originating call (Flex Insights reporting). The flex plugin provides
*a UI for managemen... |
import React, { useState, useEffect } from "react";
import { TheContent, TheSidebar, TheFooter, TheHeader } from "./index";
import clientService from "../services/clientService";
import HighestQualification from "./highestQualification";
import PreviousQualification from "./previousQualification";
import { asyncLocalSt... |
/**
* Using Rails-like standard naming convention for endpoints.
* GET /api/samples/eth -> index
*/
'use strict';
var async = require('async');
import RecLetterRequest from '../../model/recletterrequests';
import { letterOwnershipContract } from '../web3helper';
import { resolve } from 'path';
e... |
import { useState, useRef } from 'react';
import { useMoralis } from 'react-moralis';
// material-ui
import { Grid, TextField, Typography, Chip } from '@mui/material';
import { useTheme } from '@mui/material/styles';
import Box from '@mui/material/Box';
import DeleteIcon from '@mui/icons-material/Delete';
// project i... |
/**
* @fileoverview Avoid using multiple Tailwind CSS classnames when not required (e.g. "mx-3 my-3" could be replaced by "m-3")
* @author <NAME>
*/
'use strict';
const docsUrl = require('../util/docsUrl');
const defaultGroups = require('../config/groups').groups;
const customConfig = require('../util/customConfig'... |
var Browser = new Object();
Browser.isMozilla = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined') && (typeof HTMLDocument != 'undefined');
Browser.isIE = window.ActiveXObject ? true : false;
Browser.isFirefox = (navigator.userAgent.toLowerCase().indexOf... |
// essential functions
function screwMeUp() {
$.when($.when($.when($.when($.when().then()).then()).then()).then()).then(console.log("shamrock shakes"));
return null;
};
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > millisecond... |
import React, { Component } from "react";
import DataTable from "../DataTable/DataTable";
import { HtmlColumnHeader } from "../HtmlColumnHeader";
class RateConstantsDataTable extends Component {
getUrl(query) {
const substratesProducts = query.split("-->");
const substrates = substratesProducts[0].trim();
... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* strict-local
* @format
* @emails oncall+relay
*/
'use strict';
/**
* Synchronously check whether the records required to fu... |
// import * as mars3d from "mars3d"
var map // mars3d.Map三维地图对象
var graphicLayer // 矢量图层对象
let textMaterialProperty
var eventTarget = new mars3d.BaseClass()
// 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并)
var mapOptions = {
scene: {
center: { lat: 29.792325, lng: 121.480055, alt: 146, heading: 198, pitch: -54 }
}
}
... |
//Required dependencies
var http = require("http");
var fs = require("fs");
var url = require("url");
var async = require("async");
var moment = require("moment");
//JSON objects to be read from files
var studJSON = [];
var sub_1 = [];
var sub_2 = [];
var sub_3 = [];
var sub_4 = [];
//ID module
var idM... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
/**
* @author Francesco
*/
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
//Titanium.UI.setBackgroundColor('#000');
//Titanium.UI.setBackgroundImage('/images/bgImage.png');
var css = Ti.API.WxsCss;
//Parent window = WcsCoverageList.js
//reference the current wind... |
'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... |
/**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* utils/jwtUtil.js
*/
'use strict'; // eslint-disable-line strict
const jwt =... |
function cli_show_cookiebar(p) {
/* plugin version 1.5.3 */
var Cookie = {
set: function(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="... |
import {
getTokenV2,
renderAmount,
getConfig,
} from "/lib/utils.js";
import {
getProposalInformation,
signBatch,
queryTransactionHashForProposal,
fetchProposalStats,
} from "/lib/rollup.js";
import BalanceTracker from "./BalanceTracker.js";
const { HBT } = getConfig();
var delegationMode = false;... |
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol... |
import React, { useEffect, useState } from 'react';
import {
Segment,
Grid,
Header,
Image,
Button,
Form,
Icon,
Card,
Container
} from "semantic-ui-react"
import { MessagesArea } from './MessagesArea';
import emailjs, { init } from "emailjs-com"
init(process.env.GATSBY_EMAIL_KEY)
const responses = {... |
#!/usr/bin/env node
// @flow
import os from 'os'
import process from 'process'
import assert from 'assert'
import fs from 'fs'
import path from 'path'
import crypto from 'crypto'
import {spawnSync} from 'child_process'
import _ from 'lodash'
import mkdirp from 'mkdirp'
import del from 'del'
import gm from 'gm'
import ... |
// Copyright 2020 <NAME>
//
let canvas = document.getElementById('backdrop');
let rect = canvas.getBoundingClientRect();
canvas.width = rect.width;
canvas.height = rect.height;
let ctx = canvas.getContext('2d');
$('.slot_label').css({
opacity: 0,
'background-color': "rgba(255,255,255,50)",
'border-radius': "8px... |
export { default as Adjustments } from './Adjustments.jsx'
export { default as Annotation } from './Annotation.jsx'
export { default as Archive } from './Archive.jsx'
export { default as ArrowCircleDown } from './ArrowCircleDown.jsx'
export { default as ArrowCircleLeft } from './ArrowCircleLeft.jsx'
export { default as... |
/*
* 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")... |
const fs = require('fs');
const path = require('path');
const core = require('@actions/core');
const github = require('@actions/github');
const ApiGtw = require('./api-gtw');
module.exports = class ApiMerger {
mergeSwagger(localSwagger, awsSwagger) {
try {
console.log("============ SWAGGER (no extension) ... |
import * as React from 'react';
import {scaleLinear, scaleLog} from 'd3-scale';
import classnames from 'classnames';
import sfData from '../../data/sf.json';
//import parseIso from 'date-fns/parseISO';
import css from './index.module.css';
export default () => {
return (
<div className={css.root}>
<h1>Con... |
const { supportedTemplate } = require("../common/");
const { filterByProperty } = require("../helpers/");
const { errorCodeList } = require("./errorHandling");
/**
* Print out the information
* @param {array} optionList
*/
function helpInformation(optionList) {
let mainFlagContent = "",
aliasContent = "... |
/* jshint esversion: 6 */
/* global window, document, TweenMax, THREE, WEBVR */
// import * as THREE from 'three';
//import { threadId } from 'worker_threads';
import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { GLTFLoader } from 'three/examples/jsm/l... |
jQuery.extend(jQuery.validator.messages, {
required: "Campo obligatorio.",
remote: "Please fix this field.",
email: "Please enter a valid email address.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date (ISO).",
number: "Please enter ... |
import React from 'react';
import PropTypes from 'prop-types';
import orderBy from 'lodash.orderby';
import * as sort from 'sortabular';
import * as resolve from 'table-resolver';
import { compose } from 'recompose';
import {
paginate,
Grid,
PaginationRow,
Table,
PAGINATION_VIEW,
Icon,
Button,
FormContr... |
'use strict'
const data = {
name: 'mfixx',
async loadIcon (name) {
switch (name) {
case 'uni0': return import(/* webpackChunkName:"mfixx/uni0" */ './js/uni0.json')
case 'uni1': return import(/* webpackChunkName:"mfixx/uni1" */ './js/uni1.json')
case 'uni20': return import(/* webpackChunkName:"... |
showToast = function(message, ms) {
console.log("Showing " + message + " for " + ms) ;
var options = {
settings: {
duration: ms
}
};
new iqwerty.toast.Toast(message, options);
}
function appendSingleIcon(containerEl, style, png, title, callback) {
var el;
el =... |
/*
* @Author: lbb
* @Date: 2018-05-19 18:56:24
* @Last Modified by: zouwendi
* @Last Modified time: 2018-06-12 15:32:11
* @Description:条码
*/
import React, { Component } from 'react';
import { Form, Row, Col, Input, Button, Modal, Card, Select, DatePicker, Message } from 'antd';
import { connect } from 'dva';
im... |
$(document).ready(function(){
pat_ID =$("#pati_ID");
treatment_case =$("#treatment_case");
costy =$("#costy");
amt_paid =$("#amt_paid");
doctor =$("#doctor");
display_message =$("#display_message");
btX_btn =$("#btX_btn");
id_pati =$("#id_pati");
pati_id =$("#pati_id");
click_view = $(".view... |
// Browser detection required (guess which browsers are at faul =P)
var isSafari = navigator.userAgent.indexOf("Safari") != -1;
var isIe = navigator.userAgent.indexOf("MSIE") != -1;
var isFireFox = navigator.userAgent.indexOf("Firefox") != -1; // not this one ^^
// We need to check if this system has the webAudioCont... |
const express = require("express");
const router = express.Router();
const protect = require("../middleware/authMiddleware");
const pool = require("../config/helpers");
//mine orders by userid
router.get("/mine", protect, (req, res) => {
let getOrderListQuery = `Select order_id, totalPrice, isPaid, paidAt, isDeliver... |
/**
* @author [<NAME>]{@link https://github.com/Itee}
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
*
* @file Todo
*
* @example Todo
*
*/
/* global Itee */
const AppPage = {
template: `
<TContainer orientation="horizontal" hAlign="stretch" vAlign="stretch" expand=tr... |
import 'primeicons/primeicons.css';
import 'primereact/resources/themes/saga-blue/theme.css';
import 'primereact/resources/primereact.css';
import 'primeflex/primeflex.css';
import React, { useContext, useEffect, useRef } from 'react';
import { useImmer } from 'use-immer';
import Axios from 'axios';
import classNames ... |
// This file implements a minimal subset of Abstract Syntax Notation One (**ASN.1**)
// Basic Encoding Rules (**BER**), namely the parts that are necessary for sending
// and receiving SNMPv2c messages.
//
// (c) 2012 <NAME>, Nym Networks
"use strict";
// We define constants for the commonly used ASN.1 types in SNMP.... |
/* global Map, Set, Promise */
/* eslint no-var: 0, no-console: 0 */
/* eslint-env es6 */
import state from './state.js';
import { updateDBDoc } from './db.js';
import Stats from './web-code-stats.js'
import renderFileList from './render-file-list.js';
import { saveTextFileFromEditor } from './files.js';
import Buffer... |
import _inquirer from 'inquirer'
import {SwizzleConfig} from './swizzle-config'
import {swizzleFileSystem} from './swizzle-file-system'
import {validateUserInput} from './validateUserInput'
// todo changing stack should prompt for --no-save items again
// todo cli add-choices --name param --choices "a", "b", "c"
// to... |
const COMMENTS_PER_PAGE = 20;
var GossipComments = Vue.component("gossip-comments", {
template: `
<div class="container content-container">
<div v-if="!dataReady" class="loading-info">
<div v-if="error" >
<p class="text-danger">
Sorry, could not load that topic. Please check ... |
import React from 'react'
import 'whatwg-fetch'
import Timer from '../Timer/Timer'
import styles from './Game.scss'
const Card = props => {
// a card that has an image or is blank
let boardCardEmptyStyle = "";
if (props.content === null){
boardCardEmptyStyle = styles.boardCardEmpty;
}
return (
<butt... |
/**
*
* gulpfile.js
*
* 1. Icons and Images combine
* 3. Improve overall
* 4. Add gulp-bower-files
* 5. gulp-html2jade?
* 6. if production or dev env
*
*/
// Dependencies
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
//plugins used:
//... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.