text stringlengths 2 1.04M |
|---|
'use strict';
const _ = require('lodash');
const ServerlessError = require('../../../../../serverless-error');
class AwsCompileCloudWatchEventEvents {
constructor(serverless) {
this.serverless = serverless;
this.provider = this.serverless.getProvider('aws');
this.hooks = {
'package:compileEvents'... |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// You can delete this file if you're not using it
import "react-fullpage-accordion/dist/react-fullpage-accordion.css" |
"use strict";
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
maps = require('gulp-sourcemaps'),
del = require('del'),
autoprefixer = require('gulp-autoprefixer'),
browserSync = requ... |
const path = require("path");
const fs = require("fs");
const { cd, rm, exec } = require("shelljs");
const chalk = require("chalk");
const packageJson = require("../package.json");
const bin = (name) =>
path.resolve(__dirname, "..", "node_modules", ".bin", name);
const pkgsWithSrc = packageJson.workspaces
.map((p... |
const fs = require('fs')
const path = require('path')
const redis = require('redis')
const jwt = require('jsonwebtoken')
const Google = require('googleapis')
const GoogleAuth = require('google-auth-library')
const g_msg = require(`${__managerpath}/message/message.js`)
const platformUsersDBT = require(`${__platformdbpat... |
/**
* Astroid SDK Client
*
* Copyright (c) 2014 .decimal, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use... |
// Variables of HTML id's
var startBtn = document.getElementById("startBtn");
var highScoreBtn = document.getElementById("highScoreBtn");
var questionDiv = document.getElementById("questionCont");
var answersDiv = document.getElementById("answersCont");
var resultsDiv = document.getElementById("resultsCont");
var refre... |
import mongodb from "mongodb";
import { queryAndMatchArray, runMutation, nextConnectionString } from "../testUtil.js";
import { makeExecutableSchema } from "graphql-tools";
import { createGraphqlSchema } from "../../src/module.js";
import path from "path";
import glob from "glob";
import fs from "fs";
import * as proj... |
$(document).ready(function () {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$('.summernote').summernote({
height: 200,
focus: true,
callbacks: {
onMediaDelete: function (target) {
... |
import { txClient, queryClient, MissingWalletError, registry } from './module';
// @ts-ignore
import { SpVuexError } from '@starport/vuex';
import { Crowdf } from "./module/types/crowdf/crowdf";
import { Params } from "./module/types/crowdf/params";
export { Crowdf, Params };
async function initTxClient(vuexGetters) {
... |
const Audius = artifacts.require("Audius");
module.exports = function(deployer) {
deployer.deploy(Audius);
}; |
// addBoardToUser.js
var boardModels = require('../../models/boardModels');
module.exports = (req, res) => {
var board = req.body.board;
var userId = req.body.userId;
boardModels.addBoardToUser(board, userId)
.then(success => {
res.status(201).send('User Board Added!');
})
.catch(error => {
cons... |
const { resolve } = require('path')
module.exports = {
rootDir: resolve(__dirname),
testEnvironment: 'node',
testMatch: [
'<rootDir>/tests/**/*.spec.js',
],
moduleNameMapper: {
[`^vuepress-plugin-social-share$`]: '<rootDir>/lib',
},
snapshotSerializers: [require.resolve('jest-serializer-vue')... |
import { __assign } from "tslib";
import * as React from 'react';
import { StyledIconBase } from '../../StyledIconBase';
export var Angry = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColor",
"xmlns": "http://www.w3.org/2000/svg",
};
return (React.createElement(Sty... |
/*
* Copyright (c) 2017 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* TROLLEYES helps you to learn how to develop easily AJAX web applications
*
* Sources at https://github.com/rafaelaznar/trolleyes
*
* TROLLEYES is distributed under the MIT License (MIT)
*
* Permission is hereby granted, free... |
// test ajax
$(document).ready(function(){
$("#show").click(function(e){
e.preventDefault();
$.ajax({
url: url,
type: "POST",
dataType: 'json'
}).success(function(data) {
$('#show').after(data.html);
});
});
}); |
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:qunit/recommended',
'plugin:qunit/two',
'plugin:node/recommended',
'prettier',
'pr... |
import React, { Component } from 'react'
import styled from 'styled-components'
import { styles } from '../../../utils'
import { FaInstagram, FaTwitter, FaFacebook } from 'react-icons/fa'
class NavbarIcons extends Component {
state = {
icons: [
{
id: 1,
icon: <FaFacebook className="icon fac... |
// Block Scope with let or const
// Explicit scope
function foo(a){
const seed1 = 2;
let seed2 = 3;
console.log(a * seed1 * seed2);
}
console.log(seed1); // ReferenceError: seed1 is not defined.
console.log(seed2); // ReferenceError: seed2 is not defined.
// let variable
let a;
a // undefined
a = 2;
// co... |
/**
* @param {number} n
* @param {number} k
* @return {string}
*/
var getPermutation = function(n, k) {
const nums = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
const totalNums = [1];
let index = 1;
let result = '';
while (index <= n) {
totalNums[index] = totalNums[totalNums.length - 1] * index;
... |
var _ = require("lodash"),
async = require("async"),
rbt = require("functional-red-black-tree"),
assert = require("chai").assert;
module.exports = function (mocks, lib) {
describe("VectorClock unit tests", function () {
var VectorClock = lib.vclock;
var vclock;
beforeEach(function () {
... |
// import produce from 'immer';
import loginReducer from "../reducer";
// import { someAction } from '../actions';
/* eslint-disable default-case, no-param-reassign */
describe("loginReducer", () => {
let state;
beforeEach(() => {
state = {
// default state params here
};
});
it("returns the ini... |
/*
* @flow
* Copyright (C) 2018 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import * as React from 'react';
import {
EDIT_STATUS_OPE... |
const errorMap = {
TypeError: TypeError,
RangeError: RangeError,
EvalError: EvalError,
ReferenceError: ReferenceError,
SyntaxError: SyntaxError,
URIError: URIError
};
class Request {
constructor({ callId, workerId, method, args }) {
this.cmd = 'request';
this.callId = callI... |
import React, {Component} from 'react';
class BlogItems extends Component{
render(){
let {bTitle, bDetails, btnText, image, Pdata} = this.props;
return(
<div className="col-lg-4 col-sm-6">
<div className="blog_post">
<div className="blog_img">
... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
/**
* @module ol/pointer/PointerEventHandler
*/
// Based on https://github.com/Polymer/PointerEvents
// Copyright (c) 2013 The Polymer Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// me... |
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import T from './Table';
import { getOptionProps, getKey, getClass, getStyle, getEvents, getSlotOptions, camelize, getSlots } from '../_util/props-util';
var Table = {
name: 'A... |
function applyShadow(context, event) {
const name = event.data
const actorContext = context.images.actorContext.get(name)
const useShadow = actorContext.shadowEnabled
if (!!context.images.representationProxy) {
context.images.representationProxy.setUseShadow(useShadow)
context.service.send('RENDER')
... |
var req = null;
$("textarea#str").keyup(function (e) {
e.preventDefault();
var value = $(this).val();
if (req == null){
req = $.post(location.href, {
e: value
}, function (res) {
$('textarea[name="encphp"]').val(res.result);
var en = userJSEncrypt('dimaslanjaka', value);
$('textar... |
/** @component date-picker */
import React from 'react';
import PropTypes from 'prop-types';
import { EventOverlay } from '@collab-ui/react';
import DatePickerCalendar from '@collab-ui/react/DatePicker/DatePickerCalendar';
import {
addDays,
addWeeks,
isDayDisabled,
isSameDay,
subtractDays,
subtractWeeks,
}... |
// For info about this file refer to webpack and webpack-hot-middleware documentation
// For info on how we're generating bundles with hashed filenames for cache busting: https://medium.com/@okonetchnikov/long-term-caching-of-static-assets-with-webpack-1ecb139adb95#.w99i89nsz
import webpack from 'webpack';
import Extra... |
var config = require('../../config')
var gulp = require('gulp')
var path = require('path')
var browserSync = require('browser-sync')
var watch = require('gulp-watch')
var watchTask = function() {
var watchableTasks = ['fonts', 'iconFont', 'images', 'svgSprite', 'css']
watchableTasks.forEach(function(taskNam... |
/************************************* A mettre dans "server.js" : Modularisation de la vérification des identifants du joueur qui se connecte *************************************/
// console.log('Dirname : ' + __dirname);
// const checkLogin = require('./config/envoi-mail.js');
/*************************************... |
var path = require("path");
var webpack = require('webpack');
var BundleTracker = require('webpack-bundle-tracker');
module.exports = {
context: __dirname,
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./assets/js/index'
],
output: {
path: ... |
import React from 'react'
const DEFAULT_SIZE = 24
export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
module.metadata = {
"stability": "experimental"
};
const { Cc, Ci, Cu } = require("chrome");
const { AddonManag... |
"use strict";
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) { t... |
var NAVTREEINDEX54 =
{
"group___c_m_s_i_s__core___debug_functions.html#ga6e1cf12e53a20224f6f62c001d9be972":[3,12,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,173],
"group___c_m_s_i_s__core___debug_functions.html#ga6e1cf12e53a20224f6f62c001d9be972":[3,12,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,172],
"group___c_m_s_i_s__core___debug_functions.ht... |
// Copyright (c) 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*---
esid: sec-array.prototype.concat
description: Array.prototype.concat sloppy arguments throws
features: [Symbol.isConcatSpreadable]
---*/
func... |
var $include6 = 'Include 6'; |
export class Sponsors {
constructor(){
}
} |
const utils = {
toast(params) {
chrome.tabs.query({
active: true,
currentWindow: true
}, function(tabs) {
if (tabs[0] && tabs[0].id) {
chrome.tabs.sendMessage(tabs[0].id, params);
}
});
},
copyToCliboard({ text, success, error }) {
const btn = document.getElementBy... |
var numberOfDrumButtons = document.querySelectorAll(".drum");
for (var i = 0; i < numberOfDrumButtons.length; i++) {
numberOfDrumButtons[i].addEventListener("click", function() {
var buttonInnerHTML = this.innerHTML;
makeSound(buttonInnerHTML);
});
}
document.addEventListener("keypress", function(eve... |
const net = require("net");
const db = require("./lib/dbrunner.js");
const auth = require("./lib/auth.js");
const colors = require("colors");
const print = require("./lib/print.js");
//reponse codes
const OK = "_OK_";
const ERROR = "_ERROR_";
function checkLogin(json) {
if(json.command === "login" && Object.keys(... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
const MongoClient = require("mongodb").MongoClient;
var connection = null;
var db = null;
function connect(callback){
if(connection) return callback(null, db);
MongoClient.connect(process.env.MONGO_CONNECTION, (err, conn) => {
if(err)
return callback(err, null);
else {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
exports.__esModule = true;
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _Icon = _int... |
'use strict'
const analyticsSampler = require('../../dd-trace/src/analytics_sampler')
function createWrapOperation (tracer, config, operationName) {
return function wrapOperation (operation) {
return function operationWithTrace (ns, ops) {
const index = arguments.length - 1
const callback = argument... |
'use strict'
const multibase = require('multibase')
const parseDuration = require('parse-duration').default
const {
stripControlCharacters
} = require('../utils')
module.exports = {
command: 'resolve <name>',
description: 'Resolve the value of names to IPFS',
builder: {
recursive: {
alias: 'r',
... |
/*footer script*/
var min_applicable_width = 767;
$(document).ready(function() {
applyResponsiveSlideUp($(this).width(), min_applicable_width);
});
function applyResponsiveSlideUp(current_width, min_applicable_width) {
/* Set For Initial Screen */
... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(functio... |
class MouseInput {
init(elm) {
this.elm = elm;
this.active = false;
this._active = false;
this.x = 0;
this.y = 0;
this._x = 0;
this._y = 0;
this.wheel = 0;
this._wheel = 0;
this.down = false;
this._down = false;
elm.add... |
import React, { Component } from 'react';
import CompanyCard from './CompanyCard';
import store from '../../../store/company-details-store/store';
import { connect } from 'react-redux';
const NoCompaniesReview = () => {
return(
<div>
<p>Sorry no companies for review.</p>
</div>
)
}
class Companies extend... |
// 1. Program to search for a particular character in a string
let str = "hello i am akshat surana"
let index=str.indexOf("a")
console.log(index);
// 2.Program to convert minutes into seconds.
let minute = 5;
let seconds = minute*60;
console.log(seconds);
// 3. Program to search for a element in array of strings.... |
const fs = require('fs');
function loadJson(file) {
return JSON.parse(fs.readFileSync(file, 'utf8'));
}
function saveJson(file, data) {
fs.writeFileSync(file, JSON.stringify(data))
}
const patches = loadJson('patch.json');
let saveName = '';
const names = {};
function generatePatchName(baseName) {
if (!(... |
// Copyright [2020] [Banana.ch SA - Lugano Switzerland]
//
// 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 ap... |
const path = require('path')
const fs = require('fs')
const messages = require('./messages')
module.exports = function createConfluenzaPage(opts) {
const pageName = opts.pageName
if (!pageName) {
console.log(messages.missingPageName())
process.exit(1)
}
console.log(messages.start())
} |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
// moment.js locale configuration
// locale : malayalam (ml)
// author : Floyd Pink : https://github.com/floydpink
(function (factory) {
// Comment out broken wrapper, see T145382
/*if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === '... |
module.exports = {
stories: ['../stories/**/*.stories.tsx'],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
webpackFinal: async config => {
config.module.rules.push({
test: /\.(ts|tsx)$/,
loader: require.resolve('babel-loader'),
options: {
presets: [['react-app', { f... |
import Pen from './lib/pen';
import Downloader from './lib/downloader';
const util = require('./lib/util');
const downloader = new Downloader();
// 最大尝试的绘制次数
const MAX_PAINT_COUNT = 5;
Component({
canvasWidthInPx: 0,
canvasHeightInPx: 0,
paintCount: 0,
/**
* 组件的属性列表
*/
properties: {
customStyle: ... |
/** layui-v2.3.0 MIT License By https://www.layui.com */ |
// 新建 karma.conf.js,内容如下
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['moc... |
import * as React from 'react';
import { expect } from 'chai';
import { createClientRender } from 'test/utils';
import { ThemeProvider } from '@emotion/react';
import styled from '..';
import GlobalStyles from './GlobalStyles';
describe('GlobalStyles', () => {
const render = createClientRender();
it('should add g... |
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/alpinejs/dist/module.esm.js":
/*!**************************************************!*\
!*** ./node_modules/alpinejs/dist/module.esm.js ***!
\**************************************************/
/***/ ((__unused_webpac... |
/*! jQuery UI - v1.10.4 - 2014-03-02
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.es={closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio",... |
/**
* DownloadManager is a tool for downloading file from internet. This
* implementation uses Downloads.jsm to do it. When downloads a https url which
* uses self-signed certificate, DownloadManager fallbacks to "http" protocol to
* download it.
*
*/
var utils = require('./utils');
const { Cc, Ci, Cr, Cu } = r... |
'use strict';
const fs = require('fs');
jest.useFakeTimers();
const documentHtml = fs.readFileSync(`${__dirname}/../../web-extension/gopassbridge.html`);
global.LAST_DOMAIN_SEARCH_PREFIX = 'PREFIX_';
global.armSpinnerTimeout = jest.fn();
global.logAndDisplayError = jest.fn();
global.setStatusText = jest.fn();
globa... |
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFavoriteBorder(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...ico... |
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
import * as React from 'react';
import CreditCardTwoToneSvg from "@ant-design/icons-svg/es/asn/CreditCardTwoTone";
import AntdIcon from '../components/AntdIcon';
var CreditCardTwoTone ... |
const { authenticate } = require('@feathersjs/authentication').hooks;
const { hashPassword, protect } = require('@feathersjs/authentication-local').hooks;
const gravatar = require('../../hooks/gravatar');
module.exports = {
before: {
all: [],
find: [ authenticate('jwt') ],
get: [],
create: [hashPas... |
/*!
* Savvior v0.1.0 - A Salvattore or Masonry alternative for multiple column layouts.
* http://savvior.org
* https://github.com/attila/savvior
*/ |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router';
const ITEM_HEIGHT = 40;
const INDENT_BASE = 16;
const INDENT_INC = 12;
const getContentHeight = (page) =>
page.children ?
page.children.reduce((height, child) => height + getContentHeight(child), ITEM_... |
import React from 'react'
export default function CalculatorButton(props) {
return (
<button
className={`btn-select-calculator ${
props.value.params.isCalculatorOn
? 'btn-select-calculator-toggled'
: ''
}`}
onClick={e => {
e.preventDefault()
props.value.handler({ ...props.value.params... |
//# sourceMappingURL=component---src-pages-search-js-0126befcb911cbdba60a.js.map |
/**
*
* SignUpForm
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// import { FormattedMessage } from 'react-intl';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import in... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var card = {};
exports.default = card;
//{"title":"Citadel of the Stars (5C32)","text":"Set:\tBattle of Helm's Deep\nKind:\tFree People\nCulture:\tGondor\nTwilight:\t1\nCard Type:\tCondition\nStrength:\t-2\nVitality:\t-1\nGame Text:\tFortifica... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The result of an addition is determined using the rules of IEEE 754
double-precision arithmetics
es5id: 11.6.1_A4_T6
description: >
The sum of a zero and a nonze... |
this.p1 = 1;
this.p2 = 2;
this.p3 = 3;
var result = "result";
var myObj = {
p1 : 'a',
p2 : 'b',
p3 : 'c',
value : 'myObj_value',
valueOf : (function ()
{
return 'obj_valueOf';
}),
parseInt : (function ()
{
return 'obj_parseInt';
}),
NaN : 'obj_NaN',
... |
// Copyright (c) 2018, the IFMLEdit.org project authors. Please see the
// AUTHORS file for details. All rights reserved. Use of this source code is
// governed by the MIT license that can be found in the LICENSE file.
/*jslint node: true, nomen: true */
"use strict";
var almost = require('almost'),
createRule = a... |
/*
* Copyright (c) 2016, Globo.com (https://github.com/globocom)
*
* License: MIT
*/
export default {
base: {
padding: "0 8px",
userSelect: "none",
lineHeight: "40px"
},
text: {
verticalAlign: "middle",
marginLeft: "8px"
},
icon: {
verticalAlign: "middle"
}
}; |
define(['angular', '../app-module', 'highcharts'], function(angular) {
'use strict';
angular.module('app.module')
.directive('ddtDashboardHeader', ddtDashboardHeader);
function ddtDashboardHeader () {
return {
restrict: 'AE',
templateUrl: '../views/ddt-dashboard-heade... |
(function (angular, jasmine, beforeEach, describe, it) {
"use strict";
/* All of the healthBam.map module's tests. */
describe("healthBam.map module", function () {
beforeEach(
function () {
/* Load the module to test. */
angular.mock.module("healthBam.m... |
var should = require("should");
var helper = require("./helper.js");
var WebHook = require("../lib/webhook.js");
describe("WebHook", function() {
var $form;
var ids = [];
before(function(done) {
helper.wufoo.getForms(function(err, forms){
$form = forms[0];
done(err);
});
}... |
import { isEqual } from './equal.js'
export const includes = function(arr, valA) {
return arr.some(valB => isEqual(valA, valB))
} |
const myFeaturesEl = document.querySelector('chromedash-myfeatures');
window.csClient.getStars().then((starredFeatureIds) => {
myFeaturesEl.starredFeatures = new Set(starredFeatureIds);
});
document.body.classList.remove('loading'); |
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
Animated,
Image,
UIManager
} from 'react-native';
class ScrollAnimation extends React.Component {
constructor(props) {
super(props);
this.state = {
scrollY: this.props.scrollY,
isRefreshing: this.props.isRefreshing,
minPull... |
window.Vue = require('vue');
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
import App from './App.vue';
import router from './router';
const app = new Vue(
{
el: '#root',
render: h => h(App),
router: router // o solo router
... |
const emptyBehavior = {
radiusMax: 80,
radiusMaxSq: 6400,
radiusMin: 0,
radiusMinSq: 0,
visionAngle: -1.0,
weight: 1.0
};
const behaviorPrototype = {
setFeatures: function (newRadiusMax, newRadiusMin, newWeight, newVisionAngle) {
this.radiusMax = newRadiusMax;
... |
Page({
/**
* 页面的初始数据
*/
data: {
title_desc_array: [], //分页获取到的数据集合
list_index: 0, //分页获取数据的当前页索引
page_count: 5, //每次分页获取多少数据
is_no_more_data: false //记录是否已加载完所有分页数据
},
/**
* 从云数据库获取标题和描述列表
*/
getTitleDescList() {
const db = wx.cloud.database()
var offset = this.data.list_... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
/**
* @file
* Global nble_lib_unb_ca utilities.
*
*/
(function ($, Drupal) {
'use strict';
Drupal.behaviors.nble_lib_unb_ca = {
attach: function (context, settings) {
var glossary = $(".block-system-main-block .glossary-listing");
if (typeof glossary !== "undefined") {
... |
/* @flow */
const WebpackIsomorphicTools = require('webpack-isomorphic-tools');
// Setup global variables for server
global.__CLIENT__ = false;
global.__SERVER__ = true;
global.__DISABLE_SSR__ = false; // Disable server side render here
global.__DEV__ = process.env.NODE_ENV !== 'production';
// This should be the sa... |
import React from "react";
import styled from "styled-components";
import fblogo from "../../images/facebook-logo.png";
import emailogo from "../../images/Onboarding/email.png";
import cubes from "../../images/two_cubes.png";
import Row from '../../components/atoms/row/row';
import Col from '../../components/atoms/col... |
define(
({
_widgetLabel: "ซูมสไลด์เดอร์"
})
); |
const indexRoute = {
root: {
get: (req, res, next) => {
res.render('index', { title: 'Express' });
},
},
};
export default indexRoute; |
'use strict';
const Path = require('path')
const Webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ExtractSASS = new ExtractTextPlugin('css/bundle.css');
module.exports = (options) => {
let webpackConfig = {... |
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import external from 'rollup-plugin-peer-deps-external'
import resolve from 'rollup-plugin-node-resolve'
import url from 'rollup-plugin-url'
import pkg from './package.json'
export default {
input: 'src/index.js',
output: [
... |
module.exports = {
siteMetadata: {
title: `Gatsby Starter Blog`,
author: `Kyle Mathews`,
description: `A starter blog demonstrating what Gatsby can do.`,
siteUrl: `https://gatsby-starter-blog-demo.netlify.com/`,
social: {
twitter: `kylemathews`,
},
},
plugins: [
{
resolve: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.