text stringlengths 8.5k 48.7k |
|---|
/*---------------------------------------------------------
Setup, Layout, and Status Functions
---------------------------------------------------------*/
// Get localized messages from file
// through culture var
var lg = [];
$.ajax({
url: 'scripts/languages/' + culture + '.js',
async: false,
dataType: 'js... |
/***************************************************************
# $Id: jsTree.js 6673 2010-08-02 13:52:19Z christoph $
* http://www.mapbender.org/index.php/Mod_treefolder2.php
*
* Copyright notice
* (c) 2003-2004 <NAME> (<EMAIL>)
* All rights reserved
*
* This script is part of the jsTree project. The jsT... |
var hosts = new Array();
if (typeof firewalls != 'undefined')
for (item in firewalls)
hosts[item] = firewalls[item];
if (typeof sans != 'undefined')
for (item in sans)
hosts[item] = sans[item];
if (typeof switches != 'undefined')
for (item in switches)
hosts[item] = switches[item];
if (typeof aps != 'und... |
//web3 modules
const Web3 = require('web3');
//general purpose npm moudles
const fs = require('fs');
const assert = require('assert');
const compareVersions = require('compare-versions');
const solc = require('solc');
//contract sources
const contractPath = "../contracts/";
var input = {
"ConversionRatesInterface.... |
// 作者:张晓雷
// 邮箱: <EMAIL>
// 协议:MIT
//
// 功能参照 windows7 自带的扫雷
// 2020-4-25
'use strict';
//Debug Pro
//const log = console.log;
const timer = new createTimer('#timer');
document.oncontextmenu = function (e) {
e.preventDefault();
}
function random(begin, end) {
return Math.floor(Math.random() * (end - begin ... |
"use strict";
/*
typedef struct {
uint8_t size: 2; // size of data
uint8_t type: 6; // log type
uint8_t data[4]; // maximum 4 bytes data is possible to log
} LogItem_t;
typedef struct {
uint8_t length; // number of items
uint8_t size; // number of bytes
LogItem_t items[log_end];
} LogBuf_t;
*/
/**
* ... |
const pnames = new Set([
'BLEND_EQUATION',
'BLEND_EQUATION_RGB',
'BLEND_EQUATION_ALPHA',
'BLEND_DST_RGB',
'BLEND_SRC_RGB',
'BLEND_DST_ALPHA',
'BLEND_SRC_ALPHA',
'BLEND_COLOR',
'CULL_FACE',
'BLEND',
'DITHER',
'STENCIL_TEST',
'DEPTH_TEST',
'SCISSOR_TEST',
'POLYGON_OFFSET_FILL',
'SAMPLE_ALPHA_TO_COVERAGE',... |
$(function() {
// Javascript to enable link to tab
var hash = document.location.hash;
var prefix = "tab_";
if (hash) {
$('#impact-model-tabs .nav-pills a[href="'+hash.replace(prefix,"")+'"]').tab('show');
}
// Change hash for page-reload
$('#impact-model-tabs .nav-pills a').on('shown.bs.tab', function (e) {
... |
const en_US = {
"ht.table.query.0001": "A1 single table query example",
"js.table.query.0001": "data",
"js.table.query.0002": "Employee ID",
"js.table.query.0003": "Employee Name",
"js.table.query.0004": "employee gender",
"js.table.query.0005": "Department",
"js.table.query.0006": "Position",
"js.table.query.0007": ... |
const express = require("express");
const router = express.Router();
const { OrderDetail } = require("../models/order");
const { Order } = require("../models/order");
const { Category } = require("../models/product");
const { Product } = require("../models/product");
const { ReturnOrderDetail } = require("../models/ret... |
var width = 1200, //$(".canvas").parent().width(),
height = 650; // $(".canvas").parent().height();
var dbName = "drug";
var provLimit = 10;
var color = d3.scale.linear()
.domain([0, 1])
.range(["red", "green"]);
var data = {
entityArr: [],
entityObj: {},
links: [],
... |
// BASIC
// NAVIGATION BUTTONS
// When the user scrolls down 50px from the top of the document, show the buttons
window.onscroll = function () {
scrollFunction()
};
function scrollFunction() {
if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
$('#go-page-up').fadeIn(250);
$('... |
import Vue from "vue";
import Router from "vue-router";
import Cookies from "js-cookie";
import Login from "@/views/login/index";
import loginMandatory from "@/views/login/loginMandatory";
import GetPassword from '@/views/login/getPassword'
import SetPassword from '@/views/login/setPassword'
import Register from '@/vie... |
// subroutine to draw balls randomly from a box in D3 javascript.
// Inputs:
// category labels and relative ball counts
// pick stopping option.
// TODO: remove inner balls when replace = 'no'
var w = Number(400), // - margin.right - margin.left,
h = Number(300), // - margin.top - margin.bottom
ballsI... |
/**
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { __assign, __awaiter, __generator } from "tslib";
import { StructureElement, StructureProperties, Unit } from '../../mol-model/structure';
impor... |
import * as topojson from 'topojson';
import scrollama from 'scrollama';
import Rank from './rank';
import Tracker from './utils/tracker';
let full = true;
const COLORS = [
'#dbcdbd',
'#e8b8a0',
'#f2a385',
'#f88d69',
'#fc764f',
'#fe5c34',
'#ff3814'
].reverse();
const body = d3.select('body');
const chart = d3... |
// //(CC-NC-BY) <NAME> 2020
var gl;
function testGLError(functionLastCalled) {
var lastError = gl.getError();
if (lastError != gl.NO_ERROR) {
alert(functionLastCalled + " failed (" + lastError + ")");
return false;
}
return true;
}
function initialiseGL(canvas) {
try {
... |
/**
* A lightweight parser that only extracts data of particular interest to an
* average player.
*/
const { Buffer } = require( 'buffer' );
import BufferReader from './buffer-reader';
import BitBufferReader from './bit-buffer-reader';
import {
MAX_OSPATH,
MAX_EDICTS,
MAX_USERDATA_BITS,
SUBSTRING_BITS,
N... |
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] =... |
import React, {Component} from 'react';
import {Button, Divider, Icon, ListItem} from 'react-native-elements';
import {
ActivityIndicator,
Dimensions,
Image,
RefreshControl,
StyleSheet,
TouchableOpacity,
View,
Text,
Modal, ScrollView, Platform, TextInput,SafeAreaView
} from 'react-na... |
#!/usr/bin/env node
var Path = require('path'),
Db = require('mongous').Mongous,
Emitter = require('events').EventEmitter,
modelCache = require('./model_cache'),
Wrapper = require('./wrapper'),
// PlaceHolder is the main model class that takes care of
// Async DB access with chaining
DynObj = new (require('dynobj').D... |
import React, { Component } from 'react';
import summary from '../apis/summary';
import choices from '../apis/choices';
import '../customStyles.css';
import * as leafletProperty from '../constants/leaflet-properties';
import CssBaseline from '@material-ui/core/CssBaseline';
import Header from './Header';
import Drawe... |
import Horizon from "src/components/Horizon";
import Scalable from "src/components/utils/Scalable";
import "src/components/utils/HideBelow";
import Animator from "src/components/generic/Animator";
import { tweenFn } from "src/components/generic/TweenPromise";
import { colorFadeFn } from "src/components/generic/ColorFad... |
/* vim: se cin sw=2 ts=2 et filetype=javascript :
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* This module implements the front end behavior for AeroPeek.... |
Vue.http.headers.common['Content-Type'] = 'application/json';
Vue.http.headers.common['Accept'] = 'application/json';
// var readData = {};
// var readData = JSON.parse(localStorage.getItem("readData")) ? JSON.parse(localStorage.getItem("readData")) : {};
var obj = {};
console.info('obj=>', obj);
var paragraphIdx = p... |
const MAP_CONFIG = {
TILE_WIDTH: 20,
N_TILES_WIDE: 35,
N_TILES_HIGH: 20,
CANVAS_ID: 'game-canvas',
MOVEMENT_SPEED: {
JUMP: 6,
LEFT: 0.7,
RIGHT: 0.7
},
VELOCITY_LIMIT: {
X: 2,
Y: 16
},
GRAVITY: {
X: 0,
Y: 0.3
},
FRICTION: {
X: 0.95,
Y: 1
},
KILL_BOUNCE: 3
};
... |
var MyAccountInvoiceController = function(params) { this.init(params); }
MyAccountInvoiceController.prototype = {
invoice_id: false,
invoice: false,
authenticity_token: false,
init: function(params)
{
for (var i in params)
this[i] = params[i];
var that = this;
$('#payment_form')... |
import '@milque/display';
import '@milque/asset';
import { Random } from '@milque/random';
import './error.js';
import { loadSounds, sounds } from './assets.js';
import * as Starfield from './Starfield.js';
/**
* @typedef {import('@milque/display').DisplayPort} DisplayPort
*/
/** @type {DisplayPort} */
const displ... |
'use strict';
/*
* Performance cache for information about packages (projects/addons/"apps"/modules)
* under an initial root directory and resolving addon/dependency links to other packages.
*/
const fs = require('fs-extra');
const path = require('path');
const ErrorList = require('./error-list');
const Errors = r... |
/*
* Copyright © 2020. TIBCO Software Inc.
* This file is subject to the license terms contained
* in the license file that is distributed with this file.
*/
//@ts-check
import * as d3 from "d3";
import { buildColorSeries, ColorSerie, Point } from "./buildSeries.js";
import { invalidateTooltip } from "./extended-a... |
function Stack() {
//this.grid;
}
/**
* Creates a matrix for the playfield.
*/
Stack.prototype.new = function(x, y, hy) {
var cells = new Array(x);
for (var i = 0; i < x; i++) {
cells[i] = new Array(hy + y);
}
this.width = x;
this.height = hy + y;
this.hiddenHeight = hy;
this.toGreyRow = this.heig... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
const envLoaded = require('dotenv').load({silent: true});
if (!envLoaded) console.log('warning:', __filename, '.env cannot be found');
const appSettings = require('./appSettings.json');
const http = require('http');
const express = require('express');
let request = require('request-promise');
const { logExpression, se... |
const babel = require('babel-core');
const gulp = require('gulp');
const gulpStep = require('gulp-step');
const gulpBabel = require('gulp-babel');
const data = require('gulp-data');
const less = require('gulp-less');
const qunitHarnes... |
/* Script JS Pagging More */
$(document).ready(function(){
$(document).on('click', '#loadmore',function(event)
{
event.preventDefault();
var page_url = $(this).attr('href');
getData(page_url);
});
$(document).on('click', '#loadmorestr',function(event)
{
event.preventDefault();
... |
/* global fabric:true
document:true
$:true
window:true
Rx:true
noUiSlider:true
Huebee:true
*/
const socket = io();
const canvas = new fabric.Canvas('c', {
isDrawingMode: true,
stateful: false,
renderOnAddRemove: false,
selection: false,
skipTargetFind: false,
});
//make the canvas objects unsel... |
// ==========================================================================
// Project: Ember Runtime
// Copyright: ©2011 Strobe Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
/*globals ember_assert */
re... |
// Copyright (c) 2016-2019 <NAME>, ZL/KF6VO
var iq = {
ext_name: 'iq_display', // NB: must match iq.c:iq_display_ext.name
first_time: true,
cmd_e: { IQ_POINTS:0, IQ_DENSITY:1, IQ_CLEAR:2 },
draw: 1,
mode: 0,
cmaI: 0,
cmaQ: 0,
df: 0,
pll: 1,
pll_bw: 5,
update_interval: 0,
size: Ma... |
/**
* 创建关系模块
* Date:2017-10-18
* Author:zhuangchuhui
*/
import React from 'react';
import { connect } from 'dva';
import { Link } from 'dva/router';
import pathToRegexp from 'path-to-regexp';
import styles from './index.less';
import { Tabs, Button, Input, Icon, message, Alert, Spin,Select } from 'antd';
import def... |
$().ready(function (){
$("#cpaff_reconnect_form").validate({
rules:{
profile_photo : "required",
email : "required",
password : "<PASSWORD>",
confirm_password : {
required : true,
equalTo : "#password"
},
... |
// SCENE VARIABLES
var renderer = null,
scene = null,
camera = null,
root = null,
group = null,
starGeo = null,
playerCollider = null,
stars = null;
// VARIABLES FOR THE GAME TIME
var gameSettings = {
score: 0,
highScore: 0,
gameOver: false,
difficulty: 1,
live: 100,
pause: false,
backgroun... |
var SOSI = window.SOSI || {};
/**
* This is adopted from backbone.js which
* is available for use under the MIT software license.
* see http://github.com/jashkenas/backbone/blob/master/LICENSE
*/
(function (ns, undefined) {
"use strict";
ns.Base = function () {
this.initialize.apply(this, argument... |
var tbl_appcan2 = $('#id-tbl-approval-can2').DataTable({
"responsive":true,
"scrollY": "370px",
"scrollCollapse": true,
"paging": false,
});
var arrJob = [];
var arrCbng = [];
var dataArea = [];
var dataJob=[];
var arrBm = [];
var arrArea = [];
var flag = '';
var arrCheck = [];
var index = [];
var ... |
var coloresGobernadores = {
'CHILE VAMOS': colores['azul'],
'UNIDAD CONSTITUYENTE': colores['violeta'],
'UNIDAD POR EL APRUEBO': colores['violeta'],
'UNIDOS POR LA DIGNIDAD': colores['marron'],
'FRENTE AMPLIO': colores['verde-agua'],
'ECOLOGISTAS E INDEPENDIENTES': colores['verde'],
'REGIONALISTAS VERDES': co... |
#!/usr/bin/env node
'use strict';
/* eslint-env node */
// For `--standalone` the `--path` needs to include the library name or point to `packages`, no
// trailing `/`. Defaults to the current working directory.
// TODO: Allow for configuring output and input dirs better
// TODO: Consider returning useful values fr... |
//HELPERS
function queryDOM(element) {
return document.querySelector(element)
}
function getItemsFromPropValue(array, prop, value) {
return array.filter((item)=>item[prop] == value)
}
function removeItemsWithPropValue(array, prop, value) {
return array.filter((item)=>item[prop] != value)
}
//deep copy an objec... |
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}}
class OffScreenCanvas {
constructor(width, height) {
let c = document.createElement('canvas');
c.width = width;
c.height = height;
this.ctx = c.getContext('2d');
this.canvas = c;
}}
class Opening {
constructor(x, y) {... |
$.material.init();
$("#fabCreateCat").hide();
$("#loginError").hide();
$("#resetEmailSent").hide();
//$('#first-load-dialog').modal('show');
$("#noRubricSelect").hide();
$("#graderHeader").hide();
$("#login-to-taa").modal("show");
var totalScore = 0;
var arrayOfScores = new Array();
var arrayOfMaxPoints = new Array();... |
// a codec for exported saves from Realm Grinder [http://www.kongregate.com/games/divinegames/realm-grinder]
// by Divine Games [www.divinegames.it]
(function(window, document, $, undefined) {
'use strict';
/** TODO
* - Parse remaining entity IDs into names
* - Couple the save format with pseudo's... |
var fs = require("fs");
var path = require("path");
var TikaClient = require("@futpib/tika-server-client");
var tika = new TikaClient("http://localhost:41000");
const TikaServer = require("tika-server");
var util = require("../util.");
var httpProxy = require("../httpProxy.");
var socket = require("../../routes/socket... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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[key]; } }... |
/*!
* sitePage.js - v3.0.0
* https://github.com/pixelbyaj/SitePage
* @author <NAME>
* @license MIT
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (v... |
const moment = require('moment');
const nfa = require('../util/nfa');;
const testUtil = new (require('../util/TestUtil'))(false);
const test = () => {
console.log('objTest.test');
const isTestAll = 1;
const isShowAll = !isTestAll;
testUtil.setShowAll(isShowAll);
const obj = {
'v_null': null,
... |
let g_scene = new THREE.Scene();
let g_renderer;
let g_light;
let g_camera;
let g_renderer_width = screen.width; // 600
let g_renderer_height = screen.height; // 380
let g_header_context;
let g_footer_context;
let g_stage_num = 1;
var g_status;
(function (g_status) {
g_status[g_status["Battle"] = 0] = "Batt... |
var count;
var urlgallery;
var userin;
var object3 = {};
//constructing an object with the required details for DB
var object1 = {};
//Displaying user profile
function viewProfile() {
var xmlhttp;
//requesting to profile route
var t = basic_URL + "/profile";
//sending user details for requesting profil... |
// 获取币种
let currency = null;
let cookieCurrency = null;
currency = document.querySelector("#site-header-menu-root > div > div:nth-child(3) > div.mcp-selector-site-header > span").textContent
let cookieCurrencyInfo = document.cookie.split(";")
cookieCurrencyInfo.forEach(item => {
if (item.indexOf("currency"... |
////////////////////////////////////////////////////////////////
// global data
var theContext = {};
var ResultTable;
////////////////////////////////////////////////////////////////
// startup
//
$(document).ready(function() {
// retrieve the query params
var theQuery = $.getQuery();
// connect the button
... |
/*
* This file is part of Dance-o-Dreamers under a
* Yet-to-be-decided license
* Created by <NAME>. "stage7" <NAME>
*/
var previews = {};
var itemsPreview = new Array();
var itemsPreviewNames = new Array();
var parsedSongs = [];
var songCount = 0;
var localStorageScore;
createjs.Sound.registerPlugins([createjs.We... |
let BOARD_NX = 10
let BOARD_NY = 22
let BOARD_HIDDEN_NY = 2
let TILE_SIZE = 32
let BOARD_SIZE_X = TILE_SIZE * BOARD_NX
let BOARD_SIZE_Y = TILE_SIZE * (BOARD_NY - BOARD_HIDDEN_NY)
let BOARD_POS_X = TILE_SIZE * 5
let BOARD_POS_Y = TILE_SIZE * 2
let WINDOW_NX = BOARD_NX + 10
let WINDOW_NY = (BOARD_NY - BOARD_HIDDEN_NY)... |
"use strict";
const DIR_SRC_DATABASE_MASTERDATA = "../masterdata.db";
//dependents
const util = require('util');
const fs = require("fs");
const sqlite = require("sqlite3");
//load database before analyzing, block
let masterdata = new sqlite.Database(DIR_SRC_DATABASE_MASTERDATA, (err) => {
if (err) thro... |
/* -*- Mode: javascript; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 ; js-indent-level: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one a... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _regenerator = _interopRequire... |
//menu and window
var nav = {
init: function() {
nav.menuBtn = document.getElementById("menu-btn");
nav.menuBtn.addEventListener("click", nav.toggleMenu);
nav.menu = document.querySelector(".navigation");
window.addEventListener("resize", nav.onResize);
},
onResize: function() {
if (window.innerWidth > 9... |
var node = require('./node');
var createPathData = require('./pathData');
var rgbHex = require('./helpers/rgbToHex');
var Matrix = require('transformatrix');
var timing = require('./helpers/timing');
var _matrix = new Matrix();
var frameRate = 0;
var timeCap = Number.MAX_SAFE_INTEGER;
function createAnimate... |
import React, { Component } from 'react';
import {
StyleSheet,
Image,
Text,
Linking,
View,
Dimensions,
Animated,
Easing,
PanResponder,
Platform,
ActivityIndicator,
TouchableOpacity,
StatusBar,
InteractionManager,
BackHandler,
ScrollView,
TouchableWitho... |
// Copyright (c) 2018 <NAME>. All rights reserved.
var output = document.getElementById('output');
var starting_value = {};
var sourceEditor = ace.edit("output");
sourceEditor.getSession().setMode("ace/mode/json");
sourceEditor.getSession().on('change', incSourceChanges);
sourceEditor.setOptions({
maxLines: 480,
... |
/**
* A Tree has a root which is an object of class TreeNode.
*
* @param {TreeNode} root The root node of the tree
* @constructor
*/
var Tree = function (root) {
this.root = root;
this.nodeCnt = 1;
this.depth = 1;
};
/**
* Copy the tree.
*
* @returns {Tree} A copy of the tree
*/
Tree.prototype.cop... |
const helper = require('./helper');
const config = require('./config');
const get = require('get-value');
const fs = require('fs');
const { async } = require('rxjs/internal/scheduler/async');
const promisify = require('util').promisify;
const appendFile = promisify(fs.appendFile);
const unlink = promisify(fs.unlink);
c... |
//---- BEGIN COPYRIGHT -------------------------------------------------------
//
// Copyright (C) 2007 - 2014, Rogvall Invest AB, <<EMAIL>>
//
// This software is licensed as described in the file COPYRIGHT, which
// you should have received as part of this distribution. The terms
// are also available at http://www.r... |
/* VARIABLES */
let canvas;
let scene;
let renderer;
let data;
let globeElement;
// Cache DOM selectors
const container = document.querySelector('.js-globe');
// Object for country HTML elements and variables
const elements = {};
// Three group objects
const groups = {
main: null, // A group containing everything
... |
/**
* Copyright 2016 The AMP HTML 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 require... |
'use strict';
var Typeahead = require('suggestions');
var debounce = require('lodash.debounce');
var extend = require('xtend');
var EventEmitter = require('events').EventEmitter;
var GoongClient = require('@goongmaps/goong-sdk');
var goongAutocomplete = require('@goongmaps/goong-sdk/services/autocompl... |
/*
* Original code written (mostly) by <NAME>, Code for America fellow
* in the year 2013.
*
*/
var TESTING_MODE_COUNT = 5;
var HIGHLIGHT_DELAY = 1500;
var NEXT_GUESS_DELAY = 500;
var REMOVE_NEIGHBORHOOD_ANIMATE_GUESS_DELAY = 1000;
var SMALL_NEIGHBORHOOD_THRESHOLD_MOUSE = 5;
var SMALL_NEIGHBORHOOD_THRESHOLD_TO... |
'use strict';
// videoPlayers will be accessible in array `window.videoPlayers`
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 ("v... |
"use strict";
/**
* @module node_opcua_crypto
*/
// ---------------------------------------------------------------------------------------------------------------------
// crypto_explore_certificate
// -------------------------------------------------------------------------------------------------------------... |
const OS = require("os");
const debug = require("debug")("debug-utils");
const util = require("util");
const Codec = require("@truffle/codec");
const BN = require("bn.js");
const chromafi = require("@trufflesuite/chromafi");
const hljsDefineSolidity = require("highlightjs-solidity");
hljsDefineSolidity(chromafi.hljs);... |
/**
* Common Lisp syntax highlighter
*
* @version 0.1.1
* @author Andrew "Danger" Lyon
* @copyright Lyon Bros. Enterprises, LLC
* @licence MIT
*/
var highlight_lisp = function() {
// all of the following functions were pulled straight from my syntax/lisp.vim
// file in my vim directory.
var funcs =
'\\* fin... |
// models
require('../documents/cla')
require('../documents/repo')
require('../documents/org')
const mongoose = require('mongoose')
const CLA = mongoose.model('CLA')
const Repository = mongoose.model('Repo')
const Org = mongoose.model('Org')
//services
const logger = require('../services/logger')
const orgService = r... |
var InputBase = require('./InputBase'),
Container = require('./Container'),
DragEvent = require('./Interaction/DragEvent');
/**
* An UI text object
*
* @class
* @extends PIXI.UI.InputBase
* @memberof PIXI.UI
* @param options.value {String} Text content
* @param [options.multiLine=false] {Boolean} Multil... |
/* PrismJS 1.22.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+json+jsx+tsx+typescript&plugins=line-highlight */
/// <reference lib="WebWorker"/>
/**
* Note: this file is hand-edited to remove DOM code and Prism's built-in Worker logic.
* It contains only the syntax h... |
// vendor
import React, { Component } from 'react';
import { createPaginationContainer, graphql } from 'react-relay';
import classNames from 'classnames';
import uuidv4 from 'uuid/v4';
import { connect } from 'react-redux';
import { boundMethod } from 'autobind-decorator';
// store
import store from 'JS/redux/store';
i... |
class Color {
get r() {
return round(this.c[0]);
}
set r(v) {
this.c[0] = v;
}
get g() {
return round(this.c[1]);
}
set g(v) {
this.c[1] = v;
}
get b() {
return round(this.c[2]);
}
set b(v) {
this.c[2] = v;
}
get a() {
return roun... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.axis = axis;
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _slicedToArray2 = _interopRequireDefault(requ... |
/* Copyright 2017 Mozilla Foundation
*
* 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... |
var _ = require("underscore")._,
inherits = require("inherits"),
FSM = require("./fsm"),
Registry = require("./registry"),
cache = require("./simple-cache"),
simpleId = require("./simple-id"),
ns = require("./ns"),
fs = require("fs"),
nodePath = require('path');
var localId = ... |
/* imagineRio Cone Collector */
/* -------------------------*/
/* Config Vars */
/* -------------------------*/
let maxAngleAllowed = 170;
let tooltips = {
firstPoint: 'Click map to place Focal point of Visual',
secondPoint: 'Click map to place one side of the view cone',
thirdPoint: 'Click map to place the oth... |
"use strict";
var runningUnderNode = typeof exports !== 'undefined';
if (runningUnderNode) {
var EventEmitter2 = require('events').EventEmitter;
var heroes = require('./heroes').heroes;
var CardType = require('./heroes').CardType;
var doRequest = function(url, cb) {
var options = require('url'... |
/*jslint eqnull: true */
// Utility functions
// -----------------
// Many of the functions here are from http://underscorejs.org/
// Save bytes in the minified (but not gzipped) version:
var ArrayProto = Array.prototype, ObjProto = Object.prototype,
FuncProto = Function.prototype, StringProto = String.prototype;
/... |
//localStorage.removeItem("simplewoolclient_config");
// XXX duplicated in wooleditor index.html
var colorInfo = [
{ rgb: '#EEEEEE', name: "white",},
{ rgb: '#6EA5E0', name: "blue",},
{ rgb: '#9EDE74', name: "green",},
{ rgb: '#FFE374', name: "yellow",},
{ rgb: '#F7A666', name: "orange",},
{ rgb: '#C47862', nam... |
// GLOBALS
var board;
var gamestate = 'pregame';
var hud;
var zoom = 1;
var currentLobby;
var playerCount = 0;
var username = '';
var canW = window.innerWidth;
var canH = window.innerHeight;
var startX = 0;
var startY = 0;
var camX = 0;
var camY = 0;
var xhover = 0;
var yhover = 0;
var grass, wall, font;
var choseSta... |
let { MessageType } = require('@adiwajshing/baileys')
const Skepiting = 3000
const Slobster = 3000
const Sudang = 3000
const Scumi = 3000
const Sgurita = 3000
const Sbuntal = 3000
const Sdory = 3000
const Sorca = 3000
const Slumba = 3000
const Spaus = 3000
const Shiu = 3000
const Sbanteng = 4000
const Sharimau = 4000 ... |
/* =================================================================================================
* TransMenu
* March, 2003
*
* Customizable multi-level animated DHTML menus with transparency.
*
* Copyright 2003-2004, <NAME> (www.youngpup.net)
* ===============================================================... |
import cuid from 'cuid';
import WebComponent from 'webcomponent';
import {EMPTY_DIV, DOMPatcher, h} from './dom-patcher';
import Router from './router';
import * as hookHelpers from './component-utils/hook-helpers';
import {getNow} from './component-utils/perf';
const DOCUMENT_FRAGMENT_NODE = 11;
const ATTR_TYPE_DEFA... |
/*
* Copyright (C) 1998-2017 by Northwoods Software Corporation
* All Rights Reserved.
*
* FLOOR PLANNER: WALL RESHAPING TOOL
* Used to reshape walls via their endpoints in a Floorplan
* Depends on functionality in Floorplan.js
*/
// Constructor
function WallReshapingTool() {
go.Tool.call(this);
this.name = "W... |
var e = require("graphql");
var t = require("./878a8849.js");
var r = require("wonka");
function collectTypes(e, t) {
if (Array.isArray(e)) {
for (var r = 0; r < e.length; r++) {
collectTypes(e[r], t);
}
} else if ("object" == typeof e && null !== e) {
for (var n in e) {
if ("__typename" ... |
var defaultMedallions = {
};
var medallions = defaultMedallions;
var dungeonImg = [
];
ganonlogic = 'Open';
showprizes = false;
lensLogic = 'All'
chuInLogic = false;
var mouseOverItem = false;
var mouseLastOverR;
var mouseLastOverC;
var mouseLastOverCor;
var itemGrid = [];
var itemLayout = [];
var editmode = false;
v... |
import { A_BOLD, A_NORMAL, A_REVERSE, A_UNDERLINE } from "./constants"
import { color_pairs, pair_number } from "./color"
import { screen_t, window_t } from "./types"
import stdscr from "./stdscr"
// number of chars saved per off-screen canvas
export const CHARS_PER_CANVAS = 256
/**
* Used for selecting which chan... |
/**
* Renderer script of the application littel-shutdown-program
*
* @summary handles the whole program and user interaction
* @author AnonymerNiklasistanyonym, undefinedCoding
*/
/* ===== Imports ====== */
const Dialogs = require('dialogs')
const {
ipcRenderer, remote, shell
} = require('electron')
const sh... |
//#region "Language"
var _this = this;
var lang = {
emptyTable: "No data available in table",
info: "Showing _START_ to _END_ of _TOTAL_ entries",
infoEmpty: "Showing 0 to 0 of 0 entries",
infoFiltered: "(filtered from _MAX_ total entries)",
infoPostFix: "",
thousands: ",",
lengthMenu: "Show... |
'use strict';
publicApp.controller('ColumnsCtrl', function($scope, $http) {
//chrome memory leak !!!
$scope.$destroy= function() {
var parent = this.$parent;
this.$broadcast('$destroy');
if (parent.$$childHead == this) parent.$$childHead = this.$$nextSibling;
if (parent.$$chi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.