text
stringlengths
3
1.05M
var credentials = require('./credentials.json'); var express = require('express'); var TokenProvider = require('./lib/tokenprovider'); var app = new express(); var tokenProvider = new TokenProvider(credentials); if (credentials.authToken) { console.warn('WARNING: The "authToken" field is deprecated. Please use "sig...
from starlette.testclient import TestClient from main import app client = TestClient(app) def test_single_cve_exist(): response = client.get("/v1/cve/cve-2019-10842") assert response.status_code == 200 assert response.json()[0]["cve_data_meta"]["ID"] == "CVE-2019-10842" def test_single_cve_non_exist()...
# Copyright (c) 2010-2020 openpyxl from copy import copy from openpyxl.xml.functions import tostring, fromstring from openpyxl.tests.helper import compare_xml import pytest from openpyxl.styles import Border, Side from ..cell_range import CellRange from openpyxl import Workbook @pytest.fixture def MergeCell(): ...
# # Copyright 2021 Bernhard Walter # # 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 writ...
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2010, Eucalyptus Systems, Inc. # 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 res...
'use strict'; // Subcategories controller angular.module('subcategories').controller('SubcategoriesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Subcategories', function($scope, $stateParams, $location, Authentication, Subcategories) { $scope.authentication = Authentication; // Create n...
/** * 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...
import React, { Component } from "react" import MainView from "./MainView"; class App extends Component { render() { return ( <MainView /> ); } } export default App;
/* global describe, it */ const Container = require('../../src/container'); const { expect } = require('chai'); describe('Unit tests for Container load', () => { var c; it('Create container', () => { c = new Container(); c.setNS({space: 'default__'}); c.setNS({space: 'one'}); expect(c.hetaErrors()...
import config from './rollup.config' export default config({ output: { file: 'lib/rtnice.es.js', format: 'es' }, browser: false })
define({ id: 'nl', name: 'Nederlands', texts: { preferences: { thousandSeparator: '\u2009', decimalSeparator: '.' }, faults: { 101: 'Bestand niet gevonden.', 102: 'Wallet is niet aangemaakt.', 103: 'Wallet bestand is corrupt. Herstel je wallet van een eerder gemaakte b...
module.exports={A:{A:{"1":"A B","2":"H D G E HB"},B:{"1":"0 C p J L N I"},C:{"1":"1 2 4 6 7 8 9 S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y z AB BB","2":"3 cB aB UB","33":"0 B C p J L N I O P Q R","164":"F K H D G E A"},D:{"1":"1 2 4 6 7 8 9 T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w ...
from flask import jsonify from app import db from app.api import bp from app.api.auth import basic_auth, token_auth @bp.route('/tokens', methods=['POST']) @basic_auth.login_required def get_token(): token = basic_auth.current_user().get_token() db.session.commit() return jsonify({'token': token...
/** @jsx jsx */ import { jsx } from 'theme-ui' import { graphql, useStaticQuery } from 'gatsby' import CallToAction from '../sections/CallToAction' import Portfolio from '../sections/Portfolio' import Layout from '../components/Layout' import SEO from '../components/Seo' function OurWorkPage({ location }) { const da...
/*jslint nomen: true */ var Instrumenter = require('../lib/instrumenter'), vm = require('vm'), NO_OP = function () {}, utils = require('../lib/object-utils'); function Verifier(opts) { this.file = opts.file; this.fn = opts.fn; this.code = opts.code; this.generatedCode = opts.generatedCode;...
/* @license dhtmlxScheduler v.5.3.4 Stardard To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com (c) XB Software Ltd. */ Sche...
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } i...
import Axios from 'axios'; import qs from 'query-string' export const axios = Axios.create({ baseURL: 'http://localhost:8080/', timeout: 30000, paramsSerializer: params => qs.stringify(params) });
const signupFormHandler = async (event) => { event.preventDefault(); const name = document.querySelector('#username-signup').value.trim(); const password = document.querySelector('#password-signup').value.trim(); if (name && password) { const response = await fetch('/api/users/', { m...
/* Include and start express. */ let express = require('express'); let app = express(); /* Path module for directing to the Public assets folder.*/ const path = require('path'); /* Set the path for loading assets like CSS and images.*/ app.use(express.static(path.join(__dirname, '/public'))); /* Include credentials ...
import React, { useEffect, useState } from "react" import { faStar } from "@fortawesome/free-solid-svg-icons" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import "./styles/testimonials.css" import Operating from "../components/Operating/Operating" import { Modal } from "react-bootstrap" import { But...
import transformers import torch import os import json import random import numpy as np import argparse from torch.utils.tensorboard import SummaryWriter from datetime import datetime from tqdm import tqdm from torch.nn import DataParallel from tokenizations.bpe_tokenizer import get_encoder def build_files(data_path,...
!function(a,b){function c(){return new Date(Date.UTC.apply(Date,arguments))}function d(){var a=new Date;return c(a.getFullYear(),a.getMonth(),a.getDate())}function e(a,b){return a.getUTCFullYear()===b.getUTCFullYear()&&a.getUTCMonth()===b.getUTCMonth()&&a.getUTCDate()===b.getUTCDate()}function f(a){return function(){re...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { Icon, Button, Field, CustomSelect, Range, Slider, Spinner } from 'aqueduct-components'; import debounce from 'lodash/debounce'; import isEqual from 'lodash/isEqual'; // components import SectionHeader from 'compone...
# 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 # distributed under t...
#coding=utf-8 from mysubmail.mail import Mail from mysubmail import TextField, UrlField class TestMail(Mail): name=TextField() active_url=UrlField() mail = TestMail(name='jelly', active_url="http://www.baidu.com") mail.send()
import Vue from 'vue' import Router from 'vue-router' const shou = () => import("./views/shou/shou"); const ge = () => import("./views/ge/ge"); const wo = () => import("./views/wo/wo"); const shang = () => import("./views/shang/shang"); Vue.use(Router) export default new Router({ routes: [ { path: "", redirect...
import { GET_ERRORS, CLEAR_ERRORS } from '../action/types'; const initialState = {}; export default function (state = initialState, action) { switch (action.type) { case GET_ERRORS: return action.payload; case CLEAR_ERRORS: return {}; default: return state; } }
'use strict' const DEFAULT_PUNCTUATION = ',;:.?!' const isBoolean = x => typeof x === 'boolean' const isFunction = x => typeof x === 'function' const isObjectLiteral = x => (x.constructor || {}).name === 'Object' const isPunctuation = x => isString(x) && Array.from(x).every(x => DEFAULT_PUNCTUATION.includes(x)) const...
/** * Tests that rolling back the insertion of the shardIdentity document on a shard causes the node * rolling it back to shut down. * @tags: [requires_persistence, requires_journaling] */ (function() { "use strict"; load('jstests/libs/write_concern_util.js'); var st = new ShardingTest({shards: 1}); ...
/* eslint no-console:0 */ const assert = require('power-assert') const Lab = require('lab') const lab = exports.lab = Lab.script() const {describe, it, beforeEach, afterEach} = lab const SDSwim = require('../lib/sd-swim') const {states: {JOINED}} = require('../lib/states') const {compareNodesLists} = require('./commo...
const main = document.querySelector('main'); export function showView(section) { main.replaceChildren(section); } export function e(type, attributes, ...content) { const result = document.createElement(type); for (let [attr, value] of Object.entries(attributes || {})) { if (attr.substring(0, 2) =...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-07-29. # 2019, SMART Health IT. import os import io import unittest import json from . import endpoint from .fhirdate import FHIRDate class EndpointTests(unittest.TestCase): def instantiate_from(self, filename): ...
import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { useLocation, useNavigate } from 'react-router-dom'; function ChangePassword() { const navigate = useNavigate(); const location = useLocation(); const [password, setPassword] = useState(''); const [checkPassword, se...
const mongoose = require("mongoose"); const crypto = require("crypto"); const UserSchema = new mongoose.Schema( { username: { type: String, trim: true, required: true, max: 32, unique: true, index: true, lowercase: true, }, name: { type: String, trim:...
import React from 'react'; import CreateSvgIcon from '../CreateSvgIcon' export default CreateSvgIcon({ path: <React.Fragment><path d="M0 0h24v24H0z" fill="none"/><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3z...
(function() { window.WallTime || (window.WallTime = {}); window.WallTime.data = { rules: {}, zones: {"Indian/Kerguelen":[{"name":"Indian/Kerguelen","_offset":"0","_rule":"-","format":"zzz","_until":"1950"},{"name":"Indian/Kerguelen","_offset":"5:00","_rule":"-","format":"TFT","_until":""}]} ...
"use strict"; var colors = require('../lib/colors'); var suits = require('../lib/suits'); describe("Suits", function() { it("has 'Hearts'", function() { var hearts = suits.HEARTS; expect(hearts).toEqual(jasmine.anything()); expect(hearts.toString()).toBe("\u2665"); expect(hearts.color).toBe(colors....
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
module.exports = { '.aac': 'audio/aac', '.abw': 'application/x-abiword', '.arc': 'application/x-freearc', '.avi': 'video/x-msvideo', '.azw': 'application/vnd.amazon.ebook', '.bin': 'application/octet-stream', '.bmp': 'image/bmp', '.bz': 'application/x-bzip', '.bz2': 'application/x-bzip2', '.cda': 'a...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # TODO: Add qualifications for output items per specific context input item. """ mwtab.mwrest ~~~~~~~~~~~~ This module provides routines for accessing the Metabolomics Workbench REST API. See https://www.metabolomicsworkbench.org/tools/MWRestAPIv1.0.pdf for details. """ ...
/* */ System.register([], function (_export) { var _prototypeProperties, _classCallCheck, SetterObserver, OoObjectObserver, OoPropertyObserver, UndefinedPropertyObserver, ElementObserver; return { setters: [], execute: function () { "use strict"; _prototypeProperties = function (child, static...
function smartLily(input) { let lilyAge = Number(input[0]); let washingMachinePrice = Number(input[1]); let singleToyPrice = Number(input[2]); let toysCounter = 0; let stolenMoney = 0; let savedMoney = 0; let addedMoney = 10; for (let i = 1; i <= lilyAge; i++) { if (i % 2 === 0) { ...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BorderAll = props => <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z" /> </SvgIcon>; BorderAll = pure(BorderAll); BorderAll.muiName = 'SvgIcon'; ...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
## Generic Plotting Outline for rhovsenergy.out data ## ## Author: Zander Mausolff ## Usage: python plt_cmdline-args.py ## Usage help: python plt_cmdline-args.py help import os import numpy as np import matplotlib.pyplot as plt import sys import re ##-------Change font to 'Palatino' throughout the plot---## ##------...
import styled from '@emotion/styled'; import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/layout'; import ProjectList from '../components/project-list'; import SEO from '../components/seo'; import { blogMenuLinks } from '../components/_config/menu-links'; import { StyledH1 } f...
//取得cookie的方法 固定在上面 function getCookie(name) { var arg = escape(name) + "="; var nameLen = arg.length; var cookieLen = document.cookie.length; //console.log(cookieLen); var i = 0; while (i < cookieLen) { var j = i + nameLen; if (document.cookie.substring(i, j) == arg) return getCookieValueByIndex(j...
const path = require('path'); const webpack = require('webpack'); const merge = require('webpack-merge'); const base = require('./webpack.config.base'); module.exports = merge(base, { mode: 'development', devtool: 'inline-source-map', output: { path: path.resolve(__dirname, '../dist'), filename: '[name]....
import { changeFilter } from './phonebook-actions'; import { createReducer } from '@reduxjs/toolkit'; export const filterReducer = createReducer('', { [changeFilter]: (_, action) => action.payload, });
# -*- coding: utf-8 -*- """ Created on Sat Apr 13 11:26:57 2019 @author: SrivatsanPC """ from utils import batch_mlp import tensorflow as tf # TODO: add self-attention as an option class LatentEncoder_cross(object): """The Latent Encoder.""" def __init__(self, output_sizes, num_latents,attention,use_self_atten...
# A modification version from chainercv repository. # (See https://github.com/chainer/chainercv/blob/master/chainercv/evaluations/eval_detection_voc.py) from __future__ import division import os from collections import defaultdict import numpy as np from maskrcnn_benchmark.structures.bounding_box import BoxList from m...
const mongoose = require('mongoose') const URLSchema = new mongoose.Schema({ urlCode: String, longUrl: String, shortUrl: String, date: { type: String, default: Date.now } }) module.exports = mongoose.model('urls', URLSchema)
var a1 = new Audio('./consequence.mp3'); var a2 = new Audio('./harp.mp3'); var start = new Date().getTime(); var ws = new WebSocket("wss://echo.websocket.org"); ws.onopen = function() { $('#cLatence1').text( (new Date().getTime() - start) +"ms"); ws.close(); $('#bName').attr('disabled', false); }; var elem = document.g...
/** * @param preferences - target student focus * @param knowsProgramming - if student can do programming and know basics * @param config - private student ability to perform for different focus modes * @returns number of weeks needed for finish education */ module.exports = function getTimeForEducation( focus...
export { default as Next } from "./next"; export { default as MainCore } from "./default"; export { default as AuxCore } from "./iifx"; export { default as Dynamic } from "./dynamic"; export { default as Jr } from "./jr"; export { default as Viewscreen } from "./viewscreen"; export { default as TacticalMaps } from "./t...
'use strict' /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use('Model') /** @type {import('@adonisjs/framework/src/Hash')} */ const Hash = use('Hash') class User extends Model { static boot () { super.boot() /** * A hook to hash the user password before saving * i...
// -- imports // ---- core imports // ---- third imports import React, { Component } from "react"; import { DashboardNavbar } from "./dashboard_navbar"; import { AgentActions } from "./agent_actions" import { AgentWaitingRequest } from "./agent_waiting_request" import { AgentProcessedRequest } from "./agent_process...
/** * (C) Copyright IBM Corporation 2018. * * 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 ...
 function BindLikeArticleButtons() { $(".btn-like-action").click(function () { var actionUrl = $(this).attr("data-action"); var articleId = $(this).attr("data-id"); var currentObj = $(this); $.ajax({ url: actionUrl, type: 'POST', data: "{ 'article...
import React from "react" import { View, Image, ImageBackground, TouchableOpacity, Text, Button, Switch, TextInput, StyleSheet, ScrollView } from "react-native" import Icon from "react-native-vector-icons/FontAwesome" import { CheckBox } from "react-native-elements" import { connect } from "react-re...
/** * Assume we have an image server able to serve webp or jxr, convert png and jpg * urls to applicable urls if the browser supports it */ addEventListener('fetch', event => { event.respondWith(updateCompressionMethod(event.request)) }) async function updateCompressionMethod(request) { /** * Regex f...
/* * 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. */ export const API_BASE_PATH = '/api/rollup'; export const INDEX_PATTERNS_EXTEN...
function openProject(el) { var cont = menu("user"); cont.closest(".menu").classList.add("open-project"); var h1 = h1El(); h1.setAttribute("style", ` height: 10rem; line-height: 10rem; font-size: 3.5rem; margin: 0; margin-left: 3rem; color: var(...
'use strict' module.exports = function(args, check) { check(args, "is_return_goods", "Boolean", true); check(args, "is_return_post_fee", "Boolean", true); check(args, "refund_desc", "String", true); check(args, "refund_reason_id", "Number", true); check(args, "return_fee", "Number", true); check(args, "sub_...
const schema = {}; schema.MedicalGuideline = require("./MedicalGuideline.js"); /** * Schema.org/MedicalGuidelineRecommendation * A guideline recommendation that is regarded as efficacious and where quality of the data supporting the recommendation is sound. * * @author schema.org * @class MedicalGuidelineRecommend...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var path_1 = require("path"); var fs_1 = require("../utils/fs"); var config_1 = require("./config"); function findProject(dir) { return findConfigFile(dir).then(path_1.dirname); } exports.findProject = findProject; function findConfigFile(...
app.controller('homeController', function ($scope, homeService, $localForage, offline, _) { $scope.surveys = []; var getData = function () { homeService.getSurveys().then(function (response) { $scope.surveys = response; if (offline.state === 'up') { angular.fo...
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. 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:/...
import atImport from 'postcss-import'; import chalk from 'chalk'; import gulp from 'gulp'; import pixrem from 'pixrem'; import postcss from 'gulp-postcss'; import presetEnv from 'postcss-preset-env'; import rename from 'gulp-rename'; import rgbaFallback from 'postcss-color-rgba-fallback'; import sourcemaps from 'gulp-s...
import { useEffect, useState } from 'react'; import userService from '../services/users'; import projectService from '../services/projects'; import taskService from '../services/tasks'; import trackingService from '../services/trackings'; import controller from '../controllers/homeController'; import LoginForm from '...
export default function (url) { const audio = new Audio(url) audio.play() }
/** * This is a wrapper component for different Layouts. * Topbar should be added to this wrapper. */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import css from './LayoutWrapperTopbar.module.css'; const LayoutWrapperTopbar = props => { const { c...
initSidebarItems({"enum":[["BernoulliError","Error type returned from `Bernoulli::new`."],["BetaError","Error type returned from `Beta::new`."],["BinomialError","Error type returned from `Binomial::new`."],["CauchyError","Error type returned from `Cauchy::new`."],["ChiSquaredError","Error type returned from `ChiSquared...
import React from 'react' import styled from 'styled-components' import { space, color } from 'styled-system' const Icon = ({ size, ...props }) => ( <svg {...props} viewBox='0 0 24 24' width={size} height={size} fill='currentcolor' > <path d='M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v...
var NAVTREEINDEX18 = { "classoperations__research_1_1RoutingIndexManager.html#a31feb605a82521fcdb67d19c4f962f5c":[2,0,2,218,0], "classoperations__research_1_1RoutingIndexManager.html#a3a51bf2b84f28075c50aca511c910053":[2,0,2,218,10], "classoperations__research_1_1RoutingIndexManager.html#a43b46864861a1796f1d3b254094a74...
(function(e){const t=e["zh"]=e["zh"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1","Align center":"置中對齊","Align left":"靠左對齊","Align right":"靠右對齊",Aquamarine:"淺綠色",Big:"大",Black:"黑色","Block quote":"段落引用",Blue:"藍色",Bold:"粗體","Bulleted List":"符號清單","Bulleted list styles toolbar":"",Cancel:"取消","Canno...
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2021-09-13 20:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields import osf.models.base import osf.utils.fields class Migratio...
import React, { PureComponent } from "react"; import propTypes from "prop-types"; import Counter from "./Counter"; import Icon from "./Icon"; class Player extends PureComponent { // PureComponent uses shouldComponentUpdate() lifecycle behind the scenes so that it only rerenders the components that have changed base...
import React from "react"; import ReactDOM from "react-dom"; import { BrowserRouter } from "react-router-dom"; import { Provider } from "react-redux"; import { createStore, applyMiddleware, compose } from "redux"; import thunk from "redux-thunk"; import rootReducer from "./src/reducers"; import App from "./src/app"; im...
import flask import logging import functools logging.basicConfig( filename='app.log', level=logging.DEBUG, format='%(asctime)s [%levelname]s %(name)s' + '[%(funcName)s] [%(filename)s], $(lineno)s %(message)s' ) logging.debug(flask.session.get('email') or 'Não autorizado') def log_email(f...
import zeit.cms.testing import zeit.content.image.testing ZCML_LAYER = zeit.cms.testing.ZCMLLayer('ftesting.zcml', bases=( zeit.content.image.testing.CONFIG_LAYER,)) ZOPE_LAYER = zeit.cms.testing.ZopeLayer(bases=(ZCML_LAYER,)) WSGI_LAYER = zeit.cms.testing.WSGILayer(bases=(ZOPE_LAYER,)) class FunctionalTestCase...
/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 Cesium Contributors * * 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/LICEN...
'use strict'; const userNameInput = document.getElementById('user-name'); const assessmentButton = document.getElementById('assessment'); const resultDivided = document.getElementById('result-area'); const tweetDivided = document.getElementById('tweet-area'); /** * 指定した要素の子どもを全て除去するあ * @param {HTMLElement} element H...
import 'react-native-gesture-handler'; import React from 'react'; import { Provider } from 'react-redux'; import { PersistGate } from 'redux-persist/integration/react'; import { StatusBar } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import '~/config/ReactotronConfig'; import {...
module.exports = function createResolver (alias) { if (typeof alias !== 'object' || Array.isArray(alias)) { return function (url) { return url } } alias = Object.keys(alias).map(function (key) { var onlyModule = false var obj = alias[key] if (/\$$/.test(key)) { onlyModule = true ...
'use strict'; var score = 0; var userName = prompt('Hi! What is your name?'); alert('Welcome to my site ' + userName + '!'); //write 5 questions. they MUST accept yes or no OR y or n IN ANY CASE //examples: YES, yes, YEs, yeS, Y, y, function questionOne(){ var liveLocationCity = prompt('Do I live in Seattle?').to...
Ext.define('Ext.locale.ja.data.validator.Exclusion', { override: 'Ext.data.validator.Exclusion', config: { message: '除外された値です' } });
# Generated by Django 3.2.3 on 2021-06-25 11:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mainsite', '0004_auto_20210622_2110'), ] operations = [ migrations.AlterModelOptions( name='training', options={'ordering': ...
'use strict' const app = require('APP') const debugSQL = require('debug')('sql') // DEBUG=sql const debugDB = require('debug')(`${app.name}:db`) // DEBUG=your_app_name:db const chalk = require('chalk') const Sequelize = require('sequelize') const name = (process.env.DATABASE_NAME || app.name) + (app.isTesting ? '_te...
/* * Copyright (c) 2021 IBA Group, a.s. All rights reserved. * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You unde...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
/** * Copyright 2014 SCN SDK Community * * Original Source Code Location: * https://github.com/org-scn-design-studio-community/sdkpackage/ * * 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 Li...
/*! * SAP APF Analysis Path Framework * * (c) Copyright 2012-2014 SAP SE. All rights reserved */ sap.ui.define(function(){"use strict";var a={patternMatch:function(c){this.params={};var s=this;sap.ui.core.UIComponent.getRouterFor(c).attachRoutePatternMatched(function(e){s.params={name:e.getParameter("name"),argumen...
{ "metadata" : { "formatVersion" : 3, "generatedBy" : "Blender 2.62 Exporter", "vertices" : 153, "faces" : 279, "normals" : 153, "colors" : 31, "uvs" : 0, "materials" : 1, "morphTargets" : 0 }...
'use strict'; pbc.assignD.get('List')['check_assign'] = function (py2block, node, targets, value) { if (value._astname === "List") return true; return false; } pbc.assignD.get('List')['create_block'] = function (py2block, node, targets, value) { return block("lists_create_with", node.lineno, { ...
const express = require('express') const app = express() const cors = require('cors'); require('dotenv').config(); app.use(cors()); app.use(express.json()); const axios = require('axios'); const mongoose = require('mongoose'); const { getBooks, createBook, updateBook, deleteBook } = require('./controll...
"use strict"; require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.iterator"); require("core-js/modules/es.function.name"); require("core-js/modules/es.n...
import urllib import urllib.request from bs4 import BeautifulSoup import sqlite3 import MySQLdb import csv #SQL connection data to connect and save the data in HOST = "localhost" USERNAME = "root" PASSWORD = "" DATABASE = "scraping_sample" user = input("enter user name: ") url = "https://github.com/"+user page = url...
import fs from 'fs'; import { saveFolder, historyFilePath, historyFilePathOld } from "../config.js"; import { AnimeEpisode } from './anime.js'; export class HistoryManager { /** * @type {Object} * @private */ _history; constructor() { if (!fs.existsSync(saveFolder)) { f...