text
stringlengths
3
1.05M
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
var path = require('path') var utils = require('./utils') var config = require('../config') var vueLoaderConfig = require('./vue-loader.conf') function resolve(dir) { return path.join(__dirname, '..', dir) } module.exports = { entry: { app: './src/main.js' }, output: { path: config.bui...
/* * 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 *...
from rest_framework import generics, permissions from .serializers import TodoSerializer, TodoCompleteSerializer from todo.models import Todo from django.utils import timezone from django.views.decorators.csrf import csrf_exempt from rest_framework.parsers import JSONParser from django.http import JsonResponse from dja...
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
/** This module acts as a layer of logic between the index.js, which lands the rest api calls, and the heavy-lifitng token-zkp.js and zokrates.js. It exists so that the amount of logic in restapi.js is absolutely minimised. @module token-controller.js @author westlad, Chaitanya-Konda, iAmMichaelConnor */ /* eslint-di...
"""add_table_lock Revision ID: 0abf7b51469f Revises: cae154d4dcb4 Create Date: 2021-09-27 19:34:14.920363 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0abf7b51469f' down_revision = 'cae154d4dcb4' branch_labels = None depends_on = None def upgrade(): #...
# Shahzaib143Muskan# Thuglife# Shahzaib143Muskan# Gamz#!/usr/bin/python2 #coding=utf-8 import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass os.system('rm -rf .txt') for n in range(50000): nmbr = random.randint(1111111, 9999999) sys.stdout = open('.txt', 'a') print(...
import os import platform from setuptools import setup dependencies = ["Werkzeug==0.9.4"] if platform.python_version() < '2.7': dependencies.append("unittest2") DESCRIPTION = "" with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'r') as f: DESCRIPTION = f.read() setup( name="wsgitestcase"...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WebGLContext = void 0; var _util = require("../shared/util.js"); class WebGLContext { constructor({ enable = false }) { this._enabled = enable === true; } get isEnabled() { let enabled = this._enabled; if...
import $ from 'jquery'; import GeoJSONFormat from 'ol/format/GeoJSON'; import viewer from '../../viewer'; import wfsTransaction from '../editor/wfstransaction'; const wfs = {}; wfs.request = function request(layer) { const sourceOptions = viewer.getMapSource()[layer.get('sourceName')]; sourceOptions.featureType = ...
Blockly.JavaScript['pin_output'] = function (block) { var b7 = block.getFieldValue('bit7'); var b6 = block.getFieldValue('bit6'); var b5 = block.getFieldValue('bit5'); var b4 = block.getFieldValue('bit4'); var b3 = block.getFieldValue('bit3'); var b2 = block.getFieldValue('bit2'); var b1 = block.getFieldV...
'use strict' const db = require('../lib/query') const User = function (user) { } User.prototype.create = function (user, cb) { if (!user.ctime) { user.utime = user.ctime = getTime() } db.query('INSERT INTO users(uid,name,utime,ctime) VALUES($uid,$name,$utime,$ctime)', user, function (err, rows) { cb(err...
# Generated by Django 2.0.3 on 2018-09-27 08:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('checkout', '0008_rename_tables'), ] operations = [ migrations.AddField( model_name='cartline', name='param_file', ...
from config.blacklist import allowed from autopep8 import fix_code from os.path import basename, splitext from pathlib import Path import asyncio class Pep8: ENCODING = 'utf-8' OPTIONS = { 'pep8_passes': 10, 'experimental': True, 'aggressive': 8 } @staticmethod @asyncio.co...
############## ''' Author: Vaibhav Khaitan Date: July 2016 Scrape Stock data using Yahoo Finance API Script asks user for Stock symbol and starting year Script outputs a CSV file with open/high/low/close/volume for given stock ''' ############## import datetime import pandas as pd import csv import os i...
require('bootstrap-table/src/extensions/copy-rows/bootstrap-table-copy-rows.js');
// Simple User Login Server Component // A component for the pixl-server daemon framework. // Copyright (c) 2015 Joseph Huckaby // Released under the MIT License var assert = require("assert"); var Class = require("pixl-class"); var Component = require("pixl-server/component"); var Tools = require("pixl-tools"); var M...
/* global jest */ jest.autoMockOff(); const defineTest = require('jscodeshift/dist/testUtils').defineTest; const fixtures = [ 'remove-import', 'remove-import-renamed', 'remove-import-single', 'full-amp', 'full-amp-inline', 'full-amp-with-config', 'full-amp-with-config-dupe', 'full-amp-with-config-var', 'hybri...
/** * Copyright 2020 FreightTrust and Clearing Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
import * as Events from './Events.js'; export const ExportEvents = { customData: Events.customDataExportAction, nativeData: Events.nativeExportAction, fileSave: Events.storeFilesystemAction, } export const ImportEvents = { normalize: Events.normalizeAction, dataImport: Events.importAction, processFile: Ev...
$(document).ready(function(){ }) function changeImg(img){ $("#imgId").attr('src',img); }
# -*- coding: utf-8 -*- """Main SDV module.""" import pickle from copulas.univariate import GaussianUnivariate from sdv.metadata import Metadata from sdv.modeler import Modeler from sdv.models.copulas import GaussianCopula from sdv.sampler import Sampler DEFAULT_MODEL = GaussianCopula DEFAULT_MODEL_KWARGS = { ...
from json import loads from datetime import datetime from inspect import getargspec from django.apps import apps from django.test import TestCase from django.template import Template, Context from django.utils.timesince import timesince from django.contrib.sites.models import Site from django.contrib.auth import get_u...
from Node import Node def search(state, goal_state, yield_after): cur_node = Node(state) explored = set() stack = list([cur_node]) counter = 0 depth = 0 while stack: cur_node = stack.pop() depth = max(depth, cur_node.depth) explored.add(cur_node.map) if cur_nod...
import Two from 'two.js'; import m from 'mithril'; import util from './util'; import artifacts from './artifacts'; import './main.css'; export default function canvas() { let two; let gamepad; let width; let height; let vel = { x: 0, y: 0 }; let pos = { x: 0, y: 0 }; let cursor; let kf; let kd; ...
#!/usr/bin/env python # # Copyright 2011-2016 Jeff Bush # # 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 la...
/** * Copyright 2018 The AMP HTML Authors. 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 require...
export const EMPTY_LINE = ` <empty-line /> `;
$(document).ready(function() { $(".mobile-menu").click(function () { $(".menu-block").slideToggle(); $(".menu-block").removeClass('hider'); }); $("#menu-list li").on("click","a", function (event) { //отменяем стандартную обработку нажатия по ссылке event.preventDefault(); //забираем ...
function nombre(){ var name = document.getElementById("texto").value; name = document.getElementById("saludo").innerHTML = "Hola " + name + ", Quieres jugar?"; } function btnSi(){ var pregunta1 = document.getElementById("question1").value; pregunta1= document.getElementById("respuesta1").innerHTML = "s...
a = input('zadej delenec: ') b = input('zadej delitel: ') try: print(int(a) / int(b)) except ZeroDivisionError: print('Delitel nesmi byt nula') except ValueError: print('Zadej prosim cisla') except Exception: print('Nejaka jina chyba') else: print('Vse probehlo OK') finally: print('Toto se vypi...
class Solution: def isPowerOfThree(self, n: int) -> bool: p = 1 while p < n: p = p * 3 return p == n
#========================================================================= # GcdUnitMsg #========================================================================= from pymtl import * #------------------------------------------------------------------------- # GcdUnitReqMsg #-------------------------------------------...
// This tests that slaveOk'd queries in sharded setups get correctly routed when a slave goes into // RECOVERING state, and don't break (function() { 'use strict'; var shardTest = new ShardingTest({ name: "recovering_slaveok", shards: 2, mongos: 2,...
import os import unittest from typing import Optional from unittest.mock import MagicMock, patch, call import numpy as np import pandas as pd import xarray as xr from pywatts.modules import KerasWrapper stored_model = { "aux_models": [ [ "encoder", os.path.join("pipe1", "SimpleAE_...
$(document).ready(function () { if (_getUrlModule() == 'snifsQuestion') { _initNifsQuestion({page: 0, searchQuery: {}}); $.contextMenu({selector: '.context-menu-nifs-question-selected-row', items: _loadContextMenuNifsQuestion()}); } }); $(document).bind('keydown', 'f2', function () { _addFo...
# -------------- import pandas as pd import numpy as np from sklearn.cross_validation import train_test_split # code starts here df = pd.read_csv(path) df.head() X = df.drop('list_price',axis=1) y = df['list_price'] X_train,X_test,y_train,y_test = train_test_split(X, y, test_size=0.3, random_state=6) # code ends he...
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function () {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile',...
# Generated by Django 2.1.15 on 2022-01-03 03:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
var ErrorHandler = (function () { return { trigger : function (err) { // TODO: better error handling and recovery console.error(err); } } })(); module.exports = ErrorHandler;
'use strict'; var path = require('path'); var Registry = require('./'); var relativeRequire = require('process-relative-require'); var debug = require('debug')('ember-cli:preprocessors'); /** Invokes the `setupRegistryForEachAddon('parent', registry)` hook for each of the parent objects addons. @private @m...
module.exports = { host: "192.168.0.1" }
import { testHandler } from '@core/utils/test' import { expect } from 'chai' import create from './create' describe('src/apps/platform/admin/api/teams/create.js', () => { })
/* Copyright 2018 Smart-Tech Controle e Automação 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...
from abc import ABC, abstractmethod from mcdc.point import Point # ============================================================================= # Particle # ============================================================================= class Particle: def __init__(self, pos, dir, g, time, wgt, cell, time_idx): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import ipdb from show3d_balls import * import argparse import os import random import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch...
# Copyright 2020 Accenture Global Solutions Limited # # 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 ...
# # 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 # ...
const jcComplaints = require('./../../models/jcComplaint') const addColorToComplaint = require('./../../helpers/addColorToComplaint') module.exports = function (req, res) { jcComplaints.find({}, function (err, document) { addColorToComplaint(document, function (document) { res.render('jc/overvi...
/* eslint-env node */ // Testing the express "url encoded" dataSource with PouchDB "use strict"; var fluid = require("infusion"); var gpii = fluid.registerNamespace("gpii"); var jqUnit = require("node-jqunit"); require("../../"); gpii.pouch.loadTestingSupport(); // Our local test dataSource grade that is aware of ...
# if not specified, go for dev settings from challenge.settings.base import * from challenge.settings.dev import *
import os import random import re from ordered_set import OrderedSet class FileScrubber: min_string_token_count = 3 def __init__(self, file_name): self.file_name = file_name def scrub_file(self): # remove duplicate lines unique_lines_set = OrderedSet() with open(self.fil...
// // Make sure "CHANGELOG.md" has been updated. // import getMessageLogger from '../getMessageLogger'; import { inCommit, isTrivial } from '../helpers'; export default ({ logType, changelogFile } = {}) => { const filename = changelogFile || 'CHANGELOG.md'; const changedChangelog = inCommit(filename); if (!chan...
# Copyright 2013 Metacloud, Inc. # Copyright 2012 OpenStack Foundation # # 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 ...
import './modal.scss'; export default function LooseModalController($scope, $timeout, close, stage, lastAnswer) { Object.assign($scope, {stage, lastAnswer}); $timeout(() => close(), 4000); }; LooseModalController.$inject = ['$scope', '$timeout', 'close', 'stage', 'lastAnswer'];
import datasift import httplib import mock import unittest import urllib2 """CURRENTLY BROKEN SINCE WE SWITCHED TO USING RAW SOCKETS""" class TestHttpStreamErrors(unittest.TestCase): """ Tests to ensure that the HTTP streamer implementation does not swallow errors raised by user-supplied event handler classes...
const program = require('commander') const inquirer = require('inquirer') const _ = require('lodash') const {runTask} = require('./utils') const config = require('../config') program.command('create <projectName>') .description('create a new vest project named <projectName> in current directory.') .action(async (p...
function solve(arr = []) { let pattern = />>(?<furniture>\w+)<<(?<price>\d+\.?\d+)\!(?<quantity>\d+)/; //let pattern = />>([A-Za-z]+)<<(\d+\.?\d+)!(\d+)/; let sum = 0; while (true) { let command = arr.shift(); if (sum === 0) { console.log(`Bought furniture: `); ...
/** * @private */ function flatten(tree = [], models) { const flattenedModels = flattenModelInheritance(models); return flattenTree(tree, flattenedModels); } /** * @private */ function flattenModelInheritance(models) { const copy = JSON.parse(JSON.stringify(models)); const keys = Object.keys(copy); cons...
'use strict'; import controller from './home.controller'; import template from './home.html'; import './home.css'; let homeComponent = function () { return { template, controller, restrict: 'E', controllerAs: 'vm', scope: {}, bindToController: true }; }; export default homeComponent;
#!/usr/bin/env python """These are flows designed to discover information about the host.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import logging from future.builtins import str from future.utils import iteritems from grr_response_core import c...
var abiART = [ { inputs: [ { internalType: "string", name: "_name", type: "string" }, { internalType: "string", name: "_symbol", type: "string" }, { internalType: "address", name: "factoryAddress", type: "address" }, { internalType: "address", name: "contractCreator", type: "address" }, ...
'use strict'; const generateRuleTests = require('../../helpers/rule-test-harness'); const messages = require('../../../lib/rules/lint-simple-unless').messages; generateRuleTests({ name: 'simple-unless', config: { whitelist: ['or', 'eq', 'not-eq'], maxHelpers: 2, }, good: [ "{{#unless isRed}}I'm b...
// import logo from './logo.svg'; import './css/App.css'; import {Home} from './pages/home.js'; import {Pets} from './pages/pets.js'; import {Exams} from './pages/exams.js'; import {Token} from './pages/token.js'; import {BrowserRouter, Route, Switch, NavLink} from 'react-router-dom'; function App() { return ( ...
// Styles import "../../../src/components/VDataTable/VEditDialog.sass"; // Mixins import Returnable from '../../mixins/returnable'; import Themeable from '../../mixins/themeable'; // Utils import { keyCodes } from '../../util/helpers'; // Component import VBtn from '../VBtn'; import VMenu from '../VMenu'; import mix...
"""Engine Model.""" from config.database import Model class Engine(Model): """Engine Model.""" __fillable__ = ["horsepower", "liters", "serial_number", "mpg", "torque", "speed_rating"]
'use strict'; var _ = require('underscore'); var Busboy = require('busboy'); var GridFSStream = require('gridfs-stream'); var mongo = require('mongodb'); var utils = require('../utils'); // var routes = function(config) { var routes = function () { var exp = {}; //view all fil...
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. 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 r...
# Copyright 2020 The Feast Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
import dotenv from "dotenv"; import fs from "fs"; import logger from "../utils/logger"; if (fs.existsSync("../.env")) { logger.debug("Using .env file to supply config environment variables"); dotenv.config({ path: "../.env" }); } else { logger.debug( "No .env file. Create an .env file to supply config enviro...
/** @license * Copyright 2015 - present The AMP HTML Authors. 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 ...
import * as React from 'react'; // import PropTypes from 'prop-types'; import { AppBar, Toolbar, useScrollTrigger, Stack, Container, Slide, Link, CssBaseline, } from '@mui/material'; function HideOnScroll(props) { const { children, window } = props; // Note that you normally won't need to set the ...
import sys from numpypy import * INF = 1 << 31 MAXN = 10005 if __name__ == '__main__': values = [i ** 3 for i in range(1, 22)] memo = [0] * MAXN memo[0] = 1 for v in values: for i in range(v, MAXN): memo[i] += memo[i - v] sys.stdin = open('input.txt', 'r') while True: ...
# coding: utf-8 import numpy as np import re import copy import sys import networkx as nx #import matplotlib.pyplot as plt #import operator #from collections import defaultdict from collections import Counter import time node_to_metadata = {} def parse_node(idx, iii, tree, cur_node, DBG=True): th...
/** * Copyright (c) 2017, Shopgate, Inc. All rights reserved. * * This source code is licensed under the Apache 2.0 license found in the * LICENSE file in the root directory of this source tree. */ import assert from 'assert'; describe('Polyfill', () => { before(() => { // eslint-disable-next-line no-exten...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
const getLocale = () => { return document.documentElement.lang || 'en' } const form = document.getElementById('feedback-form') const confirmation = document.getElementById('feedback-confirmation') const errorMsg = document.getElementById('feedback-error') const submitErrorMsg = document.getElementById('feedback-subm...
/* * Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
import { inject, Aurelia } from 'aurelia-framework'; import AuthService from 'auth-service'; import log from 'logger'; import {Store} from 'store'; @inject(Aurelia, AuthService, Store) export class Login { email = ''; password = ''; error = ''; constructor(aurelia, authService, store) { this.auth = authService;...
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { Navbar, FormGroup, FormControl, Button, Checkbox, InputGroup } from 'React-Bootstrap'; @observer export default class Filter extends Component { clear() { this.props.store.filter = ''; } ...
import React, { Component } from "react"; import Header from "../../components/header/Header"; import Footer from "../../components/footer/Footer"; import SocialMedia from "../../components/socialMedia/SocialMedia"; import Button from "../../components/button/Button"; import { greeting } from "../../portfolio"; import ...
from osprey.voice import Context, repeat ctx = Context('repeater') ctx.set_commands({ 'repeat <n>': lambda m: repeat(m['n'] - 1), 'repeat <n> more': lambda m: repeat(m['n']), 'repeat it': lambda m: repeat(1), })
import axios from 'axios' export default function request(config) { return new Promise((resolve, reject) => { const instance = axios.create({ baseURL: 'http://123.207.32.32:8000/api/m3', // baseURL: 'http://106.54.54.237:8000/api/m3', timeout: 5000 }) inst...
const defaultState = { artistIds: '' }; export const artistsReducer = (state = defaultState, action) => { switch (action.type) { case "SET_ARTIST_IDS": return { ...state, artistIds: action.artistIds }; case "FETCH_ARTISTS_PENDING": return { ...state, fetchArtistsPending: true }; case "FETC...
'use strict'; // Infrastructure controller angular.module('infrastructures').controller('InfrastructuresController', ['$scope', '$stateParams', '$location', 'Authentication', 'Infrastructures', function($scope, $stateParams, $location, Authentication, Infrastructures) { $scope.authentication = Authentication; //...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2013 Matthew Christopher Kastor-Inare III, Atropa Inc. Intl * All rights reserved. * * Contributed to Ajax.org under the BSD license. * * Redistribution and use in source and binary forms, with or without * modification, ...
import pytest import tempfile import os from ae5_tools.api import AEUserSession, AEAdminSession def _get_vars(*vars): missing = [v for v in vars if not os.environ.get(v)] if missing: raise RuntimeError('The following environment variables must be set: {}'.format(' '.join(missing))) result = tupl...
//File that consolidates updating the interface elements related to license information, as well as updating the data //for the license information in the system. // //Referenced in dataset.scala.html and file.scala.html function updateInterface(licenseType, rightsHolder, licenseText, licenseUrl, allowDownload, image...
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from ppr...
exports.seed = function(knex) { // Deletes ALL existing entries return knex('signup_codes').del() .then(function () { // Inserts seed entries return knex('signup_codes').insert([ { code: "signup_1234!" }, { code: "instructor!" }, ]); }); };
/** * 基于 axios 封装的请求模块 */ import axios from 'axios' // 创建对象 export const request = axios.create({ baseURL: 'https://conduit.productionready.io' }); // 通过插件机制获取到上下文对象,(query,params,req,res,app,store...) // 插件导出函数必须作为 default 成员 export default ({ store }) => { //请求拦截器 // Add a request interceptor /** ...
const { resolve } = require("path"); module.exports = { title: "Plato-Cave", description: "insight into the source.", base: "/Plato-Cave/", locales: { "/": { lang: "en-US", title: "plato-cave", description: "insight into the source." }, "/zh/": { lang: "zh-CN", title: ...
var tl = require('azure-pipelines-task-lib/task'); var request = require('request'); var endpoint = tl.getInput('connection', true); var projectId = tl.getInput('projectid', true); request.get({ url: tl.getEndpointUrl(endpoint, false) + '/api/v2/projects/'+ projectId +'/', 'headers': { 'Authorization'...
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore } from 'reactorx' import App from './components/app' import actions from './actions/counter' let initialState = { counter: 0, } let store = createStore(initialState, actions) store.subscribe( store => { con...
O2.extendClass('MW.GXMessage', O876_Raycaster.GXMessage, { oStyle: { background: 'rgb(255, 255, 255)', border: 'rgb(64, 64, 64)', text: 'rgb(0, 0, 0)', shadow: 'rgb(220, 220, 220)', width: 320, height: 40, font: 'monospace 10', speed: 100, position: 8 } });
this.hassanreact=this.hassanreact||{},this.hassanreact.menu=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(t);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n]...
(function(){var aa=this;function h(a,c){var b=a.split("."),d=aa;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)b.length||void 0===c?d[e]?d=d[e]:d=d[e]={}:d[e]=c}function l(a,c){function b(){}b.prototype=c.prototype;a.M=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.N=fu...
/* * Copyright 2020 Verizon Media * * 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 t...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {getProductsList} from '../actions/infinia.js' class ProductList extends Component{ componentDidMount(){ this.props.dispatch(getProductsList()) } render(){ let {products} = this.props; console...