text
stringlengths
3.07k
16k
// 获取小程序实例 var app = getApp() var sourceType = [ ['camera'], ['album'], ['camera', 'album'] ] var sizeType = [ ['compressed'], ['original'], ['compressed', 'original'] ] Page({ // 数据 data: { hasNetworkType: false, systemInfo: {}, /* 图片数据 */ sourceTypeIndex: 2, sourceTyp...
const File = require(app.base_path('app/File')); const Command = require('forge-cli/src/Command'); const mime = require('mime-types'); const path = require('path'); const Promise = require('bluebird'); const fs = Promise.promisifyAll(require('fs')); const dayjs = require('dayjs'); const { basename } = require('path'); ...
/** * Server configuration manager, handling loading, creation, parsing and saving * of the main config.json file * * Version: v2.0.0 * Developer: Marzavec ( https://github.com/marzavec ) * License: WTFPL ( http://www.wtfpl.net/txt/copying/ ) * */ const stripIndents = require('common-tags').stripIndent...
const opentracing = require('opentracing'); const container = require('rhea'); // module.exports.client = function(url, requests, args, baseT){ // let span; // this.url = url; // this.requests_queued = []; // this.requests_outstanding = []; // this.receiver; // this.sender =1; // let add_r...
/* ================ Setting up the 3D scene ================ */ // // // DO NOT CHANGE THE VARIABLE NAMES IF USING addToState(0.) // // // /* ========================================================= *...
import { __assign, __awaiter, __generator } from "tslib"; import { fromEnv } from "@aws-sdk/credential-provider-env"; import { fromContainerMetadata, fromInstanceMetadata } from "@aws-sdk/credential-provider-imds"; import { fromSSO, isSsoProfile, validateSsoProfile } from "@aws-sdk/credential-provider-sso"; import { fr...
/** * @license Copyright 2019 The Lighthouse Authors. 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 applica...
// ! Import required modules/packages. require('dotenv').config(); const Discord = require('discord.js'); const fs = require('fs'); const fetch = require('node-fetch'); const client = new Discord.Client(); // ! Environment variables. client.token = process.env.BOT_TOKEN; client.prefix = process.env.PREFIX; client.fl...
import React from 'react'; import _ from 'lodash'; import axios from 'axios'; import ClientForm from './ClientForm'; import { Modal } from 'reactstrap'; import { getErrorMessage, updateUrlQuery, getUrlQuery } from '../global/misc'; import Paginator from '../global/Paginator'; const RESULTS_PER_PAGE = 100; export defa...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.adaptors = exports.measureTextWidth = exports.flow = exports.G2 = exports.DagreFundFlowGraph = e...
import { Proto } from '../core/Proto'; function Numeric( o ){ Proto.call( this, o ); this.setTypeNumber( o ); //this.allway = o.allway || false; this.isDown = false; this.value = [0]; this.toRad = 1; this.isNumber = true; this.isAngle = false; this.isVector = false; if( o....
$.fn.select2.defaults.set("theme", "bootstrap"); $("#div-planListMenu").select2(); collectionObj = JSON.parse(localStorage.getItem("collectionObj")); console.log("[dc.js]collectionObj: ", collectionObj); $('#collectionInfo').append('<h4 id="collectionName">' + collectionObj['Name'] + ' <a data-toggle="modal" href="#...
import React, {Component} from "react"; import gql from "graphql-tag.macro"; import {graphql, withApollo} from "react-apollo"; import { Container, Row, Col, Card, CardBody, Input, Button, } from "helpers/reactstrap"; import Tour from "helpers/tourHelper"; import SubscriptionHelper from "helpers/subscripti...
'use strict'; var assignIn = require('lodash.assignin'); var Canvas = require('canvas-utilities').Canvas; var ImageHelper = require('canvas-utilities/lib/image-helper.js'); function ImageInterestingness(options) { this.options = assignIn({}, ImageInterestingness.DEFAULTS, options); } ImageInterestingness.DEFAULTS ...
import got from 'got'; import fs from 'fs-extra'; import path from 'path'; import { Client as FigmaClient } from 'figma-js'; import PQueue from 'p-queue'; import dotenv from 'dotenv'; import Case from 'case'; dotenv.config(); const { ensureDir, emptyDir, writeFile } = fs; const { join } = path; const FIGMA_TOKEN = '3...
import React from 'react' import NextLink from 'next/link' import { LW_BLUE, LW_BLUE_HOVER, GREY_DARK, GREY_LIGHT, GREY_MID, WHITE, GREY_SOFT, mediaM, } from '../theme' import { css, merge } from 'glamor' export const plainButtonRule = css({ fontFamily: 'inherit', fontWeight: 'inherit', fontStyle...
const url = require('../helpers/url').main const wait = require('../helpers/wait') const dashboard = require('../helpers/dashboard') const { testingAddress } = require('../helpers/vars') describe('The Unlock Dashboard', () => { beforeAll(async () => { await page.goto(url('/dashboard'), { waitUntil: 'networkidle2...
const { findPermutations, getRandomInt, factorial } = require('./math') /* Given an array as input, it returns an 2xM Matrix where M = Int(array.length / 2). Array must contain an even number of elements. [1,2,3,4] => [[1,2], [3,4]] */ function generate2NMatrix(array) { if (array.leng...
'use strict'; class Button { constructor(canvas){ //默认可点击 this._able = true; if (!canvas.mrChildren){ canvas.mrChildren = []; } canvas.mrChildren.push(this); this.canvas = canvas; } _initRect(){ if (!this._rect){ this._rect ...
// @ts-check const path = require("path"); const fs = require("fs"); const os = require("os"); const https = require("https"); const util = require("util"); const url = require("url"); const URL = url.URL; const child_process = require("child_process"); const proxy_from_env = require("proxy-from-env"); const USE_REVER...
const {getZoomFactor} = require("../lib/overZoom.js"); const opengraph = require("./opengraph.js") module.exports = function(metadata) { const zoomFactor = (metadata.format) ? getZoomFactor(metadata.format) : null; return /*html*/` <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="vi...
import { parse, get } from '@utils/util' import * as actions from './actions' import { snapshotsCache } from './cache' import SharedData from '@utils/shared-data' const REGEX_RE = /^\/((?:(?:.*?)(?:\\\/)?)*?)\/(\w*)/ const ANY_RE = new RegExp('.*', 'i') let uid = 0 const state = { hasVuex: false, base: null, // ...
var Handlebars = require('handlebars'); var HandlebarsIntl = require('handlebars-intl'); var fs = require('fs-extra'); const helper = require('./helper.js') const aggregator = require('./aggregator.js') var sourceList = fs.readFileSync('./src/pages/forklist.html', 'utf8') var sourceImprint = fs.readFileSync('./src/pa...
// this is the front end code that allows for the user to check to see if the // flags are correct by pressing buttons that call back to the server to see if // the they got it right! // by <NAME> // github.com/wisehackermonkey // <EMAIL> // 20210116 console.log("Loading main script...") // check the servers /check...
var args = arguments[0] || {}, image = args.image, title = args.title || "", subtitle = args.subtitle || "", lowerInfoHidden = args.lowerInfoHidden || args.lowerInfoHided || false, lowerGradientHidden = args.lowerGradientHidden || args.lowerGradientHided || false, backgroundColor = args.backgroundColor || 'black'...
import { TextField, Button } from "@shopify/polaris"; import React, { Component } from "react"; import { I18n } from "react-redux-i18n"; import styled from "styled-components"; import { connect } from "react-redux"; const Container = styled.div` display: flex; flex-direction: row; justify-content: center; bord...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
import React, { useRef } from 'react'; import Code from '../../utils/Code'; import withDocs from '../../utils/withDocs'; import readme from './README.md'; import { Form, useField, useCursorPosition, utils } from '../../../src'; const { informedFormat } = utils; const formatter = [ '+', '1', ' ', /\d/, /\d/,...
class ReviewForm { constructor({restaurant_id, submitCallback} = {}) { const li = document.createElement('li'); li.id = 'user-review'; li.classList.add('card', 'review', 'review-form'); const header = document.createElement('div'); li.appendChild(header); header.innerHTML = 'Please submit you...
const fs = require('fs'); const yaml = require('js-yaml'); const { exit } = require('process'); const winston = require('winston'); const { getSources } = require('./sources'); const { findQueries, findSources } = require('./helpers'); // Initiate logger const logger = winston.createLogger({ format: winston.format.c...
'use strict'; const fs = require('fs'); const { SMTPServer } = require('smtp-server'); const { simpleParser } = require('mailparser'); const IPAccessControl = require('@hyperingenuity/ip-access-control'); function SMTP (skyfall, options) { const id = skyfall.utils.id(); let port = 25; let host = '0.0.0.0'; l...
// Test shex-simple browser interface. // These tests don't work with Workers do to a jsdom limitation: // https://github.com/jsdom/jsdom/issues/2020 "use strict"; const TEST_browser = "TEST_browser" in process.env ? JSON.parse(process.env["TEST_browser"]) : false; const STARTUP_TIMEOUT = 10000 const SCRIPT_CALLBACK...
var baseUrl = location.href.match(/^http:\/\/[^/]+/)[0]; var fadingState = { atrootpage: (baseUrl + '/' === location.href) ? true : false, navigationOpen: (baseUrl + '/' === location.href) ? true : false, followingLink: false, newPage: null, checkLinkFollowing: function() { if (this.follow...
import React, { Component } from "react"; import { Text, View, StyleSheet } from "react-native"; import { Agenda } from "react-native-calendars"; import { connect } from "react-redux"; import { getPlanning } from "../../redux/planning/action"; import { RkStyleSheet, RkText } from "react-native-ui-kitten"; export class...
import React, { Component } from 'react'; import Papa from 'papaparse'; import './App.css'; import { makeStyles } 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...
'use strict'; /** * Module dependencies. */ var redis = require('redis'); var redisCommands = require('redis-commands').list; var Pool = require('generic-pool').Pool; // var debug = require('debug')('redis-pool'); var poolNumber = 0; /** * Expose redis-pool */ exports.RedisPool = RedisPool; exports.createClient =...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Icon } from 'antd'; import { injectIntl, FormattedMessage, FormattedNumber } from 'react-intl'; import { get, truncate } from 'lodash'; import urlParse from 'url-parse'; import { getUser, getRewardFund, getRat...
import { useCallback, useEffect, useMemo, useState } from 'react'; import { Container, Grid } from '@material-ui/core'; import SentimentSatisfiedAltIcon from '@material-ui/icons/SentimentSatisfiedAlt'; import SentimentVeryDissatisfiedIcon from '@material-ui/icons/SentimentVeryDissatisfied'; import styled from 'styled-c...
'use strict'; var htmlparser = require('htmlparser2'); var crypto = require('crypto'); var s18n = require('../'); module.exports = function(html, options) { options = options || {}; // localize the contents of all of the following elements options.elements = arrayify(options.elements) || ['title', 'h1', 'h2', '...
const inquirer = require('inquirer'); const fs = require('fs'); let img; const licenseChoices = [ { name: "Apache 2.0 License", url: "https://img.shields.io/badge/License-Apache_2.0-blue.svg" }, { name: "Boost Software License", url: "https://img.shields.io/badge/License-Boo...
/* eslint no-console:0 */ const path = require('path') const fs = require('fs') const glob = require('glob') const Rx = require('rxjs/Rx') const format = require('prettier-eslint') const chalk = require('chalk') const getStdin = require('get-stdin') const nodeIgnore = require('ignore') const findUp = require('find-up')...
var parallel = require('async/parallel'); var cassandraDriver = require('cassandra-driver'); var Schema = require('./lib/schema'); var Connection = require('./lib/connection'); var utils = require('./lib/utils'); var Promise = require('./lib/promise'); var Model = require('./lib/model'); var error = require('./lib/er...
import React, { Component, PropTypes } from 'react' import { bindActionCreators } from 'redux' import { Link } from 'react-router' import { connect } from 'react-redux' import { reduxForm } from 'redux-form' import { getCookie } from '../../utils/authService' import { Alert } from 'amazeui-react'; import { API_ROOT } f...
'use strict'; // #region Imports var concat = require('gulp-concat'); var del = require('del'); var gjade = require('gulp-jade'); var gulp = require('gulp'); var gulpif = require('gulp-if'); var gutil = require('gulp-util'); var gzip = require('gulp-gzip'); var htmlmin = require('gulp-htmlmin'); var jade = require('ja...
const metalsmith = require('metalsmith') // static site generator const assets = require('metalsmith-assets') // copy static assets const brokenLinkChecker = require('metalsmith-broken-link-checker') const titleChecker = require('./metalsmith-title-checker.js') const concat = requir...
/* jQuery routines for dealing with the hexmap TODO: really need to normalize row / column notation. Currently it incorrectly uses row as the y coordinate */ /* Return a list of lists of strings. The top-level list represents columns, and each column list is a series of strings where the string val...
/** * MUI CSS/JS utilities module * @module lib/util */ 'use strict'; var config = require('../config'), jqLite = require('./jqLite'), scrollLock = 0, scrollLockCls = 'mui-scroll-lock', scrollStyleEl, scrollEventHandler, _supportsPointerEvents; scrollEventHandler = function(ev) { // st...
import React from 'react'; import { majCities, UScities } from '../../utils'; import DateRangePicker from 'react-daterange-picker'; import moment from 'moment'; import 'react-daterange-picker/dist/css/react-calendar.css'; import { getDepFlights, getRetFlights, resetAllFlights } from '../../store/reducers/flight';...
import dynamic from 'next/dynamic' import { useRouter } from 'next/router' import getText from 'utils/i18n/Texts' // Lib imports import { useForm, Controller } from 'react-hook-form' import { yupResolver } from '@hookform/resolvers/yup' import * as Yup from 'yup' import 'react-quill/dist/quill.snow.css' import nookies...
// import getWeb3 from '../util/getWeb3' import { App, Entity, stringToBytes32 } from './entity' import { Resolver } from 'did-resolver'; import ethr from 'ethr-did-resolver'; import { stringToBytes, bytesToString, bytes32toString } from './entity'; import dummy from './dummy'; import Dummy from './dummy'; const ipf...
var renderContext = renderCanvas.getContext('2d'); var renderWidth = renderCanvas.getAttribute('width'); var renderHeight = renderCanvas.getAttribute('height'); var gSFactor = 1.0; var scaleRatio = 1.0; var downScaleStep = 0.9; var upScaleStep = 1.1; var tempCanvas = document.createElement('canvas'); var tempContext =...
'use strict'; module.exports = RequestContext; var assert = require('assert'); var events = require('events'); var util = require('util'); var wait = require('wait.for'); var Fiber = require('fibers'); var metrics = require('metrics'); var pers = require('data/pers'); util.inherits(RequestContext, events.EventEmit...
function listDevices() { if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices) { webrtcdev.warn("enumerateDevices() not supported."); return; } //List cameras and microphones. navigator.mediaDevices.enumerateDevices() .then(function (devices) { ...
const Providers = require('../lib/providers'); const { Sensor, SensorNode, SensorSystem } = require('../lib/station'); const { Measures, FixedMeasure, MobileMeasure } = require('../lib/measure'); const { Measurand } = require('../lib/measurand'); const { request } = require('../lib/utils'); const lookup = { // i...
import {renderLyric,getLocalStorage,setLocalStorage} from '../util/utils' const initHistoryList = getLocalStorage('History'); const initFavoriteList = getLocalStorage('favorites'); const initState = { favs:initFavoriteList, list:[], curIndex : 0, playHistory:initHistoryList, nowList:[], }; const panelState = { s...
var crypto = require("crypto"); var fs = require("fs"); var path = require("path"); var exports = module.exports = { eachSync: eachSync, forEver: forEver, jsonToUrlQuery: jsonToUrlQuery, newId: newId, retryWithThrottling: retryWithThrottling, url: url, withFieldsChecked: withFieldsChecked, ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
const fs = require('fs'); const webdriver = require('selenium-webdriver'); // const chrome = require('selenium-webdriver/chrome'); const chromeCapabilities = webdriver.Capabilities.chrome(); const { spawn } = require('child_process'); import { app } from 'electron' // var options = new chrome.Options(); // var prefs =...
const indexLocation = "../view/index.html"; const navBarLocation = "../view/navbar.html"; const categoriesLocation = "../view/categories-products.html"; const caroselLocation = "../view/carousel.html"; const logInFormLocation = "../view/login-signin-forms.html"; const cartLocation = "../view/cart.html"; const bod...
"use strict" function typeSubstitute(typeName) { if (typeName !== undefined && typeName.toLowerCase() === "object") { return "{}" } return typeName } function literalParse(element) { if (element.type === "NullLiteral") { return "null" } else if (element.type === "UndefinedLiteral") { return "und...
import React,{useState,useEffect,useCallback,useRef,memo} from 'react'; import * as createAction from './action' import './index.css' // import combineReducers from './reducers' function bindActionCreateors(actionCreateors,dispatch){ let ret={} //循环绑定函数时候要用到let或者闭包 不然最后key为最后的值 for(let key in actionCreateor...
"use strict"; var __asyncValues = (this && this.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}...
/* Original Problem Statement - Maximum Average Subarray https://leetcode.com/contest/leetcode-weekly-contest-41/problems/maximum-average-subarray-i/ Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the maximum average v...
import React, { useState, useEffect } from 'react' import PropTypes from 'prop-types' import { Button, Row, Col, ListGroup, ListGroupItem, Table } from 'react-bootstrap' import ReactMarkdown from 'react-markdown' import gfm from 'remark-gfm' import remainingTime from '../../utils/remainingTime' import CustomHeader from...
const path = require('path') const fs = require('fs') const express = require('express') const helmet = require('helmet') const bodyParser = require('body-parser') const flash = require('connect-flash') const sessions = require('client-sessions') const nunjucks = require('nunjucks') const csurf = require('csurf') const...
var array = require('postgres-array') var arrayParser = require('./arrayParser'); var parseDate = require('postgres-date'); var parseInterval = require('postgres-interval'); var parseByteA = require('postgres-bytea'); function allowNull (fn) { return function nullAllowed (value) { if (value === null) return valu...
let queryText = ''; queryText += ` CREATE TABLE IF NOT EXISTS department ( department_id INT NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, description VARCHAR(1000), PRIMARY KEY (department_id) ) ENGINE=MyISAM; CREATE TABLE IF NOT EXISTS category ( category_id INT NOT NULL AUTO_INCREME...
import React, { PureComponent } from "react"; import Link from "gatsby-link"; import fire from "../../fire"; import { Route, Redirect } from "react-router-dom"; import { connect } from "react-redux"; import "whatwg-fetch"; import "../../layouts/fcss.css"; import "../../layouts/components.css"; import "../../layouts/a...
var request = require('../../utils/request').request; var attachAns = require('../../utils/util').attachAns; var WrongRecord = require('../../utils/wrong-record'); var pending = false, submitted = false; var index = 0, doneMax = 0, answer = [], chapter = {}; var app = getApp(); Page({ data: { problems: [], p...
'use strict' alert("Wlcome to Farhan Ayyash website"); var Username = 0; Username = check(Username,"Enter your name :"); //console.log(Username); var DoWanPlay = confirm(Username+", Do you want Play About Me guessing game ?"); var improve = ""; var turevalue = 0; var Myrate = 0 ; var Myage = 0; var Myhome = 0 ; va...
const { ipcRenderer } = window.require('electron') import React, { Component } from 'react'; import { connect } from 'react-redux' import _ from 'lodash' import * as actions from '../redux/actions' import { isEmpty } from 'lodash' // eslint-disable-next-line import style from './MainPage.css' class MainPage extends ...
const algosdk = require('algosdk'); // Retrieve the token, server and port values for your installation in the // algod.net and algod.token files within the data directory // UPDATE THESE VALUES // const token = "TOKEN"; // const server = "SERVER"; // const port = PORT; // hackathon // const token = "ef920e2e7e002...
const WynnCommand = require('../../lib/Structures/WynnCommand'); const { send } = require('@sapphire/plugin-editable-commands'); const { fetchT } = require('@sapphire/plugin-i18next'); const logger = require('../../utils/logger'); const game = require('../../config/game'); const emoji = require('../../config/emoji'); c...
const path = require('path'); const AllTags = require('./../scripts/types').AllTags; const manifest = require('./../.vuepress/public/pwa/manifest.json'); var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); var ImageminPlugin = require('imagemin-webpack-plugin').default; var imageminMozjpeg = ...
import React from 'react' import rehypeReact from "rehype-react" import {Link, graphql} from 'gatsby'; import Layout from "../components/layout"; import styled from 'styled-components' import Img from 'gatsby-image'; import PrevNext from '../components/prevnext'; import MetaTags from '../components/Metatags'; import Sh...
import * as PIXI from 'pixi.js' import { SCALE, updateSelectedUnit, selectedUnit, getOffset, gameState } from '../index' import {BoardContainer} from './board' import {handleAttack} from '../actions/attack' //Making texture from image files const rifleUnitGreen = PIXI.Texture.from('/images/unit_rifleman_usa....
const fs = require('fs'); const path = require('path'); const EventEmitter = require('events'); const assert = require('assert'); const sha256 = require('js-sha256'); var sodium = require('sodium-native'); class Store { constructor(opts) { if (!opts.key) { throw new Error('Encryption key must ...
// Message and bomb are decoded using GUt.ud during gameEntryPoint let MESSAGE = ['8J+nvfCfp7rwn5qq8J+UkfCflJLwn5eE77iP8J+Xke+4j/Cfk47wn5aK77iP8J+TmPCfk5zwn4+377iP8J+TgfCfkrDwn5OL8J+TiPCfkrM=']; let BOMB = ['8J+Sow==']; let MUSIC; let currentLetter = 0; let canvas = document.getElementById('canvas') || null; let can...
/* function bind(func, context) { return function() { console.log( context ); return func.apply(context, arguments); }; } function f(x) { var fact = 1; for (var i = 2; i <= x; i++) { fact *= i; } return fact; } var timers = {}; f = timingDecorator(f, 'myFunc'); console....
function limpa_formulario_cep_fatura() { //Limpa valores do formulário de cep. document.getElementById('endereco_fatura').value=(""); document.getElementById('bairro_fatura').value=(""); document.getElementById('cidade_fatura').value=(""); document.getElementById('estado_fatura').value=(""); } fu...
let Points = 0 let QuestAPoints = 0 const AnswerA = {"a":"<NAME>", "b":"Killua", "c":"Kilua", "d":"<NAME>", "e":"<NAME>"} document.querySelector("input#button").addEventListener("click", gerar_quiz) function gerar_quiz (){ let a = document.querySelector("#p1").value let NomeJogador = document.querySelec...
import React, { Component } from 'react'; import { forwardRef } from 'react'; import MaterialTable from 'material-table'; import DependentTable from '../DependentTable'; import {firestore, auth} from '../../firebase'; import AddBox from '@material-ui/icons/AddBox'; import ArrowUpward from '@material-ui/icons/ArrowUpw...
function Programation() { var table; this.init = function () { $('#hour').datetimepicker({ datepicker: false, format: 'H:i' }); $("#month_id").change(this.reload); $("#btnAddMessage").click(this.saveMessage) } this.add = function (id, day, year,...
/* SPDX-License-Identifier: Apache-2.0 */ import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { routerRedux } from 'dva/router'; import { Form, Input, Select, Button, Card, Icon, Tooltip, Row, Col } from 'antd'; import { injectIntl, intlShape, FormattedMessage} from 'react-intl'; im...
var APPKEY = '56a0a88c4407a3cd028ac2fe'; var TOPIC_REPORT = 'topic_report'; var ALIAS = 'lock_102030002'; function reset_map() { var map_height = $(window).height() - $('#div-map').offset().top - 48; // console.log('map height: ' + map_height); $('#div-map').height(map_height); map = new google.maps.M...
import React from 'react' import * as d3 from 'd3' const margin = { top: 20, right: 30, bottom: 20, left: 150 } const MareySchedule = ({ domElement, tripList, tripTable, stopTemplate }) => { console.log('========== MareySchedule BEGIN ==========') if (!(tripList && tripTable && stopTemplate)) { return <div>L...
import knex from '../knex'; import User from './User'; import Activity, { ActivityType } from './Activity'; // https://github.com/clux/decay/blob/master/decay.js /* function rankStatements(likes, date) { const decay = 45000; const order = Math.log(Math.max(Math.abs(likes), 1)) / Math.LN10; const secAge = (Date....
const { app, BrowserWindow } = require('electron') function createWindow() { // Create the browser window. win = new BrowserWindow({ width: 1242, //1366 height: 768, //768, webPreferences: { nodeIntegration: true, devTools: true } }) // a...
/** * @fileoverview Rule to disallow returning values from setters * @author <NAME> */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = require("./utils/a...
/* * @project: JINN * @version: 1.1 * @license: MIT (not for evil) * @copyright: <NAME> (Vtools) 2019-2021 [<EMAIL>] * Telegram: https://t.me/progr76 */ 'use strict'; global.JINN_MODULES.push({InitClass:InitClass, DoNode:DoNode, Name:"Stat"}); var StatKeys = {BlockTx:"BlockTx", TXSend:"TxSend", TTSend:"TtSend...
import BaseLfo from '../../core/BaseLfo'; import MovingAverage from './MovingAverage'; const min = Math.min; const max = Math.max; const definitions = { logInput: { type: 'boolean', default: false, metas: { kind: 'dyanmic' }, }, minInput: { type: 'float', default: 0.000000000001, metas: ...
var gulp = require("gulp"), rimraf = require("rimraf"), concat = require("gulp-concat"), cssmin = require("gulp-cssmin"), uglify = require("gulp-uglify"), insert = require('gulp-insert'), plumber = require('gulp-plumber'), del = require('del'), sass = require('gulp-sass'), pump = re...
$(document).ready(function() { var goodaddress = null; //call the function to load map on page load initMap(); // future option to expand search and use USPS address // verification API to confirm valid address on input/search // $('#searchbtn').on('click', function() { // var adr = null; // console.log...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import MeetingDataService from "../../../services/project_management/meeting.service.js"; import MeetingCategoryDataService from "../../../services/project_management/meetingcategory.service.js"; import Breadcrumbs from '@material-ui/cor...
Player = require('./Player'); Home = require('./Home'); Ressource = require('./Ressource'); const radius = 20; const radiusHome = 12; class GameManager { constructor(debug){ this.size = 100; this.tickPerSec = 10; this.ressources = []; this.players = {}; this.home; ...
"use strict"; 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.hasOwnPrope...
import {Utils} from "./Utils.js"; import {Header} from "./Header.js"; import {EcdsaVerifyKey} from "./EcdsaVerifyKey.js"; import {AesCm128HmacSha256EncryptionKey} from "./AesCm128HmacSha256EncryptionKey.js"; const MaxRachetAttemtps = 5; const ReplayWindow = 128; const KeyTimeout = 1000; export class Receiv...
import React,{ Component } from 'react' import { View, Text, Image, StyleSheet, Button, TouchableOpacity } from 'react-native' import { connect } from 'react-redux' import { getUserInfo } from '../../api/index' import NavigationService from '../../navigations/NavigationService' import getM...