text stringlengths 8.5k 48.7k |
|---|
export var RTLD_LAZY = 1;
export var RTLD_NOW = 2;
export var RTLD_GLOBAL = 8;
export var RTLD_LOCAL = 4;
export var E2BIG = 7;
export var EACCES = 13;
export var EADDRINUSE = 48;
export var EADDRNOTAVAIL = 49;
export var EAFNOSUPPORT = 47;
export var EAGAIN = 35;
export var EALREADY = 37;
export var EBADF = 9;
export ... |
$(pageInit);
var jsonData = { articleId: 0 };
var xh = null;
var notice = new noticeAlert(true,true);
function pageInit() {
xh = $('#editor').xheditor({
plugins: getCodePlugin(),
layerShdow: 0,
tools: "Bold,Italic,Underline,Strikethrough,Fontface,Blocktag,FontSize,FontColor,BackColor,|,... |
/* eslint-disable import/no-cycle */
// @todo fix circular dep
import path from 'path';
import fs from 'fs';
import chalk from 'chalk';
import child_process from 'child_process';
import { executeAsync } from '../exec';
import { createPlatformBuild } from '../cli/platform';
import {
logTask,
logError,
logWar... |
$(document).ready(function() {
$(".jsoneditor").css('height', 'auto');
setDefaultData();
conditionalCode();
$("#me").click();
if($("#viewName").val() == "lorem-ipsum"){
addCopyPreviewButtonToLoremPage();
}
if($("#file2").length != 0) {
var zone = new FileDrop('file2Div', {input: false});
zone.event(... |
/*
* Copyright 2011 <NAME>, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
const lib = require('../../lib/index')
const getmyApp = require('../getapp')
import {
commonBehavior,
commonMethodBehavior,
setPropsHooks,
_addClass,
_removeClass,
_hasClass,
listInstDelegate,
fakeListInstance
} from "./common";
const {
resetItem,
reSetItemAttr,
reSetArray,
reSetList,
isArra... |
/**
* jquery.textarea-highlighter.js - jQuery plugin for highlighting text in textarea.
* @version v0.6.8
* @link https://github.com/marexandre/jquery.textarea-highlighter.js
* @author <EMAIL>
* @license MIT license. http://opensource.org/licenses/MIT
*/
var marexandre;
(function (marexandre) {
'use strict';
... |
/**
* App模块
*/
import React, { Component } from 'react';
import moment from 'moment';
import _ from 'lodash';
import { Col, Row, ColorPicker, Checkbox ,Select, Popover, Panel, Icon, Tabs } from 'tinper-bee';9
import Radio from 'bee-radio';
import Grid from 'bee-complex-grid';
import {treeData, tableColumns, tableData... |
//Create header
function renderHeader() {
var header = $("<header/>", {
"id": "header"
}).prependTo("#page");
var ul = $("<ul/>").appendTo(header);
var headerLogoLi = $("<li/>", {
"role": "presentation",
"id": "header_logo"
}).appendTo(ul);
var homeLink = $("<a/>", {
"href": "ht... |
var view = null;
var dadaset_view = null;
var type = new ReactiveVar('');
var limit1 = new ReactiveVar(0);
var limit2 = new ReactiveVar(0);
var limit3 = new ReactiveVar(0);
var selected = new ReactiveVar([]);
var selected2 = new ReactiveVar([]);
var lebeledPreLists = new ReactiveVar([]);
var limitSetp = 10;
//重新训练
ret... |
import React from 'react';
import { connect } from 'react-redux'
import { DeviceEventEmitter, StyleSheet, Image, ScrollView, View, Text, TextInput, Platform, Dimensions, Modal, TouchableOpacity, KeyboardAvoidingView } from 'react-native';
import UImage from '../../utils/Img'
import UColor from '../../utils/Colors'
impo... |
var fSelectSeed = 0;
//{
// DIV: id | node
// data: JSON | {} | []
// mode: 0(single) | 1(multi)
// autocomplete: true | false
// formName: string
//}
published.Select = function (init, choiceUI) {
if (!WAVE.exists(init)) throw "Select.ctor(init=null)";
if (WAVE.strEmpty(init.DIV)) throw "Select.cto... |
// Define variables needed by core/core.js
var _wrs_int_conf_file = "integration/configurationjs.php";
var _wrs_plugin_version = "7.2.0.1389";
// Searching wiriscontextpath on CKEditor config.
// If MathType is an external plugin contextPath is external plugin domain:
var _wrs_cont_contextPath;
// Mounting route depe... |
function resize() {}
function init() {
/* bubbleChart creation function.
*
*/
function floatingTooltip(tooltipId, width) {
// Local variable to hold tooltip div for
// manipulation in other functions.
var tt = d3v3.select('body')
.append('div')
.attr('class', 'tooltip')
.attr('id', tooltipId)
... |
/* global PIXI TileUtilities createjs */
// create the credit reel content
const CREDITREEL = `
gameplay by:
<NAME>
art by:
<NAME>\n
music by:
<NAME>\n\n\n
tech used:
atom
bfxr
createJS
ecmascript 2015
eslint
freac
garageband
gimp
http-server
liverelo... |
import Base from '../../../Core/Base.js';
import DomSync from '../../../Core/helper/DomSync.js';
import DomClassList from '../../../Core/helper/util/DomClassList.js';
import Rectangle from '../../../Core/helper/util/Rectangle.js';
import DateHelper from '../../../Core/helper/DateHelper.js';
// TODO: No need to keep th... |
let allUsers = []
let allContent = []
let converter = new showdown.Converter({ tables: true })
let totalVestingShares, totalVestingFundSteem;
/**
* gets totalVestingShares and totalVestingFundSteem from STEEM API to use later
*/
steem.api.getDynamicGlobalProperties((err, result) => {
totalVestingShares = result.to... |
var yo = require('yo-yo')
var csjs = require('csjs-inject')
var helper = require('../../lib/helper')
let globalRegistry = require('../../global/registry')
const EventEmitter = require('events')
// Component
export class VerticalIcons {
constructor (name, appStore, homeProfile) {
this.store = appStore
this.... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
var _StringPrototypeIncludes = String.prototype.includes;
/**
* ES10.0 21.2.5.2.3
* Return the index of the next ... |
/**
*
* options:
* logger (e.g wiston)
* destinationPort || 60128
* broadcastPort || 60128
* ip (optional)
* port (optional)
*
* Events:
* -warning
* -connected
* -disconnect
* -error
* -msg
* */
// native modules
const net = require('net');
const {EventEmitter} = require('events');
// 3rd party mo... |
/* eslint-disable no-await-in-loop */
/* global actions, api */
const UTILITY_TOKEN_SYMBOL = 'BEE';
const MAX_NUM_UNITS_OPERABLE = 50;
const MAX_BID_INCREMENT_PERCENT = 10000;
const CONTRACT_NAME = 'nftauction';
actions.createSSC = async () => {
const tableExists = await api.db.tableExists('auctions');
if (table... |
/*
© 2010 by Fictorial LLC
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 limitation the rights
to use, copy, modify, merge, publish, distribute, sublicens... |
window.onmouseover = pon;
window.onmouseout = quita;
window.onmousedown = dale;
window.onload = carga;
window.onkeydown = fufu;
window.onbeforeunload = bye;
var lastElement = undefined;
var lastContainer = undefined;
var lastEvent = undefined;
var editing = false;
var blocks = new Array();
var vblocks = new Array();
v... |
import * as utils from "base/utils";
import Component from "base/component";
import axisSmart from "helpers/d3.axisWithLabelPicker";
const precision = 1;
//constants
const class_playing = "vzb-playing";
const class_loading = "vzb-ts-loading";
const class_hide_play = "vzb-ts-hide-play-button";
const class_dragging = "... |
// module bases for gadgets
var WKP = 0;
var LIBKERNEL = 1;
var LIBC = 2;
var LIBSYSMODULE = 3;
var SCENET = 4;
var SCENETCTL = 5;
var SCEIPMI = 6;
var SCEMBUS = 7;
var SCEREGMGR = 8;
var SCERTC = 9;
var SCEPAD = 10;
var SCEVIDEOOUT = 11;
var SCEPIGLET = 12;
var SCEORBISCOMPAT = 13;
var WEBKIT2 = 14;
var SCESYSCORE = 1... |
/*
Pitchfork Music Player Daemon Client
Copyright (C) 2007 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... |
// var mongo = require('mongodb');
var Promise = require('promise');
const https = require('https');
var express = require('express');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
var async = require("async");
var os = require( 'os' );
var mongoose = require('mo... |
// setup countries constants
const COUNTRIES = {
AF: {
countryCode: 'AF',
country: 'Afghanistan'
},
AX: {
countryCode: 'AX',
country: 'Åland Islands'
},
AL: {
countryCode: 'AL',
country: 'Albania'
},
DZ: {
countryCode: 'DZ',
country: 'Algeria'
},
AS: {
countryCode: 'AS',
country: 'American ... |
/* ==[ Threads.js ]===========================================================================================
THREADS
=========================================================================================================== */
class Thread {
constructor(el, num, p... |
function Actuator(name, type, gpio, value, min, max) {
var self = this;
self.name = ko.observable(name);
self.type = ko.observable(type);
self.gpio = ko.observable(gpio);
self.value = ko.observable(value);
self.min = ko.observable(min);
self.max = ko.observable(max);
self.enabled = ko.c... |
import { select } from 'd3-selection';
import { max, min } from 'd3-array';
import { scaleLinear, scaleLog } from 'd3-scale';
import { axisTop, axisRight, axisBottom, axisLeft } from 'd3-axis';
import { timeFormatLocale } from 'd3-time-format';
import { format, formatDefaultLocale } from 'd3-format';
import { html as... |
//** All Levels Navigational Menu- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Usage Terms: http://www.dynamicdrive.com/notice.htm
//** Current version: 2.2 See changelog.txt for details
var m... |
const activeDrawerItemClassName = 'mdui-color-theme-50 mdui-text-color-theme';
const weekChinese = ["日", "一", "二", "三", "四", "五", "六"]
const week = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
const carrierChinese = {
"Comic": "漫畫改編",
"Game": "遊戲改編",
"Novel": "小說改編",
"Original": "原創劇情",
}
const car... |
var BlobBuilder = Blob;
var browser = getBrowser();
var windowWidth = 1920;
var windowHeight = 1080;
var loaded = 0;
var low = false;
var gLine = false;
var musicName = false;
var bpmName = false;
var offsetName = false;
var hardshipName = false;
var leftName = false;
var rightName = false;
var musicFileElement = false... |
path = require('path');
var fs = require('fs');
var config = require(path.resolve(__dirname, 'config.json'));
var models = require(path.resolve(__dirname, 'models'));
var DubAPI = require('dubapi');
var roomHasActiveMods = false;
var skipTimer;
var botUser = {};
new DubAPI(config.auth, function (err, bot) {
ini... |
/*!
* FilePondPluginImageTransform 3.2.4
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
/* eslint-disable */
// test if file is of type image
const isImage = file => /^image/.test(file.type);
const createVector = (x, y) => ({ x, y });
const v... |
var url = 'http://'+$(location).attr('host');
function searchCEP() {
var cep = $('#cadCEP').val();
$.getScript("http://cep.republicavirtual.com.br/web_cep.php?formato=javascript&cep=" + cep, function () {
if (resultadoCEP["resultado"] != 0) {
$("#cadCity").val(unescape(resultadoCEP["cidade"]));
... |
/**
* @typedef {Object} DefaultOptions
* @property {Boolean} [useObsoleteKana=false] - Set to true to use obsolete characters, such as ゐ and ゑ.
* @example
* toHiragana('we', { useObsoleteKana: true })
* // => 'ゑ'
* @property {Boolean} [passRomaji=false] - Set to true to pass romaji when using mixed syllabar... |
'use strict';
var CODModule = /** @class */function () {
function CODModule() {}
CODModule.prototype.start = function (meta, results) {
return new Promise(function (resolve, reject) {
libDMB.data.get('tags', ["cod_suggestive_sell"]).then(function (result) {
result.cod_sugges... |
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();
function urlKey(name) {
var reg = new RegExp("(^|&... |
function clamp(n,min,max){
if (n <= min) return min
if(n >= max) return max
return n
}
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] = source[... |
let loadedCharacters = require('./characters')
let NAME_COL = 2,
ALIAS_COL = 3,
RANK_COL = 4,
CREW_COL = 5,
AFFINITY_COL = 6,
HATES_COL = 8,
ELITE_COL = 10,
ELITE_BOSS_COL = 11,
REP_COL = 14,
FUNDING_COL = 15,
WILLPOWER_COL = 16,
STRENGTH_COL = 17,
MOVEMENT_COL = 18,
ATTACK_COL = 19,
DEFENS... |
// ==UserScript==
// @name TagPro SoundPacks
// @description Change the default sounds with packs or individual files
// @author Ko
// @version 2.0
// @icon https://raw.githubusercontent.com/wilcooo/TagPro-ScriptResources/master/speaker.png
// @match *://*.koalabeast.com/*
// @m... |
/*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2020 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... |
// Copyright 2019 <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 limitation the rights
// to use, copy, modify, merge, publish, distribute... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
... |
/**
* 百度地图封装
* 使用:
*
* 1. 百度地图开放平台(`http://lbsyun.baidu.com/`),注册账户。
* 进入地图开放平台,应用管理里面的我的应用,创建应用。
* 选择 浏览器端,输入项目名称,创建成功后生成应用 key,比如 eTrip 的 ak:
* 应用 AK:AsOWTPuxmvBetfxXCT9GRzCo6MLVQyi5
* 2. 百度地图开放平台设置Referer 白名单,如wia设置为:\*.wia.pub\*
* 只有白名单里面的域名网页,才能访问。
* 设置为 \* 表示任何域名网站都能访问,被其他应用访问,次数过多,百度可能收费... |
if (!Object.create) {
Object.create = (function(){
function F(){}
return function(o){
if (arguments.length != 1) {
throw new Error('Object.create implementation only accepts one parameter.');
... |
//Import from background.js
var Settings = chrome.extension.getBackgroundPage().Settings;
var BungieNet = chrome.extension.getBackgroundPage().BungieNet;
var Application = chrome.extension.getBackgroundPage().Application;
var Tabs = {
Notifications: {
Element: null,
List: null,
Toolbar: null
},
Messages: {
... |
var slider = document.getElementById("myRange");
var sd_factor = document.getElementById("sd_factor");
var result = document.getElementById("result_header");
//sd_factor.innerHTML = slider.value;
//result_header.innerHTML = sd_factor.innerHTML;
function getDatabase(){
return fetch(fusionbase,otherParam).then(functi... |
import {makeMcListReadonly} from './medical-conditions.js';
var count = MODEL_COUNT;
function getRequest() {
return `
<div class="card request-item mb-3" id="request_${count}">
<div class="card-header" id="request_${count}_header">
${getRequestHeader()}
</div>
<div
id="collap... |
const ErrorCodes = {
"-10": "You may not roll dice or spin the bottle in frontpage.",
"-9": "Unknown.",
"-8": "Unknown.",
"-7": "Unknown.",
"-6": "Unknown.",
"-5": "An unknown error occurred.",
"-4": "A connection to the login server timed out. Please try again in a moment.",
"-3": "This... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/* eslint no-console: ["error", { allow: ["warn", "dir", "log"] }] */
'use strict';
const _ = require('lodash');
const automaticTeams = require('../../webhooks/... |
import React, { useState, useEffect, useMemo, useContext } from 'react';
import PropTypes from 'prop-types';
import {
Card,
Form,
Radio,
Select as AntdSelect,
Table,
Empty,
List,
Divider,
Tag,
Typography,
} from 'antd';
import WithRoles, {
RadioGroup as Group,
Select,
Input,
Checkbox,
Role... |
//http://datamaps.github.io/
//https://github.com/markmarkoh/datamaps/blob/master/README.md#getting-started
// Setup all our data
var rawEvents = null;
var countryToLatLong = null;
var allEvents = null;
var idLookup = null;
var timelineStart = 1789;
var timelineEnd = 1914;
var _timeline = null;
var _map = null;
var ... |
const HIGH_VIOLENT_CRIME = 996; // In 2018, D.C. was the state with the highest violent crime rate (https://www.statista.com/statistics/200445/reported-violent-crime-rate-in-the-us-states/)
const LOW_VIOLENT_CRIME = 112; // In 2018, Maine was the state with the lowest violent crime rate (https://www.statista.com/statis... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable no-console */
/* eslint-disable import/no-unresolved */
import React, { useEffect, useState, useContext } from 'react';
// eslint-disable-next-line no-restricted-imports
import { Select, Form, Input, Button, Checkbox, Spin } from 'antd';
import { ArrowR... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var TronWeb = _interopDefault(require('tronweb'));
var lodash = require('lodash');
var paymentsCommon = require('@faast/payme... |
// Copyright 2018 Hewlett Packard Enterprise Development LP
//
// 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 limitation the rights to use, copy,... |
/**
* Created by Boris on 7/29/2016.
* Java Script functions for Outbound panel
*/
var setValidation = 0;
$(document).ready(function() {
$('.quest_cont').click(function () {
//var border=1;
//if($(this).attr("id")=="quest2a" && ($(this).outerWidth() - $(this).innerWidth())/2==3)
... |
/**
* External dependencies
*/
import classnames from 'classnames';
import uuidv4 from 'uuid';
/**
* WordPress dependencies
*/
const { __ } = wp.i18n;
const {
BaseControl,
Button,
ExternalLink,
PanelBody,
Placeholder,
RangeControl,
ResizableBox,
SelectControl,
Spinner,
TextControl,
ToggleControl
} = wp... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.styles = undefined;
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done)... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { DateTable } from '../basic';
import Input from '../../Input/index.tsx';
import Icon from '../../Icon/index.tsx';
import Button from '../../Button/index.tsx';
import TimePicker from '../../TimePicker/index.tsx';... |
// main4.js
// author: <NAME> (<EMAIL>)
// Global variables for "data"
var baseData = null;
var data = null;
var legendData = [];
var dataforCal = [];
var HdataforCal = [];
var TdataforCal = [];
var restored_data_id = [];
var removed_data_id = [];
var removed_data = [];
var lastRemove = [];
// ********* BEGIN r... |
// Copyright 2007 The Closure Library Authors. 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 requ... |
function deployPage(tabScans,index,id,stage){
//$("#inner").innerHTML="";
document.getElementById("inner").innerHTML = "";
bbFiles=[];
scan=tabScans[index];
$scan = $( scan );
$node = $scan.find("node");
$node.each(function(index, element) {
$ele = $( element );
if(ele... |
import React from 'react';
import {
Text,
Image,
View,
TouchableOpacity,
FlatList,
InteractionManager,
Clipboard,
} from 'react-native';
import { Button, Image as ImagePlaceholder } from 'react-native-elements';
const StyleSheet = require('../../PlatformStyleSheet');
const KevaButton = require('../../com... |
/**
* ~ CTS WEBSITE ANIMATIONS ~
* ==============================================
* Created by <NAME>
* ============================================== */
// // Makes the sticky navbar at the top of every page.
// //The navbar sticks after you've scrolled past the header
// $(document).... |
// @flow
import {
getLoader,
createWallet,
openWallet,
closeWallet,
getStakePoolInfo,
rescanPoint,
getDcrwalletGrpcKeyCert
} from "wallet";
import * as wallet from "wallet";
import { rescanCancel, ticketBuyerCancel } from "./ControlActions";
import {
getWalletServiceAttempt,
startWalletServices,
get... |
import React, { Component } from 'react';
import axios from 'axios';
import { Button, LabeledTextBox } from './Util.js';
import CodeMirror from 'react-codemirror';
require('codemirror/mode/python/python');
function UserAccountModal(props) {
const s = props.modalType;
const modalId = s + "Modal";
const for... |
let antdesc = {
antdesc1: "Gain a worker ant for your everyday life. Gathers Galactic Crumbs. Essential!",
antdesc2: "Gain a breeder ant that produces worker ants automatically!",
antdesc3: "Gain a meta-breeder ant that produces breeder ants automatically!",
antdesc4: "Gain a mega-breeder ant that produ... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
var express = require('express');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io').listen(server);
// Functions that check whether the current player is colliding with either the gameboard
// boundaries, any of the other players, or any of the food objects
function check_o... |
const settings = require("../../../../../../settings");
const Character = require("./Character");
const Utils = require("../../../../../Utils");
const BoardsList = require("../../../../../board/BoardsList");
const Bank = require("../../../../../bank/Bank");
const Statset = require("../../../../../stats/Statset");
const... |
$('.select2').select2();
$('.mytooltip').tooltip();
$(window).resize(function() {
$('.content').css('margin-top', $('nav.main-header').css('height'));
}).resize();
$('.language-switcher').change(function() {
const code = $(this).val();
let url = 'https://appointo.froid.works/account/change-language/:code'... |
/*
FAMS: Firefox Add-on Messaging Service - Provides secure messaging services to
Firefox add-ons.
Version 1.5
Changes since 1.0: Localisation overhaul to allow for multiple languages at
both build time and later delivery through (hypothetical) remote service
Messages can be configured at ad... |
"use strict";
var repoService = soajsApp.components;
repoService.service('repoSrv', ['ngDataApi', '$timeout', '$modal', '$cookies', '$window', '$compile', 'detectBrowser', function (ngDataApi, $timeout, $modal, $cookies, $window, $compile, detectBrowser) {
function configureRepo(currentScope, oneRepo, gitAccount, con... |
'use strict';
// Impress Application Server Core
process.title = 'impress';
require('./registry');
global.impress = new api.events.EventEmitter();
impress.name = 'impress';
impress.isImpress = true;
impress.firstStart = true;
impress.workerType = process.env.WORKER_TYPE;
if (impress.workerType === 'long') {
impre... |
/*!
* dc.graph 0.9.8
* http://dc-js.github.io/dc.graph.js/
* Copyright 2015-2019 AT&T Intellectual Property & the dc.graph.js Developers
* https://github.com/dc-js/dc.graph.js/blob/master/AUTHORS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... |
import EventEmitter from 'events';
import { createPopper } from '@popperjs/core';
import GameMode from './game-mode';
import terrain from './terrain';
import * as waves from './waves';
import BotStrategyBase from './bot-strategies/base';
import BotStrategyRandom from './bot-strategies/random';
import BotStrategyTangen... |
/**
* Created by a.zhakypov on 22.09.2016.
*/
//var viewer;
//var Cesium;
var tleList;
var deg2rad = Math.PI/180;
var tic;
var startD, endD, step, milistep;// in seconds
var name, satrec, roll, minSun;
var point, polygon;
var period, inclination, orbDelta;
$(function () {
$.get("./Components/tle/... |
//https://materialdesignicons.com/
import $ from 'jquery';
import datepickerFactory from 'jquery-datepicker';
//import datepickerJAFactory from 'jquery-datepicker/i18n/jquery.ui.datepicker-ja';
import 'core-js/stable';
import 'promise-polyfill/src/polyfill';
const runtime = require('@wailsapp/runtime');
// This var... |
import * as assets from './assets.js';
// All parameters used in the functions here are always passed from GameController.js
const initialObject = {
id: null,
dialogueid: null
};
export function JSONClone(object) {
let newObject = JSON.parse(JSON.stringify(object));
return newObject;
}
export function g... |
var n = require('preact'),
e = {};
function t(e) {
return e.type === n.Fragment
? 'Wrapper'
: 'function' == typeof e.type
? 'Composite'
: 'string' == typeof e.type
? 'Native'
: 'Text';
}
function o(e) {
return e.type === n.Fragment
? 'Fragment'
: 'function' == typeof e.type
? e.type.displayName || ... |
'use strict';
class Calendar {
constructor({
el,
language = 'es',
name = "",
prefix = 'mcp',
place = "dd-mm-aaa",
date = null,
rangeYears = 30,
available = 'all',
separator = '/',
styleInput = '',
props = '',
call = null... |
import React, { Component } from 'react'
import AudioPlayer from 'react-audio-player'
import CloneDeep from 'clone-deep'
import PropTypes from 'prop-types'
/**
* The interactive game of the GameLineup.js activity.
*
* @type {Object}
* @uses clone-deep
*/
import Boat from './Boat'
import Button from './Button'
im... |
const cheerio = require('cheerio');
const request = require('request');
const csv = require('csvtojson');
const WORLD_COUNTRIES = [
{ name: 'Afghanistan', abbreviation: 'AF', translation: '阿富汗' },
{ name: 'Albania', abbreviation: 'AL', translation: '阿尔巴尼亚' },
{ name: 'Algeria', abbreviation: 'DZ', translation: '... |
var World = require('./World');
var Renderer = require('../renderer/Renderer');
var TransformSystem = require('./systems/TransformSystem');
var RenderSystem = require('./systems/RenderSystem');
var BoundingUpdateSystem = require('./systems/BoundingUpdateSystem');
var ScriptSystem = require('./systems/ScriptSystem');
va... |
var PresetDropdown = {
list: {},
init: function(cls) {
PresetDropdown.list[cls] = document.id(GantryParamsPrefix + cls);
var objs = selectboxes.getObjects(PresetDropdown.list[cls].getPrevious());
objs.real.addEvent('change', PresetDropdown.select.bind(PresetDropdown, cls));
},
newItem: function(cls, key, v... |
import { settings, SCALE_MODES, Application, Sprite, Container, AnimatedSprite, Graphics, Text } from './vendor/pixi.js';
import { ready as texturesReady, spriteTextures, tileTextures } from './textures.js';
import { LEFT, DOWN, UP, RIGHT, Player, deserializePlayer, isWall } from './model.js'
import { MAP_TILES } from ... |
const { logInfoSocket, logQInfo, logQError, logInfo } = require('../../utils/logger')
const { clientPnw, validateJson, createHubP, deleteHubP } = require('../../utils/validator')
const { set, get, decr, findClients, findClientsInHub, findHubs, findInfos, setClients, setHubs } = require('../../utils/redisfn')
const { cr... |
"use strict";
var etg = require("../etg");
var Actives = require("../Actives");
var enableLogging = false, logbuff, logstack;
function logStart(){
if (enableLogging){
logbuff = {};
logstack = [];
}
}
function logEnd(){
if (enableLogging){
console.log(logbuff);
logstack = logbuff = undefined;
}
}
function lo... |
import React, { Component , Fragment } from 'react';
import parse from 'html-react-parser';
import {User,ASSETS} from './../Env';
import {URL_HOME} from '../Env';
import SearchField from '../utils/SearchField';
import InputField from '../utils/form/InputField';
import DataField from '../utils/form/DataField';
import D... |
import { newLogger } from '@dbux/common/src/log/logger';
import DataNodeType from '@dbux/common/src/types/constants/DataNodeType';
import ResolveType from '@dbux/common/src/types/constants/ResolveType';
import EmptyObject from '@dbux/common/src/util/EmptyObject';
import isThenable from '@dbux/common/src/util/isThenable... |
// Discord bot for UBx account verification.
// Author: <EMAIL>
// https://discord.js.org/#/docs/main/stable/general/welcome
const Discord = require('discord.js');
// const client = new Discord.Client();
const client = new Discord.Client({ fetchAllMembers: true });
const fs = require("fs");
/* **********************... |
var hat = require('hat')
var pws = require('peer-wire-swarm')
var bncode = require('bncode')
var crypto = require('crypto')
var bitfield = require('bitfield')
var parseTorrent = require('parse-torrent')
var mkdirp = require('mkdirp')
var events = require('events')
var path = require('path')
var fs = require('fs')
var o... |
console.debug("grades.js inject starting");
let inner = document.getElementById("main-inner") || document.getElementById("content-wrapper");
let courses = inner.getElementsByClassName("gradebook-course");
let gradesModified = false;
// FIXME potential race condition if this finishes while the other JS is processing th... |
import * as mediasoupClient from "mediasoup-client";
import protooClient from "protoo-client";
import { debug as newDebug } from "debug";
import EventEmitter from "eventemitter3";
// Used for VP9 webcam video.
//const VIDEO_KSVC_ENCODINGS = [{ scalabilityMode: "S3T3_KEY" }];
// Used for VP9 desktop sharing.
//const V... |
const fs = require("fs");
const os = require("os");
const path = require("path");
const normalize = require("normalize-path");
const isPlainObject = require("lodash/isPlainObject");
const lodashGet = require("lodash/get");
const lodashSet = require("lodash/set");
const { DateTime } = require("luxon");
const TemplateDa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.