text stringlengths 3.22k 29.5k |
|---|
var gmap;
var gmap_loc;
$(function() {
selectize = $('#class-search-facets select').selectize({
plugins: ['fast_click']
});
$("#location").geocomplete()
.bind("geocode:result", function(event, result){
var loc = result.geometry.location;
gmap_loc = loc.lat() + ',' + loc.lng();
resetFac... |
const pagination = require("@freitagfelipe/discord.js-pagination");
const { execute } = require("./play");
const { embedColor, prefix } = require("../config.json");
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "playlist",
description: "Shows my favorite lofi playlist.",
aliases:... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Button,
DatePicker,
Modal,
Divider,
Radio,
TreeSelect,
} from 'antd';
import moment from 'moment';
import StandardTable from '@/components/StandardTable';
import P... |
/** ******************************************************* {COPYRIGHT-TOP} ***
* Licensed Materials - Property of IBM
* 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63
*
* (C) Copyright IBM Corporation 2016, 2020
*
* All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or disclosure
* restric... |
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var Os = require("os");
var Curry = require("rescript/lib/js/curry.js");
var $$Promise = require("reason-promise/lib/js/src/js/promise.bs.js");
var Untildify = require("untildify");
var Belt_Array = require("rescript/lib/js/belt_Array.js");
var Belt_Option ... |
//Função responsavel pelo carregamento do conteudo à página, é chamada apartir do arquivo loadComunity.js
function init_page()
{
var app;
//Orientação ao programador
//Orientação ao sistema para se informar apartir dos parametros URL
var idc = $_GET['id'];
$.get(joinComunitydata.url,joinC... |
"use strict";
var Core = require("lapis-core");
var Under = require("underscore");
/*
* General Design:
* 1. Get a structure representing changes on the server - getServerAllDocSummary() returning
* server_props_all
* 2. replicateLocalDocs() loops over all local documents,
* 3. calling replicateSingleDoc() ... |
let height = +document.getElementById('matrix-height').value;
let width = +document.getElementById('matrix-width').value;
let nodes = [];
let brs = [];
let matrix = [];
let ref = [];
let rref = [];
let kernel = [];
let pivotColumns = [];
let transposed = [];
let resultNodes = [];
function updateInput() {
////////... |
import styled from 'styled-components';
export const StyledFeed = styled.div`
width: 100%;
padding: 4rem;
display: flex;
flex-direction: column;
`;
export const StyledTrending = styled.div`
width: 100%;
display: flex;
flex-direction: column;
.trending-header button {
font-family: Lato;
font-st... |
// <NAME>
// CVsim.js
// 09-24-2017
// MIT License
var CVplot = function() {
// Parse text field values entered by user
var C = parseFloat(document.getElementById('conc').value);
var D = parseFloat(document.getElementById('D').value);
var etai = parseFloat(document.getElementById('etai').value);
var etaf = p... |
import React, { useState, useContext, useEffect, useRef } from "react"
import CssBaseline from "@material-ui/core/CssBaseline"
import { makeStyles } from "@material-ui/core/styles"
import Header from "../components/header"
import Footer from "../components/footer"
import Container from "@material-ui/core/Container"
imp... |
/* eslint-disable */
import $ from './jquery-ui'
import store from '@/store/'
var node = store.state.node
var clickTag
class Node {
constructor(id, knowledge, processorName) {
this.id = id
this.knowledge = knowledge
this.processorName = processorName
this.acceptBreak = null
this.concern = null
... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(gene... |
import React from 'react';
import { Link } from 'dva/router';
import { getMenuList } from '@/utils/utils';
import { connect } from 'dva';
import router from 'umi/router';
import iconStyle from '../../assets/css/iconfont.less';
import styles from './index.less';
import { Pop, Menu, Icon } from 'zent';
import Divider fro... |
//_ => ~ => -
{
/* <script src="jspsych-6.3.0/plugins/jspsych-html-button-response.js"></script>
<script src="jspsych-6.3.0/plugins/jspsych-html-keyboard-response.js"></script> */
}
class R {
constructor(isExercise, clockId) {
this._one = '';
this._all = '';
this._mode = isExercise;
this._clockId = clockId ||... |
/* global process */
import 'react-datepicker/dist/react-datepicker-cssmodules.css';
import React, {Component} from 'react';
import {sortBy} from 'lodash';
import classNames from 'classnames';
import {Helmet} from 'react-helmet';
import DatePicker from 'react-datepicker';
import Recaptcha from 'react-recaptcha';
impor... |
const rp = require('request-promise-native'), cheerio = require('cheerio');
const { ItemSet, Block } = require('../ItemSet');
const Provider = require('./Provider');
/*
* There's been a glitch on Champion.GG where it shows two times the same perk...
*/
let fixes = {
8000: 9103,
8100: 8135,
8200: 8299,
8400: 84... |
var gl;
var shaderProgram;
var ctx;
// Global buffer objects
var squareVertexPositionBuffer;
var squareVertexColorBuffer;
var squareVertexIndexBuffer;
var squareLineVertexPositionBuffer;
var squareLineVertexColorBuffer;
// Global collections
var vertices = [];
var indices = [];
var colors = [];
var lineVertices = [];... |
import { pipe } from "ramda";
import r from "../services/random";
import { victors } from "../services/playoffs";
import { List } from "immutable";
export const foreignTeams = state =>
state.game.get("teams").filter(t => !t.get("domestic"));
export const totalGamesPlayed = (manager, competition, phase) => state => ... |
var SunCalc = require("https://raw.githubusercontent.com/mourner/suncalc/master/suncalc.js");
require("f_latosmall").add(Graphics);
const SETTINGS_FILE = "pastel.json";
const LOCATION_FILE = "mylocation.json";
let settings;
let location;
function loadSettings() {
settings = require("Storage").readJSON(SETTINGS_FILE,... |
// Ejercicios
// 1 - Twitter no nos permite usar la consola porque han sobreescrito los métodos.... ¡Es hora de solucionarlo!
// :trollface: Puedes simularlo en cualquier pestaña haciendo esto:
function addCSS(element, cssObj) {
for (var property in cssObj) {
element.style[property] = cssObj[property];
}
}
var ... |
let axisLength = 120;
let axisWidth = 8;
let axisColor = '#ffffff';
let halfAxisLength = axisLength / 2;
let halfChartWidth = chartWidth / 2;
let halfChartHeight = chartHeight / 2;
let rectMargin = 3;
let fontSize = 50;
let rectWidth = halfChartWidth - rectMargin * 2;
let rectHeight = halfChartHeight - rectMargin * 2... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MerkleMountainRange = void 0;
const Base_1 = __importDefault(require("./Base"));
const sha256_1 ... |
$(document).ready(function() {
$('#singledate').datepicker({
format: "mm-dd-yyyy",
viewMode: "months",
minViewMode: "months"
});
$('#pmesDate').datepicker({
format: "mm-dd-yyyy",
viewMode: "months",
minViewMode: "months"
});
$('#filter_withdraw_date').datepicker({
format: "mm-dd-yyyy"... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _token = require("../helper/token");
var _db = _interopRequireDefault(require("../models/db"));
var _password = _interopRequireDefault(require("../helper/password"));
function _interopRequireDefault(obj)... |
var map = L.map('map',{
minZoom:12
}).setView([41.403081, 2.1777954], 14);
map.setMaxBounds([
[41.309551,2.019795],
[41.497023,2.28175]
]);
//basemap layer
var basemapGrey = L.tileLayer('https://api.mapbox.com/styles/v1/josepsitjar/ck0xpy0xd1ewc1cmzdo07t0ie/tiles/{z}/{x}/{y}?access_token=<KEY>', {
attrib... |
const canvas = document.getElementById('myCanvas');
const ctx = canvas.getContext('2d');
const squareSize = 30;
const playerMargin = squareSize * 12;
const dxy = squareSize;
const minDistanceToCell = squareSize * Math.sqrt(2) - 5;
const GRID_SIZE = 10; //ConfigManager.getConfig().GridSize;
class Vector2 {
constructo... |
/**
* Created by yeshaojian on 17/3/14.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ListView,
Dimensions,
Navigator,
ActivityIndicator,
Modal,
AsyncStorage,
TextInput,
DeviceEventEmitter,
} from 'react-nati... |
const express = require('express');
const path = require('path');
const favicon = require('serve-favicon');
const logger = require('log4js');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const nunjucks = require('nunjucks');
const httpProxy = require('http-proxy');
const _ =... |
/*global ActiveXObject*/
const listId = document.getElementsByClassName("list-list")[0].id;
let itemId = null, text = null, editedText = null, itemTextElement = null, completed = null, responseItem = null;
// create a new item
document.querySelector("#item-new-form input").addEventListener("keypress", function(e) {... |
//You can calculate directions (using a variety of methods of transportation) by using the DirectionsService object.
var directionsService = new google.maps.DirectionsService();
//Define a variable with all map points.
var _mapPoints = new Array("udaipur","jodhpur","jaipur","Bikaner");
//Define a DirectionsRender... |
"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... |
/* eslint-disable no-console */
/* eslint-disable max-len */
const input = require('./input');
/**
* --- Day 9: <NAME> ---
You talk to the Elves while you wait for your navigation system to initialize. To pass the time, they introduce you to their favorite marble game.
The Elves play this game by taking turns arrang... |
// FIXME: create a clear schema with types for Datasets
import { Module, Mutation, VuexModule } from "vuex-module-decorators";
function matchesYearFilter(minYear, maxYear, dataset) {
const dMinYear = parseInt(dataset.timespan.period.gte);
const dMaxYear = parseInt(dataset.timespan.period.lte);
if (dMaxYear < m... |
import React from 'react';
import { connect } from 'react-redux'
import { Dimensions, DeviceEventEmitter, StyleSheet, Image, View, Text, Platform, Modal, Animated, TouchableOpacity, TextInput, Clipboard, ImageBackground, ScrollView, KeyboardAvoidingView,Linking } from 'react-native';
import UImage from '../../utils/Img... |
/**
* (c) 2017 cepharum GmbH, Berlin, http://cepharum.de
*
* The MIT License (MIT)
*
* Copyright (c) 2017 cepharum GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without rest... |
/**
* 主题所用工具类
* @date 2020/12/21
* @author <a href="https://github.com/LIlGG">LIlGG</a>
* @version 1.0
*/
var Util = {
_version: '1.3.1',
/**
* 获取当前浏览器语言
* 使用当前方法,只会得到语言前两个字符
* @return zh、cn 等
*/
getNavLangSub: function () {
var currentLang = navigator.language;
// 只获取前两... |
/* global describe, it */
require('mocha');
const {expect, use} = require('chai');
const sinon = require('sinon');
const sinonChai = require("sinon-chai");
use(sinonChai);
const through2 = require('through2');
const { StringDecoder } = require('string_decoder');
const net = require('net');
const { DuplexMock, BufferR... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateIconData = exports.getIconComponentName = exports.getComponentVariantNames = exports.isComponentWithVariant = exports.getNodeTextStyle = exports.getNodeColorStyle = exports.getNodeText = exports.getNodeColor = exports.getPaintC... |
// 'use strict';
let endTimestampMap = {};
let newStartTimestampMap = {};
// currentEditingTableRowIndex != getCurrentTableRowIndex()
// It's the row which you clicked
let currentEditingTableRowIndex = 1; // 0 is the table header
google.charts.load('current', {'packages':['timeline']});
google.charts.setOnLoadCallb... |
var searchResultTemplate = undefined;
var bookmarkTableTemplate = undefined;
// Load and set up YouTube iFrame Player API
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(t... |
/* Simon
TODO:
Design game board
- button colour / highlight colour
- restart botton
- toggle switch for strict mode
- game name
Design sounds
- red
- blue
- green
- yellow
- lose
- start
- victory
Show four colours
Start a chain of button presses
Sound for each colour
Display button sequence
If wrong, replay sequenc... |
import React, { useState } from 'react'
import { useHistory } from 'react-router-dom'
import toast from '@/components/toast'
import VerificationCodeInput from '@/components/verification-code-input'
import { useEventListener } from '@/hooks'
import {
fetchCheckCellphoneExistence,
fetchSentVerificationCode,
fetchVe... |
const fieldWidth = 1000, fieldHeight = 800, n = 4, graph_speed = 4;
var progressDelta = 10;
var cursorPosX, cursorPosY, isMoving;
///
var gamma = 0;
const colors = [
{
background: '#fff',
graph: '255,152,73',
pointColor: '#fff',
border: '#000',
filter: 'none',
intersectionPointColor: 'black',
/... |
import * as tslib_1 from "tslib";
var _a;
import * as React from 'react';
import { injectIntl, FormattedHTMLMessage, } from 'react-intl';
import styled from 'styled-components';
import { gridSize } from '@findable/theme';
import { withAnalytics } from '@findable/analytics';
import StickyFooter from '../common/StickyFoo... |
// Loads required modules and classes
let inquirer = require('inquirer');
const fs = require('fs');
const Employee = require("./lib/Employee");
const Manager = require("./lib/Manager");
const Engineer = require("./lib/Engineer");
const Intern = require("./lib/Intern");
// Sets up global variables so they can referenced... |
/**
* @file
*
* Decodes and encodes messages
*/
function decodeCarname(manufacturerData) {
/**
* Get car name by hex char at position 7 in the manufacturer data string
*/
const substr = parseInt(manufacturerData.toString('hex').charAt(7), 16)
let carname = null
switch (substr) {
c... |
'use strict';
const fmlog = require('@waynechang65/fml-consolelog').log;
const puppeteer = require('puppeteer');
const os = require('os');
const this_os = os.platform();
const userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3723.0 Safari/537.36';
let pupp... |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const AWS = (() => {
try {
const AWSXRay = require('aws-xray-sdk');
return AWSXRay.captureAWS(require('aws-sdk'));
} catch (e) {
return require('aws-sdk');
}
})();
const FS = require('fs');
co... |
'use strict';
const {app, protocol, BrowserWindow, dialog, shell, Menu, ipcMain} = require('electron');
// Menu
const appMenu = require('./menu');
// Tray
const tray = require('./tray');
// Window State Plugin
const windowStateKeeper = require('electron-window-state');
// Global Settings
var globalSettings = require('... |
'use strict'
const SORT_ASC = '⬆️'
const SORT_DESC = '⬇️'
function onInit() {
document.querySelector('.price-update-modal').hidden = true
document.querySelector('.add-book-input').hidden = true
createBooks()
renderBooks()
document.querySelector('.sort-name span').innerText = SORT_ASC
renderPag... |
const { ethers } = require("hardhat");
const hre = require('hardhat');
const { use, expect } = require("chai");
const { solidity } = require("ethereum-waffle");
const axios = require("axios");
const { AlphaRouter, SwapRouterProvider } = require('@uniswap/smart-order-router');
const { CurrencyAmount, Token, TradeType }... |
/* Websocket Implementation */
// Constants
var hotelids = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'];
var initBot = false;
var localData = [];
var hotelData = [];
// Ready
$(document).ready(function() {
connect();
});
// Create socket method
function createSocket(host) {
try {
if (... |
const _ = require('lodash');
const moment = require('moment');
const Spreads = require('./extensions/spreads');
const Portfolio = require('./portfolio.js');
const getTotalShareCap = (shares) => {
return _.reduce(shares, (cap, share) => {
return cap + (share.price * share.count);
}, 0);
};
const setShareSta... |
// FormR = require( `${process.env.FORMR_HOME}/_3/FR.FNSs/FormR.fns.njs` ) //#.(10418.02.1).(10829.03.1)
var FormR = require( __dirname.replace( /[\\\/](_3|serv|clie).+/, '') + '/_3/FR.FNSs/FormR_Lib.js' ) // .(10829.03.1)
FormR.init( __dirname, __filename ); ... |
//This function starts the order process. It sets up a blank string for each "piece" of the order, then establishes a base price from size. It passes this info to the next function, getMeat()
function buildOrder() {
var orderPieces = "";
var pizzaCost = 0;
var sizePrice = 0;
var size = $('input[name=size]:check... |
const express = require('express');
const router = express.Router();
const passport = require('passport');
const sha3 = require('js-sha3');
const axios = require('axios');
const sgMail = require('@sendgrid/mail');
const crypto = require('crypto');
const privateToAccount = require('ethjs-account').privateToAccount;
cons... |
const REGEXP_INDENT_LINE = /\n/g
const indentLine = (string, indentString = ' ', indentStringStart = indentString) => `${indentStringStart}${string.replace(REGEXP_INDENT_LINE, `\n${indentString}`)}`
const indentLineList = (stringList, indentString = ' ', indentStringStart = indentString) => `${indentStringStart}${str... |
const Discord = require('discord.js');
const config = require('../../config.js');
const moment = require('moment')
const Guild = require('../../database/models/guild');
const Canvas = require('canvas')
const { registerFont } = require('canvas');
registerFont('./util/fonts/ZenDots-Regular.ttf', { family: 'Zen Dots' })
c... |
"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
var _a
;("use strict")
const internal_1 = require("../internal")
const ObservableMapMarker = {}
// just extend Map? See also https://gist.github.com/nestharus/13b4d74f2ef4a2f4357dbd3fc23c1e54
// But: https://github.com/mobxjs/mobx/issues/1556
cl... |
import React, { useState, useEffect } from 'react';
import "./Shipment.css"
import { getDatabaseCart, removeFromDatabaseCart, processOrder } from '../../utilities/databaseManager';
import CartProducts from '../CartProducts/CartProducts';
import { useForm } from 'react-hook-form'
import { useAuth } from '../Login/useAut... |
import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
class Anchors extends Component{
constructor(props) {
super(props);
this.state = {
value: this.props.oldValue,
researcherID: localStorage.getItem('ID'),
token: localStorage.get... |
import { createLogger } from "@jsenv/logger"
import {
createObservable,
createCompositeProducer,
} from "@jsenv/server/src/internal/observable.js"
// https://www.html5rocks.com/en/tutorials/eventsource/basics/
export const createSSERoom = ({
logLevel,
effect = () => {},
// do not keep process alive because ... |
/**
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
#!/usr/bin/env node
// @Author: <NAME>
// @Date: 1/15/2018
// @Description: Easy way to convert ArcGIS Server service to GeoJSON
// and shapefile format. Good for backup solution.
// @services.txt format :: serviceLayerURL|layerName|throttle(ms)
// @githubURL : https://github.com/tannerjt/AGStoShapefile... |
const fs = require('fs-extra');
const globby = require("globby");
const namedRegexp = require("named-js-regexp");
const os = require('os');
const path = require('path');
const pathExists = require('path-exists');
const prompt = require('prompt-sync')();
const defaultReplacements = require('./lib/replacements');
let us... |
function onBoardClick(e) {
if (!document.getElementById("changePlayerButton").classList.contains("hideButton"))
return;
var parent = e.parentElement;
if (parent.children[0].getAttribute("hidden") === "hidden")
return;
showTry(parent);
if (!parent.children[1].src.includes("agua_tem_na... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createMentionPlugin, {
defaultSuggestionsFilter
} from 'bat-draft-js-mention-plugin';
import {
EditorState,
ContentState,
getDefaultKeyBinding,
Modifier
} from 'draft-js';
import strip from 'strip';
import highlighter from 'f... |
import { extend, extendStatic } from '../utils/objectCreationUtils.js'
import { EventTarget } from './EventTarget.js'
import { cloneNode } from '../utils/tagUtils.js'
import { html } from '../utils/namespaces.js'
const nodeTypes = {
ELEMENT_NODE: 1,
ATTRIBUTE_NODE: 2,
TEXT_NODE: 3,
CDATA_SECTION_NODE: 4,
EN... |
var dataTable
var token = $('#token').val();
$('.fecha').datepicker({ dateFormat: 'dd-mm-yy' });
$(".number").mask('99999999,99',
{ reverse : true, placeholder: "$ 0,00",
'translation': {9: {pattern: /[0-9]/} } } )
.attr({ maxLength : 12 });
$(".integer").mask('9999999999',
{ reverse : true, placeholder... |
/**
* @name ranges-push
* @fileoverview Gather string index ranges
* @version 5.1.0
* @author <NAME>, Codsen Ltd
* @license MIT
* {@link https://codsen.com/os/ranges-push/}
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _toConsumableArray = require('@babel/runtime/helpers/... |
//--------------------------------------------------------
//-- CLI utilities
//--------------------------------------------------------
'use strict';
const glob = require('glob');
const indentString = require('indent-string');
const omelette = require('omelette');
const os = require('os');
const... |
import React from "react"
import { CLIENT_RECAPTCHA_TOKEN, EMAIL_SERVICE_ENDPOINT } from "../../aws/config"
import styled, { keyframes } from "styled-components"
import * as theme from "../shared/theme"
const ldsRing = keyframes`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`... |
import PizZip from 'pizzip'
import JSZipUtils from 'jszip-utils'
import Docxtemplater from 'docxtemplater'
import expressions from 'angular-expressions'
import assign from 'lodash/assign'
export const FILE_TEMPLATE_AVAILABLE_AUTO_FILLABLE_FIELDS = [
{
key: 'expired_date',
value: 'expired_date',
text: 'Ex... |
/**
* mflo-polymer-components: Experiments with Polymer Elements and Tooling
*
* @author http://mflo.io
* @version 0.0.1
*/
// declare dependencies
var autoprefixer = require("gulp-autoprefixer");
var concat = require("gulp-concat");
// var debug = require("gulp-debug");
var eslint = require("gulp-eslint... |
//Accessing and using browser Web Audio API
var AudioContext = window.AudioContext || window.webkitAudioContext;
var audioCtx = new AudioContext();
//Enable gain-node to play within audio context
var gainNode = audioCtx.createGain();
gainNode.connect(audioCtx.destination);
gainNode.gain.value = 0.05;
//Four button fre... |
var fs = require('fs');
var pathLib = require('path');
var request = require('request');
var libraries = require('nconf');
var q = require('q');
var program = require('commander');
var JSZip = require('node-zip');
var minifyCommand = require('./minify');
var utils = require('../lib/utils');
// add promise variants of ... |
'use strict';
var _vue = require('vue');
var _vue2 = _interopRequireDefault(_vue);
var _BaseListing = require('../base-components/Listing/BaseListing');
var _BaseListing2 = _interopRequireDefault(_BaseListing);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
$(docum... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.writeStartFile = exports.writeIndexFile = exports.execR = exports.compile = exports.getTDCFiles = exports.exec = exports.isModule = exports.startTemplate = exports.args2Opts = exports.TDC_MERGE_EXPORTS = exports.TDC_MERGE_IMPORTS = exp... |
var Points = require('./points');
var Shapes = require('./shapes');
var Lines = require('./lines');
var mapMatrix = require('./map-matrix');
var glify = {
longitudeKey: 1,
latitudeKey: 0,
longitudeFirst: function() {
glify.longitudeKey = 0;
glify.latitudeKey = 1;
return glify;
},
latitudeFirst: fu... |
var _ = require('underscore'),
async = require('async'),
db = require('../../../db'),
DB_PREFIX = 'medic_api_integration_tests__',
dbBackups;
function byId(a, b) {
if(a._id === b._id) {
return 0;
} else if(a._id < b._id) {
return -1;
} else {
return 1;
}
}
function matches(expected... |
function ChangeReputationBarColor(value, text, selector) {
jQuery(selector).html('<div class="ui-progressbar-value ui-widget-header ui-corner-left ReputationBarValue" style="width: ' + value + '%; "></div>');
jQuery(selector).attr('aria-valuenow', value);
// 0%
var reputationbarvalue = '.Reputatio... |
var HandsonComponent = function(dataobjects, columns, selector){
var self = this;
self.table = null;
self.data = dataobjects;
self.columns = columns;
self.selector = selector;
self.FixedWidths = [];
self.Editable = [];
self.ExcelCopyPaste = false;
self.foreColor = "#... |
import React, { useContext, useState, useEffect } from "react";
import { Button, Row, Col } from "antd";
import { CreateTeamContext } from "../../../store/CreateTeamContext";
import { loadTeam } from "../../../store/localStorage";
import { createTeam, joinLeague } from "../../../helpers/api";
import { useHistory } from... |
/* global Vue*/
/* global io*/
/* global $*/
'use strict';
var socket = io.connect(GLOBAL.url);
var test = new Vue({
el: '#content',
data: {
error : GLOBAL.error,
players : [], //tableau des joueurs (token, username, points)
nbUsersMax : '',
nbUsersConnectes : 0,
nbQuest... |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function doUpdate() {
if (!_.isEmpty(tableRecords.data)) {
tableRecords.data = [];
tableRecords.removeEventLi... |
import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { StaticQuery, graphql, Link } from 'gatsby'
import { Card } from '../components/card'
import staticdata from '../../staticdata.json'
import Cell from '../components/cell'
import Header from '../components/heade... |
/*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
var __color = d3.scale.ordinal()
.range(['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd']);
function uniquevalues(value, index, self) {
return self.indexOf(value) === index;
}
function display (el, type, data) {
clear(el);
/*if (type == 'atom') {
... |
"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 rss = require('rss-to-json');
const {
homgot
} = require('./apiCall');
const {
animeflvGenres,
animeflvInfo,
imageUrlToBase64,
getAnimeCharacters,
getAnimeVideoPromo,
animeExtraInfo,
searchAnime,
transformUrlServer,
obtainPreviewNews,
structureThemes,
getAnimes,
getDirectory,
getThem... |
/**
* To use this macro, paste monster data from a pdf, for the core book:
* including the name of the monster, to the end of the "Tactics" section
*
* For the monster codex, manually type in the name, then copy from Manners to end of tactics and paste.
* Warning: the tilted character sheet can cause issues, depe... |
// MXFlutterFramework
// Copyright 2019 The MXFlutter Authors. All rights reserved.
//
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
const dart_sdk = require("dart_sdk");
const core = dart_sdk.core;
const dart = dart_sdk.dart;
const http = dart_sdk._http
l... |
import {
deepAccess,
getWindowSelf,
isArray,
isStr,
parseQueryStringParameters,
replaceAuctionPrice,
triggerPixel
} from '../src/utils.js';
import {config} from '../src/config.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER} from '../src/mediaTypes.js';
import {getRefe... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let _ = require('lodash');
let async = require('async');
const pip_services3_commons_node_1 = require("pip-services3-commons-node");
const pip_services3_components_node_1 = require("pip-services3-components-node");
const pip_services3_componen... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
/* eslint-disable jsdoc/check-types,
promise/prefer-await-to-callbacks, no-console */
const {join} = require('path');
const MediaWikiBot = require('mediawiki').Bot;
/**
* @typedef {PlainObject} MWReplaceConfig
* @property {string} endpoint URI
* @property {string} user
* @property {string} pass Password
* @proper... |
// Constant for drop-down menu
const ddMenu = document.getElementById("ddmenu");
// Constants for the array size slider
const slider = document.getElementById("myRange");
const outputSlider = document.getElementById("length");
// Constants for the rate slider
const sliderRate = document.getElementById("sizeRange");
con... |
var emoji_icons = {
'(smiley)' : 'smiley.png',
'(sad)' : 'sad1.png',
'(wink)' : 'wink1.png',
'(angry)' : 'angry2.png',
'(inlove)' : 'inlove.png',
'(yummi)' : 'yummi.png',
'(laugh)' : 'laugh.png',
'(surprised)' : 'surprised.png',
'(moa)' : 'moa.png',
'(happy)' ... |
import odata from 'odata'
import axios from 'axios'
let utils = require('../../utils')
const state = {
currencyList: [
{id: 'PLN'},
{ id: 'EUR' },
{ id: 'CHF' },
{ id: 'USD' }
],
//total costs in pln
totalCosts: {
accPayback: 0,
othPayback: 0,
trvPayback: 0,
totalPayback: 0,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.