text stringlengths 8.5k 48.7k |
|---|
// @todo: add prefix to treeOptions, div_actions
var cms_tpv_tree, treeOptions, div_actions, cms_tpv_current_li_id = null;
jQuery(function($) {
cms_tpv_tree = $(".cms_tpv_container");
div_actions = $(".cms_tpv_page_actions");
treeOptions = {
xplugins: ["cookie","ui","crrm","themes","json_data","search","types"... |
import * as BABYLON from 'babylonjs';
import { coordinatelist } from './assets/coordinates';
const getrnd = (maxnum) => {
return Math.floor(Math.random(1) * maxnum)
}
const singleTree = (scene, shadowGenerator) => {
//following the example from https://playground.babylonjs.com/#1LXNS9#4
//leaf material
... |
import view from './view.html';
import css from './style.css';
import OrderVis from './libs/ordervis.js';
import MetaVis from './libs/metavis.js';
import Helper from './libs/helper.js';
import {
SCENE_HEADING,
ACTION,
CHARACTER_NAME,
DIALOGUE,
PARENTHETICAL,
IGNORE,
STORY,
NARRATIVE,
COLOR_GENDER,
COLOR_SENT... |
function pgvGetCookieByName(e) {
var t = Tcss.d.cookie.match(new RegExp("(^|\\s)" + e + "([^;]*)(;|$)"));
return t == null ? pvNone : unescape(t[2])
}
function pgvRealSetCookie(e) {
Tcss.d.cookie = e + ";path=/;domain=" + Tcss.domainToSet + ";expires=Sun, 18 Jan 2038 00:00:00 GMT;"
}
function pgvGetDomainIn... |
var defaults = {
addContextMenuItem : 'yes',
archiveTrigger : 'none',
checkInterval : '600',
defaultAction : 'showlist',
defaultFilterSet : 'All',
defaultPageView : 'normal',
defaultService : 'pocket',
downloadLimit : '1000',
loggingEnabled : 'no',
newExcludesTagged : 'no',
o... |
import fs, { existsSync } from 'fs';
import sade from 'sade';
import { exec as exec$1 } from 'child_process';
import 'net';
import { fileURLToPath, pathToFileURL, resolve as resolve$1 } from 'url';
import path from 'path';
import { networkInterfaces, release } from 'os';
let FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR,... |
function createMenu() {
const panels = document.querySelectorAll('.panel[id]')
const aside = document.querySelector('.aside')
const list = document.createElement('ul')
list.classList.add('list')
const frag = document.createDocumentFragment()
const offsetTops = []
panels.forEach(panel => {
offsetTops.... |
/* Author: <NAME>, <EMAIL>, https://14142.net/kartalla/about.html */
'use strict';
function Controller(gtfs, map) {
var that = this;
var state = getState();
function getState() {
var s = {};
s.lang = null;
s.onlyRoutes = null;
s.tripTypeInfos = null;
s.markerUpdate... |
navigator.family="ie";
if (window.navigator.userAgent.toLowerCase().match(/gecko/)) {navigator.family = "gecko"}
if (navigator.userAgent.toLowerCase().indexOf('opera') + 1 || window.opera) {navigator.family = "opera"}
function expand_colapse(id, table_name, option) {
var expand = (option == 'expand' ? 1 :... |
// Variables
var siteType= "desktop";
// Called when the page is ready and loaded
$(document).ready(function()
{
// -------------------------------------------
// --- OpenGraphAppPaper.js Initialization ---
// -------------------------------------------
bMobile = (/android|webos|iphone|ipad|ipod|blackberry|... |
const dived_p = (text, className = null) => {
const d = document.createElement('div');
const t = document.createElement('p');
t.innerHTML = text;
if (className !== null) d.className = className;
d.appendChild(t);
return d;
};
const make_app_btn = func => {
const d = document.createElement('... |
/* jslint node: true */
'use strict';
const msgDb = require('./database.js').dbs.message;
const wordWrapText = require('./word_wrap.js').wordWrapText;
const ftnUtil = require('./ftn_util.js');
const createNamedUUID = require('./uuid_util.js').createNamedUUID;
const getISOTimestampString = require('./database... |
//how d3 does it: https://github.com/d3/d3-force
//shiffman solution: https://www.youtube.com/watch?v=QHEQuoIKgNE
let nodes = [];
let nodes2 = [];
let controlIndex = null;
let nodeMat, nodeMat2;
let adjFun;
let center;
let fontRegular;
let newEdge = null;
let doShowEdges = true;
let doShowReachEdges = true;
let ... |
var numRows = 0;
function addSearchParamRow() {
var nextRow = numRows++;
var select = $('<select/>', {/*style:'margin-left:30px;'*/});
var plusBtn = $('<button />', {type:'button', 'class':'btn btn-success btn-block'});
plusBtn.append($('<i />', {'class':'fas fa-plus'}));
plusBtn.isAdd = true;
var rowDiv = $('... |
const path = require('path');
const test = require('ava');
const sh = require('shelljs');
const proxyquire = require('proxyquire');
const _ = require('lodash');
const sinon = require('sinon');
const Log = require('../lib/log');
const Spinner = require('../lib/spinner');
const Config = require('../lib/config');
const ru... |
// This LERC function is from Esri/lerc and under the Apache License, Version 2.
function LERC() {
// WARNING: This decoder version can only read old version 1 Lerc blobs. Use with caution.
// A new, updated js Lerc decoder is in the works.
// Note: currently, this module only has an impleme... |
'use strict';
const SUPPORTED_NODE_VERSIONS = require('./package.json').engines.node;
const webpack = require('./.webpack.config.js');
const base = {
// possible errors:
// enforce 'for' loop update clause moving the counter in the right direction
'for-direction': 'error',
// disallow window alert / confirm / ... |
function JSONstringifyOrder(obj, space) {
var allKeys = []
var seen = {}
JSON.stringify(obj, (key, value) => {
if (!(key in seen)) {
allKeys.push(key)
seen[key] = null
}
return value
})
allKeys.sort()
return JSON.stringify(obj, allKeys, space)
}
let addressRegExp = new RegExp('^0x[0-9a-fA-F]{40}$')
f... |
var isNumeric = require('fast-isnumeric');
var Lib = require('@src/lib');
var calComponent = require('@src/components/calendars');
// use only the parts of world-calendars that we've imported for our tests
var calendars = require('@src/components/calendars/calendars');
describe('dates', function() {
'use strict'... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
/*
* Copyright 2020-2021 <NAME> <<EMAIL>>
*
* 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... |
$(document).ready(function(){
$('#barraMaquinas').attr('aria-expanded','true');
$('#gestionarJuegos').removeClass();
$('#gestionarJuegos').addClass('subMenu2 collapse in');
$('#gestionarJuegos').siblings('div.opcionesHover').attr('aria-expanded','true');
$('.tituloSeccionPantalla').text('Juegos de Software');... |
/// <reference path="../typescript-defs/jquery.d.ts" />
var shearnie;
(function (shearnie) {
// jsTools (shearnie.tools)
// A little toolbox for my little brain
// https://github.com/shearnie/jsTools
(function (tools) {
/**************************************************************************... |
function DomainDispatcher(domain) {
return function (klass) { return __registerDomainDispatcher(domain, klass); };
}
exports.DomainDispatcher = DomainDispatcher;
var ApplicationCacheDomain;
(function (ApplicationCacheDomain) {
var ApplicationCacheFrontend = (function () {
function ApplicationCacheFronte... |
// remember to switch to src forlder then run node Triangle.js
const waitForUserInput = require('wait-for-user-input')
const CBUtil = require('./logic')
const { isNull, isUndefined } = require('util');
const fs = require('fs')
const _ = require("lodash")
const QNTOrderDetails = {
minSize: .01,
minPriceDecimal... |
"use strict"
var inherits = require('util').inherits,
f = require('util').format,
EventEmitter = require('events').EventEmitter,
ReadPreference = require('./read_preference'),
Logger = require('../connection/logger'),
debugOptions = require('../connection/utils').debugOptions,
retrieveBSON = require('../co... |
`use strict`;
const express = require('express')
const app = express()
const util = require('util');
const path = require('path');
const bodyParser = require('body-parser');
const multer = require('multer')
const upload = multer({ dest: 'uploads/' /*, limits: { fileSize: 1024*1024*5000 }*/ })
const fsp = require('fs'... |
/**
* DevExtreme (ui/data_grid/ui.data_grid.keyboard_navigation.js)
* Version: 16.2.5
* Build date: Mon Feb 27 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
gridCore = r... |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
import '@babel/polyfill'
import { Observable as O } from './rxjs'
import {setAdapt} from '@cycle/run/lib/adapt';
import { getMempoolDepth, getConfEstimate, calcSegwitFeeGains } from './lib/fees'
import getPrivacyAnalysis from './lib/privacy-analysis'
import { nativeAssetId, blockTxsPerPage, blocksPerPage } from './con... |
/* eslint-disable no-nested-ternary */
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable no-console */
/* eslint-disable no-restricted-imports */
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import {
Input,
Divider,
Button,
Tag,
message,
Card,
Av... |
import { c as createCommonjsModule, u as unwrapExports } from './style-inject.es-3bd340c8.js';
var interopRequireDefault = createCommonjsModule(function (module) {
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}
module.exports = _interopRequireDefault;
});
un... |
/*
* Copyright (c) 2016, Two Sigma Open Source
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
// DEPENDENCIES AND STUBS
'use strict';
// STUBS
// XMLHttpRequest
function XMLHttpRequest() { }
XMLHttpRequest.prototype.onload = function defaultXMLOnload() { };
XMLHttpRequest.prototype.onerror = function defaultOnError() { };
XMLHttpRequest.prototype.send = function () {
this.responseURL = TAJS_make('AnyStr');
... |
/*
A good color library
pex-color: https://github.com/pex-gl/pex-color/blob/master/index.js
qix-color: https://github.com/Qix-/color
compass: https://github.com/chriseppstein/compass-colors
ruby color: https://github.com/halostatue/color/tree/master/lib
chroma: https://gka.github.io/chroma.js
tinyColor: https://bgrin... |
import nacl from 'tweetnacl';
import 'cypress-file-upload';
import common from '../../js/common';
function validateCommon() {
cy.wait(500);
cy.get("#secretTitle").should("have.value", "Test Title");
cy.get(".ql-editor").should("have.text", "Test Document");
cy.get('#secretNotification').should('have.... |
var MY_SYLLABLE_UNKNOWN = 0;
var MY_SYLLABLE_CONSONANT = 1;
var MY_SYLLABLE_MEDIAL = 2;
var MY_SYLLABLE_VOWEL = 3;
var MY_SYLLABLE_TONE = 4;
var MY_SYLLABLE_1039 = 5;
var MY_SYLLABLE_103A = 6;
var MY_SYLLABLE_NUMBER = 7;
var MY_SYLLABLE_SECTION = 8;
var CHAR_PART = [
MY_SYLLABLE_CONSONANT, // 1000;MYANMAR LETTER KA;L... |
/*
* Copyright (C) 1998-2018 by Northwoods Software Corporation
* All Rights Reserved.
*
* FLOOR PLANNER CODE: TEMPLATES - WALLS
* GraphObject templates for Wall Groups, Wall Part Nodes (and their dependecies) used in the Floor Planner sample
* Includes Wall Group, Palette Wall Node, Window Node, Door Node
*/
/*
* ... |
const { Command } = require('discord.js-commando');
const { MessageEmbed } = require('discord.js');
const Youtube = require('simple-youtube-api');
const ytdl = require('ytdl-core');
require('dotenv').config();
let {
playLiveStreams,
playVideosLongerThan1Hour,
maxQueueLength,
AutomaticallyShuffleYouTubePlaylists... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function toStringType(val) {
return Object.prototype.toString.call(val).slice(8, -1);
}
const isArray = Array.isArray;
function isBoolean(arg) {
return typeof arg === 'boolean';
}
function isString(arg) {
return typeof arg === 'stri... |
import { state } from '~/js/helpers/state'
import {
capitalize,
timeString,
timeouts,
stepToImageKey,
first,
getNotificationsPosition
} from '~/js/helpers/utilities'
import { showIframe, hideIframe, resizeIframe } from '~/js/helpers/iframe'
import {
onboardHeading,
onboardDescription,
onboardButton,
... |
'use strict';
var _ = require('busyman'),
NoraEndDevice = require('./nora-end-device.js'),
SmartObject = require('smartobject'),
nutils = require('./nutils.js'),
aesCmac = require('node-aes-cmac').aesCmac,
CNST = require('../constants.json'),
Q = require('q');
var Lwm2mCmdId = CNST.LWM2MCMDID;... |
const _ = require("underscore");
const cardsLib = require("./cards.js");
const STATE_ANNOUNCE = 1; // Le premier tour de table pour les annonces
const STATE_ANNOUNCE_AFTER_HOLE = 2; // Le premier tour de table pour les annonces sans celles qui sont plus fables que le trou
const STATE_BIDS = 3; // Les enchères
const ST... |
/* eslint-disable strict */
/* eslint-disable max-len */
/* eslint-disable class-methods-use-this */
/* eslint-disable no-tabs */
'use strict';
const { MessageEmbed, MessageButton, MessageActionRow } = require('discord.js');
const { Command } = require('@sapphire/framework');
module.exports = class ButtonsCommand ex... |
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import moment from 'moment';
import url from 'url';
import { curator_page, content_views, history_views, truncateString, queryKeyValue, external_url_... |
import Components from '../objects/components.js'
import selector from '../util/selector.js'
import numbers from '../interpolation/numbers.js'
import {toPathString,onStartCubicMorph} from './svgCubicMorphBase.js'
// const SVGMorph = { property : 'path', defaultValue: [], interpolators: {numbers} }, functions =... |
/**
* The language mapping... control id/text
* TODO add language as needed!
*/
var languageInfo = {
"en": {
"M_hostName": "host",
"M_applicationsPath": "applications",
"M_dataPath": "data",
"FrequencyType_MINUTE": "MINUTE",
},
"fr": {
"M_hostName": "hôte",
... |
var BUY_ORDER = "buy";
var SELL_ORDER = "sell";
var ALL_ORDER = "all";
var ESI_ENDPOINT = "https://esi.evetech.net";
var RES_ENDPOINT = "https://api.github.com/repos/awhipp/evetrade_resources/contents/resources";
var API_ENDPOINT = "https://px82vf9n78.execute-api.us-east-1.amazonaws.com/v1"
var STATION_TRADE = ... |
/**
* Created by Administrator on 2016/4/1.
*/
var local_Orade = 100
var tools = {}
tools.addListener = function(sprite,begancallback,movecallback,endcallback){
var spListener = cc.EventListener.create({
event: cc.EventListener.TOUCH_ONE_BY_ONE,
swallowTouches: true,
onTouchBegan: function... |
const RecordButton = {
create(isRecording) {
const btn = document.createElement('button');
this.set(btn, isRecording);
return btn;
},
set(btn, isRecording) {
const dom = btn;
dom.className = `js-record-button btn btn-sm ${
isRecording ? 'btn-danger' : 'btn-secondary'}`;
dom.textConte... |
var path = require('path');
var fs = require('fs');
var colors = require('chalk');
var root = {};
var COMPACT = "COMPACT",
VERBOSE = "VERBOSE",
SILENT = "SILENT",
HTML_OUT = "HTML";
var config = {
/*
Modes: COMPACT, VERBOSE, SILENT
COMPACT: Displays passed in compact a... |
var mapContainer = $("#map"),
map,
start_year = 2010,
start_month = 8,
priceContainer = $("#price-chart");
var states = { "AL": "Alabama", "AK": "Alaska", "AZ": "Arizona", "AR": "Arkansas", "CA": "California", "CO": "Colorado", "CT": "Connecticut", "DE": "Delaware", "DC": "District Of Columbia", "FL": ... |
/*
* Users
*/
var firstLine = null;
var htmlFirstLine = '';
var listProducts = [];
var listUnity = [];
$(document).ready(function () {
calculTotalOnLoad();
if (jQuery().dataTable) {
var arrayColumnDefs = [];
arrayColumnDefs[0] = { type: 'date-eu', targets: 1 }
$('#userList').DataTabl... |
import * as z0 from './z0/z0.js';
import { TextureManager } from './z0/graphics/texturemanager.js';
import { Scene } from './z0/tree/scene.js';
import { SpriteSheet } from './z0/graphics/spritesheet.js';
import * as Key from './z0/input/key.js';
import { getMouseX, getMouseY } from './z0/input/mouse.js';
import { Spri... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview New tab page
* This is the main code for the new tab page used by touch-enabled Chrome
* browsers. For now this is still a pro... |
let { default: makeWASocket, BufferJSON, WA_DEFAULT_EPHEMERAL, generateWAMessageFromContent, downloadContentFromMessage, downloadHistory, proto, getMessage, generateWAMessageContent, prepareWAMessageMedia } = require('@adiwajshing/baileys-md')
let levelling = require('../lib/levelling')
let fs = require('fs')
const ... |
/*
Spellcast
Copyright (c) 2014 - 2020 <NAME>
The MIT License (MIT)
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, co... |
var displaySpeed = 1;
var stop = false;
var globalTimeout = [];
class Function {
constructor(probability, delay, func) {
this.probability = probability;
this.delay = delay;
this.func = func;
}
}
var functions = [
//Hide
new Function(1, 1000, _ => {
return ["HIDE", "<br><b... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
const dummyServerData = {
type: 'docker',
hostname: 'dockerhost1',
template: null,
startupTimeoutSec: 20,
source: [
"source1",
],
version: "0.0.2",
dockerOptions: {
entryPoint: "cmd to delete all",
proxied: true,
oneShot: false,
serviceHealthchecks: [
"check1",
"check2"
... |
let _triangle = [];
let _experimentalTriangle = [];
let count = 1;
let solutionIndex = [];
let endresult;
let distTable = [];
let runtime;
async function triangleDetection(){
setStartTime();
runtime = 0;
switch (triangleAlgorithm.value) {
case "fast":
_triangle = await getInitFaiTriang... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
require("promise-polyfill");
var buffers_1 = tslib_1.__importDefault(require("../buffers/buffers"));
var context_1 = tslib_1.__importStar(require("../context/context"));
var common_1 = tslib_1.__importDefault(re... |
const Bank = require('../../../Bank/Bank');
const Resource = require('../../../Structures/Resource');
const Session = require('../../../Sessions/Session');
const {Markdown:md,Format:fmt,random,strcmp,paginate,tableify} = require('../../../Utils');
const BaseFishTable = [
{
name: 'Piece of Trash',
type: 'junk... |
var add_edit_Mask = '<div style="padding:0 30px;color:#898989;font-size: 14px" class="layui-form">' +
'<div class="clear">' +
'<div class="rg" style="line-height: 30px;padding: 5px;padding-left:17px;width:320px;">' +
'<input type="text" class="layui-input" id="layui-search"><i class="material-icons search_d... |
/*
FILE ARCHIVED ON 2:13:34 Feb 25, 2017 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 7:49:21 Mar 4, 2017.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
* CirclePlayer for the jP... |
import React, { useState } from 'react'
import { makeStyles } from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import DescriptionIcon from '@material-ui/icons/Description';
import StepLabel from '@material-ui/core/StepLabel';
import Button from... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @ts-check
'use strict';
/**
* @fileoverview
* Web worker code to parse JSON data from binary_size into data for the UI to
* display.
*/
/**
* @t... |
/*
.----. _..._ .-'''-.
/ .--./ .---. .-'_..._''. _______ ' _ \
' ' | |.--. .' .' '.\ __.....__ \ ___ `'. / /` '. \_________ _...._
\ \... |
const { synthesizer, limit } = require("node-sfx/core");
const { a, b, c, d, e, f, g, saw, triangle, square, pulse, sine } = require("node-sfx/waves");
const { lowPass } = require("node-sfx/filters");
const { remap } = require("node-sfx/utils");
const sampleRate = 16000;
const sawInverse = (freq) => saw(freq, true);
... |
/**
* CrossCompare.js Example - Air Traffic Delay Dashboard
*
* Github - https://github.com/RRothfeld/CrossCompare-js
* MIT License - https://github.com/RRothfeld/CrossCompare-js/blob/master/LICENSE
*
* @author RRothfeld
*/
/* Part 1 - Global settings and variables */
// Define DC.js charts
var totalAverageD... |
var leg = "", xch = "", map = null;
$(function() {
leg = $("#mapshell").attr("leg");
xch = $("#mapshell").attr("xch");
map = new google.maps.Map(document.getElementById("coursemap"), {
center:new google.maps.LatLng(29.604506,-96.262207),
zoom:9,
mapTypeId:google.maps.MapTypeId.HYBRID
});
var routeLayer = ne... |
/* global new_block, $, document, WebSocket, escapeHtml, ws:true, start_up:true, known_companies:true, autoCloseNoticePanel:true */
/* global show_start_up_step, build_notification, build_user_panels, build_company_panel, populate_users_marbles, show_tx_step*/
/* global getRandomInt, block_ui_delay:true, build_a_tx, au... |
// pages/appointment/admit/admit.js
const app = getApp()
const util = require('../../../utils/util.js')
Page({
data: {
hidden1: true,
hidden2: true,
read: false,
read_text: '+ 借阅物品应按时取用,及时归还\n\n+ 物品损坏需要按相应价格进行赔偿\n\n+ 不得将所借物品转借他人',
disable: [], //无法预约的时间段
occupy: [
[],
[],
[]... |
#!/usr/bin/env node
"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(valu... |
/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import url_for from 'sources/url_for... |
// Note: the code will still work without this line, but without it you
// will see an error in the editor
/* global EspLoader, ESP_ROM_BAUD, port, reader, inputBuffer */
"use strict";
var espTool;
const baudRates = [115200];
const bufferSize = 512;
const colors = ["#00a7e9", "#f89521", "#be1e2d"];
const measurement... |
/*-------------------- enter full screen --------------------*/
// toggle a div to fullscreen model
function toggleFullScreenOnEle(ele){
elem = document.getElementById(ele);
if (elem.requestFullscreen){
elem.requestFullscreen();
} else if (elem.msRequestFullscreen){
elem.msRequestFullscreen(... |
//==============================================================================
// translate.js
// part of 'total-serialism' Package
// by <NAME> (@t.mo / @tmhglnd), www.timohoogland.com
// MIT License
//
// Methods to translate between midi, note-names, intervals and more
//
// credits:
// - Using the amazing Tonal.... |
// |
// ---|-------------- using row col coordinates
// |
// |
// |
// |
// |
//TODO fix weird grid generation bug
class Player {
constructor(x, y, direction, height) {
this.x = x;
this.y = y;
this.height = height;
this.direction = direction;
}
changeDirection(step) {
this.d... |
var screenWidth = $(document).width();
var screenHeight = $(window).height();
var header = 'hero';
var range = 200;
var didScroll;
var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $('header').outerHeight();
var calc = 2;
var offset = 0;//$('#'+header).offset().top;
var headerId = $('header').attr('id... |
/**
*
* OpenUI5 Library Utilities
* Copyright 2017 PulseShift GmbH. All rights reserved.
*
* Licensed under the MIT License.
*
*/
const gulp = require("gulp");
const gulpif = require("gulp-if");
const rename = require("gulp-rename");
const tap = require("gulp-tap");
const terser = require("gulp-terser")... |
/**
* Scalar
* Copyright 2013 The Alliance for Networking Visual Culture.
* http://scalar.usc.edu/scalar
* <EMAIL>
*
* Licensed under the Educational Community 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 ... |
$(document).ready(function (){
var w = 1080;
var h = 720;
var fi = 360;
var projection = d3.geoConicConformal()
.parallels([35, 65])
.rotate([-21, -1])
.scale(w*7.5)
.center([-12, 46])
.translate([w/2, h/2])
.clipExtent([[-3800, -2000], [3800, 2500]])
.precision(100);
v... |
"use strict";
var canReflect = require("can-reflect");
var dev = require("can-log/dev/dev");
var namespace = require('can-namespace');
var canSymbol = require("can-symbol");
var inSetupSymbol = canSymbol.for("can.initializing");
//!steal-remove-start
if(process.env.NODE_ENV !== 'production') {
var CanString = requir... |
var linked_services_global = {};
var textareas = [];
function populateService(service_name) {
selected_service_name = service_name;
$.ajax({
url: server_url,
data: '{"services": ["' + service_name + '"], "operations": {"operation": "get_named_service"}}',
type: "POST",
dataType:... |
if(typeof module == 'undefined')
{
console.log("in lib mode...");
var require = function(){};
}
var log = require('./log.js');
var AlertUserOfUncaughtExceptions = require('./errorHandler');
var createJscadWorker = require ('./jscad-createJscad-worker.js');
var createJscadFunction = require('./jscad-createJscad-fun... |
//"F_THEME1","F_THEME2", "F_THEME3", "F_THEME4"
var map;
var detailMap;
var themesDefinitions ={
"SPL_THEME1":"Sum of series for Socioeconomic",
"RPL_THEME1":"Percentile ranking for Socioeconomic",
"SPL_THEME2":"Sum of series for Household Composition",
"RPL_THEME2":"Percentile ranking for Household Co... |
import Menu from './menu';
import MenuController from './menu-controller';
import singleplayerMenu from './singleplayer-menu';
import multiplayerMenu from './multiplayer-menu';
import onlineGameMenu from './online-game-menu';
const mainMenu = Menu('main-menu');
const singleplayerButton = mainMenu.addButton('singlepla... |
/**
* Created by wujiangwei on 16/5/11.
*/
'use strict';
var AV = require('leanengine');
var https = require('https');
var User = AV.Object.extend('_User');
var Base64 = require('../public/javascripts/vendor/base64').Base64;
var IOSAppSql = AV.Object.extend('IOSAppInfo');
var mackTaskInfo = AV.Object.extend('mackTa... |
// /*jshint esversion: 6 */
var currentFields;
var currentNoteType;
var savedFormFields = savedFormFields || [];
var currentDeck;
var deckNamesSaved;
var manifest = chrome.runtime.getManifest();
var onceTimeForceSync;
var currentTags;
var connectionStatus;
var modelNamesSaved;
var storedFieldsForModels = storedFieldsFo... |
//-----------------------Renderer processes------------------------
//Module for Menu
const Menu = require("electron").remote.Menu;
function getMenu() {
let elec = require("electron").remote;
let shell = elec.shell;
const menuTemplate = [
{
label: "File",
submenu: [
... |
// Bing Wallpaper GNOME extension
// Copyright (C) 2017-2021 <NAME>
// This extension 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 3 of the License, or
// (at your option) any later ... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (... |
(function ($) {
// ******************************
// PL-internal Icon modal handling
$('[id^="linkModalIcon"]').click(function() {
var title = $(this).next(".ic-name").html();
var nameFileSvg = $(this).next(".ic-name").attr("id");
var textModalUtility = '<span class="icon icon-'+nameFileSvg+'" r... |
dojo.provide('ACI.dojo.TxTreeNode');
function iconHider(panelType, treenode) {
if (dojo.byId(panelType + "Panel_" + treenode.item.i.id) &&
!dojo.byId("infoPanel_" + treenode.item.i.id + "_dropdown") &&
!dojo.byId("commentPanel_" + treenode.item.i.id + "_dropdown") &&
!dojo.byId("mapPanel_" + treenode.i... |
//琛ㄦ牸鐐瑰嚮璋冪敤鎺掑簭鏂规硶锛�
function orderby(orderby, order) {
$("#pageform input[name='order']").remove();
var orderby = '<input type="hidden" name="orderby" value="' + orderby + '"/>';
var order = '<input type="hidden" name="order" value="' + order + '"/>';
$("#pageform").append(orderby + order).submit();
... |
/*
Copyright (c) 2014, The Mineserver Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and th... |
/* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström,
2013 <NAME>
written by : http://underscorediscovery.com
written for : http://buildnewgames.com/real-time-multiplayer/
substantially modified for collective behavior experiments on the web
MIT Licensed.
*/
/*
The main game class. This ... |
var util = require('util'),
events = require("events"),
request = require('request'),
_ = require('underscore'),
path = require('path'),
fs = require('fs'),
Promise = require("node-promise").Promise,
when = require("node-promise").when,
Status = require('./status'),
Command = require... |
// ---------- Visualization
var Visualization = {
svg: null,
$legend: $("#legend"),
playhead: null,
dispatch: $('body'),
data: [],
data_schema: {
B1dw:{title: "Blue Downwelling", color: "rgb(63, 169, 245)"},
B1uw:{title: "Blue Upwelling", color: "rgb(60, 167, 221)"},
B2dw:{title: "Green Downwe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.