text stringlengths 2 1.04M |
|---|
// ES6: Set Default Parameters for Your Functions
// The default parameter kicks in when the argument is not specified (it is undefined)
// Modify the function increment by adding default parameters so that it will add 1 to number if value is not specified.
// Only change code below this line
const increment = (numb... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"];
import * as React from 'react';
import Pro... |
import React, { PureComponent } from 'react';
import {
View,
Text,
StyleSheet,
TouchableOpacity,
Image,
Dimensions,
Platform
} from 'react-native';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import { Color, Images } from 'common_f';
import MaterialIcons from 'react-native-vector-icon... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
/**
* Created by liu.xinyi
* on 2016/4/8.
*/
'use strict';
import React from 'react';
import {push} from 'react-router-redux';
import {Button, Input, Form, Row, Col, message} from 'antd';
const FormItem = Form.Item;
class Login extends React.Component {
constructor(props) {
super(props);
this.st... |
'use strict';
const _ = require('lodash');
const CONST = require('../../broker/lib/constants');
const config = require('../../broker/lib/config');
const Service = require('../../broker/lib/models/Service');
describe('models', () => {
describe('Service', () => {
describe('constructor', () => {
let options ... |
'use strict';
var handleColorMap = require('./../helpers/Fn').handleColorMap;
/**
* Loader strategy to handle Mesh object
* @method STL
* @memberof K3D.Providers.ThreeJS.Objects
* @param {Object} config all configurations params from JSON
* @return {Object} 3D object ready to render
*/
module.exports = {
cr... |
function parse(version) {
function isNumeric(n) {
return /\d/.test(n);
}
if (!isNumeric(version)) {
return false;
}
let versions = version.split('.');
let versionsPre
let output = {
major: versions[0],
minor: versions[1],
}
// if there is NOT a patch... |
import * as React from 'react';
import { Group, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { MaterialCommunityIcons } from '@expo/vector-icons';
import HomeScreen from './HomeScreen/Ho... |
import { LitElement, html, css } from 'lit-element';
import { Theme } from '@furo/framework/src/theme';
// eslint-disable-next-line import/no-unresolved
import '@ui5/webcomponents/dist/Link.js';
/**
* `display-furo-reference`
* The display-furo-reference component displays a FieldNode of type `furo.Reference` in rea... |
const router = require("express").Router();
const { Category, Product } = require("../../models");
// The `/api/categories` endpoint
router.get("/", async (req, res) => {
// find all categories and associated Products
try {
const allCategoryData = await Category.findAll({
include: [{ model: Product }],
... |
const truffleAssert = require('truffle-assertions');
let FlightSuretyData = artifacts.require('../FlightSuretyData');
let FlightSuretyApp = artifacts.require('../FlightSuretyApp');
let accounts;
// (0) 0x627306090abaB3A6e1400e9345bC60c78a8BEf57 (100 ETH)
// (1) 0xf17f52151EbEF6C7334FAD080c5704D77216b732 (100 ETH)
// ... |
var FormValidationDigerDatabase = function () {
var handleValidation = function() {
// for more info visit the official plugin documentation:
// http://docs.jquery.com/Plugins/Validation
var form = $('#form_sample');
var error = $('.alert-danger', form);
var success = $('.... |
/* ------------------------------------------------------------------------------
*
* # D3.js - zoomable treemap
*
* Demo of treemap setup with zoom and .json data source
*
* ---------------------------------------------------------------------------- */
// Setup module
// ------------------------------
var ... |
const fs = require("fs"),
faye = require('faye'),
{ipcRenderer} = require('electron');
const DEFAULT_FAYE_LOCAL_PORT = 3333;
class Config
{
constructor()
{
this.oConfig = {};
this.oPaths = {};
this.oServices = {};
}
Initialize()
{
if(this.oPaths)
{
if(this.oPaths.sConfigFile)
this.LoadAndS... |
import { Link } from 'react-router-dom';
import React from 'react';
const SideNav = props => {
return (
<>
<ul id='slide-out' className='sidenav'>
<li>
<div className='user-view'>
<div className='background'>
<img
src='https://images.wallpaperscraft.com/image/lines_smooth_minimalism_... |
frappe.listview_settings['Task'] = {
onload: function(listview) {
listview.page.add_menu_item(__("Task Calendar View"), function() {
window.location.href = 'desk#calendar-view-schedu'
window.location.reload()
})
},
} |
const { Command } = require('discord.js-commando');
const items = ['money', 'gold'];
const scores = require('../../porgscore.json');
const Discord = require('discord.js');
module.exports = class giveCommand extends Command {
constructor(client) {
super(client, {
name: 'give',
group: ... |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: { //webpack代理配置
'/api':{
target:'http://111.2... |
const isNumber = (number) => typeof number === "number";
const longitude = (value) => {
value = typeof value === "string" ? parseFloat(value) : value;
return !!(isNumber(value) && value >= -180 && value <= 180);
};
const latitude = (value) => {
value = typeof value === "string" ? parseFloat(value) : value;
r... |
import React from 'react'
import Link from 'gatsby-link'
import whaleProject from './whaleProject.gif'
import twitchProject from './twitch.gif'
const SecondPage = () => (
<div>
<h1>Projects</h1>
<h3>Whale Sightings Map</h3>
<img src={whaleProject} alt="project1" />
<h4>Description:</h4>
<p>This i... |
self.addEventListener('activate', event => {
event.waitUntil(
self.registration.navigationPreload.enable());
});
function get_response_info(r) {
var info = {
type: r.type,
url: r.url,
status: r.status,
ok: r.ok,
statusText: r.statusText,
headers: []
};
r.headers.forEach((val... |
var data=[['20040713',0.593],
['20040714',0.620],
['20040715',0.598],
['20040716',0.673],
['20040719',0.683],
['20040720',0.669],
['20040721',0.678],
['20040722',0.647],
['20040723',0.668],
['20040726',0.644],
['20040727',0.604],
['20040728',0.643],
['20040729',0.663],
['20040730',0.645],
['20040802',0.658],
['20040803... |
'use strict';
const common = require('../../common');
const test_error = require(`./build/${common.buildType}/test_error`);
const assert = require('assert');
const theError = new Error('Some error');
const theTypeError = new TypeError('Some type error');
const theSyntaxError = new SyntaxError('Some syntax error');
con... |
const path = require("path");
module.exports = {
require: [path.join(__dirname, "src/base.scss")],
skipComponentsWithoutExample: true,
webpackConfig: {
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
... |
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... |
#!/usr/bin/env node
const serviceAccount = require("./lrt3-7deeb-firebase-adminsdk-meinj-ca0e2ccdcf.json");
const admin = require("firebase-admin");
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://lrt3-7deeb.firebaseio.com"
});
const db = admin.firestore();
const p... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
"use strict";
const chalk = require('chalk');
const webdriver = require("selenium-webdriver");
let driver = new webdriver.Builder()
.forBrowser('firefox')
.build();
let multipleLocationsDisplayTest = () => {
console.log(chalk.cyan('Test wybierania prawidłowej powtarzającej się miejscowości rozpoczęty!'));
driver.... |
import React from 'react';
import cn from 'classnames';
import Link from 'next/link';
//styles
import styles from './navigationButton.module.css';
//components - styled-system
import Box from './styledSystem/box';
import Text from './styledSystem/text';
//components - styled-system
import * as Icons from './icons';
... |
App = {
web3Provider: null,
contracts: {},
account: '0x0',
hasVoted: false,
init: function() {
return App.initWeb3();
},
initWeb3: async function() {
await ethereum.enable();
if (typeof web3 !== 'undefined') {
// If a web3 instance is already provided by Meta Mask.
App.web3Pro... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Nathan Rajlich, Félicien François, Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------... |
Ext.define('Ext.theme.blackberry.tab.Panel', {
override: 'Ext.tab.Panel',
config: {
tabBarPosition: 'bottom'
}
}); |
// @flow
import React from 'react';
import { shallow, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import CohortTracker from '../CohortTracker';
configure({ adapter: new Adapter() });
describe('CohortTracker', () => {
let mockExposureDetails;
let mockOnExposure;
beforeEach(() => ... |
'use strict';
var user = prompt('What\'s your name?');
console.log (user);
var game = prompt (user + ', are you ready to play 5 questions? \'Y\' or \'N\'');
console.log(game);
game = game.toLowerCase();
if (game === 'y' || game === 'yes') {
alert('Great!');
} else {
alert('Too bad!');
}
function lab4 () {
va... |
/*global document*/
var RxReact = require('rx-react');
var FuncSubject = RxReact.FuncSubject;
var React = require('react');
var Rx = require('rx-dom');
function searchWikipedia(term) {
var cleanTerm = global.encodeURIComponent(term);
var url = 'http://en.wikipedia.org/w/api.php?action=opensearch&format=js... |
/* eslint-disable */
/**
* @file 主函数
* @author yangmingming
*/
export default `
// start函数
void main(void) {
// 输出数据
float o = getPixelsFromTexturePos_texture_origin(vCoord).r;
float res = ACTIVE_FUNCTION(o, multi_value, bias_value);
gl_FragColor.r = res;
}
`; |
'use strict';
const net = require('net');
const fs = require('fs');
const tmp = require('tmp');
const carrier = require('carrier');
const test = require('tape').test;
const rewire = require('rewire');
require('../hot-debug.js');
const log = require('debug')('test-output');
const cgateLog = require('debug')('cbus:cl... |
/*!
* OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(function () {
"use strict";
/**
* Provides functionality to get and set selection on controls.
*
* @namespace
* @name sap.ui.rta.service.Select... |
/*
AdaptableController.js
AdaptableController is the base class for all controllers
that support adapter,
The super class takes care of creating the right instance for the adapter
based on the parameters passed
*/
// _adapter is private, use Symbol
var _adapter = Symbol();
import Config from '../Config';
export cl... |
const $ = selector => document.querySelector(selector);
module.exports = $; |
const typeDefs = [/* GraphQL */`
# Error type.
type Error {
key: String
value: String
}
# Auth type.
type Auth {
token: String
errors: [Error]
}
# User type.
type User {
id: String!
firstName: String!
lastName: String!
email: String!
}
# Query type.
type Query {
... |
//# sourceMappingURL=gofore-icon.d.js.map |
import React, {
useState,
useEffect,
cloneElement,
Children
} from 'react'
import 'intersection-observer'
import {
Box,
Flex,
Text
} from 'rebass'
import PropTypes from 'prop-types'
import createScrollamaTrigger from '../utils/createScrollamaTrigger'
export default function SideScrolly(props) {
const ... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import React, {useState, useEffect} from 'react';
import {Icon} from "semantic-ui-react";
import Slider from "react-slick";
import {map, size} from "lodash";
import {Link} from "react-router-dom";
import firebase from "../../../utils/Firebase";
import "firebase/firestore";
import "firebase/storage";
import "./SongsSli... |
/** When your routing table is too long, you can split it into small modules **/
import Layout from '@/layout'
const nestedRouter = {
path: '/nested',
component: Layout,
redirect: '/nested/index',
name: 'Nested',
meta: {
title: 'Nested Routes',
icon: 'nested'
},
children: [
{
path: 'in... |
(function () {
var deployer = require('web-nexus-deployer');
module.exports = function (gulp, projectConfigurations, config) {
gulp.task('deploy-nexus', function (cb) {
info = config.nexus;
info.version = '0.0.4';
info.artifact = 'dist/example.zip';
... |
#!/usr/bin/env node
var fs = require('fs');
var getopts = require('getopts');
var jsweb_home = __dirname + "/..";
// var api_root = process.argv[2] || process.cwd();
var opts = getopts(process.argv.slice(2),
{
string : ["site", "port"]
... |
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { useContext } from 'react';
import useEventCallback from '@restart/hooks/useEventCallback';
import warning from 'warning';
import NavContext from './NavContext';
import SelectableContext, { makeEventKey } from './SelectableContext'... |
let db;
const request = indexedDB.open('budget_pwa', 1);
request.onupgradeneeded = function (event) {
const db = event.target.result;
db.createObjectStore('new_transaction', {autoIncrement: true});
};
request.onsuccess = function (event) {
db = event.target.result;
if(navigator.online) {
uplo... |
const assert = require("assert");
const GenUtils = require("../../common/GenUtils");
const MoneroDestination = require("./MoneroDestination");
const MoneroTransfer = require("./MoneroTransfer");
/**
* Models an outgoing transfer of funds from the wallet.
*
* @extends {MoneroTransfer}
*/
class MoneroOutgoingTransf... |
import React from 'react'
import Translate from 'react-translate-component'
import {
STORE_PROP_SELLS_COW,
STORE_PROP_SELLS_LAMB
} from '../interfaces/Store'
function checkFilter (filters, filterName) {
if (filters) {
return filters.includes(filterName)
}
return false
}
const Filter = (props) => (
<d... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = normalizeBlock;
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
var _randomKey = _interopRequireDefault(require("./randomKey"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? o... |
import React, { Component } from 'react';
import { Button, Col, Container, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from 'reactstrap';
class Page401 extends Component {
render() {
return (
<div className="app flex-row align-items-center">
<Container>
<Row className="justi... |
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable('t_device_feature_state', {
id: {
allowNull: false,
primaryKey: true,
type: Sequelize.UUID,
},
device_feature_id: {
allowNull: false,
type: Sequelize.UUID,
... |
module.exports = (config) => {
const fs = require('fs');
let library = false;
let vendor = './dist/js/vendor.js';
if(!fs.existsSync(vendor)) {
vendor = './build/vendor.js';
library = true;
}
let files = [
vendor,
{
pattern: require.resolve('jasmine-jquery'),
watched: false,
served: true
},
... |
'use strict';
var _regeneratorRuntime = require('babel-runtime/regenerator')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
var _chai = require('chai');
var _chai2 = _interopRequireDefault(_chai);
var _chaiAsPromised = require('chai-as-promised');
var... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// 'License'); you may not use this f... |
const webpack = require('webpack');
const {resolve} = require('path');
const {getIfUtils, removeEmpty} = require('webpack-config-utils');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const path = require('path');
module.exports = (env, argv) => {
... |
var StellarBase =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ re... |
/**
* @adobe/react-spectrum-workflow (c) by Adobe
*
* @adobe/react-spectrum-workflow is licensed under a
* Creative Commons Attribution-NoDerivatives 4.0 International License.
*
* You should have received a copy of the license along with this
* work. If not, see <http://creativecommons.org/licenses/by-nd/4.0/>.
**/
... |
(function(h){var f=function(){return 1.6<e.devicePixelRatio?e.devicePixelRatio>>0:1},q=function(a){if(!a)return 0;var d=p(a,"transition-duration");a=p(a,"transition-delay");var c=parseFloat(d),e=parseFloat(a);if(!c&&!e)return 0;d=d.split(",")[0];a=a.split(",")[0];return 1E3*(parseFloat(d)+parseFloat(a))},r=function(){"... |
const writeGood = require('../write-good');
describe('writeGood', () => {
it('should detect weasel words', () => {
expect(writeGood('Remarkably few developers write well.')).toEqual([
{ index: 0, offset: 10, reason: '"Remarkably" is a weasel word and can weaken meaning' },
{ index: 11, offset: 3, rea... |
document.addEventListener("DOMContentLoaded", function() {
OverlayScrollbars(document.querySelectorAll(".characteristics-values"), {
className : "os-theme-dark",
resize : "none",
sizeAutoCapable : true,
paddingAbsolute : false,
scrollbars : {
clickS... |
/**
* @author VovanR <mail@vovanr.com>
*/
if (!requirejs.config.baseUrl) {
requirejs.config.baseUrl = '../js/';
}
requirejs.config({
baseUrl: requirejs.config.baseUrl,
paths: {
jquery: '../vendor/jquery/dist/jquery',
},
}); |
(function () {
'use strict';
angular
.module('smn-ui')
.directive('uiContextMenu', uiContextMenuDirective);
uiContextMenuDirective.$inject = ['$timeout', '$templateCache', '$interpolate', '$compile', '$animateCss', 'uiContextMenu', 'uiWindow'];
function uiContextMenuDirective($timeout, $templateCache, $inter... |
/**
* Copyright 2016 Intel Corporation
*
* 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... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["vuelongtouch"] = factory();
else
root["... |
export { default as Cards } from "./Cards"
export { default as Chart } from "./Chart"
export { default as CountryPicker } from "./CountryPicker" |
const Product = require('../../models/product');
async function get(request, reply) {
if(request.query)
return reply(await Product.find(request.query));
return reply(await Product.find());
}
async function getById(request, reply) {
return reply(await Product.getById(request.params.productId));
}
async fun... |
const Promise = require('bluebird');
const AIM = require('../../workers/analytics-instance-manager');
const logger = require('../../common/loggers').get('ANALYTICS-INSTANCES');
// Gets the state of an analytics instance.
const getAnalyticsInstanceState = (input) => {
logger.debug(`Get state of analytics instance ${... |
import request from '@/utils/request';
export function addDelivery(data) {
return request({
url: "/purcher/order/addLogisticsInformation",
method: "post",
data: data
})
} |
"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.HappyAlt = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentC... |
/*
* custom class, extends PIXI.Container
* each instance is a Pixi-renderable slider
* properties: alpha
*
* constructor params
* curve: array of points, in osu pixels
* radius: radius of hit circle, in osu! pixels
* transform: {dx,ox,dy,oy} (x,y)->(x*dx+ox, y*dy+oy) [-1,1]x[-1,1]
* tint: 24-bit integer color ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _utils = require("../../lib/utils");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enum... |
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
plugins: [
[
"import",
{
libraryName: "element-plus",
customStyleName: name => {
// 由于 customStyleName 在配置中被声明的原因,`style: true` 会被直接忽略掉,
// 如果你需要使用 scss 源文件,把文件结尾的扩展名从 `.css` 替换成 `.scss` 就可以了
... |
function Kirba(game, x, y){
//constructor for main character
Phaser.Sprite.call(this, game, x, y, 'kirba');
this.anchor.set(0.5, 0.5);
}
Kirba.prototype = Object.create(Phaser.Sprite.prototype);
Kirba.prototype.constructor = Kirba;
//move method
Kirba.prototype.move = function (direction) { //-1 will be left, +1 is... |
import PageManager from './page-manager';
import _ from 'lodash';
import giftCertCheck from './common/gift-certificate-validator';
import utils from '@bigcommerce/stencil-utils';
import ShippingEstimator from './cart/shipping-estimator';
import { defaultModal } from './global/modal';
import swal from './global/sweet-al... |
function ps_page_toggle(sPageName, iProfileId, iBlockId) {
if($('body').find('div#dbPrivacyMenu' + iBlockId).length > 0){
$('body').find('div#dbPrivacyMenu' + iBlockId).dolPopup();
return;
}
$.post(
site_url + 'member_privacy.php',
{
ps_action: 'get_chooser',
ps_page_na... |
/**
Core script to handle the entire theme and core functions
**/
var Layout = function() {
var layoutImgPath = 'admins/layout2/img/';
var layoutCssPath = 'admins/layout2/css/';
var resBreakpointMd = Metronic.getResponsiveBreakpoint('md');
//* BEGIN:CORE HANDLERS *//
// this function handles res... |
'use strict';
module.exports = function(environment) {
let ENV = {
modulePrefix: 'ember-lazy-load',
environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_S... |
!function(a){"use strict";a("#simple-wizard").steps({headerTag:"h3",bodyTag:"div",transitionEffect:"slideLeft"}),a("#vertical-wizard").steps({headerTag:"h3",bodyTag:"div",transitionEffect:"slideLeft",stepsOrientation:"vertical"})}(jQuery); |
import { PageModuleDescriptor } from '@/modules-arch/page-module-descriptor'
import { AssetCreationRequestsPageModule } from './asset-creation-requests-page'
import { AssetUpdateRequestsPageModule } from './asset-update-requests-page'
import { SaleCreationRequestsPageModule } from './sale-creation-requests-page'
import... |
import React from "react";
import Avatar from "@material-ui/core/Avatar";
import Button from "@material-ui/core/Button";
import CssBaseline from "@material-ui/core/CssBaseline";
import TextField from "@material-ui/core/TextField";
import Grid from "@material-ui/core/Grid";
import Box from "@material-ui/core/Box";
impor... |
var regularExp1 = '(\\s|^)',
regularExp2 = '(\\s|$)';
function ClassStuff () {
'use strict';
if (!(this instanceof ClassStuff)) {
return new ClassStuff();
}
}
ClassStuff.prototype.addClass = function (element, className) {
if (element.classList) {
element.classList.add(className);
} else {
if (!... |
'use strict'
const gulp = require('gulp')
const watch = require('gulp-watch')
const stylus = require('gulp-stylus')
const jetpack = require('fs-jetpack')
const util = require('gulp-util')
const browserSync = require('browser-sync').get("blossom")
const nib = require('nib')
const jeet = require('jeet')
const rupture =... |
/*
A SET is a collection of items that are unordered and consists of unique elements (meaning they cannot be repeated)
this data structure uses the same concepts as those of a finite mathematical set but applied to a computer sciece data structure
//A MATH SET PERSPECTIVE
in mathematics, a set i... |
const express = require('express');
const router = express.Router();
//@route GET api/auth
//@desc Auth route
//@access Private
router.get('/', (req,res) => res.send('Auth route'));
module.exports = router; |
/* eslint-disable import/first, no-undef, no-new */
// Vue Setup ==================
import Vue from 'vue'
Vue.config.productionTip = false
// Vuex Store =================
import Vuex from 'vuex'
Vue.use(Vuex)
import storeStructure from '@/store'
const store = new Vuex.Store(storeStructure)
import {ini... |
'use strict';
const UnderlineXform = require('../../../../../lib/xlsx/xform/style/underline-xform');
const testXformHelper = require('./../test-xform-helper');
const expectations = [
{
title: 'single',
create() {
return new UnderlineXform();
},
preparedModel: true,
get parsedModel() {
... |
import styled from 'styled-components';
import AniLink from 'gatsby-plugin-transition-link/AniLink';
import media from 'styled-media-query';
export const ContainerWrapper = styled.div`
color: var(--postColor);
display: flex;
flex-direction: column;
justify-content: center;
padding: 0 5rem;
height: 100vh;
... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* 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 a... |
function confirmf(user){
if (confirm('¿Realmente deseas eliminar al Usuario '+user+'?')) {
Redirect("./Eliminar?username="+user);
}
}
function Redirect(URL){
window.location.assign(URL)
} |
import React from 'react';
import { render} from 'react-dom';
import RenderErrors from '../../src';
const errorData = [
'This is the first error',
'This is the second error'
];
const App = () => (
<RenderErrors
errorData={errorData}
/>
);
render(<App />, document.getElementById("root")); |
initMap = function ()
{
var latlngStr = coords.split(',', 2);
var coord = {lat: parseFloat(latlngStr[0]), lng: parseFloat(latlngStr[1])};
setAddress(coord);
setMapa(coord);
}
function setMapa (coords)
{
var coord = new google.maps.LatLng(coords.lat, coords.lng);
var infowindow = new google.map... |
import { Accordion, Box, Button, FieldGroup, Paragraph, Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../contexts/TranslationContext';
import { Setting } from './Setting';
import { useSection } from './SettingsState';
export function Section({ children, grou... |
var mongoose = require('mongoose');
var AuthorSchema = new mongoose.Schema({
name: String,
born: Date,
died: Date,
biography: String,
wikiLink: String,
books: [{
type: mongoose.Schema.Types.ObjectId,
ref: 'Book'
}]
});
mongoose.model('Author', AuthorSchema); |
export const isArray = obj => typeof Array.isArray !== 'undefined'
? Array.isArray(obj)
: Object.prototype.toString.call(obj) === '[object Array]';
export const path = paths => value => {
let val = value;
let idx = 0;
while (idx < paths.length) {
if (val == null) {
return;
}
val = val[paths... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.