text stringlengths 3.07k 16k |
|---|
const Recipe = require('./index');
const decorateRecipes = require('../server/helpers/decorateRecipes');
module.exports.getAllRecipes = (cb) => {
Recipe.find({})
.exec((err, result) => {
const formatted = result.map((recipe) => ({
recipeId: recipe.recipeId,
favoriteCount: recipe.favoriteCou... |
import React, { useContext, useState } from 'react'
import { hot } from 'react-hot-loader'
import { Row, Col, Button } from 'reactstrap'
import FadeIn from 'react-fade-in'
import { QuoteStore } from '../App'
import Spritesheet from 'react-responsive-spritesheet'
import { Slider, Select, Alert, Popover } from 'antd'
imp... |
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySy... |
/*eslint-env node, es6 */
/*eslint-disable no-process-exit */
"use strict";
// core modules
const http = require("http");
const url = require("url");
// local modules
const test = require("tape");
const url_path = "/template/graph/cpu";
const id = Date.now().toString();
function makeValidRequest() {
return {
... |
import { Imogene as $_ } from '../Imogene/Imogene';
import { MDCRipple } from '@material/ripple';
// Homepage item can be a super simple, easy thing! :D
export class DrockHomepageItem extends HTMLElement {
constructor() {
super();
}
static get observedAttributes() {
return ['icon', 'title'... |
import React, { useState, useRef } from 'react';
import propTypes from 'prop-types';
import { Badge, Checkbox, Menu, MenuGroup, MenuItem, MenuList, Select, Split, SplitItem } from '@patternfly/react-core';
import { intl } from '../../../../Utilities/IntlProvider';
import messages from '../../../../Messages';
import axi... |
function _jj(a){
return ga('#submit_search').find(a);
}
// build search query
function _filter(mode){
var _s_query = {},
_a_filter_btn = ga('#trigger_filter_query'),
_sf_gender = _jj('[name="gender"]'),
_sf_fromage = _jj('[name="fromage"]'),
_sg_toage = _jj('[name="toage"]'),
_sg_allc = _jj('[name="allc"... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.makeSureMaterialsTempPathExist = makeSureMaterialsTempPathExist;
exports.downloadFromGit = downloadFromGit;
exports.isGitUrl = isGitUrl;
exports.parseGitUrl = parseGitUrl;
exports.getParsedData = getParsedData;
var _path = require(... |
import React, { useEffect, useState } from 'react';
import {
AppBar,
Typography,
Toolbar,
Container,
Card,
CardContent,
Grid,
Box,
Avatar,
Button,
colors,
TextField,
FormControl,
Input,
InputLabel,
MenuItem,
Select,
makeStyles,
LinearProgress,
Dialog,
Dialo... |
/**
*
* FieldMapping
*
*/
import React, { PropTypes } from 'react';
import {
Row,
Col,
Form,
Select,
Button,
Input,
DatePicker,
message,
} from 'antd';
import styled from 'styled-components';
const FormItem = Form.Item;
const Option = Select.Option;
const Wrapper = styled.div`
.table-header {
... |
// Performance note `var` is about 20% faster than `const` for these on Node v16!
var N = 624;
var N_MINUS_1 = 623;
var M = 397;
var M_MINUS_1 = 396;
var DIFF = N - M;
var MATRIX_A = 0x9908b0df;
var UPPER_MASK = 0x80000000;
var LOWER_MASK = 0x7fffffff;
function twist(state) {
var bits, i;
// first 624-397=227 wo... |
// dealing with window resize and orientation changes
const adjustWindow = () => {
// create a temporary canvas to store current art
const tempCanvas = document.createElement('canvas');
const tempContext = tempCanvas.getContext('2d');
tempCanvas.width = viewportWidth;
tempCanvas.height = viewportHeight;
tem... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// 一些测试常量
const STRING_LIST = ["pillow No Smoking", "toothpaste Parking", "dance floor", "toothbrush No Flash", "toothpick Entrance", "playground", "Exit", "runway", "television Fire Alarm", "traffic", "lights", "crossroads", "supermarket", "p... |
/* (c) Copyright 2018 <NAME> */
import { dirname, join } from 'path';
import { default as doGlob } from 'fast-glob';
import { promisify } from 'util';
import {
readdir as doReadDirectory,
readFile as doReadFile,
writeFile as doWriteFile,
} from 'fs';
import { ResourceNotFound } from '@grr/err';
const { create, ... |
const IconsData = {
ClickDetector: "TreeViewIcons/ClickDetector.png",
Environment: "TreeViewIcons/Environment.png",
Game: "TreeViewIcons/Game.png",
Hidden: "TreeViewIcons/Hidden.png",
Lighting: "TreeViewIcons/Lighting.png",
LocalScript: "TreeViewIcons/LocalScript.png",
Model: "TreeViewIcons/Model.png",
... |
function init(){
//插入up主“默认三连”按键
userFollowButton();
// 从存储中读取数据
chrome.storage.local.get('currentProfileName', function(value) {
var currentProfileName = JSON.stringify(value);
if(currentProfileName == "{}")
{
currentProfileName = "js-like";
}
else
{
currentProfileName = value['currentProfileName... |
import React, { Component } from "react";
import ItemManagerContract from "./contracts/ItemManager.json";
import ItemContract from "./contracts/Item.json";
import ListItem from "./components/ListItem";
import getWeb3 from "./getWeb3";
import Swal from "sweetalert2";
import "./App.css";
class App extends Component {
... |
"use strict";
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] = b[p]; };
return function (d, b)... |
const {
GraphQLBoolean,
GraphQLInt,
GraphQLID,
GraphQLString,
GraphQLObjectType,
GraphQLList,
GraphQLNonNull,
GraphQLSchema
} = require('graphql')
const https = require('https')
const baseUrl = 'https://ckan0.cf.opendata.inter.prod-toronto.ca'
const apiPath = '/api/3/action'
const apiUrl = baseUrl + ap... |
/* eslint-disable jsx-a11y/anchor-is-valid */
/* eslint-disable no-nested-ternary */
import React, { useState, useEffect } from 'react';
import { createPopper } from '@popperjs/core';
import useTranslation from 'next-translate/useTranslation';
import Link from 'next-translate/Link';
import styles from '../../styles/Li... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import TextInput from 'field/input/TextInput';
import CheckboxInput from 'field/input/CheckboxInput';
import { getDistributionJob } from 'store/actions/distributionConfigs';
import BaseJobConfiguration ... |
const blogsRouter = require('express').Router()
const Blog = require('../models/blog')
const jwt = require('jsonwebtoken')
const User = require('../models/user')
const Comment = require('../models/comment')
blogsRouter.get('/', async (request, response) => {
const blogs = await Blog.find({}).populate('user', {userna... |
'use strict';
// get all pages and construct a json file for the search index
import gulp from 'gulp';
import plugins from 'gulp-load-plugins';
import _ from 'lodash';
import fs from 'fs';
import yaml from 'js-yaml';
import async from 'async';
import through from 't... |
import React, { Component } from 'react'
import Loader from 'components-folder/Loader'
import { Close } from 'components-folder/Icon'
import PhotoSlider from './PhotoSlider'
import PhotoCropping from './PhotoCropping'
import { connect } from 'react-redux'
import { uploadProfilePhoto, updateProfilePhoto, getEmployee, se... |
import React , {Component} from 'react';
import { View, Text, ScrollView, Dimensions, TouchableOpacity } from 'react-native';
const isCloseToBottom = ({layoutMeasurement, contentOffset, contentSize}) => {
const paddingToBottom = 20;
return layoutMeasurement.height + contentOffset.y >=
contentSize.height... |
/**
* Cassandra doesn't do joins, so we use a cache for GETs.
*
* This configuration simply looks for a 'redis' config key, if it exists it will use it as a cache in front
* of most of the elements that are retrieved in the news feed.
*/
const TWENTY_FOUR_HOURS = 24 * 3600;
const redis = require('../../redis');
co... |
import React, { useEffect, useState } from 'react'
import {Route, Redirect} from 'react-router-dom'
import styled from 'styled-components'
import { connect } from 'react-redux';
import {ExboxCont} from '../StyledComponent'
import RunSets from './RunSets';
import {RunHeader,RunCardCont, RunExerciseNameCont, RunExerciseN... |
import React, { Component } from "react";
import Web3 from "web3";
import { withStyles } from "@material-ui/core";
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableFooter from '@material-ui/core/TableFoote... |
'use strict';
const fs = require('fs');
const {TonClient} = require('@tonclient/core');
const {libNode} = require('@tonclient/lib-node');
const walletAbi = require('./contracts/SafeMultisigWallet.abi.json');
const depoolAbi = require('./contracts/DePool.abi.json');
const keysCreate = require(process.argv[2]);
const ke... |
var canvas = document.body.appendChild(document.createElement('canvas'))
var gl = require('gl-context')(canvas, render)
var glBuffer = require('gl-buffer')
var mat4 = require('gl-mat4')
var glslify = require('glslify')
var glVAO = require('gl-vao')
var LINE_PRECISION = 400
var line = new Float32Array(... |
/* WATS 3020 Browser Game project */
/* Build a tic tac toe game for two players. */
let game;
let validMove = null;
class Player{
constructor(token){
this.token = token;
}
}
// Tic Tac Toe Game Class
class TicTacToe {
constructor(){
this.player1 = new Player('cat');
this.player2 = new Player('dog'... |
// MY JS
//
//
// /**
// * First we will load all of this project's JavaScript dependencies which
// * includes Vue and other libraries. It is a great starting point when
// * building robust, powerful web applications using Vue and Laravel.
// */
//
// require('./bootstrap');
//
// window.Vue = require('vue');
//
... |
import React from 'react'
import {connect} from 'react-redux'
import {Link, NavLink} from 'react-router-dom'
import {push} from 'react-router-redux'
import ReactMarkdown from 'react-markdown'
import Moment from 'moment'
import {getEvents} from '../actions.js'
import {
showEditLink,
showCreateLink,
showBook... |
'use strict'
const express = require('express')
const morgan = require('morgan')
const axios = require('axios')
const app = express()
const port = process.env.NODE_PORT || 3000
const EJS = require('ejs')
const Telegraf = require('telegraf')
const TelegrafExtra = require('telegraf/extra')
const TELEGRAM_BOT_TOKEN =... |
const path = require('path');
const fs = require('fs');
const http = require('http');
const os = require('os');
const serveStatic = require('serve-static');
const finalhandler = require('finalhandler');
const qrcode = require('qrcode-terminal');
const mitm = require('http-mitm-proxy');
const ora = require('ora');
// e... |
// выполняется когда документ полностью
// загрузился
$(document).ready(function () {
var navbarTogglerIcon = '#nticon';
var clsicon = '#clsicon';
$(navbarTogglerIcon).on('click', function () {
$(navbarTogglerIcon).css('display', 'none');
$(clsicon).css('display', 'block');
});
$(clsicon).on('click', functi... |
const ORMarketLib = artifacts.require('ORMarketLib')
const {
prepareContracts, createMarket, moveToActive,setDeployer,
getOracleMock,
} = require('./utils/market-proper-collateral.js')
const { toBN } = web3.utils
var BigNumber = require('bignumber.js')
contract('OR: tests for the rewards for the liquidity provide... |
'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;... |
"use strict";
(function frontEndSetUp() {
// Background
(function setUpBackground() {
let background = document.querySelector('.background--image');
if (background) {
function randInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
... |
import React, { Component } from 'react';
import * as mathjs from 'mathjs';
const math = mathjs.create(mathjs.all)
class falseposition extends Component {
constructor(props) {
super(props);
this.FPosition = this.FPosition.bind(this);
this.findxm = this.findxm.bind(this);
this.func... |
var web3ProviderURL = "https://rinkeby.infura.io/v3/d23a14816f56400b851a0fbf812e998e";
App = {
web3Provider: null,
contracts: {},
account: '0x0',
loading: false,
website: null,
website_name: null
}
function init() {
console.log("extension started");
initWeb3();
}
function initWeb3() {
... |
/*
credit to : https://github.com/AdityaTD/PenguBot/master
for following code.
*/
const { RichEmbed } = require("discord.js");
const { Canvas } = require("canvas-constructor");
const { DRAK_SKY, GOOGLE_KEY } = process.env;
const link = "https://raw.githubusercontent.com/AdityaTD/PenguBot/master";
module.exports.run =... |
var Vue = require("vue");
var VeeValidate = require("vee-validate");
var VueResource = require("vue-resource");
var veeValidateConfig = {
errorBagName: 'errors', // change if property conflicts.
fieldsBagName: 'fields',
delay: 0,
locale: 'en',
dictionary: null,
strict: true,
enableAutoClas... |
// For more info, see documentation
// open a single window
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var button = Ti.UI.createButtonBar({
labels : ["Generate", "Generate from JSON"],
font : {
fontSize : 18
},
top: 20,
left: 20,
right: 20,
height: 40
});
win.add(button);
button.addEventLi... |
'use strict';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["thr... |
import controller from '../../lib/controller';
import i18n from '../../lib/i18n';
import Push from 'push.js';
import React, {PureComponent} from 'react';
import semver from 'semver';
import {without} from 'lodash';
import api from '../../api';
import pkg from '../../../../package.json';
import {InfoBar} from '../../... |
'use strict';
var userX = 0;
var userY = 0;
var permitMovement = false;
var listItems = document.querySelectorAll('.list-item');
// var listItemsArray = [null, null, null, null, null, null];
var listItemsArray = Array(numInputs).fill(null);
var listSpots = document.querySelectorAll('.list-spot');
listItems.forEach(fu... |
/* global window */
import applyNativeMethods from '../../modules/applyNativeMethods';
import ImageResizeMode from './ImageResizeMode';
import ImageLoader from '../../modules/ImageLoader';
import ImageStylePropTypes from './ImageStylePropTypes';
import requestAnimationFrame from 'fbjs/lib/requestAnimationFrame';
import... |
import React from "react";
import Sketch from "react-p5";
const Sketch13D = p5 => {
let MAGNITUDE = 10000;
let _height = window.innerHeight * 3/4;
let _width = window.innerWidth
let GRID_X = 50; //grid amount X
let GRID_Y = 50;
let GRID_W;
let GRID_H;
let SPEED = 20;
let MOTION = 0... |
import _ from 'lodash';
import bigInt from 'big-integer';
import { performance } from 'perf_hooks';
const PRECISION_FACTOR = 10;
const EXTRA_CHANCE_FROM_95_MASTERY = 0.25;
const CHANCE_FOR_ANCIENT_RING = 1 / 6722;
const HOUR_IN_SECONDS = 60 * 60;
const DAY_IN_SECONDS = HOUR_IN_SECONDS * 24;
const WEEK_IN_SECO... |
/**
* Copyright (C) 2014-2015 Regents of the University of California.
* @author: <NAME> <<EMAIL>>
* From ndn-cxx security by <NAME> <<EMAIL>>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Softwar... |
///////////////////////////////////////////////////////////////////////////////
//
// sprites.js
//
// a system of sorted sprites that can be linked to a transform;
// the basic graphical building block of chitin.
//
///////////////////////////////////////////////////////////////////////////////
function Sprite(args... |
/**
* Copyright 2016 Facebook, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that integrat... |
window.onload = function() {
scrollTop();
countTime();
banner();
}
//滚动透明
function scrollTop() {
var header = document.querySelector('.header'),
navscrollTop = document.querySelector('.nav').offsetTop;
//console.log(navscrollTop);
window.onscroll = function () {
var scrollTop=0,
alpha;
if(document... |
'use strict';
const imgsName = [
'bag.jpg',
'banana.jpg',
'bathroom.jpg',
'boots.jpg',
'breakfast.jpg',
'bubblegum.jpg',
'chair.jpg',
'cthulhu.jpg',
'dog-duck.jpg',
'dragon.jpg',
'pen.jpg',
'pet-sweep.jpg',
'scissors.jpg',
'shark.jpg',
'tauntaun.jpg',
'uni... |
import React from 'react';
import PropTypes from 'prop-types';
import isUrl from 'is-url';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import Dialo... |
/**
* @file
* All custom overrides behaviors for the agility summit.
*/
/**
* Parse a YouTube URL and get its ID.
*
* @param url
* @returns {string[] | string}
*/
function youTubeGetID(url) {
var ID = '';
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
if(url[2] !== undefi... |
'use strict'
const https = require('https')
const pkg = require('../../package.json')
const ApiError = require('./ApiError')
const casters = require('./Caster')
const querystring = require('querystring')
const apiErrors = require('./api_errors')
const networkErrors = require('./network_errors')
const utils = require('... |
function fire(event) {
var data = Array.prototype.slice.call(arguments, 1);
data = JSON.parse(JSON.stringify(data));
postMessage({
jsonrpc: '2.0',
method: 'fire',
params: {
event: event,
data: data
}
});
}
var runner = require('./browser-core');
self.onmessage = function (e) {
va... |
// ================================================================================
// GLOBALS
// ================================================================================
let capture;
let system;
let _size = 5;
let _speed = 2;
let _origin_spread = 1;
let _birthrate = 1
let _decayRate = 0.001;
let last = 0;... |
import React, { useState, useRef } from 'react';
import { useScrollIntoView } from '@mantine/hooks';
import { SelectScrollArea } from '../../Select/SelectScrollArea/SelectScrollArea.js';
import { Divider } from '../../Divider/Divider.js';
import useStyles from './RenderList.styles.js';
import { groupOptions } from '../... |
'use strict';
const AWS = require('aws-sdk');
const fs = require('fs');
const path = require('path');
const isGlob = require('is-glob');
const globToRegExp = require('glob-to-regexp');
const Executor = require('@runnerty/module-core').Executor;
class s3Executor extends Executor {
constructor(process) {
super(p... |
import React, { Component } from 'react';
import { Radio, Table } from 'antd';
import { connect } from 'dva';
import { drawerDelayFun } from '@utils/helper';
import OrderTime from '@components/OrderTime';
import TextOverFlow from '@components/TextOverFlow';
import DefineDot from '@components/DefineDot';
import EpIcon f... |
//Declaring global variables
var stationaryToppings = ["Pepperoni", "Italian Sausage", "Canadian Bacon", "Salami", "Beef", "Chicken", "Olive", "Onion", "Green Pepper", "Mushroom", "Tomato", "Pineapple"];
var specialties = ["Cheese", "Humdinger", "49er", "Usual", "Hawaiian", "Pepsausage"];
var specialtyToppings = [[],["... |
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const TerserJSPlugin = require("terser-webpack-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = requi... |
import React, { Component } from 'react';
import { connect } from 'dva';
import {
Form,
Card,
Row,
Col,
Input,
Button,
InputNumber,
Divider,
Icon,
} from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import StandardTable from '../../components/StandardTable';
import StandardF... |
const Simbolo = require("../InterpreteXML/TablaSimbolo/Simbolo");
var scriptXML = require("./scriptXML");
document.getElementById("file").addEventListener("change", add, false);
document
.getElementById("openBrowser")
.addEventListener("click", openBrowser, false);
document.getElementById("Download").addEve... |
import { createGlobalStyle } from "styled-components"
const GlobalStyle = createGlobalStyle`
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: ${(props) => props.theme.fluidType(0)};
* { box-sizing: border-box; }
}
body {
margin: 0;
//... |
var msgJson="";
function sendNewMsg(){
$('#new_msg').html('<div data-role="content" id="content">\
<div id="profile"> \
</div>\
<input type="text" placeholder="Friend\'s name" id="friend_name" onkeyup="lookup(this.value);" onblur="fill();">\
<table>\
<tr><td><input type="button" value="Search" data-icon="search" id="... |
/////////////////////////////
// all times in seconds
var POLLER_INTERVAL = 24;
var REQUEST_TIMEOUT = 8;
/////////////////////////////
function MonitorPortFactory(elementName, extra) {
var monitor = new Element(elementName);
monitor.errorCount = 0;
monitor.lastState = "ok";
if(localStorage[extra.name] != undef... |
/**
* @license
* 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... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var videojs = _interopDefault(require('video.js'));
var VimeoPlayer = _interopDefault(require('@vimeo/player'));
let cssInjected = false;
// Since the iframe can't be touched using Vimeo'... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _xeUtils = _interopRequireDefault(require("xe-utils/methods/xe-utils"));
var _tools = require("../../tools");
var _vXETable = require("../../v-x-e-table");
function _interopRequireDefault(obj) { return obj ... |
const React = require('react');
const orwell = require('orwell');
const either = require('react-either');
const once = require('react-prop-once');
const minitrue = require('minitrue');
const Immutable = require('immutable');
const co = require('co');
const {Probe} = minitrue;
const {flow, stateless} = require('store/... |
// ag-grid-react v11.0.0
"use strict";
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] = b[p]; };
... |
/* -----------------------------------------------------------------------------
* @copyright (C) 2017, Alert Logic, Inc
* @doc
*
* Lambda function for collecting Amazon CloudWatch events and ingesting them
* into Alert Logic backend.
*
* @end
* ------------------------------------------------------------------... |
// view the entire HTML document
console.log(document);
// find an <h1> element
const heading = document.querySelector("h1");
console.log(heading);
// find an element with the class "value"
const elem01 = document.querySelector(".value");
console.log(elem01);
// find a <button>
const elem02 = document.querySelector(... |
import template from './sw-dashboard-index.html.twig';
import './sw-dashboard-index.scss';
const { Component } = Shopware;
const { Criteria } = Shopware.Data;
Component.register('sw-dashboard-index', {
template,
inject: ['repositoryFactory', 'stateStyleDataProviderService'],
metaInfo() {
return ... |
const BASE_URL = "https://covid.yapie.me";
const DROPDOWN_CONTENT = document.getElementById("drop-content");
const DROPDOWN = document.getElementById("drop");
const LOCATION = document.getElementById("location");
const TABLE_HEAD = document.getElementById("table-head");
const TABLE_BODY = document.getElementById("table... |
/**
* Nedge
* A simple JavaScript animation for enhancing empty spaces on websites.
*
* Nedge is designed to fill empty spaces on webpages to make it appear a bit
* more interesting. It features a network-graph style animation.
*
* @author <NAME>
* @date 3 July 2017
*/
// Constants
INVERSE_NODE_DENSITY = 1000... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v20.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Broad Institute
*
* 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 u... |
// Copyright 2006 The Closure Library 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 requ... |
import React, { useEffect, useState } from "react";
import { useHistory } from "react-router";
import axios from "axios";
import CollabCard from "./CollabCard";
import Spinner from "../Spinner";
import NewCollab from "./NewCollab";
import { SidebarH } from "../../App";
import {BsCaretLeft, BsCaretRight} from "react-ico... |
"use strict"
const sp = require("../utils/sp")
class Player {
static handleSendPosition(data, penguin) {
const x = parseInt(data[4]),
y = parseInt(data[5])
if (isNaN(x) || isNaN(y)) return penguin.disconnect()
penguin.x = x
penguin.y = y
if (penguin.coinDig !== 0) penguin.coinDig = 0
penguin.room.... |
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const Minimist = require('minimist');
const TurndownService = require('turndown');
function serialize(list) {
let output = [];
for (let i = 0; i < list.length; i++) {
output.push(`${i+1}) ${list[i]}`);
}
return output.... |
/*
::: Just add your clearForces() and velocities to it to stop the body from moving on from the new position
*/
import * as THREE from "../../lib/three/build/three.module.js";
import Stats from '../../lib/three/examples/jsm/libs/stats.module.js';
import { TrackballControls } from '../../lib/three/examples/jsm/contr... |
/*
* Copyright (c) 2002-2017 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... |
const fs = require('fs');
const path = require('path');
const morgan = require('morgan');
const http = require('http');
const https = require('https');
const socketIO = require('socket.io');
const paths = require('./paths');
const logger = require('./runtime/logger');
const FUXA = require("./fuxa.js");
const expres... |
/**
* @author <NAME>
* @copyright 2017 <NAME>. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
/*
This script updates the header of `docs/rules/*.md` from rule's meta data.
For example:
```md
# rule description (vue/rule-name)
- :gear: This rule is included in `"plugin... |
var pagina = 0;
var pronostico = {
campeon:'',
subcampeon:'',
tercero:'',
cuarto:''
};
var codigo_FB = '<!-- Facebook Conversion Code for Registros Polla 2015 --><script>(function(){var _fbq=window._fbq || (window._fbq=[]);if (!_fbq.loaded) {var fbds = document.createElement("script");fbds.async = true;fbds.src = "... |
const fs = require('fs')
const path = require('path')
const pump = require('pump')
const querystring = require('querystring')
const LocalMessageDuplexStream = require('post-message-stream')
const PongStream = require('ping-pong-stream/pong')
const ObjectMultiplex = require('obj-multiplex')
const extension = require('ex... |
const superagent = require('superagent');
const constructors = require('./constructors');
const placeJsonData = require('../places.json');
const recommend = require('../data/recomend.json');
let globalArray = [];
const homePage = (req, res) => {
// res.render('pages/index', { data: 'working' });
let SQL = `SELECT ... |
/*
* This file is part of the xPack distribution
* (http://xpack.github.io).
* Copyright (c) 2017 <NAME>.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, in... |
import React, { useState, useEffect, Fragment } from 'react'
import './index.scss'
import { Form, Input, Modal, message } from 'antd'
import { connect } from 'react-redux'
import { handleUrlSplicing } from '../../utils/utils'
import emitter from '../../utils/event'
import {
toggleRenameModal,
toggleAddSiteModal... |
$(document).ready(function () {
setupLoginForm();
responseHandler();
});
var setupLoginForm = function() {
var loginBtn = $('#loginBtn');
var isValidEmailAddress = function(emailAddress) {
var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|... |
function getRootPath(){
//获取当前网址,如: http://localhost:8083/proj/meun.jsp
var curWwwPath = window.document.location.href;
//获取主机地址之后的目录,如: proj/meun.jsp
var pathName = window.document.location.pathname;
var pos = curWwwPath.indexOf(pathName);
//获取主机地址,如: http://localhost:8083
var localhostPath = curWwwPath.substri... |
// this class should be used to update team documents in the database
'use strict';
const ModelUpdater = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/util/restful/model_updater');
const Team = require('./team');
const ArrayUtilities = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/array_u... |
#!/usr/bin/env node
/*global __filename, process, require, Buffer */
var ws = require("ws");
var fs = require("fs");
var express = require("express");
var minimist = require("minimist");
var fs = require("fs");
var https = require("https");
var http = require("http");
var minimistOptions = {
alias: { p: "port", ... |
import ui from './UI.js';
const UI = new ui();
export default class CustomSelect{
constructor(label,required,name,endPoint){
this.label = label;
this.name = name;
this.required = required;
this.endPoint = endPoint;
this.options = [];
this.button;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.