text stringlengths 8.5k 48.7k |
|---|
/*
* Copyright (c) 2015 - 2016 Intel Corporation.
*
* 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,... |
function factorial(n){
if(n < 0) return undefined;
if(n == 0) return 1;
return n * factorial(n - 1);
};
function choose(n, k){
if (k > n){
return 0;
}
var nFact = factorial(n);
var kFact = factorial(k);
var nkFact = factorial(n-k);
var numerator = nFact;
var denominator = kFact * nkFact;
var ans = numer... |
/*jshint node: true */
'use strict';
var https = require('https');
var crypto = require('crypto');
// functions to compatible with iotjs
var fromNumber = Buffer.fromNumber;
if(!fromNumber) fromNumber = function(data){
if(data < 0x100) return new Buffer([data&0xff]);
else if(data < 0x10000) return new Buffer([... |
'use strict'
const http = require('http')
const path = require('path')
const url = require('url')
const fs = require('fs')
const gm = require('gm')
const cmd = require('./commandline')
const relative = require('./relative')
const objstruct = require('./objStruct')
require('./polyfills')
const user = '',
lastfmApi... |
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _, { clone } from 'underscore';
import memoize from 'memoize-one';
import OverlayTrigger from 'react-bootstrap/esm/OverlayTrigger';
import { console, object, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
... |
const webdriver = require("selenium-webdriver"),
{expect} = require("chai"),
{getUnnavigatedDriver, loadUrl} = require("../../../library/driver"),
{getCenter, getResolution, isLayerVisible, areLayersOrdered, doesLayerWithFeaturesExist} = require("../../../library/scripts"),
{centersTo, clickFeature, log... |
var initmenu_url = "/GetMenuListByRoleIdServlet";
var openFrame = new Array();
var checkPage = new Array();
$(function(){
/**
* 给topUserName 赋值
*/
$("#topUserName").html(localStorage.getItem("userName"));
accordion();
$("#menu").on("click",action);
openFrame.push("firstPage");
$('#fir... |
// ==UserScript==
// @name TagPro GroPro
// @version 1.1
// @description Enhance your group experience!
// @author Ko
// @supportURL https://www.reddit.com/message/compose/?to=Wilcooo
// @website https://redd.it/no-post-yet
// @icon https://raw.githubusercontent.com/wilcooo/TagPro-Gro... |
// Gary
// Copyright 2017 <NAME>
// LICENSE --------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// (https://www.apache.org/licenses/LICENSE-2.0)
// Unless required by... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDraxRegistry = void 0;
const react_1 = require("react");
const react_native_1 = require("react-native");
const useDraxState_1 = require("./useDraxState");
const types_1 = require("../types");
const math_1 = require("../math");
const... |
import "./Intro.css";
const Content = require("../../assets/assets.json");
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext('2d');
const logo = new Image();
logo.src = Content.intro.img.logo;
let whiteNoise = document.createElement("audio");
whiteNoise.src = Content.intro.audio.static;... |
// import 'bootstrap.css';
import '@grapecity/wijmo.styles/wijmo.css';
import './history.css';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as wjInput from '@grapecity/wijmo.react.input';
import { FlexGrid, FlexGridColumn } from '@grapecity/wijmo.react.grid';
import { Globalize } from... |
(function() {
var SCALE;
/**
*
* Helper functions
*
*/
// Convert degree to radian
function degToRad( deg ) {
return deg * ( Math.PI / 180 );
}
// Convert radian to degree
function radToDeg( rad ) {
return rad * ( 180 / Math.PI );
}
// Find a side... |
// ==UserScript==
// @name bilibili直播净化
// @namespace https://github.com/lzghzr/GreasemonkeyJS
// @version 4.0.6
// @author lzghzr
// @description 屏蔽聊天室礼物以及关键字, 净化聊天室环境
// @supportURL https://github.com/lzghzr/GreasemonkeyJS/issues
// @include /^https:\/\/live\.bilibili\.com\/(?:blanc\/)?\d/
// @... |
BD = [10,10,790,590]
G = 1
stks = []
stkpool = []
sl = 35
sw = 6
c1 = [95,90,85]
c2 = [250,250,250]
function choice(list){
return list[floor(random(list.length))]
}
// DOT
var Dot = function(x,y){
this.x = x
this.y = y
this.v = {x:0,y:0}
this.fric = {x:... |
/*
* Copyright (c) 2014-2018 MKLab. All rights reserved.
* Copyright (c) 2014 <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... |
function randId() {
return Math.random().toString(36).substr(2, 10);
}
export class smlmFile {
constructor(file) {
this.manifest = JSON.parse(JSON.stringify(manifest_template))
this.formats = this.manifest.formats
this.files = this.manifest.files
this.channels = {}
this.zipFile = null
th... |
"use strict";
var Channel = require("./channel");
var ModModule = require("./mod_module");
var S3mModule = require("./s3m_module");
var XmModule = require("./xm_module");
var Sample = require("./sample");
var Effects = require("./effects");
/**
* ScripTracker.js
*
* ScripTracker is a JavaScript mod player that can... |
function projectTitle(title) {
let generate = `# 💡 Project Title: ${title} \n`;
return generate
}
function projectBadge(badge) {
if (badge === "MIT License") {
return ` \n`;
}
if (badge === "Apache License 2.0") {
return ` {
$.fn.modal = function( options ) {
// This is the easiest way to have default options.
var settings = $.extend({
// These are the defaults.
header: '',
message: '',
buttons: 'close',
lang: 'pl'
}, options),
msg, head, interaction;
if (settings.mes... |
import React, { Component } from 'react';
import _ from 'underscore';
const nameParser = require('@name-parser');
const classNames = require('classnames');
const dateFormat = require('dateformat');
import ReactDOM from 'react-dom';
import { Link } from 'react-router-dom';
import Sender from './Sender';
import './style... |
'use strict';
/* globals SVGElement */
/**
* Allows to drag and zoom svg elements
*/
var wheel = require('wheel')
var animate = require('amator')
var eventify = require('ngraph.events');
var kinetic = require('./lib/kinetic.js')
var preventTextSelection = require('./lib/textSelectionInterceptor.js')()
var Transform ... |
//[待接收案件]
var dataGrid;
var organizationTree;
var special="";
var path =path;
var sqlStore="";
var f = $("#finalState").val();
// alert(f);
$(function() {
//将pageName赋给全局变量 version2Name 以后 在任何界面可以使用 parent.version2Name获取
parent.version2Name= $("#pageName").val();
var datag = ... |
const Matrix = require('./matrix');
const RandomMatrix = require('./matrix/random-matrix');
const Equation = require('./matrix/equation');
const sampleI = require('./matrix/sample-i');
const maxI = require('./matrix/max-i');
const softmax = require('./matrix/softmax');
const copy = require('./matrix/copy');
const { ran... |
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... |
//Global Constants
//Global Variables
var clueHoldTime = 1500; //how long each button will be held by computer (milliseconds)
var cluePauseTime = 333; //how long to wait between clues (milisecons)
var nextClueWaitTime = 1300; // how long to wait before playing the next sequence (miliseconds)
var pattern = []; //stor... |
import React, { Component } from 'react'
import {
View,
Text,
ScrollView,
StatusBar,
SafeAreaView,
Platform,
TouchableOpacity,
FlatList,
ViewStyle,
TextStyle,
TouchableWithoutFeedback,
ToastAndroid,
StyleSheet, Dimensions, Toast, ActivityIndicator, Slider,
TextInput,
... |
import { util } from "./main"
import aligns from '../../assets/obj-align.json';
import utilscript from '../util';
import levelparse from './levelparse';
function getChunk(x) {
return Math.floor(x / 992);
}
// By <NAME> on Stack Overflow
function HSVtoRGB(h, s, v) {
var r, g, b, i, f, p, q, t;
if (argumen... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Entity = exports.Event = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.co... |
var cities= {
"ABEJORRAL":null,
"ABREGO":null,
"ABRIAQUI":null,
"ACACIAS":null,
"ACEVEDO":null,
"<NAME>":null,
"AGUACHICA":null,
"AGUADA":null,
"AGUADAS":null,
"AGUAZUL":null,
"<NAME>":null,
"AIPE":null,
"ALBAN":null,
"ALBANIA":null... |
'use strict'
/*******************************************************************************
********************** Load the user's data.
******************************************************************************/
console.log("============================================================")
console.log("========... |
'use strict'
const IDLE = 0
const RUN = 1
const BLOCK = 2
const PUNCH = 3
const DASH = 4
const JUMP = 5
const DAMAGE = 6
const OUT = 7
const BREAK = 8
const EXIT = 9
const NOPE = 10
// states debug mapping
const states = [
'idle',
'run',
'block',
'punch',
'dash',
'jump',
'damage',
'out... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var qs_1 = tslib_1.__importDefault(require("qs"));
var index_1 = require("./store/index");
var mobx_state_tree_1 = require("mobx-state-tree");
var api_1 =... |
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS205: Consider reworking code to avoid use of IIFEs
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blo... |
const antlr4 = require('antlr4')
const { ModelLexer, ModelParser } = require('antlr4-vensim')
const R = require('ramda')
const Model = require('./Model')
const ModelReader = require('./ModelReader')
const VariableReader = require('./VariableReader')
const {
extractMarkedDims,
indexNamesForSubscript,
normalizeSubs... |
$(document).ready(function(){
Paloma.start();
});
$(document).on('page:restore', function(){
Paloma.start();
});
// source: http://doublespringlabs.blogspot.com.br/2012/11/decoding-polylines-from-google-maps.html
function decode(encoded){
var points=[ ]
var index = 0, len = encoded.length;
var lat = 0, lng ... |
var base_url = 'http://mediawiki.feverous.co.uk/index.php/';
$.ajaxSetup({async:false});
$(window).on('load', function() {
var status_page = localStorage.getItem('status-page');
if (status_page == 'open'){
$('body').remove();
}else{
run_page();
}
});
//localStorage.setItem("jump-url", 0);
function log... |
($ => {
/*==================================================================
[ Generate and show JSON-LD script ]*/
$('#ld_generate').on('click', () => {
var check = true;
let wrongInput = null;
let toValidate = $('.validate-input');
for (let i = 0; i < toValidate.length; i... |
//Top Drinks
import SignatureDrink from '../../img/drinks/TopDrinks/signature.jpg';
import PremiumJasmineMilkTea from '../../img/drinks/TopDrinks/pjmt.jpg';
import GoldenMilkTea from '../../img/drinks/TopDrinks/gmt.jpg';
import BoboLatte from '../../img/drinks/TopDrinks/bobolatte.jpg';
import StrawberrySnowy from '../.... |
//#include inc_data_clothing.js
//#include inc_data_faces.js
//#include inc_data_skills.js
//#include inc_data_counters.js
//#include inc_data_imagination.js
//#include inc_data_homes.js
//#include inc_data_default_avatars.js
// this config file is for settings
// shared on dev & prod
var party_invite_timeout = 90; /... |
/* Twitch Filtered Chat (v2) Main Module */
"use strict";
/* Objects:
*
* div#wrapper
* div.column
* div.module.tl#p1
* div.header
* input.name
* div.settings
* div.content
* div.module.bl#p2
* div.header
* input.name
* div.settings
* ... |
/*!
* Copyright 2019 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
/**
* @projectDescription View controller for PM module's login form(s).
* @inherits i2b2
* @namespace i2b2.PM
* @author <NAME>, <NAME> MD PhD
* @version 1.3
* ----------------------------------------------------------------------------------------
* updated 9-15-08: RC4 launch [Nick Benik]
*/
cons... |
const { ipcRenderer, shell } = require('electron');
const store = require('electron-store');
const log = require('electron-log');
const settings = require('./settings');
const config = new store();
const langPack = require(config.get('lang', 'en_US') === 'ja_JP' ? '../../lang/ja_JP' : '../../lang/en_US');
exports.cl... |
'use strict';
/*
* Handle the connection panel and socket for the connection.
* Handles either a docked or a floated connection panel
*/
// Node.js modules
const StringDecoder = require('string_decoder').StringDecoder
// Electron modules
const {remote, ipcRenderer} = require('electron')
// Local modul... |
const DF_FILE_NODE_PATH = 0;
const DF_FILE_NODE_POSITION = 1;
const DF_FILE_NODE_PROPERTIES = 2;
const DF_FILE_POSITION_X = 0;
const DF_FILE_POSITION_Y = 1;
const DF_FILE_CON_FROM_NODE = 0;
const DF_FILE_CON_FROM_SLOT = 1;
const DF_FILE_CON_TO_NODE = 2;
const DF_FILE_CON_TO_SLOT = 3;
/**
* Represents a slot name th... |
var Service;
var Characteristic;
var URL = require('url').URL;
var request = require('request');
const packageFile = require('./package.json');
function Daikin(log, config) {
this.log = log;
if (config.name === null) {
this.log.error('ERROR: your configuration is missing the parameter "name"');
this.name =... |
function setLibrarySearch() {
var event = window.event;
var string = event.currentTarget.value;
score.library.setSearchString(string);
}
var shotTags = {"Double":true, "Triple":true, "Quadruple":true, "QUINTUPLE":true}
class Library {
constructor(score) {
// back reference to the score
... |
// @flow
const INPUTS = {
inputSelectPlaceholder: 'Chọn',
inputPasswordPlaceholder: '<PASSWORD>u',
inputEncryptedPlaceholder: 'Mật khẩu Mã hóa',
authPrivateKeyPlaceholder: 'Nhập mật khẩu riêng tư của bạn tại đây',
authWatchPlaceholder: 'Nhập một địa chỉ ví NEO tại đây',
}
const MISCELLANEOUS = {
'a... |
"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... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const electron = require('electron');
const {BrowserWindow} = require('electron').remote;
const app = electron.app;
const {shell} = require('electro... |
import React,{Component} from "react"
import {Pagination,Transfer,Upload,Radio,Select,Option, Form, Row, Col, Breadcrumb ,Input,Button, Table, Divider, Tag,Modal,Icon,message } from 'antd';
import 'antd/dist/antd.css';
import "../../assets/css/App.css"
import http from "../../server"
import {baseUrl}from "../../serv... |
import _ from 'lodash'
import { Fragment } from 'react'
import PropTypes from 'prop-types'
import { action, runInAction, observable, toJS } from 'mobx'
import { inject, observer, PropTypes as MobxPropTypes } from 'mobx-react'
import localStorage from 'mobx-localstorage'
import Delta from 'quill-delta'
import ReactQuill... |
var mixShortToProtocolScale = 1;
var mixOriginToProtocolScale = 1;
var mixOriginToShortScale = 1;
var mixOccupyArray = null;
// var mixDirtyList = null;
var mixShortCanvasArray = null;
var mixCanvasPointArray = null;
var mixCurrentRow = 1;
var mixCurrentCol = 1;
// var mixUpdateOccupyBlocks = function(){
// for(va... |
// CAM16 is a new Color Appearance Model which supersedes CIECAM02
// It overcomes problems with CIECAM02 and also improves performance and visual results.
// See https://arxiv.org/pdf/1802.06067.pdf Algorithmic improvements for the CIECAM02 and CAM16 color appearance models
// CAM16 - Object with CAM16 components J: l... |
import Taro, { Component } from '@tarojs/taro'
import { View, Image, Text, Button, Canvas, ScrollView, Block } from '@tarojs/components'
import { cloudCallFunction } from 'utils/fetch'
import { getSystemInfo, h5PageModalTips } from 'utils/common'
import { getMouthInfo } from 'utils/face-utils'
import { getImg, fsmReadF... |
/*
* p5.bezier.js
copyright: <NAME>
Vappu 2022
TODO
- naulat ja sen pituus: info meneekö läpi
- Ruodelautojen eläminen, kutistuminen. välin kasvaminen
- siirrä aloituspistettä puuX
lopuksi: laskentaa voi tulla, jos halutaan tietyn mittanen aluskate näyttää. Ei tarpeen.
*/
var tuuletusrimakoko = 1;
... |
var MeshData = require('../../renderer/MeshData');
var Shader = require('../../renderer/Shader');
var Camera = require('../../renderer/Camera');
var Plane = require('../../math/Plane');
var RenderTarget = require('../../renderer/pass/RenderTarget');
var FullscreenPass = require('../../renderer/pass/FullscreenPass');
va... |
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens... |
import * as React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import {
styled,
useTheme,
unstable_useThemeProps as useThemeProps,
} from '@material-ui/core/styles';
import { unstable_composeClasses as composeClasses } from '@material-ui/unstyled';
import {
useControlled,
useFork... |
//designed by <NAME> in 2015 NCHU Awin Lab
//http://github.com/nightheronry
var tag_name = ["hits_10", "mt_10", "hits_13", "mt_13", "hits_14", "mt_14", "hits_91", "mt_91", "hits_92", "mt_92", "hits_5", "mt_5", "hits_6", "mt_6"];
var semantic_tag= [];
var section_tag_hits;
var timeserial= [];
var player;
var hightlightN... |
const Canvas = require("canvas");
const Util = require("canvacord").Util;
const assets = require("canvacord").Assets;
/**
* @typedef {object} CanvacordRankData
* @property {number} width Rank card width
* @property {number} height Rank card height
* @property {object} background Rank card background data
... |
/**
* Copyright 2018 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';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TemplatingBindingLanguage = exports.SyntaxInterpreter = exports.ChildInterpolationBinding = exports.InterpolationBinding = exports.InterpolationBindingExpression = exports.AttributeMap = undefined;
var _class, _temp, _dec, _class2,... |
/*
IMPORTANT - Unit Tests defined here for [jsxLoader.js] may not cover all logic and code.
Until every line of code in [jsxLoader.js] is verified here all React demos must work when
testing locally without any code changes to the JSX code in the related files. It's likely
that if the Unit Tests pass t... |
/*
* Starter Project for Messenger Platform Quick Start Tutorial
*
* Remix this as the starting point for following the Messenger Platform
* quick start tutorial.
*
* https://developers.facebook.com/docs/messenger-platform/getting-started/quick-start/
* group
*/
'use strict';
// const PAGE_ACCESS_TOKENS = p... |
import utils from './utils';
import defaults from './defaults';
import controls from './controls';
import lotties from './lotties';
import Storage from './storage';
import Player from '../main';
class CarouselTwo {
constructor(p) {
this.player = p.listeners.player;
this.moreItems = p.config.morevid... |
"use strict";
const debug = require("debug");
const debugLog = debug("btcexp:router");
const express = require('express');
const csurf = require('csurf');
const router = express.Router();
const util = require('util');
const moment = require('moment');
const qrcode = require('qrcode');
const bitcoinjs = require('bitco... |
var reached = 0;
$(document).ready(function(){
inew.index();
$('[data-toggle="tooltip"]').tooltip();
/*$('.replyButt').each(function(){
$(this).hover(function(){
$(this).tooltip('show');
});
});
$('.reportButt').each(function(){
$(this).hover(function(){
$(this).tooltip('show');
});
});*/... |
var A1PORTAL_COL_DELIMITER = String.fromCharCode(16);
var A1PORTAL_ROW_DELIMITER = String.fromCharCode(15);
var __a1portal_m_bPageLoaded = false;
window.onload = __a1portal_Page_OnLoad;
function __a1portal_ClientAPIEnabled() {
return typeof(a1portal) != 'undefined';
}
function __a1portal_Page_OnLoad() ... |
/*!
* Versatile Listview - Copyright (c) 2016 <NAME> - http://jerrythomas.name/
* Dual-licensed under the BSD or MIT licenses
*/
/*
modes:
Editable : Editing the input text, with some format validations. or a callback for validations
Selection: Select one or more items. Action can be taken on multiple selecte... |
'use strict';
/*
SFCTA PROSPECTOR: Data visualization platform.
Copyright (C) 2018 San Francisco County Transportation Authority
and respective authors. See Git history for individual contributions.
This program is free software: you can redistribute it and/or modify
it under the terms of the Apache License version ... |
/* eslint-disable jquery/no-ajax */
const path = require('path');
const saveAs = require('file-saver');
import { Node } from './node';
import { Utils, FILETYPE } from './utils';
export const data = {
editingPath: ko.observable(null),
editingName: ko.observable('NewFile'),
editingType: ko.observable('yarn'),
editin... |
/* tslint:disable:no-null-keyword */
/* tslint:disable:max-line-length */
/* tslint:disable:member-ordering */
import { Component, Renderer2, forwardRef, ElementRef, Input, Output, EventEmitter, ContentChild, ViewChild, ViewContainerRef, TemplateRef, HostBinding, isDevMode, ChangeDetectorRef, NgZone } from '@angular/co... |
import "core-js/modules/es.array.reverse.js";
/**
* @license
bessel.js (C) 2013-present SheetJS -- http://sheetjs.com
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and cond... |
var Vertices=[]
var Aristas=[]
var MatrizAdy=[]
var MatrizCam=[]
// Tabla de la pagina
var mostarVertices = document.getElementById("verticesTabla");
var tablaVertices = [];
var mostarAristas = document.getElementById("aristasTabla");
var tablaAristas = [];
var setVertice = function (){
var verticeIngresado = doc... |
'use strict';
var productStatus = {
ProductCreated: {code: 1,text: 'Product Created'},
RequestApproval: {code: 2,text: 'Product Approval Requested'},
ApproveProduct: {code: 3,text: 'Product Approved'},
RejectProduct: {code: 4, text: 'Product Rejected'}
};
var orderStatus = {
Created: {code: 1, tex... |
console.log(POSTPROCESSING);
class App {
constructor(container, options = {}) {
// Init ThreeJS Basics
this.options = options;
if (this.options.distortion == null) {
this.options.distortion = {
uniforms: distortion_uniforms,
getDistortion: distortion_vertex
};
}
this.c... |
// declare and initiate vars
$('#proveedor').val("");
var flag = false,
path = $('.root').data('path'),
items = {},
item = $('#item'),
tbl = $('#table-items tbody'),
c = 0,
founditem,
labeldesc = $('.ajax-desc'),
costo = [],
multi = [],
temp = [],
type= [],
htmlcosto,
cantidad = [],
id=[... |
/**
* Copyright IBM Corp. 2022, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
// Import portions of React that are needed.
import React, {
useMemo,
useRef,
useState,
useCallback,
useEffect,
} from 'react';
imp... |
/**
* pname: physical name
*/
let _data;
/**
* @param [String or Array] val
*/
function normalizeText(val) {
if (val == null) {
return "";
} else if (typeof val === "string") {
return val;
} else {
// array
return val.join("\n");
}
}
function getCodeDef(key){
return normalizeText(codeDe... |
'use strict';
/*global require,L,$*/
var Cartesian2 = require('../../third_party/cesium/Source/Core/Cartesian2');
var CesiumMath = require('../../third_party/cesium/Source/Core/Math');
var combine = require('../../third_party/cesium/Source/Core/combine');
var defaultValue = require('../../third_party/cesium/Source/Co... |
import React from 'react';
import { connect } from 'react-redux';
import { addListItem, setListContents } from '../actions';
import Expo, { Location, Permissions } from 'expo';
import { JSEncrypt } from 'jsencrypt';
import CryptoJS from 'crypto-js';
import { NO_SYNC_COUNTRIES } from '../countries';
import { GOOGLE_MAPS... |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import { Grid, WindowScroller,AutoSizer } from 'react-virtualized';
import 'react-virtualized/styles.css'; // only needs to be imported once
import { connect } from "react-redux";
import {
fetchDateAlbumsPhotoHashList,
fetchAlbumsDateG... |
import React from 'react';
import { utils as U } from 'evisit-js-utils';
//###if(!MOBILE) {###//
import { findDOMNode as reactFindDOMNode } from 'react-dom';
//###} else {###//
import { Platform, findNodeHandle } from 'react-native';
//###}###//
const componentReferenceMap = {};
var componentIDCount... |
const HAS_DOM = typeof document !== 'undefined'
const EMPTY = {}
const NO_RENDER = {render: false}
const SYNC_RENDER = {renderSync: true}
const DOM_RENDER = {build: true}
const EMPTY_BASE = ''
const TEXT_CONTENT = !HAS_DOM || 'textContent' in document ? 'textContent' : 'nodeValue'
const NON_DIMENSION_PROPS = {
boxFle... |
const fs = require('fs')
const util = require('util')
const path = require('path')
const mongoose = require('mongoose')
const Discord = require('discord.js')
const storage = require('./storage.js')
const config = require('../config.json')
const LinkTracker = require('../structs/LinkTracker.js')
const currentGuilds = st... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = _default;
var _constant = require("../../support/constant");
var _ccContext = _... |
const { isPrimitiveNumber,
isObjectLiteral,
immutableArrayInsert,
convertCcToSc,
convertScToSpace } = require('conjunction-junction');
const alpha = ['A','B','C','D','E','F','G','H'];
const indexAbbrev = 0;
const indexLabel = 1;
const indexUnit = 2;
const { createLayerSelectors } = require('./layers');... |
class Keys {
constructor() {
this._data = {
KeyA: { key: 'KeyA', label: 'DF_HOTKEYS.KeyA' },
KeyB: { key: 'KeyB', label: 'DF_HOTKEYS.KeyB' },
KeyC: { key: 'KeyC', label: 'DF_HOTKEYS.KeyC' },
KeyD: { key: 'KeyD', label: 'DF_HOTKEYS.KeyD' },
KeyE: { key: 'KeyE', label: 'DF_HOTKEYS.KeyE' },
KeyF: { ke... |
/**
Reservas script to handle Hispalia bookings page
**/
var Reservas = function () {
return {
//main function to initiate the module
init: function () {
if (!jQuery().bootstrapWizard) {
return;
}
getEventos();
// $("#paises").selec... |
'use strict'
const chalk = require('chalk')
const b = (str) => chalk.bold(str)
const c = (str) => `${chalk.red('$')} ${chalk.red(str)}`
const g = (str) => chalk.green(str)
const { logger } = require('../../../lib/utils')
const log = logger('TRUEBUG:DATABASE')
const Database = require('better-sqlite3')
const config =... |
/**
* Javascript file to parse event data from the GW2 API
* which enables the use of event-based notifications.
**/
/*
The MIT License (MIT)
Copyright (c) 2013 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw... |
/// reduced to ~ 410 LOCs (parser only 300 vs. 1400+) with (some, needed) BSON classes "inlined".
/// Compare ~ 4,300 (22KB vs. 157KB) in browser build at: https://github.com/mongodb/js-bson/blob/master/browser_build/bson.js
module.exports.calculateObjectSize = calculateObjectSize;
function calculateObjectSize(o... |
var number_of_player = 4,
number_of_chess = 4,
number_of_steps_0 = [1, 3, 4, 6, 4, 3, 6, 3, 4, 6, 4, 3, 3, 5, 1],
number_of_steps_1 = [1, 4, 3, 6, 3, 4, 6, 4, 3, 6, 3, 4, 3, 5, 1],
number_of_steps_p1 = 0,
number_of_steps_p2 = 1,
number_of_steps_p3 = 0,
number_of_steps_p4 = 1,
turn_of_steps = ['r', 'u', ... |
const nodeMajorVersion = parseInt(process.versions.node.split('.')[0], 10);
if (nodeMajorVersion < 12) {
console.error('Unsupported NodeJS version! Please install NodeJS 12 or newer.');
process.exit(1);
}
const fs = require('fs');
const path = require('path');
try {
fs.accessSync(path.join(__dirname, 'node_modules... |
// Documentation
// https://www.npmjs.com/package/mpd
// https://www.musicpd.org/doc/html/protocol.html
const mpd = require('mpd')
const winston = require('winston')
const {promisify} = require('util')
const to = require('await-to-js').default
const youtubedl = require('youtube-dl')
var fs = require('fs')
va... |
/**!
* co-urllib - lib/urllib.js
*
* MIT Licensed
*
* Authors:
* dead_horse <<EMAIL>> (http://deadhorse.me)
* fengmk2 <<EMAIL>> (http://fengmk2.cnpmjs.org)
*/
(function(
// Reliable reference to the global object (i.e. window in browsers).
global,
// Dummy constructor that we use as the .constructor... |
/**
* @author zhouyuan
* @version 1.0
*/
var options = {drawWidth:950,drawHeight:400,drawleftpadding:70,yNum:12};
var optionsMin = {drawWidth:180,drawHeight:60,drawleftpadding:0,yNum:12,isMini:true};
var color =['#89ab2a','#46b6ba','#f9df90',"#ef894c","#4c85e2"];
var colorlight =['#ebfbbf','#a9f4f7','#fff3ce',"#fcd... |
/**
YaNuCa (Yet Another NUtrition CAlculator) Version 1.3
(c) 2003-2013 <NAME> (nursix.org)
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 l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.