text stringlengths 2 1.04M |
|---|
const Joi = require("joi");
const years = [
"school",
"juniorCollege",
"degreeCollege",
"engineeringDegree",
"diplomaEngineering",
];
const references = ["friends", "socialMedia", "website", "personalContact"];
Object.freeze(years);
Object.freeze(references);
const name = Joi.string()
.trim()
.min(2)
... |
/**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 - 2018 Esri. 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
//
// h... |
var url = 'http://top.baidu.com/buzz?b=26&c=1&fr=topcategory_c1';
var read = require('./read');
var write = require('./write');
var async = require('async');
var Movie = require('./db').Movie;
async.waterfall([
function(cb){
//清空原有的集合
Movie.remove({},cb);
},
function(data,cb){
//读取所有... |
/**
@module ember
@submodule ember-templates
*/
import { keyword } from 'htmlbars-runtime/hooks';
import closureAction from 'ember-routing-htmlbars/keywords/closure-action';
/**
The `{{action}}` helper provides a way to pass triggers for behavior (usually
just a function) between components, and into components f... |
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var utils_1 = require("@sentry/utils");
var scope_1 = require("./scope");
/**
* API compatibility version of this hub.
*
* WARNING: This number should only be increased when the global interface
* changes and new methods ... |
const debug = require('debug')('ring-mqtt')
const colors = require( 'colors/safe' )
const utils = require( '../lib/utils' )
const AlarmDevice = require('./alarm-device')
class MultiLevelSwitch extends AlarmDevice {
async init(mqttClient) {
// Home Assistant component type and device class (set appropriate ... |
$(document).ready(function () {
// btncloseLogin
$('#btncloseLogin').on('click', function () {
hiddennotificationNull();
});
// closeModalLogin
$('#loginModal').on('hidden.bs.modal', function (e) {
hiddennotificationNull();
})
// btnLogin
$('#btnLogin').on('click', function () {
Login();
});
// Quan ... |
macDetailCallback("e8e875000000/24",[{"d":"2012-12-23","t":"add","a":"8 Quatro Crescent\nBrampton Ontario L6P 2T4\n\n","c":"CANADA","o":"iS5 Communications Inc.","s":"wireshark.org"},{"d":"2013-01-31","t":"delete","a":"8 Quatro Crescent\nBrampton Ontario L6P 2T4\n\n","c":"CANADA","o":"iS5 Communications Inc."},{"d":"20... |
var classSimTK_1_1Measure___1_1Result =
[
[ "Implementation", "classSimTK_1_1Measure___1_1Result_1_1Implementation.html", "classSimTK_1_1Measure___1_1Result_1_1Implementation" ],
[ "Result", "classSimTK_1_1Measure___1_1Result.html#aeaed06e8d26434f2113a74c4b9826875", null ],
[ "SimTK_MEASURE_HANDLE_PREAMBLE"... |
import React, {Component} from 'react'
import PropTypes from 'prop-types';
const IntContext = React.createContext();
export class IntProvider extends Component {
state = {
int: typeof window !== 'undefined' && window && window.localStorage.getItem('int') || 'cz',
}
changeToEn = () => {
const windowGloba... |
import React, {useState} from 'react';
//pass in books from bookshelf
const BookForm = (props) => {
const [books, setBooks] = useState(props.);
console.log(props);
console.log(props.allBooks);
console.log(props.allBooks.book);
setBooks(props.allBooks.book);
console.log(books);
const [en... |
/**
* @license
* Copyright 2016 Google 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 ... |
var UA = require('./useragent-base');
module.exports = function (ua) {
var uaData = new UA(ua);
var match;
var tmpMatch;
// handle mobile device
if (uaData.device.type === 'mobile' || uaData.device.type === 'tablet') {
// get manufacturer through the key words
if (match = ua.match(/... |
import app from './server/server.js'
const port = process.env.PORT || 5000
app.listen({ port: port }, () => console.log(`Server listening on port ${port}`)) |
import * as deptDefs from '../../../definitions/departments'
import * as hallsDefs from '../../../definitions/halls'
const getDeptName = (key) => {
if (key in deptDefs.displayNames) {
return 'midName' in deptDefs.displayNames[key]
? deptDefs.displayNames[key].midName
: deptDefs.displayNames[key].shor... |
import { Component } from 'react'
import { connect } from 'react-redux'
import { Alert } from 'shared/components/elements'
import classes from './style.scss'
class ModalContainer extends Component {
componentWillReceiveProps (nextProps){
const html = document.querySelector("html").style.overflowY != "hidden"
... |
import React, {useState, useEffect, useRef} from 'react';
import './AdobeProducts.css'
function AdobeProducts() {
const [isActive, setIsActive] = useState(false);
const menuRef = useRef("menu");
function handleDropdown() {
setIsActive(!isActive);
}
useEffect(() => {
function check... |
import { V3 } from "../math/V3.js";
import { J_BALL, J_GLOBAL, J_LOCAL, PI, TORAD } from "../constants.js";
class Joint3D {
constructor() {
this.rotor = PI;
this.min = -PI;
this.max = PI;
this.freeHinge = true;
this.rotationAxisUV = new V3();
this.referenceAxisUV = new V3();
this.type =... |
'use strict';
module.exports = {
app: {
title: 'Music App',
description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js',
keywords: 'mongodb, express, angularjs, node.js, mongoose, passport',
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTIC... |
import { useMiddleware } from "react-middleware";
import { useRecordFolder } from "react-record-folder";
import { produceKeyedAction } from "kvdux-immer";
// ".//namespace/key/path/subpath".split("")
// "./namespace//key/path/subpath"
// TextField.js
export const TextFieldRecord = ({ value = "" } = {}) => ({ value })... |
miaou(function(broadcast, fmt, links, locals, md, ms, plugins, ws){
function show(bm){
console.log('bm:', bm);
md.notificationMessage(function($c){
var md = "*@"+bm.author.name+
" broadcasts from room ["+bm.room.name+"]("+bm.room.id+"#"+bm.mid+"):*\n"+
bm.content;
var $div = $("<div>").html(fmt.mdTe... |
import request from '@/utils/request'
const client_id = 'web'
const client_secret = '123456'
const scope = 'server'
// 登录方法
export function login(username, password, code, uuid) {
const grant_type = 'password'
return request({
url: '/auth/oauth/token',
method: 'post',
params: { username, password, cod... |
// @ts-check
import analyticModules from './modules';
const globalProperties = {};
/**
* @type {import('./main').IAnalytics}
*/
export const Analytics = {
/**
* @param {import("./main").InitializeParams} options
*/
initialize(options) {
const optionsData = {
firebaseAuth: null,
forceSignIn... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
"extends": [
"@fluidframework/eslint-config-fluid/eslint7"
],
"parserOptions": {
"project": ["./tsconfig.json", "./src/test/tsconfig.json"]
},
"rules": {
... |
/**
* 维度编辑组件 - 受控组件
* 1. 对外展示是一个显示值&按钮
* 2. 点击按钮会弹出编辑模态框编辑
* 3. 只读时只显示 显示值
* 4. 支持 showValue 属性, 控制 显示值显示
* 5. 只有在模态框点击确认时 才会触发 onChange
*
* 注意, url 在这里是没有 host, port 等的, 只能从 pathname 开始
* [pathname][?[search]][#[hash]]
* @author WY <yang.wang06@hand-china.com>
* @creationDate 2019/11/22
* @copyright 2019 ®... |
/// <reference types="Cypress" />
class InsertOptionsForAttributesDialog {
attributesByDataTypeSelect() {
return cy.get('#DataTypeBtAtrr_listBox');
}
attributesSelect() {
return cy.get('#Atrr_listBox');
}
cancelButton() {
return cy.get('#Cancel_button');
}
}
export defau... |
var timeDelta = require('../lib/time-delta.js');
timeDelta.addLocale('mg_mg', {
"long": {},
"narrow": {},
"short": {
"years": {
"other": "{0} y"
},
"months": {
"other": "{0} m"
},
"weeks": {
"other": "{0} w"
},
"days... |
var classxpcc_1_1gui_1_1_arrow_button =
[
[ "ArrowButton", "classxpcc_1_1gui_1_1_arrow_button.html#a308f33377313f8d2dd5cafcbb06b71a5", null ],
[ "render", "classxpcc_1_1gui_1_1_arrow_button.html#ada2b4a24af7abeb23abb42392971735b", null ]
]; |
/**
* Converts `array` to an `arguments` object.
*
* @private
* @param {Array} array The array to convert.
* @returns {Object} Returns the converted `arguments` object.
*/
function toArgs(array) {
return (function () {
return arguments
}.apply(undefined, array))
}
/*------------------------------... |
/*
cron "0 0/10 * * * ?" ql_aiqichaShop.js
爱妻查商城监控
多商品请用逗号分割 格式:AQ03006,AQ03007,AQ03008 青龙变量aqcGood
默认定时每一个小时 如需自定义请自己设置cron
AQ03006 爱奇艺月卡
AQ03007 爱奇艺季卡
AQ03008 京东50E卡
AQ03009 百度网盘会员月卡
AQ03010 百度网盘超级会员月卡
仓库地址:https://github.com/WindFgg/Scripts
*/
const $ = new Env("爱妻查商城监控");
const axios = require("axio... |
function a() {
// do not concat i=20,i2=30
var b = 1;
c();
var d = 2;
} |
import { useStaticQuery, graphql } from 'gatsby';
const usePropiedades = () => {
const datos = useStaticQuery(graphql`
query {
allStrapiPropiedades {
nodes {
nombre
descripcion
id
wc
p recio
estacionamiento
habitaciones
categoria {
... |
define(['util/promise', 'jquery'], function() {
return new Promise(function(fulfill, reject) {
if (typeof lumifyData !== 'undefined' && lumifyData.readyForDataRequests) {
fulfill();
} else {
$(document).one('readyForDataRequests', function() {
fulfill();
... |
#!/usr/bin/env node
'use strict';
var lookup = require('../');
var program = require('commander');
program
.version(require('../package.json').version)
.usage('[options] <path>')
.option('-f, --filename [path]', 'file containing the dependency')
.option('-d, --directory [path]', 'location of all stylus files... |
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { mount } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
import ConnectedMainWindow, { MainWindow } from './MainWindow.js';
import { MainInput } from './MainInput.js';
im... |
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "app" }] */
const { resolveFromVersion } = require('../../utils/resolve.utils');
const responseUtils = require('../../utils/response.utils');
const errors = require('../../utils/error.utils');
/**
* @description Construct a resource with base_version/uscore p... |
import React from 'react';
import { merge } from '@fantaptik/react-material';
import GridContext from '../Grid/context';
// NB: This component intentionally ignored by styleguidist.
const Label = ( { className, ...props } ) => {
const { data : { data }, pages : { itemCount } } = React.useContext( GridContext );... |
import React from 'react';
import styled from 'styled-components';
import Modal from '../../components/Modal/Modal';
import { CancelButton } from '../Student/StudentModalView.styled';
function ClassModalView({ open, onClose }) {
return (
<ModalClassView open={open}>
<h2>Class: Information technology</h2>
... |
import express from "express";
import fetch from "node-fetch";
import cors from "cors";
// @ts-ignore
import dotenv from "dotenv";
import cookieParser from "cookie-parser";
dotenv.config();
const app = express();
app.use(cors());
// online test
app.use(cookieParser());
app.get("/", (req, res) => {
res.send("Hello W... |
// Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error.
class C {
}
class D extends C {
}
(function(D1) {
D1.y = D.bar;
})(D || (D = {
})); |
webpackHotUpdate(11,{
/***/ "./node_modules/css-loader/index.js?{\"minimize\":true,\"importLoaders\":1,\"sourceMap\":true,\"root\":\"~\",\"alias\":{\"/static\":\"/Users/ziyangzhan/Code/kute/dev/static\",\"/assets\":\"/Users/ziyangzhan/Code/kute/dev/assets\"}}!./node_modules/vue-loader/lib/style-compiler/index.js?{\"vu... |
const Booking = require('../models/Booking');
module.exports = {
async store(req, res) {
const { booking_id } = req.params;
const booking = await Booking.findById(booking_id).populate('spot');
booking.approved = true;
await booking.save();
const bookingUserSocket = req.c... |
/*
Implement a function that outputs the Look and Say sequence:
The first term is "1"
Second term is "11", generated by reading first term as "One 1"
(There is one 1 in previous term)
Third term is "21", generated by reading second term as "Two 1"
Fourth term is "1211", generated by reading third term as "One 2 One 1... |
define(['dashboard/module', 'lodash', 'jquery'], function (module) {
'use strict';
module.registerController('DashboardCtrl', function ($scope,$modal,$log,$interval, CalendarEvent,dashboardService) {
dashboardService.listHistory(function(data) {
$scope.history = data;
});
... |
///////////////////////////////
// Side Navigation Functions //
///////////////////////////////
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
//////////////////////////
// Initialize Site //
/... |
// PWA Code adapted from https://github.com/pwa-builder/PWABuilder
const CACHE = "pwa-precache-v1";
const precacheFiles = [
"/index.html",
"/js/predictions.js",
"/js/scripts.js",
"/js/libs/jquery.min.js",
"/css/styles.css",
];
self.addEventListener("install", function (event) {
console.log("[PWA] Install E... |
import React, { PureComponent } from 'react'
import bitcoingirl from "../assets/img/bitcoingirl.jpg"
import deskgirl from "../assets/img/deskgirl.jpg"
import arguy from "../assets/img/arguy.jpg"
function Board() {
const people= [
{
name: 'Pinky',
designation:'Project Manager',
... |
import axios from 'axios';
export default {
async fetchIncidents({ commit })
{
//const response = service.addTask(task);
const response = await axios.get('https://localhost:44392/api/Incidents');
commit('setIncidents',response.data)
},
async addIncident({commit},item)
{
commit('addIncidence',... |
/**
* SPDX-License-Identifier: Apache-2.0
*/
const requtil = require('./requestutils.js');
const dbroutes = (app, platform) => {
const proxy = platform.getProxy();
const statusMetrics = platform.getPersistence().getMetricService();
const crudService = platform.getPersistence().getCrudService();
app.get(... |
var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
app: './src/app.ts',
},
plugins: [
new HtmlWebpackPlugin({
title: 'Production',
}),
],
}; |
search_result['3881']=["topic_000000000000094F.html","SelectionProcessExecuteCommand Constructor",""]; |
import * as React from "react"
import PropTypes from "prop-types"
import * as styles from "./layout.module.css"
import Nav from "./Nav"
console.log(styles)
const Layout = ({ children }) => {
return (
<div className={styles.root}>
<Nav />
<div className={styles.sideBarLeft}>
<p>left</p>
... |
#!/usr/bin/env node
let { readdirSync, readFileSync, writeFileSync } = require('fs')
let { join, extname } = require('path')
let { jsonify } = require('postcss-parser-tests')
let parse = require('../parse')
let dir = join(__dirname, 'cases')
readdirSync(dir)
.filter(i => extname(i) === '.sss')
.forEach(name => {... |
import React, { useContext, useEffect, useRef, useState } from "react";
import { makeStyles } from "@material-ui/core/styles";
import Paper from "@material-ui/core/Paper";
import SearchIcon from "@material-ui/icons/Search";
import InputBase from "@material-ui/core/InputBase";
import Tabs from "@material-ui/core/Tabs";... |
'use strict';
var camelcase = require('camel-case');
/**
* Helper for sorting pages before rendering
*/
module.exports = function(items, order, options) {
if (!Array.isArray(order)) {
return items;
}
var len = order.length;
var arr = new Array(len);
for (var i = 0; i < len; i++) {
var item = filt... |
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const { ESBuildMinifyPlugin } = require("esbuild-loader");
const swcconf = require("./swc.config.json");
/** @type {import('webpack').Configuration} */
m... |
var searchData=
[
['opus_5fencoder_2eh',['opus_encoder.h',['../opus__encoder_8h.html',1,'']]]
]; |
'use strict';
var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
imagemin = require('gulp-imagemin'),
concat = require('gulp-concat'), // 文件合併
notify = require('gulp-notify'),
cache = require('gul... |
import PncPage from "../elements/pages/PncPage";
import ProjectDetailPage from "../elements/pages/ProjectDetailPage";
import ProjectsListPage from "../elements/pages/ProjectsListPage";
import BuildConfigDetailPage from "../elements/pages/BuildConfigDetailPage";
import BuildDetailPage from "../elements/pages/BuildDetail... |
import React from "react"
import { graphql } from "gatsby"
import { injectIntl, IntlContextConsumer } from "gatsby-plugin-intl"
import Tree from "../organisms/Tree"
import ItemList from "../organisms/ItemList"
import GeneralPageTemplate from "./generalPageTemplate"
const TagsPageTemplate = ({ pageContext, intl, data }... |
define(['exports'], (function (exports) { 'use strict';
var main2 = 42;
exports["default"] = main2;
Object.defineProperty(exports, '__esModule', { value: true });
})); |
import React, { useContext } from 'react'
import { TaskListContext } from '../contexts/TaskListContext'
const Task = ({ task }) => {
const { removeTask, findItem } = useContext(TaskListContext)
return (
<li className="list-item">
<span>{task.title} </span>
<div>
<button
className=... |
import express from 'express';
import http from 'http';
import fs from 'fs';
import path from 'path';
import logger from 'morgan';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
import db from './server/config/db';
/** Configure App Express */
const app = express();
// usage for midd... |
/*
*
* Copyright 2016-2017 Red Hat, Inc, and individual contributors.
*
* 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... |
class Class {
static get(className){
return Function(`return (${className})`)();
}
} |
/**
* Kendo UI v2021.2.511 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
const Artist = require("./Artist");
class Song {
constructor(data) {
this._patch(data);
}
_patch(data) {
this.title = data.name;
this.id = data.id;
this.image = data.image;
this.thumbnail = data.thumbnail;
this.duration = data.duration * 1000;
this.... |
class UUV {
constructor(x, y, heading, debug = true) {
this.position = new p5.Vector(x, y);
this.heading = heading;
this.power = 0;
this.debug = debug;
this.target = null;
this.deltaSteerVel=0;
}
setTarget(t) {
this.target = t;
}
draw() {
... |
import {
getAudioConfig, isHeaderPattern, getHeaderLength, getFullFrameLength, isHeader, probe,
initTrackConfig, getFrameDuration, parseFrameHeader, appendFrame
} from '../../../src/demux/adts';
import { ErrorTypes } from '../../../src/errors';
const sinon = require('sinon');
describe('getAudioConfig', function (... |
module.exports = (config) => {
const infoFooter = "([Support TriviaBot on Patreon](https://www.patreon.com/LakeYS)) ([Contribute questions to the database](http://lakeys.net/triviabot/contribute))";
// TODO: Refactor this mess
const footerString = `Commands: \`${config.prefix}play <category>\`, \`${config.prefix... |
(function() {
'use strict';
angular
.module('myapp')
.run(runBlock);
/** @ngInject */
function runBlock($log) {
$log.debug('runBlock end');
}
})(); |
import styles from './bar.css';
// eslint-disable-next-line no-console
console.log('this is bar.js', styles.test); |
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
// Consts and Libs
import { AppStyles } from '@theme/';
// Components
import { Text } from '@ui/';
/* Component ==================================================================== */
const Placeholder = ({ text }) =>... |
const path = require('path')
module.exports = {
rootDir: path.resolve(__dirname, '../'),
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'\\.(css|less|scss|sass)$': '<rootDir>/test/__mocks__/styleMock.js'
},
transform: {
'^.+\\.js$': '<rootDir>/nod... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable no-param-reassign */
import { PropertyFactory, BaseProperty } from "@fluid-experimental/property-properties"
import { PropertyProxy } from './propertyProxy';
import { PropertyProxy... |
'use strict';
module.exports = {
db: 'mongodb://localhost/ponto-dev',
app: {
title: 'Ponto - Development Environment'
},
google: {
clientID: process.env.GOOGLE_ID || '64358772177-lqtq513bcp3kuve4rqn91gvqdrrbefel.apps.googleusercontent.com',
clientSecret: process.env.GOOGLE_SECRET || 'LWyL8-_RDOsyfm9BeMOI3BDj... |
module.exports=require('../../decode-ranges.js')('ghAJAAAKBCAs9AHAoAAg4AhHANACAizAgqKAAjqBg1OeAkEBwTzBirADFk2BsUHsDBh7CjlCCAgmDBBk5BlhDitBACjaEg9Bu7BICw3jAnRB3T6BkMCjiEl9BhVBheAiWCiSCh-AkKA1JjCADioAJAAAKBCAhAABAwQ5AgvAwSFAjGAoZFwUGGhvDxOtD') |
import { queryFilter } from '@/services/api';
export default {
namespace: 'filter',
state: {},
effects: {
*fetch({ payload, callback }, { call, put }) {
const response = yield call(queryFilter, payload);
if (callback) callback(response);
},
},
reducers: {},
}; |
// https://github.com/babel/babel/issues/8673
require("@babel/register")({
extensions: [".ts", ".tsx"],
cwd: __dirname
}); |
const fuzzy = require('fuzzy');
const inquirer = require('inquirer');
const shell = require('shelljs');
const safeEval = require('safe-eval');
const { enums } = require('@arcblock/forge-proto');
const { fakeMessage } = require('@arcblock/forge-message');
const { symbols, hr, pretty } = require('core/ui');
const { creat... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.Poll = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor... |
// @ts-check
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
import {
describeConformance,
act,
createRenderer,
fireEvent,
screen,
focusVisible,
simulatePointerDevice,
programmaticFocusTriggersFocusVisible,
} from 'test/utils';
import PropTypes from 'pro... |
'use strict'
const WFSM = require('../src/index.js');
var assert = require('assert');
var fs = require('fs');
it('removeEpsilon', function() {
var wfsm = new WFSM();
wfsm.setE( 0, 1, 'a', 'a', 0.25 );
wfsm.setE( 0, 1, wfsm.EPS, wfsm.EPS, 0.5 );
wfsm.setE( 1, 1, wfsm.EPS, wfsm.EPS, 0.2 );
wfsm.setE( 1, 0, 'b', ... |
/**
* Copyright (c) 2014 brian@bevey.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, pu... |
import React from 'react';
import PropTypes from 'prop-types';
import Paper from '@material-ui/core/Paper';
import common from '../../../common';
const { VirtualizedTable } = common.components;
function KubectlNodes({ items }) {
return (
<div style={{ height: 400 }}>
<Paper style={{ width: '100%', height... |
macDetailCallback("d075be000000/24",[{"d":"2011-01-04","t":"add","a":"4655 Aircenter Circle\nReno Nevada 89502\n\n","c":"UNITED STATES","o":"Reno A&E"},{"d":"2013-01-30","t":"change","a":"4655 Aircenter Circle\nReno Nevada 89502\n\n","c":"UNITED STATES","o":"Reno A&E"},{"d":"2013-01-31","t":"change","a":"4655 Airce... |
const fs = require('fs');
const {
getImportResolver,
} = require('./build-system/babel-config/import-resolver');
const {
forbiddenTermsGlobal,
forbiddenTermsSrcInclusive,
} = require('./build-system/test-configs/forbidden-terms');
const importAliases = getImportResolver().alias;
/**
* Dynamically extracts exp... |
const EventEmitter = require('events');
let grudges = [];
const store = new EventEmitter();
const storedGrudges = localStorage.getItem('grudges');
if (storedGrudges) { grudges = JSON.parse(storedGrudges); }
store.all = () => grudges.concat([]);
store.create = ({ name, offense }) => {
grudges = grudges.concat({ n... |
module.exports = {
requestContext: {
authorizer: {
Id: "90007bb0-5848-4fb7-a04a-dd87e07e86c5"
}
},
pathParameters: {
id: "08939052-f18c-471a-b2aa-8316a5aa5538"
}
} |
import { Selector } from 'redux-testkit';
import { profileDataSelector } from '../../../src/store/selectors/user';
import { user } from './helpers';
import state from '../helpers/state';
describe('user selectors', () => {
it(' select profile data by username', () => {
const result = {
id: 'usfdlkfjfd... |
import { elements } from "./base";
export function renderPlayIcon() {
const markup = `
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="23">
<path fill="#000000" fill-rule="evenodd" d="M19.472 10.404L1.895.257C.93-.301.129.082.015 1.097A2.28 2.28 0 0 0 0 1.351V21.65c0 1.202.853 1.694 1.894 1.094l1... |
import React from 'react'
import { Link, graphql } from 'gatsby'
import styled from "styled-components"
import Layout from '../components/layout'
import {FlexMain2, Content2,Flex} from '../components/style'
export default () => (
<Layout>
<FlexMain2>
<Content2>
<h1>Form submitted</h1>
... |
import { ActionTypes } from '../../common/constants/action-types';
import { STATUS_ERROR_400, STATUS_ERROR_401, STATUS_ERROR_422, SUCCESS_200, URL_BASE } from '../../util';
import Cookies from 'js-cookie';
import * as R from 'ramda';
const fetchCredentials = (url, args) => fetch(url, {
credentials: 'include',
cach... |
// Initialize the engine with a location and inject into page
const container = document.getElementById( 'container' );
const peakList = document.getElementById( 'peak-list' );
const peakListOverlay = document.getElementById( 'peak-list-overlay' );
const title = document.getElementById( 'title' );
const subtitle = docu... |
import React from "react";
import styled from "styled-components";
const GridColumn = styled.div`
padding: 0 1rem;
@media all and (max-width: 1024px) {
grid-column: 1 / span 4;
}
@media all and (min-width: 1025px) {
grid-column: 1 / span 3;
}
`;
class ContentGridMain extends React.Component {
rende... |
"use strict";
exports.__esModule = true;
exports.UnaryExpression = UnaryExpression;
exports.DoExpression = DoExpression;
exports.ParenthesizedExpression = ParenthesizedExpression;
exports.UpdateExpression = UpdateExpression;
exports.ConditionalExpression = ConditionalExpression;
exports.NewExpression = NewExpression;
... |
let nock = require('nock');
module.exports.testInfo = {"uniqueName":{},"newDate":{}}
nock('https://keyvault_name.vault.azure.net:443', {"encodedQueryParams":true})
.post('/keys/recoverKeyName-cangetadeletedkey-/create')
.query(true)
.reply(401, {"error":{"code":"Unauthorized","message":"Request is missing a Bea... |
CKEDITOR.plugins.setLang('youtube', 'he', {
button : 'שבץ וידאו של YouTube',
title : 'שבץ וידאו של YouTube',
txtEmbed : 'הדבק את קוד השיבוץ כאן',
txtUrl : 'הדבק כתובת וידאו YouTube',
txtWidth : 'אורך',
txtHeight : 'גובה',
chkRelated : 'הצג סרטונים מומלצים בסוף הודיאו',
txtStartAt : 'התחל ב (ss או mm:ss או hh:m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.