text stringlengths 2 1.04M |
|---|
import { app, ipcMain, crashReporter } from 'electron'
import createMainWindow from './main/createWindow'
import createBackgroundWindow from './background/createWindow'
import config from './lib/config'
import AppTray from './main/createWindow/AppTray'
import autoStart from './main/createWindow/autoStart'
import initA... |
import https from 'https';
import http from 'http';
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function unwrapExports (x) {
return x && x.__esModule ? x['default'] : x;
}
function createCommonjsModule(fn, module) ... |
Template.profilePage.helpers({
email: function() {
return this.emails[0].address;
}
})
Template.profilePage.events({
'submit form#profile-edit-form': function (evt) {
evt.preventDefault();
var email = $(evt.target).find('#emailInput').val();
var firstName = $(evt.target).fi... |
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
export default class Result {
/**
* @param {boolean} success
* @param {any} item
* @param {string} cause
*/
constructor(success, item, cause) {
this.success = success;
this.item = item;
this.cause = cause;
}
static successful(item) {
return new Resul... |
import React, { useState, useEffect, useLayoutEffect, useRef } from 'react'
import styled from 'styled-components'
import About from './About'
import Projects from './Projects'
import Glossary from './Glossary'
import Resources from './Resources'
import NavMenu from './NavMenu'
export default function Layout({scrollPe... |
"use strict";!function(e){e.fn.serializeJSON=function(){var n={};return jQuery.map(e(this).serializeArray(),function(e){void 0===n[e.name]?n[e.name]=e.value:n[e.name]+=","+e.value}),n}}(jQuery); |
export var AgoHours="{0}h ago";export var AgoMinutes="{0}m ago";export var DayAtTimeFormat="{0} at {1}";export var DaysHoursMinutes="{0}d {1}h {2}m";export var FriendlyNumberBillionsFormat="{0}B+";export var FriendlyNumberMillionsFormat="{0}M+";export var FriendlyNumberThousandsFormat="{0}K+";export var HoursMinutesSec... |
import { helper } from "@ember/component/helper";
import { last } from "voca";
export default helper(function vocaLast(params /*, hash */) {
return last(params[0], params[1]);
}); |
const Table = require('../models/Table');
const readJson = require('./readJson');
/**
* Load Table from URL or Path
*
* @param {string} config
*/
async function readJsonTable(config){
if ( typeof config === 'string' ){
config = await readJson(config);
}
let table = Table.createTable(config)... |
module.exports = (additionalExtensions = []) => {
return ['.js', '.jsx', '.ts', '.tsx', '.json', '.css', '.less', '.scss', '.sass', '.svg', '.png', '.jpg', '.jpeg', '.webp', '.eot', '.ttf', '.woff2', '.php', ...additionalExtensions]
} |
'use strict';
describe('myApp.chat-list module', function() {
beforeEach(module('myApp.chatList'));
describe('chat-list controller', function(){
it('should ....', inject(function($controller) {
//spec body
var chatListCtrl = $controller('chatListViewCtrl');
expect(chatListCtrl).toBeDefined... |
var ModifyMonitoredItemsResponse_Schema = {
name: "ModifyMonitoredItemsResponse",
fields: [
{ name: "responseHeader", fieldType: "ResponseHeader" },
// MonitoredItemModifyResult
// List of results for the MonitoredItems to modify. The size and order of the list
// matches the siz... |
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
NativeModules,
TouchableOpacity
} from 'react-native';
import CardView from 'rn-cardview'
class HelloWorld extends React.Component {
constructor(props) {
super(props)
this.state = {
m... |
'use strict';
const normalize = function (value) {
try {
return JSON.parse(value);
} catch (ex) {
return value;
}
};
const processEnv = function (key, defaultValue = undefined) {
if (!key) {
const environmentVariables = {};
/* eslint-disable no-process-env */
Object.keys(process.env).forE... |
import GoogleImages from 'google-images';
const RESULTS_PER_PAGE = 10;
/**
* Creates an array of google search promises, one for each page request
* @param {string} cseId valid Google custom search engine ID
* @param {string} apiKey valid Google API key
* @param {string} query query to search on
* @param {number... |
(window["webpackJsonprenderer"] = window["webpackJsonprenderer"] || []).push([["icon.arrow_right-js"],{
/***/ "./node_modules/@elastic/eui/es/components/icon/assets/arrow_right.js":
/*!****************************************************************************!*\
!*** ./node_modules/@elastic/eui/es/components/icon/... |
g_db.quests[6504]={id:6504,name:"^ffffffBasic Craftsman",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:0,can_retake_after_failure:1,on_fail_parent_fail:1,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0... |
/*
* Basic test of successful rollback in replica sets.
*
* This test sets up a 3-node set, with an arbiter and 2 data-bearing nodes, A and B.
* A is the initial primary node.
*
* The test inserts 3 documents into A, and waits for them to replicate to B. Then, it partitions A
* from the other nodes, causing it ... |
import { SET_MONSTERS } from '../actions/monsters'
export default function monsters (state = {}, action) {
switch (action.type) {
case SET_MONSTERS :
return {
...state,
...action.monsters
}
default :
return state
}
} |
var jsonWork;
var zoom = 1.8;
var estilo = "";
var proced = new Object();
$( document ).ready(function() {
logger("ready!");
$("#desHtml").hide();
$("#desCSS").hide();
$("#zoom").val(zoom);
$("#ghtml").on('click',function(){
zoom = $("#zoom").val();
$("#divhtml").empty();
$.get("xml/" +... |
/* Normalize file path slashes.
*
* |Name |Type |Desc |
* |------|------|-----------------|
* |path |string|Path to normalize|
* |return|string|Normalized path |
*
* ```javascript
* normalizePath('\\foo\\bar\\'); // -> '/foo/bar/'
* normalizePath('./foo//bar'); // -> './foo/bar'
* ```
*/
/... |
deepmacDetailCallback("e4c63d000000/24",[{"d":"2013-08-31","t":"add","a":"1 Infinite Loop\nCupertino CA 95014\n\n","c":"UNITED STATES","o":"Apple, Inc."},{"d":"2015-08-27","t":"change","a":"1 Infinite Loop Cupertino CA US 95014","c":"US","o":"Apple, Inc."}]); |
// All symbols with the `Uppercase` derived core property as per Unicode v4.0.1:
[
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z',
'\xC0',
'\xC1',
'\xC2',
'\xC3',
'\xC4',
'\xC5',
'\xC6',
'\xC7',
'\xC8',
... |
"use strict";
var assert = require("assert");
var setCookie = require("../lib/set-cookie.js");
describe("set-cookie-parser", function() {
it("should parse a simple set-cookie header", function() {
var actual = setCookie.parse("foo=bar;");
var expected = [{ name: "foo", value: "bar" }];
assert.deepEqual(a... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){function f(c){var a=this.att,c=c&&c.hasAttribute(a)&&c.getAttribute(a)||"";void 0!==c&&this.setValue(c)}function g(){for(var c,a=0;a<arguments.length;a++)if(argum... |
/**
* This file stores all paths and constants used throughout all Solid files.
* The best is to not touch it to keep this structure
* and keep in "convention over configuration" state of mind.
* If needed you can still teak some options here, be careful ! :)
*/
/**
* NOTE : Every folder path needs to end with a... |
;(function($){
$.fn.gdsZoom = function(options){
// 默认值
var defaults = {
// 放大区域的宽高
width:400,
height:300,
// 显示位置
position:'right',//left,top,bottom,right
// 小图与大图的间距
gap:15
}
return this.each(function(){
var opt = $.extend({},defaults,options);
var $small = $(this);
var $sm... |
const router = require('express').Router()
module.exports = router
router.use('/items', require('./items'))
router.use('/sellers', require('./sellers'))
router.use('/cart', require('./cart'))
router.use((req, res, next) => {
const error = new Error('Not Found')
error.status = 404
next(error)
}) |
var callbackArguments = [];
var argument1 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
base_0[8] = 8.371438626587367e+307
return a/b/c
};
var argument2 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
argument4['AO?'] = [783,"e","o",82,823,"Y)",403]
retu... |
(function() {
function Ai(parent) {
this.parent = parent;
}
var findBot = Dagaz.AI.findBot;
Dagaz.AI.findBot = function(type, params, parent) {
if ((type == "fast") || (type == "opening")) {
return new Ai(parent);
} else {
return findBot(type, params, parent);
}
}
Ai.prototype.setContext = funct... |
// #todo
'use strict';
console.log('-- begin --');
// write isCurious to pass the tests
/**
* determines if a string is curious or not
* @param {string} str - the string to check for enthusiasm
* @returns {boolean}
*/
const isCurious = (_) => {
return _;
};
// this works! no need to change it
const find = (ar... |
var _traceLevel = 0;
var pins = (function (exports) {
'use strict';
var HOST_CALLBACKS = {};
var has = function (name) { return Object.keys(HOST_CALLBACKS).includes(name); };
var get = function (name) {
if (Object.keys(HOST_CALLBACKS).includes(name))
{ return HOST_CALLBACKS[name]; }
els... |
/**
* @license Angular v5.1.3
* (c) 2010-2017 Google, Inc. https://angular.io/
* License: MIT
*/
import { AUTO_STYLE, NoopAnimationPlayer } from '@angular/animations';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*... |
var pym = require("./lib/pym");
require("./lib/webfonts");
var d3 = {
...require("d3-array/dist/d3-array.min"),
...require("d3-shape/dist/d3-shape.min")
};
var { isMobile } = require("./lib/breakpoints");
var pymChild;
var renderSingle = require("./renderSingle");
//Initialize graphic
var onWindowLoaded = functio... |
const getDestinations = require("./routes/destination/get");
const express = require("express");
const init = require("./initServices");
const dotenv = require("dotenv").config();
// Set up the configuration
const config = {
geonames_username: process.env.GEONAMES_USERNAME,
pixabay_api_key: process.env.PIXABAY_API... |
const {
addMatchImageSnapshotPlugin,
} = require('cypress-image-snapshot/plugin');
module.exports = on => {
addMatchImageSnapshotPlugin(on);
}; |
/**
* Define overrides to prevent any test from spawning its own test fixture since certain passthrough
* suites should not contain JS tests that start their own mongod/s.
*/
(function() {
'use strict';
MongoRunner.runMongod = function() {
throw new Error(
"Detected MongoRunner.runMongod... |
/** @type {Omit<IterableIterator<any>, 'next' | 'return' | 'throw'>} */
export const IteratorPrototype = Object.getPrototypeOf(
Object.getPrototypeOf([][Symbol.iterator]())
);
/** @type {Omit<AsyncIterableIterator<any>, 'next' | 'return' | 'throw'>} */
export const AsyncIteratorPrototype = Object.getPrototypeOf(
O... |
import urls from 'config/urls';
const {
abc, about, activities, schedule, gallery, contact, news,
} = urls;
export default [
{ text: 'O nas', link: about },
{ text: 'Oferta', link: activities },
{ text: 'Nasz dzień', link: schedule },
{ text: 'Galeria', link: gallery },
{ text: 'ABC Przedszkolaka', link: ... |
import * as types from '../actions/actionTypes';
const initialPosts = [];
export default function posts(state = initialPosts, action) {
switch(action.type) {
case types.LOAD_POSTS_SUCCESS:
return action.posts.filter(post => post.deleted === false);
case types.ADD_POST:
state.push(action.response);
retur... |
import React from "react"
import AniLink from "gatsby-plugin-transition-link/AniLink"
import Img from 'gatsby-image'
import { useStaticQuery, graphql } from "gatsby"
import { Navbar, Nav, Form, FormControl, Button } from "react-bootstrap"
const CustomNavbar = ({ pageInfo }) => {
const data = useStaticQuery(graphql`
... |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_components_Pages_UserManagement_Add_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Pages/UserManagemen... |
// INITIAL ACTION TYPE
export const INITIAL_ACTION = "INITIAL_ACTION";
// LOGIN USER ACTION TYPES
export const LOGIN_USER_REQUEST = "LOGIN_USER_REQUEST";
export const LOGIN_USER_SUCCESS = "LOGIN_USER_SUCCESS";
export const LOGIN_USER_FAILURE = "LOGIN_USER_FAILURE";
export const LOGIN_USER_IN_PROGRESS = "LOGIN_USER_IN... |
//-------------------------------------------------------------------------------
//
// Project: EOxClient <https://github.com/EOX-A/EOxClient>
// Authors: Daniel Santillan <daniel.santillan@eox.at>
//
//-------------------------------------------------------------------------------
// Copyright (C) 2014 EOX IT Service... |
Lab: Detect Scatter Gather Queries
Which of the following is required in order for a query to be targeted to a subset of shards?
An index exists on the shard key // correct
The query uses the shard key // correct
The shards are running on same data center // incorrect |
$('#download').click(function (event) {
event.preventDefault();
window.location = jsbin.getURL({ withRevision: true }) + '/download';
analytics.download();
}); |
(function (angular, enquire) {
"use strict";
angular.module('jander', ['ngAnimate', 'ngTouch', 'ngSanitize']).
/*config(function ($routeProvider) { // provider-injector
// This is an example of config block.
// You can have as many of these as you want.
// You can only inject Provide... |
/**
* Created by Scott on 8/16/2015.
*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// configuration for grunt tasks...
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'lib/square.js']
},
uglify... |
module.exports = {
"extends": [
"eslint:recommended",
'plugin:vue/recommended',
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"semi": ["err... |
export const CREATE_ORGANIZATION_SUCCESS = 'CREATE_ORGANIZATION_SUCCESS';
export const FETCH_ORGANIZATIONS_SUCCESS = 'FETCH_ORGANIZATIONS_SUCCESS';
export const FETCH_ORGANIZATION_BY_ID_SUCCESS = 'FETCH_ORGANIZATION_BY_ID_SUCCESS'; |
'use strict';
//contrib
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.set('useNewUrlParser', true);
mongoose.set('useFindAndModify', false);
mongoose.set('useCreateIndex', true);
mongoose.set('useUnifiedTopology', true);
const winston = require('winston');
const crypto = require('cr... |
export const Quizzes =[
{
id: 1232341423,
formTitle: 'Sample Quiz',
formDescription: 'This is a sample quiz. In this Sample Quiz you can test the fuctionality of Rendering Quiz',
color: '#673ab7',
schedule: 'Fri Jun 11 2020 16:00:00 GMT+0530 (India Standard Time)',
i... |
var searchData=
[
['constraintype_253',['constrainType',['../structHazelnp_1_1ParamConstraint.html#a88a4a4c215723259c71853992d09acac',1,'Hazelnp::ParamConstraint']]]
]; |
// MODULES //
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { withTranslation } from 'react-i18next';
import Button from 'react-bootstrap/Button';
import ButtonGroup from 'react-bootstrap/ButtonGroup';
import FormGroup from 'react-bootstrap/FormGroup';
import Modal from... |
/*
* Copyright 2012 Amadeus s.a.s.
* 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 i... |
/**
* Converts milliseconds into greater time units as possible
* @param {int} ms - Amount of time measured in milliseconds
* @return {Object|null} Reallocated time units. NULL on failure.
*/
export function allocateTimeUnits(ms) {
if (!Number.isInteger(ms)) {
return null;
}
let remaining = ms;
/**
... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
'use strict'
// bailout if a test is broken
// so that the folder can be inspected
process.env.TAP_BAIL = true
const t = require('tap')
const {
readFile
} = require('fs')
const path = require('path')
const rimraf = require('rimraf')
const mkdirp = require('mkdirp')
const walker = require('walker')
const { generate ... |
/*! zero-fill. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
/**
* to-hankaku.js
* convert to ascii code strings.
*
* @version 1.0.1
* @author think49
* @url https://gist.github.com/964592
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License)
*/
t.toHankaku=functi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Streamable = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descrip... |
const csurf = require('csurf');
const express = require('express');
/**
* Initialize the CSRF middleware.
* @param {object} config A configuration object.
* @param {express.Router} config.router An express router.
* @returns {express.Router} The express router that is initialized.
*/
const initialize = (options =... |
module.exports={A:{A:{"2":"I F E D A B gB"},B:{"2":"C O T P H J K","129":"UB IB N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 m n o p q r s t u v Q x y z TB AB FB CB DB BB w R M JB KB LB MB NB OB PB QB RB SB","2":"qB GB G U I F E D A B C O T P H J K V W X Y Z a b c d e f g h i j k l nB fB"},D:{"2":"G U I F E D A B C O T P H J K V W ... |
import React from 'react';
class PostsIndex extends Component
{
componentWillMount()
{
// We would call an action creator to fetch posts
}
render()
{
return (
<div>List of blog posts</div>
);
}
}
export default PostsIndex; |
module.exports = function(grunt) {
// always print a stack trace if something goes wrong
grunt.option('stack', true);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
gitinfo: {},
clean: {
'dist': ['dist'],
'compiled': ['compiled'],
'test': ['test/*.compiled.js*']
},
jshint: {
all:... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function get() {
return _Eye["default"];
}
});
var _Eye = _interopRequireDefault(require("../lib/icons/legacy/Eye"));
function _interopRequireDefault(obj) {
re... |
export const NAV_GROUPS = [
{
title: 'My Clinic',
icon: 'mdi-hospital-building',
active: false,
roles: ['admin', 'superadmin'],
navs: [
{
title: 'Details',
route: { name: 'settings-clinic-details' },
roles: ['admin', 'superadmin'],
},
{
title: 'Mem... |
/**
* Anchor API
* # Introduction This document describes KAS (Klaytn API Service) Anchor API. Anchor API provides features sending metadata available to verify data reliability to ensure the reliability of service chain data to Klaytn main chain. For more details on using the Anchor API, please refer to [Tutorial](... |
const is = require("is");
/**
* Module dependencies.
*/
const isEmpty = require("lodash.isempty");
const isPlainObject = require("lodash.isplainobject");
const transform = require("lodash.transform");
/**
* Export `clean` function.
*/
const defaultOptions = {
cleanKeys: [],
cleanValues: [],
emptyArra... |
System.register(["./p-ac45fd19.system.js"],(function(){"use strict";var e,t;return{setters:[function(n){e=n.p;t=n.b}],execute:function(){e().then((function(e){return t([["p-arqnlskd.system",[[0,"wv-recurrence-template",{recurrenceTemplate:[1,"recurrence-template"],templateDefault:[1,"template-default"],typeOptions:[1,"... |
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
/**
* Nuxt.js root directory
* See https://nuxtjs.org/api/configuration-srcdir/
*/
srcDir: 'client/',
/**
* Headers of the page
* See https://nuxtjs.org/api/configuration-head
*/
head: {
title: 'Venture Code',
... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/Layout"
import Head from "../components/Head"
import Banner from "../components/Banner"
const NotFound = () => {
return (
<Layout>
<Head title="Not Found =(" />
<Banner title="Page not found!"></Banner>
<... |
import { getInitialData } from "../utils/api";
import { receiveTweets } from "./tweets";
import { receiveUsers } from "./users";
import { setAuthedUser } from "./authedUser";
import { showLoading, hideLoading } from "react-redux-loading";
const USER_ID = "dan_abramov";
export function handleInitialData() {
return d... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... |
$(document).ready(function() {
//Agregar cliente con submit
$('#formulario-componente').submit(function(e) {
e.preventDefault();
const postData = {
descripcion: $('#descripcion').val(),
num_componente: $('#numcomp').val(),
ubicacion: $('#ubicacion').val()
... |
/*
* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
goog.module('org.antlr.v4.runtime.atn.LookaheadEventInfo');
goog.module.declareLegacyNamespace();
const DecisionEvent... |
/**
* Copyright 2021 FlowSquad GmbH
*
* 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 ... |
//# sourceMappingURL=component---src-pages-docs-creating-charts-and-dashboards-exploring-data-mdx-994dbe74b76e9bf8e5b5.js.map |
document.addEventListener("DOMContentLoaded", () => {
$("select").selectpicker();
document.querySelectorAll(".dropdown-toggle").forEach((element) => {
element.classList.add("increase-height");
element.classList.add("border");
});
}); |
/*!
* Materialize v1.0.0 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/ |
var mongo = require("./mongo");
var mongoURL = "mongodb://localhost:27017/Lab2MongoDB";
var md5 = require('md5'); // used for encryption
exports.handle_request_login = function (msg, callback){
var res = {};
console.log("In handle_request_login:"+ msg.username);
var username = msg.username;
var password = msg... |
'use strict';
/**
* Module dependencies.
*/
var config = require('../config'),
mongoose = require('./mongoose'),
express = require('./express'),
chalk = require('chalk'),
seed = require('./seed');
function seedDB() {
if (config.seedDB && config.seedDB.seed) {
console.log(chalk.bold.red('Warning: Database se... |
import Ember from 'ember';
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
import PaginationRouteMixin from 'ember-cli-pagination/remote/route-mixin';
import config from 'uber-app/config/environment';
export default Ember.Route.extend( AuthenticatedRouteMixin, PaginationRouteMixin, ... |
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.24.0(89cdf8577cdd4881a366f9f7ef6abaa78453fd4b)
* Released under the MIT license
* https://github.com/microsoft/vscode/blob/main/LICENSE.txt
\r |
import Course from './Course'
function App(){
return (
<div>
<Course
img="https://bestprogrammer.ru/wp-content/uploads/2021/01/Luchshie-proekty-JavaScript-dlya-nachinayushhih.jpg"
title="JavaScript for beginners"
year="2021"
price... |
export { default } from './Audio.jsx' |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("devtools", "nl", {
title: "Elementinformatie",
dialogName: "Naam dialoogvenster",
tabName: "Tabnaam",
elementId:... |
module.exports = {
root: true,
env: {
browser: true,
es2020: true,
node: true,
jest: true
},
globals: {
ga: true,
chrome: true
},
extends: ['plugin:vue/essential', 'standard', 'prettier'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
ecmaFeatures: {
jsx... |
/**
* @fileoverview Tests for rules.
* @author Patrick Brosset
*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var vows = require("vows"),
assert = require("assert"),
rules =... |
const dir = require('dir_filenames')
const compile = require('protobuf-jsonschema')
const path = require('path')
/**
* @param {string} dirpath
*/
function convert (dirpath) {
if (!dirpath) throw new Error('Dirpath required!!!')
let component = {}
const filenames = dir(dirpath)
for (let i = 0; i < filenames.l... |
var esutils = require("esutils");
var _ = require("lodash");
var t = exports;
var addAssert = function (type, is) {
t["assert" + type] = function (node, opts) {
opts = opts || {};
if (!is(node, opts)) {
throw new Error("Expected type " + JSON.stringify(type) + " with option " + JSON.stringify(op... |
import React from "react";
import PropTypes from "prop-types";
import IconButton, { types } from "@hig/icon-button";
import { Help24 } from "@hig/icons";
import "@hig/icon-button/build/index.css";
export default function HelpButtonPresenter({ onClick, title }) {
return (
<IconButton
icon={<Help24 />}
... |
//# sourceMappingURL=component---src-pages-404-js-6bcd8b948f852b03e095.js.map |
import _ from 'lodash'
import firebase from 'firebase'
const setUsers = async (context, request) => {
context.commit('SET_USERS', { data: request ? request.data : null, total: request ? request.total : 0 });
};
const showHideCols = async (context, request) => {
context.commit('SHOW_HIDE_COLS', request);
};
const... |
import React from 'react'
export default function CartPaymentInfo() {
return (
<div className="CartPaymentInfo">
<div className="tw-border rounded p-5">
<div className="tw-flex tw-justify-between tw-items-center">
<p className="tw-font-semibold tw-text-blue-9... |
// Write a function that returns the sum of all the odd numbers from 1 to 5000. (e.g. 1+3+5+...+4997+4999)
function sumOdd5000() {
var sum = 0;
for (var i = 1; i <= 5000; i++) {
if (i % 2 == 1) {
sum += i;
}
}
return sum;
}
console.log(sumOdd5000()); |
var callbackArguments = [];
var argument1 = function callback(){callbackArguments.push(arguments)};
var argument2 = function callback(){callbackArguments.push(arguments)};
var argument3 = {"126":82,"655":"","1.2859159920695569e+307":"","H":213,"1.1724419915915371e+308":"Q","1.2800661050783014e+308":3.2885912344168796e+... |
'use strict'
module.exports = gh
// Return a URL to GitHub, relative to an optional `repo` object, or `user` and
// `project`.
function gh(repo, project) {
var base = 'https://github.com/'
if (project) {
repo = {user: repo, project: project}
}
if (repo) {
base += repo.user + '/' + repo.project + '/'... |
import React from 'react';
import SecondaryNav from '../components/layout/navbar/navabr'
import Footer from '../components/layout/footer'
import Covid from './covid'
import Home from '../components/career/index'
export default function Index() {
return (
<div>
<Covid/>
<SecondaryNav/>
... |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.