text stringlengths 2 1.04M |
|---|
import React from "react"
import SmartSocialLink from "./smart-social-link"
const mergeLinksToArray = links => {
return links.map(link => {
Object.keys(link).forEach(key => link[key] === null && delete link[key])
return link
})
}
const Social = ({ links }) => {
const socialLinks = mergeLinksToArray(link... |
export { default } from './MDContentExplorer.js'; |
angular
.module('azWebAppApp')
.controller('LoginCtrl', function($scope, $rootScope, $uibModal, $state, $window, $location, SessionService, Usuario, ngFB) {
console.log($scope, $scope.$close, 'Login');
$scope.credentials = {};
$scope.registration = {};
/**
* Metodos para login y regi... |
// (c) ammap.com | SVG (in JSON format) map of Kyrgyzstan - High
// areas: {id:"KG-B"},{id:"KG-C"},{id:"KG-J"},{id:"KG-N"},{id:"KG-O"},{id:"KG-T"},{id:"KG-Y"}
AmCharts.maps.kyrgyzstanHigh={
"svg": {
"defs": {
"amcharts:ammap": {
"projection":"mercator",
"leftLongitude":"69.259411",
"topLatitu... |
function TriangleD(n) {
let out = ''
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
out += j >= n - i - 1 ? '* ' : ' '
}
out += '\n'
}
return out
}
TriangleD.title = 'Triangle D'
TriangleD.source = `
function TriangleD(n) {
let out = ''
for (let i = 0; i < n; i++) {
for... |
//drafts5://x-callback-url/create?text=Hello%20World
// https://reference.getdrafts.com/topics/urls
var md = "-%20[" + window.getSelection().toString() + "]" + "%0A%0A" + "[" + window.getSelection().toString() + "]: " + document.URL + " \"" +document.title + "\"" +"%0A" ;
window.location.href = "drafts5://prepend?uui... |
const db = require('../models');
const router = require('express').Router();
const isAuthenticated = require ('../utils/middleware').isAuthenticated;
router.get('/', isAuthenticated, function(req, res) {
db.Game.findAll(req.query)
.then(dbModel => res.json(dbModel))
.catch(err => res.status(422).js... |
(function(vc){
vc.extends({
propTypes: {
notifyLoadDataComponentName:vc.propTypes.string
},
data:{
addParkingSpaceInfo:{
num:'',
typeCd:'',
area:'',
remark:'',
psId:''
}
... |
import moment from "moment";
import momentAm from "../../config/lang-phrases/moment-am";
moment.defineLocale("am", momentAm);
export default moment; |
var searchData=
[
['mousebutton',['MouseButton',['../class_tri_1_1_input_1_1_mouse.html#a926c664faabb33e4fab8154520289d2d',1,'Tri::Input::Mouse']]]
]; |
/**
* @file 创建 if 指令元素
* @author errorrik(errorrik@gmail.com)
*/
var each = require('../util/each');
var genStumpHTML = require('./gen-stump-html');
var nodeInit = require('./node-init');
var NodeType = require('./node-type');
var nodeEvalExpr = require('./node-eval-expr');
var rinseCondANode = require('./rinse-con... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var GalleryAlbum = (function () {
function GalleryAlbum(id, title, path, mtime, owner) {
this.id = id;
this.title = title;
this.path = path;
this.mtime = mtime;
this.owner = owner;
}
return G... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Theme.js.map |
var class_ext_1_1_net_1_1_mobile_1_1_model_field_1_1_config =
[
[ "AllowNull", "d5/d73/class_ext_1_1_net_1_1_mobile_1_1_model_field_1_1_config.html#a1d17d5f7998e83a052e5180b5d0715bc", null ],
[ "Calculate", "d5/d73/class_ext_1_1_net_1_1_mobile_1_1_model_field_1_1_config.html#aef7273065605c355701efa14fbb2e7be", ... |
ButtonExpToExcel.prototype.DEF_TITLE = "экспорт в Excel";
ButtonExpToExcel.prototype.DEF_CAPTION="Excel"; |
'use strict'
function isFirstStrInSecondStr(firstStr, secondStr) {
return firstStr.search(secondStr) !== - 1;
}
module.exports = isFirstStrInSecondStr; |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Observable_1 = require('../Observable');
/**... |
'use strict'
const closeIcon = require('@nearform/clinic-common/icons/close')
// const d3 = require('./d3-subset.js') // Currently unused but will be used
const HtmlContent = require('./html-content.js')
const arrayFlatten = require('array-flatten').flatten
class Frames extends HtmlContent {
constructor (d3Containe... |
var classLabel =
[
[ "Label", "classLabel.html#aebb3c4065e132513580a1139c6c4df05", null ],
[ "caption", "classLabel.html#ac369d7356d2383945a946a30be9e9d3a", null ],
[ "color", "classLabel.html#ad581a5c2bb8cb01e504a2144b33a324e", null ],
[ "draw", "classLabel.html#a9451601ed41f80658543b60aff8b37ec", null... |
import { expect } from 'chai';
import { spec } from 'modules/komoonaBidAdapter';
describe('Komoona.com Adapter Tests', () => {
const bidsRequest = [
{
bidder: 'komoona',
params: {
placementId: '170577',
hbid: 'abc12345678',
},
placementCode: 'div-gpt-ad-1460505748561-0',
... |
import config from "./config.js"
import server from "./server.js"
import { logger } from './util.js'
server.listen(config.port)
.on('listening', () => logger.info(`server running at ${config.port}!!`)) |
import { insert } from '../utils'
export default {
regexp: /\$/,
format (value, formatType, roundingFunction, numerify) {
const symbols = {
before: formatType.match(/^([+|\-|(|\s|$]*)/)[0],
after: formatType.match(/([+|\-|)|\s|$]*)$/)[0]
}
let symbol
formatType = formatType.replace(/\s?... |
var settings = (function () {
var exports = {};
var header_map = {
"your-account": i18n.t("Your account"),
"display-settings": i18n.t("Display settings"),
notifications: i18n.t("Notifications"),
"your-bots": i18n.t("Your bots"),
"alert-words": i18n.t("Alert words"),
"uploaded-files": i18n.t("Up... |
const uuid = require('uuid/v4')
const kid = uuid()
const jwtHeader = {
alg: 'ES384',
typ: 'JWT',
kid
}
const jwtPayload = {
iss: 'https://sandbox.cds-hooks.org',
aud: 'https://trhc-test.apigee.net/medwise/cds-services',
exp: Math.round(Date.now() / 1000 + 300),
iat: Math.round(Date.now() / 1000),
jti:... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["page-testing-wemos-infra_red"],{"4c26":function(n,t,a){"use strict";a.r(t);var o=function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("div",[n._v("\n infra : "+n._s(n.infra)+"\n "),a("br"),a("br"),a("button",{staticClass:"btn btn-sm btn-primary"... |
import React from 'react'
import PropTypes from 'prop-types'
import {getType} from '../lib/types'
const Tag = ({type, style}) => {
const tag = getType(type)
return (
<div className={`tag ${type}`} style={style}>
{type}
<style jsx>{`
.tag {
display: flex;
margin: 2px;
... |
const AWS = require("aws-sdk");
const stepFunctions = new AWS.StepFunctions();
exports.handler = async (event, context) => {
let jobId;
try {
jobId = JSON.parse(event.body).jobId
} catch(error) {
console.log(error)
return getResponse(400, 'Invalid Job-Id provided')
}
const p... |
const winston = require('winston');
const Q = require('q');
const request = require('request');
const keys = require('../config/keys');
module.exports = {
addSubscriber(listId, email) {
const deferred = Q.defer();
try {
const postData = {};
postData.email_address = email;
postData.status ... |
import React from "react"
import Link from "./Link"
const LinkToQuestion = props => (
<Link to={`/question/${props.question.id}`}>{props.question.title}</Link>
)
export default LinkToQuestion |
// knockout-jqAutocomplete 0.4.3 | (c) 2015 Ryan Niemeyer | http://www.opensource.org/licenses/mit-license |
import React from "react";
import "./style.css"
import {Row, Col} from "../Grid"
const SavedResult = props => {
return (props.savedBooks.length === 0) ? (
<div className="card">
<div className="card-body player">
<div className="article">
<h3>Books that You S... |
/* Contracts in this test */
const MyCollectible = artifacts.require("../contracts/MyCollectible.sol");
contract("MyCollectible", (accounts) => {
const URI_BASE = 'https://creatures-api.opensea.io';
const CONTRACT_URI = `${URI_BASE}/contract/opensea-erc1155`;
let myCollectible;
before(async () => {
myCo... |
import {
fetchWebhooks,
fetchKappWebhookEvents,
fetchSpaceWebhookEvents,
} from '../../../apis';
import { generateTable } from '../../table/Table';
import { defineFilter } from '../../../helpers';
import { List, Map } from 'immutable';
const clientSide = defineFilter(true)
.startsWith('name', 'name')
.equals... |
$('document').ready(alert('Now we are anonymous!'));
//by the way, you've seen $('document').ready(...)
//before. It is very common in jQuery - the function
//that is passed to `ready` is run when the HTML document
//is ready for javascript to start happening |
import {describe, beforeEach, it, expect, iit, ddescribe} from 'test_lib/test_lib';
import {ListWrapper, List} from 'facade/collection';
import {DOM} from 'facade/dom';
import {isPresent, NumberWrapper, StringWrapper} from 'facade/lang';
import {CompilePipeline} from 'core/compiler/pipeline/compile_pipeline';
import {... |
export default "M12,1A9,9 0 0,1 21,10V17A3,3 0 0,1 18,20H15V12H19V10A7,7 0 0,0 12,3A7,7 0 0,0 5,10V12H9V20H6A3,3 0 0,1 3,17V10A9,9 0 0,1 12,1M15,24V22H17V24H15M11,24V22H13V24H11M7,24V22H9V24H7Z" |
/* eslint-disable no-unused-vars */
// required express
const express = require('express');
// init express
const app = express();
// set port
const port = 3001;
// node redis import
const redis = require('redis');
// client creation from redis
const client = redis.createClient();
// Utility for Promises working with ... |
function printDeckOfCards(arr) {
function makeCard(face, suit) {
const validCardFaces = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A'];
const validCardSuits = ['S', 'H', 'D', 'C'];
function checkFace(currentFace) {
if (!validCardFaces.some(c => c === currentF... |
import {StyleSheet} from 'react-native'
import * as colors from '@/assets/colors'
export default StyleSheet.create({
container: {
borderBottomWidth: 1,
borderColor: colors.gray.lighter
},
header: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'cente... |
import i18n from "i18next";
import Backend from "i18next-http-backend";
import LanguageDetector from "i18next-browser-languagedetector";
import { initReactI18next } from "react-i18next";
const defaultLanguage = ["en"];
const availableLanguages = ["en", "ru"];
const options = {
// order and from where user language ... |
const path = require('path');
const fsPromises = require('fs/promises');
//пути для копирования
const sourceFolderPath = path.join(__dirname, 'files');
const destinationFolderPath = path.join(__dirname, 'files-copy');
//промисы нужны для того, чтобы не было "конкуренции"
//(когда файл копируется и асинхронно его пыта... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js":
/*!****************************************************************************!*\
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js ***!
\*****... |
import React, { Fragment } from 'react'
import Helmet from 'react-helmet'
import { stringify } from 'qs'
import { serialize } from 'dom-form-serializer'
// import Recaptcha from 'react-google-invisible-recaptcha'
import './Form.css'
class Form extends React.Component {
static defaultProps = {
name: 'Simple Form... |
/* eslint-disable react/prop-types */
import React from 'react';
import Typography from '@material-ui/core/Typography';
import Job from './Job';
export default function Jobs() {
return (
<div className="Jobs">
<Typography variant="h1">Entry Level Software Jobs</Typography>
{jobs.map(job => (
... |
const mysqlDb = require ( 'mysql');
// Define the database pool, this needs to be in the global object
let pool = undefined;
const mysqlDB = () => {
// Setup the database connection details
const DB_HOST = process.env.DB_HOST;
const DB_USER = process.env.DB_USER;
const DB_PASSWORD = process.env.DB_PA... |
import {getAssetsByToken} from "../formatter/selectors";
import {toBig} from "LoopringJS/common/formatter";
export default {
namespace: 'convert',
state: {
amount: toBig(0),
isMax: false,
gasPrice: 10,
gasLimit: 200000,
outBalance: false,
loading:false,
},
reducers: {
reset(state, {... |
"use strict";
var Api = require("../lib/Api");
var ArgumentParser = require("argparse").ArgumentParser;
var parser = new ArgumentParser({
addHelp: true,
description: "Get the key phrases and concepts in a piece of text"
});
parser.addArgument(["--key"], {help: "Rosette API key", required: true});
parser.addArgume... |
(function () {
var Grid = (function () {
function Grid(scale) {
this.scale = scale;
}
Grid.prototype.calculateDistanceFromOrigin = function (point) {
var xDist = (point.x - Grid.origin.x);
var yDist = (point.y - Grid.origin.y);
return Math.sqrt... |
const weave = require("./index");
const Queue = require("./queue");
test("queues have a peek function", () => {
const q = new Queue();
expect(typeof q.peek).toEqual("function");
});
test("peek returns the first value without removing it", () => {
const q = new Queue();
q.add("a");
q.add("b");
expect(q.pee... |
import Vue from 'vue';
import Vuex from 'vuex';
import state from 'ee_else_ce/boards/stores/state';
import actions from 'ee_else_ce/boards/stores/actions';
import mutations from 'ee_else_ce/boards/stores/mutations';
Vue.use(Vuex);
export default () =>
new Vuex.Store({
state,
actions,
mutations,
}); |
import Link from '@/components/Link'
export default function Pagination({ totalPages, currentPage }) {
const prevPage = parseInt(currentPage) - 1 > 0
const nextPage = parseInt(currentPage) + 1 <= parseInt(totalPages)
return (
<div className="pt-6 pb-8 space-y-2 md:space-y-5">
<nav className="flex just... |
/**
* Finnhub API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do no... |
"use strict";
// Copyright 2020 Google LLC
// 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 agre... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides the Design Time Metadata for the sap.m.Toolbar control
sap.ui.define([],
function() {
"use strict";
return {
aggreg... |
//1. obter o numero de notas
var numNotas = prompt("De me o numero de notas");
//2. pedir a nota do teste
//o numero de vezes que o utilizador indicou em 1
var contador = 0;
var total = 0;
while ( contador < numNotas){
var nota = prompt("A nota do teste");
++contador;//contador = contador +1
//3.1 cal... |
require('dotenv').config()
const axios = require('axios')
const puppeteer = require('puppeteer')
// Headers config
axios.defaults.headers.common['Authorization'] = `Bearer ${process.env.STRAPI_API_ADMIN_KEY}`
const toKebabCase = (str) =>
str &&
str
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[... |
//! moment.js locale configuration
//! locale : Arabic (Lybia) [ar-ly]
//! author : Ali Hmer: https://github.com/kikoanis
import moment from '../moment';
var symbolMap = {
'1': '1',
'2': '2',
'3': '3',
'4': '4',
'5': '5',
'6': '6',
'7': '7',
'8': '8',
'9': '9',
'0': '0'
}, plur... |
SIM_STATUS_STOPPED = 1
SIM_STATUS_PLAYING = 2
SIM_STATUS_PAUSED = 3
SIM_STATUS_FINISHED = 4
pyodideCodeList = {}
function PyodideCode (opts) {
if (opts) {
this.init(opts);
}
}
PyodideCode.prototype.init = async function(opts){
this.opts = opts
this.id = opts.id
this.simStatus = SIM_STATUS_STOPPED
... |
QUnit.module("File Creation");
QUnit.test("addSample and segmentation", function( assert ) {
var timeout = window.setTimeout(function() { assert.ok(false, "Timeout"); QUnit.start(); }, TIMEOUT_MS);
var f = MP4Box.createFile();
f.onSegment = function(id, user, buffer, sampleNum) {
window.clearTimeout(timeout);
c... |
import { basename, dirname, extname, join, relative, resolve } from 'path'
import { log, logError, panic } from './logger'
import compile from './compile'
import compose from 'cumpa'
import glob from 'glob'
import help from './help'
import optionatorFactory from 'optionator'
import options from './options'
import pkg f... |
require('../lib/node_loader');
var AWS = require('../lib/core');
var Service = AWS.Service;
var apiLoader = AWS.apiLoader;
apiLoader.services['ebs'] = {};
AWS.EBS = Service.defineService('ebs', ['2019-11-02']);
Object.defineProperty(apiLoader.services['ebs'], '2019-11-02', {
get: function get() {
var model = req... |
import React, { Component } from "react";
import { StyleSheet, Text, TouchableHighlight } from "react-native";
import { dynamicFontSize } from "../utils/helpers";
export class CalculatorKey extends Component {
render() {
const {
color,
isDirty,
text,
textDirty,
type,
style,
... |
var data = [{
"trainNo": "42701",
"train": "MSBPONLOCALDaily",
"fulltrainname": "Chennai Beach LOCAL",
"stations": [
"MSB",
"RPM",
"WST",
"KOK",
"TNP",
"VOC",
"TVT",
"WCN",
"KAVM",
"ENR",
... |
/**
* Wrapper for noteOnEvent/noteOffEvent objects that builds both events.
* @param {object} fields - {pitch: '[C4]', duration: '4', wait: '4', velocity: 1-100}
* @return {NoteEvent}
*/
class NoteEvent {
constructor(fields) {
this.type = 'note';
this.pitch = fields.pitch;
this.wait = fields.wait || 0;... |
import assert from 'assert';
import IconService from '../build/icon-sdk-js.node.min';
const tests = [{
wallet: IconService.IconWallet.loadPrivateKey('38f792b95a5202ab431bfc799f7e1e5c74ec0b9ede5c6142ee7364f2c84d72f6'),
value: 'ba4da77c1dbf48071fbd3f9ee6d869580d177f01468e1e42bbb58733b9087f64',
signature: '4RYSXFpc... |
import Controller from './controller'
export default {
handle(route, args) {
let routeName = route + 'Route';
if (!Controller.hasOwnProperty(routeName)) {
console.error('Маршрут не найден!');
}
Controller[routeName](args);
}
} |
import React from 'react'
import { Link } from 'gatsby'
import '../scss/styles.scss'
import Header from './Header'
import SecondaryNavigation from './SecondaryNavigation'
import Footer from './Footer'
class Layout extends React.Component {
render() {
const { location, title, children } = this.props
return (... |
const { writeJsonSync, outputFileSync } = require('fs-extra');
const { join } = require('path');
const { getPackageJson, getWebpackConfigJs } = require('./utils');
const { PACKAGE_JSON, WEBPACK_CONFIG_JS } = require('./config');
module.exports = ({
mainFramework: { name: main },
uiFramework: ui,
projectName,
$... |
'use strict'
class RegisterController {
* index(request, response) {
yield response.sendView('register')
}
}
module.exports = RegisterController |
/*eslint-disable*/
import React, {useState, useRef, useEffect} from "react";
// react components for routing our app without refresh
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem";
// @... |
import cloneDeep from 'lodash.clonedeep';
import {SET_IMG_SRC_AND_FILE_OBJ_TO_REDUCER,
DELETE_ONE_ImgSrc_AND_ONE_ImgFile,
REMOVE_ThoseFileArrAndObjectURLArr_but_also_returnObjectUrlArr_to_RevokeObjectURL
} from '@/pages/_vendor/action/type';
import {MAXUploadPicQuantityOfThisApp} from '@/util_func/FileUploadM... |
let diyNames = [];
diyArr.forEach
(
function(diy)
{
diyNames.push(diy.name);
}
);
autocomplete(document.getElementById("diyInp"), diyNames);
let selectedDiyArr = [];
const removeDiyFromArr = function(diyName)
{
for (let i = 0; i < selectedDiyArr.length; i++)
{
if (diyName == se... |
import { Then } from "cypress-cucumber-preprocessor/steps";
Then("I should see the following posts on the search results page:", table => {
table.hashes().forEach(({ title }) => {
cy.get(".post-teaser")
.should("contain",title)
});
}); |
const os = require('os');
const fs = require('fs');
const utils = require('../utils');
const eventIterface = require('../event');
let k8sHostname = null;
let k8sContainerId = null;
/**
* @returns {boolean} true if the current process is running inside
* a K8S container, false otherwise
*/
module.exports.hasK8sMeta... |
/**
* echarts图表类:地图
*
* @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
* @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
*
*/
define(function (require) {
var ChartBase = require('./base');
// 图形依赖
var TextShape = require('../../zrender/shape/Text');
var PathShape = require('..... |
'use strict';
// Utilities:
var Promise = require('bluebird');
// Module:
var Core = require('../Core');
var ConfirmDialogService = function ConfirmDialogService () {
return {
show: show
};
function show () {
var resolve, reject;
var promise = new Promise(function() {
... |
var React = require('react'),
Reflux = require('reflux'),
Router = require('react-router'),
{ NotFoundRoute, State, Link, Route, RouteHandler, DefaultRoute } = Router,
osmAuth = require('osm-auth'),
haversine = require('haversine'),
xhr = require('xhr'),
qs = require('querystring');
window.React = React;... |
"use strict";
import { rebind } from "d3fc-rebind";
import { merge } from "../utils";
import { sar } from "./algorithm";
import baseIndicator from "./baseIndicator";
const ALGORITHM_TYPE = "SMA";
export default function() {
var base = baseIndicator()
.type(ALGORITHM_TYPE)
.accessor(d => d.sar);
var underl... |
const express = require('express')
const cors = require('cors');
const TaskRoutes = require('./routes/TaskRoutes')
const server = express()
server.use(cors())
server.use(express.json())
server.listen(5000, ()=> {
console.log('API ONLINE')
})
server.use('/task', TaskRoutes) |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function CgAlbum (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24","fill":"none"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","clipRule":"evenodd","d":"M2 19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 ... |
export default {
input: './src/react-sane-contenteditable.js',
output: {
name: 'ReactSaneContenteditable',
globals: {
react: 'React',
'prop-types': 'PropTypes',
},
},
plugins: {
babel: {
exclude: '**/node_modules/**',
},
commonJs: {
include: '**/node_modules/**',
... |
"use strict";
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @hidden
*/
var AccessTokenValue = /** @class */ (function () {
function AccessTokenValue(accessToken, idToken, expiresIn, homeAc... |
let handler = async (m, { conn }) => {
conn.sendButtonImg(m.chat, global.API('lolhuman', '/api/random2/trap', {}, 'apikey'), 'Nih', wm, 'NEXT', '.trap', m)
}
handler.help = ['trap']
handler.tags = ['nsfw']
handler.command = /^(trap)$/i
module.exports = handler |
import React from "react";
import { mdx } from "@mdx-js/react";
export default function MDXRenderer({ children, ...props }) {
// Memoize the compiled component
const End = React.useMemo(() => {
if (!children) {
return null;
}
const fn = new Function(`_fn`, "React", "mdx", `${children}`);
re... |
function perspective(P, d){
if(!d)
d = 12;
let ident = [[d, 0, 0, 0],
[0, d, 0, 0],
[0, 0, d, 0],
[0, 0, 1, 0]];
let out = matriz_mult(ident,P);
for(let i=0;i<out[3].length; i++){
out[0][i] = out[0][i]/out[3][i];
out[1][i] = out[1][i]/out[3][i];
out[2][i] = out[2][i]/out[3][i];... |
// estrategia 1 para valor padrão
function soma1(a, b, c) {
a = a || 1
b = b || 1
c = c || 1
return a + b + c
}
console.log(soma1(), soma1(3), soma1(1, 2, 3), soma1(0, 0, 0));
//estrategia 2, 3 e 4 para gerar valor padrão
function soma2(a, b, c) {
a = a !== undefined ? a : 1
b = 1 in arguments... |
import * as _ from 'lodash';
import {API_CALL_BEGIN, API_CALL_ERROR} from '../constants';
import initialState from './initialState';
const apiReducer = (state = initialState.apiReducer, action) => {
if (action.type === API_CALL_BEGIN) {
return {
...state, apiCallsInProgress: state.apiCallsInProgress + 1
... |
/*
Copyright 2015 Skippbox, 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. The ASF licenses this file to You
* 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... |
// config/database.js
module.exports = {
'url' : 'mongodb+srv://demo:demo@cluster0-92dvh.mongodb.net/test?retryWrites=true',
'dbName': 'demo'
}; |
const Redis = require("./db/redis");
const { Store } = require("koa-session2");
class RedisStore extends Store {
async get(sid, ctx) {
// console.log('get', sid)
let data = await Redis.get(`SESSION:${sid}`);
return JSON.parse(data);
}
async set(session, { sid = this.getID(24), ... |
import Vue from 'vue';
import {
// Affix,
// Anchor,
// AutoComplete,
Alert,
// Avatar,
// BackTop,
// Badge,
// Breadcrumb,
Button,
// Calendar,
// Card,
// Collapse,
// Carousel,
// Cascader,
// Checkbox,
Col,
// DatePicker,
// Divider,
// Dropdown,
Form,
Icon,
Input,
// ... |
import Ember from 'ember';
import {
scaleSequential,
interpolateViridis,
interpolateInferno,
interpolateMagma,
interpolatePlasma,
interpolateWarm,
interpolateCool,
interpolateRainbow,
interpolateCubehelixDefault
} from 'd3-scale';
const {
assert,
isPresent,
String: { camelize, underscore },
} = ... |
define([
'underscore',
'backbone'
], function(_, Backbone) {
var ExecutionTypeModel = Backbone.Model.extend({
defaults: {
id: 0,
name: '',
description: ''
},
initialize: function() {
},
urlRoot: '/api/executiontypes'
});
... |
let a = "outside";
function f([{
[a]: g
}]) {
let z = "inside";
return g;
} |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { checkLicenseGenerator } from './cluster_alerts/check_license';
impor... |
/**
* Select2 Italian translation
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter"... |
import AuthorizedLink from './AuthorizedLink';
import AuthorizedRoute from './AuthorizedRoute';
import NotAuthorizedRoute from './NotAuthorizedRoute';
import NotFoundRoute from './NotFoundRoute';
export {AuthorizedLink, AuthorizedRoute, NotAuthorizedRoute, NotFoundRoute}; |
function parse()
{
if (text.indexOf(']:') < 0)
{
return;
}
var m, regexp = /^\x1A* {0,3}\[([^\x17\]]+)\]: *([^[\s\x17]+ *(?:"[^\x17]*?"|'[^\x17]*?'|\([^\x17)]*\))?) *(?=$|\x17)\n?/gm;
while (m = regexp.exec(text))
{
addIgnoreTag(+m['index'], m[0].length);
// Only add the reference if it does not already e... |
// COPYRIGHT © 2018 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.