text
stringlengths
3.22k
29.5k
"use strict"; //Logger var DEBUG_MODE = false, version = '2.1.1'; function logger(msg) { if (DEBUG_MODE) { console.log(msg); } } //Check de versión var localVersion = localStorage.getItem('version'); logger(localVersion); if (localVersion !== null) { //Hago cosas de cambio de versiones } else { ...
// Module dependencies. var util = require('util'); var EventEmitter = require('events').EventEmitter; var _ = require('underscore'); var nodes = require('../nodes'); var Relation = function(klass, table) { var self = this; this.klass = klass; this.table = table; _.each(Relation.single_value_methods, ...
// Declarations const countriesContainer = document.querySelector('.countries'); const popupContainer = document.querySelector('.popup'); const countryFlagPopup = document.querySelector('.country-flag'); const countryInfoPopup = document.querySelector('.country-informations'); const loaderContainer = document.querySele...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; var __importDefault = (t...
import AnnotatorHelperPaginationAdapter from "./annotator_helper_pagination_adapter"; import { AdderVisibilityRectangle, DisplayOptionStrategyFactory, AnnotatorAdderOffsetCalculator } from "./literatumAdderDisplayOptions.util"; import HTMLElementUtil from "main/HTMLElement.util"; import _values from 'lodas...
var start, elapsed; function milliseconds_to_minutes_and_seconds(ms) { s = Math.floor((ms/1000)%60) - 3; //offset 3 seconds for the lag of recording the observation; this will make timestamps closer m = Math.floor((ms/(1000*60))%60); if(s<0) s="0"; if(s<10) s = "0" + s; return ( m + ":" + s); } function repaint_...
import fs from 'fs'; import path from 'path'; import crypto from 'crypto'; import express from 'express'; import compression from 'compression'; import helmet from 'helmet'; import favicon from 'serve-favicon'; import yargs from 'yargs'; import chalk from 'chalk'; import request from 'request-promise-native'; import {...
//------------------------ Game Project--------------------------- //Do you remember the game Battleship we created before? well .... it is time to make it with the DOM!! //We are providing you with the design of a board (in the DOM) for a player1, you have to create the board for the player2 using the id property 'bo...
'use strict'; var jpipFactory = require('jpip-runtime-factory.js'); var jGlobals = require('j2k-jpip-globals.js'); module.exports = JpipImage; var WORKER_TYPE_PIXELS = 1; var WORKER_TYPE_COEFFS = 2; var TASK_ABORTED_RESULT_PLACEHOLDER = 'aborted'; function JpipImage(arg, progressiveness) { var jpipObjects; ...
import React from 'react'; import bind from 'memoize-bind'; import { Dimensions, StyleSheet, ScrollView, View, Text, Animated, TouchableOpacity, TouchableNativeFeedback , ActivityIndicator, Modal, TouchableHighlight } from 'react-native'; import populateEvents from './packer'; import moment from 'moment'; ...
function render_TableTemplate(i,obj){ var html = ""; html += '<section id="slide'+(i+2)+'" class="SlideType_Special_Slide" slideType="SlideType_Special_Slide" slideNumber="'+(i + 2)+'" data-background="#fff">' +'<div class="sectionInnerContainer">' +'<div class="SlideType_Special_Slide_Inner_Container" s...
import BaseExpression from './base'; import { implicitCast, checkLooseType, checkExpression, checkType, clamp, checkInstance } from './utils'; import { cielabToSRGB, sRGBToCielab } from '../colorspaces'; import Sprites from './sprites'; /** * Create a ramp: a mapping between an input (a numeric or categorical expressi...
import React from "react" import Layout from "../components/layout" import SEO from "../components/seo" import { graphql, Link } from "gatsby" import Img from "gatsby-image" // import Instagram from "../components/instagram" import GoogleMap from "../components/googleMap" import Footer from "../components/footer" con...
const crypto = require('crypto'); const expect = require('chai').expect; const constants = require('./../src/constants'); const { EncryptionJsonError, DecryptionIntegrityError, DecryptionSignatureError, DecryptionTimeTravelError, DecryptionExpiredError, DecryptionGunzipError, DecryptionJsonError } = requi...
import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Grid, Container, Input, InputLabel, InputAdornment, FormControlLabel, IconButton, Box, Typography, Checkbox, Tabs, Tab, Card, CardContent,...
/** * Typewriter Text * Author: Gunbard * Usage: const someTypewriter = new Typewriter(someHTMLElementContainer); * someTypewriter.start("Some text to show."); * someTypewriter.start(["What did you say?", "How are you<br>doing?", "Whatever."]); **/ // Arbitrary padding at the end of a line to ensu...
var level01 = function(game){ console.log("%cStarting level01 state", "color:white; background:red"); }; level01.prototype = { preload: function(){ this.game.time.advancedTiming = true; }, create: function(){ // Set the background color to blue this.game.stage.backgroundColor = '#...
import { loop, Cmd } from 'redux-loop'; import { storeLocally, msgToServer, sendToServer } from './commands.js'; import { nextInstruction, instructions } from './instructions.js'; import Maybe from 'folktale/maybe'; import { Success, Failure } from 'folktale/validation'; import { map, concat, partition, contain...
var scripts = document.getElementsByTagName("script") var currentScriptPath = scripts[scripts.length-1].src; angular.module('wolfer.minesweeper', ['pascalprecht.translate']); angular.module('wolfer.minesweeper').directive('ngRightClick', function($parse) { return function(scope, element, attrs) { var fn =...
/* eslint-disable */ var weather = require("./mil_weather"); var codeTypes = [ { code: "W", desc: "W:기상 및 해양부호", standard: weather } ] function makeSIDCSelect(id, field, obj) { let a = document.getElementById(id); let txt = ""; obj.forEach(d => { txt += '<option value="' + d.code + '">' + d.d...
import { is, trim } from "./utils"; import { NAMESPACED } from "./symbols"; export class PathContext { constructor(cwd) { this.cwd = normalize(cwd); if (this.cwd.indexOf("*") !== -1) throw new Error("`cwd` cannot contains `*`"); if (this.cwd.indexOf(".") !== -1) { th...
const cheerio = require("cheerio"); const path = require("path"); const fs = require("fs"); const camelcase = require("camelcase"); const rimraf = require("rimraf"); const { stringify } = require("javascript-stringify"); const { promisify } = require("util"); const iconManifest = require("../manifest.json"); // папка...
import AdvancedProperties from './AdvancedProperties'; import AppBar from 'material-ui/AppBar'; import { CircularProgress } from 'material-ui/Progress'; import Civ5Save from 'civ5save'; import { createMuiTheme } from 'material-ui/styles'; import createPalette from 'material-ui/styles/palette'; import createTypography f...
"use strict"; // Google Jam challenge "(B) Meet and Party" // https://code.google.com/codejam/contest/2929486/dashboard#s=p1 // Author: Aspallar // // Problem // Little Sin lives in a Manhattan-grid city, a 2D plane where people can only go north, west, south // or east along the grid. The distance from (x1, y1) to (...
import React from 'react'; import _ from 'lodash'; import moment from 'moment'; import router from 'umi/router'; import { connect } from 'dva'; import { Layout, Row, Col, Drawer, message, Form, Divider } from 'antd'; import TablePlus, { buildTableColumns, DateRangePicker, TableFullFunction, prepareToShowTableRow }...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _classnames = _interopRequireDefault(require("classnames")); var _pick = _interopRequireDefault(require("lodash/pick")); var _propTypes = _interopRequireDefault(require("prop-types")); var _react = _interop...
import React, { PureComponent, Component } from "react" import PropTypes from "prop-types" import { Grid, Row, Col } from "react-flexbox-grid" import FontIcon from "material-ui/FontIcon" import { withRouter } from "react-router" import { Card, CardHeader, CardText } from "material-ui/Card" import SelectField from "mate...
import React from "react"; import PropTypes from "prop-types"; import Styled from "styled-components"; // Core import NLS from "../../Core/NLS"; import InputType from "../../Core/InputType"; // Components import Input from "../Input/In...
const image = require('../helpers/image') module.exports = function (fastify, opts, next) { // generates .js for external embeds fastify.get('/embed-js', async (req, res, next) => { res.header('Content-Type', 'text/javascript') const wago = await WagoItem.lookup(req.query.id) if (!wago) { re...
// Bloom Echo v1 let synth, soundLoop; let notePattern = []; let notePatternIndex; let noteTable = [48, 50, 52, 53, 55, 57, 59, 62, 64, 65, 67, 69, 71, 72, 74, 76, 77, 79, 81]; let noteCircles = []; let noteHues = []; let bgColors = ['#262A4D', '#264C4D', '#262A4D', '#264D34', '#4D2639', '#46264D', '#264D3F', '#35264...
/* * Copyright 2020 <NAME> * Licensed under the MIT License. */ import { hostname } from 'os' import { DEBUG, DEVELOPMENT, TEST } from './env' import { ServiceError } from './error' import uuid from 'uuid/v4' import * as Sentry from '@sentry/node' import { STATUS_CODES } from 'http' import { isLiteral, mergeLists }...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
// Intro import introMove from './steps/intro-move.es.gif'; import introSayHello from './steps/intro-say-hello.es.gif'; // Text to Speech // import speechAddExtension from './steps/speech-add-extension.es.gif'; // import speechSaySomething from './steps/speech-say-something.es.gif'; // import speechSetVoice from './st...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
import React, {PureComponent} from 'react'; import moment from 'moment'; import {connect} from 'dva'; import {Row, Col, Form, Card, Select, Input, Table, Alert, Tabs, Checkbox, Tooltip} from 'antd'; import {Collapse, Button} from 'antd'; import {routerRedux} from 'dva/router'; import request from '@/utils/request'; imp...
var utils = require('kujua-utils'), mp_parser = require('./mp_parser'), textforms_parser = require('./textforms_parser'), sms_utils = require('kujua-sms/utils'); /** * Decide if it's a form parsed by the muvuku parser. * * @param {String} msg sms message * @api private */ exports.isMuvukuFormat = func...
var app = require('choo')() var mixmapPeermaps = require('mixmap-peermaps') var html = require('choo/html') var eyros = require('eyros/2d') var mixmap = require('mixmap') var resl = require('resl') var regl = require('regl') var idbStorage = require('random-access-idb') var createStorage = require('./storage') var cre...
/* Supports spatial operations data.geothermaldata May 14 2020 */ var express = require('express'); var bodyParser = require('body-parser'); var router = express.Router(); const xml2js = require('xml2js'); var parseString = require('xml2js').parseString; var xmldoc = require('xmldoc'); var Path = process.e...
import React from 'react'; import enzyme from 'enzyme'; import { shallow } from 'enzyme'; const { expect } = require('chai'); import Adapter from 'enzyme-adapter-react-16'; enzyme.configure({ adapter: new Adapter() }); import 'jsdom-global/register'; import configureMockStore from 'redux-mock-store'; import thunkMiddle...
import { kanbanAPI } from "./API.js"; import { $, $all } from "./Dom.js"; import { clearMebmerInfo, getMemberInfo } from "./MemberInfo.js"; import { template } from "./Template.js"; const teamId = new URLSearchParams(document.location.search).get("id"); const PENDING = "false"; const COMPLETED = "completed"; const $...
/** * CLOUDY LOGIC * Scene II * Caustics */ import '../../style/caustics.scss' import { sequencer } from '../Main' import { c3ch, cRGB, cTxt } from '../Media' class Caustics { constructor(container) { // Main container. this._element = document.createElement('div') this._element.id = 'cFrame' ...
// importScripts( "../constants.js" ); importScripts( "../utils.js" ); importScripts( "../numbers.js" ); importScripts( "../lib/three-r87.min.js" ); importScripts( "../legacy/generateCubePrefab.js" ); importScripts( "../blox-block-index.js" ); var box = BLOX.box; // var blockIndex = new BLOX.BlockIndex( "../../js/blo...
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Dialog, DialogContent, Divider, Typography, ExpansionPanelSummary, ExpansionPanelDetails, ExpansionPanel, DialogActions, DialogTitle, withStyles, } from '@material-ui/core'; impor...
import { Rect, Vector2 } from "./core/vector.js"; import { nextObject } from "./gameobject.js"; import { Leaf } from "./leaf.js"; const HINTS = [ "USE LEFT AND RIGHT ARROW KEYS TO MOVE", "PRESS LEFT SHIFT TO RUN AND SPACE TO JUMP", "USE UP AND DOWN ARROW KEYS TO CLIMB", "PRESS THE JUMP BUTTON TWICE TO F...
import '../../js/webaudio-controls.js' import keyboard from '../KeyboardJS-master/index.js' const template = document.createElement('template'); template.innerHTML = ` <style> .label { display: inline-block; width: 6rem; text-align: right; } </style> <head> <link href="https://unpk...
// import PaintWidget from '@/src/widgets/paint'; import RulerWidget from '@/src/widgets/ruler'; import CrosshairsWidget from '@/src/widgets/crosshairs'; import { createContext, openContext, closeCurrentContext } from './context'; export const DEFAULT_NAME_LOOKUP = { // Paint: PaintWidget, Ruler: RulerWidget, Cr...
// Insert per-day analytics into analytics.perdays collection // Usage: // mongo <address>:<port>/<database> <script file> -u <username> -p <password> // Completion rates (funnels) are calculated like Mixpanel // For a given date range, start count is the number of first steps (e.g. started a level) // Finish count f...
"use strict"; var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct"); var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property"); var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); _Object$defin...
// 普通数独题目 const questionD = [ [4, 0, 8, 2, 0, 0, 0, 0, 0], [0, 3, 0, 1, 9, 0, 0, 0, 0], [0, 7, 0, 0, 0, 8, 4, 0, 0], [0, 0, 6, 0, 0, 0, 7, 0, 1], [0, 8, 0, 0, 0, 0, 2, 6, 4], [3, 4, 1, 0, 0, 0, 0, 5, 0], [8, 0, 0, 0, 3, 0, 0, 7, 0], [0, 0, 0, 4, 0, 0, 5, 0, 8], [0, 0, 0, 7, 0, 5, 0, 4, 0] ] // x数独题目 ...
import React, { Component } from 'react'; import { Card, CardBody, Col, Label, Row, Button } from 'reactstrap'; import Select from 'react-select'; import Swal from 'sweetalert2'; import BlockUi from 'react-block-ui'; import registration from '../../../../../assets/img/bkr1.PNG'; import cashier from '../../../../../ass...
import React, { PureComponent } from "react"; import PropTypes from "prop-types"; import muiThemeable from "material-ui/styles/muiThemeable"; import TextField from "material-ui/TextField"; import Dialog from "material-ui/Dialog"; import FlatButton from "material-ui/FlatButton"; import IconButton from "material-ui/IconB...
/** * Welcome to Pebble.js! * * This is where you write your app. */ var UI = require('ui'); var Vector2 = require('vector2'); var ajax = require('ajax'); var KickerAPI = require('kickerapi'); var Settings = require('settings'); var Vibe = require('ui/vibe'); Settings.config( { url: 'http://kicker.cool/pebble_s...
/****************************************************************************** uri_funcs.js - URI functions based on STD 66 / RFC 3986 Author (original): <NAME> <mike at skew.org> Version: 2007-01-04 License: Unrestricted use and distribution with any modifications permitted, so long as: 1. Modifications a...
const game = { boardWidth: 31, boardHeight: 22 , eachPixel: 15, // in pixel start: null, isStop: true, isOver: true, speed: 70 // in milliseconds } const middle = Math.floor(game.boardWidth / 2); const player = { shape: [ [middle], [middle - 1, middle, middle + 1] // make it...
import React, { useEffect, useState } 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 TableCont...
/* global ISODate */ /* global Mongo */ /* global ObjectId */ /* global db */ /* global printjson */ // Insert per-day active user counts into analytics.perdays collection // Usage: // mongo <address>:<port>/<database> <script file> -u <username> -p <password> try { var logDB = new Mongo("localhost").getDB("analyti...
const BigNumber = require('bignumber.js'); const { assert } = require('chai'); const chai = require('chai'); const truffleAssert = require('truffle-assertions'); const Royalties = artifacts.require('./Royalties.sol'); const WETH = artifacts.require('./WETH.sol'); const NFT = artifacts.require('./NFT.sol'); const { ad...
const SafeMath = artifacts.require('./SafeMath.sol'); const Ownable = artifacts.require('./Ownable.sol'); const Pausable = artifacts.require('./Pausable.sol'); const Contactable = artifacts.require('./Contactable.sol'); const ProofPresaleToken = artifacts.require('./ProofPresaleToken.sol'); const Crowdsale = artifacts....
var turnplate = { restaraunts: [], //大转盘奖品名称 colors: [], //大转盘奖品区块对应背景颜色 outsideRadius: 238, //大转盘外圆的半径 textRadius: 170, //大转盘奖品位置距离圆心的距离 insideRadius: 0, //大转盘内圆的半径 startAngle: 0, //开始角度 bRotate: false, //false:停止;ture:旋转 positionX: 380, positionY: 530 }; turnplate.restaraunts = ["二等奖", ...
/* ######################################## MIT License Copyright (c) 2019 <NAME> License > https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/LICENSE.md ######################################### */ let context_menu_list = { //Initial value "Copy" :" document.execCommand('copy');", ...
// ---------------------------------------------- CREATE VARIABLES ---------------------------------------------- // Set the win & loss counts to zero. let wins = 0; document.getElementById("wins").innerHTML = wins; let losses = 0; document.getElementById("losses").innerHTML = losses; // Set total guess count to 3. l...
function start() { // Inicio da função start() //Principais variáveis do jogo let jogo = {}; let velocidade=5; let posicaoY = parseInt(Math.random() * 334); let podeAtirar=true; let fimdejogo=false; let pontos=0; let salvos=0; let perdidos=0; let energiaAtual=3; const TECLA = { W: 87, S: 83, D: 68, ...
/* Blog Shortcuts are developed by <NAME> This will eventually be open sourced, once I figure that out. */ /* Please leave these fellows be (aka futz at your own risk). */ var keyIndex = 0; var keyPresses = 0; var bsItems, lastCode, activeUrl; var clickCleared = false; var clearT = false; var bsOptions = {}; /* ...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import Link from 'umi/link'; import isEqual from 'lodash/isEqual'; import { Card, Divider, Form, Row, Col, Input, Button, Icon, DatePicker, Select } from 'antd'; import { handleSearch, handleSearchReset, ...
/** * Copyright IBM Corp. 2017 * * 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 writ...
var debounce = require('./debounce'); var bendPointUtilities = require('./bendPointUtilities'); var registerUndoRedoFunctions = require('./registerUndoRedoFunctions'); module.exports = function (params, cy) { var fn = params; var addBendPointCxtMenuId = 'cy-edge-bend-editing-cxt-add-bend-point'; var removeBendP...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
'use strict'; const Client = require('../client'), CLI = require('./index'), Yargs = require('yargs'), inquirer = require('inquirer'); class ClientCLI extends CLI { constructor() { super('client'); this.completions = [ 'help', 'config' ]; this.yargs = Yargs(process....
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useMultiSelection; var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); var _elemen...
function XMutateRemovedElementX() {} function XMutateLockedElementX(value) { this.__value__ = value; } const ARRAY_REGEXP = new RegExp('^\\[([^\\[\\].]*)\\]$'); const mutateTypes = { array: 'array', object: 'object', default: '' }; function mutateObj(point, vType) { if (!point) return vType === mutateTypes...
"use strict"; $(window).on('load', function() { changeClass("nav_1"); makeRequest("/datasets/search", {}).then(function(response) { const data = JSON.parse(response); const listOfDatasetId = data['results']['datasets']; let dropdown = document.getElementById("dropdown-menu"); ...
// Objectos são variáves que permitem armazenar pares e chaves // Estrutura básica de var objecto = {} var objecto = { nome :'Braulio', idade:26, Github:'Brascomn', }; // Formas de apresentar console.log(objecto); console.log(objecto['Github']); console.log(objecto.Github); co...
require('es6-promise').polyfill(); require('isomorphic-fetch'); const RSVP = require('rsvp'); const METHODS = ['GET', 'PUT', 'POST', 'DELETE', 'HEAD', 'OPTIONS', 'PATCH'] const trimFieldSlot = (item) => { let newItem = { type: item.type, default: item.default } if (item.hasOwnProperty('type') && item.type) { ...
import React, { useState } from "react"; import clsx from "clsx"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import { useHistory } from "react-router-dom" import { logoutUser } from "../../actions/authActions"; import { createProject } from "../../actions/postActions" import './styles/...
/** * Copyright 2018 Artificial Solutions. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
/* Copyright 2015 hp.weber GmbH & Co secucard KG (www.secucard.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/licenses/LICENSE-2.0 Unless required by applicable law o...
var stage; var SIZE = 50; var cvSize = 3000; var lastTarget; function init() { //resize canvas to full width and height var canvas = document.getElementsByTagName('canvas')[0]; canvas.width = cvSize; canvas.height = cvSize; stage = new createjs.Stage("canvas"); //addCircle(canvas.width/2 -...
/* Copyright (c) 2013 Samsung Electronics Co., Ltd. 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 w...
(function(){var N=this;N.N2_=N.N2_||{r:[],d:[]},N.N2R=N.N2R||function(){N.N2_.r.push(arguments)},N.N2D=N.N2D||function(){N.N2_.d.push(arguments)}}).call(window); function N2Deferred() { this.state = 0; this.args = null; this.callbacks = []; } N2Deferred.prototype._doCallbacks = function () { if (this.s...
function createDate(timestamp) { dateObj = new Date(timestamp), date = { year: dateObj.getFullYear(), month: dateObj.getMonth()+1, day: dateObj.getDate(), hour: dateObj.getHours(), minute: dateObj.getMinutes(), second: dateObj.getSeconds(), }; return date.hour + ':' + date.minute + ':' ...
import sha1 from 'sha1' import Wechat from '../../model/wechatApi' import template from '../../model/wechatResponse' import utils from '../../common/utils' import config from '../../../config/wechat' const wechat = new Wechat(config) wechat.setIntervalGet() let user = { info: {} } export default class { //微信与服务器...
/*MIT License Copyright (c) 2021 <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, distribu...
// Item Controller const ItemController = (function(){ class Item { constructor(id, name, value, type){ this.id = id; this.name = name; this.value = value; this.type = type; } }; // state object const state = { data: [], currentItem: null, totalIncome: 0, t...
import {composeSync, List} from './ToolsJs'; import {PickDomFactory} from './PickDomFactory'; import {ChoiceDomFactory} from './ChoiceDomFactory'; import {StaticDomFactory} from './StaticDomFactory'; import {CreateElementAspect} from './CreateElementAspect'; import {PicksDomFactory} from './PicksDomFactory'; import ...
"use strict"; const n = 80; // grid resolution (cells) const dt = 1e-4; // time step for simulation const dx = 1.0 / n; // cell width const inv_dx = 1.0 / dx; // number of cells as a real number // material constants const particle_mass = 1.0; const vol = 1.0; // particle volume const hardening = 10.0; // hardening c...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { compose } from 'recompose'; import { withStyles, makeStyles } from '@material-ui/core/styles'; import { withFirebase } from '../Firebase'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/Table...
import React, { Component } from 'react'; import { Form, Col, Row, Input, Button, Container, Table, TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap' import axios from 'axios'; import classnames from 'classnames'; import TabalAuthorize from './TabalAuthorize'; import '../../../css/authorize.css' var styl...
'use strict' var __assign = (this && this.__assign) || function() { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i] for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p] ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = positions; var _getDirection = _interopRequireDefault(require("./getDirection")); var _functions = require("./functions"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var Berth = (function () { /** * * @param {type} paper * @param {type} x * @param {type} y * @param {t...
import React, {useState, useEffect, useCallback} from 'react' import PropTypes from 'prop-types' import {VInputAddon} from './addon/VInputAddon' import VIcon from './icons' import {InputGroupAddon, InputGroupText} from 'reactstrap' import {inputPropTypes} from './props/inputPropTypes' import {inputDefaultProps} fr...
import * as React from "react"; import * as Constants from "~/common/constants"; import * as SVG from "~/common/svg"; import * as Events from "~/common/custom-events"; import * as Styles from "~/common/styles"; import { ApplicationUserControls, ApplicationUserControlsPopup, } from "~/components/core/ApplicationUse...
// great wall of global variables // travelers beware var c = document.getElementsByTagName('canvas')[0]; var ctx = c.getContext("2d"); var w = 350; var h = 600; var ROWS = 20; var COLS = 10; var BLOCK_W = w/ COLS; var BLOCK_H = h/ ROWS; var shape; var tetrisBoard = []; var currX, currY; var firstTime = true; var piec...
function Simulation(id, delayFactory) { this.stepIndex = 0; this.steps = []; this.autoPlaying = false; this.playing = false; this.stopping = false; this.addStep = function(step) { var that = this; step.addEntryAllParents({ name: "simulation$$$", action: { on...
import React, { useState, useEffect, useImperativeHandle } from "react"; import { Modal, Form, Input, Col, Row, Select, notification, Table, Button, InputNumber } from "antd"; import moment from "moment"; import { common_post, formatCurrency } from "../../utils"; import { urlApi } from "../../urlApis"; import { DeleteF...
import { __decorate } from 'tslib'; import { Directionality, BidiModule } from '@angular/cdk/bidi'; import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef, Renderer2, ElementRef, Optional, Input, Output, NgModule } from '@angular/core'; import { Subject } from 'rxjs'; import { t...
import {registerSettings} from "./settings.js"; // export let log = new Logger(); let log; export let i18n = key => { return game.i18n.localize(key); }; export let setting = key => { return game.settings.get("Nerps-XP", key); }; export const threatLevels = ["trivial", "low", "moderate", "severe", "extreme"]; e...
/** * * The p5.EasyCam library - Easy 3D CameraControl for p5.js and WEBGL. * * Copyright 2018-2019 by p5.EasyCam authors * * Source: https://github.com/diwi/p5.EasyCam * * MIT License: https://opensource.org/licenses/MIT * * * explanatory notes: * * p5.EasyCam is a derivative of the original Pea...
/* * YouPlay (v1.6) * https://github.com/esquivias/YouPlay */ var YouPlay = (function($, undefined){ 'use strict'; function YouPlay(element){ this.youtube = { api_key: $(element).data('youplay-api-key'), playlist_id: $(element).data('youplay-playlist-id'), uid: (Math.random().toString(16).substr(2,8)), ...
import { firstFolder, setPositionDataAttribute, setContainerType, logContentChange, } from "./index.js"; import { makeProject } from "./project.js"; import { todoFactory } from "./item.js"; const navContainer = document.getElementById("navContainer"); const projectContainer = document.getElementById("container...