text
stringlengths
3.22k
29.5k
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: threadsort.js 30962 2012-07-04 07:57:45Z zhangjie $ Modified by <NAME> */ function xmlobj() { var obj = new Object(); obj.createXMLDoc = function(xmlstring) { var xmlobj = false; if(window.DOMParser && docum...
var game; var ballDistance = 120; var rotationSpeed = 4; var angleRange = [25, 155]; var visibleTargets = 7; var bgColors = [0x62bd18, 0xffbb00, 0xff5300, 0xd21034, 0xff475c, 0x8f16b2]; window.onload = function() { game = new Phaser.Game(640, 960, Phaser.CANVAS, ""); game.state.add("PlayGame", playGame); ...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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...
let canvas, canvas0; let ctx, ctx0; let width = 600; let height = 700; canvas = document.getElementById("canvas"); ctx = canvas.getContext("2d"); canvas0 = document.getElementById("canvas0"); ctx0 = canvas0.getContext("2d"); canvas.width = width; canvas.height = height; const gravity = 0.5; const gap = 220; const fri...
/** * Created by mjsmcp on 9/16/17. */ // https://stackoverflow.com/questions/722668/traverse-all-the-nodes-of-a-json-object-tree-with-javascript //called with every property and its value function get_ref(key,value) { var refs = []; if(key === "Ref") { refs.push(value); } return refs; } fun...
import React from 'react'; import * as PropTypes from 'prop-types'; import graphql from 'babel-plugin-relay/macro'; import { createFragmentContainer } from 'react-relay'; import { Formik, Form, Field } from 'formik'; import { withStyles } from '@material-ui/core/styles'; import { compose, pick } from 'ramda'; import * ...
'use strict'; let latestFeedId = 0; let oldestFeedId = 0; const main = () => { (function init() { const process = result => { if (!result || !result.name) { const params = getUrlParams(location.href); if ('reset_token' in params) { // パスワードリセット画面表示 $('#modal...
import * as _ from "lodash"; import * as jwt from "atlassian-jwt"; import { Installations, Subscriptions } from "../db"; import { token } from "../lib/jira"; import { authorizeApp, get } from "../lib/api/github"; import { getAllProjects, getAllProjectIssues } from "../lib/api/jira"; import { findAndUpdateElseInsert } f...
import {DOM} from '../dom/index' import Queue from './libs/queue' import Event from './libs/event' import EventObj from './libs/event.obj' import Namespace from './libs/namespace' import {throttle, debounce, frame} from '../throttle/index' import Extend from './libs/extend' /** * 事件管理,在任何情况下都能够保证正确的冒泡顺序 * - 事件的注册、注销...
const async = require("async") , notification = require('./notification') , w3ciprcheck = require('./w3c-ipr') , doAsync = require('doasync') // rather than utils.promisy to get "free" support for object methods , w3c = require("node-w3capi"); let store, log; async function findW3CUserFromGithub(user) { log...
var gulp = require('gulp'); var browserSync = require('browser-sync'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var prefix = require('gulp-autoprefixer'); var cssmin = require('gulp-clean-css'); var concat = require("gulp-concat"); var uglify = require('gulp-uglify'); // var...
// 生成从min到max的随机数 function random_num(min, max) { var Range = max - min; var Rand = Math.random(); return (parseInt(Math.round(Rand * Range),10) + parseInt(min, 10)); } // 是否为正整数 function isPositiveInteger(s){ var re = /^[0-9]+$/; return re.test(s); } // 随机字符串 function random_string(length) { var str = '012345...
// CleverTap specific utilities import { StorageManager, $ct } from './storage' import { CAMP_COOKIE_NAME, singleQuoteRegex, PR_COOKIE, ARP_COOKIE, IS_OUL, categoryLongKey } from './constants' import { GENDER_ERROR, EMPLOYED_ERROR, MARRIED_ERROR, EDUCATION_ERROR, AGE_ERROR, DOB_ERROR, PHO...
import { PICK_DATA_SOURCE, PICK_DATA_SOURCE2, PICK_YEAR, LOAD_LAYER_DATA, // see layerData below; this is for all the predefined layers TURN_LAYER_ON, // layer name TURN_LAYER_OFF, // ditto REQUEST_REMOTE_DATA, // url, ERROR_REMOTE_DATA, RECEIVE_REMOTE_DATA, LO...
const KEY_CODE_LEFT = 37; const KEY_CODE_RIGHT = 39; const KEY_CODE_SPACE = 32; const GAME_WIDTH = 800; const GAME_HEIGHT = 600; const PLAYER_WIDTH = 20; const PLAYER_MAX_SPEED = 600.0; const LASER_MAX_SPEED = 300.0; const LASER_COOLDOWN = 0.5; const ENEMIES_PER_ROW = 10; const ENEMY_HORIZONTAL_PADDING = 80; const E...
function initCity(res){ bdmap.local = new BMap.LocalSearch(bdmap, { renderOptions:{map: bdmap, panel: 'search-panel'} }); bdmap.local.enableAutoViewport(); bdmap.local.setPageCapacity(5); bdmap.local.setLocation(res.name); bdmap.local.setResultsHtmlSetCallback(searchHtmlComplete); ...
"use strict"; /* eslint-disable no-process-exit, max-params */ /* eslint-disable no-magic-numbers,max-statements,prefer-template */ const Fs = require("./file-ops"); const _ = require("lodash"); const Path = require("path"); const logger = require("../logger"); const Promise = require("bluebird"); const mississippi =...
/* Meet-the-Fans https://github.com/evoluteur/meet-the-fans (c) 2021 <NAME> */ const repoArr = (repoIds) => repoIds .sort((a, b) => a.localeCompare(b)) .map((id) => (id === "*" ? gitUser : reposH[id])); const textField = (label, value) => value ? `<div class="field"><label>${label}:</label> ${...
/* Copyright 2014-2015 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" file accompany...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
import React, { useState, useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import ReactQuill, { Quill } from "react-quill"; import "react-quill/dist/quill.snow.css"; import Header from "../../components/Header"; import { useHistory } from "react-router"; import routes from "../../consta...
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] =...
/* * 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-2.0 * * Unless required by applicabl...
import { createSelector, createAction, createAsyncThunk } from '@reduxjs/toolkit'; import moment from 'moment'; import omit from 'lodash/omit'; import { deserialize, serialize } from 'utils/functions'; import { getBasemapDef, getLayerDef } from 'utils/map'; import { BASEMAPS, ATTRIBUTIONS, DATA_LAYERS } from 'componen...
import {raise, validate, mergeable, MERGEABLE_NODES} from '../utilities' import {stringify as defaultOptions} from '../defaults' import encodeFactory from './encode-factory' import escapeFactory from './escape-factory' import LIST_BULLETS from './list-bullets' /** * Construct a state `toggler`: a function which inver...
import React, { Component } from "react"; import { StyleSheet, View, ScrollView, Text, TouchableOpacity, Image, SafeAreaView } from "react-native"; import { Button } from "antd-mobile-rn"; import { windowWidth, PublicStyles, ThemeStyle } from "../../utils/style"; // import SafeAreaView from "react-native-...
import React from "react"; import { Helmet } from "react-helmet"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faClock, faAngleDoubleRight, faEllipsisV } from "@fortawesome/free-solid-svg-icons"; import styled from "styled-components"; import { withNamespaces } from "react-i18next"; ...
/** * * * * **/ var friendServer, friendServerConnected = false, snacking = 0, played = 0, pname, puid, colour = "#000000", onlinePlayers = {}, party = [], developers = []; /*jQuery(function() { if(getURLParameter('offline') !== "1" && dewRconConnected) { StartConnection(); } });*/ StartConnection...
import * as d3 from "d3"; export const grafokres = ({ elem, data, btnFn, yFormat = "x", yMin = 0, yMax = 100, lang = 'en', ...parameters }) => { const hiddenFrom = parameters.cutoff; const interval = (parameters.interval === "decade") ? 10 : 1; const precision = (yMax > 100) ? 1 : 10; const sho...
/* -------------------- * @overlook/plugin-react-router module * Entry point * ------------------*/ 'use strict'; // Modules const Plugin = require('@overlook/plugin'), {INIT_PROPS, INIT_ROUTE, INIT_CHILDREN} = require('@overlook/route'), fsPlugin = require('@overlook/plugin-fs'), reactPlugin = require('@overlo...
export const map = new Map(); export const root = { world : null, delta : 0, substep:1, flow:{ tmp:[], key:[], }, reflow:{ ray:[], stat:{ fps:0, delta:0, }, } }; export const torad = Math.PI / 180; export const todeg = 180 / Math.PI; export class Utils { static clear() { map.clear() ...
/// <reference path="CollisionBaseManager.ts" /> var __extends = (this && this.__extends) || (function () { var 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] = ...
// Licensed Materials - Property of IBM // (C) Copyright IBM Corp. 2018, 2018 All Rights Reserved // IBM-Review-Requirement: Art30.3 marking // Developed by <NAME> at Haifa Research Lab const graphlib = require('graphlib'); const Flatted = require('flatted'); const path = require('path'); const logger = require('../c...
import PropTypes from 'prop-types' import React, { Component } from 'react' import { Button, Container, Divider, Grid, Header, Icon, Image, List, Menu, Responsive, Segment, Sidebar, Visibility, Card, Item, Label, Embed, Form, Input, Radio, Select, TextArea, Checkbox } from 'semantic-ui...
var fs = require('fs'); var readline = require('readline'); var crypto = require('crypto'); var path = require("path") let checksumTools = require("./checksummer"); let config = JSON.parse(fs.readFileSync("artifact.json")) process.env["mode"] = config["debug"] exports.listener = class dirListener{ constructor(...
'use strict'; // This is a modified version of screeps-profiler taken from https://github.com/samogot/screeps-profiler let usedOnStart = 0; let enabled = false; let depth = 0; let parentFn = '(tick)'; function AlreadyWrappedError() { this.name = 'AlreadyWrappedError'; this.message = 'Error attempted to doub...
/* React Imports */ import React, { useState, useEffect } from "react"; import { withRouter, useParams } from "react-router-dom"; /* Redux */ import { connect } from "react-redux"; import * as actions from "../../store/actions/index"; import { useSelector } from "react-redux"; import { useFirestoreConnect, isLoaded } f...
import YunButton from './components/button' import YunButtonGroup from './components/button-group' import YunIcon from './components/icon' import YunAlert from './components/alert' import YunCountTo from './components/countTo' import YunInput from './components/input' import YunInputNumber from './components/input-numb...
const RDL = require('./reactiveDataLayer'); /** * This file creates the live directive resolver function. This runs when a field is marked * with the @live directive. It stores the data returned from the query in the reactive data * layer with a reference to the subscribers of the data. In the event that data has c...
import { Button, Card, CardBody, WindmillContext } from "@windmill/react-ui"; import React, { useContext, useState, useMemo } from "react"; import { ArrowLeft } from "react-feather"; import { animated, config, useSpring } from "react-spring"; import { wrap } from "react-suspense-worker"; import { CartesianGrid, Lin...
// drop entitiy var sys = require('sys'), querystring = require("querystring"), path = require('path'), http = require('http'), hash = require('oui/hash'), ouiutil = require('oui/util'), mimetypes = require('oui/mimetypes'), _tag = require('./tag'), User = require('./user').User, con...
'use strict'; var u = require('unist-builder'); var remark = require('remark'); var mergeConfig = require('../merge_config'); var toc = require('remark-toc'); var links = require('remark-reference-links'); var hljs = require('highlight.js'); var GithubSlugger = require('github-slugger'); var LinkerStack = require('./u...
/* * grunt * https://github.com/cowboy/grunt * * Copyright (c) 2012 "Cowboy" <NAME> * Licensed under the MIT license. * http://benalman.com/about/license/ */ var fs = require('fs'); var path = require('path'); var glob = require('glob-whatev'); // Return an array of all file paths that match the given wildcard...
import React, { Component } from 'react'; import '../style/NewSearch.css'; import { FaTimes } from 'react-icons/fa'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router'; import Alert from 'react-s-alert'; import DatePickerInterval from '../DatePickerInterval'; import Checkbox from '../Checkbox...
const mascotaInput = document.querySelector('#mascota'); const propietarioInput = document.querySelector('#propietario'); const telefonoInput = document.querySelector('#telefono'); const fechaInput = document.querySelector('#fecha'); const horaInput = document.querySelector('#hora'); const sintomasInput = document.quer...
var grobjects = grobjects || []; // allow the two constructors to be "leaked" out var Falcon = undefined; // this is a function that runs at loading time (note the parenthesis at the end) (function() { "use strict"; /* Original OBJ file from https://free3d.com/3d-model/millenium-falcon-82947.html */ ...
'use strict'; var config = require('./config.json'); var promptResult; var _ = require('underscore'); _.str = require('underscore.string'); // Mix in non-conflict functions to Underscore namespace if you want _.mixin(_.str.exports()); var SRC = "build/", DEST = "public/", JS_PARTIAL = SRC.concat("shared/"...
var mongoose = require("mongoose"); var isEqual = require('lodash.isequal'); var omit = require("object.omit"); //var IntervalReading = require("./intervalReading"); var AccountSchema = new mongoose.Schema({ feed: { id: { type: String, index: {unique: true} }, tit...
function loadData() { playerNames.clear(); const slTable = document.getElementById("slTable"); const slPlayerList = document.getElementById("slPlayerList"); const slTableContainer = document.getElementById("slTableContainer"); const slScoreboard = document.getElementById("slScoreboard"); const ...
var EYT = { // Functions Object. d: document, // Page scroll function. scroll: function (i, wrpr) { "use strict"; var html = EYT.d.querySelectorAll("html")[0], b_ody = EYT.d.body, b_od = b_ody.getBoundingClientRect(), e_lm, top; if (!...
/* g*/ var urlelencocomuni = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vSoP79r_KG6CSuIF6Woik3c8o54B_K8EPDYgI_zpPehuYydjNztNzLAPqGwpAoHn6uGLE2_J7zy1Lwa/pub?gid=1484863998&single=true&output=csv'; var urlandamentocasi = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vQdZ7yQhx38EsaR05DRprb0YkaRf5eK6cfrrOGMfFnDKq-...
var BestBooks = {}; function extend(child, parent) { var F = function () { }; F.prototype = parent.prototype; child.prototype = new F(); child.prototype.constructor = child; child.superclass = parent.prototype; } /** * BestBooks component. */ BestBooks.DrawComponent = { ext_lang: 'best_b...
const black = "#000000"; const white = "#ffffff"; const gray1 = "#444444"; const gray2 = "#888888"; const gray3 = "#bbbbbb"; const red = "#FF0000"; const green = "#00FF00"; const blue = "#0000FF"; const transp = -1; const abc = "abcdefghijklmnopqrstuvwxyz1234567890"; // const abc_up = "ABCDEFGHIJKLMNOPQRSTUVWXYZ12345...
function reloadtable(){ $.ajax({ url: 'ajax.php?c=ordenservicio&f=listaunidadesalta', type: 'POST', dataType: 'json', }) .done(function(data) { var table = $('#table_listado_unidades').DataTable({responsive: true}); table.clear().draw(); var x =''; $...
import { merge } from 'lodash'; const SCREEN_WIDTH = window.innerWidth; const SCREEN_HEIGHT = window.innerHeight; const VIEW_ANGLE = 45; const ASPECT = SCREEN_WIDTH / SCREEN_HEIGHT; const NEAR = 1; const FAR = 10000; let scene; let camera; let renderer; let orbitControls; let stats; let mesh; let helper; // const or...
'use strict'; /** * JAWS Command: new project * - Asks the user for information about their new JAWS project * - Creates a new project in the current working directory * - Creates IAM resources via CloudFormation */ // Defaults var JawsError = require('../jaws-error'), JawsCLI = require('../utils/cli'), ...
/** * Created by chief on 17/4/6. */ import React, { Component } from "react"; import RangeCalendar from "./rc-calendar/RangeCalendar"; import TimePickerPanel from "rc-time-picker/lib/Panel"; import FormControl from "bee-form-control"; import Picker from "./rc-calendar/Picker"; import InputGroup from 'bee-input-group...
'use strict'; // Themes from GitHub var github = ['#eeeeee', '#9be9a8', '#40c463', '#30a14e', '#216e39']; var halloween = ['#eeeeee', '#fdf156', '#ffc722', '#ff9711', '#04001b']; // Themes from Material design var amber = ['#eeeeee', '#ffecb3', '#ffd54f', '#ffb300', '#ff6f00']; var blue = ['#eeeee...
const axios = require('axios'); const util = require("util"); const cheerio = require("cheerio"); const cloud = require('wx-server-sdk'); cloud.init(); const DB = cloud.database({ env: 'chanx-server' }); const cookies = DB.collection('cookies'); const newsData = DB.collection('newsData'); // 云函数入口函数 exports.main = a...
function doGAPCostruttiva(){ alert(" ..:: Eurista Costruttiva ::.. "); var i = 0; var j = 0; var ii = 0; var capLeft = cap.slice(); // array delle capacità residue var z = 0; // costo della soluzione sol = new Array(n); var dist = new Array(m); for(i = 0; i < m; i++) dist[i] ...
// Global config var GRAPHIC_DEFAULT_WIDTH = 600; var MOBILE_THRESHOLD = 500; // Global vars var pymChild = null; var isMobile = false; var graphicData = null; /* * Initialize the graphic. */ var onWindowLoaded = function() { if (Modernizr.svg) { loadLocalData(GRAPHIC_DATA); //loadCSV('data.csv'...
import React from "react"; import styled, { ThemeContext } from "styled-components"; import { ToastContext, AuthContext } from "../../contexts"; import { apiCall, errorToaster } from "../../api"; import { NavLink } from "react-router-dom"; import { TimeDisplay } from "./TimeDisplay.js"; import { Badge } from "../../Com...
// Internal state. var CURRENT_INPUT_GRID = new Grid(3, 3); var CURRENT_OUTPUT_GRID = new Grid(3, 3); var TEST_PAIRS = new Array(); var CURRENT_TEST_PAIR_INDEX = 0; var COPY_PASTE_DATA = new Array(); // Cosmetic. var EDITION_GRID_HEIGHT = 500; var EDITION_GRID_WIDTH = 500; var MAX_CELL_SIZE = 100; function resetTask...
const faker = require('faker'); const { teamNames } = require('./data/sports-teams'); const products = require('../database/models/products'); const basketballAccessories = require('./data/basketball-accessories'); const basketBallApparel = require('./data/basketball-apparel'); const basketballShoes = require('./data/...
import { useState, useRef } from "react"; import { HexColorPicker, RgbColorPicker, RgbaColorPicker, RgbStringColorPicker, RgbaStringColorPicker, HslColorPicker, HslaColorPicker, HslStringColorPicker, HslaStringColorPicker, HsvColorPicker, HsvaColorPicker, HsvStringColorPicker, HsvaStringColorP...
"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]; ...
var canvas; var gl; var squareVerticesBuffer; var squareVerticesColorBuffer; var squareRotation = 0.0; var squareXOffset = 0.0; var squareYOffset = 0.0; var squareZOffset = 0.0; var lastSquareUpdateTime = 0; var xIncValue = 0.2; var yIncValue = -0.4; var zIncValue = 0.3; var mvMatrix; var shaderProgram; var vertexPos...
var fs = require('fs'); var xml2js = require('xml2js'); var parser = new xml2js.Parser(); var path = require('path'); var dom = require('xmldom').DOMParser var docxExtractor = require("./docxExtractor..js"); var formatToBot = require("./formatToBot..js"); var formatToHtml = require("./formatToHtml..js"); var formatTo...
import { enforceHttpConnection, enforceHttpsConnection, errors, extractHostnameFromUrl, getRequestFilter, ignore, isValidURL, proxy, registry, settings, storage, } from '@/common/js' import { asynchrome } from './core' window.censortracker = { proxy, registry, settings, errors, ignore,...
import assert from "assert" import optimize from "../src/optimizer.js" import * as ast from "../src/ast.js" const x = new ast.Variable("Meltable", "Anna", "x", null) const y = new ast.Variable("Meltable", "Anna", "y", new ast.Integer(1)) const z = new ast.Variable("Meltable", "Anna", "z", null) const xinc = new ast.In...
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import onClickOutside from 'react-onclickoutside' import { remoteFunction, makeRemotelyCallable } from 'src/util/webextensionRPC' import FrameCommunication from '../messaging' import styles from './Ribbon.css' import CloseButton ...
/* * Proof of concept CREST parsing for tournament series */ /* * called by item on tournament dropdown * TODO -- passed to new page from server * * we can render the data after a caching attempt * yes client-side caching is horribly insecure * but needed proof of concept first */ function getSeries(url) { ...
import axios from "axios"; import MovieDatabase from "../../services/the-movie-database"; const movieDb = new MovieDatabase(); const ptn = require('parse-torrent-name'); export default { state: { items: [] }, mutations: { // call commit for mutations loadHistory(state, data) { ...
import { Emitter } from 'common/emitter'; import { logger } from 'common/logger'; import { persistence } from '../utils'; import { errorConstants } from './constants'; import { fetchRoomInfo, refreshAccessToken, registerDevice } from './utils'; const ONE_SECOND = 1000; const ONE_MINUTE = 60 * ONE_SECOND;...
/* * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
// JavaScript Document function Model(){ //base(this,LSprite,[]); var arg= producturl+"/3d/"+"xml/model.xml"; model_xml(arg); } function model_xml(arg) { $(".loading").show(); $.ajax({ url: arg, dataType: 'xml', type: 'GET', error: function(xml) { ...
var map; var medicareLayer; var allProviders = []; // Mapzen search functionality and details var inputElement = document.getElementById("addr-search"); var search_url = 'https://api.mapbox.com/geocoding/v5/mapbox.places/'; L.mapbox.accessToken = '<KEY>'; var match_providers = []; var full_auto_url_post = '.json?acc...
const vi = { auth: { login: '<NAME>', loggingIn: 'Đang đăng nhập...', loginWithNetlifyIdentity: 'Đăng nhập bằng Netlify Identity', loginWithBitbucket: 'Đăng nhập bằng Bitbucket', loginWithGitHub: 'Đăng nhập bằng GitHub', loginWithGitLab: 'Đăng nhập bằng GitLab', errors: { email: 'Hãy...
var timerange = "past7"; var nutrient = "calories"; var ctx = document.getElementById('myChart').getContext('2d'); var saved_data = { 'past7': null, 'past30': null, 'week': null, 'month': null, 'year': null }; var chart = new Chart(ctx, { type: 'line', data: { labels: [], datasets: [{ label: null, d...
function escapeHtml(text) { return text .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&#039;') } function getChildren(obj, count) { count++ if (count > 4) return null if (obj.children().length > 1) return obj return getChild...
'use strict'; var util = require('util') , path = require('path') , fs = require('fs') , yeoman = require('yeoman-generator') , rimraf = require('rimraf') , exec = require('child_process').exec , semver = require('semver') , config = require('./../config.js') , git = require('simple-git')() ...
// Art 109 Three.js Demo Site // client4.js //import gltf loader add-on import { GLTFLoader } from "./src/GLTFLoader.js"; // Import required source code // Import three.js core import * as THREE from "./build/three.module.js"; // Import pointer lock controls import { PointerLockControls } from "./src/PointerLockCon...
import { readJSON } from '../node_dependecies'; const BIOME_TYPES = { TARTARUS: 'TARTARUS', ASPHODEL: 'ASPHODEL', ELYSIUM: 'ELYSIUM', STYX: 'STYX', CHAOS: 'CHAOS', SURFACE: 'SURFACE', EREBUS: 'EREBUS', CREDITS: 'CREDITS' }; const pathPostfixByBiome = { [BIOME_TYPES.TARTARUS]: 'Tar...
let offset = 1; let ratesList = null; const biz_user_ID = JSON.parse(localStorage.getItem("business")) ? JSON.parse(localStorage.getItem("business")).uid : null; if (!biz_user_ID) location.replace("./../"); const busType = JSON.parse(localStorage.getItem("business")) ? JSON.parse(localStorage.getItem("headerIn...
"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]; ...
/* jshint -W097 */// jshint strict:false /*jslint node: true */ /*jshint expr: true*/ var expect = require('chai').expect; var setup = require(__dirname + '/lib/setup'); var request = require('request'); var objects = null; var states = null; process.env.NO_PROXY = '127.0.0.1'; process.env.NODE_TLS_REJECT_UNAUTHO...
/* MIT License * * Copyright (c) 2012-2020 <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...
const Discord = require('discord.js'); const mongo = require('../mongo'); const charactersModel = require('../db/charactersSchema'); const notifModel = require('../db/notifSchema'); module.exports = { name: 'autosavetalk', abbrev: 'as', description: 'Auto saving talk data when successfully talking to a character'...
/* eslint-disable no-restricted-syntax */ import { assign as lodashAssign, find as lodashFind, get as lodashGet, includes as lodashIncludes, } from 'lodash'; import { Stroke, Style, Fill, Circle, } from 'ol/style'; import { setStyleFunction } from './selectors'; import { isFromActiveCompareRegion } from '../...
const hcat = require('hcat') const WebSocket = require('ws') const fs = require('fs') const path = require('path') const HumanTime = require('custom-human-time') const LinkedList = require('digital-chain') const through2 = require('through2') const debug = require('debug')('catchart') const defaultConfig = require('./c...
/* * Copyright(c) 2017 Microsoft Corporation. All rights reserved. * * This code is licensed under the MIT License (MIT). * * 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 rest...
// let app = require('express')(); // let http = require('http').Server(app); // var io = require('socket.io')(http); //* SERVER var express = require('express'), app = express(), server = require('http').createServer(app), io = require('socket.io').listen(server) server.listen(process.env.PORT || 3001, () => { ...
// Generated by BUCKLESCRIPT VERSION 5.0.6, PLEASE EDIT WITH CARE 'use strict'; var Block = require("bs-platform/lib/js/block.js"); var Curry = require("bs-platform/lib/js/curry.js"); var $$Event = require("../application/events/Event.bs.js"); var Utils = require("../utils/Utils.bs.js"); var Belt_Map = require("bs-pla...
var api="<KEY>"; function initMap() { var latLng={ lat:20.729792, lng:-105.282817 } var map = new google.maps.Map(document.getElementById('mapa'), { 'center':latLng, 'zoom': 19, 'mapTypeId':google.maps.MapTypeId.ROADMAP, ...
'use strict'; class SimulatedPlayer extends AiPlayer { constructor(id) { super(id); } } function makeSimulationUniverse(entities1, entities2) { var p1 = new SimulatedPlayer('p1'); var p2 = new SimulatedPlayer('p2'); var universe = new Universe([p1, p2], []); for(let entityt of entities1) { u...
const fs = require('fs') const { spawn } = require('child_process') const SAMPLE_RATE = 16000 const BUFFER_SIZE = 4000 /** * ffmpegArgsToPCM * set ffmpeg args to convert any source audio file/buffer to a PCM file/buffer * * @function * * @param {String} sourceFile * @param {String} destinationFile * * @see...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = rangeInput; var _preactCompat = require("preact-compat"); var _preactCompat2 = _interopRequireDefault(_preactCompat); var _classnames = require("classnames"); var _classnames2 = _interopRequireDefault(_classnames); va...
var keystone = require('../../../'), _ = require('underscore'), async = require('async') var ListHandle = function(req, res) { var category = null; var template = keystone.list(req.query.type) || req.list; var pageSize = req.query.pagesize || 10; var sort = { by: req.query.sort || template.defaultSort }; var vi...
function decodeUplink(input) { var port = input.fPort; var bytes = input.bytes; var decoded = {}; var fourStr = bytes.join(""); if (port === 1) { decoded.type = "Device Information Packet"; decoded.macversion = ( bytes[0] - ( bytes[0] % 16 ) ) / 16; //if equal to 3, the mac version is 1.0.3 ; if eq...
var months = { 'January' : 0, 'February' : 1, 'March' : 2, 'April' : 3, 'May' : 4, 'June' : 5, 'July' : 6, 'August' : 7, 'September' : 8, 'October' : 9, 'November' : 10, 'December' : 11}; function dayOfWeekAsString(dayIndex) { return ["Sunday","Monday","Tuesday","Wednesday","T...