text stringlengths 2 1.04M |
|---|
/*
*
* CategoryNew
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { actions as formActions } from 'react-redux-form/immutable';
import { List, fromJS } from 'immutable';
import {
renderUserControl,
renderMea... |
import {list} from 'postcss';
import pseudoSelectors from './pseudo-selectors';
import {meterBarSearchRE, meterBarRE, meterBarWithPseudoClassRE}
from './regular-expressions';
function replaceMeterBarWithPseudoClass(selector, vendor) {
return selector.replace(meterBarWithPseudoClassRE, (_, pseudo) =>
pseudo... |
// Source : https://leetcode.com/problems/letter-combinations-of-a-phone-number/
// Author : Han Zichi
// Date : 2015-08-14
/**
* @param {string} digits
* @return {string[]}
*/
var ans, tmp;
function dfs(str, idx, digits) {
if (idx === digits.length) {
ans.push(str);
return;
}
var num = Number(dig... |
/* global io */
(function() {
'use strict';
angular
.module('protractorRecorder', ['ngRoute', 'ngMaterial', 'angular-sortable-view'])
.config(config).factory('socket', function ($rootScope) {
var socket = io();
return {
on: function (eventName, callback) {
socket.on(e... |
/**
* Edit by bookkilled on 17/3/6.
*/
'use strict';
import {techReadDispatcher} from './tech-read-dispatch';
export class TechReadActions {
changeCategoryAction (category) {
techReadDispatcher.dispatch({
type : 'CATEGORY_CHANGE',
payload: category
});
}
} |
var auth = require('basic-auth');
var admins = {
'hubertokf@gmail.com': {
password: 'Vbnvcfa55555'
},
'visitante': {
password: 'Passw0rd!'
},
};
module.exports = function (req, res, next) {
var user = auth(req);
if (!user || !admins[user.name] || admins[user.name].password !=... |
module.exports = {
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["jest", "@typescript-eslint"],
"ignorePatterns": ["jest.config.js", ".eslintrc.js", "dist/**/*"],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"@typescript-eslint/ban-ty... |
var structpeak__t =
[
[ "amp", "structpeak__t.html#ad25ef47a7aa48ab77129addcc3718193", null ],
[ "freq", "structpeak__t.html#ab4fa6c6e94bd129089ede7290a82558d", null ]
]; |
const DAO = require('../../lib/dao')
const mySQLWrapper = require('../../lib/mysqlWrapper')
class College extends DAO {
/**
* Overrides TABLE_NAME with this class' backing table at MySQL
*/
static get TABLE_NAME() {
return 'college'
}
/**
* Returns a bacon by its ID
*/
... |
// / <reference types="Cypress" />
import ProductPageObject from '../../../support/pages/module/sw-product.page-object';
/**
* @deprecated tag:v6.5.0 - will be removed, use `sw-promotion-v2` instead
* @feature-deprecated (flag:FEATURE_NEXT_13810)
*/
describe('Promotion: Test ACL privileges', () => {
before(() ... |
/**
* Given an array of domains, return the object with the appearances of the DNS.
*
* @param {Array} domains
* @return {Object}
*
* @example
* domains = [
* 'code.yandex.ru',
* 'music.yandex.ru',
* 'yandex.ru'
* ]
*
* The result should be the following:
* {
* '.ru': 3,
* '.ru.yandex': 3,
* '... |
function positionQuestionsAndAnswers() {
const questions = document.querySelectorAll('form .question');
const answers = document.querySelectorAll('.answer');
const buttons = document.querySelector('.buttons');
const form = document.querySelector('#form-container');
const formsetElement = document.ge... |
import React from 'react';
import { renderShallow } from '../../util/test-helpers';
import { fakeIntl, createCurrentUser, createStripeAccount } from '../../util/test-data';
import { StripePayoutPageComponent } from './StripePayoutPage';
const noop = () => null;
describe('stripePayoutPage', () => {
it('matches snaps... |
const sql = new window.JsonSql({
dialect: 'sqlite'
});
console.log(sql);
var query = sql.build({
type: 'select',
table: 'users',
fields: ['name', 'age'],
condition: {name: 'Max', id: 6}
});
var sqlJoin = sql.build({
table: 'table',
join: [{
type: 'right',
table: 'joinTable... |
class employee {
constructor(name, id, email) {
this.name = name;
this.id = id;
this.email = email;
}
getName() {
return this.name;
}
getId() {
return this.id;
}
getEmail() {
return this.email;
}
getRole() {
return 'employee... |
'use strict';
window.Cordova = function (site) {
/// <summary>
/// Funcionalidades do ambiente Cordova, compilado para mobile.
/// </summary>
/// <returns type="object">Instancia.</returns>
//Singleton
if (!Cordova._instancia) { Cordova._instancia = this; } else { return Cordova._instancia; }... |
//Category
$(function(){
$('#category_enable').click(function() {
$('#category .category').editable('toggleDisabled');
$('#category_enable').text(function(i, text){
return text === "Enable edit mode" ? "Disable edit mode" : "Enable edit mode";
... |
import express from "express";
import cors from "cors";
import albumRouter from "./routes";
const app = express();
app.use(express.json())
app.use(cors())
app.use("/photos", albumRouter)
app.use("/", (req, res, next) => {
res.status(200).json({message: "Welcome to album photos search API"})
next()
})
... |
/*!
* froala_editor v2.0.0-rc.3 (https://www.froala.com/wysiwyg-editor/v2.0)
* License http://editor.froala.com/license
* Copyright 2014-2015 Froala Labs
*/ |
import { Router } from "express";
const router = Router();
router.use((req, res, next) => {
// Use the following code to block illegal request.
// res.status(403).end("Forbidden");
next();
});
router.use("/tpi", require("../../tpi/api").default);
export default router; |
module.exports={A:{A:{"1":"A B","2":"I D F E pB"},B:{"1":"C N O Q J K L b KB NB R S T M V W G bB"},C:{"1":"0 1 2 3 4 5 6 7 8 9 w x y z AB BB CB DB EB FB GB eB IB TB P LB MB X OB PB QB RB JB HB a Z UB VB WB XB SB b KB NB oB R S T M V W G","2":"iB YB H c I D F E A B C N O Q J K L d e f g h i j k l m n o p q r s t u v wB ... |
(function () {
var autosave = (function () {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
var clone = function () {
return Cell(get());
};
... |
/**
* @TYPES
* ===============================================
* APPOINTMENTS
*/
export const APPOINTMENTS_FETCH_ALL = 'APPOINTMENTS_FETCH_ALL'
export const APPOINTMENTS_FETCH_BY_ID = 'APPOINTMENTS_FETCH_BY_ID'
export const APPOINTMENTS_FETCH_BY_CHILD = 'APPOINTMENTS_FETCH_BY_CHILD'
export const APPOINTMENTS_CREATE... |
import React, { useState } from 'react';
import { Link, useHistory } from 'react-router-dom'
import { FiLogIn } from 'react-icons/fi'
import api from '../../services/api'
import './styles.css';
import logoImg from '../../assets/logo.svg';
import heroesImg from '../../assets/heroes.png';
export default function Logo... |
const path = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const HtmlWebpackPlugin = require("html-webpack-plugin");
... |
import React, { Component } from 'react'
import { navigate } from 'gatsby'
import { Link } from "gatsby"
import cardStyles from './card.module.css'
import { Button, Icon } from 'semantic-ui-react'
import Tabs from './tabs'
export class Card extends Component {
state = {
showProjects: false
}
toAbo... |
import React from 'react'
import {Link} from '@reach/router';
import { colors } from '../../theme'
class SignIn extends React.Component {
state = {
username: '', password: ''
}
onChange = (e) => {
this.setState({ [e.target.name]: e.target.value})
}
render() {
return (
<>
<div classNam... |
import React, { Component } from 'react'
import BookList from '../containers/book_list'
import BookDetail from '../containers/book_detail'
export default class App extends Component {
render() {
return (
<div>
<BookList />
<BookDetail />
</div>
)
}
} |
( function ( $, mw ) {
/*jshint onevar: false */
var config = {
wgMonthNames: ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
wgMonthNamesShort: ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']... |
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import { immutableRenderDecorator } from 'react-immutable-render-mixin';
import CSSModules from 'react-css-modules';
import styles from 'styles/App.scss';
@immutableRenderDecorator
@CSSModules(styles, { allowMultiple: true })
c... |
'use strict';
var $ = require('./_')
, LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, anObject = require('./_an-object')
,... |
export { default } from './Axis'; |
const { _ } = require('lib/locale');
const { bridge } = require('electron').remote.require('./bridge');
const InteropService = require('lib/services/InteropService');
const Setting = require('lib/models/Setting');
const md5 = require('md5');
const url = require('url');
const { shim } = require('lib/shim');
class Inter... |
webpackHotUpdate_N_E("pages/index",{
/***/ "./components/PageLayout.tsx":
/*!***********************************!*\
!*** ./components/PageLayout.tsx ***!
\***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpa... |
/**
* Dependencies
*/
const HTTPService = require('../../../http/HTTPService')
const _ = require('lodash')
const handlers = _.values(require('../handlers'))
/**
* SunstoneService
*/
class SunstoneService extends HTTPService {
get handlers () {
return handlers
}
}
/**
* Export
*/
module.exports = Sunst... |
import React from 'react';
import { Box } from '@primer/components';
import TitleCase from './TitleCase';
const ParcelNumberDisplay = ({ value }) => <Box minWidth="150px"><TitleCase value={value} /></Box>;
export default ParcelNumberDisplay; |
var timer = setInterval(timerAction, 500);
var cursorBlinkOn = true;
var cursorVisible = true;
var cursorLineNum = 1;
function timerAction() {
var outputStr = document.getElementById("outputStr");
if (outputStr.innerText !== "") {
if (cursorBlinkOn) {
if (cursorVisible) {
o... |
$(document).ready(function(){
$("#see_more").click(function(){
$("#reveal").slideToggle(300);
});
}); |
export {};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1maWVsZC10eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2J1aWxkLWNsaS9wcm9qZWN0cy9uZ3gtZ3JpZC9zcmMvc3RydWN0dXJlL2ZpZWxkL2NvcmUvZG9tYWluL2ZpZWxkL2RhdGEvZGF0YS1maWVsZC10eXBlcy50cyJdLCJuYW1lcyI... |
;(function($){
"use strict"
var nav_offset_top = $('header').height();
/*-------------------------------------------------------------------------------
Navbar
-------------------------------------------------------------------------------*/
//* Navbar Fixed
function navbarFixed(){
... |
/*
Copyright 2020-2021 Lowdefy, Inc
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 wri... |
import React from "react";
const IconMarkup = ({
mouseDown,
location,
destination,
movement = { x: 0, y: 0, z: 0 },
size,
objectId,
id,
src,
font,
fontColor,
fontSize,
label,
flash,
flashing,
rotation,
opacity,
core,
isSelected
}) => {
if (core) {
opacity = Math.max(0.5, opaci... |
import React, { PropTypes } from 'react';
const Section = React.createClass({
propTypes: {
children: PropTypes.element,
inverted: PropTypes.boolean,
lasertag: PropTypes.boolean
},
render () {
const classes = "small-12 columns section-container" +
(this.props.inverte... |
const RuntimeException = Jymfony.Contracts.HttpClient.Exception.RuntimeException;
/**
* @memberOf Jymfony.Contracts.HttpClient.Exception
*/
export default class ServerException extends RuntimeException {
} |
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Wor... |
// handleEnter allows forms to 'tab' to the next field when the enter key is pushed, instead of submitting
function handleEnter (field, event) {
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (keyCode == 13) {
var i;
for (i = 0; i < field.form.elements.length; i+... |
System.register("ionic/components/modal/modal", ["angular2/angular2", "../overlay/overlay-controller", "../../config/config", "../../animations/animation", "ionic/util"], function (_export) {
/**
* The Modal is a content pane that can go over the user's current page.
* Usually used for making a choice or ... |
import React from "react"
import Title from "../Globals/Title"
export default function Contact() {
return (
<section className="contact py-5">
<Title title={"contact us"} />
<div className="row">
<div className="col-10 col-sm-8 col-md-6 mx-auto">
{/* formspree.io */}
<form... |
'use strict';
let datafire = require('datafire');
let openapi = require('./openapi.json');
let aws = require('aws-sdk');
const INTEGRATION_ID = 'amazonaws_chime';
const SDK_ID = 'Chime';
let integ = module.exports = new datafire.Integration({
id: INTEGRATION_ID,
title: openapi.info.title,
description: openapi.... |
/* eslint-disable */
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true, //enable hot reloading
/**
* This server will only server our inde... |
import React from 'react'
import * as rtl from '@testing-library/react'
import {checkIfInsideAStrictModeTree} from './utils'
describe('checkIfInsideAStrictModeTree', () => {
test('class component', () => {
let isStrictMode
class TestComponent extends React.Component{
static whyDidYouRender = true
... |
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import './index.css';
import moment, { isMoment } from "moment";
class EditarUsuario extends Component {
constructor(props) {
super(props);
this.state = {
usuario: {
nome: "",
... |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/cldr/nls/nb/buddhist",{"days-standAlone-short":"s\u00f8. ma. ti. on. to. fr. l\u00f8.".split(" "),"mo... |
import React from 'react';
import styled from 'styled-components';
import { animated } from 'react-spring';
import { IoLogoGithub } from "react-icons/io";
const Item = styled(animated.div)`
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 6px;
background: #ffffff;
box-shadow: ... |
/* flatpickr v4.3.2, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.no = {})));
}(this, (function (exports) { 'use strict';
var fp = typeof wi... |
// 3rd Party
import React, { Component } from 'react'
import {
Vector2,
Vector3,
Color,
Scene,
PerspectiveCamera,
Quaternion,
Euler,
WebGLRenderer
} from './vendor/three/Three'
import OrbitControls from './vendor/three-orbit-controls/OrbitControls'
import deepAssign from 'deep-assign'
import EventEmit... |
import { helper } from '@ember/component/helper';
import ENV from '../config/environment';
export function rooturl(/*params, hash*/) {
return ENV.rootURL;
}
export default helper(rooturl); |
var poll_loop_8c =
[
[ "poll_node", "structpoll__node.html", "structpoll__node" ],
[ "poll_loop", "structpoll__loop.html", "structpoll__loop" ],
[ "COVERAGE_DEFINE", "poll-loop_8c.html#a3d6f0b9734ccfa27fe9e5fc5493ca14c", null ],
[ "COVERAGE_DEFINE", "poll-loop_8c.html#a640bd96216ca3230cffd4a1262044756",... |
/*! Rappid - the diagramming toolkit
Copyright (c) 2013 client IO
2015-02-04
This Source Code Form is subject to the terms of the Rappid License
, v. 2.0. If a copy of the Rappid License was not distributed with this
file, You can obtain one at http://jointjs.com/license/rappid_v2.txt
or from the Rappid archive ... |
export class Customarrow extends HTMLElement {
constructor() {
super();
this.tailWidth = 0.5;
this.tailLength = 0.5;
this.arrowRotation = 0;
this.tailContraction = 0;
this.peakCollapse = 0;
this.unClosed = false;
this.scaleFactor = 1;
this.storedTailLength = this.tailLength;
}
... |
const path = require("path");
module.exports.set = (opts, options, s3) => {
let challengeKey = path.join(options.directory, opts.challenge.token);
console.log("set", challengeKey);
return s3.putObject({ Key: challengeKey, Body: opts.challenge.keyAuthorization, Bucket: options.bucketName }).promise().then(... |
import React, { useContext, useState } from 'react'
import { BlogpostContext } from './BlogpostList'
import { useHistory, useParams } from 'react-router-dom'
import { useFormik } from 'formik'
import { toast } from 'react-toastify'
import 'react-toastify/dist/ReactToastify.css'
import * as yup from 'yup'
import DatePic... |
'use strict';
const path = require('path');
const fs = require('fs');
const url = require('url');
const clearConsole = require('react-dev-utils/clearConsole');
const logger = require('razzle-dev-utils/logger');
// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/creat... |
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack to load favicon.ico
import './styles/s... |
const { resolve, join } = require('path')
const { readdirSync } = require('fs')
const i18nExtensions = require('vue-i18n-extensions')
const {
MODULE_NAME,
ROOT_DIR,
PLUGINS_DIR,
TEMPLATES_DIR,
DEFAULT_OPTIONS,
NESTED_OPTIONS,
LOCALE_CODE_KEY,
LOCALE_ISO_KEY,
LOCALE_DOMAIN_KEY,
LOCALE_FILE_KEY,
ST... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
import PropTypes from 'prop-types';
import { useDispatch } from 'react-redux';
import { deleteBook } from '../../redux/books/books';
import './ActionButtons.css';
const ActionButtons = ({ id }) => {
const dispatch = useDispatch();
const handleRemove = () => dispatch(deleteBook(id));
return (
<div className... |
// 域名
const HOST = 'https://cnodejs.org/api/v1'
export default {
// 主题首页
get_topics: `${HOST}/topics`,
// 主题详情
get_topic_id: `${HOST}/topic`,
// 新建主题
post_topics: `${HOST}/topics`,
// 编辑主题
post_topics_update: `${HOST}/topics/update`,
// 验证 accessToken 的正确性
post_accesstoken_check: `${HOST}/accesstok... |
import EmberObject from '@ember/object';
import Component from '@ember/component';
import { A } from '@ember/array';
import RSVP, { defer, reject, resolve } from 'rsvp';
import { module, skip } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import {
blur,
click,
fillIn,
focus,
render,
settl... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const RecoverySchema = new Schema({
ip: {
type: String,
required: true
},
token: {
type: String,
required: true
},
user:{
type: mongoose.Schema.Types.ObjectId,
required: true
},... |
function _extends() { _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; }; return _extends.apply(this, arguments); }
i... |
const xlsx = require('node-xlsx');
const path = require('path');
const fs = require('fs');
const CSV_FILEPATH = path.join(__dirname, '../src/i18n/translations.xls');
const workSheetsFromFile = xlsx.parse(CSV_FILEPATH);
function writeJsonTranslationFile(langCol, filename) {
const languages = {};
const { data } =... |
// Copyright 2014 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.
cr.define('options', function() {
/**
* SupervisedUserListData class.
* Handles requests for retrieving a list of existing supervised users which
... |
import { resolve } from 'path'
import preprocess from 'svelte-preprocess'
import adapter from '@sveltejs/adapter-static'
import { mdsvex } from "mdsvex"
import remarkHeadingId from 'remark-heading-id'
// import { plugin: mdPlugin, Mode } from 'vite-plugin-markdown'
/** @type {import('@sveltejs/kit').Config} */
const ... |
'use strict';
describe('Pronouns E2E Tests:', function () {
describe('Test pronouns page', function () {
it('Should report missing credentials', function () {
browser.get('http://localhost:3001/pronouns');
expect(element.all(by.repeater('pronoun in pronouns')).count()).toEqual(0);
});
});
}); |
'use strict';
const Client = require('./Client');
const Server = require('./Server');
module.exports.Server = Server;
module.exports.Client = Client; |
const Chef = require('../models/Chef')
const File = require('../models/File')
const Recipe = require('../models/Recipe')
module.exports = {
async index(req, res) {
try {
let chefs = await Chef.findAll()
return res.render("admin/chefs/chefs", {
chefs
})
} catch (err) {
console... |
#!/usr/bin/env node
'use strict'
const SugoHub = require('../../lib/sugo_hub')
const asleep = require('asleep')
const sugoActor = require('sugo-actor')
const {Module} = sugoActor
;(async () => {
const {port} = process.env
const hub = new SugoHub({
storage: `${__dirname}/../tmp/testing-local-storage-for-mock`... |
window.onload = () => {
var pos = navigator.geolocation.getCurrentPosition(function (position) {
const latitude = position.Latitude;
const longitude = position.Longitude;
return `latitude: ${latitude}; longitude: ${longitude};`
let places = staticLoadPlaces(latitude,longitude);
rend... |
/*!
* MLP.Client.Components.IAT.Canvas.Info
* File: iat.canvas.info.js
* Copyright(c) 2021 Runtime Software Development Inc.
* MIT Licensed
*/
import { getModelLabel } from '../../_services/schema.services.client';
import Button from '../common/button';
import { sanitize } from '../../_utils/data.utils.client';
i... |
var PxTriangleMeshGeometry_8h =
[
[ "PxMeshGeometryFlags", "group__geomutils.html#gab335a00d0493a23fed5423bc3ea9e463", null ]
]; |
const AWS = require('aws-sdk');
const dynamo = new AWS.DynamoDB.DocumentClient();
//READS MESSAGE QUEUE FOR A USER
//DOES NOT HANDLE THE DNE CASE!
exports.handler = async (event, context) => {
let body;
let statusCode = '200';
const headers = {
'Content-Type': 'application/json',
"Access... |
/* @flow */
/* eslint-env browser */
import 'griddi/wpFixes'
import {merge} from 'node-config-loader/common'
import browserInit from 'rdi-bootstrap/browser'
import {ErrorPage, FallbackPage} from 'rdi-ui-common'
// import staticConfig from 'rdi-config/.configloaderrc'
import {rdi, pages, routes} from './modules'
cons... |
/*!
* Start Bootstrap - Agency v5.2.2 (https://startbootstrap.com/template-overviews/agency)
* Copyright 2013-2019 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE)
*/
let i = 0;
let text = " Hi, I'm Shawn! "; /* The text */
let speed = 200; /* The... |
var entitiesToGraph = [];
function setSimulationResults(){
entitiesToGraph = [];
getEntitiesToGraph();
clearForm();
if (USE_UDO){
createUDOResultForm();
} else{
createPingResultForm();
}
}
function getEntitiesToGraph(){
for (var i = 0; i < QueueApp.models.length;i++){
checkEntityToAdd(QueueApp.models[i... |
import React, {Component} from "react";
import {connect} from "react-redux";
import AnimateHeight from 'react-animate-height';
import Icon from "../icon";
import Arrow from "../arrow";
import Action from "../action";
import * as actions from "../../actions";
class LibraryCourse extends Component{
constructor(props){... |
exports.BattlePokedex = {
bulbasaur:{num:1,species:"Bulbasaur",types:["Grass","Poison"],genderRatio:{M:0.875,F:0.125},baseStats:{hp:45,atk:49,def:49,spa:65,spd:65,spe:45},abilities:{0:"Overgrow",DW:"Chlorophyll"},heightm:0.7,weightkg:6.9,color:"Green",evos:["ivysaur"],eggGroups:["Monster","Plant"]},
ivysaur:{num:2,spec... |
"use strict";
const AddressOnlyWallet = require("../AddressOnlyWallet");
const _sample = require("lodash/sample");
const Transport = require("@ledgerhq/hw-transport-u2f").default;
const LedgerEth = require("@ledgerhq/hw-app-eth").default;
const decryptWalletCtrl = function(
$rootScope,
$scope,
$sce,
... |
import React from 'react';
import { Map, TileLayer } from 'react-leaflet';
export const ChangeMapTile = () => {
const position = [28.7041, 77.1025];
return (
<Map center={position} zoom={13}>
<TileLayer
attribution='&copy <a href="https://earthdata.nasa.gov/eosdis/science-system-description/e... |
import React, { Component } from 'react';
import {
Jumbotron,
Button,
Col, Row,
UncontrolledCarousel,
Card, CardBody
} from 'reactstrap';
class DashboardContainer extends Component {
render() {
return (
<div>
Dashboard
</div>
)
}
}
... |
/*! jQuery UI - v1.11.4 - 2016-01-15
* http://jqueryui.com
* Includes: core.js, datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
export {default as SeatsioSeatingChart} from './SeatsioSeatingChart'
export {default as SeatsioEventManager} from './SeatsioEventManager'
export {default as SeatsioChartManager} from './SeatsioChartManager'
export {default as SeatsioDesigner} from './SeatsioDesigner' |
var searchData=
[
['vector_2ehpp',['vector.hpp',['../vector_8hpp.html',1,'']]]
]; |
"use strict";
var inherits = require('util').inherits;
var extend = require('xtend');
var FixtureProvider = require('./fixture.js');
var version = require('../package.json').version;
module.exports = DefaultFixtures;
inherits(DefaultFixtures, FixtureProvider);
function DefaultFixtures(opts) {
var self = this;
... |
'use strict';
var S = require('..');
var eq = require('./internal/eq');
test('sub_', function() {
eq(typeof S.sub_, 'function');
eq(S.sub_.length, 2);
eq(S.sub_.toString(), 'sub_ :: FiniteNumber -> FiniteNumber -> FiniteNumber');
eq(S.sub_(1, 1), 0);
eq(S.sub_(-1, -1), 0);
eq(S.sub_(7.5, 2), 5.5);
e... |
(Math.log(this.minReal)/Math.LN10-Math.log(this.fullMin)*Math.LOG10E)/g;this.relativeEnd=r/g}else this.relativeStart=d.fitToBounds((this.min-this.fullMin)/(this.fullMax-this.fullMin),0,1),this.relativeEnd=d.fitToBounds((this.max-this.fullMin)/(this.fullMax-this.fullMin),0,1);var r=Math.round((this.maxCalc-this.minCalc)... |
// @ts-check
const utils = require('@monorepolint/utils')
const jestDiff = require('jest-diff').default
const r = require('runtypes')
module.exports = {
check: function expectAlphabeticalDependencies(context) {
checkAlpha(context, 'scripts')
},
optionsRuntype: r.Undefined,
}
function checkAlpha(context, blo... |
/* *******************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mozilla.org/en... |
const selectAudio = document.getElementById("selectAudio");
const selectFreq = document.getElementById("selectFreq");
chrome.storage.sync.get(["audio", "freq"], data => {
for (const option of selectAudio.options) {
if (option.value === data.audio) option.setAttribute("selected", true);
else option.removeAttr... |
import { router } from "./router.js";
import { AppShell } from "./shell.js";
/**
* @param {import('./shell-wordings.js').ShellWordings} wordings
*/
export function App(wordings, onClick = false) {
if (onClick) {
document.body.addEventListener(
"click",
() => {
/** @type {HTMLElement} */ (do... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.