text stringlengths 2 1.04M |
|---|
require('../../mctad');
var assert = require('chai').assert;
describe('normal', function() {
it('can return undefined when σ2 is not a valid parameter', function() {
assert.isUndefined(mctad.normal(0.0, -1.0), 'σ2 should be > 0');
});
it('can generate the distribution statistics for μ = -2.0, σ2 = 0.5', fun... |
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import Product from "./Product"
import Title from "../global/Tttle"
const getProducts = graphql`
{
products: allContentfulCoffeeProduct {
edges {
node {
id
title
price
image {
... |
const fs = require("fs");
const parse = require("csv-parse/lib/sync");
const Json2csvParser = require('json2csv').Parser;
const appRoot = require("app-root-path");
const DB = appRoot.require("utils/sqlite");
const db = new DB("database.db");
const input = fs.readFileSync("map.csv");
const tables = parse(fs.readFileS... |
import React from 'react';
import landing8 from '../../pages/graphics/inner-land-img-8.webp';
import landing9 from '../../pages/graphics/inner-land-img-9.webp';
import landing10 from '../../pages/graphics/inner-land-img-10.webp';
import dlanding10 from '../../pages/graphics/slidimgd.jpg';
import dlanding8 from '../../p... |
"use strict"
const xbindUtils = require("./utils")
export class xbindContainer {
constructor(oncreate, ondelete) {
Object.defineProperty(this, "_oncreate", {
value: oncreate,
})
Object.defineProperty(this, "_ondelete", {
value: ondelete,
})
Object.defineProperty(this, "$contents", {
value: [],
... |
// @flow strict
import React from "react";
import moment from "moment";
import "moment/locale/pt-br";
import styles from "./Meta.module.scss";
type Props = {
date: string
};
const Meta = ({ date }: Props) => (
<div className={styles["meta"]}>
<p className={styles["meta__date"]}>
Publicado {moment(date).... |
describe('L.TileLayer.WMS.Format[\'application/vnd.ogc.gml\']', function () {
var originalXmlParse;
before(function() {
originalXmlParse = L.TileLayer.WMS.Util.XML.parse;
// Modify method to make possible to parse short GML strings.
L.TileLayer.WMS.Util.XML.parse = function(gmlString) {
var full... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
(global.... |
'use strict'
var isTravis = process.env.CI || process.env.TRAVIS
var isWindows = require('is-windows')
var assert = require('assert')
var mm = require('minimatch')
var nm = require('./support/matcher')
var fixtures = require('./_fixtures')
var patterns = require('./_patterns')
describe('.makeRe', function () {
if ... |
const path = require('path');
module.exports = {
entry: '/main.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
}
}; |
/*
* Copyright (C) 2012 Google Inc. 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 conditio... |
'use strict';
const AntiCounterfeiting = require('./lib/anticounterfeiting');
module.exports.AntiCounterfeiting = AntiCounterfeiting;
module.exports.contracts = [ AntiCounterfeiting ]; |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "convertFunctionParams", {
enumerable: true,
get: function () {
return _params.default;
}
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _params =... |
'use babel';
// Public: GrammarUtils.R - a module which assist the creation of R temporary files
export default {
// Public: Create a temporary file with the provided R code
//
// * `code` A {String} containing some R code
//
// Returns the {String} filepath of the new file
createTempFileWithCode(code) ... |
macDetailCallback("e4a7c5000000/24",[{"d":"2017-06-08","t":"add","a":"No.2 Xin Cheng Road, Room R6,Songshan Lake Technology Park Dongguan CN 523808","c":"CN","o":"HUAWEI TECHNOLOGIES CO.,LTD"}]); |
const {Given, When, Then} = require('cucumber');
const Role = require('testcafe').Role;
const haleyPage = require('../support/pages/haley-page');
Given(/^I am on Haleybridge Website$/, async function() {
await testController.navigateTo(haleyPage.haleywebsite.url());
});
When(/^I search for "([^"]*)"$/, async func... |
'use strict';
System.register([], function (_export, _context) {
"use strict";
var logLevel, loggers, currentLevel, appenders, slice, loggerConstructionKey, Logger;
function log(logger, level, args) {
var i = appenders.length;
var current = void 0;
args = slice.call(args);
args.unshift(log... |
import Simple from '../demos/simple';
import Object from '../demos/object';
import String from '../demos/string';
import Multi from '../demos/multi';
import All from '../demos/all';
import Array from '../demos/array'
import RichText from '../demos/richText'
import Links from '../demos/links'
import DemoIndex from '../d... |
import SuperTest from 'supertest';
import app from '../../app';
const supertest = SuperTest(app);
describe('Health Check', () => {
describe('GET /health-check', () => {
it('should resolve a 200 always', async () => {
await supertest.get('/health-check').expect(200);
});
});
}); |
// Dutch
plupload.addI18n({
'Select files' : 'Selecteer bestand(en):',
'Add files to the upload queue and click the start button.' : 'Voeg bestanden toe aan de wachtrij en druk op \'Start\'.',
'Filename' : 'Bestandsnaam',
'Status' : 'Status',
'Size' : 'Grootte',
'Add files' : 'Voeg bestanden toe',
... |
module.exports = {
pageExtensions: ['tsx'],
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.module.rules.push(
...[
{
test: /\.yml$/,
type: 'json',
use: 'yaml-loader',
},
{
test: /\.svg$/,
use: '@s... |
'use strict';
module.exports = {
db: 'mongodb://localhost/archiver-dev',
app: {
title: 'Archiver - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/auth/facebook/callback'
},
twitter: {
clien... |
let i = -1;
const CUBE_COLORS = ['red', 'green', 'blue', 'violet'];
function createCube(amount = 1) {
i++;
const gElement = document.createElement('g');
gElement.setAttribute('transform', `translate(4,${4 + 55 * i})`);
const dataPlayground = {
amount,
interactions: [{ type: 'drag' }... |
import NewPlatformMssqlFulltextTestStandAuthorEController from '../new-platform-mssql-fulltext-test-stand-author-e';
var NewPlatformMssqlFulltextTestStandAuthorENewController = NewPlatformMssqlFulltextTestStandAuthorEController;
export default NewPlatformMssqlFulltextTestStandAuthorENewController; |
import React from 'react';
import { action, storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import CalendarDay from '../src/components/CalendarDay';
import CustomizableCalendarDay from '../src/components/CustomizableCalendarDay';
import CalendarMonth from '../src/components/Calen... |
import { Promise as EmberPromise } from 'rsvp';
import { module, test } from 'qunit';
import { setupRenderingTest } from "ember-qunit";
import { render, click } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
let tmap;
module('Integration: liquid-container', function(hooks) {
setupRenderin... |
//Operador rest em JavaScript.
function minhaFuncao(...args) {
console.log(args)
}
minhaFuncao(1);
minhaFuncao(1, 2);
minhaFuncao(1, 2, 3, 4);
minhaFuncao([1, 2, 3], [4, 5, 6]);
minhaFuncao(1, 2, 3, 4, 5, 6);
// exemplo.
const calcular = (x, y, z) => {
const args = [x, y, z];
return args.reduce((a, b) => a ... |
// Copyright 2015 Sinfonier Project
/*
* 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, V... |
var classRaycastCCDManager =
[
[ "RaycastCCDManager", "classRaycastCCDManager.html#a7b0ca803dd4186218095216e92fd0c3f", null ],
[ "~RaycastCCDManager", "classRaycastCCDManager.html#a3c40ad39e6542dc894c029e5926d8d38", null ],
[ "doRaycastCCD", "classRaycastCCDManager.html#a6023b5afa45982aa31f9310ca649bab2", n... |
import { createStore } from "framework7/lite";
import { firebase,db,storageRef } from "../firebase/firebase";
import { f7} from 'framework7-vue';
const store = createStore({
state: {
user: null,
users: [],
rooms:[],
friendRequests:[],
myFriends:[],
messages:[],
lastMsgDoc:null,
firstM... |
import Account from '../Account/Account'
export const QUERY = gql`
query AccountQuery($id: String!) {
account(id: $id) {
id
name
}
}
`
export const Loading = () => <div>Loading...</div>
export const Empty = () => <div>Empty</div>
export const Failure = ({ error }) => (
<div className="flex... |
import React from 'react';
import './ActivitySearch.css';
import TextField from "@material-ui/core/TextField";
import Autocomplete from "@material-ui/lab/Autocomplete";
import {countries} from "../../../server/countries";
import MenuItem from "@material-ui/core/MenuItem";
import {searchActivitiesDocuments} from "../../... |
const mailgun = require("../../mailgun.app.js");
const {
props,
methods,
} = require("../common");
module.exports = {
key: "mailgun-send-email",
name: "Send Email",
description: "Send email with Mailgun.",
version: "0.0.28",
type: "action",
props: {
mailgun,
domain: {
propDefinition: [
... |
let buttons = require('sdk/ui/button/action');
let tabs = require('sdk/tabs');
let self = require('sdk/self');
let prefs = require('sdk/simple-prefs');
let options = prefs.prefs;
let pageMod = require('sdk/page-mod');
const DOMAINS = [
'youku.com',
'sohu.com',
'tudou.com',
'qq.com',
'iqiyi.com',
... |
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var phpjs = require('phpjs');
var utils79 = require('utils79');
var rmdir = require('rmdir');
var _baseDir = __dirname+'/stub_datadir/px2dt/';
var Promise = require("es6-promise").Promise;
var DIRECTORY_SEPARATOR = (process.platform=='w... |
import constants from 'models/energy2d/models/constants';
import { hypot } from 'models/energy2d/models/helpers';
import { Photon } from 'models/energy2d/models/photon';
import { Line, Polygon, Rectangle, Ellipse, Ring, pointInsidePolygon } from 'models/energy2d/models/shape';
var // Part's constants.
RADIATOR_SPACI... |
import React from "react"
import { Router } from "@reach/router"
import Layout from "../components/Layout"
import Profile from "../components/Account/Profile"
import Orders from "../components/Account/Orders"
import Login from "../components/Account/Login"
import PrivateRoute from "../components/Account/PrivateRoute"
i... |
(() => {
const localRequire = require('module').createRequire(__filename);
const schema = localRequire('mongodb-schema');
const { Readable, PassThrough } = localRequire('stream');
const { Console } = localRequire('console');
globalThis.schema = function(collOrCursor, options = {}) {
let cursor;
if (t... |
import React, { Component } from 'react';
import Event from './Event';
class EventList extends Component {
render() {
const { events } = this.props;
return (
<ul className='EventList'>
{events.map((event) => (
<div className='event-list-card' key={event.id}>
<div className... |
/**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import Splash from './Screens/Splash';
import Signup from './Screens/Signup';
import Login from './Screens/Login';
AppRegistry.registerComponent(appName, () => Signup); |
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => {
return {
'@global': {
html: {
'font-family': 'sans-serif',
'-webkit-font-smoothing': 'unset',
'-moz-osx-font-smoothing': 'unset',
'font-size': '16px'
},
a: {
co... |
tests([
[
[3, 1, 2],
[1, 2, 3]
],
[
[3, 2, 1],
[1, 2, 3]
],
[
[1, 2, 3],
function(a, b) {
return b - a;
},
[3, 2, 1]
]
]); |
/* global AudioContext */
import axios from 'axios'
import React from 'react'
import Actions from './data/Actions'
import OscillatorView from './views/Oscillator/OscillatorView.js'
import FilterView from './views/Filter/FilterView.js'
import EffectsView from './views/Effects/EffectsView.js'
import AmpView from './views... |
/*
Notifications ajax tab
requires: util.js, tab.js
*/
(function() {
var Notification, Tab, utils,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
utils = stModules.utils;
Tab = stModules.Tab;
Notification = (function() {
Notification.prototype.defaults = {... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[26],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/apps/payments/payment-charge/CheckInfoModal.vue?vue&type=script&lang=js&":
/*!**********************************************************... |
define({
root: ({
"widgets": {
"TemplateBuilder": {
"enterBuilderButtonText": "Enter Builder",
"exitBuilderButtonText": "Exit Builder",
"enterBuilderModeHelpText": "Enter Builder Mode to configure application",
"builderModeHelpText"... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
/*= require shortcuts */
(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return ... |
const { resolve } = require('path');
const { createHash } = require('crypto');
const { readFile } = require('fs-extra');
main().catch(err => {
console.error(err);
process.exit(1);
});
async function main() {
const path = process.argv[2];
if (!path) return;
const full_path = resolve(path);
console.log(awa... |
import { fromJS } from "immutable"
import * as gameActions from "redux/actions"
const initialState = fromJS( {
points: 0,
totalPoints: 0,
totalKeys: 0,
money: 0,
time: null,
unlocked: {
q: {
unlocked: true,
},
},
monkeys: [],
achievements: {},
upgrades: {},
} )
let callbacks = {}
ca... |
/**
* 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... |
// eslint-disable-next-line vue/script-indent
import Vue from 'vue';
import store from '@/store';
import axios from 'axios';
Vue.prototype.$http = axios;
axios.defaults.baseURL = '/api';
axios.defaults.xsrfHeaderName = 'X-CSRFToken';
axios.defaults.xsrfCookieName = 'csrftoken';
export default {
getWebsiteConf(param... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ... |
import ReactDom from 'react-dom';
import React from 'react';
import Main from './main';
ReactDom.render(<Main />, document.getElementById('app')); |
import React from 'react'
import styled from 'styled-components'
import {
Row,
Col
} from 'reactstrap'
import Banner from '../components/Banner'
const DL = ({ children }) => (
<dl className="row">{ children }</dl>
)
const DT = ({ children }) => (
<dt className="col-sm-3">{ children }</dt>
)
const DD = ({ chi... |
export const listFilesMock = jest.fn()
export const createCommentMock = jest.fn()
export const updateCommentMock = jest.fn()
export const listCommentsMock = jest.fn()
export const graphqlMock = jest.fn()
const wrapResponse = () => async () => ({
data: listCommentsMock() ?? [],
})
export const getOctokit = () => ({
... |
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import PropTypes from 'prop-types';
import StaticSafeAreaInsets from 'react-native-static-safe-area-insets';
import { ifIphoneX } from 'react-native-iphone-x-helper';
import { withTheme } from '../contexts/theme';
const styles =... |
import React from 'react';
import IssueSummary from './IssueSummary.js';
import MilestonePriorityTable from './MilestonePriorityTable.js';
import ANewTab from '../common/ANewTab.js';
export default function Milestone (props) {
const sogh = props.sogh;
const data = sogh.summaryIssuesByProjects(props.projects);... |
var searchData=
[
['b_30',['B',['../_key_codes_8hpp.html#a154dedd6c3727bf89b0cb4fc8dbe8d07a9d5ed678fe57bcca610140957afab571',1,'KeyCodes.hpp']]],
['back_5fbutton_5fcolor_31',['BACK_BUTTON_COLOR',['../namespace_enigma_1_1_constants_1_1_colors.html#ac0e7045a76eaa8a92877a3bd3682ae1f',1,'Enigma::Constants::Colors']]],
... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import Promise from 'bluebird'... |
// Copyright 2016 Gavin Wood
import BigNumber from 'bignumber.js';
import React, { Component, PropTypes } from 'react';
import { Dialog, FlatButton, TextField } from 'material-ui';
import { api } from '../../parity';
import AccountSelector from '../../AccountSelector';
import { ERRORS, validateAccount, validatePosit... |
'use strict';
var LanguageManager = {
init: function init() {
var panel = document.getElementById('languages');
this.buildLanguageList(panel.querySelector('ul'));
panel.addEventListener('change', this);
},
handleEvent: function handleEvent(evt) {
if (evt.target.name != 'language.current') {
... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* f... |
// flow-typed signature: 72e4eaf66ba7b280095ec9619c5c1b97
// flow-typed version: <<STUB>>/css-loader_v^0.28.3/flow_v0.48.0
/**
* This is an autogenerated libdef stub for:
*
* 'css-loader'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the... |
import { StyleSheet } from 'react-native';
import {
getUniversalFont,
centerChildren,
gutter,
yellow,
openSans,
windowWidth,
} from 'styles';
export default StyleSheet.create({
container: {
...centerChildren(true),
flex: 1,
padding: gutter,
},
innerContainer... |
// This algorithm finds a substring inside a string and returns how frequent it appears.
function naiveSearch(longStr, shortStr) {
let counter = 0
for (let i = 0; i < longStr.length; i++) {
for (let j = 0; j < shortStr.length; j++) {
if (shortStr[j] !== longStr[i + j]) break
if (... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// ***************************************************************
// - [#] indicates a test step (e.g. # Go to a page)
// - [*] indicates an assertion (e.g. * Check the title)
// - Use element ID when selec... |
/* eslint-disable max-len */
/* This file contains the functions which generate the output of each file */
module.exports = {
// Output generated for component's definition file
buildJS: componentName =>
`import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'class... |
import blackjack from 'engine-blackjack'
import { GetRecommendedPlayerAction } from 'blackjack-strategy'
import { ATTRIBUTES, CARDS, ENGINE, ACTIONS, STRATEGY, RULES } from './constants'
export const getCards = () => {
const game = new blackjack.Game()
game.dispatch(blackjack.actions.deal({ bet: 0 }))
const { ... |
// Theme
const primaryColor = '#0c8985';
const secondaryColor = '#0cbeba';
const dimPrimaryColor = '#017d89';
const listBackgroundColor = '#0fa8a3';
const accentColor = '#93f3e8';
const errorColor = '#FF5252';
const paperColor = '#085b57';
const buttonSecondaryColor = 'rgba(0,0,0,.75)';
const dividerColor = 'rgba... |
module.exports = {
'url' : 'mongodb://localhost/bo'
}; |
// Copyright 2008 the V8 project 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, this list of ... |
/**
* Adds a “hide breadcrumbs” checkbox to Genesis Block Editor sidebar in a
* Breadcrumbs panel. Unchecked by default.
*
* If checked and the post is updated or published, `_genesis_hide_breadcrumbs`
* is set to true in post meta.
*
* To disable the checkbox, use the PHP `genesis_breadcrumbs_toggle_enabled`
*... |
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* monaco-languages version: 2.2.0(5294e3e9294a2844ea5af7aefad9f6cd7681686d)
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENS... |
'use strict';
const bcoin = require('bcoin');
const {MTX, KeyRing, Script} = bcoin;
const MultisigMTX = require('../../lib/primitives/mtx');
exports.getMTXSignatures = getMTXSignatures;
/**
* Get MTX Signatures
* @param {MTX} mtx
* @param {Path[]} paths
* @param {HDPrivateKey} xpriv
* @param {HDPublicKey[]} xpu... |
/* */
"format cjs";
( function() {
'use strict';
test( 'stamp selector string', function() {
var container = document.querySelector('#stamps1');
var stampElems = container.querySelectorAll('.stamp');
var stamp1 = container.querySelector('.stamp1');
var stamp2 = container.querySelector('.stamp2');
var layo... |
import uuid from 'uuid';
import database from '../firebase/firebase';
export const addExpense = (expense) => ({
type: 'ADD_EXPENSE',
expense
});
export const startAddExpense = (expenseData = {}) => {
return (dispatch, getState) => {
const uid = getState().auth.uid;
const {
desc... |
// @flow
import camelCase from "lodash.camelcase";
import type { PluginConfig, MultiPackagesConfig, ReplState } from "./types";
const normalizePluginName = pluginName =>
`_babel_${camelCase(`plugin-${pluginName}`)}`;
const babelConfig: PluginConfig = {
label: "Babel",
package: "@babel/standalone",
version: "^... |
/*
* Copyright (C) 2021 con terra GmbH (info@conterra.de)
*
* 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 b... |
import React from 'react';
import { Grid, withStyles } from '@material-ui/core';
import { Close as CloseIcon } from '@material-ui/icons';
import classnames from 'classnames';
import { ToastContainer } from 'react-toastify';
import SyntaxHighlighter from 'react-syntax-highlighter';
import { docco } from 'react-syntax-hi... |
function hideDiv(id){
document.getElementById(id).style.display="none"
}
function showDiv(id){
document.getElementById(id).style.display="block"
} |
const route = {
path: '/account',
component: () => import(/* webpackChunkName: "authentication" */ '@modules/authentication/pages/Base.vue'),
children: [
{
path: '',
redirect: { name: 'account-login'}
},
{
path: 'login',
name: 'account-login',
component: () => import(/* webpackChunkName: "authe... |
"use strict";
exports.__esModule = true;
exports.ToastManager = void 0;
var _utils = require("@chakra-ui/utils");
var _framerMotion = require("framer-motion");
var React = _interopRequireWildcard(require("react"));
var _toast = require("./toast");
var _toast2 = require("./toast.utils");
function _getRequireWildc... |
var mysql = require('mysql');
var pool = mysql.createPool({
host:'localhost',
user:'root'
});
pool.getConnection(function(err,conn){
conn.query('select * from test.test_users', function(err,rows){
console.log(rows);
conn.release();
//pool.destroy();
});
});
//pool.destroy(); |
import { extendTheme } from '@chakra-ui/react'
import { mode } from '@chakra-ui/theme-tools'
const styles = {
global: props => ({
body: {
bg: mode('#f0e7db', '#202023')(props)
}
})
}
const components ={
Heading: {
variants: {
'section-title': {
textDecoration: 'underline',
fontSize: 20... |
/**
* @license AngularJS v1.5.0
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/* jshint ignore:start */
var noop = angular.noop;
var copy = angular.copy;
var extend = angular.extend;
var jqLite = angular.element;
var... |
// Stack ADT
Stack = function() {
this.dataStore = [];
this.top = 0;
};
Stack.prototype = {
push:function(element){
this.dataStore[this.top++] = element;
},
pop: function() {
return this.dataStore[--this.top];
},
peek: function() {
return this.dataStore[this.top - 1... |
/* eslint-disable no-extend-native */
/* eslint-disable no-global-assign */
const t = require('tap')
const EventEmitter = require('events')
const os = require('os')
const fs = require('fs')
const path = require('path')
const { real: mockNpm } = require('../../fixtures/mock-npm')
// generic error to be used in tests
c... |
const express = require("express");
const cache_query = require("../module/mysql_cache");
const query = require("../module/mysql_query");
const router = express.Router();
const [error, ok] = require("../module/const_var");
const page_cnt = 20;
const auth = require("../middleware/auth");
const DiscussInterceptor = requi... |
// Copyright IBM Corp. 2016. All Rights Reserved.
// Node module: strong-globalize
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
var gpb = require('g11n-pipeline');
var helper = require('../lib/helper');
var sltTH = require('./slt-tes... |
import "./src/styles/reset.scss"
import "./src/styles/base.scss" |
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||... |
import React from 'react'
import { Link } from 'gatsby'
const Header = ({ siteTitle }) => (
<div
style={{
background: '#333',
marginBottom: '0',
}}
>
<div
style={{
margin: '0 auto',
maxWidth: 960,
padding: '1.45rem 1.0875rem',
}}
>
<h1 style={{ ... |
const {ipcRenderer} = require('electron');
let settings;
$( document ).ready(function() {
ipcRenderer.on('code-channel', (event, arg) =>{
loadCodes(arg);
});
ipcRenderer.on('settings-channel', (event, arg) =>{
settings = JSON.parse(arg);
loadSlider(settings);
loadEmail(setti... |
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* global document */
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import Paragraph from '@ckedi... |
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
const port = "8888"
const child = require('child_process');
const MACOS = "darwin"
const WINDOWS = "win32"
//const env = process.env.NODE_E... |
import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index'
import buildMatchFn from '../../../_lib/buildMatchFn/index'
var matchOrdinalNumberPattern = /^(\d+)(-ლი|-ე)?/i
var parseOrdinalNumberPattern = /\d+/i
var matchEraPatterns = {
narrow: /^(ჩვ?\.წ)/i,
abbreviated: /^(ჩვ?\.წ)/i,
wide: /^(ჩვენს... |
import React, { useState } from "react"
import Modal from "react-modal"
const Date = ({ event, month, mail }) => {
const [open, setOpen] = useState(false)
return (
<>
<div className="col-md-2 col-sm-4" key={event.id}>
<div
className="datesCalendar--day"
onClick={() => setOpen(... |
/*jshint expr: true*/
'use strict';
const Koa = require('koa'),
request = require('supertest'),
routing = require('..');
const app =new Koa(),
app2 = new Koa();
let users;
describe('router is', function () {
before(function () {
app.use(routing(app));
app2.use(routing(app2));
... |
'use strict'
const assert = require('chai').assert;
const express = require('express');
const supertest = require('supertest');
const httpContext = require('../index');
describe('express-http-context', function () {
it('does not store or return context outside of request', function () {
// ARRANGE
const key = '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.