text
stringlengths
3.22k
29.5k
import { createAction, handleActions } from 'redux-actions'; import { call, put, select, delay, } from 'redux-saga/effects'; import { getMyList, addDashboard, updateList, getSharedLists, shareTodoListToUser, disableTodoList, } from '../../api/dashboard'; import { updateTask, addTask, ...
import React, { useEffect, useState } from "react" import { updateCompany } from "../../models/Company" import { createNewContact } from "../../models/Contact" import { Modal, ModalOverlay, ModalContent, ModalBody, Box, Text, Input, Textarea, Button, Grid, GridItem, Avatar, AvatarBadge, VSt...
import SettingManager from "../manager/ns-manager.js"; import Vue from "./vue.js"; const NSApp = { "MODE": { "FeatureList": "FeatureList", "ProjectList": "ProjectList", "ArchiveList": "ArchiveList", "LangList": "LangList" }, "lang": { "ru": { "code": "ru", "caption": "Русский" }, "ua": { "cod...
import scrape from "./scrape"; import Filters from "../models/filter"; import Constant from "../../../../constant"; import urlUtil from "./urls"; import imageUtil from "./image"; import stringUtil from "./string"; import Thumb from "../models/thumb"; import { Category, Publisher, NewsItem, Content, NewsNode }...
"use strict" const path = require("path") const sharedContainer = require("../shared-container") const MicroTemplateService = require("../services/micro-template-service") const SourceCodeStore = require("../services/source-code-store") const ast = require("../ast/micro-template-nodes") const parseScript = require("./...
import React, { Component } from 'react' import ReactDOM from 'react-dom'; import { Button, Menu,Dropdown, Grid, Label, Icon as Tubiao } from 'semantic-ui-react' import { Link } from 'react-router-dom' import axios from 'axios' import GoogleMapReact from 'google-map-react'; import GoogleMap from 'google-map-react'; imp...
const _ = require('lodash'); const fs = require('fs'); const stream = require('stream'); const util = require('util'); const readline = require('linebyline'); const commandLineArgs = require('command-line-args'); const commandLineUsage = require('command-line-usage'); const optionDefinitions = [ {name: 'src', alias:...
const discord = require("discord.js"); const fs = require("fs"); const http = require("http"); const db = require("quick.db"); const moment = require("moment"); const express = require("express"); const Discord = require("discord.js") const fetch = require('node-fetch'); const app = express(); const client = new Discor...
const height= 500; const width = 500; let NOofSpots= 100; const ParticleMass=10; const pixelsPerMeter=10; const maxSpeed=3 const NOofPublicPlaces=1; let input let healthyspots=[]; let infectedspots=[]; let allspots=[]; let PublicPlace=[]; let a=0; let b=0; let slider let slider2 let slider3 let slider4 let q=0 fun...
$(function () { siblingsHandling(); var ajaxAccountDetailUrl = '/ajax/account/details/'; $('body').on("click", "#purchase_submit_button", function (evt) { evt.preventDefault(); var taxFlag = false; var cutomTitle = 'Are you sure to save the purchase?'; var cu...
"use strict"; const HID = require("node-hid"); const EventEmitter = require("events"); // Note: This is based on info from http://xkeys.com/PISupport/DeveloperHIDDataReports.php const VENDOR_ID = 1523; const PRODUCTS = { XK24: { identifier: "XK-24", productId: [1029,1028,1027,1249], columns: 4, rows: 6, ...
/* By <NAME> @ 2021/08/19 For Research Purposes only. */ var map; var pointCount = 0; var locations = []; var gridWidth = 500; // hex tile edge var bounds; var markers = []; // Places should be automatically generated in future version // using just north, south, east and west boundary cordinates. const P...
/** * Created by tbertonatti on 11/1/16. */ var MongoClient = require('mongodb').MongoClient; var databases = {}; var util = require('util'); var mongoConnection = process.env['MONGO_DB_CONN'] || "localhost:27017"; var performMongoDbRequest = function(databaseName, callback) { if (databases[databaseName]) { ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done)...
// ==UserScript== // @name MITx 6.002x Scrollable Textbook // @namespace nitrogenaudio // @description Provides efficient full-length scrolling of the MITx 6.002x textbook (unofficial). // @match http://6002x.mitx.mit.edu/book* // @match https://6002x.mitx.mit.edu/book* // @require https://ajax.googleapis.com/...
import { ajax } from "rxjs/ajax" import { map, catchError } from "rxjs/operators" import { getRelativeFilePath, getRootDirectory, parseSkylink, SkynetClient, genKeyPairFromSeed } from "skynet-js" import { of } from "rxjs" import prettyBytes from "pretty-bytes" import { getJSONfromIDB, setJSONinIDB, IDB_STORE_SKAP...
/* * JSON Validate * Copyright (c) 2014, <NAME> * MIT license * github.com/usingjsonschema/jsonvalidate/LICENSE.txt */ // Entry point, set up elements, populate example list $(function () { // set intercepter for parser errors in jsonlint jsonlint.parseError = jsonlint.lexer.parseError = parserError; ...
'use strict' /** This function performs several checks of the input data to ensure that the * current function is a valid persister for kind data. * @param args - a list of args for the persister function. The * function is only considered a persister when there is exactly one argument, other than config-related arg...
var info; var translations; // Load the Visualization API and the piechart package. google.load('visualization', '1', {'packages':['corechart','table','imagechart']}); var table1; function sortDict(unsortedObj) { var sortable = []; for (var key in unsortedObj) sortable.push([key, unsortedObj[key]]); var s...
import Drawer from "@material-ui/core/Drawer"; import List from "@material-ui/core/List"; import makeStyles from "@material-ui/core/styles/makeStyles"; import Typography from "@material-ui/core/Typography"; import clsx from "clsx"; import EmptyState from "Components/EmptyState"; import SidebarListItem from "Components/...
/** * San DevTool * Copyright 2017 Ecomfe. All rights reserved. * * @file San 事件注册。 */ import constants from '../common/constants'; import utils from '../common/utils'; import components from './components'; import stores from './stores'; // 获得 devtool 显示组件树所需要的组件的信息。 let getComponentTreeItemData = component => ...
var selection = {}; var drag = false; var imageManipulator = new Imagely(); var originalCroppedImage; var offset; var imageProportions = {}; async function setScreenshotUrl(url) { var canvas = document.getElementById("canvas"); toggleInstructions("selecting"); //document.getElementById('target').sr...
const CoinGecko = require('coingecko-api'); const CoinGeckoClient = new CoinGecko(); var fs = require('fs'); var shell = require('shelljs'); const ONE_MIN = 1000 * 60 const ONE_HOUR = ONE_MIN * 60 const ONE_DAY = ONE_HOUR * 24 const ONE_WEEK = ONE_DAY * 7 const ONE_MONTH = ONE_DAY * 30 const ONE_YEAR = ONE_D...
import { cloneDeep, throttle, debounce, pick, isObject, isArray, isUndefined, isNull, isString, trim } from 'lodash' /* eslint-disable */ const Utils = {} /** 参数说明: * 根据长度截取先使用字符串,超长部分追加… * str 对象字符串 * len 目标字节长度 * 返回值: 处理结果字符串 */ Utils.cutString = (str, len) => { if (str.length * 2 <...
import React from "react"; import Pokemon from "./Pokemon"; import "./App.css"; class Field extends React.Component { constructor(props) { super(props); this.state = { // userPokemon: { // name: "Charmander", // hp: 20, // speed: 3, // type: "fire", // moves: [ // { id: 1, name:...
/* This module implements a simple Telegram bot and command api which speaks via the HTTP-GET interface with the Telegram API. */ const axios = require("axios").default; const { findUpdate, insertUpdate, findLatestUpdate } = require("./store"); class TelegramBot { constructor(token) { this.token = token; } ...
'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 ("...
import styles from "./index.ass.css" import { define, html } from "hybrids" import { translations as tr } from "./Translations.bs.js" import * as QRCode from "./QRCode.bs.js" /* NB: stroke-width 0.4 (mm) is a visual approximation. Style-guide states 0.75pt which is 0.2635 or so, but looks way too thin comp...
import { onSensorData } from 'https://cdn.jsdelivr.net/npm/imu-tools@0.0.7/index.js' onSensorData(handleSensorData) let sensor = null let first = false let img let x = 0 let y = 350; let button let system; let waterOn = false; let w = 30 let h = 90 let prevx, prevy; let m12, b12, m13, b13, m24, b24, m34, b34; let ini...
// Required modules require('dotenv').config({path:'/home/pi/wx-ground-station/aws-s3/.env'}); var fs = require('fs'); var path = require('path'); var glob = require("glob"); var AWS = require('aws-sdk'); var uuid = require('uuid'); var Jimp = require('jimp'); var dateFormat = require('dateformat'); var discord = requ...
//================================================================ // RS_ChoicePosition.js // --------------------------------------------------------------- // The MIT License // Copyright (c) 2017 biud436 // --------------------------------------------------------------- // Free for commercial and non commercial use....
console.log('Ready!!') function validaForm(){ //campo select if($("#cartera").val() == ""){ alert("Seleccionar Cartera."); $("#cartera").focus(); return false; } if($("#inicio").val() == ""){ alert("Seleccionar fecha de Inicio."); $("#inicio").focus(); r...
import React, { Component } from 'react'; import { reduxForm, Field } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import _ from 'lodash'; import * as actions from '../../actions'; import Languages from '../constants/languages'; import Contractor from '../constants...
class Product { constructor(id, name, price, description, averageReviewRating, image) { this.id = id; this.name = name; this.price = price; this.description = description; this.averageReviewRating = averageReviewRating; this.image = image; } } let currentProduct =...
const fs = require('fs'); const path = require('path'); const {Menu, MenuItem, dialog} = require('electron').remote; const parse = require('./parser').parse; let store = (key, obj) => { localStorage.setItem(key, JSON.stringify(obj)); }; let find = (key) => { let str = localStorage.getItem(key); try { ...
/* MIT License Copyright (c) 2022 Portland Transport 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, publ...
function HexFlow() { var f = this; f.enabled = !1, f.delay = 192, f.s = -1, f.lh = 12, f.offset = 12, f.n = 384, f.p = 0, f.dump = document.getElementById("hex"), f.links = f.dump.getElementsByTagName("b"), f.hex = function() { f.dump.style.top = ((f.p - f.offset) * f.lh) + "pt" for (var e in f.lin...
import React from 'react' import Link from '../utils/temp-link' import utils from '../../js/utils' import lazy from 'lazy.js' import StickyHeader from '../layouts/StickyHeader' import YearSelector from '../selectors/YearSelector' import DataAndDocs from '../layouts/DataAndDocs' import GlossaryTerm from '../utils/glos...
/* eslint-disable no-undef */ import { Alert, Box, Button, Container, Stack, Typography, } from "@mui/material"; import { useEffect, useRef, useState } from "react"; import Webcam from "react-webcam"; import "./Stretch.css"; import { MAX_EYE_DISTANCE, PREDICTION_CONFIDENCE, STRETCH_TIME, } from "./utilities/co...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Table = exports.Model = void 0; var _helper = _interopRequireDefault(require("../helper")); var Mutations = _interopRequireWildcard(require("./mutations")); var Actions = _interopRequireWildcard(require("./actions")); var _facto...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
const Authentication = require('../authentication') const FileUpload = require('../widgets/fileupload') const Staff = require('../api/staff') const Froala = require('./froala') const Page = require('../api/page') const File = require('../api/file') const Fileinfo = require('../widgets/fileinfo') const Article = require...
/** * Copyright 2017 <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...
import React, { useState, useRef, useEffect } from 'react'; import ReactDOM from 'react-dom'; import WrapperSidenav from '../../components/wrapper-sidenav'; import WrapperTopbar from '../../components/wrapper-topbar'; import WrapperChatWindow from '../../components/wrapper-chat-window'; import EntityDrawer from '../../...
// Example is based on examples from: http://brm.io/matter-js/, https://github.com/shiffman/p5-matter // add also <NAME> credit let Engine = Matter.Engine; let Render = Matter.Render; let World = Matter.World; let Bodies = Matter.Bodies; let Body = Matter.Body; let Constraint = Matter.Constraint; let Mouse = Matter.Mo...
/** * Copyright 2017-present, chenghao. * All rights reserved. * * 电台详情 * Created by SEELE on 2017/10/19 * */ import React, { PureComponent } from 'react'; import { View, StyleSheet, SectionList, FlatList, ScrollView, Animated, Text, Image, findNodeHandle, TouchableOpacity } from 'react-native'; import { screen,...
/* * Copyright (c) 2021. All Rights Reserved * Created by <NAME> on 8/6/2021 */ import React, {Component} from 'react'; import './signup.css' import { Button, FormControl, FormHelperText, IconButton, Input, InputAdornment, InputLabel, LinearProgress, Paper, Typography } from...
import Konva from 'konva'; import EmojiHelpers from '@/utils/emoji-helpers'; const genericProperties = { moodTweenDuration: 0.3, selectorsTweenDuration: 0.45, delay: 0.3 }; // if stage too small calculate scale down of mood menu const scaleCalculator = function(konvaNodesSizesArray, stageWidth, stageHeigh...
import electron, {BrowserWindow, app as ElectronApp, Tray, Menu, nativeImage, globalShortcut, ipcMain, dialog} from 'electron'; import Lang from '../../lang'; import EVENT from './remote-events'; import Events from './events'; if (typeof DEBUG === 'undefined') { global.DEBUG = process.env.NODE_ENV === 'debug' || p...
var playlist = { items: [] }; var player; var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var videoNum = 0, forcePlayer = false, player; funct...
import Phaser from "phaser"; const UP = -1; const DOWN = 1; export default class DialogPlugin extends Phaser.Plugins.BasePlugin { constructor(pluginManager) { super(pluginManager); } run(opts) { if (!opts) { opts = { }; } this.currentScene = this.game.scene.sce...
import React from 'react'; import { Col, Badge, ButtonGroup, Button, Collapse } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTachometerAlt, faUserTie, faCalendarAlt, faEnvelope, faTasks, faCog, faEdit, faComments, faBriefcase, faBell, faBuilding, faCalendarWeek, faUser...
var s_date = windowvar.start_date; var e_date = windowvar.end_date; var harvest_table; // This must be a hyperlink $("#export_btn").on('click', function(event) { var res = harvest_table.rows().data(); convertToCSV(res).then(function(result){ let filename = $("#reservation").val(); exportCSVfil...
export const languageFallbackPriority = [ 'en', 'pt', ]; export const territoryFallbackPriority = { en: [ 'US', ], pt: [ 'BR', ], }; export const strings = { about_the_project: { en_US: 'About the project', pt_BR: 'Sobre o projeto', }, academic: { en_US: 'Academic experience', ...
const assertRevert = require('./helpers/assertRevert') const Authorizable = artifacts.require('./mocks/AuthorizableMock.sol') contract('Authorizable', accounts => { let authorizable let owner = accounts[0] let authorizedLevel1 = accounts[1] let authorizedLevel5 = accounts[2] let authorizedLevel64 = accoun...
var gui = require( '../../' ) // stand alone: replace with require( 'easy-web-app' ) var express = require( 'express' ) var log = require('npmlog'); log.info( __dirname ) // define to load /css-custom/custom.css from local folder gui.getExpress().use( '/css-custom', express.static( __dirname ) ) gui.getExpr...
import debugModule from "debug"; const debug = debugModule("debugger:data:reducers"); import { combineReducers } from "redux"; import { stableKeccak256 } from "../helpers"; import * as actions from "./actions"; import { slotAddress } from "truffle-decoder"; import { Conversion, Definition, EVM } from "truffle-decod...
// var base_urlx = "http://localhost/dapil/"; var base_urlx = window.location.origin + "/dapil/"; // alert(base_urlx); window.setTimeout("waktu()",1000); $.fn.dataTable.ext.search.push ( function (settings, data, dataIndex){ console.log("masuk dt"); if(settings.sTableId == 'table_dt'){ // console.log("...
/* globals localStorage */ import React, { createContext, useReducer, } from 'react'; import { navigate } from 'gatsby'; import { Hub } from '@aws-amplify/core'; import axios from 'axios'; import PropTypes from 'prop-types'; import * as R from 'ramda'; import { NotificationManager } from 'react-notifications'; impo...
// Set height and width for svg let svgWidth = 960; let svgHeight = 500; let margin = { top: 20, right: 40, bottom: 80, left: 100 }; // Set chart width and height let width = svgWidth - margin.left - margin.right; let height = svgHeight - margin.top - margin.bottom; // creating svg wrapper let svg = d3 .s...
"use strict"; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defi...
import React, { Component } from 'react'; import { View, StatusBar, } from 'react-native'; import Header from '../Header/Header'; import AlbumArt from '../AlbumArt/AlbumArt'; import TrackDetails from '../TrackDetails/TrackDetails'; import SeekBar from '../Slider/Slider'; import Controls from '../Controls/Controls';...
const BN = require('bn.js') const ext = require('./bn-extensions') const bitcoin = require('bitcoinjs-lib') const secp256k1 = require('secp256k1') const MAX_BIP125_RBF_SEQUENCE = 0xfffffffd const SYSCOIN_TX_VERSION_ALLOCATION_BURN_TO_SYSCOIN = 128 const SYSCOIN_TX_VERSION_SYSCOIN_BURN_TO_ALLOCATION = 129 const SYSCOIN_...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.RefactorVisitor = exports.IfRefactorVisitor = undefined; var _babelTypes = require('babel-types'); var _jsExtend = require('js-extend'); var _promisechain = require('./promisechain'); var _promisechain2 = _interopRequireDefault(...
/**************************************************************************** ** @license ** This demo file is part of yFiles for HTML 2.2. ** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28, ** 72070 Tuebingen, Germany. All rights reserved. ** ** yFiles demo files exhibit yFiles for HTML functionali...
// The MIT License // // Copyright (c) 2018 Google, Inc. // // 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, mo...
var imgLPD = ee.Image("users/projectgeffao/World/LPD_world_2001_2020_World"), imgMountains = ee.Image("users/projectgeffao/World/k1classes"), imgHansen = ee.Image("UMD/hansen/global_forest_change_2020_v1_8"), ftcPA = ee.FeatureCollection("users/projectgeffao/Ecuador/ProtectedAreas_SNAP_Ecuador"), imgNdv...
import React, { Component } from 'react'; import '../Styles/MainSite.css' import PhoneProperties from './PhoneProperties.jsx'; import Cart from './Cart.jsx'; import SellSection from './SellSection.jsx' import SecondSection from './SecondSection.jsx'; import Nav from './Nav.jsx'; import Footer from './Footer.jsx'; impo...
"use strict"; var __spreadArrays = (this && this.__spreadArrays) || function () { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a...
import Store from "store"; const API_ENV = process.env.VUE_APP_API; const localDev = "/api"; // const devApi = "https://mcwp.test.zhudb.com/backend"; const devApi = window.location.protocol + "//" + window.location.host + "/backend"; const preApi = window.location.protocol + "//" + window.location.host + "/backend...
const { name, version, author } = require('../package.json'); const moment = require('moment'); const { startCase } = require('lodash'); // Note: for any changes made here, please update the types in // "playground.d.ts" ("interface ExperimentationFlags {") const experimentationFlagsDefaults = { customFunctions: { ...
function initCache () { const store = [] // cache only first element, second is length to jump ahead for the parser const cache = function cache (value) { store.push(value[0]) return value } cache.get = (index) => { if (index >= store.length) { throw RangeError(`Can't resolve reference ${in...
const depositsHelper = require('./depositsHelper') const fs = require('fs') const contract = require('./contractHelper') const toTaskInfo = require('./util/toTaskInfo') const toSolutionInfo = require('./util/toSolutionInfo') const setupVM = require('./util/setupVM') const midpoint = require('./util/midpoint') const wai...
import { sortBy, cloneDeep } from 'lodash'; import { getIdFromGraphQLId } from '~/graphql_shared/utils'; import { ListType, MilestoneIDs } from './constants'; export function getMilestone() { return null; } export function updateListPosition(listObj) { const { listType } = listObj; let { position } = listObj; ...
BR.Map = { initMap: function() { var map, layersControl; BR.keys = BR.keys || {}; var maxZoom = 19; map = new L.Map('map', { zoomControl: false, // add it manually so that we can translate it worldCopyJump: true, minZoom: 6, maxZoom:...
function msgProcess(titulo){ Ext.MessageBox.show({ title: titulo, msg: 'Procesando, por favor espere...', progress:true, progressText: 'Procesando...', width:300, wait:true, waitConfig: {interval:200} }); } function setCriticidadRmc(a,b,id_rmc){Ext.Ajax...
//Exercicio 01- Subtração function subtrai() { var valor1, valor2; valor1 = document.getElementById("valor1").value; valor2 = document.getElementById("valor2").value; // nao se esqueca do parseFloat document.getElementById("resultado").innerHTML = "O resultado da subtração é: " + (parseFloat(valor...
/* HTML5 Basic Isometric Graphics Tech Demo isometricTest.js - Includes rendering, maps, and other important elements. See LICENSE.txt. = Includes mapIO.js = */ var Tile = function(img, imgX, imgY, imgW, imgH) { var tile = this; tile.img = img; tile.imgX = imgX; tile.imgY = imgY; tile.imgW = imgW; ...
/* eslint-disable no-unused-vars, no-param-reassign */ import { define, props } from 'skatejs'; import { h } from 'preact'; import { store } from '../../store.js'; // connect to redux import Fuse from 'fuse.js'; import ReactHtmlParser from 'react-html-parser'; import classNames from 'classnames'; import Mousetrap from...
/*! * OS.js - JavaScript Cloud/Web Desktop Platform * * Copyright (c) 2011-2017, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code mus...
/** * flowground :- Telekom iPaaS / otrs-connector * Copyright © 2020, Deutsche Telekom AG * contact: https://flowground.net/en/support-and-contact * * All files of this connector are licensed under the Apache 2.0 License. For details * see the file LICENSE on the top-level directory. */ const messages = require...
/* eslint-disable camelcase */ import MavenConfiguration from '@/components/MavenConfiguration'; import globalUtil from '@/utils/global'; import roleUtil from '@/utils/role'; import { Button, Form, Input, Radio, Select } from 'antd'; import { connect } from 'dva'; import React, { PureComponent } from 'react'; import Ja...
import template from './sw-product-list.html.twig'; import './sw-product-list.scss'; const { Component, Mixin } = Shopware; const { Criteria } = Shopware.Data; Component.register('sw-product-list', { template, inject: [ 'feature', 'repositoryFactory', 'numberRangeService', 'ac...
'use strict' const BB = require('bluebird') const binLink = require('bin-links') const buildLogicalTree = require('npm-logical-tree') const config = require('./config.js') const ensurePackage = require('./ensure-package.js') const fs = require('graceful-fs') const getPrefix = require('find-npm-prefix') const glob = B...
const discord = require('discord.js'); const fetch = require("node-fetch"); const atob = require('atob'); const emoji = require('../../emoji.json') module.exports = { name: "trivia", aliases: ["quiz"], usage: "!trivia", description: "Trivia Quiz", run: async (client, message, args) => { class Game { ...
/* * @package jsDAV * @subpackage DAV * @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org> * @author <NAME> <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ var jsDAV = require("./../../jsdav"), jsDAV_Handler ...
/* * moleculer * Copyright (c) 2018 MoleculerJS (https://github.com/moleculerjs/moleculer) * MIT Licensed */ "use strict"; const Promise = require("bluebird"); const Transporter = require("./base"); const { isPromise } = require("../utils"); const { PACKET_REQUEST, PACKET_RESPONSE, PACKET_UNKNOW, PACKET_EV...
/* * Copyright 1999-2018 Alibaba Group Holding 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 o...
const csv = require('csv-parser'); const fs = require('fs'); const election = process.argv[2]; try{ fs.unlinkSync(`./cpr_${election}.db`); } catch(e) {} const db = require('better-sqlite3')(`./cpr_${election}.db`); let dbCreate = function() { let create = ` CREATE TABLE "candidate" ( "...
// ==UserScript== // @name GM Last.fm Scrobbler for Bandcamp // @namespace <NAME> // @description Last.fm scrobbler for Bandcamp, based on GM Scrobbler for Pakartot.lt script // @include *.bandcamp.com/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js // @require https://cdnjs....
/* Copyright(c) 2017-2020 AT&T Intellectual Property. All rights reserved. Copyright(c) 2020 Nokia. 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.or...
/** * @author: @AngularClass */ var webpack = require('webpack'); var helpers = require('./helpers'); /** * Webpack Plugins */ var CopyWebpackPlugin = require('copy-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlu...
/* * The MIT License (MIT) * * Copyright (c) 2018 Regents of the University of California * * 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 limit...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import { updatePlayerScore } from '../actions/playerActions' import Table from './Table' import BetForm from './BetForm' class Play extends Component { constructor(props) { supe...
'use strict'; const hljs = require('../../build/highlight.js'); const { BFS, parseRegex, regexFor } = require('./lib/util.js'); const { visitRegExpAST } = require('regexpp'); const { JS, Words, NFA, CharSet } = require('refa'); const { firstOf, underAStar, isFirstMatch, isAlwaysZeroWidth} = require('./lib/analysis.js'...
'use strict'; var damping = 0.7; var kSpeed = 3.0; var minDistFactor = 2.5; var nParticles = 2000; var catSpeed = 2; var nFrames = 6; var imageWidth = 200; var imageHeight = 150; var width = 600; var height = 450; var imageScale = width / imageWidth; var cats = []; var particles = []; var reference = void 0; var ...
google.charts.load('current', {'packages': ['table']}); google.charts.setOnLoadCallback(doSetup); let _cache = null; async function fetchData() { if (_cache) { return _cache; } let req = await fetch('/api/v1/stats/endpoint_hits', {credentials: 'include'}); let result = await req.json(); _cache = result; ...
/** * Module dependencies. */ import linkTemplate from './link.jade'; import closest from 'component-closest'; import confirm from 'democracyos-confirmation'; import Datepicker from 'democracyos-datepicker'; import FormView from '../form-view/form-view.js'; import debug from 'debug'; import o from 'component-dom'; i...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../common/common.js'; import * as SDK from '../sdk/sdk.js'; // eslint-disable-line no-unused-vars import {RecordType} from './T...
// //Width and height // var w = 500; // var h = 500; // //Create SVG element // var svg = d3.select("#chart") // .append("svg") // .attr("width", w) // .attr("height", h); //da...