text stringlengths 2 1.04M |
|---|
'use strict';
angular.module('app.services').factory('BoardServices', ['$http', '$window', function ($http, $window) {
var board = {};
var baseRemoteUrl = "http://minitrelloapiajdm.apphb.com";
var baseLocalUrl = "http://localhost:1416";
var baseUrl = baseLocalUrl;
board.getBoardsForLoggedUser =... |
import React, { Component } from "react";
import { FormGroup, FormControl, FormLabel, Button, Form, Spinner } from "react-bootstrap";
import fire from "../webConfig/Fire";
import axios from "axios";
import VerificationModal from './VerificationModal';
import Context from '../context/Context';
class Signup extends Comp... |
// @ts-check
const crypto = require('crypto');
// const hash = crypto.createHmac('md5', key).update(string).digest('hex');
// crypto.createHash('sha1').update(`${account.password_token}${inSolt}`).digest('hex');
const password = 'test';
const passwordHash = crypto.createHash('md5').update(password).digest('hex');
con... |
/*! hangul-js 2019-12-10 */
|
'use strict';
const generateRuleTests = require('../../helpers/rule-test-harness');
generateRuleTests({
name: 'no-link-to-positional-params',
config: true,
good: [
'{{#link-to route="about"}}About Us{{/link-to}}',
'{{#link-to route="post" model=@post}}Read {{@post.title}}...{{/link-to}}',
`{{#link... |
const path = require('path');
const webpack = require('webpack');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const config = {
mode: 'development',
devtool: 'eval-source-map', // 不填写... |
const { execSync } = require('child_process');
const colors = require('colors');
const versionBetween = require('./versionBetween');
const isMacOs = process.platform === 'darwin';
const isWindows = process.platform === 'win32';
const isLinux = ['freebsd', 'linux', 'openbsd'].some(function (item) {
return item === pr... |
var test = require('tape')
var flash = require('./')
test('noop on server side', function (t) {
t.plan(1)
t.doesNotThrow(function () { flash('whatever') })
}) |
function calculateBMI(weight, height) {
// Calculates the BMI through the following formulaL:
// BMI=Weight(kg)/height^2(m)
bmi = weight / Math.pow(height, 2);
rounded_bmi = Math.round(bmi);
return rounded_bmi;
}
bmi=calculateBMI(60, 1.6)
console.log(bmi); |
'use strict';
const cluster = require('cluster');
describe('AggregatorRegistry', () => {
it('requiring the cluster should not add any listeners', () => {
const originalListenerCount = cluster.listenerCount('message');
require('../lib/cluster');
expect(cluster.listenerCount('message')).toBe(originalListenerCo... |
var expect = require('chai').expect;
var EventTime = require('../lib/event-time').EventTime;
var msgpack = require('msgpack-lite');
var codec = msgpack.createCodec();
codec.addExtPacker(0x00, EventTime, EventTime.pack);
codec.addExtUnpacker(0x00, EventTime.unpack);
describe('EventTime', function() {
it('should equa... |
'use strict';
class FlyweightFactory {
constructor() {
this.flyweights = {};
console.log('FlyweightFactory Class created');
}
getFlyweight(key) {
console.log('FlyweightFactory.getFlyweight invoked');
if (this.flyweights[key]) {
return this.flyweights[key];
... |
/**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* 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... |
#!/usr/bin/env node
const semverSatisfies = require('semver/functions/satisfies')
const chalk = require('chalk')
const { engines, version } = require('../package.json')
if (!semverSatisfies(process.version, engines.node)) {
console.log(
chalk.red(
`You are using Node ${process.version}, but uikit-cli ` +
... |
/**
* @license Angular v5.1.2
* (c) 2010-2017 Google, Inc. https://angular.io/
* License: MIT
*/
import { CommonModule, DOCUMENT, PlatformLocation, ɵPLATFORM_BROWSER_ID, ɵparseCookieValue } from '@angular/common';
import { APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, ErrorHandl... |
const tl = require('vsts-task-lib/task');
const utils = require('artifactory-tasks-utils');
const cliPromoteCommand = "rt bpr";
function RunTaskCbk(cliPath) {
let buildDefinition = tl.getVariable('Build.DefinitionName');
let buildNumber = tl.getVariable('Build.BuildNumber');
// Get input parameters
l... |
import * as React from "react";
import { PersonOutlined } from "../icons";
export const Avatar = ({ src, children: childrenProp, size, ...props }) => {
if (process.env.NODE_ENV !== "production") {
if (typeof props["aria-label"] !== "string") {
console.warn(
'Avatar: should provide aria-label or use... |
/**
* PipedriveAPIV1Lib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
'use strict';
const BaseModel = require('./BaseModel');
/**
* Creates an instance of GetDealsTimeline
*/
class GetDealsTimeline extends BaseModel {
/**
* @constructor
* @param {Object}... |
OC.L10N.register(
"user_ldap",
{
"Users" : "ಬಳಕೆದಾರರು",
"Groups" : "ಗುಂಪುಗಳು",
"Help" : "ಸಹಾಯ",
"Host" : "ಅತಿಥೆಯ-ಗಣಕ",
"Port" : "ರೇವು",
"Password" : "ಗುಪ್ತ ಪದ",
"Continue" : "ಮುಂದುವರಿಸಿ"
},
"nplurals=1; plural=0;"); |
import React from 'react'
import SvgIcon from '../../SvgIcon'
export default function RamblerWeatherIcon(props) {
return (
<SvgIcon viewBox="0 0 20 20" {...props}>
<path
fillRule="evenodd"
d="M16.489 14.95a8.823 8.823 0 0 0-2.927-.524c-1.095 0-2.083.22-2.911.508V4.853c.267-.15.637-.32 1.087... |
// headwind Ctrl + Alt + T or Cmd + Shift + T
module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
extend: {
fontFamily: {
inter: [
"Inter",
"ui-sans-serif",
"system-ui",
"-apple-system",
"BlinkMacSystemFont",
... |
$(document).ready(() => {
// Getting references to our form and input
const signUpForm = $("form.signup");
const emailInput = $("input#email-input");
const passwordInput = $("input#password-input");
// When the signup button is clicked, we validate the email and password are not blank
signUpForm.on("submit... |
'use strict';
var _20 = {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 20,
height: 20,
},
content: [
{
elem: 'path',
attrs: {
d:
'M27.71 4.29a1 1 0 0 0-1.05-.23l-22 8a1 1 0 0 0 0 1.87l8.59 3.43L19.59 11 21 12.41l-6.37 ... |
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const InlineManifestPlugin = require('inline-manifest-webpack-plugin')
const WebpackChunkHash = require('webpack-chunk-hash')
const Co... |
frappe.ui.get_emoji = function(keyword) {
if (!keyword.includes(':'))
keyword = ':' + keyword + ':';
return frappe.ui.emoji_map[keyword];
};
frappe.ui.emojis = [
"🀄",
"🃏",
"🅰",
"🅱",
"🅾",
"🅿",
"🆎",
"🆑",
"🆒",
"🆓",
"🆔",
"🆕",
"🆖",
"🆗",
"🆘",
"🆙",
"🆚",
"🇦🇨",
"🇦🇩",
"🇦🇪",
"🇦🇫"... |
/**
* Auto-generated action file for "Microsoft Graph API" API.
*
* Generated at: 2019-08-07T14:53:12.665Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / microsoft-graph-api-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector ar... |
define([
'./binarySearch',
'./Cartographic',
'./defined',
'./defineProperties',
'./DeveloperError',
'./Rectangle'
], function(
binarySearch,
Cartographic,
defined,
defineProperties,
DeveloperError,
Rectangle) {
'use ... |
const fs = require('fs')
exports.range = function range (start, end) {
const res = []
for (let index = start; index < end; index++) {
res.push(index)
}
return res
}
exports.sleep = function sleep (ms) {
return new Promise(resolve => {
setTimeout(resolve, ms)
})
}
exports.writeJson = function writ... |
/**
* Copyright 2019 Phenix Real Time Solutions, Inc. All Rights Reserved.
*
* 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
*
* Unle... |
import React from "react"
import SEO from "components/SEO"
import Author from "components/Author"
import { graphql } from "gatsby"
import Layout from "components/Layout"
import LatestPosts from "components/LatestPosts"
import Container from "components/Container"
const IndexPage = () => {
return (
<Layout>
... |
let path = require('path')
let renderTemplate = require(path.join(__dirname, '/../test_helpers/html_assertions.js')).render
describe('Invite a team member view', function () {
let templateData
beforeEach(() => {
templateData = {
error: {
title: 'Not so big error',
message: 'error, but do ... |
const noop = function () {};
const return_true = function () { return true; };
set_global('$', global.make_zjquery());
set_global('document', 'document-stub');
set_global('colorspace', {
sRGB_to_linear: noop,
luminance_to_lightness: function () {
return 1;
},
});
zrequire('people');
zrequire('stre... |
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('chirpApp:server');
var http = require('http');
/**
* Get port from environment and store in Express.
*/
var port = normalizePort(process.env.PORT || '3000');
var ip = process.env.IP || '0.0.0.0';
app.set... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
var _16 = {
"elem": "svg",
"attrs": {
"xmlns": "http://www.w3.org/200... |
import React from 'react';
import NavDropDown from '../../../components/shared/NavDropDown';
import userMock from '../../__mocks__/user.mock';
function setup() {
const props = {
fullname: userMock.fullname,
handleLogout: jest.fn()
};
const wrapper = shallow(<NavDropDown {...props} />);
return {
wr... |
/* == jquery mousewheel plugin == Version: 3.1.12, License: MIT License (MIT) */
/* == malihu jquery custom scrollbar plugin == Version: 3.0.6, License: MIT License (MIT) */ |
/* Copyright (c) 2019 Parallax Inc., All Rights Reserved. */
// Register listeners to create app window upon application launch and
// to close active serial ports upon application termination
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
id: "BlocklyProp-L... |
var initial_operation_default = ":+";
var config_default = ""; |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
// valid uses of arrays of function types
var x = [
function() {
return 1;
},
function() {
}
];
var r2 = x[0]();
var C = funct... |
const jwt = require('jsonwebtoken');
const secrets = require('../util/config')
// quickly see what this file exports
module.exports = {generateToken, validateToken}
// implementation details
function generateToken(user) {
const payload = {
subject: user.id,
username: user.username
},
o... |
/**
* @license Copyright 2017 Google Inc. All Rights Reserved.
* 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 a... |
import axios from 'axios'
export default function setAuthorizationToken(token) {
if (token) {
axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;
} else {
delete axios.defaults.headers.common['Authorization'];
}
} |
export const debug = {
showCookieAlert: true,
showVkWidget: true,
showPopularArticle: true
}; |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2007-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project'... |
import * as ReactNative from "react-native";
function currentState(param) {
var currState = ReactNative.AppState.currentState;
switch (currState) {
case "active" :
return /* Active */0;
case "background" :
return /* Background */1;
default:
return /* Inactive */2;
}
}
export ... |
const Bullet = require('./bullet');
const Constants = require('../shared/constants');
const DIRECTION_UP = 0;
const DIRECTION_DOWN = Math.PI;
describe('Bullet', () => {
describe('update', () => {
// it('should move at bullet speed', () => {
// const x = 1;
// const y = 2;
// const bullet = new... |
import express from 'express';
import router from './api-routes/route.js';
var app = express();
app.use(express.urlencoded({ extended: true}))
app.use(express.json())
app.use('/',router);
var server = app.listen(process.env.PORT || 8000, function () {
var host = "0.0.0.0";
var port = server.address().port;
cons... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { NgModule } from '@angular/core';
import { NgAltDirective, NgAltGroupDirective } from './ng-alt.directive';
var NgAltModule = /** @class */ (function () {
function N... |
import { connect } from 'react-redux';
import DocumentMetadataComponent from './DocumentMetadata';
import { fetchDocumentDetails } from '../state/actions';
const mapStateToProps = (state) => ({
documentDetails: state.documentDetails.data,
error: state.documentDetails.error,
});
const mapDispatchToProps = (dispat... |
const colors = require('colors');
const fs = require('fs');
const Directory = require('@definejs/directory');
const Path = require('@definejs/path');
const File = require('@definejs/file');
const FileSystem = require('../../lib/FileSystem');
const ProgressBar = require('../../lib/ProgressBar');
const Timer = require('.... |
//@ts-check
///<reference path="msdyn_ocoutboundconfiguration.d.ts" />
"use strict";
var formInformation = (function () {
"use strict";
async function onLoad(executionContext) {
}
async function onSave(executionContext) {
}
return {
OnLoad: onLoad,
OnSave: onSave
};
})(); |
const { exec } = require('child_process');
module.exports = (url) =>{
switch (process.platform) {
case 'darwim':
exec(`open ${url}`)
break;
case 'win32':
exec(`start ${url}`)
default:
break;
}
} |
const path = require('path')
const webpack = require('webpack')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const { VueLoaderPlugin } = require('vue-loader')
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin')
const MpP... |
const { Oso } = require('oso');
const { Organization, Repository, Role, User } = require('./app');
const oso = new Oso();
oso.registerClass(Organization);
oso.registerClass(Repository);
oso.registerClass(User);
beforeEach(() => oso.loadFiles(["main.polar"]));
afterEach(() => oso.clearRules());
const alphaAssociati... |
const { stringHints, numberHints } = require("./util/hints");
/** @typedef {import("json-schema").JSONSchema6} JSONSchema6 */
/** @typedef {import("json-schema").JSONSchema7} JSONSchema7 */
/** @typedef {import("./validate").Schema} Schema */
/** @typedef {import("./validate").ValidationErrorConfiguration} Validation... |
'use strict';
import visit from 'unist-util-visit';
import {isNative} from '../../helpers';
import is from 'hast-util-is-element';
import has from 'hast-util-has-property';
export {correctLinkHandlers};
function correctLinkHandlers(props) {
const {tools} = props;
return transformer;
function transformer(tree)... |
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import registerServiceWorker from './registerServiceWorker'
import {createStore} from 'redux'
import {Provider} from 'react-redux'
import rootReducer from './reducers'
import middleWare from './middlewares'
const st... |
import _curry2 from './internal/_curry2'
const pickAll = (props, obj) => {
const result = {}
for (let prop of props) {
result[prop] = obj[prop]
}
return result
}
export default _curry2(pickAll) |
const programador = {
nome : "Guilherme",
idade : 23,
tecnologias : [
{ nome: 'C++', especialidade: 'Desktop' },
{ nome: 'Python', especialidade: 'Data Science' },
{ nome: 'JavaScript', especialidade: 'Web/Mobile' }
]
};
console.log (`O Programador ${programador.nome... |
// Protractor configuration
// https://github.com/angular/protractor/blob/master/referenceConf.js
'use strict';
exports.config = {
// The timeout for each script run on the browser. This should be longer
// than the maximum time your application needs to stabilize between tasks.
allScriptsTimeout: 110000,
//... |
"use strict";
// the waxCtrl controller is used by all views in this app.
function gbCtrl($scope, $routeParams, $filter) {
// grid data
$scope.itemCount = 500;
$scope.data = getData($scope.itemCount);
// set options for slick-grid
$scope.slickGridOptions = {
editable: true,
enable... |
/**
* Copyright 2018 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { html, PolymerElement } from "@polymer/polymer/polymer-element.js";
import "@polymer/polymer/lib/elements/dom-repeat.js";
import { IronMeta } from "@polymer/iron-meta/iron-meta.js";
import "@polymer... |
#!/usr/bin/env node
const http = require('https'),
log = console.log,
city=process.argv[2]||'石家庄',
url=require('url'),
addr = 'https://api.66mz8.com/api/weather.php?location='+city;
log(global.encodeURI(addr));
process.exit();
let opt=url.parse(addr);
opt.headers={
'user-agent':'curl/7.29.0'... |
/**
* @name mindsmash-table
* @version v0.3.4
* @author mindsmash GmbH
* @license MIT
*/
(function(angular) {
'use strict';
/**
* @ngdoc overview
* @name mindsmash-table
* @description
*
* # mindsmash Table
* TODO
*
* ## Configuration
* TODO
*
* ## Usage
* TODO
*/
ColumnSelectorController.$inject = [... |
const events = require('events');
class BotEvents extends events.EventEmitter {}
const botEvents = new BotEvents();
module.exports = botEvents; |
export default[
{
short_name: 'AD',
long_name: 'Andorra',
}, {
short_name: 'AE',
long_name: 'United Arab Emirates',
}, {
short_name: 'AF',
long_name: 'Afghanistan',
}, {
short_name: 'AG',
long_name: 'Antigua and Barbuda',
}, {
short_name: 'AI',
long_name: 'Anguilla',
... |
import { Home,Login } from '@pages'
import { all } from 'redux-saga/effects'
export default function* rootSaga() {
yield all([
Home.HomepageSaga(),
Login.LoginpageSaga()
])
} |
// Generated by CoffeeScript 1.10.0
(function() {
var Deferred, Promise, PromiseA, defer, fireHandlers, fs, fulfill, pad, readDir, reject, resolve, testFunc, thousand_sep,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
resolve = function(promise, x) {
if (promise === x) {... |
define(['jquery', 'oae.core'], function($, oae) {
return function (uid) {
// The widget container
var $rootel = $('#' + uid);
/**
* Render the metadata for the current meeting item
*
* @param {Meeting} meetingProfile Meeting for which the metadata should ... |
Ext.define('VIV.view.nomenclador.empresa.EmpresaForm', {
extend: 'Ext.window.Window',
xtype: 'form-empresa',
iconCls: '',
layout: 'fit',
width: 640,
resizable: false,
modal: true,
initComponent: function () {
var me = this;
this.items = [{
xtype: 'form',
... |
var through = require('through');
var copy = require('shallow-copy');
var browserify = require('browserify');
var fs = require('fs');
var chokidar = require('chokidar');
module.exports = watchify;
watchify.browserify = browserify;
function watchify (opts) {
if (!opts) opts = {};
var b = typeof opts.bundle ===... |
import { createSelector } from 'reselect';
import { initialState } from 'containers/SnackMessage/reducer';
const selectSnackMessage = (state) => state.snackMessage || initialState;
const makeSnackMessageSelector = () =>
createSelector(selectSnackMessage, (substate) => substate.message);
const makeSnackMessageTypeS... |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"id": "cordova-plugin-device.device",
"file": "plugins/cordova-plugin-device/www/device.js",
"pluginId": "cordova-plugin-device",
"clobbers": [
"device"
]
},
{
... |
var path = require('path');
module.exports = {
mode: 'production',
entry: './src/Test.jsx',
output: {
path: path.resolve('lib'),
filename: 'Test.js',
libraryTarget: 'commonjs2'
},
module: {
rules: [
{
test: /\.jsx?$/,
exclu... |
module.exports = {
siteMetadata: {
title: `Allen Garvey | Full-stack Developer`,
description: `Personal website for Allen Garvey, full-stack software developer`,
author: `Allen Garvey`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
... |
import gulp from 'gulp';
import gulpUtil from 'gulp-util';
import gulpBabel from 'gulp-babel';
import webpack from 'webpack';
import yargs from 'yargs';
import rimraf from 'rimraf';
import eslint from 'gulp-eslint';
import makeWebpackConfig from './makeWebpackConfig';
import {BUNDLE_DIR, ES6_COMPILE_DIR, SRC_DIR} from... |
//question.js
//用于问题的增删改查
const express = require('express');
const router = express.Router(); //实例化一个路由
const question = require('../../models/Question.model') //问题module
var mongoose = require('mongoose');
// 以下为问题增删改查接口
/**
* @api {post} /api/questions/addQuestion 新增问题
* @apiDescription 新增问题
* @apiName addQues... |
//# sourceMappingURL=app-d41563861a0c58391d30.js.map |
#!/usr/bin/env node
'use strict';
var argv = require('minimist')(process.argv.slice(2));
var lib = require('../lib/index.js');
var _ = require('lodash');
var fs = require('fs');
var prompt;
var configPath = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
configPath = require('path').join(configPa... |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_views_AdminPanel_AdminAccount_EditProfileInfo_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/views/AdminPanel/AdminAccount/Edit... |
const webpack = require('webpack');
const glob = require('glob');
const autoprefixer = require('autoprefixer');
const ROOT = require('../root');
/**
* Webpack Plugins
*/
const DefinePlugin = require('webpack/lib/DefinePlugin');
const DedupePlugin = require('webpack/lib/optimize/DedupePlugin');
/**
* Webpack Const... |
'use strict'
const log = require('../')
log.debug('Should not be printed')
log.info('Information not shown')
log.notice('Notice me!')
log.warning('You have been warned')
log.error('An error occured')
log.critical('This is the end...')
log.alert('This is also the end...')
log.emergency('This is really the reall end.') |
angular.module('common.fabric', [
'common.fabric.window',
'common.fabric.directive',
'common.fabric.canvas',
'common.fabric.dirtyStatus'
])
.factory('Fabric', [
'FabricWindow', '$timeout', '$window', 'FabricCanvas', 'FabricDirtyStatus',
function(FabricWindow, $timeout, $window, FabricCanvas, Fa... |
import { Option, Menu } from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import React, { useMemo } from 'react';
import { useTranslation } from '../contexts/TranslationContext';
import { useSetting } from '../contexts/SettingsContext';
import { useRoute } from '../context... |
var text = document.getElementById("welcome").innerHTML;
console.log("The first heading is " + text); |
var classorg_1_1onosproject_1_1ovsdb_1_1controller_1_1driver_1_1OvsdbControllerAdapter =
[
[ "addNodeListener", "classorg_1_1onosproject_1_1ovsdb_1_1controller_1_1driver_1_1OvsdbControllerAdapter.html#aa887efd264a7e230b8abbaf1d175ec8c", null ],
[ "addOvsdbEventListener", "classorg_1_1onosproject_1_1ovsdb_1_1con... |
const a = 1
const b = 2
const c = 3
const obj1 = {a : a, b : b, c : c}
const obj2 = {a, b, c}
console.log(obj1, obj2)
const nomeAttr = 'nota'
const valorAttr = 7.87
const obj3 = {}
obj3[nomeAttr] = valorAttr
console.log(obj3)
const obj4 = {[nomeAttr] : valorAttr}
console.log(obj4)
const obj5 = {
funcao1 : fun... |
// LMap: ES Module
export * from './es5/l-map.define.js'; |
var _ = require('underscore');
var Q = require('q');
var nodemailer = require('nodemailer');
exports.sendMail = function(smtp, receiver_email, subject, html, attachments) {
return Q.Promise(function(resolve, reject) {
if(!smtp || _.isEmpty(smtp)) return reject({message: 'Please setup SMTP settings.'});
... |
import xss from 'xss'
const { articleType: Model } = require('../service')
const { controller, get, del, post } = require('../lib/decorator')
@controller('/api/articleType')
export class articleController {
@get('/')
async get(ctx) {
const { page, size } = ctx.query
const data = await Model.fetchList(pa... |
/*! layer-v2.1 弹层组件 License LGPL http://layer.layui.com/ By 贤心 */
/*! layPage v1.2 - 分页插件 By 贤心 http://sentsin.com/layui/laypage MIT License */
/**
@Name:laytpl-v1.1 精妙的js模板引擎
@Author:贤心 - 2014-08-16
@Site:http://sentsin.com/layui/laytpl
@License:MIT license
*/
;!function(){"use strict";var f,b={open:"{{",close:"... |
/**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import { Component } from 'react';
export default class StatusBar extends Component<*> {
static setBackgroundColor() {}
static se... |
const mongoose = require("mongoose");
const config = require("config");
const OAuthAccessToken = require("./OAuthAccessToken");
const OAuthAuthorizationCode = require("./OAuthAuthorizationCode");
const OAuthClient = require("./OAuthClient");
const OAuthRefreshToken = require("./OAuthRefreshToken");
const OAuthScope = r... |
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('ters... |
import { FIGHTERS } from '../../common/fighters';
import { random } from '../../common/array';
export const pickRandomFighter = (index) => {
if (index) {
return FIGHTERS[index];
}
const fighters = FIGHTERS.filter(f => f.pickable);
return random(fighters);
}; |
var paths = require('./config').paths;
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var wrap = require("gulp-wrap");
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var stripDebug = require('gulp-strip-debug');
var rename = require("gulp-rename");
var filter = require('gul... |
//# sourceMappingURL=vue-select.js.map |
/* eslint-disable */
var gulp = require('gulp'),
path = require('path'),
ngc = require('@angular/compiler-cli/src/main').main,
rollup = require('gulp-rollup'),
rename = require('gulp-rename'),
del = require('del'),
runSequence = require('run-sequence'),
inlineResources = require('./tools/gul... |
const getenv = require('getenv')
const {createLog} = require('./log')
const {createBot} = require('./bot')
const {createChat} = require('./chat')
const log = createLog('botRegistry')
const botEntryByPageId = {}
getenv('MESSENGER_BOTS').split(',').forEach((botId) => {
const bot = createBot(botId)
const chat = crea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.