text stringlengths 2 1.04M |
|---|
/* eslint-disable no-template-curly-in-string, no-multi-spaces */
import {readDoc, assert, find} from './../../../util.js';
/** @test {MemberDoc#@_name} */
describe('TestComputedProperty:', ()=> {
const doc = readDoc('class/src/Computed/Property.js~TestComputedProperty.html');
describe('in summary:', ()=>{
it... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides default renderer for control sap.ui.table.TreeTable
sap.ui.define(['sap/ui/table/TreeTable'], function(Table) {
"use str... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(gene... |
import{_ as e}from"./Tree.vue_vue&type=style&index=0&lang.4ac4e64b.js";import{g as t}from"./dicType.4549b5c0.js";import{j as a,r,I as n,K as o,o as s,m as c,n as i}from"./vendor.686fd1d4.js";import"./index.44a64fe8.js";import"./useContextMenu.2be85cf6.js";/* empty css */var l=a({name:"DictTypeTree",compone... |
/* ===================================================
* bootstrap-transition.js v2.3.1
* http://twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... |
define("ace/snippets/verilog",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText =undefined;
exports.scope = "verilog";
}); |
goog.provide('expound.problems');
expound.problems.adjust_in = (function expound$problems$adjust_in(form,problem){
var in1 = expound.paths.in_with_kps(form,new cljs.core.Keyword(null,"val","val",128701612).cljs$core$IFn$_invoke$arity$1(problem),new cljs.core.Keyword(null,"in","in",-1531184865).cljs$core$IFn$_invoke$ari... |
import Vue from 'vue';
import NavBarDash from './NavBarDash.vue';
import NavBarFront from './NavBarFront.vue';
[
NavBarDash,
NavBarFront,
].forEach(c=>{
Vue.component(c.name,c)
}) |
module.exports = require('babel-jest').createTransformer({
babelrc: false,
configFile: false,
presets: ['@babel/preset-env'],
}); |
const BigNumber = require("bignumber.js");
const {
sendToAddress,
} = require('./calls');
const BN = BigNumber.clone({ DECIMAL_PLACES: 8 });
async function construct({ client, maximumAmount, limit, feeRate }) {
let unspent = await client.listUnspent(1, 9999999, []);
//unspent = unspent.filter(function( ob... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Diagnostic Radiologist", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Radiology Consultants of Little Rock", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "18 Farnham Loop", "CONTRIBUTOR MIDDLE NAME": "", "DO... |
/**
* External dependencies
*/
import { boolean, object, select, text } from '@storybook/addon-knobs';
/**
* WordPress dependencies
*/
import { useState } from '@wordpress/element';
/**
* Internal dependencies
*/
import SelectControl from '../';
export default {
title: 'Components/SelectControl',
component: ... |
const topButton = document.querySelector('.top-button');
function scrollFunction() {
// if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
// topButton.style.display = "block";
// } else {
// topButton.style.display = "none";
// }
if (
document.body.scrollTop > 300... |
export const myReact = (type, options, ...args) => {
const props = Object.assign({}, options);
const children = args.length > 0 ? [].concat(...args) : [];
props.children = children
.filter(child => child != null && child !== false)
.map(child =>
child instanceof Object
? child
: myRe... |
import { FETCH_WEATHER } from '../actions/index'
export default function(state = [], action) {
switch (action.type) {
case FETCH_WEATHER:
// return state.concat([action.payload.data])
return [action.payload.data, ...state] // [city, city, city]
}
return state
} |
import CellGroup from './src/index.vue'
CellGroup.install = function (Vue) {
Vue.component(CellGroup.name, CellGroup)
}
export default CellGroup |
var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("wind... |
'use strict';
const CatberryBase = require('../lib/base/CatberryBase');
const Promise = require('promise');
// if browser still does not have promises then add it.
if (!('Promise' in window)) {
window.Promise = Promise;
}
class Catberry extends CatberryBase {
/**
* Creates new instance of the browser version of... |
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('species', { path: '/species/:animal_species'});
this.route('admin');
this.route('animal', { path: '/animal/:animal_id'});
this.rout... |
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
databaseURL: process.env.REACT_APP_DATABASE_URL,
projectId: process.env.REACT_APP_PROJECT_ID,
... |
var searchData=
[
['processframe',['processFrame',['../classstereoFrame.html#ad0d8e912a49ede2e82bd153b8dc7bfe7',1,'stereoFrame']]]
]; |
if (!Array.prototype.includes) {
Array.prototype.includes = function (searchElement /*, fromIndex*/ ) {
'use strict';
var O = Object(this);
var len = parseInt(O.length) || 0;
if (len === 0) {
return false;
}
var n = parseInt(arguments[1]) || 0;
var k;
if (n >= 0) {
k = n;
... |
const {bot} = require("../main")
bot.on("ready", async() => {
console.log(`Bot is now online!, current bot is ${bot.user.tag}`);
console.log(`${bot.user.username} is online on ${bot.guilds.size} server!`);
let Status = [
"help",
"Dont afraid to ask!",
"Custom made bot!",
"Made by TommyWaltion... |
import React from "react";
function Title2({ children }) {
return <h2 className="mb-3 font-serif text-4xl">{children}</h2>;
}
export default Title2; |
var Accessor, Easie, Tween, U, _idCounter;
U = require('./Util');
Easie = require('./Easie');
Accessor = require('./Accessor');
_idCounter = 0;
Tween = (function() {
function Tween(config) {
this.id = _idCounter++;
U.extend(this, config);
this._saveProperty = "_plunder_tween_save_" + this.id;
thi... |
'use strict';
define(['vwf/view/editorview/angular-app', 'vwf/view/editorview/HierarchyManager', './ScriptEditorAutocomplete','./lib/ace/ace.js'], function(app)
{
//$(document.head).append('<script src="../vwf/view/editorview/lib/ace/ace.js" type="text/javascript" charset="utf-8"></script>');
var methodSuggestions ... |
const puppeteer = require('puppeteer')
const PDFMerge = require('easy-pdf-merge')
const { join, dirname } = require('path')
const { dev } = require('vuepress')
const { fs, logger, chalk } = require('@vuepress/shared-utils')
const { red, yellow, gray } = chalk
// Keep silent before running custom command.
logger.setOpt... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.17-1-3
description: Array.prototype.some applied to boolean primitive
---*... |
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="footer">© 2018 Navis Inc.</footer>
);
}
}
export default Footer; |
import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
function SEO({ description, lang, meta, keywords, title }) {
return (
<StaticQuery
query={detailsQuery}
render={data => {
const metaDescription =
... |
"use strict";
var vap_sendRawTransaction = require("../wrappers/vap").sendRawTransaction;
var packageAndSignRawTransaction = require("./package-and-sign-raw-transaction");
var handleRawTransactionError = require("./handle-raw-transaction-error");
var RPCError = require("../errors/rpc-error");
var errors = require("../... |
import styled from "styled-components";
import Link from "next/link";
import H4 from "@Components/UI/H4";
import H5 from "@Components/UI/H5";
import A from "@Components/UI/A";
import Center from "@Components/UI/Center";
import Image from "next/image";
import dim from "@Utils/dim";
import Newsletter from "@Containers/Ne... |
"use strict";
if (process.env.GATSBY_EXPERIMENTAL_PLUGIN_OPTION_VALIDATION) {
exports.pluginOptionsSchema = function (_ref) {
var Joi = _ref.Joi;
return (// TODO: make sure that trackingId gets required() when releasing a major version
Joi.object({
trackingId: Joi.string().description("The prop... |
db.Person.aggregate([
{"$addFields": {
data_Car: {
Car_id: '$carId',
Car_name: '$car.name',
Car_year: '$car.year'
}
}},
{"$project": {
carId: false,
car: false
}},
{"$lookup": {
from: 'Insurance',
foreignField: '_id... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './main.scss';
import Home from './pages/Home';
import Badge from './pages/Badge';
import Group from './pages/Group';
import Member from './pages/Member';
import Settings from './pages/Settings';
import Account from './pages/Account';... |
// HomeView.js
import HomeBoard from "../components/HomeBoard";
function HomeView() {
return <HomeBoard />;
}
export default HomeView; |
/**
* @module
*/
(function() {
/**
* @constructor
*/
cell = function(opts = {}) {
this.type = opts.type || "grass";
this.draw = cell.mapping[this.type];
}
/**
*
*/
cell.prototype.set = function(opts = {}) {
Object.assign(this, opts);
this.draw = cell.mapping[this.type];
}
/**
* Takes a ti... |
var BUGNUMBER = 897634;
var summary = "expm1 should be monotonically increasing";
//print(BUGNUMBER + ": " + summary);
function test(x, prev, next) {
assertEq(Math.expm1(prev) <= Math.expm1(x), true);
assertEq(Math.expm1(x) <= Math.expm1(next), true);
}
// Thresholds in fdlibm expm1 implementation.
// |hx| ... |
import React from 'react'
import AvailableCourtsGrid from 'routes/Venue/components/Booking/AvailableCourtsGrid'
import AvailableCourtsColumn from 'routes/Venue/components/Booking/AvailableCourtsColumn'
import Slider from 'react-slick'
import { createPossibleStartingTimes } from 'routes/Venue/components/Booking/Availabl... |
var chai = require('chai'),
sinon = require('sinon'),
sinonChai = require("sinon-chai");
chai.should();
chai.use(sinonChai);
describe('Insight', function () {
var Insight = require('../lib/insight');
var eventSpy, insight, insightTopic;
beforeEach(function () {
insightTopic = 'testInsight';
insight =... |
/*
Copyright 2015 Christian Fröhlingsdorf, 5cf.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 by applicable law or agreed to in w... |
/*
* Autocomplete - jQuery plugin 1.0.2
*
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const Parser_1 = require("../../Parser");
const lexer_1 = require("../../../lexer");
const Parser_spec_1 = require("../Parser.spec");
const vscode_languageserver_1 = require("vscode-languageserver");
describe('p... |
const mongoose = require("mongoose");
const config = require("config");
const db = config.get("mongoURI");
const connectDB = async () => {
try {
await mongoose.connect(db, {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false
});
console.log("mongo db connected...");
... |
export const rateRequest = 'RATE_ARTICLE_REQUEST';
export const rateSuccess = 'RATE_ARTICLE_SUCCESS';
export const rateFailed = 'RATE_ARTICLE_FAILED'; |
(function($) {
"use strict";
/* ---------------------------------------------------------------------------
* Global vars
* --------------------------------------------------------------------------- */
var scrollticker; // Scroll Timer | don't need to set this in every scroll
var rtl =... |
//# sourceMappingURL=webpack-runtime-ca1fc749e1a0f57aee13.js.map |
'use strict';
const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {
"assets/assets/locales/en.json": "5e5c1b4b7f7a7cf4713cdb2ed66bbf03",
"assets/assets/emojis/waving_hand.png": "61ba9e20e3e1d46c7e0837fabf6306de",
"assets/FontManifest.js... |
import { Link } from "gatsby"
import React from "react"
const Header = () => (
<header>
<h1 style={{ margin: 0 }}>
<Link
to="/"
>
Grid Census
</Link>
</h1>
</header>
)
export default Header |
import React from 'react'
import Header from '../headers/header'
import Footer from '../footer'
import { Helmet } from "react-helmet"
const Layout = ({ children }) => {
return (
<div className="wrap">
<Helmet>
<meta name="description" content="Personal Site" />
<... |
"use strict";
import Home from './views/pages/Home.js'
import About from './views/pages/About.js'
import Error404 from './views/pages/Error404.js'
import PostShow from './views/pages/PostShow.js'
import Register from './views/pages/Register.js'
import Navbar from './views/components/N... |
// @flow
/* eslint-disable no-unused-vars */
import React from 'react';
import { shallow, mount } from 'enzyme';
import Droplist from '@atlaskit/droplist';
import Button from '@atlaskit/button';
import MoreIcon from '@atlaskit/icon/glyph/more';
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
import Menu, {... |
function navigateTo (title) {
$('#javadoc-tree ul span').removeClass('clicked');
$('#javadoc-tree ul span[title="' + title + '"]').addClass('clicked');
$("#javadoc-content").removeClass("error");
title = title.replace(/\./g, '/');
// Loading the javadoc-pages of the selected items into the contentar... |
// @flow
import config from 'lib/config';
import fetchJson from 'lib/fetch-json';
import template from 'lodash/template';
import countBy from 'lodash/countBy';
// Globals that aren't imported
declare var $: any;
declare var Epoch: any;
type HeatmapDatapoint = { time: number, histogram: { [string]: number } };
type C... |
'use strict'
const actions = function (api, reply, page, component) {
let macroId = `c_${component.id}`
const configuration = JSON.parse(component.configuration)
const actions = configuration.map((item) => {
return {id: item.scenario, action: 'play', delay: item.delay * 60000}
})
const firstAction = act... |
describe('Vis Class', function () {
var _ = require('lodash');
var ngMock = require('ngMock');
var expect = require('expect.js');
var indexPattern;
var Vis;
var visTypes;
var vis;
var stateFixture = {
type: 'pie',
aggs: [
{ type: 'avg', schema: 'metric', params: { field: 'bytes' } },
... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014-2018 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 ... |
/*
Stimulus 1.1.1
Copyright © 2019 Basecamp, LLC
*/
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define([ "exports" ], factory) : factory(global.Stimulus = {});
})(this, function(exports) {
"use stric... |
/******************************************************************************/
/* multies.js -- Make multiple ES servers look like one but merging results
*
* Copyright 2012-2016 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software exc... |
const videoPlayer = document.getElementById("videoPlayer");
const question = document.getElementById("question");
const continueBtn = document.getElementById("continueBtn");
const review = document.getElementById("review");
const select = document.getElementById("select");
const setTimeBtn = document.getElementById("se... |
"use strict";
class Platform {
constructor(
h,
x,
w,
speed,
) {
this.height = h;
this.x = x;
this.w = w;
this.speed = speed;
}
show(platform) {
image(platform, this.x, height - this.height, this.w, this.height / 2);
}
// Moves platform from right to left
update() {
... |
const path = require("path");
const express = require("express");
const mongoose = require("mongoose");
const dotenv = require("dotenv");
const morgan = require("morgan");
const exphbs = require("express-handlebars");
const methodOverride = require("method-override");
const passport = require("passport");
const session... |
import {fillDetailsPanel} from '../js/fill-details';
function getCookie(name) {
const b = document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)');
return b ? b.pop() : '';
}
function getParameterByName(name) {
const url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new R... |
(function(h,e,b,i,c,g,j){/*! Jssor */ |
// Generated by CoffeeScript 1.7.1
(function() {
define(['jquery', 'aloha', 'aloha/plugin', 'PubSub', 'ui/button'], function(jQuery, Aloha, Plugin, PubSub, Button) {
var ROOT_SELECTOR, adoptedActions, buildMenu, formats, makeItemRelay, squirreledEditable;
squirreledEditable = null;
ROOT_SELECTOR = 'body';... |
/* WP Editor add plugin
-----------------------------------------------------------------*/
(function() {
"use strict";
tinymce.create('tinymce.plugins.Trx_addons', {
/**
* Returns information about the plugin as a name/value array.
* The current keys are longname, author, authorurl, infourl and version.
... |
define({
root: ({
sourceSetting: "Search source settings",
instruction: "Add and configure geocode services or feature layers as search sources. These specified sources determine what is searchable within the search box.",
add: "Add search source",
addGeocoder: "Add geocoder",
geocoder: "Geocoder"... |
var https = require('http');
var fs = require('fs');
var path = require('path');
var mime = require('mime');
var cache = {};
function send404(res){
res.writeHead(404,{'Content-Type':'text/plain'});
res.write('Error 404: resource not found.');
res.end();
}
function sendFile(res,filePath,fileContent){
res.write... |
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/index/index","pages/logs/logs","pages/user/user","pages/binding-email/binding-email","pages/accountLogin/accountLogin","pages/register/register","pages/userInfo/userInfo","pages/webview... |
var _ = require('lodash');
var passport = require('passport');
var FacebookStrategy = require('passport-facebook').Strategy;
var secrets = require('./secrets');
var User = require('../models/User');
passport.serializeUser(function(user, done) {
done(null, user.facebook);
});
passport.deserializeUser(function(id, ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
const path = require('path');
/**
* List of projects that should not be treated as projects to be linked.
*
* Th... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const eventemitter3_1 = __importDefault(require("eventemitter3"));
const protocol_1 = __importDefault(re... |
/*===================================================
= Extensible function snippet =
===================================================*/
var extensibleFunction = function() {
this.run = function() {
this.atTheBeginning.apply(this, arguments);
this.before.apply(this, arguments);
this.cor... |
/*
BitSet.js v3.0.0 14/08/2015
http://www.xarg.org/2014/03/javascript-bit-array/
Copyright (c) 2014, Robert Eisele (robert@xarg.org)
Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function(n){"use strict";function p(a,b){for(var c=0,k,e=a.length,d=0;d<e;d++)c*=2,k=(a[d]+c)/b|0,c=(a[d]+c)%b,a[d]=k;return c}... |
/**
* .series (item[, delay], iterator[, done])
*
* Invoke an iterator for each emit in an array.
* An optional delay can be placed in-between the
* each item's invokation.
* @method series
* @param {Array} item
* @param {Number} delay in ms (optional)
* @param {[type]} iterator [item, next]
* @p... |
import {
i19brands,
i19categories,
i19clearFilters,
i19closeFilters,
i19didYouMean,
i19filter,
i19highestPrice,
i19itemsFound,
i19lowestPrice,
i19noResultsFor,
i19popularProducts,
i19refineSearch,
i19relevance,
i19results,
i19sales,
i19searchAgain,
i19searchingFor,
i19searchOfflineEr... |
Ext.define("DateMixin", {
dateFormatters: [
{key: "MMM", value: "%b"},
{key: "MM", value: "%m"},
{key: "dd", value: "%d"},
{key: "yyyy", value: "%Y"}
],
dateToStringDisplay: function (date) {
return Ext.Date.format(date, 'm/d/Y');
},
dateToString: function ... |
const user = {
firstName: "Dimas",
lastName: "Saputra",
age: 18
}
console.log(`Nama: ${user.firstName} ${user.lastName}, Umur: ${user.age}`);
/* output:
Nama: Dimas Saputra, Umur: 18
*/ |
var webConfig = {
entry: './src/experiment-ui.js',
output: {
filename: 'experiment-ui.js',
// use library + libraryTarget to expose module globally
library: 'ExperimentUI',
libraryTarget: 'var'
}
};
module.exports = webConfig; |
require ("dotenv").load()
const express = require("express")
const app = express()
const morgan = require("morgan")
const bodyParser = require("body-parser")
const cors = require("cors")
const fetch = require('node-fetch')
app.use(morgan("dev"))
app.use(bodyParser.json())
app.use(cors())
app.use('/users', require('./... |
import * as swcHelpers from "@swc/helpers";
// object types are identical structurally
var B = function B(x) {
"use strict";
swcHelpers.classCallCheck(this, B);
return null;
};
var C = function C(x) {
"use strict";
swcHelpers.classCallCheck(this, C);
return null;
};
var a;
var b = {
new: fun... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: NO-BREAK SPACE (U+00A0) between any two tokens is allowed
es5id: 7.2_A1.5_T2
description: Insert real NO-BREAK SPACE between tokens of var x=1
---*/
var x = 2 ;
assert.same... |
"use strict";
const User = require("../../models/User");
const output = {
home: (req, res) => {
res.render("home/index");
},
login: (req, res) => {
res.render("home/login");
},
register: (req, res) => {
res.render("home/register");
},
};
const process = {
login: a... |
export default [{
input: 'src/wallet-connect.js',
output: [{
dir: 'dist',
format: 'cjs'
}, {
file: 'dist/wallet-connect.browser.js',
format: 'cjs'
}]
}] |
import * as React from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import CircularProgress from '@material-ui/core/CircularProgress';
import { green } from '@material-ui/core/colors';
import Button from '@material-ui/core/Button';
import Fab from '@material-ui/core/Fab';
imp... |
/* @flow */
/* eslint-env mocha */
'use strict'
const chai = require('chai')
chai.use(require('dirty-chai'))
const expect = chai.expect
const standin = require('stand-in')
const Key = require('interface-datastore').Key
const S3 = require('aws-sdk').S3
const S3Mock = require('./utils/s3-mock')
const S3Store = require... |
const Sequelize = require('sequelize')
const connection = require('./database')
const Resposta = connection.define('respostas',{
corpo: {
type: Sequelize.TEXT,
allowNull: false
},
perguntaId: {
type: Sequelize.INTEGER,
allowNull: false
}
})
Resposta.sync({force: false})... |
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import styled from 'styled-components';
import { loaderDelay } from '@utils';
import { usePrefersReducedMotion } from '@hooks';
const StyledSideElement = styl... |
var paypal = require('paypal-rest-sdk'),
config = require('../../config/config.js');
paypal.configure({
'mode': config.paypal.mode,
'client_id': config.paypal.client_id,
'client_secret': config.paypal.client_secret
});
exports.paymentPaypal = function(req, res){
var paymentDetails = {
"intent": "sale",
... |
import React from 'react';
import InvestmentLabelLine from './InvestmentLabelLine';
import { getXOffset, getYOffset, getAverage } from './utils/chartUtils';
const InvestmentLabel = props => {
const {
datum,
innerRadius,
radius,
slice: { startAngle, endAngle },
nameKey,
cx,
cy
} = props... |
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-react-helmet',
]
} |
//# sourceMappingURL=component---src-pages-index-jsx-1bd38b8947cf45bb74a0.js.map |
/*
* 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... |
class ExtraDataZeroHandler {
canHandle(obj, length) {
return length == 4;
}
read(obj, archive, length) {
let shouldBeZero = archive.getInt();
if (shouldBeZero != 0) console.warn('ExtraDataZeroHandler',`Expected int after properties to be 0 but found ${shouldBeZero} at ${archive.position - 4}`);
... |
/*
Copyright 2019 New Vector Ltd
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 in writing, software
... |
// Include the Main React Dependencies and component
const React = require("react"),
ReactDOM = require("react-dom"),
Main = require("./components/main");
// This code here allows us to render our main component
ReactDOM.render(<Main />, document.getElementById("app")); |
'use strict';
const hasRole = require('./hasRole');
module.context.use('/privilege', require('./routes/privilege'), 'privilege');
module.context.use('/privileges', require('./routes/privileges'), 'privileges');
module.context.use('/role', require('./routes/role'), 'role');
module.context.use('/roles', require('./rout... |
"use strict";
require("../../../output/HelloWorldLog.Main/index.js").main(); |
const path = require("path");
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-storysource",
"@storybook/addon-a11y",
"@storybook/preset-create-react-app",
"st... |
define(["require", "exports", "tslib", "react", "react-dom", "../../Utilities", "./DetailsList.Props", "./DetailsRowCheck", "../GroupedList/GroupSpacer", "./DetailsRowFields", "../../FocusZone", "../../utilities/selection/interfaces", "../../GroupedList", "./DetailsRow.scss", "../../Styling", "./DetailsRowCheck.scss"],... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.