text stringlengths 5.97k 41.2k |
|---|
/*
* Copyright (c) 2017, Joyent, Inc.
*/
var assert = require('assert-plus');
var child_process = require('child_process');
var format = require('util').format;
var fs = require('fs');
var os = require('os');
var path = require('path');
var tty = require('tty');
var read = require('read');
var VError = require('ver... |
const db = require('../util/pghelper');
const crypt = require('../util/crypt');
const sfdc = require('./sfdcconn');
const admin = require('./admin');
const logger = require('../util/logger').logger;
const Status = {Connected: "Connected", Unprotected: "Unprotected", Invalid: "Invalid", Missing: "Missing"};
const PACK... |
var GAME_WIDTH = 400;
var GAME_HEIGHT = 600;
var GAME_TIME = 60;
var GAME_FPS = 60;
var GAME_BACKGROUND = "242, 241, 239";
var gameScore = 0;
var FOOD_WIDTH = 20;
var FOOD_HEIGHT = 20;
var BUG_WIDTH = 10;
var BUG_HEIGHT = 40;
var game = document.getElementById("game");
var ctx = game.getContext('2d');
var foods = ... |
'use strict';
const states_dropdown_template = `
<div class="filter">
<select id="states" name="states">
<option selected="selected" value="states">All states</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansa... |
var lastURL="";
var lastData=[];
var actualDataSource=null;
var actualInfoFormat=null;
var selectedChart=null;
var geojsonDEP;//, geojson;
var mymap;
var sidebar;
var grades=[];
var Layer_Legend=null;
var selectedArea=null;
var lastSelectedArea=null;
var mapLayers=[
{id:"polygons",title:"Polygons",display:true},
... |
function removeResource(event, imageId) {
var targ;
if (!event) var event = window.event;
if (event.target) targ = event.target;
else if (event.srcElement) targ = event.srcElement; //for IE
else {}
if(($(targ).closest(".uploaded_files_list").size() == 1) && ($( "input[name='resType']" ).val() ==... |
'use strict';
var es6_promise_1 = require("es6-promise");
var fs = require("fs");
var path = require("path");
var stripBom = require("strip-bom");
var _ = require("lodash");
var utils = require("./utils");
var templateProcessor = null;
var globExpander = null;
var gruntfileGlobs = null;
var verboseLogger = null;
var ab... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.DEFAULT_MAX_COLUMNS_IN_LIST = void 0;
var _ = _interopRequireWildcard(require("lodash"));
var _baseProperty = _interopRequireDefault(require("../adapters/base-property"));
var _propertyDecorator = _interopRequir... |
/**
* Blockly Demo: Turtle Graphics
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... |
"use strict";
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.symbol.iterator.js");
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.string.iterator.js");
requi... |
;
$(document).ready(function () {
stopBubblingForInputs();
visualizeHistoryParams();
getInitialDataListings();
// getInvoicesSTP();
});
(function addOnClickToReadingsPreviewBTN() {
$('#preview-readings').click(async () => {
await setHeadingsColsandItemsRowsInLocalStorage();
... |
function func_up(element){
var _e_parent_item = element.parentElement.parentElement;
var _e_parent_topping = _e_parent_item.parentElement.parentElement.getElementsByClassName("cart-list-topping")[0];
var _e_order_topping = _e_parent_topping.getElementsByClassName("order-topping");
var _ordertopping = 0;
var _e_it... |
function initSearchInterface(){
/* $("#main-search-bar").keyup(function(e){
$("#second-search-bar").val($(this).val());
$("#input-search-map").val($(this).val());
if(e.keyCode == 13){
initTypeSearch(typeInit);
startSearch(0, indexStepInit, searchCallback);
... |
import { createStore, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import { put, take, select } from 'redux-saga/effects';
import './index.css';
const initialGameState = {
// meta
game_on: false,
screen_h: 480,
screen_w: 640,
// player 1 stuffs
p1_x: 0,
p1_y: 190, // (... |
/*
* This file is part of the gina package.
* Copyright (c) 2016 Rhinostone <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
//Imports.
var url = require('url')
, fs = require('fs')
... |
var cms_images_loading = false;
var cms_images_load_parameters = {};
function cms_images_mark() {
$('.cms_images_mark').remove();
$('.cms_images_selected').append('<img class="cms_images_mark" src="' + config_url + 'modules/cms/img/green_tick.png">');
}
/*
* attaches functions when cms images panel contents are c... |
//@author mu @16/5/11
var local_Orade = 100
var doExp1 = myLayer.extend({
sprite: null,
changeDelete: true, //是否退出删除
layerName: "doExp1",
preLayer: "doLayer",
isCandaoyan : false,
shiguansp : null,
baowensp : null,
somenode : null,
xianbeizi : null,
iswendujiInputpos : false,
... |
import "./style.css"; // For webpack support
import {
DataTexture,
RGBAFormat,
LinearFilter,
Scene,
PerspectiveCamera,
AmbientLight,
DirectionalLight,
GridHelper,
AxesHelper,
TextureLoader,
RepeatWrapping,
MeshBasicMaterial,
Mesh,
IcosahedronGeometry,
OctahedronGeometry,
TetrahedronGeom... |
instancia_reinvitar = function() {
$("#reinvitar_form").dialog({
resizable: false, width:450, height:200, modal: true,
buttons : {
"Re-enviar invitaciones" : function() { $("#reinvitar_form form").submit(); } ,
"Cancelar" : function() { $(this).dialog('close'); }
... |
var isConfigured = false;
var sendWorker = function (task, interval) {
if (InstanceRecordQueue.debug) {
console.log('InstanceRecordQueue: Send worker started, using interval: ' + interval);
}
return Meteor.setInterval(function () {
try {
task();
} catch (error) {
console.log('InstanceRecordQueue: Error... |
import React, { useState, useEffect, useReducer } from 'react';
import styled from 'styled-components';
import { BookOpen } from '@styled-icons/boxicons-regular/BookOpen';
import { OpenBook } from '@styled-icons/entypo/OpenBook';
import { CancelCircle } from '@styled-icons/icomoon/CancelCircle';
import { TextDocument ... |
//jshint esversion: 8
// For adding touch events to phones : https://stackoverflow.com/questions/11845678/adding-multiple-event-listeners-to-one-element
/*****************DOM ELEMENTS********************* */
console.log(window.location);
//Top Section
const [
backButton, //Change to button?
speakButton,
playlis... |
var dataTable_contributor_autofillUsersComp;
function onDataTableClick(event, dataTableTypeId, datasetId, dataTableId) {
event.preventDefault();
if(CKEDITOR.instances.summary) CKEDITOR.instances.summary.destroy();
if(CKEDITOR.instances.description) CKEDITOR.instances.description.destroy();
console.log... |
/*
Modified: 2020-02-22
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, ... |
//
// Module : MMM-GoogleAssistant
var _log = function() {
var context = "[ASSISTANT]";
return Function.prototype.bind.call(console.log, console, context);
}()
var log = function() {
//do nothing
}
Module.register("MMM-GoogleAssistant", {
defaults: {
debug:false,
assistantConfig: {
lang: "en-US... |
/**
* Created by sumedas on 03-Apr-15.
*/
var _ = require('lodash'),
Promise = require('bluebird'),
fs = Promise.promisifyAll(require('fs')),
bodyParser = require('body-parser'),
multer = require('multer'),
cache = require('memory-cache')... |
"use strict";
/**
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.apa... |
/*
Copyright 2020 AryToNeX
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... |
///////////////////////////////////////////////////////////////////////////
//////////////////////////////// Render map ///////////////////////////////
///////////////////////////////////////////////////////////////////////////
if (ipadPRO_landscape) {
var scale = width/6
var translateX = 0
var translateY = 0
} e... |
import {MaterialPass} from "../MaterialPass";
import {DirectionalLight} from "../../light/DirectionalLight";
import {PointLight} from "../../light/PointLight";
import {ShaderLibrary} from "../../shader/ShaderLibrary";
import {capabilities, META} from "../../Helix";
import {Float4} from "../../math/Float4";
import {Matr... |
'use strict';
// const regions = require('aws-core-utils/regions');
const copying = require('core-functions/copying');
const copy = copying.copy;
const deep = copying.defaultCopyOpts.deep;
const merging = require('core-functions/merging');
const merge = merging.merge;
const Strings = require('core-functions/strings... |
import Base64 from './base64.js';
import { encodeUTF8 } from './util/strings.js';
import EventTargetMixin from './util/eventtarget.js';
export class AESEAXCipher {
constructor() {
this._rawKey = null;
this._ctrKey = null;
this._cbcKey = null;
this._zeroBlock = new Uint8Array(16);
... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Link} from 'react-router';
import { browserHistory } from 'react-router'
import {getGroupContainTags,getSearchResult,setToolMode} from "../../actions";
import {injectIntl, intlShape, FormattedMessage} f... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Rows = exports["default"] = void 0;
var _helper = _interopRequireDefault(require("./helper"));
var _alphabet = require("./alphabet");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj };... |
// copyright 2017, Rogue wave software
// developed by <NAME>
function ConvertJsonToTableCve(parsedJson) {
//Pattern for table
var tbl = '<table id= "cve_info1" class="table table-striped">{0}{1}</table>';
//Patterns for table conten
var tr = '<tr>{0}</tr>';
var tdCve = '<td style="max-width:... |
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <NAME>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
/*custom.js
Adding custom javascript or jquery function
* Copyright (c) 2014, Ommu Platform. All rights reserved.
* version: 0.0.1
*/
//check whether submit button save is click, prevent double post save
var isEnableSave = 0;
//button save click
function setEnableSave() {
isEnableSave = 1;
}
/**
* form function
*... |
/**
* An AutocompleterDataSource is a component of the autocompleter framework which retrieves
* suggestions.
*
* The DataSource has to implement the following interface:
* <ul>
* <li>handlesCategory: function(categoryId) - returns whether the DataSource handles the category.
* This method is invoked bef... |
/**
* Provides 2 Components:
* 1. Copy/Icons/Loading state for the action
* 2. The actual actions
*/
import { CircularProgress } from "@material-ui/core";
import AlertIcon from "@material-ui/icons/ErrorOutline";
import PlayIcon from "@material-ui/icons/PlayArrow";
import LaunchIcon from "@material-ui/icons/Launch";... |
// @flow
import { PHASE, g } from "../../common";
import { idb } from "../db";
// http://www.basketball-reference.com/about/per.html
const calculatePER = (players, teams, league) => {
for (const t of teams) {
t.stats.paceAdj = league.pace / t.stats.pace;
// Handle divide by 0 error
if (Nu... |
let laySmartHomeData = {};
let mangSmartHomeData = [];
let indexForEdit = 0;
function loadData_smarthome()
{
laySmartHomeData = JSON.parse(document.body.dataset.laysmarthomedata);
let j = 0;
for(let key in laySmartHomeData)
{
mangSmartHomeData[j] = laySmartHomeData[key];
j++;
}
c... |
const cxConstants = require('../cxConstants.js');
const jsConstants = require('./cytoscapeJSConstants.js');
const cxUtil = require('../cxUtil.js');
function simpleDefaultPropertyConvert(targetStyleField, portablePropertValue) {
const targetStyleEntry = new Map();
targetStyleEntry.set(targetStyleField, portabl... |
let core
window.onload = ()=>{
let manual = new Button({n: `Manual transformation`, class: `switch`})
let parametric = new Button({n: `Channels`, class: `switch`})
manual.classList.add(`active`, `left`)
parametric.classList.add(`right`)
let fi = new Range({ width: 480, value: 0.0001, class: `input`, min: 0.0001... |
'use strict'
const Homey = require('homey')
const Util = require('../util.js')
// const Geofences = require('../geofences.js')
const flowlist = {
autoConditioningState: onConditionAutoConditioningState,
driverTempSettingValue: onConditionDriverTempSettingValue,
panoroofState: onConditionPanoroofState,
vehicle... |
import React from "react";
import PropTypes from "prop-types";
import {
Breadcrumb,
Button,
Dropdown,
Icon,
Menu,
Modal,
Select,
Tooltip,
message
} from "antd";
import ClassNames from "classnames";
import Base from "components/main/Base";
import Page from "components/main/Page";
import Permission fro... |
import * as Hammer from '@egjs/hammerjs';
import iro from '@jaames/iro';
import uniqolor from 'uniqolor';
/**
* attach an event listener
*
* @param {string} elem - id of the element on which to hand the event listener
* @param {string} event
* @param {function} callback
*/
export function listen(id, event, callba... |
import React, { PureComponent, Fragment } from 'react';
import {
Table, Button, Input, message, Popconfirm, TimePicker,
Divider, Card, Select, Icon, Calendar, Badge, DatePicker,
Row, Modal, Col, Tag, Alert, Tooltip
} from 'antd';
import styles from './style.less';
import { connect } from 'dva';
import Creat... |
import SPResourceElement from '/js/controls/resource.js';
import SPTableDesigner from '/js/controls/tabledesigner.js';
import {getParentElementByClass, getParentElementByTagName} from '/js/util/dom.js'
/**
* Table element
**/
class SPTableElement extends SPResourceElement {
constructor() {
... |
import React, { useState, useEffect } from 'react'
import Fab from '@material-ui/core/Fab'
import NavClose from '@material-ui/icons/Close'
import { PlayerInfo } from '../components/player-info.js'
// import Sound from 'react-sound'
// BUG FIX !!!
// Temporary bug fix for react-sound version 1.1.0
import Sound from './s... |
//#region P5 Context
const FontGenerator = (p5) => {
let isReady = false;
let isLoading = false;
let videoParams;
let imageSource;
let isSourceDrawn = false;
let center;
let lastposes = [];
let poses = [];
let isBonesDrawn = true;
let isBonesCentered = false;
let gravityPoin... |
/**
* Main application file for Lacu.
* 9:01PM 5:26AM = 8 hr 25 min = 505 minutes = 30,300 seconds - (some lee-way)
*
* Do note that the main author on this was no D3 expert and this
* may be wildy bad code...
*/
// Class for application
function Lacu() {
// Common properties
this.width = 1440;
this.height... |
var $IMG = $('.img'),
$INFO_CHECK = $('.info-check'),
$CHEVRON = $('.fa-chevron-down'),
$LOCK = $('.lock'),
$PO_CONTENT = $('.purpose-content'),
$PC_CONTENT = $('.procedure-content'),
$WD_CONTENT = $('.wd-content'),
$PP1 = $('.pp1'),
$PP2 = $('.pp2'),
$EXP_CONTINUE = $('.exp... |
import BinaryHeap from "./binary-heap";
const FLOAT_TOLERANCE = 0.0000001;
/**
* Orthogonal connector routing between points.
* Loosely based on:
* Wybrow, Michael, <NAME>, and <NAME>.
* "Orthogonal connector routing."
* International Symposium on Graph Drawing.
* Springer, Berlin, Heidelberg, 2009.
*/
export de... |
/* eslint-disable */
function parse_3d_file(filename, s) {
//determine type of file
switch (filename.split('.').pop().toLowerCase()) {
case "stl":
return parse_stl_bin(s);
break;
case "obj":
return parse_obj(s);
break;
case "vf":
return parse_vf(arrayBufferToString(s));
break;
default:
r... |
/*
** OnLoad
*/
$(function () {
// Handle New Landmark modals
$('#newlandmark').click(LANDMARK.Add);
$('#validAddLandmark').click(LANDMARK.Save);
$('#validCancelLandmark').click(LANDMARK.Cancel);
});
/*
** Document Loaded
*/
$(document).ready(function () {
MapObject.Load();
GetRegions();
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var common_1 = require("../common");
var common_2 = require("../common");
// Global intrinsic functions.
var intrinsicFunctions = new common_1.Dictionary();
var intrinsicFunctionList = [];
var typeConversions = new common_1.Dictionary();
var c... |
let w1 = new Array(64);
let s0 = new Array(64);
let s1 = new Array(64);
let i, j, u;
for (i = 0; i < w1.length; i++) {
w1[i] = new Array(32);
s0[i] = new Array(32);
s1[i] = new Array(32);
}
let w1hex= [0x0000c020, 0x8e195e82, 0x5806a5ac, 0x9467a653, 0x00fe9de6, 0xf0c34b81, 0x6f230600, 0x00000000,
... |
const neeoapi = require('neeo-sdk');
const path = require('path');
const settings = require(path.join(__dirname,'settings'));
const variablePattern = {'pre':'$','post':''};
const RESULT = variablePattern.pre + 'Result' + variablePattern.post;
const BROWSEID = variablePattern.pre + 'NavigationIdentifier' + variablePatte... |
rpycTareasDataStore = new Ext.data.Store({
id: 'rpycTareasDataStore',
proxy: new Ext.data.HttpProxy({
url: CARPETA+'/listado_tareas',
method: 'POST'
}),
baseParams:{tampagina: TAM_PAGINA}, // this parameter is passed for any HTTP request
reader: new Ext.data.JsonReader({... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof3 = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.generateIfState = generateIfState;
exports.generateJSXElement = generateJSXElement;
exp... |
import React, {useEffect, useState, useLayoutEffect} from 'react';
import { Modal, Text, View, TouchableOpacity, ActivityIndicator, Dimensions, Image, ScrollView, Share } from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';
import * as Linking from 'expo-linking';
import EStyleShee... |
var base_url = 'http://www.yii.com';
var url = {
login : base_url +'/user/login',
register : base_url +'/user/register',
logout : base_url +'/user/logout',
pass_index : base_url +'/pass/index',
pass_detail : base_url +'/pass/detail',
pass_add : base_url +'/pass/add',
pass_delete : base_url... |
var vgCate = [
'根莖類',
'葉菜類',
'花菜類',
'瓜果類',
'豆類與種子類',
'其他',
];
var vgItem = {
'根莖類':[
'蘿蔔', '胡蘿蔔', '馬鈴薯', '芋', '牛蒡', '甘薯', '茭白筍', '蘆筍', '球莖甘藍', '洋蔥', '薑', '大蒜'
],
'葉菜類':[
'甘藍', '小白菜', '包心白', '青江白菜', '蕹菜', '芹菜', '菠菜', '萵苣菜', '芥菜', '芥藍菜', '莧菜', '油菜', '甘薯葉', '蕨菜'
],
'花菜類':[
'花椰菜', '金針... |
(function ($) {
"use strict";
/*[ Load page ]
===========================================================*/
$(".animsition").animsition({
inClass: 'fade-in',
outClass: 'fade-out',
inDuration: 1500,
outDuration: 800,
linkElement: '.animsition-link',
loadi... |
// SVG wrapper dimensions are determined by the current width and
// height of the browser window.
var svgWidth = 960;
var svgHeight = 575;
var chartMargin = {
top: 30,
bottom: 95,
right: 30,
left: 95
};
var chartHeight = svgHeight - chartMargin.top - chartMargin.bottom;
var chartWidth = svgWidth - ch... |
/*eslint-disable */
// md5 implementation (https://github.com/satazor/SparkMD5), modified for size
let add32 = function (a, b) {
return (a + b) & 0xFFFFFFFF
}
const cmn = function (q, a, b, x, s, t) {
a = add32(add32(a, q), add32(x, t))
return add32((a << s) | (a >>> (32 - s)), b)
}
const ff = function (a, b, c, ... |
require("dotenv").config(); // this import environment variables like port, or db connection information
const express = require("express"); // creates the Express application
const morgan = require("morgan"); // using as logger
const cors = require("cors");
const db = require("./db"); // refernces the index.js in t... |
/**
* Główny helper dla wszystkich skryptów pomocniczych
*/
var Helpers;
(function (Helpers) {
var Main = /** @class */ (function () {
function Main() {
this.CMSR_TRIGGER = "cmsr-trigger";
/**
* Wywołanie ajaxa
* @param {Function} callback
* ... |
var signalProcess = require("./signal_processing.js");
// Constants used in LogOfEnergy().
const kLogConst = 24660; // 160*log10(2) in Q9.
const kLogEnergyIntPart = 14336; // 14 in Q10
const kMinEnergy = 10;
// Coefficients used by HighPassFilter, Q14.
const kHpZeroCoefs = [6631, -13262, 6631];
const kHpPoleCoefs =... |
import React from "react";
import { useState } from "react";
import getProduct from "./getProductImage.jpg";
import useStyles from "./newsStyles";
import data from "../data/planet.json";
import Card from "@mui/material/Card";
import CardActions from "@mui/material/CardActions";
import CardContent from "@mui/material/Ca... |
var sunImage;
var moonImage;
var earthImage;
var sunTrailColor;
var earthTrailColor;
var moonTrailColor;
var bodies;
var savedPrevPos = [];
var selectedBody;
var newVelocity;
var shouldRun = true;
var showVel = false;
var showAccel = false;
var showForces = false;
var shiftHeld = false;
var savePrevious = false;
var sh... |
var CorrectKey = "";
var LessonProgress = -1;
var LessonInProgress = false;
var WordAudio = "";
var WordVideo = "";
var RandomLetters = "";
var KeyboardLetters = "";
var ProgressiveKeys = "";
var RandomList = [];
var LessonRealLength = -1;
var WrongCount = 0;
var Timer1, Timer2, Timer3, Timer4;
var AllWordsData;
... |
/* eslint-disable eqeqeq */
/*global data, labelSummary, imageSummary, $, modelHistories, hierarchyData*/
// eslint-disable-next-line no-unused-vars
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
document.getElementById("main").style.marginLeft = "250px";
}
// eslint-disable-... |
/**
* @file
* Adapted from https://github.com/GoogleChrome/samples/tree/gh-pages/service-worker
* and https://jakearchibald.com/2014/offline-cookbook/
*/
"use strict";
// If at any point you want to force pages that use this service worker to start
// using a fresh cache, then increment the CACHE_VERSION value in ... |
import Vuex from 'vuex';
import Vue from 'vue';
import Axios from 'axios';
Vue.use(Vuex);
const store = new Vuex.Store({
// strict: true,
state: {
//---------------------------유저관련--------------------------
isUser: false,
loginAlert: false,
userInfo: {
//유저 기본정보
... |
"use strict";
var utils = require('./utils.js');
var c = utils.loadConfig();
var forceConstant = c.forceConstant;
exports.getEngine = function(bulletList,shipList,asteroidList,planetList,nebulaList,tradeShipList,gadgetList,itemList){
return new Engine(bulletList,shipList,asteroidList,planetList,nebulaList,tradeShipL... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
/******************************************************************************/
/* cont3xt.js -- The main cont3xt app
*
* Copyright Yahoo Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the... |
import { StatusBar } from 'expo-status-bar';
import React, { Component } from 'react';
import { Dimensions, Text, View, TextInput, TouchableHighlight, Alert } from 'react-native';
import Swiper from 'react-native-swiper'
import AsyncStorage from '@react-native-async-storage/async-storage';
import Category from './Compo... |
//1a rodada - escolher movimento: Hide, Evade, Fight, Bomb.
//Hide
function hide() {
// Infecção bairro a bairro com o movimento Hide
function evadeMove() {
let humansArr = humansRemaining();//
return humansArr.map(function(block) {
return Math.floor(block * ((Math.random() * (1... |
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormal... |
/*
* CLARK 2014
* SP O365
*
* v1.1
* v1.2 - added in timer for search results -- added in people search url 8/22/2014
* V1.3 - added code to keep the user profile data in session storage to reduce the number of API calls
* strengthen userProfile not available algorithm
* V1.4 - updated init function to r... |
/**
* Module dependencies
*/
var util = require('util');
var _ = require('lodash');
var async = require('async');
var prompt = require('prompt');
var loadModelsAndCustomAdapters = require('./load-models-and-custom-adapters');
var validateDatastoreConfig = require('./validate-datastore-config');
var validateModelDef ... |
$(document).ready(function() {
});
function FriendCtrl($scope) {
$("#afdiv").show();
$(".nav").children("li").eq(1).addClass('active').children("a").addClass('color-pumpkin');
//$scope.friends = ["<EMAIL>", "<EMAIL>", "<EMAIL>"];
$scope.friends = [];
$scope.email = '';
$scope.results = {};
$scope.error = false;... |
const REBUILDING_BOARD_STATE = 'updateGameState: either more than 1 new move received, or takeback has occured; building board state from starting position...';
const NO_SUCH_PIECE = 'updateUserPiece: attempting to update piece that does not exist in userPieceMap...';
const MUST_SPECIFY_PIECE = 'findValidPiece: more t... |
/* -----------------------
* Progress bars Animation
* --------------------- */
$(document).ready(function () {
var $progress_bar = $('.skills-item');
$progress_bar.each(function () {
$progress_bar.appear({force_process: true});
$progress_bar.on('appear', function () {
var current_bar = $(this);
if (!cu... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/**
* @fileoverview Helper functions to work with path strings
*/
const PROPERTY_PATH_DELIMITER = require('@fluid-experimental/property-common').constants.PROPERTY_PATH_DELIMITER;
const MSG = requ... |
import * as d3 from 'd3';
import dagre from 'dagre';
import graphlib from 'graphlib';
import { logger } from '../../logger';
import classDb from './classDb';
import utils from '../../utils';
import { parser } from './parser/classDiagram';
parser.yy = classDb;
const idCache = {};
let classCnt = 0;
const conf = {
di... |
import IdleQueue from 'custom-idle-queue';
import {
filter
} from 'rxjs/operators/filter';
import * as util from './util';
import RxDocument from './rx-document';
import RxQuery from './rx-query';
import RxChangeEvent from './rx-change-event';
import RxError from './rx-error';
import DataMigrator from './data-migr... |
'use strict';
var pouchCollate = require('pouchdb-collate');
var TaskQueue = require('./taskqueue');
var collate = pouchCollate.collate;
var toIndexableString = pouchCollate.toIndexableString;
var normalizeKey = pouchCollate.normalizeKey;
var createView = require('./create-view');
var log;
/* istanbul ignore else */
i... |
// import { StyleSheet, Text, View, Alert, TouchableOpacity } from "react-native";
// import React, { Component } from "react";
// // import Video from "react-native-video";
// import {Video} from "expo-av"
// import { DragResizeBlock } from "react-native-drag-resize";
// import Service from "../../../libs/service";
//... |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
<NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free... |
/**
* Implements cookie-less JavaScript session variables
* v1.0
*
* By <NAME>, Optimalworks.net
* http://dreamerslab.com/blog/tw/javascript-session/
*
*/
if (JSON && JSON.stringify && JSON.parse) var Session = Session || (function() {
// cache window 物件
var win = window.top || window;
// 將資料都存入 ... |
'use strict'
// Do a two-pass walk, first to get the list of packages that need to be
// bundled, then again to get the actual files and folders.
// Keep a cache of node_modules content and package.json data, so that the
// second walk doesn't have to re-do all the same work.
const bundleWalk = require('npm-bundled')... |
/**
* 将零散的文件打包合成一个新文件。
*/
var common = require('./common.js');
var SourceMap = require('source-map');
var Sugarjs = require('sugar');
var _ = fis.util;
var rSourceMap = /(?:\/\/\#\s*sourceMappingURL[^\r\n\'\"]*|\/\*\#\s*sourceMappingURL[^\r\n\'\"]*\*\/)(?:\r?\n|$)/ig;
Sugarjs.extend();
function getFileRequires(src, ... |
/** @jsx jsx */
import { jsx } from '@emotion/core';
import React, { Component } from 'react';
import {
addComponent,
removeComponent,
watchComponent,
updateQuery,
setQueryOptions,
setQueryListener,
setComponentProps,
setCustomQuery,
updateComponentProps,
} from '@appbaseio/reactivecore/lib/actions';
import h... |
// scene/demo-specific variables go here
let modelMesh;
let modelScale = 1.0;
let modelPositionOffset = new THREE.Vector3();
let albedoTexture;
let total_number_of_triangles = 0;
let triangle_array;
let triangleMaterialMarkers = [];
let pathTracingMaterialList = [];
let uniqueMaterialTextures = [];
let meshLi... |
/**
* This file has been generated by Babel. DO NOT EDIT IT DIRECTLY
*
* Edit the source file at src/js/RmxAudioPlayer.ts
**/
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.AudioPlayer = exports.RmxAudioPlayer = void 0;
var _Constants = require("./Constants")... |
import chai, {expect} from 'chai';
import chaiAsPromised from 'chai-as-promised';
import SignedApprovalScheme from '../../build/SignedApprovalScheme';
import MockContract from '../../build/MockContract';
import MockToken from '../../build/MockToken';
import {createMockProvider, deployContract, getWallets, solidity, con... |
const fs = require('fs');
const path = require('path');
const assert = require('assert');
const {promisify} = require('util');
const querystring = require('querystring');
const {stripIndent} = require('common-tags');
const {JSDOM} = require('jsdom');
const axios = require('axios');
const moment = require('moment');
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.