text stringlengths 2 1.05M |
|---|
/*
Rate limit a function call. Wait is the minimum number of milliseconds between calls.
If leading is true, the first call to the throttled function is immediately called.
If trailing is true, once the wait time has passed the function is called.
This code is cribbed from https://github.com/jashkenas/underscore
*/
l... |
import React, { useEffect, useState, useMemo } from 'react';
import { Content, Input } from './style'
import Header from '../../components/Header/index'
import Label from '../../components/Label/index'
import Button from '../../components/Button/index'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'... |
/* ********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mozilla.org... |
(function() {
'use strict';
var S = null;
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined')
S = require('../lib/string');
else {
S = window.S;
}
function T(v) { if (!v) { throw new Error('Should be true.'); } };
function F(v) { if (v) { throw new Error('Should be fals... |
// JS OBFUSCATED TO AVOID COPY
var _0xf647 = ["\x6A\x51\x75\x65\x72\x79", "\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74", "\x6C\x6F\x61\x64", "\x66\x61\x64\x65\x4F\x75\x74", "\x5B\x64\x61\x74\x61\x2D\x6C\x6F\x61\x64\x65\x72\x3D\x22\x63\x69\x72\x63\x6C\x65\x2D\x73\x69\x64\x65\x22\x5D", "\x73\x6C\x6F\x77", "\x64\x65\x6C\x61\... |
var express = require('express');
var exphbs = require('express-handlebars');
var path = require('path');
var bodyParser = require('body-parser');
module.exports = function(app){
app.use(bodyParser.urlencoded({
extended: true,
}));
app.engine('hbs', exphbs({
extname: '.hbs',
defaultLayout: 'application',
... |
var commentTemplate = `
<div class=" thing id-{{name}} noncollapsed comment " data-author="{{author}}" data-fullname="{{name}}" data-subreddit="SubredditSimulator" data-subreddit-fullname="{{subreddit_id}}" data-type="comment" id="thing_{{name}}" onclick="click_thing(this)">
<p class="parent">
<a name="{{id}}"></... |
import matchdom from 'matchdom';
import Viewer from '@pageboard/pagecut/src/viewer.js';
import str2dom from '@pageboard/pagecut/src/str2dom.js';
import * as filters from './filters';
Object.assign(matchdom.filters, filters);
Document.prototype.dom = function(str) {
return str2dom(Array.prototype.join.call(arguments,... |
import { txClient, queryClient, MissingWalletError } from './module';
// @ts-ignore
import { SpVuexError } from '@starport/vuex';
import { Character } from "./module/types/charservice/character";
export { Character };
async function initTxClient(vuexGetters) {
return await txClient(vuexGetters['common/wallet/signer... |
var gulp = require('gulp');
var dutil = require('./doc-util');
var linter = require('gulp-scss-lint');
gulp.task('copy-uswds-styles', function (done) {
dutil.logMessage('copy-uswds-styles', 'Copying Sass files from uswds');
var stream = gulp.src('./node_modules/uswds/src/stylesheets/**/*')
.pipe(... |
/*
* Copyright 2018 NEM
*
* 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 writi... |
// pages/speciality/preview/purchase.js
const app = getApp().globalData;
Page({
/**
* 页面的初始数据
*/
data: {
loading: false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
... |
import React from "react";
import PropTypes from "prop-types";
import CircularProgress from "@material-ui/core/CircularProgress";
import { makeStyles, Button } from "@material-ui/core";
import { green } from "@material-ui/core/colors";
const useStyles = makeStyles({
root: {
display: "flex",
alignItems: "center",... |
import React, { useState, useEffect } from 'react';
// table
const CovidTable = () => {
const [stateData, setData] = useState([]);
useEffect(() => {
fetch( 'https://api.caw.sh/v3/covid-19/states' )
.then(response => response.json())
.then(setData);
}, []);
return (<div>
<table className=... |
const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function (app) {
app.use(
createProxyMiddleware("/.netlify/functions/server/api", {
target: "http://localhost:9000/",
})
);
}; |
import React, {Component} from 'react';
import VariantSelector from './VariantSelector';
import Slider from './Slider'
import FormState from './FormState'
class ProductCard extends Component {
constructor(props) {
super(props);
this.state = {};
this.handleOptionChange = this.handleOptionChange.bind... |
'use strict'
RIVEN.create = (append = true) => {
const lib = RIVEN.lib
Ø('mouse').create({ x: 2, y: 4 }, lib.Mouse)
Ø('init').create({ x: 2, y: 0 }, lib.Init)
Ø('query').create({ x: 8, y: 6 }, lib.Query)
Ø('model').create({ x: 12, y: 4 }, lib.Mesh, [
Ø('router').create({ x: 3, y: 0 }, lib.Router),
... |
import React, { Component } from 'react'
import { Location } from '@reach/router'
import { Link } from 'gatsby'
import { Menu, X } from 'react-feather'
import Logo from './Logo'
import './Nav.css'
export class Navigation extends Component {
state = {
active: false,
activeSubNav: false,
currentPath: fals... |
/**
* meraki
*
* This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
*/
'use strict';
const BaseModel = require('./BaseModel');
/**
* Creates an instance of UpdateNetworkSmProfileUmbrellaModel
*/
class UpdateNetworkSmProfileUmbrellaModel extends BaseModel {
/**
*... |
#!/usr/bin/env node
const { promises: fs } = require('fs');
const { resolve: resolvePath } = require('path');
const { spawn } = require('child_process');
const { diff } = require('deep-diff');
const { endpointUrl, srcPath } = require('./_constants');
const reCdnUrl = new RegExp(`^${endpointUrl}/(.+)-([\\d\\.]+)\\.js$... |
const path = require('path')
const fs = require('fs')
const assert = require('assert')
const {ensureDirSync} = require('../lib')
/* global describe:false, it:false after:false */
describe('ensureDirSync', () => {
it('should make a dir when give a not exist relative path', () => {
let dir = path.normalize('./tes... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
import test from 'ava';
import LIVR from '../lib/LIVR';
function patchRule(ruleName, ruleBuilder) {
return function(...params) {
const ruleValidator = ruleBuilder(...params);
const ruleArgs = params.splice(0, params.length - 1);
return (...params) => {
const errorCode = ruleVal... |
"use strict";
const items = require("../items");
let findItemByName = (itemName) => {
return new Promise((resolve, reject) => {
if (typeof (itemName) != "number" && typeof (itemName) != "string") {
reject("Item must be a string or integer");
}
else {
if (typeof (it... |
const Spot = require('../models/Spot');
module.exports = {
async show(req, res)
{
const { user_id } = req.headers;
const spots = await Spot.find({ user: user_id });
return res.json(spots);
}
} |
import React, { Component } from "react";
import { Table, Popconfirm, Form, Space, Button } from 'antd';
import { CategoryCreateForm } from '../forms/CategoryCreateForm';
import { EditableCell } from '../lib/EditableCell';
import CategoryModel from "../model/CategoryModel";
class NewsCategory extends Component {
f... |
// @flow
import React from 'react';
import type {ChildrenArray, Element} from 'react';
import {SortableContainer, SortableElement} from 'react-sortable-hoc';
import classNames from 'classnames';
import type {Button} from './types';
import Header from './Header';
import Item from './Item';
import multiItemSelectionStyle... |
import axios from "axios";
import {baseUrl} from "../utils/constantes";
export class ColorService {
getAll(){
return axios.get(baseUrl+"colores").then(res => res.data.data);
}
getOne(id){
return axios.get(baseUrl+"color/"+id).then(res => res.data);
}
create(color){
ret... |
import React from 'react'
import { Icon } from './Icon'
import { kt } from './fragments'
export const FilledBlock = /*#__PURE__*/ props => <Icon {...props}>
<path d={kt + "M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20... |
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.p... |
import { CUSTOM_THEME_ROUTE } from 'constants/colors';
import { findIndex } from 'lodash/array';
export const UPDATE_CUSTOM_THEME = 'UPDATE_CUSTOM_THEME';
export function updateCustomTheme(href) {
return { type: UPDATE_CUSTOM_THEME, payload: { href } };
}
export const INITIAL_STATE = [{
rel: 'stylesheet',
href:... |
!function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
!function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
exports['delete'] = {
insert: [
{name: 'Rick Blalock'},
{name: 'Dawson Toth'}
]
};
|
// 建档管理
import request from '@/utils/request'
// 建档维护列表
export function recordList(params) {
return request({
url: '/customer/customer/bookbuilding/getByCustTypeId',
method: 'post',
params
})
}
// 建档维护新增与编辑
export function recordSaveAndEdit(data) {
return request({
url: '/customer/c... |
'use strict';
const fz = require('./converters/fromZigbee');
const tz = require('./converters/toZigbee');
const store = {};
const repInterval = {
MAX: 62000,
HOUR: 3600,
MINUTES_5: 300,
MINUTE: 60,
};
const bind = async (endpoint, target, clusters) => {
for (const cluster of clusters) {
... |
import { Injectable, EventEmitter } from '@angular/core';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { ConfigurationService } from './configuration.service';
import { GithubService } from './github.service';
import { SearchQueryBuilderService } from './searchquerybuilder.service';
@Injectable()
exp... |
import React, {Component,useState} from 'react';
import Head from 'next/head';
import Router from 'next/router';
import Link from 'next/link';
import {Container, Navbar, Nav, NavItem, NavDropdown, Form, FormControl, Button, Modal, Badge} from 'react-bootstrap';
import API from '../lib/axios';
import {logout, isLogin, i... |
var searchData=
[
['send',['Send',['../namespace_vector_nav_1_1_protocol_1_1_uart.html#abaf0bc6898e64208fcc2e2d75e9b9b47a94966d90747b97d1f0f206c98a8b1ac3',1,'VectorNav::Protocol::Uart']]],
['sendandoff',['SendAndOff',['../namespace_vector_nav_1_1_protocol_1_1_uart.html#abaf0bc6898e64208fcc2e2d75e9b9b47a7991e6736089... |
(function(d){ const l = d['de'] = d['de'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"%0 von %1",Aquamarine:"Aquamarinblau","Austral sign":"Austral-Zeichen",Big:"Groß","Bitcoin sign":"Bitcoin-Zeichen",Black:"Schwarz","Block quote":"Blockzitat",Blue:"Blau","Blue marker":"Blauer Marker",Bold:"Fett... |
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-g... |
var editedServiceID = 0;
$('#btnAddNewModal').click(function() {
$('#resource').val('');
$('#AddNewModal').modal('show');
});
$('#btnAddNew').click(function() {
if (!$('#newPortfolioForm').valid()) {
return;
}
showSpinner('#addModalContent');
$.ajax({
url: base_url + "api/reso... |
import React from 'react'
import QA from '../../components/quarterly-analysis';
export default () => <QA title="Hotels" type="Hotels" />
|
module.exports = {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": "plugin:vue/essential",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
}
};
|
import { test, forCases, given } from 'sazerac'
import OreCategory from './ore-category.service.js'
describe('OreCategory', function () {
test(OreCategory.prototype.transform, () => {
forCases([
given({ data: { category: 'admin_tools' } }),
given({ data: { category: 'admin tools' } }),
]).expect(... |
(function() {
var app = angular.module('diagnostics', ['common']);
}()); |
import moment from 'moment';
import {Response} from 'ember-cli-mirage';
import {dasherize} from '@ember/string';
import {isArray} from '@ember/array';
import {isBlank, isEmpty} from '@ember/utils';
import {paginateModelCollection} from '../utils';
function normalizeBooleanParams(arr) {
if (!isArray(arr)) {
... |
import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
/* Layout */
import Layout from "@/layout";
/**
* Note: sub-menu only appear when route children.length >= 1
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
* hidden: true ... |
"use strict";
const lib_1 = require("../lib");
module.exports = {
'can create dynamic references with service and key with colons'(test) {
// GIVEN
const stack = new lib_1.Stack();
// WHEN
const ref = new lib_1.CfnDynamicReference(lib_1.CfnDynamicReferenceService.SSM, 'a:b:c');
... |
/*
* 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 writing, software
* distributed u... |
class ESVec2 {
constructor(x=0.0, y=0.0) {
this.x = x;
this.y = y;
}
add(vec2) {
this.x += vec2.x;
this.y += vec2.y;
return this;
}
sub(vec2) {
this.x -= vec2.x;
this.y -= vec2.y;
return this;
}
mul(vec2) {
this.x *= vec2.x;
this.y *= vec2.y;
return this;
}
div(vec2) {
this.x /= v... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
export default class Breadcrumb extends Component {
render() {
const path = window.location.pathname.split('/').filter(v => v);
return (
<span className="breadcrumb">
<span>
... |
const lang = "en-US";
module.exports = lang;
|
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 = Reflect.decorate... |
/**
* 登录业务逻辑
*/
'use strict';
import './fundDetails.less';
import fundDetailTpl from './fundDetails.tpl.html';
import Tool from '../../utils/tool';
import widget from '../../utils/widget';
import fundGdInFo from '../../components/fundGood-info/fundGood-info.html';
import ydsyTpl from '../../components/ydsyTpl/ydsyTp... |
var searchData=
[
['packetdir',['packetDir',['../class_aft_packet.html#abb4a2fdfaf0d2ecfb1b60c480dd22a04',1,'AftPacket']]],
['packetmode',['packetMode',['../class_aft_policer.html#af28e130276d9591f52b41f40670ee2e0',1,'AftPolicer']]],
['params',['params',['../class_aft_parameters.html#ade2f30759311b7fd0ad46343eb2a... |
const assert = require('assert');
module.exports = function onSvclibRequest(baseConnection, svclibRequest) {
assert(this.isHub());
this.svclib_.accept('svclib_request', baseConnection, svclibRequest);
};
|
/*
* /MathJax/localization/de/HTML-CSS.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* 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/licen... |
var DeferredMixin = Ember.DeferredMixin, // ember-runtime/mixins/deferred
Evented = Ember.Evented, // ember-runtime/mixins/evented
run = Ember.run, // ember-metal/run-loop
get = Ember.get; // ember-metal/accessors
var LoadPromise = Ember.Mixin.create(... |
/**
* @fileoverview
* @author Sungho Kim(sungho-kim@nhnent.com) FE Development Team/NHN Ent.
*/
import MarkdownEditor from './markdownEditor';
import MarkdownPreview from './mdPreview';
import WysiwygEditor from './wysiwygEditor';
import Layout from './layout';
import EventManager from './eventManager';
import Comm... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../.... |
import React from 'react';
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux';
import Routers from './router';
import 'lib-flexible';
import "assets/styles/index.scss";
import store from './store';
import "@babel/polyfill";
const render = Component =>
ReactDOM.render(
<Provider store={ ... |
const path = require('path');
const express = require('express');
const app = express();
const http = require('http').createServer(app);
const io = require('socket.io')(http);
var sanitize = require('mongo-sanitize');
const connect = require('../database/connection.js');
const { Login, GetAllMessages, SaveMessage, log... |
import Vue from 'vue'
import store from '@/store'
/**
* Action 权限指令
* 指令用法:
* - 在需要控制 action 级别权限的组件上使用 v-action:[method] , 如下:
* <i-button v-action:add >添加用户</a-button>
* <a-button v-action:delete>删除用户</a-button>
* <a v-action:edit @click="edit(record)">修改</a>
*
* - 当前用户没有权限时,组件上使用了该指令则会被隐藏
* - 当... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.support.plugins.ControlTree (ControlTree support plugin)
sap.ui.define([
'sap/ui/core/support/Plugin',
'sap/ui/core/util/serializer/View... |
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import Header from "./header"
import "./layout.css"
cons... |
module.exports = controller => {
var report = null;
controller.registerTrigger('serverCommunication::websocket::authentication', 'icheques', (data, callback) => {
callback();
if (report) {
report.close();
}
if (data.commercialReference) {
return;
... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: The body may not re-declare variables declared in the head
info: |
IterationStatement :
for ( LexicalDeclaration Expressionopt ; Expressionopt ) Statem... |
module.exports = {
BUCKET: process.env.AWS_S3_BUCKET,
BUCKET_URL: `https://s3.amazonaws.com/${process.env.AWS_S3_BUCKET}`,
};
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.shallowEqual = exports.objectDiff = exports.normalizeTransitionDuration = exports.normalizeOffset = exports.numberToWord = exports.numberToWordMap = exports.keyboardKey = exports.SUI = exports.META = exports.leven = exports.isBrowse... |
var authRbac = require('auth-rbac');
var httpBasic = require('./httpBasic');
function authRbacHttpBasic(realm) {
return authRbac.frontend({
extractCredentials: httpBasic.extractCredentials,
askForCredentials: httpBasic.askForCredentials(realm)
});
}
module.exports = authRbacHttpBasic;
|
// @flow
/*
* This file is auto-generated! Do not modify it directly.
* To re-generate run 'make build'
*/
import { FLIPPED_ALIAS_KEYS } from "../../definitions";
export const EXPRESSION_TYPES = FLIPPED_ALIAS_KEYS["Expression"];
export const BINARY_TYPES = FLIPPED_ALIAS_KEYS["Binary"];
export const SCOPABLE_TYPES =... |
const Discord = require('discord.js');
const client = new Discord.Client();
const ayarlar = require('./ayarlar.json');
const chalk = require('chalk');
const fs = require('fs');
const moment = require('moment');
require('./util/eventLoader')(client);
var prefix = ayarlar.prefix;
const log = message => {
c... |
const path = require('path')
const fs = require('fs')
const _ = require('lodash')
const cosmiconfig = require('cosmiconfig')
const { ConfigMissingError } = require('../common/errors')
const packageJson = require('../../package.json')
const getSolhintCoreConfigPath = name => {
if (name === 'solhint:recommended') {
... |
import React from "react";
import { graphql } from "gatsby";
import styled from "styled-components";
import Layout from "layout/layout";
import SEO from "components/seo";
import Comment from "components/comment";
import { rhythm } from "styles/typography";
import Markdown from "styles/markdown";
import PostHead from ".... |
/*global define*/
define({
"_widgetLabel": "Nakładka siatki",
"description": "Widżet niestandardowy Web AppBuilder służący do wyświetlania nakładki siatki współrzędnych."
}); |
import React, { PureComponent } from 'react'
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import { AsyncStorage } from 'react-native';
import immutableTransform from 'redux-persist-transform-immutable';
import createStore from './redux/store';
import rootSaga from './redux/saga'... |
#!/usr/bin/env node
'use strict';
const express = require('express');
const router = express.Router();
/* GET users listing. */
router.get('/', (req, res, next) => {
res.send('User endpoint under construction.');
});
module.exports = router; |
// @flow
import cx from 'classnames';
import React from 'react';
type Props = {
className: ?string,
};
const Bars = (props: Props) => (
<g
{...props}
className={cx('bars', props.className)}
/>
);
export default Bars;
|
import React from 'react'
import { Link } from 'gatsby'
const link = (props) =>{
let Listed = props.arrList.map((e) =>{
var newUrl = ((e).replace(/[ /]/g, "-").trim().toLowerCase());
let filterUrl = (newUrl === 'home') ? '/' : newUrl;
return (
<li>
<Link
to={filterUrl}>
{e}
</Lin... |
import React, { PropTypes } from 'react';
import styles from './UserHomePage.less';
import withStyles from '../../decorators/withStyles';
import withAuthentication from '../../decorators/withAuthentication';
import { Link } from 'react-router';
import UserMenu from '../UserMenu';
// import Link from '../../utils/Link'... |
/**
* Created by admin on 2018/11/1.
*/
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with ... |
import React from 'react';
import createSvg from './utils/createSvg';
export default createSvg(<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z" />, 'PlayCircleFilled', '0 0 24 24'); |
import MockRedis from '../../src';
describe('setex', () => {
it('should set value and expire', () => {
const redis = new MockRedis();
return redis
.setex('foo', 1, 'bar')
.then((status) => expect(status).toBe('OK'))
.then(() => {
expect(redis.data.get('foo')).toBe('bar');
ex... |
import _ from 'lodash';
import moment from 'moment';
import VislibVisualizationsPointSeriesProvider from './_point_series';
import getColor from 'ui/vislib/components/color/heatmap_color';
export default function HeatmapChartFactory(Private) {
const PointSeries = Private(VislibVisualizationsPointSeriesProvider);
... |
/*!
Autosize v1.18.9 - 2014-05-27
Automatically adjust textarea height based on user input.
(c) 2014 Jack Moore - http://www.jacklmoore.com/autosize
license: http://www.opensource.org/licenses/mit-license.php
*/
(function(e){var t,o={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeD... |
'use strict';
/* ------------------------------------------------------------------------------------------------
CHALLENGE 1
Write a function named forLoopTwoToThe that, given an array of integers as input, iterates over the array and returns a new array. The returned array should contain the result of raising 2 to ... |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("royplayer")):"function"==typeof define&&define.amd?define(["royplayer"],e):"object"==typeof exports?exports["royplayer-dash"]=e(require("royplayer")):t["royplayer-dash"]=e(t.royplayer)}(window,(function(t){return function(t){var ... |
export { default } from './addUserModal.container'
|
const base_url = 'http://127.0.0.1:8000';
const apiGet = async (url, token) => {
try{
let response = await fetch(base_url + url, {
method: 'GET',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'Authorizati... |
const gulp = require('gulp');
const del = require('del');
const browserify = require('browserify');
const babelify = require('babelify');
const source = require('vinyl-source-stream');
const buffer = require('vinyl-buffer');
const sourcemaps = require('gulp-sourcemaps');
const terser = require('gulp-terser');
const pat... |
const mongoose = require('mongoose');
const connectDB = async () => {
try {
// mongodb connection
const con = await mongoose.connect(process.env.MONGO_URI, {
useNewUrlParser: true,
useUnifiedTopology: true,
})
console.log(`Mongo connected: ${con.connection.hos... |
import Relay from 'react-relay';
export default class CheckHidingSpotForTreasureMutation extends Relay.Mutation {
static fragments = {
game: () => Relay.QL`
fragment on Game {
id,
turnsRemaining,
}
`,
hidingSpot: () => Relay.QL`
fragment on HidingSpot {
id,
... |
import React from "react";
//@antD component
import "antd/dist/antd.css";
import { Table, Input, Popconfirm, Form, Modal, Steps, Icon } from "antd";
// @material-ui/core components
import withStyles from "@material-ui/core/styles/withStyles";
import InputLabel from "@material-ui/core/InputLabel";
// core components
imp... |
/*
* (c) Copyright 2015 Hewlett-Packard Development Company, L.P.
*
* 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... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define("@angular/core/schematics/migrations/initial-navig... |
(self.webpackChunkfusioncms=self.webpackChunkfusioncms||[]).push([[6336],{6336:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>n,getModel:()=>o});var a=t(6072);function o(e,r){axios.get("/api/disks/".concat(e)).then((function(e){r(null,e.data.data)})).catch((function(e){r(new Error("The requested disk could not be fou... |
createEnumerableProperty = function(name) {
let obj = {};
obj.name=0;
return obj;
};
function createNotEnumerableProperty(name){
return Symbol(name);
}
function createProtoMagicObject() {
function magic(){};
magic.prototype=Function.prototype;
return magic;
}
let incrementorSum = 0;
function incrementor () {... |
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab){
console.log(changeInfo)
if (changeInfo.status == "complete"){
const wikipediaRegex = new RegExp("https:\/\/..\.wikipedia\.org\/wiki\/.+")
if (wikipediaRegex.test(tab.url)){
console.log(tab.url)
if(localStorage.getItem("urls") ... |
function myMap() {
var denver = new google.maps.LatLng(39.742043, -104.991531);
var newYork = new google.maps.LatLng(40.730610, -73.935242);
var washington = new google.maps.LatLng(38.889931, -77.009003);
var chicago = new google.maps.LatLng(41.881832, -87.623177);
var mapOptions = {
center... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.