text stringlengths 2 1.04M |
|---|
var graphLabels = []
d3.selectAll('#portfolioGraphLabel')
.each(function(e) {
graphLabels.push(d3.select(this).text());
});
var graphData = []
d3.selectAll('#portfolioGraphData')
.each(function(e) {
graphData.push(d3.select(this).text());
});
data = []
for (var i=0; i < graphLabels.length; i++) {
data.push({... |
(function() {
let source1 = "tainted1";
let source2 = "tainted2";
function g(x) {
let other_source = "also tainted";
return Math.random() > .5 ? x : other_source;
}
let sink1 = g(source1);
let sink2 = g(source2);
}); |
import React from 'react';
import ReactDOM from 'react-dom';
import App from '../components/App';
import {Action} from '../action-reducer/action';
export default function showDialog(create, state) {
const store = global.store;
const STATE_PATH = ['temp'];
const action = new Action(STATE_PATH, false);
const nod... |
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap/dist/js/bootstrap";
import Cards from "./components/Cards/Cards";
import Filters from "./components/Filters/Filters";
function App() {
return (
<div className="App">
<h1 className="text-center ubuntu my-4">Rick & Morty <span className="text-p... |
import React, { useState, useEffect } from "react";
import Modal from "./Modal";
import useFormValidation from "./useFormValidation";
import "../App.css";
import validate from "./SignupValidation";
import Footer from "./Footer";
import Header from "./Header";
import useQuery from "../components/useQuery";
import CityDr... |
// ------------step-wizard-------------
$(document).ready(function () {
$('.nav-tabs > li a[title]').tooltip();
//Wizard
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var target = $(e.target);
if (target.parent().hasClass('disabled')) {
return false;
... |
import { useContext, useState, useEffect, useRef } from "react";
import "../App.css";
import HeroSection from "../components/HeroSection/HeroSection";
import Getstarted from "../components/Getstarted/Getstarted";
import {
getOfferConversations,
getNotificationFromOffers,
} from "../services/messagesData";
/* Noti... |
//>>built
define(
({
// ${0}: string
// unit of item, identified by "itemTitle"
// ${2}: number
// start item index of current page
// ${3}: number
// end item index of current page
// ${1}: number
// total number of all items
// example:
// the total number is 200, the unit of item is "items"
// rows ... |
const { App, uid } = require('.')
App.getActivities(uid).then(console.log, console.error) |
import React, { useState, useEffect, useCallback } from 'react'
import { useBottomScrollListener } from 'react-bottom-scroll-listener'
import { connect } from 'react-redux'
import * as postActions from '../store/actions/postActions'
import * as userActions from '../store/actions/userActions'
import Feed from '../compon... |
var textareas = document.getElementsByClassName("scrolled");
for (var i = 0; i < textareas.length; i++) {
textareas[i].scrollTop = textareas[i].scrollHeight;
} |
const express = require('express');
const path = require('path');
const { createProxyMiddleware } = require('http-proxy-middleware');
const admin = require('./admin');
const auth = require('./auth');
// The /feeds router allows access to Telescope's Feed Objects.
const feeds = require('./feeds');
// The /feed router a... |
const path = require("path");
const nodeExternals = require('webpack-node-externals');
const WebpackShellPluginNext = require('webpack-shell-plugin-next');
const {
NODE_ENV = "production",
} = process.env;
module.exports = {
entry: "./src/index.ts",
mode: NODE_ENV,
target: "node",
output: {
path: path.r... |
self.__SSG_MANIFEST=new Set(["\u002Fdocs\u002Fguides\u002Fgatsby","\u002Fdocs\u002Fguides\u002Flaravel","\u002Fdocs\u002Fguides\u002Fcreate-react-app","\u002Fdocs\u002Fguides\u002Fnextjs","\u002Fdocs\u002Fguides\u002Fvite","\u002Fdocs\u002Fguides\u002Fnuxtjs","\u002Fdocs\u002Finstallation","\u002Fdocs\u002Finstallation... |
export default {
100: 'Continue',
101: 'Switching Protocols',
102: 'Processing',
200: 'OK',
201: 'Created',
202: 'Accepted',
203: 'Non-Authoritative Information',
204: 'No Content',
205: 'Reset Content',
206: 'Partial Content',
207: 'Multi-Status',
208: 'Already Reported',
226: 'IM Used',
30... |
import ingest from './server/routes/api/ingest';
import search from './server/routes/api/search';
module.exports = function (kibana) {
return new kibana.Plugin({
id: 'kibana',
config: function (Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
defaultAppId: Joi.string().d... |
/*! jQuery UI - v1.11.4 - 2015-03-13
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function (e) {
"function" == typeof define && define.amd ? define(["../datepicker"], e) : e(jQuery.datepicker)
})(function (e) {
return e.regional.no = {
closeText: "Lukk",... |
Future = Npm.require('fibers/future');
var slug = function (text) {
text = slugify(text, '.');
return text.replace(/[^0-9a-z-_.]/g, '');
}
// At a minimum, set up LDAP_DEFAULTS.url and .dn according to
// your needs. url should appear as "ldap://your.url.here"
// dn should appear in normal ldap format of comma sepa... |
import React from 'react';
import styled from 'styled-components';
import playlistIcon from '../img/playlist-icon.png'
const Container = styled.header`
height: 20vh;
background-color: #AB3131;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 3vw 0 10vw;
`
const Ti... |
const { describeDay } = require('../test-utils')
describeDay(
2019,
15,
300,
312,
) |
/*
Version 3.0.0
=========================================================
bootstrap-datetimepicker.js
https://github.com/Eonasdan/bootstrap-datetimepicker
=========================================================
The MIT License (MIT)
Copyright (c) 2014 Jonathan Peterson
Permission is hereby granted, free of charge,... |
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': '/dist/libs/'
},
// map tells the System loader where to look for things
map: ... |
/*
* Copyright (c) 2018-2025, songfayuan All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of condition... |
var Sentinel = require('../lib/redis-sentinel');
var async = require('async');
var should = require('should');
function selectReadEndpoint(masterEndpoint, slaveEndpoints, readEndpoint) {
if (sentinel.isSlaveEndpoint(readEndpoint.host, readEndpoint.port)) {
return readEndpoint;
} else if (slaveEndpoints... |
var searchData=
[
['addassignmentrule_7',['addAssignmentRule',['../group__edit.html#gabbe9164c7a231ec1897b499fde57c575',1,'rrc_api.h']]],
['addassignmentrulenoregen_8',['addAssignmentRuleNoRegen',['../group__edit.html#ga1587edf0539fbe8e8c1eeab7649817fc',1,'rrc_api.h']]],
['addcompartment_9',['addCompartment',['..... |
export const c_nav_m_horizontal_subnav__link_xl_PaddingRight = {
"name": "--pf-c-nav--m-horizontal-subnav__link--xl--PaddingRight",
"value": "1.5rem",
"var": "var(--pf-c-nav--m-horizontal-subnav__link--xl--PaddingRight)"
};
export default c_nav_m_horizontal_subnav__link_xl_PaddingRight; |
/**
* Copyright 2018 The AMP HTML 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 require... |
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var comments = [{author: 'Pete Hunt', text: 'Hey there!'}];
app.use(bodyParser.json());
app.... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default function TableContainer({
children,
className,
component,
...props
}) {
const Element = component;
const classes = classNames('table-container', className);
return (
<Element className... |
/*
Input Mask plugin extensions
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) Robin Herbots
Licensed under the MIT license
*/
import Inputmask from "../inputmask";
import {getLastValidPosition} from "../positioning";
import {getMaskTemplate} from "../validation-tests";
//extra definitions
Inputmask... |
import React from "react"
import { Link } from "gatsby"
import Header from "../components/header"
export default function Home() {
return (
<div style={{ color: `purple` }}>
<Link to="/contact/">Contact</Link>
<Header headerText="Hello Gatsby!" />
<p>What a world.</p>
<img src="https://sou... |
b==Math.round(a/b))return a/b},parseDatesDraw:function(){var a,b=this.chart,c=this.showFirstLabel,e=this.showLastLabel,h,f="",g=d.extractPeriod(this.minPeriod),k=d.getPeriodDuration(g.period,g.count),l,m,p,q,n,t=this.firstDayOfWeek,r=this.boldPeriodBeginning;a=this.minorGridEnabled;var w,y=this.gridAlpha,x,u=this.choos... |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Contains the second part of the {@link CKEDITOR} object
* definition, which defines the basic editor features to be available in
* the root ckeditor... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.3/esri/copyright.txt for details.
//>>built
define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/accessorSupport/decorators ../core/Accessor".split(" "),func... |
import Vue from 'vue'
import Vuex from 'vuex'
import stocks from './modules/stocks'
import portfolio from './modules/portfolio'
import * as actions from './actions'
Vue.use(Vuex);
export default new Vuex.Store({
actions,
modules: {
stocks,
portfolio
}
}) |
'use strict';
angular.module('openshiftConsole')
.directive('oscGitLink', function() {
return {
restrict: 'E',
scope: {
uri: "=",
commit: "=",
},
transclude: true,
template: '<a ng-href="{{uri | githubLink : commit}}" ng-transclude></a>'
};
}); |
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
* The date default... |
var BYTE4 = 4294967296;
module.exports = function(w, h, min, span) {
var canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d'),
i, j, imageData, rnd;
if (!(min instanceof Array)) min = [min, min, min, 0xFF];
else for (;min.length < 4; min.push(min.length === 3 ? 0xFF : min[min.len... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const productSchema = new Schema({
userId:{
type:Schema.Types.ObjectId,
ref:'User',
required: true
},
name:{
type:String,
required:true
},
description:{
type:String,
require... |
const React = require('react')
const path = require('path')
const fs = require('fs')
const babel = require('babel-core')
const { promisify, hyphenate, fetchScrybConfigPath } = require('./utils')
const readFile = promisify(fs.readFile)
const writeFile = promisify(fs.writeFile)
const mkdir = promisify(fs.mkdir)
const ... |
console.log('scripts loaded'); |
export default test => {
return it('Petitions Clerk views document detail', async () => {
await test.runSequence('gotoDocumentDetailSequence', {
docketNumber: test.docketNumber,
documentId: test.documentId,
});
expect(test.getState('currentPage')).toEqual('DocumentDetail');
expect(test.get... |
const bcrypt = require('bcrypt');
async function hashPassword(password) {
const saltRounds = 10;
const hash = await bcrypt.hash(password, saltRounds);
return hash;
}
hashPassword('P@ssw0rd').then((hash) => console.log(hash)); |
/* eslint-env node */
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
},
overrides: [
// node files
{
... |
/*! @license Firebase v4.3.1
Build: rev-b4fe95f
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ViewCache = undefined;
var _ChildrenNode = require('../snap/ChildrenNode');
var _CacheNode = require('./CacheNode');
/**
* Stores the ... |
(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.jspdf = factory());
}(this, function() {
'use strict';
var _typeof = typeof Symbol === "function" && typeof Sym... |
const { STATUS } = require("../../index")
/*
this is the mysql component definition:
there are 2 required fields:
- name
- init
and 4 optional:
- checkStatusInterval
- checkStatus
- debug
- noColors
*/
module.exports = {
/*
the name property is required and represents the component handler
*/
name: "mysq... |
import request from '@/utils/request'
import qs from 'qs'
// export function initData(url, params) {
// return request({
// url: url + '?' + qs.stringify(params, { indices: false }),
// method: 'get'
// })
// }
export function initData(url, data) {
return request({
url: url + '/conditions',
metho... |
//# sourceMappingURL=chunk-2b6e1efa.1d589c1d.js.map |
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Card, notification } from 'antd';
import dpay from 'dpayjs';
import { Link } from 'react-router';
import RecoverAccountForm from '../Form/RecoverAccount';
import Loading from '../../widgets/Loading';
import { getErrorMessage ... |
'use strict';
const Grabber = require('../../src/grabber/grabber');
const sinon = require('sinon');
const assert = require('chai').assert;
describe('Grabber', () => {
let config = {};
function createGrabber({
fetcherMock = sinon.stub().returns([]),
parserMock = sinon.stub().returns([]),
... |
/**
* Security Settings
* (sails.config.security)
*
* These settings affect aspects of your app's security, such
* as how it deals with cross-origin requests (CORS) and which
* routes require a CSRF token to be included with the request.
*
* For an overview of how Sails handles security, see:
* https://sailsjs... |
Vue.component('comprobante-fondo-fijo-create', {
props: ['url_comprobante_fondo_fijo_create'],
data: function () {
return {
'form': {
'comprobante': {
'id_referente': '',
'referencia': '',
'cumplimiento': '',
... |
/**
* https://github.com/circleci/build-agent/blob/2c97bd8862211a39e02d450cc1e797d7d2b82df5/data/config.schema.json#L86
*/
class CircleBranchFilter {
/**
* @type {string | string[]}
*/
only;
/**
* @type {string | string[]}
*/
ignore;
}
module.exports = { CircleBranchFilter }; |
const throttle = require('../../utilities/throttle')
export default class AttachEvent {
constructor() {
this.scrollFnc = null
this.resizeFnc = null
this.mousemoveFnc = null
}
attachScroll() {
window.addEventListener('scroll', event => {
if (this.scrollFnc) this.scrollFnc(event)
})
}
... |
import ProvincesAPI from '../../api/provinces.js';
export const provinces = {
namespaced: true,
// state
state: {
data: {}, //single data
dataS: [], //collection
dataStat: '',
dataStatS: '',
update: [], //update data
updateStat: '',
rules: [], //laravel rules
options: [], //larav... |
module.exports = class extends think.Logic {
indexAction() {
}
loginAction() {
this.allowMethods = 'post';
const rules = {
login_name: {
required: true
},
password: {
required: true
}
};
const flag = this.validate(rules);
if (!flag) {
this.assign... |
const hostile = require('hostile')
const deasync = require('deasync')
const portscanner = require('portscanner')
const log = require('gutil-color-log')
const NODE_ENV = require('./nodeEnv')
const serverConfig = require('./config').server
module.exports = function () {
let freePort = null
let isTrySetHost = false
... |
/**
* 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.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
/*
Licenciatura em Engenharia Informática | Faculdade de Ciências e Tecnologia da Universidade de Coimbra
Projeto de Multimédia 2019/2020
2018282210 Gabriel Alexandre Rodrigues Cortês
2018280609 João Martins Cabral Pinto
2018283166 Pedro Miguel Duque Rodrigues
*/
"use strict";
import Character from ... |
function a(a) {
if (a) var b = 1;
else var b = 2;
console.log(b + 1);
} |
cordova.define("phonegap-plugin-push.PushNotification", function(require, exports, module) { /* global cordova:false */
/*!
* Module dependencies.
*/
var exec = cordova.require('cordova/exec');
/**
* PushNotification constructor.
*
* @param {Object} options to initiate Push Notifications.
* @return {PushNotifi... |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
class App ext... |
// This model was generated by Lumber. However, you remain in control of your models.
// Learn how here: https://docs.forestadmin.com/documentation/v/v5/reference-guide/models/enrich-your-models
module.exports = (sequelize, DataTypes) => {
const { Sequelize } = sequelize;
// This section contains the fields of your... |
import {
C_POSTBOX,
C_WHITE,
C_GHOST,
C_POSTBOX_30,
} from '@bbc/psammead-styles/colours';
import { yoruba as brandSVG } from '@bbc/psammead-assets/svgs';
import { cyrillicAndLatin } from '@bbc/gel-foundations/scripts';
import '@bbc/psammead-locales/moment/yo';
import '@bbc/moment-timezone-include/tz/Africa/Lag... |
// Copyright (C) 2018 Swift Navigation Inc.
//
// Contact: Swift Navigation <dev@swiftnav.com>
//
// This source is subject to the license found in the file 'LICENSE'
// which must be be distributed together with this source. All other
// rights reserved.
import { combineReducers } from 'redux';
import { reducer as fo... |
/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* @module utils/tomap
*/
import objectToMap from './objecttomap';
import { isPlainObject } from 'lodash-es';
/**
* Transforms object or iterable to map. Iterable needs to be in the... |
import { ADMIN_DOMAIN } from '../constants/api'
import ApiClient from './ApiClient'
export default function generate(api) {
return {
get: params => ApiClient.get(`${ADMIN_DOMAIN}/${api}/get`, params),
add: params => ApiClient.post(`${ADMIN_DOMAIN}/${api}/add`, params, { needAuth: true }),
e... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
/*! Echo v1.5.0 | (c) 2014 @toddmotto | MIT license | github.com/toddmotto/echo */
window.Echo=function(a,b){"use strict";var c,d,e,f=[],g=function(a){var d=a.getBoundingClientRect();return(d.top>=0&&d.left>=0&&d.top)<=(window.innerHeight||b.documentElement.clientHeight)+c},h=function(){var c=f.length;if(c>0)for(var d=... |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
/*jslint smarttabs:true */
var Token = require('./Token').Token;
/* stop is not included! */
function Interval(start, st... |
module.exports = {
process() {
return 'module.exports = {};'
},
getCacheKey() {
return 'cssTransform'
}
} |
angular.module('umbraco.resources').factory('OurGmapsCoreFactory',
function ($q, $window) {
//Google's url for async maps initialization accepting callback function
var asyncUrl = 'https://maps.googleapis.com/maps/api/js',
mapsDefer = $q.defer();
$window.googleMapsInitialized... |
x = new {a:1};
y = x;
x["a"] = 2; |
cc3d.extend(cc3d, function () {
'use strict';
var EVENT_RESIZE = 'resizecanvas';
var uniformValue;
var scopeX, scopeY, scopeZ, scopeW;
// Exceptions
function UnsupportedBrowserError(message) {
this.name = "UnsupportedBrowserError";
this.message = (message || "");
}
Uns... |
module.exports={viewBox:'0 0 576 512',d:'M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79v-82.7zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 4... |
(function () {
'use strict';
const obj_fn = window['object-functional'];
const ts0 = Date.now();
class Example extends obj_fn.ObjectFunctional {
constructor(...args) {
var _temp;
return _temp = super(...args), this.asAction = this.init, this.asAction = this.assign, this.asAction = this.inc, _... |
/*jslint this: true, browser: true, long: true, bitwise: true */
/*global window console demonstrationHelper */
/**
* Follows WebSocket behaviour defined by spec:
* https://html.spec.whatwg.org/multipage/web-sockets.html
*/
(function () {
// Create a helper function to remove some boilerplate code from the exa... |
export default function(){
return [
{title: 'JS', pages:5},
{title: 'Harry', pages:242},
{title: 'The Tower', pages:1},
{title: 'Body', pages:251252}
]
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/**
* @author Toru Nagashima
* @copyright 2017 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
// ------------------------------------------------------------------------------
// Requirements
// -----------------------------------------------------------... |
import * as React from 'react';
import { View } from 'react-native';
import { FlatButton } from 'carbon-ui';
export default () => <View style={{ justifyContent: 'flex-start', flexDirection: 'row' }}>
<FlatButton>Hey I'm a button</FlatButton>
<FlatButton onPress={() => { }}>Press me</FlatButton>
<FlatButt... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
/* eslint-disable */
module.exports = {
// The Webpack config to use when compiling your react app for development or production.
webpack(config, env) {
// ...add your webpack config
return config;
},
// The Jest config to use when running your jest tests - note that the normal rewires do not
// work ... |
class Character {
constructor(name = '') {
this.name = name;
this.health = Math.floor(Math.random() * 10 + 95);
this.strength = Math.floor(Math.random() * 5 + 7);
this.agility = Math.floor(Math.random() * 5 + 7);
}
isAlive() {
if (this.health === 0) {
ret... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
function clearLocationCookie(url) {
document.cookie = 'location=;path=/;expires=' + (new Date()).toGMTString() + ';';
}
function setLocationCookie(url) {
clearLocationCookie(url);
document.cookie = 'location=' + url + ';path=/';
}
function log(s) {
var console = document.getElementById("console");
... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { Component, Fragment } from 'react';
import {
EuiButton,
... |
/**
* Test dependencies
*/
var assert = require('assert');
var httpHelper = require('./helpers/httpHelper.js');
var appHelper = require('./helpers/appHelper');
var util = require('util');
var async = require('async');
var fixture = require('./fixtures/users.js');
var _ = require('@sailshq/lodash');
var fs = require(... |
// The root state for a package is namespaced in the 2018 package
// and the root state object when developing a package in isolation
const rootState = state => state.package2018DisasterResilience || state;
export default rootState; |
import React, { Component } from 'react';
import logo from './logo.png';
import './App.css';
import { DatePicker } from 'antd';
import 'antd/dist/antd.css';
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom';
import { Layout, Menu, Breadcrumb, Icon } from 'antd';
// 路由组件
import Silder from '... |
// 54. Spiral Matrix
// Medium 26%
// Given a matrix of m x n elements (m rows, n columns), return all elements of
// the matrix in spiral order.
// For example, Given the following matrix:
// [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ]
// You should return [1,2,3,6,9,8,7,4,5].
/**
* @param {number[][]} matrix
*... |
'use strict'
const path = require('path')
const {ampCreator} = require('create-amp-page')
const markdownit = require('markdown-it')
const {adjustHeadingLevel} = require('./markdown-it-headline-adjust')
const liveUrl = 'https://create-amp-page.netlify.app/'
const makePathFromFile = file => path.basename(file).replace(... |
import React from 'react'
import { Helmet } from 'react-helmet'
import Footer from '../components/Footer'
import Navbar from '../components/Navbar'
import './styles.scss'
import useSiteMetadata from './SiteMetadata'
import { withPrefix } from "gatsby"
const TemplateWrapper = ({ children }) => {
const { title, descri... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
//import registerServiceWorker from './registerServiceWorker';
import {Provider} from 'react-redux'
import store from './store'
ReactDOM.render(
<Provider store={store}>
<App/>
</Provider>,
documen... |
"use strict";
/**
* Main script of the 'post start' stage.
*
*/
const fs = require("fs");
const path = require("path");
const _ = require("lodash");
const utils = require("../utils/utils");
const model = require("../utils/model");
const cst = require("../const");
const config = require(cst.CONFIGPATH);
const db =... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{23:function(e,n,t){t("j36g"),e.exports=t("Sg6V")},Sg6V:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bugs",function(){return t("yDSR")}])},yDSR:function(e,n,t){"use strict";t.r(n);var r=t("ln6h"),o=t.n(r),a=t("q1tI"),u=t.n(a),s=t("RVZx"),c=t("3gM... |
"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 ... |
exports.speakerdeck = (user, code, title) => `<a href="https://speakerdeck.com/${user}/${code}">${title}</a>`; |
// @flow
import { type Ref } from "./RefTypes";
/**
* Takes an argument and if it's an array, returns the first item in the array,
* otherwise returns the argument. Used for Preact compatibility.
*/
export const unwrapArray = (arg: *): * => (Array.isArray(arg) ? arg[0] : arg);
/**
* Takes a maybe-undefined funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.