text stringlengths 3.22k 29.5k |
|---|
function ElementArray(elements, objClass){
this.elements = [ ];
this.ObjType = objClass;
this.init (elements);
}
ElementArray.prototype.init = function(elems){
var eleArr = this;
$(elems).each(function(i, e){
// only initialize it if its not already the same class
if (!(eleArr.isClass(e)))
e = new... |
import {generateGLConsole as GLConsole} from './Console/Console.js';
import {initShaderProgram as linker} from '../Shaders/ShaderLinker.js';
import {render as draw} from './Render.js';
import {updateBuffer, generateVBOs} from './Buffers.js';
import {VerticesArray, Vertices} from './VertecesHandler.js';
import {gen... |
import WfsQueryModel from "./query/source/wfs";
import GeoJsonQueryModel from "./query/source/geojson";
import Tool from "../../core/modelList/tool/model";
const FilterModel = Tool.extend({
defaults: _.extend({}, Tool.prototype.defaults, {
isGeneric: false,
isInitOpen: false,
isVisible: fal... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
'use strict';
const shortSemverRegEx = /^([~\^])?(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?$/;
const semverRegEx = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(\+[\da-z-]+)?$/i;
exports.semverRegEx = semverRegEx;
exports.shortSemverRegEx = shortSemverRegEx;
const MAJOR = Symbol('major');
const MIN... |
function drawingManager() {
this.lastX = -1;
this.lastY = -1;
this.canvas = $('canvas');
this.context = this.canvas[0].getContext('2d');
this.canvas[0].width = this.canvas[0].offsetWidth;
this.canvas[0].height = this.canvas[0].offsetHeight;
}
drawingManager.prototype.draw = function(positi... |
const {EPS, defaultResolution3D} = require('../../constants')
const OrthoNormalBasis = require('../../math/OrthoNormalBasis')
const {parseOptionAs3DVector, parseOptionAsBool, parseOptionAsFloat, parseOptionAsInt} = require('../../../api/optionParsers')
const {Connector} = require('../../connectors')
const {fromPolygon... |
'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]; } } }... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
/****** Cart Page Render & function ******/
let listGet
function getItem() {
if (JSON.parse(localStorage.getItem("shoppingCartStorage")) !== undefined && JSON.parse(localStorage.getItem("shoppingCartStorage")) !== null) {
listGet = JSON.parse(localStorage.getItem("shoppingCartStorage"))
console.log(li... |
"use strict";
var Component = require("./component");
var Processor = require('./processor');
var Cleanup = require("./cleanup");
var common = require("./common");
var Identifier = exports.Identifier = Component.define("Identifier")
.fields([
["identifier", "1..1", "@root"],
["extension", "0..1", ... |
import React from 'react';
import InputBox from '../../components/inputbox';
import ConfirmBox from '../../components/confirmbox';
import { NavLink } from 'react-router-dom';
import './index.scss';
import {connect} from 'react-redux';
import CreateCircle from './createcircle';
import DeleteCircle from './deletecircle';... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { Badge } from 'antd';
import { debounce, get, has, kebabCase, throttle, uniqBy } from 'lodash';
import requires... |
// This file contains the functionality for drawing simple ribbon diagrams from simple MEI score.
// First, make a new Orchestration object from the MEI string:
// var orch = new Orchestration(MEIString);
// Then give it an SVG object and bounding coordinates for where to draw
// orch.drawOrchestration(SVG, 0, 800,... |
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
ScrollView,
TouchableWithoutFeedback,
Animated,
PanResponder,
Platform
} from 'react-native';
import FlickAnimation from './libs/FlickAnimation';
import { visibleHeight } from './libs/layout';
im... |
#!/usr/bin/env node
const { spawn } = require('child_process');
const _ = require('lodash');
const path = require('path');
const utils = require('./utils');
const { createJobReportV2, createJobReport } = require('./reporter');
const { prepareNpmEnv, loadRunConfig, escapeXML } = require('sauce-testrunner-utils');
const ... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import {
fetchGame,
editGame,
deleteGame,
addRound,
deleteRound,
editProfile
} from '../actions';
// import { GameInput, InputControls, RoundList } from '../styles/game.css'... |
var precioTotal = 0;
var medisV = [];
var cantmedisV = [];
$(document).ready(function() {
listarVentas();
// listDeptos();
// listMunicipios();
// $("#btnGuardarV").click(guardarVenta);
$("#btnModificarV").click(guardarVenta);
// $("#btnEliminarV").click(eliminarVenta);
$("#btnCompra").click(guardarVenta)... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
var smallBlockMapX = [440, 780, 840, 900, 720, 780, 840, 900, 440, 500, 560, 900, 30, 80, 130, 180, 230, 280, 880, 930, 50, 110, 490, 550, 610, 670, 670, 730, 790, 850, 910];
var smallBlockMapY = [70, 70, 70, 70, 170, 170, 170, 170, 270, 270, 270, 270, 410, 410, 410, 410, 410, 410, 410, 410, 520, 520, 520, 520, 520, 5... |
var lastUnit = null;
var activated = false;
var showing = false;
var pmscale = 1;
function OnDragStart( panelId, dragCallbacks )
{
var panel = $('#' + panelId);
var toDragId = panel.toDragId;
//$.Msg('OnDragStart -- ', toDragId, ' -- ', panelId, ' -- ', dragCallbacks);
// hook up the display panel, and specif... |
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
// Include this mixin for any components that contain navigation that needs to collapse on mobile
var NavbarMixin = module.exports.NavbarMixin = {
childContextTypes: {
... |
import React, { useState, useEffect } from "react";
import { graphql, Link } from "gatsby";
import { v4 } from "uuid";
// import ArticleList from "../components/ArticleList";
import { makePage } from "../components/Layout";
import Help from "../components/Help";
import InfoList from "../components/InfoList";
import New... |
try {
window.$ = window.jQuery = require('jquery');
require('fancybox')($);
require('owl.carousel');
//require('bootstrap');
} catch (e) {}
$(document).ready(function(){
$('.owl-slider-home').owlCarousel({
items: 1,
nav: true,
dots: false,
navText: ['','']
});... |
/*
* Copyright (c) 2016, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, t... |
const PLTranslations = {
'APP_NAME': 'Media',
'CONFIRM_TITLE': 'Potwierdzenie',
'YES': 'Tak',
'NO': 'Nie',
'TOGGLE_NAVIGATION': 'Przełącz nawigację',
'START': 'Start',
'ONLY_AUTHENTICATED_ALLOWED': 'Dostęp wyłącznie dla zalogowanych użytkowników',
'NO_PERMISSION': 'Brak uprawnień',
'... |
const STATE = {
'BLACK_TURN': 0,
'WHITE_TURN': 1,
'WIN_BLACK': 2,
'WIN_WHITE': 3,
'NO_MOVE': 4
}
const BOARD_LENGTH = 8;
const BLACK_PIECE = {
value: 1,
element: document.createElement('div')
}
const WHITE_PIECE = {
value: 2,
element: document.createElement('div')
}
let previou... |
/*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... |
import faker from 'faker';
import { createPerson } from './people';
import { many } from './helpers';
export const priorities = [
{
self: 'https://jira.spartez.com/rest/api/2/priority/1',
statusColor: '#cc0000',
description: 'Blocks development and/or testing work, production could not run.... |
import React from 'react';
import * as nearlib from 'near-api-js';
import { generateSeedPhrase } from 'near-seed-phrase';
const FaucetPrivateKey = '<KEY>';
const FaucetName = 'meta';
const MinAccountIdLen = 2;
const MaxAccountIdLen = 64;
const ValidAccountRe = /^(([a-z\d]+[-_])*[a-z\d]+\.)*([a-z\d]+[-_])*[a-z\d]+$/;
e... |
"use strict";
/********* External Imports ********/
var lib = require("./lib");
var KDF = lib.KDF;
var HMAC = lib.HMAC;
var SHA256 = lib.SHA256;
var setup_cipher = lib.setup_cipher;
var enc_gcm = lib.enc_gcm;
var dec_gcm = lib.dec_gcm;
var bitarray_slice = lib.bitarray_slice;
var bitarray_to_string = lib.bitarray_t... |
import React from 'react';
import {
Text,
View,
Dimensions,
ActionSheetIOS,
AppState,
InteractionManager,
TouchableWithoutFeedback
} from 'react-native';
import queue from 'async/queue';
import { connect } from 'react-redux';
import Toast from '@components/Toast';
import ViewPager from '@components/view... |
$(".image-scale").mouseover(function () {
var id = $(this).find('img').attr('id');
$("#overlay-" + id).css('opacity', '1');
});
$(".image-scale").mouseleave(function () {
var id = $(this).find('img').attr('id');
$("#overlay-" + id).css('opacity', '0');
});
jQuery.extend(jQuery.easing, {
easeInOutQuad: fun... |
const ThermalPrinter = require("./node-thermal-printer").printer;
const Types = require("./node-thermal-printer").types;
const OrderType = require("@dxj/tasti-lib/lib/order").OrderType;
let db = null //require('./fb');
function sendCommand(printer, command){
//console.log('command:',command);
if(!command)... |
export function copy(text) {
function copyTextToClipboard(text) {
var textArea = document.createElement('textarea')
textArea.value = text
// Avoid scrolling to bottom
textArea.style.top = '0'
textArea.style.left = '0'
textArea.style.position = 'fixed'
docume... |
import React from 'react';
import {
View,
StyleSheet,
Button,
Alert,
BackHandler,
TouchableOpacity,
Image,
FlatList,
AsyncStorage,
Text,
TextInput,
Keyboard
} from 'react-native';
import {displaySimpleArrow, offlineMode} from "../helpers/NavigationHelper";
import {ActionA... |
import getOfflineDB from './offline/index'
import { isOBJ, isOBJByType, processStackMsg, processError, extend, buildParam, loadPako } from './utils/index'
import Log from './log/index'
import send from './report'
let logList = []
const _config = {
id: 0, // 上报 id
uin: 0, // user id
url: '//aegis.qq.com/ba... |
var nave, dirYNav, dirXNav, velNav, velTiro, posYNav, posXNav;
var vidaPlaneta, barraPlaneta;
var velBomba, tempoCriarBomba;
var tamTelaW, tamTelaH;
var jogo;
var frame;
var qtdeBombas, painelBombas;
var idExplosao;
var idSom;
var telaMsg;
function teclaUp(){
var tecla= event.keyCode;
if(tecla == 37 || tecla ... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
load("201224b0d1c296b45befd2285e95dd42.js");
load("789647b4b1873ad4adf74568147f8449.js");
load("19d7bc83becec11ee32c3a85fbc4d93d.js");
// Run test only for asm.js
if (!isAsmJSCompilationAvailable())
quit();
// Single-step profiling currently only works in the ARM simulator
if (!getBuildConfiguration()["arm-simula... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { uniq } from 'lodash'
import Button from '../Button/Button'
import Panels from '../Panels/Panels'
import PanelGroup from '../Panels/PanelGroup'
import PanelItem from '../Panels/PanelItem'
import PanelSection from '../Panels/PanelSe... |
// clang-format off
'use strict';
var path = require('path');
var fs = require('fs');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
var fs__default = /*#__PURE__*/_interopDefaultLegacy(f... |
const {URL} = require('url');
const api = require('@ucd-lib/fin-node-api');
const {logger, config, jwt} = require('@ucd-lib/fin-node-utils');
const authModel = require('./auth');
const serviceModel = require('./services');
const proxy = require('../lib/http-proxy');
const serviceProxy = require('./service-proxy');
cons... |
import React, { useState, useContext } from 'react';
import PropTypes from 'prop-types';
import { gql } from '@apollo/client';
import { List } from 'react-feather';
import PanelButton from 'Components/PanelButton';
import TopCvssLabel from 'Components/TopCvssLabel';
import TableCountLink from 'Components/workflow/Tabl... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import {
getCurrentCategoria,deleteCurrentCategoria,updateCurrentCategoria
} from "../../actions/categoriaActions";
import Spinner from "../common/Spinner.js";
//import { Button,Modal } from '... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
const _ = require('lodash');
const extend = require('extend');
const {CONVERSATION_INSTANCE_NAME} = require('../lib/constants');
const {createDialog} = require('../lib/conversation');
const AuthenticationProxy = require('../lib/authentication/authentication_proxy');
module.exports = robot => {
robot.$ = {};
robot.... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var styles = require('@material-ui/core/styles');
... |
import { FILE as _FILE } from 'react-ui-pack/files'
import {
_WORK_DIR_,
ENV,
fileFormatNormalized,
fileNameWithoutExt,
isList,
mimeTypeFromDataUrl,
SIZE_MB_16
} from 'utils-pack'
/**
* FILE VARIABLES ==============================================================
* =====================================... |
// Server Setup
var express = require('express');
var http = require('http');
var fs = require('fs');
var socketio = require('socket.io');
var app = express();
var server = http.createServer(app);
server.listen(8000);
// Server Code
app.use(express.static(__dirname + '/public'));
var io = socketio.listen(server);
... |
const elementName = "ble-sensor-graph";
const defaultPort = "5000";
const defaultWidth = 800;
const defaultHeight = 300;
const defaultMarginX = 40;
const defaultMarginY = 30;
const hour = 3600 * 1000;
const day = hour * 24;
const week = day * 7;
const month = day * 30;
const year = day * 365;
class BLESensorGraph exte... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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)) { tar... |
import { TypeNativeMessageType, TypeTriggerMsg, task } from './task'
import { ProxyMessageCenter } from './proxy'
import { ProxyServerPluginWebServerNode } from './proxy.server.plugin.webserver.node'
import { ProxyServerPluginWebServerPython } from './proxy.server.plugin.webserver.python'
import { SelfClass } from '..... |
'use strict';
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 ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import React, { Component } from 'react';
import {
Container,
Row,
Col,
Card,
CardImg,
CardTitle,
CardBody,
Badge,
DropdownToggle,
DropdownMenu,
DropdownItem,
UncontrolledDropdown,
InputGroup
} from 'reactstrap';
import { Brows... |
var this_js_script = $("script[src*=apptarea_detalle]");
var my_var_1 = this_js_script.attr("data-my_var_1");
if (typeof my_var_1 === "undefined") {
var my_var_1 = "some_default_value";
}
var my_var_2 = this_js_script.attr("data-my_var_2");
if (typeof my_var_2 === "undefined") {
var my_var_2 = "some_defaul... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _prosemirrorCollab = require("prosemirror-collab");
var _prosemirrorState = require("prosemirror-state");
var _prosemirrorTransform = require("prosemirror-transform");
var _prosemirrorView = require("prosem... |
import express from 'express'
import bodyParser from 'body-parser'
import env from 'node-env-file'
import apiai from 'apiai'
import Nexmo from 'nexmo'
import Pusher from 'pusher'
import redis from 'redis'
import basicAuth from 'basic-auth'
// Load the env file
try {
env(`${__dirname}/.env`)
} catch (error) {
conso... |
// Parser for POST and cookies
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
// Configuration
const config = require('config');
// Consolidation of pug files to HTML
const cons = require('consolidate');
// Webserver
const express = require('express');
// Sessions for expr... |
'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]; } } }... |
/********************************************************
Copyright 2016 Google Inc. 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... |
import { gameContextApi } from "./context/GameContext";
import Phaser from "phaser";
import { UI_STATE } from "./pages/constants";
import { updateCounter } from "./pages/PlayingUI";
const AUDIO_CONTEXT = new (window.AudioContext || window.webkitAudioContext)();
const SCREEN_WIDTH = 800;
const SCREEN_HEIGHT = 600;
cons... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _get... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.makeSureMaterialsTempPathExist = makeSureMaterialsTempPathExist;
exports.downloadFromGit = downloadFromGit;
exports.isGitUrl = isGitUrl;
exports.parseGitUrl = parseGitUrl;
exports.getParsedData = getParsedData;
exports.urlAddGit = v... |
const { increaseTime } = require("./utils");
const ClaimManagersList = artifacts.require("./ClaimManagersList.sol");
const SelfInsuranceDao = artifacts.require("./SelfInsuranceDao.sol");
const FINNEY = 10**15;
const DAY = 3600 * 24;
contract("InsuranceDAO", accounts => {
const [firstAccount, secondAccount, thirdA... |
/** The MIT License
Copyright 2020 <NAME> / SousLesens <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ... |
var glCompute = require('../../glCompute.js')
window.onload = function() { init() }
function init() {
document.querySelector('#processStages').addEventListener('click', function() {processStages() }, false);
document.querySelector('#animate').addEventListener('click', function() {
animated = !animated
this.valu... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _cloudinaryCore = require("cloudinary-core");
function _interopRequireDefault(obj) ... |
/**
* Created by yuuu on 14/12/22.
*/
$(document).ready(function () {
var colorButtons = $('<div>').attr('id', 'chart-color-selector');
var buttonBrue = $('<button>').addClass('btn red chart-color-selector-button').attr({
'data-color-min': '#FEFFD1',
'data-color-max': '#FF0000'
});
var... |
var $connection, $buoys;
var selection = false;
var filter = false;
var lastURL = "";
var map_showing;
var selected_buoy = "";
var surf_day = "";
var surf_month = "";
var options = '<option value="" disabled selected>Select Column</option>\
<option value="wind_dir">wind_dir</option>\
<option value="... |
const Emitter = require('component-emitter');
const ObjectFsm = require('object-fsm');
const ClockClient = require('syncsocket-clock-client');
const debug = require('debug')('syncsocket-client:channel');
const bind = require('component-bind');
module.exports = exports = Channel;
Emitter(Channel.prototype);
/**
* Ch... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
exports.isMasterEnable = isMasterEnable;
function _fs() {
const data = require("fs");
_fs = function _fs() {
return data;
};
return data;
}
function _path() {
const data = require("path");
_p... |
import React, { useEffect, useContext, useState } from 'react'
import {
View,
Text,
TouchableOpacity,
ImageBackground,
TextInput,
Alert,
} from 'react-native'
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'
import FontAwesome from 'react-native-vector-icons/FontAwesome... |
/*
* This file is part of the xPack distribution
* (http://xpack.github.io).
* 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, in... |
const _ = require('lodash');
const math = require('mathjs');
// import { math} from 'mathjs'
let arr = [
128,
25,
33.8,
58,
90,
108,
23,
108,
39.8,
49,
59.9,
49.9,
88.8,
43,
73,
58,
86,
45,
39.9,
39.9,
12.9,
58,
128,
29,
38,
49.9,
15,
128,
35,
76,
48.8,
68... |
// Library for patching Factorio saves with scenario code.
"use strict";
const events = require("events");
const fs = require("fs-extra");
const JSZip = require("jszip");
const path = require("path");
const semver = require("semver");
const libHash = require("../hash");
const knownScenarios = {
// First seen in 0.... |
import React, { useState, useEffect } from "react";
import { StyleSheet, Text, View, Dimensions, TouchableOpacity, FlatList, ScrollView } from "react-native";
import { useSelector } from "react-redux";
import MapView, { PROVIDER_GOOGLE, Circle, Marker, Callout } from 'react-native-maps';
import {
Kanit_400Regular,... |
import React, { Component } from 'react';
import { View, Text, WebView } from 'react-native';
import PropTypes from 'prop-types';
import { Actions } from 'react-native-router-flux';
import apiClient from '../utils/api-client';
import {
DISPLAY_REPORTS_AUTHORITY,
hasAuthority,
} from '../utils/authorization';
impor... |
const assert = require("../wrapper/assert-wrapper");
const { ReplaceObjects } = require("./spawn/replace-objects");
const { ObjectNamespace } = require("../lib/object-namespace");
const { PlayerDesk } = require("../lib/player-desk");
const { Spawn } = require("./spawn/spawn");
const {
Card,
CardHolder,
Obje... |
const easymodeOn = document.getElementById("easymode");
function randomizedEasyMode() {
if(!easymodeOn.checked) return false;
// return true;
return Math.random() > 0.5;
}
const ai = (function (easymode) {
let board = Array(9).fill(null);
// +--------------> X
// | * | * | *
// | ---------
// | * | * | *
... |
window.momentDurationFormatSetup(moment);
function createRipple(event) {
const button = event.currentTarget;
const circle = document.createElement("span");
const diameter = Math.max(button.clientWidth, button.clientHeight);
const radius = diameter / 2;
circle.style.width = circle.style.height = `... |
let card1 = null;
let card2 = null;
let moveNum = 0;
//winNum will be used to determine if the user won the game
let winNum = null;
let starNum = 3;
// set up an array with values which will be assigned to cards to determine what the graphic will be and what card will pair with it
let cardValue = [];
for (let i=1; i<=8... |
var serviceUrl = "https://service.lsdsoftware.com";
var states = {
STARTUP: {
onApprove: function() {
this.audioCapture = new AudioCapture();
this.audio.src = "sounds/silence.mp3";
this.audio.play();
getMicrophone()
.then(function(mic) {
if (mic) {
... |
import * as Comps from "./comps"
import * as Camera from "./camera"
import * as Unit from "./unit"
import * as Cell from "../../lib/cell/"
import * as PieceAttack from "../anims/piece-attack"
import * as PieceFlinch from "../anims/piece-flinch"
const attackDuration = 50
const finalDuration = 70
export function create... |
bcDataStore = new Ext.data.Store({
id: 'bcDataStore',
proxy: new Ext.data.HttpProxy({
url: CARPETA+'/listado',
method: 'POST'
}),
// baseParams:{tampagina: TAM_PAGINA},
reader: new Ext.data.JsonReader({
root: 'rows',
totalProperty: 'total',
id: 'i... |
window.onload = function() {
//
};
// Linha selecionada para edição começa nula
var selectedRow = null;
//array para que os dependentes sejam armazenados
let dependentes = [ ];
// Array para enviar para a Servlet poder primeiro editar e excluir e por fim editar (Evitar adicionar um quarto dependente antes de excl... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
///<reference path="Scripts/typings/jquery/jquery.d.ts"/>
///<reference path="Scripts/typings/knockout/knockout.d.ts"/>
var VoteEntry = (function () {
function VoteEntry() {
this.totalVotes1Raw = ko.observable(0);
this.totalVotes2Raw = ko.observable(0);
this.totalVotesRaw = ko.observa... |
/**
*
* SupervisorScreen
*
*/
import React from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { Helmet } from "react-helmet";
import { createStructuredSelector } from "reselect";
import { compose } from "redux";
import injectSaga from "utils/injectSaga";
import injectR... |
export const PROTOCOL_VERSION = 0x81;
export const MAXIMUM_PACKET_SIZE = 2048;
export const infoType = {
BUDDY_LIST: "buddy-list"
};
export const packetType = {
// Server check
SERVER_CHECK: { type: 'SERVER_CHECK', value: 0x01 },
SERVER_STATUS: { type: 'SERVER_STATUS', value: 0x02 },
// User Create
USER_A... |
YUI.add('reportAuthor', function (Y) {
"use strict";
var Lang = Y.Lang,
TRIGGER = 'rdReportAuthor';
Y.LogiXML.Node.destroyClassKeys.push(TRIGGER);
Y.namespace('LogiXML').ReportAuthor = Y.Base.create('ReportAuthor', Y.Base, [], {
_handlers: {},
configNode: null,
id: nu... |
/**
* Handles the 'explore' route for manage alert
* @module manage/alert/edit/explore
* @exports manage/alert/edit/explore
*/
import RSVP from "rsvp";
import fetch from 'fetch';
import moment from 'moment';
import Route from '@ember/routing/route';
import { later } from "@ember/runloop";
import { set, get, setProp... |
// @dev. This script will deploy this V1.1 of Olympus. It will deploy the whole ecosystem except for the LP tokens and their bonds.
// This should be enough of a test environment to learn about and test implementations with the Olympus as of V1.1.
// Not that the every instance of the Treasury's function 'valueOf' has... |
import "../model";
import {transformFromMapProjection as mpapiTransformToMapProjection, getProjection as mpapiGetProjection} from "@masterportal/masterportalapi/src/crs";
import getProxyUrl from "../../../src/utils/getProxyUrl";
import store from "../../../src/app-store";
const LocationFinderModel = Backbone.Model.ext... |
import React, {Component} from 'react'
import cn from 'classnames'
import Highlight from '../components/highlight'
import intent, {intentInterface} from '@albedo-link/intent'
import Dropdown from '../components/dropdown'
import {CopyToClipboard} from 'react-copy-to-clipboard'
function formatOutput(output) {
return... |
"use strict";
var _ = require("lodash");
var cluster = require("cluster");
var parse = require("parse");
var heatMap = require("heat-map.js");
var unparse = require("unparse");
var fs = require("fs");
var cpus = require("os").cpus().length; // 4 cores
module.exports = solve;
var DIFFERENT_PATHS = 53;
var NB_FORK = 3... |
import Vue from 'vue'
import uuid from 'uuid/v4'
import { MD_SEPARATOR, getPlainTitleFromBody, md2ary } from '../util'
import { join, basename, dirname } from 'path'
import fs from 'fs-extra'
import {
difference
} from 'lodash'
import mime from 'mime-types'
import { CREATE_WINDOW } from '@main/const'
import { remote,... |
import React, {createContext, useContext, useEffect, useReducer, useState} from "react";
import {
ApolloClient,
InMemoryCache,
ApolloProvider,
useQuery,
gql
} from "@apollo/client";
import config from "../config";
import error_info from "../config/error.json";
import {useSubstrateState} from "../... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.