text
stringlengths
3.22k
29.5k
import React, { Component } from 'react'; import { Container, Segment, Item, Divider, Button, Icon, Message, Menu, Header } from 'semantic-ui-react'; import Swal from 'sweetalert2'; import Loader from '../Loader'; import Result from '../Result'; import Countdown from '../Countdown'; import Offline fr...
import React from "react"; import PropTypes from "prop-types"; import HLSPlayer from "../../node_modules/hls.js/dist/hls"; import {BufferHelper} from "../../node_modules/hls.js/src/utils/buffer-helper"; import DashJS from "dashjs"; import URI from "urijs"; import Graph from "./Graph"; import Segments from "./Segments";...
const c = document.getElementById('canv'); const ctx = c.getContext('2d'); /*<==== GAME CONSTANTS ====>*/ const CANVAS_SIZE = {x: 400, y: 600}; const GAME_SIZE = {x: 8, y: 12}; const BLOCK_SIZE = {x: CANVAS_SIZE.x / GAME_SIZE.x, y: CANVAS_SIZE.y / GAME_SIZE.y}; const GAME_STATE = 0; // 0 = playing, 1 = lost const UPD...
import "./tailwind.css"; import "./style.css"; import setUp from "./setup"; import { switchPage, pages } from "./switcher"; import { elm, readFile } from "./utils"; import { removeSW } from "./service"; import * as storage from "./storage"; let downloadable = null; (async () => { const { testcase_editor, preproce...
const WEBPACK_CONFIG_FILE = process.env.WEBPACK_CONFIG_FILE || 'webpack.config.js'; const path = Npm.require('path'); const projectPath = path.resolve('.').split(path.sep + '.meteor')[0]; function interopRequireDefault(obj) { return obj && obj.__esModule ? obj.default : obj; } function isMultiCompiler(com...
banditResults = Array( Array("male","female"), Array("left-handed","right-handed"), Array("happy","sad"), Array("wide awake","sleepy") ) function count(arr, value){ out = 0 for(var i=0;i<arr.length;i++){ if(arr[i] == value){out++} } return out } resultls = Array() actuals = Arr...
const guessData = {} const cache = {} const data = { Chelicerata: { Pycnogonida: 'Q19106', Xiphosura: 'Q19430', Arachnida: { Scorpionida: 'Q19125', // (Scorpiones), other 'Q30749508' Opiliones: 'Q19116', Pseudoscorpionida: 'Q19119', // (Pseudoscorpiones),...
var expect = chai.expect; var should = chai.should(); describe('DOM Traversal', function() { it('Should find elements by id', function() { expect(doris('#test-1').elements.length).to.equal(1); }); it('Should find elements by class name', function() { expect(doris('.a').elements.length).to.equal(2); ...
// Import the page's CSS. import "../stylesheets/app.css"; // Import libraries. import { default as Web3} from 'web3'; import { default as contract } from 'truffle-contract' // Import our contract artifacts and turn them into usable abstractions. import ShowTickets_artifacts from '../../build/contracts/ShowTickets.j...
/* * 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...
import { tilLesbarDatoMedArstall, fraInputdatoTilJSDato, inntektskildetyper, senesteTom } from '@navikt/digisyfo-npm'; import validerFoerDuBegynner from '../for-du-begynner/validerFoerDuBegynner'; import validerFravaerOgFriskmelding from '../fravar-og-friskmelding/validerFravaerOgFriskmelding'; import { filtrerAktu...
import {BasicChart} from './basic-chart'; export class EasingChart extends BasicChart { constructor(data) { super(data); let eases = ['linear', 'poly(4)', 'quad', 'cubic', 'sin', 'exp', 'circle', 'elastic(10, -5)', 'back(0.5)', 'bounce', 'cubic-in', 'cubic-out', 'cubic-in-out', 'cubic-out-in'], ...
/** * Load data from PrepMod's SMART Scheduling Links API * https://github.com/smart-on-fhir/smart-scheduling-links/ * * PrepMod maintains separate deployments for each customer, so we have to * contact at least one (and sometimes several) hosts in each state. */ const Sentry = require("@sentry/node"); const { A...
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(funct...
// The Review controller var mongoose = require('mongoose'); var Review = require('../models/reviewModel.js'); var Business = require('../models/businessModel.js'); var User = require('../models/userModel.js'); /** * Creates a new Review from the data request * @param {Object} req HTTP request object. * @param {Ob...
require('dotenv').config() const express = require('express'); const path = require('path'); const jwt = require('jsonwebtoken'); const exjwt = require('express-jwt'); const mongoose = require('mongoose'); const morgan = require('morgan'); // used to see requests const app = express(); const db = require('./models'); c...
import Vector from 'victor' let findInArray = function(array, callback) { for (let i = 0, length = array.length; i < length; i++) { if (callback.apply(callback, [array[i], i, array])) return array[i] } } let isFunction = function(func) { return typeof func === 'function' || Object.prototype.toString.call(fu...
/** * Module dependencies. */ var passport = require('passport'); var login = require('connect-ensure-login'); var fs = require("fs-extra"); var bodyParser = require('body-parser'); var config = require("./config"); var uuid = require('node-uuid'); var crypto = require("crypto"); var dataModel = require("./dataModel"...
import React, {useContext, useEffect, useState} from 'react'; import { useAuth } from "../../Contexts/AuthContext"; import $ from "jquery"; import Swal from 'sweetalert2'; import 'react-notifications/lib/notifications.css'; import { NotificationManager } from 'react-notifications'; import PhoneInput from 'react-phone...
import React, { useEffect } from "react"; import { Typography } from "antd"; import styled from "styled-components"; import TagManager from "react-gtm-module"; import sendcomment from "assets/icons/send-paper.svg"; import { mq, theme } from "constants/theme"; import { useTranslation } from "react-i18next"; import { Ale...
/** * @fileoverview 모바일 전자정부 하이브리드 앱 Accelerator API 가이드 프로그램 JavaScript * JavaScript. * * @author 서형주 * @version 1.0 * @ 수정일 수정자 수정내용 * @ --------- --------- ------------------------------- * @ 2012. 8. 14. 서준식 iOS 플랫폼에 적용 */ /********************************************************* * three.js ...
const PropertyItemComponent = { bindings: { claims: '=', edit: '=', hidden: '=', labels: '=', lang: '=', link: '=', property: '=', text: '=', }, controller, template: ` <span class="muted" flex="35" ng-if="$ctrl.edit.all || (!$ctrl.edit.all && !$ctrl...
// カレンダー関連 // 200128 sakai.y // 曜日 const WEEKS = ['日', '月', '火', '水', '木', '金', '土'] // カレンダーの縦数 const TATE_NUM = 6; /* ID、CLASS関連 */ const ID_CALENDAR_TABLE = "calendar_parent"; const ID_CALENDAR_TABLE_CAPTION = "calendar_caption"; const ID_CALENDAR_TABLE_HEADER = "calendar_head"; const ID_CALENDAR_TABLE...
import React, { useState, useEffect } from "react"; import { useDispatch } from 'react-redux'; import { connect } from 'react-redux'; import ExerciseInput from './inputs/ExerciseInput'; import ExerciseDetails from './inputs/ExerciseDetails'; import PhaseInput from "./inputs/PhaseInput"; import LengthInput from "./input...
// @flow import React from "react"; import './ModSetDetail.css'; import ModSetView from "../ModSetView/ModSetView"; import statTypeMap from "../../constants/statTypeMap"; import Stat from "../../domain/Stat"; import { mapObject } from "../../utils/mapObject"; class ModSetDetail extends React.PureComponent { render...
import "@/typedef"; /** * Holds the `CourseSession`s for a weekly schedule * Can add/remove course sessions and determine if there is a schedule conflict */ class Schedule { static SCHEDULE_DAYS = ["Mo", "Tu", "We", "Th", "Fr"]; // hours indicate start (inclusive) of one hour block with exclusive end e.g. [8, 9...
import React, { useEffect, useReducer, useMemo } from "react"; import { createSelector } from "reselect"; import { getCurrentUser, getAllMembers } from "../api/member"; import { getMemberSkills } from "../api/memberskill"; import { getCheckinByMemberId, createCheckin } from "../api/checkins"; import { BASE_API_URL } fr...
'use-strict'; //Define base recipes that add ons will be pushed to. These are the recipes that render if no add ons are selected. // They are made up of a name, id, ingredients array and instructions array var chocolateChipRecipe = { id: 'chocolate_chip', name: 'Chocolate Chip Cookie', ingredients: ['1 cup ...
let path = require('path'); let fs = require('fs'); let mix = require('laravel-mix'); require('laravel-mix-purgecss'); const imagemin = require('imagemin'); const imageminWebp = require('imagemin-webp'); const jsonfile = require('jsonfile'); const default_mix_options = { postCss: [require('autoprefixer')({ brow...
//////////////// DEFINITIONS //////////////// // Map of alternates for each char, accessed by pressing <tab> in the code textarea. let alts = "AȦẠA BḂḄB CĊC DḊḌD EĖẸE FḞF GĠG HḢḤH IİỊI JJ KḲK LĿḶL MṀṂM NṄṆN OȮỌO PṖP QQ RṘṚR SṠṢS TṪṬT UỤU VṾV WẆẈW XẊX YẎỴY ZŻẒZ " + "aȧạa bḃḅb cċc dḋḍd eėẹe fḟf gġg hḣḥh iıịi jj kḳk ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); var _exportNames = { Response: true, RequestError: true, globalOpts: true, cache: true, pendingCache: true }; Object.defineProperty(exports, "R...
import axios from 'axios'; import util from 'util'; import { mergeDict, tuples2obj } from '../app/utils/helper'; const HOST = 'https://notely.halfjuice.com:6984/' import PouchDB from 'pouchdb'; import PouchFind from 'pouchdb-find'; import PouchAuth from 'pouchdb-authentication'; PouchDB.plugin(PouchFind); PouchDB.plu...
import React, { useState, useEffect } from "react"; import { connect } from "react-redux"; import Grid from "@material-ui/core/Grid"; import { withStyles } from "@material-ui/styles"; import Table from "@material-ui/core/Table"; import TableBody from "@material-ui/core/TableBody"; import TableCell from "@material-ui/co...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/r...
var socket = io(); // Set the scene size. const WIDTH = window.innerWidth; const HEIGHT = window.innerHeight; // Set some camera attributes. const VIEW_ANGLE = 70; const ASPECT = WIDTH / HEIGHT; const NEAR = 0.1; const FAR = 256; console.log(WIDTH); console.log(HEIGHT); var players = []; var myID; // Get the DOM e...
'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 ("...
var async = require('async'); var _ = require('underscore'); var fs = require('fs'); var path = require('path'); var buildErrorResponse = require('../../common/misc.js').buildErrorResponse; var logger = require('../../common/logger.js').getLogger(); var getSubmissionFile = require('../getSubmissionFile.js'); var consta...
let mainDataUrls = ['https://f1stats.4lima.de/getData.php', 'https://enforced-navigators.000webhostapp.com/getData.php']; let dataUrl = mainDataUrls[(Math.random() < 0.1?1:0)]; let lineChart = undefined; //JSON export let datasets = {}; //Excel export let xlsData = []; let thisXlsDataExported = false; //save data fr...
import React, { useState, useEffect, useMemo } from "react"; import axios from "axios"; import { Badge, Card, CardHeader, CardFooter, DropdownMenu, DropdownItem, UncontrolledDropdown, DropdownToggle, Media, Pagination, PaginationItem, PaginationLink, Progress, Table, Container, Row, C...
let preloader = ` <div class="jumping-dots-loader my-5"> <span></span> <span></span> <span></span> </div>`; let base_url = $(`body`).attr("base_url"); let differentInputArr = ["input", "select", "textarea"]; let differentInputStr = differentInputArr.join(", "); // ----- CLOSE MODALS ----- const ...
var series_color_cache = { "total": d3.rgb(0,0,0), "-1": d3.rgb(128,128,128), "1": d3.rgb(255,0,0), "2": d3.rgb(0,255,0), "3": d3.rgb(0,0,255), "4": d3.rgb(255,255,0), "5": d3.rgb(0,255,255), "6": d3.rgb(255,0,255) }; /* * Data representations for graphs and series */ var Series = fun...
// Profile page to display user details. import React, { useState } from "react"; import { Link } from "react-router-dom"; import PropTypes from "prop-types"; import _ from "lodash"; import loadImage from "blueimp-load-image"; import CircularProgress from "@material-ui/core/CircularProgress"; import RootRef from "@m...
import ext from "./utils/ext"; import storage from "./utils/storage"; import cx from 'classnames' import React, { Component } from "react" import { render } from 'react-dom' import Table from 'rc-table' import ErrorIcon from 'react-icons/lib/md/error-outline' import WarnIcon from 'react-icons/lib/md/warning' import Co...
// Index === attack id // Values in second dimension are aliases for that attack const attackNames = [ ["none"], ["non staling"], ["jab 1"], ["jab 2"], ["jab 3"], ["rapid jabs"], ["dash attack"], ["side tilt"], ["up tilt"], ["down tilt"], ["side smash"], ["up smash"], ["down smash"], ["nair"], ["fair"], ...
/* Tampilan banyak none memakai heatmap https://www.patrick-wied.at/static/heatmapjs/ */ const BROKER_ADDR = '127.0.0.1'; const BROKER_PORT = '3000'; const SYS_TOPIC = 'TF-IIOT/'; const TAG_TOPIC = 'CT'; // tag yang akan masuk chart // nama eleman HTML const E_HEATMAP = 'e-heatmap'; // interval heatmap akan diupdat...
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(generator["throw"]...
"use strict"; console.log("starting"); var canvas = document.getElementById("canvas"); if (canvas.getContext) { var ctx = canvas.getContext("2d"); } else { alert("Canvas not supported!"); } const CLICKS_PER_MOA = 4; const NULL_SHOT = [null, null]; const caliber = 22; // TODO const TARGET_RED = "rgb(255, 0, 0, ...
import React, { Component } from 'react'; import { View, StatusBar, Platform } from 'react-native'; import { connect } from 'react-redux'; import deepGet from 'lodash/get'; import appVariables from '../../services/AppVariables'; import TopStatus from './TopStatus'; import VideoList from './VideoList'; import Pricer fro...
import React, { PureComponent } from "react"; import { Card, Tree, Row, Col, Table, Form, Input, Button, Modal } from 'antd'; import PageHeaderLayout from '@/layouts/PageHeaderLayout'; import ContractPlanCard from './ContractPlanCard'; import PButton from '@/components/PermButton'; import styles from './ContractPlanMa...
/** * Implements the methods of hashing to elliptic curves * that are described in draft-irtf-cfrg-hash-to-curve * @author <NAME> * Note: The SWU algorithm is constant-time except for the conditional checks in * the final two lines. The implementation follows a regular execution pattern. */ /* global sjcl */ /* ...
import { merge } from "theme-ui" import { tailwind } from "@theme-ui/presets" const theme = merge(tailwind, { initialColorModeName: `dark`, useCustomProperties: true, colors: { background: `#644540`, button: `#EFBDC1`, divider: `#723b31`, heading: `#EFBDC1`, icon_blue: tailwind.colors.blue[6]...
/* * From https://www.redblobgames.com/maps/mapgen4/ * Copyright 2018 <NAME> <<EMAIL>> * License: Apache v2.0 <http://www.apache.org/licenses/LICENSE-2.0.html> * * This module allows the user to paint constraints for the map generator */ 'use strict'; /* global Draggable */ /* * The painting interface uses a s...
function createGeoJsonPolygon_nojquery(geojson,region_standard_id,clickable, regionId, regionName){ var strokeColor = "#F00"; var fillColor = "#F00"; var strokeOpacity = 1; var fillOpacity = 0.5; /* if(region_standard_id == 2) { strokeColor = "#F00"; fillColor = "#F00"; } else if (region_standard_id == 3) { ...
function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } var Releases = {}; var DATA_FORMAT_VERSION = "1.0"; jQuery(document).ready(function () { if (jQuery(' .metadata-table ').length) { // get the hg19 metadata information jQuery.ajax({ url: "//...
require('dotenv').config(); const appName = require('./../package').name; const http = require('http'); const express = require('express'); const log4js = require('log4js'); const localConfig = require('./config/local.json'); const path = require('path'); const bodyParser = require('body-parser'); const fetch = requir...
import store from '@/store' import { Message } from 'element-ui' import approveApi from '@/api/approve' const NODE_NAME = { EVENT: '事件' } export function ApproveEvent(eventKey, eventName) { this.type = 0 this.nodeName = NODE_NAME.EVENT this.priority = null this.eventKey = eventKey this.eventName = eventName...
'use strict' /* UTILITY FUNCTIONS */ const log = message => console.log(message) const changePropOfChilds = (parentNode, childTag, prop, value) => { let childNodes = parentNode.querySelectorAll(childTag) if (childNodes.length <= 0) return 0 for (let i = 0; i < childNodes.length; i++) { childNodes[i].set...
var dns = require('dweb-dns-discovery') var dht = require('bittorrent-dht') var thunky = require('thunky') var crypto = require('crypto') var events = require('events') var util = require('util') var debug = require('debug')('dweb-discovery-channel') var prettyHash = require('pretty-hash') var bufferFrom = require('buf...
'use strict' const ReadingProgress = use('App/Models/ReadingProgress') const Cache = use('Cache') const dayjs = use('dayjs') const ExceptionHelper = use('App/Helpers/ExceptionHelper') const Profiler = use('Profiler') const DateHelper = use('App/Helpers/DateHelper') class UserReadingProgressAction { register(Mode...
// // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: <NAME>, <NAME>, <NAME> // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // // esTransform.js // // Matrix ...
/* dragappUpload Application * * This is an application that lets the user drag & drop files * onto the webpage and decide which files out of the list to upload to process. * * update revision: * 09/23/16 CRL condense drag & drop functionality from Cardiac processing demos */ // start with an empty array th...
const fs = require('fs'); const os = require('os') const cp = require('child_process'); const path = require('path'); const fetch = require('node-fetch'); const {JSDOM} = require('jsdom'); const imgur = require('imgur'); const E = process.env; const stdio = [0, 1, 2]; const CSV_COLUMNS = [ 'Center', 'Title', 'Facult...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultStateEvaluator = void 0; const _smartweave_1 = require("../../.."); // FIXME: currently this is tightly coupled with the HandlerApi class DefaultStateEvaluator { constructor(arweave, executionContextModifiers = []) { ...
const { Pool } = require("pg") const path = require("path") require('dotenv').config({ path: path.resolve(__dirname, '../.env.local') }) const pool = new Pool() const { faker } = require('@faker-js/faker') const Delta = require('quill-delta') // delta constructor // 9/3/2003 midnight UTC, fall 2003 term start con...
"use strict"; var iamreadyLts = function() { var servicePath = "lineTimeSpace.scan"; var showFactor = $("#h_factor").val() || 1; if (showFactor > 1) { $("#performance_container").addClass("factor"); } $("#time_axis .time_axis_point").each(function(){ $(this).css("bottom", (parseFloat($(this).css("bottom"))...
var app = angular.module("app", []); var color; //to change line color var width = 5; //to change line width var isPensil = false; var isEraser = false; var isHighlighter = false; var canvas, context; var lastX, lastY; var cPushArray = new Array(); var cStep = -1; var colorC; var colorSelect; //varibles for serve...
/** *************Init JS********************* TABLE OF CONTENTS --------------------------- 1.Ready function 2.Load function 3.Full height function 4.snoopy function 5.Chat App function 6.Resize function ** ***************************************/ "use strict"; /*****Ready function start*****/ $(docum...
//This array stores the questions and their associated options and the correct answer. //We are able to easily calculate the number of quesitons, display questions and options //validate user selection with the answer. var questions = [ { "question" : "Question #1", "options" : ["Option 1", "Option ...
'use strict' const isDefined = require('./is-defined') const Log = require('./log') const LogLoader = require('./log-loader') const Entry = require('./entry') const EntrySet = require('./entry-set') const Clock = require('./lamport-clock') // Error messages const IpfsNotDefinedError = () => new Error('Ipfs instance n...
import Header from '../components/header' import HeaderContext from '../contexts/header-context' import MobileHeader from '../components/mobile-header' import PropTypes from 'prop-types' import React from 'react' import categoryConst from '../constants/categories' import channelConst from '../constants/channels' import...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultTabBar = exports.StateType = undefined; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _createClass2 = require('babel-runtime/helpers/createClass'); var ...
jQuery(document).ready(function(){ $("body").on("click","#buscar",function(){ $("#form_busqueda").submit(); }); $("body").on('click',"#imprimir",function(){ codigo = $("#codigo").val(); url = base_url+"index.php/ventas/acta/ver/"+codigo; window.open(url, this.t...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
"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...
import { rgba } from 'polished' import React from 'react' import { Link } from 'react-navi' import { animated, useSpring, useTransition } from 'react-spring' import styled, { css } from 'styled-components/macro' import { layout, space } from 'styled-system' import { colors, easings, focusRing, radii, shadows, media } ...
import { doUpdate } from '../class/updater.class' import { lineConfig } from '../config' import bezierCurve from '@jiaminghi/bezier-curve' import { deepMerge, initNeedSeries, mergeSameStackData, getPolylineLength } from '../util' const { polylineToBezierCurve, getBezierCurveLength } = bezierCurve export function l...
import origin from "~/libs/origin"; const PAGE_SIZE_MIN = 30; const PAGE_SIZE_MAX = 50; // turns booleans into nums 1 or 0 const binarizeOptions = (options) => { const keys = Object.keys(options); for (let key of keys) { if (typeof options[key] !== "boolean") continue; options[key] = Number(options[key]);...
/******************************* * Command line option parsing * *******************************/ var getopt = function(args, ostr) { var oli; // option letter list index if (typeof(getopt.place) == 'undefined') getopt.ind = 0, getopt.arg = null, getopt.place = -1; if (getopt.place == -1) { // update scanning p...
/* * libquassel * https://github.com/magne4000/node-libquassel * * Copyright (c) 2017 <NAME> * Licensed under the MIT license. */ const { EventEmitter } = require('events'); const logger = require('debug')('libquassel:network'); const { util, types: qtypes, serialization: { Serializable, serialize } } = require(...
import get from "@/utils/getters"; import i18n from "@/i18n"; import strings from "@/utils/strings"; const categories = [ "NORMAL_DROP", "SPECIAL_DROP", "EXTRA_DROP", ] class ReportValidator { constructor(server, zone, stage, drops) { this.server = server this.zone = zone this.stage = stage th...
/******************************* * Helper functions * *******************************/ // Save the current spec for later use (Jasmine 2 compatibility) var currentSpec; beforeEach(function () { this.isJasmine2 = /^2/.test(jasmine.version); if (this.isJasmine2) { jasmine.addMatchers(jasmineMoxMatchers.v2); ...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import fastdom from 'fastdom'; import styles from './tabs.css'; import {FakeMoreButton, MoreButton} from './collapsible-more'; import getTabTitles from './collapsible-tab'; const DEFAULT_DEBOUNCE_INTERVAL = 100; const...
var mysql = require("mysql"); var inquirer = require("inquirer"); require('console.table'); const departments = ["Sales", "Engineering", "Finance", "Legal"]; const roles = ["Sales Lead", "Salesperson", "Lead Engineer", "Software Engineer", "Accountant", "Legal Team Lead", "Lawyer"]; const managers = ["<NAME>", "<NAME>...
AJAX.config.base_url(base_url); var limit = 10; var offset = 1; $(document).ready(function(){ get_data(); $("#form_search").removeClass( "pull-right" ); }); $(document).on('cut copy paste input', '.start-date, .end-date', function(e) { e.preventDefault(); }); function get_data(keyword='', filter=false){...
/* global monogatari */ /*function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { var x = document.getElementById("demo"); x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { var x = document.getElementById...
import React, { useEffect, useState } from 'react'; import { Button, Input, Modal, Progress } from 'semantic-ui-react'; import { web3FromSource } from '@polkadot/extension-dapp'; import { useSubstrate } from '../../substrate-lib'; import { NotificationManager } from 'react-notifications'; import { icons } from '../../...
'use strict' /** * Module dependencies. */ const mongoose = require('mongoose') const getUserModel = require('../models/user.server.model').default const getTokenModel = require('../models/token.server.model').default const getAgencyModel = require('../models/agency.server.model').default const User = getUserModel(...
/** * a unit-test for Multi-Label classification in the Homer method, * with Binary-Relevance as the underlying multi-lable classifier, * with Modified Balanced Winnow as the underlying binary classifier. * * @author <NAME> * @since 2013-08 */ var should = require('should'); var util = require('util'); var cla...
import { Chart, LineElement, LineController, LinearScale, TimeScale, Decimation, Filler, Legend, Tooltip, _adapters, PointElement } from 'chart.js'; import {WIDGET_TYPES} from "../shc_base"; Chart.register( LineElement, PointElement, LineController, LinearScale, T...
/* * requirements */ require('leaflet.markercluster'); /* * some data for map data */ ACCESS_TOKEN = '<KEY>'; MB_URL = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + ACCESS_TOKEN; /* * map object to privide all premium map functions */ var map = { map: null, legend:n...
const proxyUtil = require('../utils/proxy'); const Shopify = require('./Shopify'); const Notify = require('./Notify'); const mongoose = require('mongoose'); const fs = require('fs'); const Seller = require('../models/Seller'); const Product = require('../models/Product'); const NewProduct = require('../models/NewProdu...
/** * Node dependencies **/ import path from 'path'; import del from 'del'; /** * NPM dependencies **/ import chalk from 'chalk'; import emoji from 'node-emoji'; import fs from 'fs-extra'; import cp from 'child_process'; import tarball from 'tarball-extract'; import prettyHrtime from 'pretty-hrtime'; import opener fro...
import React, { useState, useEffect } from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faSearch, } from "@fortawesome/free-solid-svg-icons"; import { CModal, CModalHeader, CModalTitle, CModalBody, CFormInput, CRow, CCol, CCard, CButton, } from "@coreui/react";...
function showOptions() { const dM = ['Objetivo', 'Direto', 'Ousado', 'Dominador', 'Exigente', 'Enérgico', 'Disposto a correr riscos', 'Aventureiro', 'Decisivo', 'Curioso', 'Autoconfiante', 'Competitivo', 'Rápido', 'Seguro de si', 'Controlador' ] const iM = ['Entusiasta', 'Social', 'Persuasivo', ...
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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 la...
const AssetGraph = require('assetgraph'); const urlTools = require('urltools'); const urlModule = require('url'); const writeFileAsync = require('util').promisify(require('fs').writeFile); const uniq = require('lodash.uniq'); const yargs = require('yargs'); module.exports = async function cliTool(argv, console) { co...
var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var selectedcanvas = document.getElementById('selected'); var ctx = selectedcanvas.getContext('2d') var colors = ["white", "orange", "green", "red", "blue", "yellow"] var selectedcolor = "grey" ctx.fillStyle = selectedcolor ctx.fil...
// ==UserScript== // @name ImageFork // @description Just browsing images! // @namespace https://github.com/plsankar1996/ImageFork // @homepage https://github.com/plsankar1996/ImageFork // @author plsankar1996 // @version 2.9 // @downloadURL https://github.com/plsankar1996/ImageFork/raw/mast...
'use strict' const assert = require('assert') const inspect = obj => require('util').inspect(obj, {colors: true, depth: null}) const tap = require('tap-lite-tester') const asDesignDoc = require('../asDesignDoc') function default_template(designDoc, expected, debug) { return () => { const actual = {} asDesign...