text stringlengths 5.97k 41.2k |
|---|
/* jshint node: true */
'use strict';
var mbus = require('mbus');
var queue = require('rtc-taskqueue');
var cleanup = require('./cleanup');
var monitor = require('./monitor');
var throttle = require('cog/throttle');
var pluck = require('whisk/pluck');
var pluckCandidate = pluck('candidate', 'sdpMid', 'sdpMLineIndex');... |
// Last time updated at July 04, 2014, 08:32:23
// Latest file can be found here: www.rtcmulticonnection.org/conversation.js
// <NAME> - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
// ____________________
// Conversation-v1.0.js
function User(config) {
var user = this;
... |
APIKEY=localStorage.svc_search_v2_articlesearch_api_key;
API_HOST='api.nytimes.com';
ARTICLESEARCHJSONURL='http://' + API_HOST + '/svc/search/v2/articlesearch.json';
ARTICLESEARCHJSONPURL=ARTICLESEARCHJSONURL + 'p';
lastArticleSearchState='';
lastArticleSearchHash='#/articlesearch';
busy=false;
function putADDMeta(m... |
import Quill from 'quill';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descrip... |
// homebridge-soma/lib/SomaClient.js
// Copyright © 2021-2022 <NAME>. All rights reserved.
//
// Homebridge plug-in for SOMA devices.
'use strict'
// const events = require('events')
const BleClient = require('./BleClient')
const {
toHex // , bufferToHex //, bufferToManufacturer, nameToKey, uuidToString
} = requir... |
// © 2009–2010 EPFL/LAMP
// code by <NAME> with contributions by <NAME>, "spiros", <NAME> and <NAME>
var scheduler = undefined;
var title = $(document).attr('title');
var lastFragment = "";
var Index = {};
(function (ns) {
ns.keyLength = 0;
ns.keys = function (obj) {
var result = [];
var key... |
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 __());
};
var BABYLON;
(function (BABYLON) {
var StandardRenderingPi... |
/*
1. clean up row/column confusion
2. fix bug with diff col/row counts
3. be able to switch levels
4. maybe make clicks per column
5. hover highlights
6. figure out color scheme that makes sense
*/
var ON = 1;
var OFF = 0;
var DISABLED = -1;
var stage;
var STAGE_WIDTH = 1000;
var STAGE_HEIGHT = 1000;
var BUTTON_SI... |
'use strict';
const request = require('request');
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const adapterName = require('./package.json').name.split('.').pop();
const BASE_URL = 'https://api.fitbit.com/1/user/';
const clientID = '22BD68';
const clientSecret = '<... |
import _isNil from 'lodash/isNil';
import _isArray from 'lodash/isArray';
var _this = this;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = sourc... |
/*jslint node: true */
'use strict';
const _ = require('lodash');
const constants = require('ocore/constants.js');
const conf = require('ocore/conf');
const db = require('ocore/db');
const eventBus = require('ocore/event_bus');
const privateProfile = require('ocore/private_profile');
const validationUtils = require('oc... |
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed ... |
'use strict';
var map;
var placeService;
var elevationService;
var infoWindow;
var infoWindowContent;
var fourSquareErrorFlag = false;
var mapMarkers = [];
/**
* KnockoutJS dynamic list handling
*/
var ListMarker = function(data) {
this.name = data.name;
this.elevation = ko.observable(data.elevation)... |
import { delimiter } from '../modules/core/regex.js'
import { radians } from '../utils/utils.js'
import { register } from '../utils/adopter.js'
import Element from '../elements/Element.js'
import Point from './Point.js'
function closeEnough (a, b, threshold) {
return Math.abs(b - a) < (threshold || 1e-6)
}
export d... |
var express = require('express'),
http = require('http'),
bcrypt = require("bcrypt"),
// Setup the audio stream decoder, system audio speaker,
// and the passthrough stream for the audio passed from spotify
Lame = require('lame'),
lame = new Lame.Decoder(),
Speaker = require('speaker'),
... |
/*
node-http-proxy.js: http proxy for node.js
Copyright (c) 2010 <NAME>, <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without... |
/**
Copyright 2017-2018 Trend Micro
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
// Whoo! Welcome to spopsh's source code!! ❤ ahstro \\
// TODO:
// Alias commands with arguments
// Refactor all render code into separate functions
// Merge promptForInput() into execute()
// Add external ip support
// Align title, title, album, etc.
// Index length (01 if 10+, 001 if 100+, etc.)
// Major refactoring... |
// User Controllers File.
const model = require("../models/");
const { validationResult } = require("express-validator");
const fs = require("fs");
const bcrypt = require("bcrypt");
const passport = require("passport");
const {OAuth2Client} = require('google-auth-library');
const gclient = new OAuth2Client(process.env.... |
import React, {Component} from 'react'
import {Link} from 'react-router';
import {findDOMNode} from "react-dom"
import QRreader from 'react-qr-reader'
import Modal from 'react-modal'
import swal from 'sweetalert'
import numeral from 'numeral'
class Index extends Component {
constructor(props) {
super(props)
... |
// NOTE
// https://w3c-test.org/submissions/4768/payment-request/payment-request-show-accept-promise-returned.html
class PaymentAddress {
constructor(
country,
addressLine,
region=null,
city=null,
dependentLocality=null,
postalCode=null,
sortingCode=null,
languageCode=null,
organi... |
const express = require('express')
const router = express.Router()
const CusModel = require('../models/customers')
const BookModel = require('../models/bookInfo')
const CheckInfoModel = require('../models/checkInfo')
const RoomModel = require('../models/rooms')
const EmptyRoomModel = require('../models/emptyRoomNumber... |
require('./index.scss');
var AlloyFinger = require('COMMON/alloy_finger.js');
var datePrice = require('COMMON/date.js');
var Alert = require('COMMON/Alert-mb.js');
var warning = require('COMMON/warning-mb.js');
var toast = require('COMMON/toast.js');
toast.show();
var dateJson = {
0: '周一',
1: '周二',
2: '周三',... |
#!/usr/bin/env node
if (!process.env.CI) require('dotenv-safe').load();
const args = require('minimist')(process.argv.slice(2), {
boolean: [
'validateRelease',
'verboseNugget'
],
default: { verboseNugget: false }
});
const fs = require('fs');
const { execSync } = require('child_process');
const got = re... |
import * as utils from "base/utils";
import Component from "base/component";
import * as iconset from "base/iconset";
/*!
* VIZABI BUTTONLIST
* Reusable buttonlist component
*/
//default existing buttons
const class_active = "vzb-active";
const class_hidden = "vzb-hidden";
const class_active_locked = "vzb-active-l... |
/**
* @license
* Copyright (c) 2014, 2022, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
import { h, Fragment, Component } from 'preact';
import { parseJSONFromFontFamily } from 'ojs/ojthemeutils';... |
// Инициализация переменных
if(typeof w_mini == "undefined")
{
var w_mini = 1;
}
if(typeof h_mini == "undefined")
{
var h_mini = 1;
}
if(typeof wh_cut == "undefined")
{
var wh_cut = 100;
}
if(typeof number_zone == "undefined")
{
var number_zone = 3;
}
if(typeof images == "undefined")
{
var imag... |
// This file manages the game's logic for most visual things and contains various functions
// for drawing on and manipulating the canvas, used by the game client.
////////// Constructors \\\\\\\\\\
function Label(position, text, size, visible, clickable, disabled, font, callback) {
if (logFull) console.log("%s(%j)"... |
import m from 'mithril';
import prop from 'mithril/stream';
import { catarse } from '../api';
import _ from 'underscore';
import models from '../models';
import h from '../h';
import startVM from '../vms/start-vm';
import youtubeLightbox from '../c/youtube-lightbox';
import slider from '../c/slider';
import landingQA f... |
/*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free... |
$(function(){
$(".menu-mainnav li").each(function(){
$(this).mouseover(function(){
$(".menu-subnav .navsonbox").eq($(this).index()).addClass("on").fadeIn().siblings().removeClass("on").fadeOut();
});
});
$(".menu-subnav").mouseleave(function(){
$(".menu-subnav .navsonbox").hide();
})
});
//将时间减去1秒,计算天、时、分... |
var express = require('express');
var router = express.Router();
var utils = require('../util');
var Promise = require('promise');
let dbPesquisa = [];
let questionario = [];
questionario.push({});
// #1 C, R, F, A, S
let pergunta = { 'situacao': 1,
'titulo': 'Várias pessoas do time ao qual você pe... |
//|•••••••••••••••••••••••••••••••••••••••••••••••••••
//| :::::::: Documento Javascript :::::::::::
//| •••••••••••••••••••••••••••••••••••••••••••••••••
/*
Autor: <NAME>
Día de estudio: 4
Fecha 20 de mayo de 2021
Descripción: Se utilizó lo apendido elcursos anteriores como las variables (var), las c... |
class jfSidebarController {
/* @ngInject */
constructor($scope, $state, $timeout, $interval, $window, $rootScope, JFrogEventBus) {
$rootScope.jfSidebar = this;
this.trim = _.trim;
this.currentTab = "Home";
this.$state = $state;
this.$timeout = $timeout;
this.$interval = $interval;
this.$window = $win... |
//-------------LUNA-------------------------------
var SKYmaterial = new THREE.MeshBasicMaterial( { map: THREE.ImageUtils.loadTexture('images/moon.jpg'),color: 0xFFFFFF, side: THREE.DoubleSide } );
var SKYradius = 50000; //dimensiones del cielo
var SKYwidthSegments = 32;
var SKYheigthSegments = 32;
var SKYangleStar... |
//const os = require("os");
const fs = require('fs');
const path = require('path');
const async = require("async");
const Vector3 = require("./Vector3.js").Vector3;
const Box3 = require("./Box3.js").Box3;
const Plane = require("./Plane.js").Plane;
const PlaneClipRegion = require("./PlaneClipRegion.js").PlaneClipReg... |
// @flow
import React, { PureComponent } from 'react';
import './boilerplate.css';
import './App.css';
import OptimizerView from "../OptimizerView/OptimizerView";
import ExploreView from "../ExploreView/ExploreView";
import FileInput from "../../components/FileInput/FileInput";
import Modal from "../../components/Moda... |
if ( typeof aiosp_data != 'undefined' ) {
jQuery.each( aiosp_data, function( index, value ) {
// aiosp_data[index] = value.json.replace(/"/g, '"');
// aiosp_data[index] = jQuery.parseJSON( value );
if ( index == 0 ) {
if ( typeof value.condshow == 'undefined' ) {
aiosp_data[index].condshow = [];
}
... |
// @ts-nocheck //because of logger, we can't ts-check
const azureHelper = require('./azure-helper');
const azureApi = require('./azure-got-wrapper');
const hostRules = require('../../util/host-rules');
const { appSlug } = require('../../config/app-strings');
const GitStorage = require('../git/storage').Storage;
let co... |
if (!Array.prototype.remove) {
Array.prototype.remove = function(val) {
var i = this.indexOf(val);
return i > -1 ? this.splice(i, 1) : [];
};
}
// d3.csv('assets/data/full_data.csv', function(data,error){
// console.log(data['Country Name']);
// })
draw(data);
function draw(data) {
// co... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var styled = _interopDefault(require('styled-components'));
function _taggedTemplateLiteral(strings, raw) {
if (!raw) {
... |
import { AxisType } from "../component/axis";
import { divisors, makeTickPixelPositions, getTextHeight, getTextWidth, } from "./calculator";
import { range, isString, isUndefined, isNumber, calculateSizeWithPercentString, includes, } from "./utils";
import { ANGLE_CANDIDATES, calculateRotatedWidth, calculateRotatedHeig... |
import { errors } from 'appium-base-driver';
import { util } from 'appium-support';
import { iosCommands } from 'appium-ios-driver';
import _ from 'lodash';
import log from '../logger';
let helpers = {}, extensions = {}, commands = {};
commands.moveTo = iosCommands.gesture.moveTo;
commands.mobileShake = async funct... |
/**
* Build styles
*/
require('./index.css').toString();
const RecordRTC = require('recordrtc/RecordRTC');
const Bezier = require('bezier-js')
const faceapi = require("face-api.js/dist/face-api");
/**
* RecordScreen Tool for the Editor.js 2.0
*/
class RecordScreen {
static get toolbox() {
return {
... |
const TestToken = artifacts.require('Token.sol');
const DAOContract = artifacts.require('MockKyberDaoMoreGetters.sol');
// using mock contract here, as we need to read the hasInited value
const KyberStaking = artifacts.require('KyberStaking.sol');
const Helper = require('./helper.js');
const {precisionUnits, zeroBN, z... |
let defaultPeriods = [
[
{ x: 0, y: 0, w: 3, h: 1, i: "0", name: "Ln0", num: 0, focus: false },
{ x: 3, y: 0, w: 3, h: 1, i: "1", name: "Lan1", num: 0, focus: false },
{ x: 6, y: 0, w: 3, h: 1, i: "2", name: "Lan2", num: 0, focus: false },
{ x: 0, y: 1, w: 3, h: 1, i: "3", name: "Lan3", num: 0, focus:... |
// Store inputs from forms
let assetRets, assetVols, corrs, numAssets, asset_weights;
// Store losses at each epoch
let lossArray;
function update(){
// Fetch data from forms
eqret = $('#eqret').val();
bondret = $('#bondret').val();
goldret = $('#goldret').val();
cashret = $('#cashret').val();
... |
require('babel-polyfill');
require('imagesloaded');
require('jquery-form')(window, $);
require('jquery-match-height');
require('lightslider/dist/js/lightslider.min.js');
const Polyglot = require('node-polyglot');
const jstz = require('jstimezonedetect');
const mergeWith = require('lodash.mergeWith');
const Thunder = ... |
/*
Queue.js
A function to represent a queue
Created by <NAME> - http://code.iamkate.com/ - and released under the terms
of the CC0 1.0 Universal legal code:
http://creativecommons.org/publicdomain/zero/1.0/legalcode
*/
/* Creates a new queue. A queue is a first-in-first-out (FIFO) data structure -
... |
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _createClass from 'babel-runtime/helpers/createClass';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import ReactDOM f... |
//////////////////////////////
// Module Imports
//////////////////////////////
// #region
import cloneDeep from 'lodash/cloneDeep';
import circle from '@turf/circle';
import turfLength from '@turf/length';
import {lineString} from '@turf/helpers';
import uuid from 'uuid/v4';
import dataAccess from './kickbox.identi... |
/*eslint-disable*/
import React, { Component,Fragment } from 'react';
import { connect } from 'dva';
import {Row,Col,DatePicker,Select,Button,message,Table,Tag} from 'antd';
import * as PIXI from "pixi.js";
import {translateDecare,cutPoint,showAlarmInfo} from '@/utils/utils'
import AnimationTwo from "../common/animatio... |
'use strict';
var css = require('insert-css');
var fs = require('fs');
var Plotly = require('plotly.js');
var linspace = require('ndarray-linspace');
var fft = require('ndarray-fft');
var pool = require('ndarray-scratch');
var fill = require('ndarray-fill');
var ndarray = require('ndarray');
var cwise = require('cwis... |
const tileDisplay = document.querySelector('.tile-container')
const keyboard = document.querySelector('.key-container')
const messageDisplay = document.querySelector('.message-container')
let played = 0;
let win = 0;
let currentStreak = 0;
let MaxStreak = 0;
let ratio = 0
let wordle
let currenturl = window.location.o... |
////////////////////////////////////////////////////////////////////////////////
// Definitions
////////////////////////////////////////////////////////////////////////////////
/**
* Strings for species names
* @readonly
* @type {Array}
*/
const SPECIES = [
"UNKNOWN",
"BULBASAUR",
"IVYSAUR",
"VENUSAUR",
"... |
// Globally define download speed in bytes per second
var downloadSpeed = 0;
var category = []
$(document).ready(function () {
$.get(WEBDIR + 'nzbget/GetCategorys', function(data) {
if (data) {
category = data;
$.each(data, function (i, cat) {
var option = $('<option>... |
// Copyright Epic Games, Inc. All Rights Reserved.
var enableRedirectionLinks = true;
var enableRESTAPI = true;
// Microsoft Notes: This file has additions to the Unreal Engine Matchmaker that were done in conjuction with Epic to
// add improved capabilities, resiliency and abilities to deploy and scale Pixel Streamin... |
$(document).ready(function() {
$.ajax({
url: base_url+"/executionResults/getAllRunnerByCompany",
method: "get",
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', "Bearer " + readCookie("TAaccess"));
},
success: function(dataBrowser) {
var appOptions = "";
var payload = "";
var i... |
// Satori near line 190
var userMarker;
var userMarker2;
var map;
var zoomed = false;
var programmaticMove = false;
var search = false;
var requestNumber = 1;
var finalData;
var finalId;
var isFood = false;
var spinner;
var venues = undefined;
var reports = undefined;
var locationReports = undefined;
var l... |
import { setArraySize } from './utils';
import Triangulator from './Triangulator';
/**
* @class
* @memberof Tiny.spine
*/
class SkeletonClipping {
constructor() {
/**
* @private
* @type {Tiny.spine.Triangulator}
*/
this.triangulator = new Triangulator();
/**
* @private
* @type... |
// main proc for Agama
// this app spawns iguana in background in nontech-mode
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');
const os = require('os');
const md5 = require('./routes/md5');
const exe... |
var Utils = require('asNEAT/utils')['default'],
NoteOscillatorNode = require('asNEAT/nodes/noteOscillatorNode')['default'],
OscillatorNode = require('asNEAT/nodes/oscillatorNode')['default'],
OutNode = require('asNEAT/nodes/outNode')['default'],
Connection = require('asNEAT/connection')['default'],
... |
import TextureUI from '@/ui/withtexture';
// import snippet from 'tui-code-snippet';
import templateHtml from '@/ui/template/submenu/scenesettingmenu';
import settingHtml from '@/ui/template/texture/scenesettingcfg';
// import settingitemHtml from '@/ui/template/texture/scenesettingitem';
// import itemHtml from '@/ui/... |
(function ($) {
'use strict';
/**
* All of the code for your public-facing JavaScript source
* should reside in this file.
*
* Note: It has been assumed you will write jQuery code here, so the
* $ function reference has been prepared for usage within the scope
* of this function.
... |
'use strict';
// to learn more about the cheerio library and what it is doing, look at their documentation: https://www.npmjs.com/package/cheerio
const cheerio = require('cheerio');
/* ------------------------------------------------------------------------------------------------
CHALLENGE 1 - Review
There's a typo... |
'use strict';
function Modal() {
this.substrate = document.querySelector('#substrate');
this.setListeners();
}
Modal.prototype.watch = function () {
if(!app.modal.innerHTML.length){
return null;
}
var
imgPeview = app.modal.querySelector('.img_preview'),
... |
//Global variables:
var map;
var marker;
var latitude;
var longitude;
var ID = "";
var gsMarkerArray = [];
var prevInfoWindow;
var chart;
var closeButton = null;
var openingTimesAlreadyShown = 0;
var kmZahl = 5;
var TSChoice = "alle";
var Circle;
var Location;
//for running the application on a remote server un... |
const normals = require('angle-normals')
const mat4 = require('gl-mat4')
const vec3 = require('gl-vec3')
var control = require('control-panel')
var rayTriIntersect = require('ray-triangle-intersection');
const fit = require('canvas-fit')
const canvas = document.body.appendChild(document.createElement('canvas'))
var mou... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... |
// Files that need to be loaded
var files = ["gameElements.json"];
// Create Hexi instance
var g = hexi(910, 512, setupTitleScreen, files);
// Set background color and scale to canvas
g.backgroundColor = "black";
g.scaleToWindow();
// Start Hexi
g.start();
//healthBar = undefined,
var title = undefined,
playBu... |
const { sampleSize } = require('lodash')
const { SubmitAndEvaluateError } = require('../../api/rewards')
const { decodeHashId } = require('../../utils/utils')
// `BaseRewardsReporter` is intended to be subclassed, and provides
// "reporting" functionality to RewardsAttester (i.e. posts to Slack if something notable ha... |
/*
* SoundTouch JS audio processing library
* Copyright (c) <NAME>
* Copyright (c) <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at you... |
/*This is an Example of Grid View in React Native*/
import React, { Component } from 'react';
//import rect in our project
import {
StyleSheet,
View,
FlatList,
ActivityIndicator,
Image,
CameraRoll,
TouchableOpacity,
Platform,
Vibration,
Dimensions,
Text,
Picker,
ImageEditor
} from 'react-nativ... |
/*****************************************
/ Code for highlighting (NOT RELEVANT NOW)
******************************************
/**
* Check if two sets of spans have any overlap.
*
* @param {Array.<{start: number, end: number}>} lspans .
* @param {Array.<{start: number, end: number}>} rspans .
* @returns {boolean... |
// jsonurl = url zum json renderer der anzuzeigenden seite
// geht das json durch und fügt alle felder entsprechend hinzu
// bestimmen der möglichen fields und in welcher seite man sich befindet
var gamefields = ["Aggregate Scores","Review Scores","Userdefined"];
var companyfields = ["Defunct","Userdefined"];
v... |
//const { FlatShading } = require("three");
//const { ajaxTransport } = require("jquery");
var Colors = {
red: 0xf25346,
white: 0xd8d0d1,
brown: 0x59332e,
pink: 0xF5986E,
brownDark: 0x23190f,
blue: 0x68c3c0,
};
//three.js variables
var scene, camera, fieldOfView, aspectRatio, nearPlane, farPla... |
/*
* Copyright 2013-2021 Erudika. https://erudika.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 required by appli... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const readLines_1 = __importDefault(require("../readLines"));
const path_1 = __importDefault(require("pa... |
//Hello and thank you for checking out Simple Weather, an easy to use weather App made by <NAME>.
//I hope you enjoy looking through the code. Feel free to reach out to me with any questions at <EMAIL>
var url = "";
var request = new XMLHttpRequest();
var debugLocation = false;
var debugUrl = false;
var debugCach... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.findModTarget = exports.DocumentModifier = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "fun... |
'use strict'
const tap = require('tap')
const Api = require('../api')
const Context = require('../context')
const TypeEnum = require('../types/enum')
const TypeNumber = require('../types/number')
const parent = require('path').basename(__filename, '.js')
const helper = require('./helper').get(parent)
const assertNoEr... |
pagelayer_svg_cache = {};
var pagelayer_document_width;
// For automatic row parent change
jQuery(window).resize(function(){
var new_vw = jQuery(document).width();
if(new_vw == pagelayer_document_width){
return false;
}
pagelayer_document_width = new_vw;
// Set a timeout to prevent bubbling
setTimeou... |
var fs = require('fs')
, path = require('path')
, localCache = require('./local_cache')
, storage = require('./storage')
, crypto = require('crypto')
, imageProcessor = require('./image_processor')
, async = require('async')
, util = require('util')
, moment = require('moment')
, deepExtend = require('deep-... |
import React, { useState, useEffect } from 'react';
import {
Checkbox,
Form,
TextArea,
Button,
Confirm,
GridColumn,
Grid,
Divider,
Icon,
Input,
Dropdown,
Select,
Dimmer,
Card,
Table
} from 'semantic-ui-react';
import { Router, Route, Switch, Link, useParams, useHistory, useLocation } from 'react-router-d... |
const { Client, CommandInteraction } = require("discord.js");
const Discord = require("discord.js");
const db = require("quick.db");
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
const Canvas = require('canvas');
const translate = require("@iamtraction/google-translate");
const ... |
import InputWithSearchWindow from './InputWithSearchWindow';
import InputWithSearchForWindow from './InputWithSearchForWindow';
import funcs from '../functions/functions';
import EventSave from './EventSave';
import weakMapIWS from '../functions/weakMapIWS';
import ContainerData from './ContainerData';
import {readOnly... |
import React, { Component } from 'react'
import { Row, Col, Spinner } from 'reactstrap'
import { Link } from 'react-router-dom'
import Lightbox from 'react-lightbox-component';
import { connect } from 'react-redux'
import { addToCart, viewItem, saveCartItemTotal } from './../actions/cartActions.js'
import "react-lightb... |
function breath() {
return ' ';
}
function logFilePath(filePath) {
return "'{0}'".format([chalk.cyan(filePath)]);
}
/**
* @function
* opens a tream on the help.md file and read all lines to the end. It will outpout the content
* formated with colors to make more sens to the commun user.
*/
function lo... |
function toggleSpotify() {
var spotifyIframe = $("#spotify-iframe");
var spotifyButton = $(".btn-spotify span");
if (spotifyIframe.height() === 80) {
spotifyIframe.animate({height: 300}, 'fast');
spotifyButton.text("Less");
}
if (spotifyIframe.height() === 300) {
spotifyIframe.animate({height: 80}, 'fast');... |
const { MessageEmbed } = require('discord.js');
const { getSelection } = require('../Sebedius');
const YZJourney = require('../yearzero/YZJourney');
const YZTerrainTypesFlags = require('../yearzero/YZTerrainTypesFlags');
const { YZEmbed } = require('../utils/embeds');
const { capitalize, trimString, strCamelToNorm } = ... |
// Copyright 2020 Zaiste & contributors. 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 applic... |
/*let getdataNumber = function(){
let number = document.getElementById("number").value;
console.log(number);
}*/
const showName = document.getElementById('show-name');
const showImg = document.getElementById('show-img');
const showCrew = document.getElementById('show-crew');
const showRating = document.getElem... |
//=========================================================================
// DECLARE VARIABLES
//=========================================================================
let statesJSON;
let flagsJSON;
let statesList = [];
let bubbleSize = 40;
let bubbleColorMain = "#259F40";
let bubbleColorClick = "#FF8A00";
let ... |
;(function($) {
$.fn.serializeObject = function() {
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name]) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
o[this.name] = this.value || '';
}
})... |
"use strict";
require("core-js/modules/es.regexp.exec.js");
require("core-js/modules/es.string.split.js");
require("core-js/modules/es.array.slice.js");
require("core-js/modules/es.function.name.js");
exports.__esModule = true;
exports.Condition = exports.CriterionFunctionCompute = void 0;
require("regenerator-ru... |
import * as joint from 'jointjs/dist/joint.min';
import ContextMenu from '@playcanvas/pcui/ContextMenu';
import Container from '@playcanvas/pcui/Container';
import Label from '@playcanvas/pcui/Label';
import TextInput from '@playcanvas/pcui/TextInput';
import BooleanInput from '@playcanvas/pcui/BooleanInput';
import Nu... |
const db = require('quick.db');
const Discord = require('discord.js');
module.exports = {
name: "cards",
category: "economy",
description: "shows all collected cards",
run: async (client, message, args) => {
let user = message.mentions.members.first() || message.author;
let cards = await db.... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProp... |
var consts = require('./const.js');
var TYPE_ELEMENT = consts.TYPE_ELEMENT;
var TYPE_ATTRIBUTE = consts.TYPE_ATTRIBUTE;
var TYPE_TEXT = consts.TYPE_TEXT;
var TYPE_COMMENT = consts.TYPE_COMMENT;
var ATTR_TYPE_BY_NAME = consts.ATTR_TYPE_BY_NAME;
// parsing variables
var SYNTAX_ERROR = 'Invalid or unsupported syntax';
/... |
/**
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* This software is a derived product, based on:
*
* Simple Machines Forum (SMF)
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.