text
stringlengths
2
1.04M
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.d3_scale_chromatic = global.d3_scale_chromatic || {}))); }(this, function (exports) { 'use strict'; var ve...
//Header import React from 'react'; function Header() { return ( <header> <h4>Hello navigator!!! Let's see what inside the ocean?</h4> </header> ); } export default Header;
import { __decorate } from "tslib"; import { Component, Vue } from "vue-property-decorator"; import { compareSync } from "bcryptjs"; let GlobalEncryptMixin = class GlobalEncryptMixin extends Vue { constructor() { super(...arguments); this.globalPassword = ""; } get encryptOptions() { ...
var get = require('lodash.get') const { intl, getActionTranslations } = require('./intl') const { createArgWithParams } = require('./utils') const { favoritesOperations } = require('./const') function pickBestTranslations(otherTranslations, translation) { let bestTranslations if (otherTranslations?.length > 1) { ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
const { SyntaxError } = require('./error'); const sequence = (...parsers) => stream => { let values = []; for (p of parsers) { const result = p(stream); if (result) values.push(result); } return values; } /** ordered choice */ const choice = (...parsers) => stream => { const curren...
var searchData= [ ['gcactivationlayerfixture',['GCActivationLayerFixture',['../namespacearm__compute_1_1test_1_1benchmark.xhtml#ac9dc6d45e02ea88927f44b22b881b51b',1,'arm_compute::test::benchmark::GCActivationLayerFixture()'],['../namespacearm__compute_1_1test_1_1validation.xhtml#a42983f20765326d857fabecb8dfa1a18',1,'...
const { readdirSync, statSync } = require("fs"); const { resolve } = require("path"); const ignoreFolders = /(\.vscode)|(\client)|(\coverage)|(node_modules)/; const readDirectory = path => readdirSync(path).reduce((acc, folder) => { const dirPath = `${path}${folder}`; if ( !folder.match(ignoreFolders) &...
import React, { Component } from 'react'; import quizQuestions from './api/quizQuestions'; import Quiz from './components/Quiz'; import Result from './components/Result'; import logo from './svg/NAV.svg'; import './App.css'; class App extends Component { constructor(props) { super(props); this.state = { ...
import gql from "graphql-tag"; const FETCH_HOME_PAGE = gql` query HomePage { homePage { title forWhatBlock { id reasons { title description id } } serv...
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
import { tree as treeFactory } from './svg-tree'; import { svgNs } from './svg-nodes'; import sceneFactory from '../../../core/scene-graph/scene'; import { onLineBreak } from '../../text-manipulation'; import { resetGradients, onGradient, createDefsNode } from './svg-gradient'; import createRendererBox from '../r...
define({ _widgetLabel: 'Строка', widgetProperties: 'Свойства виджета', widgetFunctions: 'Функции виджета', widgetName: 'имя виджета:', widgetProps: 'свойства виджета:', tips: 'Строка' });
/** * Test sagas */ /* eslint-disable redux-saga/yield-effects */ // import { take, call, put, select } from 'redux-saga/effects'; // import pantaloniUomoSaga from '../saga'; // const generator = pantaloniUomoSaga(); describe('pantaloniUomoSaga Saga', () => { it('Expect to have unit tests specified', () => { ...
import passport from 'passport' import mongoose from 'mongoose' const User = mongoose.model('User') import { randomBytes } from 'crypto' import promisify from 'es6-promisify' import * as mail from '../handlers/mail.js' import { PUBLIC_PATH } from '../config.js' // need to configure passport to use 'local' or any other...
'use strict'; const urlParser = require('url'); const log = require('intel'); function joinNonEmpty(strings, delimeter) { return strings.filter(Boolean).join(delimeter); } function toSafeKey(key) { // U+2013 : EN DASH – as used on https://en.wikipedia.org/wiki/2019–20_coronavirus_pandemic return key.replace(/[...
import Datalist from './Datalist.component'; export default Datalist;
const escapeRegExp = require('escape-regexp'); const Acl = require('../modules/acl'); const handlePermissionError = require('./error').handlePermissionError; module.exports.separator = '_'; module.exports.actions = { view: 'view', list: 'list', select: 'select', create: 'create', delete: 'delete', edit: '...
import React from "react"; import { connect } from "react-redux"; import Popup from "../components/Popup"; const PopupContainer = ({ popupType }) => { if (popupType) { return <Popup popupType={popupType} />; } else { return null; } }; function mapStateToProps(state) { return { popupType: state.pop...
const fs = require('fs') const path = require('path') const md5sum = require('md5') // 转成 Promise function gen(fn) { return (...args) => { return new Promise((resolve, reject) => { const cb = (err, data) => { if (err) return reject(err) resolve(data) } fn.apply(null, [...args, c...
const compileTemplate = require('lodash.template') const { minify } = require('html-minifier') const absoluteUrlRE = /^(https?:\/\/|\/)/i const entryPointMarkup = '<!-- quasar:entry-point -->' const entryScript = '<script type="module" src="/.quasar/client-entry.js"></script>' const attachMarkup = '<div id="q-app"></d...
/* * /MathJax/fonts/HTML-CSS/TeX/png/Main/Bold/GeometricShapes.js * * Copyright (c) 2010-2013 The MathJax Consortium * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the ...
const Commander = require("commander"); const Database = require("./database"); const Heroi = require("./heroi"); async function main() { Commander.version("v1") .option("-n, --nome [value]", "Nome do Heroi") .option("-p, --poder [value]", "Poder do Heroi") .option("-i, --id [value]", "Id do...
var ok = require('assert').ok; var include = require('../include'); var s = require('../dist/underscore.string'); test('#include', function() { ok(include('foobar', 'bar'), 'foobar includes bar'); ok(!include('foobar', 'buzz'), 'foobar does not includes buzz'); ok(include(12345, 34), '12345 includes 34'); ok(...
(this["webpackJsonptfsm-formset-example"]=this["webpackJsonptfsm-formset-example"]||[]).push([[211],{358:function(e,t,n){"use strict";function a(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"str...
import earcut from 'earcut'; import { polygon } from '@spatial/helpers'; /** * Tesselates a {@link Feature<Polygon>} into a {@link FeatureCollection<Polygon>} of triangles * using [earcut](https://github.com/mapbox/earcut). * * @name tesselate * @param {Feature<Polygon>} poly the polygon to tesselate * @returns ...
var searchData= [ ['objectreferencesproperty',['ObjectReferencesProperty',['../class_game_framework_1_1_game_structure_1_1_game_1_1_editor_1_1_game_actions_1_1_game_action_editor.html#aa16f73dbd3b1eabc4e2b8187cdf8fa60',1,'GameFramework.GameStructure.Game.Editor.GameActions.GameActionEditor.ObjectReferencesProperty()'...
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(d...
/** * Copyright 2017, 2019 IBM Corp. * * 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...
'use strict'; angular.module('myApp.video', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/video', { templateUrl: 'video/index.html', controller: 'VideoCtrl' }); }]) .controller('VideoCtrl', [function() { }]);
import React from 'react'; export default class ContactList extends React.Component { constructor(props){ super(props); this.remove = this.remove.bind(this); } remove(event){ this.props.onDelete(event.target.name); } componentDidMount() { this.props.updateList(); } render() { let...
cordova.define("cordova-plugin-geolocation.Coordinates", function(require, exports, module) { /* * * 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. Th...
/* eslint-env node */ const common = require("../common-config"); module.exports = common(__filename, examples => ({ base: examples, include: "projects/globs/*.cs", }));
import DEFAULT_NAMESPACE_NAME from '../constants/DEFAULT_NAMESPACE_NAME' describe('defineAny', () => { beforeEach(() => { jest.resetModules() jest.clearAllMocks() }) test('defines a value on the default namespace by default', () => { jest.mock('./root', () => ({})) const propGetNamespace = requi...
import request from '@/utils/request' // 新建物品 export function createItem (data) { return request({ url: '/rest/items', method: 'post', data }) } // 根據 id 查詢物品 export function getItem (itemId) { return request({ url: `/rest/items/${itemId}` }) } // 根據 id 編輯物品 export function updateItem (itemId...
"use strict"; const CACHE_NAME = 'animeviramd.blogspot.com'; const SW_SUPPORTED_PROTOCOL_REGEX = /http(s?):/; const pageUrls = JSON.parse('["https://animeviramd.blogspot.com/p/bienvenido-anime-viral-md.html"]'); const staticAssets = JSON.parse('["//cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css","//c...
/* jshint strict:true */ /* jslint node: true */ /* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); /** * Class Interval2 implements the logic used in interval 2 by moma * (c) 2019 AWhiteKnight */ class Interval2 extends Interval { constructor() { super(); } async ...
// 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 may...
describe('tooltip directive', function () { var $rootScope, $compile, $document, $timeout; beforeEach(module('ui.bootstrap.tooltip')); beforeEach(module('uib/template/tooltip/tooltip-popup.html')); beforeEach(module('uib/template/tooltip/tooltip-template-popup.html')); beforeEach(module('uib/template/tooltip...
export const effects = { buildings: { home: { icon: '🏡', description: 'if you go anywhere, you will miss your home', choices: [ { title: 'Meditate', text: 'what better way to feel relaxed than mediatating comfortabl...
export default String.prototype.b_magenta = function(){ return `\u001b[35;1m${ this }\x1b[0m` }
const fs = require('fs'); const path = require('path'); const API = require('./api'); const config = require('../config'); const db = require('./db'); const modulesPath = path.join(`${__dirname}/modules`); const actionsPath = path.join(`${__dirname}/actions`); const modelsPath = path.join(`${__dirname}/models`); cons...
import React from 'react'; import {View, Text, ViewPagerAndroid, StyleSheet} from 'react-native'; export default class Test extends React.Component { // render() { // return ( // <View> // <Text>test component</Text> // </View> // // ) // } rend...
import Home from "../components/home"; const home = () =>import('../components/home.vue'); export default [ { path: '/home', component: home, name: 'home', } ]
import storage from 'good-storage' function insertArray(arr, val, compare, maxlen) { const index = arr.findIndex(compare) if (index === 0) { return } if (index > 0) { arr.splice(index, 1) } arr.unshift(val) if (maxlen && arr.length > maxlen) { arr.pop() } } function deleteFromArray(arr, com...
const localMeta = require('./site/data/meta.json'); module.exports = { plugins: { "posthtml-extend": { root: "./site/layouts", strict: true }, "posthtml-modules": { root: "./site/modules" }, "posthtml-expressions": { locals: { ...localMeta, test: "My local variable" } ...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getCurrentProfile, deleteAccount } from '../../actions/profileActions'; import Spinner from '../common/Spinner'; import ProfileActions from "./ProfileAct...
/* eslint-disable max-len */ import { config, DIV_ID_FOO } from '../../utils/testAdvertisingConfig'; import getLazyLoadConfig from './getLazyLoadConfig'; test.each` inputDesc | expectedDesc | input ...
import React from 'react' import Layout from '../layout' import styles from './resume.module.css' const Resume = () => ( <Layout> <div className={styles.container}> <h1>Resume</h1> <section> <p> <strong> <a href="/shubham-resume.pdf" target="_blank" rel="noopener"> ...
exports.withoutUnderscored = function (doc) { var key; doc.id = doc._id; for (key in doc) { if (doc.hasOwnProperty(key) && key.indexOf('_') === 0) { delete doc[key]; } } return doc; };
const router = require('express-promise-router')(), { valBody, hashPassword } = require('./middleware'), { addAdmin } = require('./model'), { generateToken } = require('../authTools') module.exports = router router.post('/', valBody, hashPassword, async (req, res) => { const admin = await addAdmin(req.body) ...
(function () { var app = angular.module("MobileStore",[]); var iphone = { name:"iphone7 Plus", color:"apple Red", memory:"3GB RAM, 128 Internal Memory", price:75000, image:"img/apple_iphone_7.Png", isSoldOut:false, activeTab:"Description" }; var pixel ...
// TODO: Write code to define and export the Manager class. HINT: This class should inherit from Employee. const Employee = require("./Employee"); class Manager extends Employee{ constructor(name, id, email, officeNumber){ super(name, id, email); this.officeNumber = officeNumber; } getOffi...
Feature('Mocking'); const fetchPost = response => response.url() === 'https://jsonplaceholder.typicode.com/posts/1'; const fetchComments = response => response.url() === 'https://jsonplaceholder.typicode.com/comments/1'; const fetchUsers = response => response.url() === 'https://jsonplaceholder.typicode.com/users/1'...
/* eslint-disable */ import React from 'react' import { injectIntl, defineMessages } from 'react-intl' import { Column, Row, Layout } from 'flex-layouts' import { Text, Space } from '@c3/ui/src/text' import { Divider } from '@c3/ui/src/divider' import Block from './Block' const offset = window.innerHeight - 140 const...
/** * @license * Visual Blocks Editor * * Copyright 2016 Massachusetts Institute of Technology * 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://w...
/** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * OpenAPI spec version: 1.0.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * htt...
var mongoose = require('./db.js'); var Schema = mongoose.Schema; var settingSchema = new Schema({ expired_time: Number, edit_time: Number, edit_user: String, id: Number // 标识 }); module.exports = mongoose.model('Setting', settingSchema);
// Copyright (c) 2021, Compiler Explorer Authors // 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, // thi...
const minimatch = require('minimatch'); const isGlob = require('is-glob'); const Num = 'Number'; const escapeRegExp = (string) => typeof string === 'string' ? string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') : string; const prepend = (string) => `^${string}`; exports.isNumber = (value) => value === Number ...
import { connect } from 'react-redux'; import ContactFilter from '../ContactFilter/ContactFilter'; import { changeFilter } from '../../redux/filter/filterSlice'; import { getContacts } from '../../redux/contacts/contactsSelectors'; import getFilter from '../../redux/filter/filterSelectors'; const mapStateToProps = sta...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { render } from '@ember/test-helpers'; module('Integration | Component | navi visualization config - <%= dasherizedModuleName %>', function(hooks) { setupRenderingTest(hooks); ...
import React, { useState } from 'react'; import Link from 'next/link'; import Text from 'components/Layout/Text'; import Heading from 'components/Layout/Heading'; import { SectionHeader } from '../globalApp.style'; import SidebarModule from './Sidebar'; import { businessModule } from 'common/data/appData'; const Modul...
/** * MochaEarlReporter doc reference https://github.com/ericprud/mocha-earl-reporter#readme * * Module dependencies. */ 'use strict'; const util = require('util'); const Top = `[ a earl:Assertion; earl:assertedBy <%s>; earl:subject <%s>; earl:test <%s%s>; earl:result [ a earl:TestResult; earl:outc...
import React, { Component } from 'react'; import { Button, Col, Container, Form, Row } from 'react-bootstrap'; import background from './assets/background.jpg'; class ImgTest extends Component { state = { showDownload: false, firstname: '', lastname: '', title: '' }; onCreatePdf = () => { this.setState({ ...
module.exports = { "id": "xh_za", "data": { "short": { "years": { "other": "{0} y" }, "months": { "other": "{0} m" }, "weeks": { "other": "{0} w" }, "days": { "other": "{0} d" }, "hours": { "other": "{0} h" }, ...
/* jQWidgets v4.4.0 (2016-Nov) Copyright (c) 2011-2016 jQWidgets. License: http://jqwidgets.com/license/ */
'use strict'; import debug from 'debug'; import md5 from 'blueimp-md5'; import transform from 'sdp-transform'; import utils from './utils'; import { EventEmitter } from 'events'; import { Call } from './call'; import { ConferenceCall } from './conference'; import { Message } from './message'; const DEBUG = debug('sy...
export default { serverURI: 'http://api_server.test/api/v1', fixedLayout: false, hideLogoOnMobile: false }
// @flow const debug = require('debug')('pluto:queues:process-oss-status-disabled'); import type { Job, StripeCommunityPaymentEventJobData, } from 'shared/bull/types'; import Raven from 'shared/raven'; import { StripeUtil } from 'shared/stripe/utils'; import removeAllPaidFeatures from './removeAllPaidFeatures'; imp...
/* eslint-disable no-var */ let thisWidget; //当前页面业务 function initWidgetView(_thisWidget) { thisWidget = _thisWidget; //清除所有标号 $("#btnDelete").click(function () { thisWidget.deleteEntity(); }); $("#btnCenter").click(function (e) { thisWidget.centerCurrentEntity(); }); $("#btn_plot_savefile").c...
// Validation errors messages for Parsley // Load this after Parsley Parsley.addMessages('fi', { defaultMessage: "Sy&ouml;tetty arvo on virheellinen.", type: { email: "S&auml;hk&ouml;postiosoite on virheellinen.", url: "Url-osoite on virheellinen.", number: "Sy&ouml;t&auml; numero...
var token = 'pk.eyJ1IjoiY296Z2lzIiwiYSI6ImNqZ21lYno4ZDBjYWEyeHFzZ3BudGVneXAifQ.AVcd0TkNWnY6PcUhB_anYQ'; var maxBounds =  [ [-82.62759429497949, 39.73845510307916], [-81.58035287347928, 40.20799821816678] ]; var mapillaryToken = 'V3B6aHlRZVdMUG5aX1R3dnhjZFVfdzo4YmEwZjY1Mjg2ZTNhYzQ2'; export { token, maxBounds...
import { Controller } from '@hotwired/stimulus' export default class extends Controller { static values = { debug: Boolean } // data-action="touchstart->slide#start:passive" initStatus(event) { const touch = event.targetTouches[0] this.startPos = { x: touch.pageX, y: touch.pageY } ...
/** * * @param {object} providers the providers object * @param {object} providers.applicationContext the application context * @param {object} providers.props the cerebral props object * @returns {Promise} async action */ export const generatePrintablePendingReportAction = async ({ applicationContext, props,...
module.exports = { siteMetadata: { title: `Eric Frommelt — Art Director`, description: `Art Direction and Design by Eric Frommelt`, author: `@ericfrommelt`, }, plugins: [ `gatsby-plugin-emotion`, `gatsby-plugin-react-helmet`, { resolve: `gatsby-transformer-remark`, options: { ...
(function () { function convertCharacterToElement(character) { var el = document.createElement("div"); el.classList = "joinrpg-roles joinrpg-character"; var claimLink = character.ClaimLink ? " <a href=\"" + character.ClaimLink + "\">заявиться</a> " : ""; el.innerHTML = "<b>" + chara...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lastCommit = exports.push = exports.commit = void 0; const shelljs_1 = require("shelljs"); const commit = (message, name = "Upptime Bot", email = "73812536+upptime-bot@users.noreply.github.com") => { shelljs_1.exec(`git config --gl...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
import * as helpers from './helpers'; describe('Helpers functions', () => { let palavraGrande; beforeEach(() => { palavraGrande = 'O Coletivo Nacional de Juventude Negra – Enegrecer'; expect(palavraGrande).toHaveLength(50); }); it('deve cortar a palavra no tamanho especificado', () => { const palav...
import styled from "styled-components"; export const Wrapper = styled.div` position: relative; padding: 15px; background-color: rgb(35, 35, 35); /* width: 230px; */ width: 100%; border-radius: 10px; margin-bottom: 50px; text-align: center; :hover { background-color: rgb(45, 45, 45); } @medi...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { identifierName, ngModuleJitUrl, sharedStylesheetJitUrl, templateJitUrl, templateSourceUrl } from '../compile...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
import { handleErrors, filterMovies, sortMovies } from '../../src/utils'; const movies = [ { Title : 'animal 22' }, { Title : 'Animal_2' }, { Title : 'ánimal_1' }, { Title : 'Animal' }, { Title : 'animal' }, ]; const sortedMovies = [ { Title : 'animal' }, { Title : 'Animal' }, { Title : 'animal 22' },...
const deadlineKey = "_deadline" /** * 设置 * k 键key * v 值value * t 秒 */ function set(k, v, t) { wx.setStorageSync(k, v) const seconds = parseInt(t) if (seconds > 0) { let newtime = Date.parse(new Date()) newtime = newtime / 1000 + seconds; wx.setStorageSync(k + deadlineKey, newtime + "") } else ...
const joi = require('@hapi/joi'); const userIdSchema = joi.string().regex(/^[0-9a-fA-F]{24}$/); const userSchema = { name: joi .string() .max(100) .required(), email: joi .string() .email() .required(), password: joi.string().required() }; const createUserSchema = { ...userSchema, i...
export const checkAccess = (permissions, access_token) => { return Promise.race([ new Promise((resolve, reject) => fetch(global.URL + 'api/permission/check', { method: 'POST', headers: { 'Accept': 'application/json', 'Conten...
/** * jQuery WeUI V0.7.2 * By 言川 * http://lihongxun945.github.io/jquery-weui/ */ /* global $:true */ /* global WebKitCSSMatrix:true */ (function($) { "use strict"; $.fn.transitionEnd = function(callback) { var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitio...
require('dotenv').config(); const express = require('express'); const { join } = require('path'); const { readFileSync, writeFileSync, existsSync, unlinkSync, mkdirSync, createReadStream } = require('fs'); const multer = require('multer'); const { createCertificate } = require('pem'); const { createServer } = require(...
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faClock } from "@fortawesome/free-solid-svg-icons"; import { Card, CardHeader, CardContent } from "@zesty-io/core/Card"; import { AppLink } from "@zesty-io/core/AppLink"; import { WithLoader } from "@zesty-io/core/Wit...
const db = require('../db') module.exports = () => { return { getRecommendedProducts(sku, callback) { const text = ` SELECT sku, product_id FROM recommendation r WHERE r.product_id not in ( SELECT product_id FROM recommendation r WHERE r.sku = $1 LIMIT 1 ...
/** * @fileoverview * Some common utilities for scripts. */ import path from 'node:path'; import { promises as fs } from 'node:fs'; import { fileURLToPath } from 'node:url'; const TITLE_TO_SLUG_REPLACEMENTS = { '+': 'plus', '.': 'dot', '&': 'and', đ: 'd', ħ: 'h', ı: 'i', ĸ: 'k', ŀ: 'l', ł: 'l', ...
/* eslint-disable react/jsx-props-no-spreading */ /* eslint-disable react/prop-types */ import React from 'react'; import { useDispatch } from 'react-redux'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import ...
var nu = require("nodeunit"); var path = require("path"); var lconfig = require("lconfig"); lconfig.logging = {console:true}; var logger = require(path.join("..", "Common", "node", "logger.js")); var util = require("util"); exports["buffer objects should give a stack trace"] = function(test) { test.expect(1); ...
import React, { useEffect, useState, useCallback } from 'react'; import { StatusBar } from 'react-native'; import { useSelector, useDispatch } from 'react-redux'; import { withNavigationFocus } from 'react-navigation'; import Icon from 'react-native-vector-icons/MaterialIcons'; import PropTypes from 'prop-types'; impo...
const Client = require('instagram-private-api').V1; const delay = require('delay'); const chalk = require('chalk'); const _ = require('lodash'); const rp = require('request-promise'); const S = require('string'); const inquirer = require('inquirer'); const User = [ { type:'input', name:'username', message:'[>] Inse...
import React from 'react'; import { QuickStartTile, QuickStartCatalogSection, } from '@patternfly/quickstarts'; import { Gallery, GalleryItem, TextContent, Text, } from '@patternfly/react-core'; import { BookIcon } from '@patternfly/react-icons'; const quickstarts = [ { apiVersion: '5', kind: 'do...
const mongoose = require("mongoose"); const documentScheme = new mongoose.Schema({ value: { type: String, required: true, }, }); module.exports = mongoose.model("Document", documentScheme);
const connection = require('../database/connection'); const crypto = require('crypto'); module.exports = { async index (request, response) { const ongs = await connection('ongs').select('*'); return response.json(ongs); }, async create(request, response) { const { na...
jQuery( document ).ready( function() { jQuery( '.ctsc-map' ).each( function() { var data = jQuery( this ).data(), // Get the data from this element options = { // Create map options object center: { lat: data.lat, lng: data.lng }, disableDefaultUI: data.controls || false, zo...