text stringlengths 3.22k 29.5k |
|---|
const HUMAN_ID = 0;
const AI_ID = 1;
const GAME_SYMBOLS = {
'X': HUMAN_ID,
'O': AI_ID
}
const BOARD_LENGTH = 9;
class Game {
constructor() {
this.playerScore = 0;
this.computerScore = 0;
this.reset();
}
reset() {
this.turn = null;
this.board = new Board();
this._updateInfoBoard()... |
'use strict';
import React from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import { ProgressBar, Popover, Tooltip, Button, Modal } from 'react-bootstrap';
import api from './api.js'
var ReactToastr = require("react-toastr");
var {ToastContainer} = ReactToastr;
var ToastMessag... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Grid from '@material-ui/core/Grid';
import I18n from '@iobroker/adapter-react/i18n';
import ConfirmDialog from '@iobroker/adapter-react/Dialogs/Confirm';
import IconInfo from '@material-ui/icons/Info';
import IconWarning from '@mater... |
import React, { useState, useEffect, useCallback } from 'react'
import { useDebounce } from 'use-debounce'
import { Liquid } from 'liquidjs'
import raw from 'raw.macro'
import debounce from 'lodash.debounce'
import handlebars from 'handlebars'
import copy from 'clipboard-copy'
import { writeStorage, useLocalStorage }... |
import Croppr from 'dnm-croppr'
import smartcrop from 'smartcrop'
import tracking from './tracking/tracking';
import './tracking/data/face';
class SmartCroppr extends Croppr {
constructor(element, options) {
super(element, options, true)
if(options.debug) this.debug = true
let originalIn... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import _get from "lodash/get";
import _pick from "lodash/pick";
import * as React from 'r... |
class GameOfLife {
constructor(
canvas,
ctx,
canvasGrid,
ctxGrid,
rows,
cols,
maxCellSize,
mod,
aliveStyle,
deadStyle,
addGlow,
gridStyle,
showGrid
) {
this.canvas = canvas;
this.ctx = ctx;
this.canvasGrid = canvasGrid;
this.ctxGrid = ctxGrid;
this.rows = rows;
this.cols = cols;
... |
var sshell = require('../sshell');
var fs = require('fs');
const path = require('path');
var script;
fs.readFile(path.join(__dirname, '../scripts/openvpn-install.sh'), 'utf8', function (err, out) {
if (!err && out) {
script = out.replace('SUDO_USER', 'NOSUDO_USER');
}
});
var plugin = {};... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _toConsumableArray2 = _interop... |
/* eslint "no-console": "off" */
const path = require("path");
const _ = require("lodash");
const moment = require("moment");
const siteConfig = require("./data/SiteConfig");
// 2021-08-05-migrate-react-class-component-to-functional-component
const dateOfFile = /^\d\d\d\d-\d\d-\d\d-/;
exports.onCreateNode = ({ node,... |
import {
FUND_AGGREGATION,
LOCATION_AGGREGATION,
COMMODITY_AGGREGATION,
DATA_FILTER_KEY,
// not used EXCLUDE_PROPS,
// not used DATA_TYPE,
PRODUCTION,
REVENUE,
DISBURSEMENT,
PERIOD,
QK_QUERY_TOOL,
QK_DISBURSEMENTS_COMMON,
QK_REVENUE_COMMON,
QK_PRODUCTION_COMMON,
FISCAL_YEAR,
PERIOD_FIS... |
/**
*
* Copyright 2016 Netflix, Inc.
*
* 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 a... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_intl_1 = require("react-intl");
var theme_1 = require("@atlaskit/theme");
var avatar_1 = tslib_1.__importDefault(require("@atlaskit/avatar"));
var bu... |
/* eslint-disable no-undef */
/**
* flat-tests.js contains tests for creating flat files for Symphony ILS.
*
* Copyright 2021 <NAME>, Edmonton Public Library
*
* 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 ... |
/**
* sportsoptimizer.js
* It contains all basic scripts for index.html/optimizer.html
*/
var isCreation = true;
var savedSelectionVal = "None";
var updateIdx = -1;
const { remote, app } = require('electron');
var win = remote.getCurrentWindow();
const path = require('path');
var knex = require("knex")({
client: "sq... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const util_1 = require("util");
const enums_1 = require("../enums");
const utils_1 = require("../utils");
const _1 = require("./");
const scripts_1 = require("./scripts");
const logger = util_1.debuglog('bull'... |
/*
* This will get all unique keys from a nested array
*/
function theDigger (obj) {
var theFields = [];
if (typeof obj == 'object') {
$.each(obj, function (k,v) {
if (k.indexOf('fn.') === -1) {
if (k.indexOf('this.') === -1) {
... |
import React from "react";
import ShoppingCartIcon from "@material-ui/icons/ShoppingCart";
import SearchIcon from "@material-ui/icons/Search";
import { withStyles } from "@material-ui/core/styles";
import Badge from "@material-ui/core/Badge";
import PersonIcon from "@material-ui/icons/Person";
import { connect } from "... |
// @ts-check
/** @typedef {FileSystemHandleArray} FileSystemHandle2 */
class FileSystemHandleArray {
constructor(name = '') {
this.name = name;
/** @type {FileSystemHandleKind} */
this.kind = 'directory';
/** @type {Record<string,FileSystemHandle2>} */
this._entries = {};
... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2015, Louis.chu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions o... |
function PageZipper() {
/*------------------ Configuration -------------------*/
//TODO add non-english synonyms
this.nextSynonyms = [
//beware, the order of this list is referenced elsewhere!
{syn: "next", weight: 100},
{syn: "older", weight: 80},
{syn: "previous", weight: 60},
{... |
const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.urlencoded({ extended: true }));
// configurar las vistas
app.set('views',path.join(__dirname,'views'));
app.set('view engine','pug');
// bootstrap
app.use(expre... |
//
// Copyright (c) Autodesk, Inc. All rights reserved
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited wa... |
// Copyright 2019 <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, merge, publish, distribute... |
var doAnimate = 1;
var vbose=0;
var width = 800,
height = 600;
var dx = 300;
var dy = 100;
var mnyear = 1776;
var mxyear = 2015;
var animateInterval = 300 // milliseconds
var nyear = 20.0;
var smallCircle = 4.0;
var bigCircle = 6.0;
var myDuration = 250;
var startOpacity = 0.8;
var landEndOpacity = 0.8;
functio... |
import i18next from 'i18next';
import core from 'core';
import getBackendPromise from 'helpers/getBackendPromise';
import { fireError } from 'helpers/fireEvent';
import { engineTypes, documentTypes } from 'constants/types';
import { supportedPDFExtensions, supportedOfficeExtensions, supportedBlackboxExtensions, suppor... |
import { lazy } from "react";
import Home from "./components/Home";
import PageText from "./components/text/PageText";
import PageBase from "./components/base/PageBase";
import PageRegex from "./components/regex/PageRegex";
import PageJSON from "./components/json/PageJSON";
import PageJWT from "./components/jwt... |
const fs = require('fs');
const smcat = require("state-machine-cat");
const Smtc = require('../src/smtc');
describe('Smtc', () => {
it(' constructor() : can create new instance', () => {
const s = new Smtc(smcat);
expect(s).not.toBeNull();
expect(s).toBeInstanceOf(Smtc);
});
it(' setContents(contents... |
/*
* nide_sworker.js
* Naanlib/frameworks/browser
*
* Nide service worker script.
*
* The goal of this service worker is to 1) cache fetch requests for static content, and 2) relay
* fetch requests in the /run/ URL path namespace to instances of the IDE that can provide it. The
* identifier for the various ... |
import * as THREE from 'https://unpkg.com/three@0.119.1/build/three.module.js';
import Stats from 'https://unpkg.com/three@0.119.1/examples/jsm/libs/stats.module.js';
// import { OrbitControls } from 'https://unpkg.com/three@0.119.1/examples/jsm/controls/OrbitControls.js';
let simplex = new SimplexNoise()
// Three.js... |
const { sendinput, doubleinput } = require("node-gyp-build")(__dirname);
// CONSTANTS
const VK = Object.freeze({
MOUSE_LEFT: 0x01,
MOUSE_RIGHT: 0x02,
CANCEL: 0x03,
MOUSE_MID: 0x04,
MOUSE_X1: 0x05,
MOUSE_X2: 0x06,
BACK: 0x08,
TAB: 0x09,
CLEAR: 0x0C,
RETURN: 0x0D,
SHIFT: 0x10,... |
// Reads and sets any environment variables with dotenv pkg.
require('dotenv').config();
// NPMs
const Twitter = require('twitter');
const Spotify = require('node-spotify-api');
// fs for reading/writing files
const fs = require("fs");
// Grabs api keys
const keys = require("./api-keys.js");
const request = require(... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this software except in complianc... |
var Logger = require('../common/Logger.js');
var BattleActions = require('./BattleActions.js');
var Hero = require('../hero/Hero.js');
var HeroDAO = require('../hero/HeroDAO.js');
var BattleDAO = require('./BattleDAO.js');
module.exports =
function Battle(battleDTO) {
var _this = this;
this.battleDTO = battleDTO... |
var second = 0;
var position_slot = 100;
var position_division = 100 / position_slot;
var LOG_INTERVAL = 500;
var url_hash = getHashCode(location.href);
var leave_count = 0;
var last_y = -1;
var last_cursor_x = 0;
if (typeof EventType == "undefined") {
var EventType = {};
EventType.Position = 'positionEvent';
... |
const Modal = {
open(){
//Abrir Modal
// Adicionar a class active ao modal
/**
* - document -
* Para cada página carregada no browser, existe um objeto Document.
*
* - Document.querySelector(selectors) -
* Retorna o primeiro nó Element dentro do... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableContainer from '@material-ui/... |
import {
typeCheck,
includes,
isUndefined,
isObject,
valueIs,
merge,
emptyCheck,
} from './base'
import { createResponse } from './response'
/** **********************************************************************/
/* request helpers */
/** ********... |
'use strict';
var _ = require('lodash');
var $ = require('preconditions').singleton();
var sjcl = require('sjcl');
var Stringify = require('json-stable-stringify');
var Bitcore = require('bitcore-lib');
var PrivateKey = Bitcore.PrivateKey;
var PublicKey = Bitcore.PublicKey;
var crypto = Bitcore.crypto;
var encoding =... |
var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var geocoder = require('geocoder'); // geocoder library
var moment = require('moment');
var fs=require('fs');
//var multer = require('multer');
moment().format();
// our db model
var Spend = require("../models/spend... |
import React, { useState, useEffect } from 'react'
import { makeStyles } from '@material-ui/styles'
import { useTranslation } from 'react-i18next'
import { useHistory } from 'react-router-dom'
import PropTypes from 'prop-types'
import Grid from '@material-ui/core/Grid'
import Button from '@material-ui/core/Button'
impo... |
import munkres from 'munkres-js'
import Assign from './Assign'
import Simulator from './Simulator'
const Move = {
/*
let angleDiff = Math.min(180 - res.angleDiff, Math.abs(res.angleDiff))
if (Math.abs(angleDiff) > angleThreshold) {
let param = 120
// param = Math.min(param, angleDiff * 5)
// -90 <... |
// Based on https://github.com/aframevr/aframe/blob/master/src/components/wasd-controls.js
// it controls the ship with wasd, head tilting and mouse clicks
var shouldCaptureKeyEvent = AFRAME.utils.shouldCaptureKeyEvent;
var MAX_DELTA = 0.2;
/**
* WASD component to control entities using WASD keys.
*/
AFRAME.regist... |
import React, { Component } from "react";
import moment from "moment";
import axios from "axios";
import { connect } from "react-redux";
import mapStoreToProps from "../../redux/mapStoreToProps";
import { withStyles } from "@material-ui/core/styles";
import { TextField, Typography, Grid } from "@material-ui/core";
impo... |
var VERSION = require("../package")["version"];
function TerminalDecoder() {
this.pending = null;
}
TerminalDecoder.prototype = {
write: function(buffer, cb) {
if (this.pending) {
buffer = this.pending + buffer;
this.pending = null;
}
while (buffer.length > 0) {
// Find the first in... |
function XMutateRemovedElementX() {}
function XMutateLockedElementX(value) {
this.__value__ = value;
}
function XDeepPatchX(value) {
this.__value__ = value;
}
function XIssetMarkerX() {}
const ARRAY_REGEXP = new RegExp('^\\[([^\\[\\]]*)\\]$');
const MUTATE_TYPES = {
ARRAY: 'array',
OBJECT: 'object',
DEFAULT... |
import React from "react";
import { Modal, Popover, Button, Input, Icon } from "antd";
import LogOut from "../Home/Logout";
import UChat from "../UChatAPI";
class Menu extends React.Component {
state = {
logged: true,
showMenu: false,
showModal: false,
showPhotoOp: false,
showPhotoModal: false,
... |
//import { makeStyles,fade } from '@material-ui/styles';
import {fade,makeStyles,Theme,createStyles} from "@material-ui/core/styles";
import {teal} from "@material-ui/core/colors"
let primary={}
let secondary={}
export const ContainerStyle=makeStyles((theme)=>{return({
container:{[theme.breakpoints.down("sm")]: {
... |
import * as React from 'react';
import { Text, View, StyleSheet, StatusBar, BackHandler, FlatList, Share } from 'react-native';
import { parse } from 'node-html-parser';
import { Title, Button, ActivityIndicator, Surface, Divider, Caption, IconButton, withTheme } from 'react-native-paper';
import { connect } from 'reac... |
var extra = require('fs-extra');
var path = require('path');
var async = require('async');
var Utils = require('tracey-job-modules').Utils;
var Filer = Utils.Filer;
function Service() {
}
Service.prototype.start = function (callback) {
var self = this;
self.__filer = new Filer();
self.__setupJobsFolderS... |
// Globals
var email_str = ""; // html of email address list
var emailIdx = 0; // Index of email in list
var emailState = []; // Boolean with send status of each email
var preview = false; // Emails are preview or not
var mail_user = "";
var mail_pw = "";
var password = "";
// User taps login button
function adminLogi... |
import $ from 'jquery';
import { request, formatNumber } from './util';
function parsePostAuthorInfo($authorInfo) {
var self = this;
var regxMatch;
var id;
var name;
var url = $authorInfo.find('>a').eq(0).attr('data-hovercard');
var $profileLink = $authorInfo.find('span.fwb > a').eq(0);
if... |
import React, { Component } from 'react';
import {
View,
Dimensions,
Image,
Alert,
TouchableOpacity
} from 'react-native';
import {
Container, Header, Title, Content, Text, Button,
Icon, Left, Right, Body, Spinner, Toast
} from "native-base";
import { Location, } from 'expo';
import MapView, { Marker } ... |
/*
Copyright 2019 New Vector Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
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 a... |
const GLOBAL_OBJECT = window;
Object.defineProperty(GLOBAL_OBJECT, 'defineConst', {
value: function (target, constName, value) {
Object.defineProperty(target, constName, {
value: value,
writable: false,
enumerable: true,
configurable: false
});
},
writable: false,
en... |
/**
* twitspot.io.
*
* @author <NAME> / https://github.com/pschroen
* @license MIT Licensed
*/
/* jshint strict:true, eqeqeq:true, newcap:false, multistr:true, expr:true, loopfunc:true, shadow:true, node:true, indent:4 */
/* globals shell */
"use strict";
var utils = require(shell.path+'/modules/utils'),
... |
var classes = JSON.parse(document.getElementById("obj-classes").innerHTML);
var schedules = JSON.parse(document.getElementById("obj-schedules").innerHTML);
console.log(classes);
console.log(schedules);
var table = document.getElementById('Table');
var cClassID = document.getElementById('cClassID');
var cDate = docume... |
var ReportingStepFourController, modal, credentials_interval, redirect_uri = REDIRECT_URI;
var angular = require('angular');
ReportingStepFourController = (function () {
let environment;
var initOtherLibrary, waitForCredentials, outhclientPageLink, startCredentialsCreating,
findAppodealClient,
... |
/**
* @author mrdoob / http://mrdoob.com/
* @author Mugen87 / https://github.com/Mugen87
*
* modify to player movement controller:
* @author evilkuma / https://github.com/evilkuma
*/
import { Euler } from 'three'
import { Vector3 } from 'three'
import { EventDispatcher } from 'three'
var PointerLockControls = ... |
var searchEle = document.querySelector(".input"),
result = document.querySelector(".results"),
visual = document.querySelector(".visual"),
info = document.querySelector(".info");
function doSearch(dataset, fuse) {
showMore = 9;
showMoreindices=[0, showMore];
resultJSON = {}
visual.innerHTML=""
result... |
const { ethers, upgrades, waffle } = require('hardhat');
const chai = require('chai');
const { deployContract } = waffle;
const provider = waffle.provider;
const test_data = require('./fixtures/all_tests.js');
const only_test_data = test_data.filter(test => test.only);
const { accounts, privateKeys, expectIncludes, ex... |
const IntentsBuilder = require('../structures/IntentsBuilder.js');
const { codes, wsReconnectLimit } = require('../constants.js');
const Message = require('../structures/Message.js');
const Guild = require('../structures/Guild.js');
const Me = require('../structures/Me.js');
const ws = require('ws');
class GatewayHa... |
// ==UserScript==
// @name YouTube HTML5
// @author Kix
// @namespace 0
// @include http://youtube.com/*
// @include http://*.youtube.com/*
// @include https://youtube.com/*
// @include https://*.youtube.com/*
// ==/UserScript==
scrollBottom = function() {
window.scrollTo(0,20000);
};
function findPos(ob... |
import React, { Component } from 'react'
class App extends Component {
constructor(props) {
super(props)
}
render() {
return ( <div className="main-wrapper">
<header>
<nav className="nav">
<div id="logo" className="logo"><a title="成都云创新" className="hid nav"
... |
import svg from './svg/svg';
const isMacLike = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
const DefaultCommands = {
'bold': {
name: 'bold',
action: 'bold',
innerHTML: svg.bold,
title: 'Bold',
hotkey: 'Mod-B',
},
'italic': {
name: 'italic',
action: 'italic',
innerHTML: sv... |
// 获取echarts的容器
var chart = echarts.init(document.getElementById("main"));
/*
图中相关城市经纬度,根据你的需求添加数据
关于国家的经纬度,可以用首都的经纬度或者其他城市的经纬度
*/
var geoCoordMap = {
'London':[-0.15, 51.208425],
'Manchester':[2.15,53.30],
'Edinburgh':[3.13,55.57],
'Birmingham':[1.50,52.30],
'Beijing':[116.3917,40.2207],
... |
const computePipeline = (data, options) => {
const links = spaghettiSankey(data.items)
const spreadOptions = _.set(
_.cloneDeep(options),
"link.width", options.link.width + 2 * options.link.gapWidth
)
const sankeyOptions = _.set(
_.cloneDeep(spreadOptions),
"link.gapWidt... |
var Fs = require('fire-fs');
var Path = require('fire-path');
var Url = require('fire-url');
var Async = require('async');
var Shell = require('shell');
//
Editor.versions['canvas-studio'] = '0.1.0';
Editor.projectPath = '';
Editor.requireLogin = false;
// init
module.exports = function ( options, cb ) {
Editor.p... |
'use strict';
const React = require('react');
const constants = require('./constants');
const formatDate = require('./formatDate');
const isSmallScreen = require('./isSmallScreen');
const OUTLINE_ID = 'perimeterOutlines';
const SELECTED_ID = 'perimeterSelected';
const outlineLayer = {
id: OUTLINE_ID,
type: 'line... |
import React from "react";
import { Form, Input, Tooltip, Select, Button,message } from "antd";
import { PhoneOutlined } from "@ant-design/icons";
import InfoCircleOutlined from "@ant-design/icons/lib/icons/InfoCircleOutlined";
import { getCitiesName } from "/src/Services/cities";
import { getDistrictsName } from "/sr... |
var v0, v1, v2, v3, v4;
var v0 = (function (v1){
if(/^\s*$/.test(v1)){
return null;
}
if(/^(true|false)$/i.test(v1)){
return (v1.toLowerCase()) === ("true");
}
if(isFinite(v1)){
return parseFloat(v1);
}
return v1;
});
var v1 = (function (){
function v1(){
var v2;
if((arguments.length) == (0)){
(v2) = Object.getOwnPrope... |
import { moduleFor, test } from 'ember-qunit';
import { setup, teardown, mockServices } from 'dummy/tests/helpers/resources';
import Ember from 'ember';
import authorMock from 'fixtures/api/authors/1';
import postMock from 'fixtures/api/posts/1';
let sandbox;
moduleFor('serializer:application', 'Unit | Serializer | a... |
'use strict';
const core = require('@actions/core');
const io = require('@actions/io');
const exec = require('@actions/exec');
const path = require('path');
const process = require('process');
const compose = require('docker-compose');
const composefile = require('composefile');
const crypto = require('crypto');
const... |
var keys = require('message_keys');
// Import the Clay package
var Clay = require('pebble-clay');
// Load our Clay configuration file
var clayConfig = require('./config');
// Initialize Clay
var clay = new Clay(clayConfig);
var deltautc_h = 0;
var deltautc_m = 0;
// Listen for when an AppMessage is received
Pebble.a... |
import React, { Component, Fragment,PureComponent } from 'react';
import {StyleSheet,View, TouchableOpacity, Modal, Alert,KeyboardAvoidingView, TextInput, AppState,AsyncStorage} from 'react-native';
import ModalSelector from 'react-native-modal-selector';
import { Header } from 'react-navigation-stack';
import CourseIn... |
'use strict';
var headerArray = [' Name ', ' ABV ', ' Type ', ' Written Notes ', ' Score (out of 10) ', ' Delete '];
var value = ['name', 'abv', 'type', 'writtenNotes', 'score', ''];
//global vars for core data
var currentUser;
Addbeer.beerDrink = [];
Addwine.wineDrink = [];
var beerTypes = ['Lager', 'Ale', 'IPA', ... |
'use strict';
//
// The MIT License (MIT)
//
// Copyright (c) 2016 <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
/... |
import * as d3 from 'd3';
const COLOR_PALETTE = ['#F3C300', '#875692', '#A1CAF1', '#8DB600', '#F38400', '#BE0032', '#C2B280', '#848482', '#008856', '#E68FAC', '#0067A5', '#F99379', '#604E97', '#F6A600', '#B3446C'];
const COLOR_3 = ['#DCD300', '#882D17', '#E25822', '#F2F3F4', "#AA4488", "#CC99BB", "#4477AA", "#77AADD"... |
const { p } = require("shelljs");
var div = document.getElementsByTagName('div')[0];
var firstParagraph = document.getElementById('second-inner-par');
function removeNote () {
if (firstParagraph) {
div.removeChild(firstParagraph);
}
}
//DOM Manipulation
var firstHClass = document.querySelector('.new-h1');
... |
import ReactiveElement from "../core/ReactiveElement.js"; // eslint-disable-line no-unused-vars
import {
defaultState,
firstRender,
inputDelegate,
raiseChangeEvents,
render,
rendered,
setState,
state,
stateEffects,
} from "./internal.js";
/**
* Delegates its ARIA label property to an inner input-typ... |
import config from '../../../../config';
import log from '../../../Utilities/log';
import {Vector3,
TextureLoader,
Mesh,
IcosahedronGeometry,
SphereGeometry,
Box3,
MeshBasicMaterial} from 'three';
import {ViveController} from './Controls/ViveController';
import OBJLoader from './Loaders/OBJLoader';
impo... |
var LEMONADE = (function (myModel) {
console.log("LEMONADE.js ==> сonverter_of_a_thousand");
"use strict";
/**
* Формат числа
* Выводит отформатированное число с деление на формат
* @param {number} Number, число которое стоит отформатировать
* @param {boolean} Types, тип вывод... |
var globalThis = this;
var global = this;
function __skpm_run (key, context) {
globalThis.context = context;
try {
var exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpa... |
var $ = require('jquery');
var DateUtil = require('gazira-date');
var Overlay = require('arale-overlay');
var DatePanel = require('./date-panel');
var MonthPanel = require('./month-panel');
var YearPanel = require('./year-panel');
var TimePanel = require('./time-panel');
var tpl = {
calendar: require('./tpl/calenda... |
/*
NXGallery for Nintendo Switch
Made with love by <NAME> (<EMAIL>)
*/
import React from "react";
import ReactDOM from "react-dom";
// Material UI imports
import {
colors,
CssBaseline,
ThemeProvider,
Typography,
Container,
createTheme,
Button,
Grid,
Paper,
Icon,
Cir... |
// Dom7
var $$ = Dom7;
var now = new Date();
var today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
var weekLater = new Date().setDate(today.getDate() + 7);
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
//... |
/*
* @Author: <NAME>
* @Date: 2019-10-11 09:51:17
* @LastEditTime : 2020-01-02 17:45:18
* @LastEditors : <NAME>
*/
const fs = require("fs-extra");
const ts = require("typescript");
const path = require("path");
const prettier = require("prettier");
const CONFIG_FILE = "service.config.json";
const PROJECT_ROOT = ... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as Common from '../../core/common/common.js';
import * as Host from '../../core/host/host.js';
import * as Platform from '../../core/platform/plat... |
#!/usr/bin/env node
/**
* Module dependencies.
*/
var fs = require('fs'),
os = require('os'),
path = require('path'),
util = require('util'),
cliff = require('cliff'),
mkdirp = require('mkdirp'),
exec = require('child_process').exec,
spawn = require('child_process').spawn,
version = r... |
function draw_multilinegraph(data) {
var margin = {top: 0, right: 20, bottom: 2, left: 50},
width = 600 - margin.left - margin.right,
height = 110 - margin.top - margin.bottom;
// Hardcode total distance, total number of days cycling and total elevation gain
var ttl_distance_hc = 2690.50;
var t... |
function getJobUrl(type) {
if(type){
var url = "/get_postList.html";
}else{
var url = "/postList.html";
}
//var url = '';
var paramarr = new Array();
if ($("#area").val()) {
paramarr.push("area=" + $("#area").val());
}
if ($("#trade").val()) {
paramarr.pu... |
import * as THREE from 'three';
import GLTF2Loader from 'three-gltf2-loader';
import TWEEN from '@tweenjs/tween.js';
import createjs from 'createjs-easeljs';
import EasyStar from 'easystarjs';
import RTSControls from './rts-controls';
import * as Skybox from './skybox';
GLTF2Loader(THREE);
var mousePosition = new THR... |
/* global $ $$ */
// imports
import chai from 'chai'
import chaiAsPromised from 'chai-as-promised'
import dirtyChai from 'dirty-chai'
chai.use(chaiAsPromised)
chai.use(dirtyChai)
// hash that contains valid element state test methods for the testState method
const STATE_HASH = { displayed: 'isDisplayed', enabled: 'is... |
/************** SHOPPING CART TAB *************/
function initCartTab() {
// If user clicks on Shopping Cart tab, disable some buttons if cart is empty.
$('#tabPanelCartLink').on('click', shoppingListStatus)
$("#shoppingCart")
.on("click", 'div.cart-item', function(event) {
event.stopPropagation(); // otherwis... |
/* ================================================
*
* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
*
* 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... |
// TODO: Fix bug with sourcemaps path
// TODO: Add failback/info for files that are not found by build process
// TODO: Ask Sasa to add del task to deployment process if we need .map files removed on production
// TODO: Add detailed documenttation to confluence
// TODO: ADD gulp-newer to css files also
// TODO: ... |
$("#my-carousel").carousel({
interval : 4050,
pause:false
});
// function for playing videos
function playVideo() {
var btnm = document.getElementById("play-pause");
var icon1 = document.getElementById("icon-play");
var vide = document.querySelector(".video-container video");
var progress = do... |
/**
* Copyright 2019 Arcus Project
*
* 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 agre... |
import _ from 'lodash'
import { Fragment } from 'react'
import { toJS, runInAction } from 'mobx'
import PropTypes from 'prop-types'
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'
import { EditorState, convertFromRaw, convertToRaw } from 'draft-js'
import styled from 'styled-components'
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.