text
stringlengths
3
1.05M
import Component from '@glimmer/component'; import {set} from '@ember/object'; import {action} from '@ember/object'; import {inject as service} from '@ember/service'; import * as Position from 'clubhouse/constants/positions'; import {tracked} from '@glimmer/tracking'; export default class ShiftCheckInOutComponent exte...
function(request, state, logger, callback) { if (!request.body) return {}; var propertyId = "id"; var params = JSON.parse(request.body); if (params[propertyId]) { return { body: { "error": "Updating read-only parameter not allowed" } } } else if (Object.keys(params).length > 1) { return...
//! moment.js locale configuration //! locale : Frisian [fy] //! author : Robin van der Vliet : https://github.com/robin0van0der0v import moment from '../moment'; var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'), monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_ju...
class TrieNode { constructor(char) { this.char = char; // to store the current character this.validWord = false; // if the current character is at the end of a whole word this.parent = null; // parent of the current node this.children = []; // children nodes } } class Trie { con...
/* * Copyright (c) 2008-2021, Hazelcast, 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 ...
from numpy import * from scipy import stats from scipy.stats import norm from matplotlib.mlab import prctile from numpy import mean,std,exp,multiply,remainder,histogram from numpy.fft import fft,fftfreq,ifft,rfft,irfft __all__ = ['winlomb','lomb','adaptivefft','modeifyer','detrend','PDM','Raleigh', 'Z_n','...
/// <reference types="Cypress" /> describe('Minimal install', () => { /** * Test requirements: * - db `Cypress.env('dbName')` must not exists * - install.lock must not exist */ it('@install: en-GB and GBP', () => { cy.visit('/recovery/install/index.php', { headers: { ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const inquirer_1 = require("inquirer"); const lodash_1 = require("lodash"); const ProjectFile_1 = __impo...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("VJsoneditor",[],t):"object"==typeof exports?exports.VJsoneditor=t():e.VJsoneditor=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(i[n])return i[n].expo...
const YASHE = require('../src/main.js'); var $ = jQuery = require("jquery"); let yashe = YASHE(null, { persistent:null }); //Autocompleters test('Default autocompleters', ()=>{ let autocompleters = yashe.options.autocompleters; expect(autocompleters.length==3).toBeTruthy(); }); test('Wikidata autoco...
const path = require('path'); const webpack = require('webpack'); //to access built-in plugins module.exports = { mode: "production", entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), library: "bluegenesJBrowseTool", libraryTarget: "var" }, optim...
export const Colors = { BlueShadow: "#2E3640", MidBlueShadow: "#586473", LightBlueShadow: "#7C8B99", LightestBlueShadow: "#acc2d1", Warn: "#FF7519", MintGreen: "#7dff74", DarkBlue: "#267eae", MidBlue: "#6CB5E3", LightBlue: "#59C3FB", LightestBlue: "#BFF8FF", WhiteBlue: "#EEF8FF", PrimaryRed: "#e...
# Copyright (c) 2019, NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://nvlabs.github.io/stylegan2/license.html """Main training script.""" import numpy as np import tensorflow as tf import dnnlib import ...
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/noetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, o...
/* eslint-env es6 */ import test from 'ava'; import path from 'path'; import rimraf from 'rimraf'; import FaviconsPlugin from '..'; import denodeify from 'denodeify'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import dircompare from 'dir-compare'; import packageJson from '../package.json'; const webpack = de...
import logging from google.oauth2 import service_account from googleapiclient.discovery import build from googleapiclient import errors # pylint: disable=E1103 logger = logging.getLogger(__name__) GOOGLE_APP_CREDS_PATH = os.environ.get('GOOGLE_APP_CREDS_PATH', None) DEFAULT_USER_EMAIL = os.environ.get('DEFAULT_USER_...
#!/usr/bin/env python # -*- coding: utf-8 -*- from . import BaseCodec class SubtitleCodec(BaseCodec): """ Base subtitle codec class handles general subtitle options. Possible parameters are: * codec (string) - subtitle codec name (mov_text, subrib, ssa only supported currently) * language (s...
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # Test case ID : C4976210 # Test Case Title : Verify that when Compute COM is disabled, the user gets an optio...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'bi'; var iconName = 'x-diamond-fill'; var width = 512; var height = 512; var ligatures = []; var unicode = null; var svgPathData = 'M 256 0 C 243.84 0 231.68039 4.6399219 222.40039 13.919922 L 129.50391 106.84766 L 256 233.37695 ...
const hamburgerBtnRef = document.querySelector('.hamburger'); const headerNavigationRef = document.querySelector('.header-navigation'); const heroRef = document.querySelector('.hero'); hamburgerBtnRef.addEventListener('click', onToggleBurger); headerNavigationRef.addEventListener('click', onClickNav); function onTogg...
var React = require('react'); var _ = require('lodash'); var bootbox = require('bootbox'); var classnames = require('classnames'); var Base = require('components/Base.react'); var AppConstants = require('../../../constants/AppConstants'); var StoryListStore = require('stores/OfficerSection/Officer/StoryListStore'); va...
/* * Molecule API Documentation * The Hydrogen Molecule API * * OpenAPI spec version: 1.3.0 * Contact: info@hydrogenplatform.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.14 * * Do not e...
import requests from datetime import datetime from portality.core import app from portality.dao import DomainObject as DomainObject ''' Define models in here. They should all inherit from the DomainObject. Look in the dao.py to learn more about the default methods available to the Domain Object. When using portality ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("@angular/core"); var router_1 = require("@angular/router"); var extra_components_component_1 = require("./extra-components.component"); var tree_component_1 = require("./tree/tree.component...
import React from 'react' import styled from 'styled-components' import { spaceSizes } from '../styles/typography' import List from './List' const getMargin = props => props.direction === 'column' ? `59px 0 0 ${spaceSizes.xxl}` : 0 const Lists = styled.div` display: flex; margin: ${getMargin}; width: ${pr...
export { default as connectPage } from './connectPage'; export { default as PageProvider } from './PageProvider'; export { default as Page } from './Page';
const router = require('express').Router(); const withAuth = require('../../utils/auth'); const sequelize = require('../../config/connection'); const { Post, User, Vote, Comment } = require('../../models'); // get all users router.get('/', (req, res) => { Post.findAll({ attributes: [ 'id', ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['en-gb'] = { "editor": "Rich Text Editor", "editorPanel": "Rich Text Editor panel", "common": { "editorHelp": "Press ALT 0 for help", ...
from __future__ import division from flask import Flask, render_template app = Flask(__name__) import os, sys, inspect, thread, time, timeit src_dir = os.path.dirname(inspect.getfile(inspect.currentframe())) # Windows and Linux # arch_dir = '../lib/x64' if sys.maxsize > 2**32 else '../lib/x86' # Mac arch_dir = os.path....
module.exports={title:"Alacritty",slug:"alacritty",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Alacritty</title><path d="m10.065 0-8.57 21.269h3.595l6.91-16.244 6.91 16.244h3.594l-8.57-21.269zm1.935 9.935c-0.76666 1.8547-1.5334 3.7094-2.298 5.565 1.475 4.54 1.475 4.54 2.298 8.5 0....
from calamari_ocr.ocr.checkpoint import Checkpoint from calamari_ocr.ocr.codec import Codec from calamari_ocr.ocr.datasets import * from calamari_ocr.ocr.evaluator import Evaluator from calamari_ocr.ocr.predictor import Predictor, MultiPredictor, PredictionResult from calamari_ocr.ocr.trainer import Trainer from calama...
"""Auto-generated file, do not edit by hand. MT metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_MT = PhoneMetadata(id='MT', country_code=356, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2357-9]\\d{7}', possible_number_pattern...
/** * @param {object} knex * @return {Promise} */ export function up(knex) { return knex.schema.createTable('users', table => { table.increments('id'); table.string('name'); table.string('email_id'); table.string('password'); table .timestamp('created_at') .notNull() .default...
// Copyright 2019 The Closure Library 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 requ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # --------------------------------------------------------------------------------------------- # Copyright (c) 2017-2018, Arda Kutlu (ardakutlu@gmail.com) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the...
var fs = require('fs'); var path = require('path'); var express = require('express'); var rewrite = require('express-urlrewrite'); var webpack = require('webpack'); var webpackDevMiddleware = require('webpack-dev-middleware'); var webpackHotMiddleware = require('webpack-hot-middleware'); var config = require('./webpack...
const getKeypath = require('keypather/get') const setKeypath = require('keypather/set') const generateRandomString = (length) => { length = length || 3 return Math.random().toString(36).substr(2, length).toUpperCase() } const getDataValue = (data, sections) => { sections = Array.isArray(sections) ? sections : [...
const config = { DB_HOST: 'localhost', DB_PORT: 27017, DB_OPTIONS: { server: { socketOptions: { keepAlive: 300000, connectTimeoutMS: 30000, }, }, replset: { socketOptions: { keepAlive: 300000, connectTimeoutMS: 30000, }, }, } }; module.exp...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { InjectionToken } from '@angular/core'; /** * Used to provide a `ControlValueAccessor` for form controls. * ...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'pagebreak', 'cs', { alt: 'Konec stránky', toolbar: 'Vložit konec stránky' } );
import { isEmpty } from '@ember/utils'; import Component from '@ember/component'; import PikadayMixin from 'ember-pikaday/mixins/pikaday'; export default Component.extend(PikadayMixin, { tagName: 'input', attributeBindings: [ 'readonly', 'tabindex', 'disabled', 'placeholder', 'type', 'name...
/** * Caching functions and cache management for API requests. * * Site Kit by Google, Copyright 2021 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 * * https://www.a...
'''Infrastructure layer for representing agent observations Maintains a synchronized + serialized representation of agent observations in flat tensors. This allows for fast observation processing as a set of tensor slices instead of a lengthy traversal over hundreds of game properties. Synchronization bugs are notori...
/* A magic index in an array A[0...n-1] is defined to be an index such that * A[i] = i. Given a sorted array of distinct integers, write a method to find * a magic index, if one exists, in array A. * * Assumptions: * - sort is in ascending order * - integers in input array are all safe * - if multiple magic inde...
# -*- coding: utf-8 -*- # # SelfTest/Cipher/Salsa20.py: Self-test for the Salsa20 stream cipher # # Written in 2013 by Fabrizio Tarizzo <fabrizio@fabriziotarizzo.org> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent...
import numpy as np import random from baselines.common.segment_tree import SumSegmentTree, MinSegmentTree class ReplayBuffer(object): def __init__(self, size,neutral_action_limit = None): """Create Prioritized Replay buffer. Parameters ---------- size: int Max number ...
import re import json from random import randint import random import time import json from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from starlette.requests import Request app = FastAPI() origins = [ "*", ] app.add_middleware( CORSMiddleware, allow_origins=origins, all...
from pyvista import examples dataset = examples.download_backward_facing_step() # doctest:+SKIP
import {NeuralNetwork} from '../src/anns/neuralNetwork' import {Normal, Uniform, Constant} from '../src/anns/initialization' import {Sigmoid, Tanh, Relu} from '../src/anns/activationFunction' import {SquareError} from '../src/anns/costfuncs' import nj from 'numjs' test('Constructing Layers Neural Network should be ok'...
var isArray_1 = require('../util/isArray'); function isNumeric(val) { // parseFloat NaNs numeric-cast false positives (null|true|false|"") // ...but misinterprets leading-number strings, particularly hex literals ("0x...") // subtraction forces infinities to NaN // adding 1 corrects loss of precision fr...
# # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or ...
const path = require("path"); const slsw = require("serverless-webpack"); const nodeExternals = require("webpack-node-externals"); const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin"); const modulesDir = path.resolve(__dirname, "../node_modules"); module.exports = { context: __dirname, mod...
// Jamie McGowan 2018 // Uses howler.js // TODO // Store all sound object var sounds = {}; // Store sound settings; stored when fave button is clicked // Stored as dict; key = sound name; value = [playing?, volume] var sound_settings = {}; var volumes = {} var muted = false; $(document).ready(function() { l...
import pytest import mlx90640_devicetree import mlx90640 order=0000 dev = None @pytest.mark.run(order=order+0) def test_version(): print ('mlx90640-driver version: {}'.format(mlx90640.__version__)) print ('mlx90640-driver-devicetree version: {}'.format(mlx90640_devicetree.__version__)) @pytest.mark.run(ord...
function solve() { let createButtonElement = document.querySelector('form button.create'); createButtonElement.addEventListener('click', (e) => { e.preventDefault(); let section = document.querySelector('main section'); let authorElement = document.getElementById('creator'); let ...
import React, { Component } from 'react'; import { Badge, DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem, NavLink } from 'reactstrap'; import PropTypes from 'prop-types'; import { AppAsideToggler, AppHeaderDropdown, AppNavbarBrand, AppSidebarToggler } from '@coreui/react'; import logo from '../../assets/img/...
import {interestOptionService} from "../../services/interest-option/interest-option.service"; import {alertService} from "../../services/alert/alert.service"; export default { data: () => { return { data: { status_option_id: 1 }, errors: [] } }, asy...
const clans = require('../clans.js'); const MockMessage = require('../../stub/MockMessage.js'); test('Sends correct clans message to channel', async () => { const message = new MockMessage(); const responseMessage = await clans.execute(null, message); const expectedResponse = `⚔ Here is our list of KOA Clans! ⚔ ...
"use strict"; // var mqtt = require("mqtt"); // var client = mqtt.connect("mqtt://localhost:1887"); // require("colors"); // function printObjKeys(obj) { // for (var k in obj) { // if (obj.hasOwnProperty(k)) { // console.log(k); // } // } // } // function printObject(obj) { // for(var k in obj)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ...
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test logic for setting nMinimumChainWork on command line. Nodes don't consider themselves out of "initial b...
export const getUserFeedbacks = (feedbacks) => { return { type: 'GET_USER_FEEDBACK', payload: feedbacks } }; export const updateUserResponse = () => { return { type: 'UPDATE_USER_RESPONSE', payload: [] }; }; export const selectFeedback = (id) => { return { t...
module.exports = { globals: { spritejs: true, axios: true, TWEEN: true, d3: true, Docsify: true, _: true, CodeMirror: true, topojson: true, mapRelation: true, Animator: true, Timeline: true, Proton: true, curvejs: true, }, extends: "eslint-config-75team", plu...
/* @ @licstart The following is the entire license notice for the JavaScript code in this file. Copyright (C) 1997-2017 by Dimitri van Heesch This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ...
# coding: utf-8 """ Strava API v3 The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with differe...
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
const es = { "transform-template-literals": { features: ["template literals"], }, "transform-literals": { features: ["Unicode code point escapes"], }, "transform-function-name": { features: ['function "name" property'], }, "transform-arrow-functions": { features: ["arrow functions"], }, ...
""" Licensed to Big Data Genomics (BDG) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The BDG licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except i...
'use strict'; var Promise = require('bluebird'); var consts = require('../constants'); var readP = require('../promisified/readP'); function recordCLIUntilQuit() { var actions = []; var screenshotCount = 0; var wasLiveplayback = false; function readPAgain() { return readP({prompt: '> '}) .then(fun...
/** * Bio component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import { useStaticQuery, graphql } from "gatsby" import Image from "gatsby-image" import { rhythm } from "../utils/typography" import ContactInf...
module.exports = function(){}
/* Create a method all which takes an array and a predicate (function pointer), and returns true if the predicate returns true for every element in the array. Otherwise, it should return false. If the array is empty, it should return true, since technically nothing failed the test. */ function all(arr, fun) { return...
""" Django settings for InstaClone project. Generated by 'django-admin startproject' using Django 4.0.3. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ from path...
import React from 'react'; const IconEmail = () => ( <svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="feather feather-email"> <title>Email</title> ...
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------...
const User = require("../models/user") const {validationResult} = require('express-validator') const user = require("../models/user") var jwt = require('jsonwebtoken') var expressJwt = require('express-jwt') // Sign up exports.signup = (req, res) => { const errors = validationResult(req) if(! errors.isEmpty()...
import * as types from './constants'; export const login = (user) => { const info = user.local ? user.local : user.facebook; const obj = { _id: user._id, displayName: info.username || user.name, isFacebook: !!user.facebook, email: info.email || info.username || null, }; return { type: types.R...
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import argparse, os import numpy as np import pickle import tensorflow as tf import tensorflow.keras as keras from tensorflow.keras import backend as K from tensorflow.keras import Input from tensorflow.keras.models ...
module.exports = function transform(arr) { let result = []; if (!Array.isArray(arr)) throw "Error"; for (let i = 0; i < arr.length; i++) { if (arr[i] == "--double-next") { if (i + 1 < arr.length) result.push(arr[i + 1]); } else if (arr[i] == "--double-prev") { if (i - 1 > -1) result.pus...
from okane.entity.moneyregister import MoneyRegister from okane.entity.category import Category from okane.entity.account import Account class EntityFactory: def createMoneyRegister(self,args): return MoneyRegister(args) def createCategory(self, name): return Category(name) def createAccou...
import six import unicodedata import re # This slugify version was borrowed from django revision a61dbd6 def slugify(value): """Converts to lowercase, removes non-word characters (alphanumerics and underscores) and converts spaces to hyphens. Also strips leading and trailing whitespace.""" value = uni...
/*! jQuery Validation Plugin - v1.12.0 - 4/1/2014 * http://jqueryvalidation.org/ * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ !function(){function a(a){return a.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}jQuery.validator.addMethod("maxWords",function(b...
# # Copyright 2016 IBM # # 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, softw...
import * as types from './actionTypes'; import {beginAjaxCall, ajaxcallError} from './ajaxStatusActions'; import toastr from 'toastr'; export function createUserSuccess(user_obj) { return { type:types.CREATE_USER, user_obj }; } export function authenticateUserSuccess(user_obj) { ...
# Copyright (c) 2020 PaddlePaddle 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 required by app...
var elems = document.getElementsByClassName('confirm'); var confirmIt = function (e) { if (!confirm('Are you sure?')) e.preventDefault(); }; for (var i = 0, l = elems.length; i < l; i++) { elems[i].addEventListener('click', confirmIt, false); }
const path = require('path'); /** 忽略编辑的第三方库 */ const externals = { csharp: 'commonjs2 csharp', puerts: 'commonjs2 puerts', }; module.exports = { entry: './src/GameMain.ts', devtool: 'source-map', mode: 'development', module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/ ...
import { USER_SUCCESS, USER_FAIL, USER_POST_REQUEST } from "./userTypes.js"; export const userPost = () => ({ type: USER_POST_REQUEST, }); export const userSuccess = (data) => ({ type: USER_SUCCESS, payload: data, }); export const userFail = (error) => ({ type: USER_FAIL, payload: error, });
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M-.01 7.72V9.4l3-1V18h2V6h-.25L-.01 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.4...
import axios from 'axios'; import get from 'lodash/get'; import isFunction from 'lodash/isFunction'; import isMatch from 'lodash/isMatch'; import isPlainObject from 'lodash/isPlainObject'; import some from 'lodash/some'; export default async function getActiveProjects(project) { this.log.trace('getActiveProjects rul...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(["sap/base/Log","sap/ui/core/mvc/View"],function(L,V){"use strict";return{_getObjectWithGlobalId:function(o){function c(){o.viewName=o.name;delete o.name;r...
/* * (c) Copyright 2015 Hewlett-Packard Development Company, L.P. * * 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 requ...
'use strict'; module.exports = function () { var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.set('view engine', 'jade'); app.use(express.static('public')); app.listen(8080...
#!/usr/bin/env python3 # _*_ coding:utf-8 _*_ import requests from Config.config_requests import headers from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) ##########################################################################...
//jshint strict: false module.exports = function(config) { config.set({ basePath: './app', files: [ '../node_modules/angular/angular.js', '../node_modules/angular-route/angular-route.js', '../node_modules/angular-mocks/angular-mocks.js', 'components/**/*.js', 'view*/**/*.js' ...
import React from 'react' import ReactDOM from 'react-dom/server' import { Provider } from 'react-redux' import { flushChunkNames } from 'react-universal-component/server' import flushChunks from 'webpack-flush-chunks' import configureStore from './configureStore' import App from '../src/components/App' export default...
/* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = function () { const config = { devtool: 'source-map', resolve: { extensions: ['.ts', '.js'] }, entry: { 'prouter.min': './src/...
import * as basicLightbox from 'basiclightbox'; import 'basiclightbox/dist/basicLightbox.min.css'; import pixApi from './api/pixabayApi'; import cardTmpl from '../templates/cardTmpl.hbs'; import pnotify from './pnotify'; const refs = { form: document.querySelector('.js-search-form'), list: document.querySelector(...
''' William Gao Project for Software Development and Design (2018, YR11) Top-down shooter Written in python, primarily using the pygame module Documentation throughout the entire project and its associated files in order to demonstrate my depth and understanding of the code being wr...
// // SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors // // SPDX-License-Identifier: Apache-2.0 // 'use strict' const { split, reduce, join } = require('lodash') const { sign, encrypt, COOKIE_HEADER_PAYLOAD, COOKIE_SIGNATURE, COOKIE_TOKEN } = require('../../../lib/security') ...