text
stringlengths
3
1.05M
import moment from 'moment'; import { db, dateFormat } from '../utils'; import axios from 'axios'; export async function loadPodcastInfoFromDatabase(podcastId) { let document = null; try { document = await db.get(podcastId); } catch(exception) { // silence } return document; } ex...
"use strict"; // Copyright IBM Corp. 2018,2019. All Rights Reserved. // Node module: @loopback/repository // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); const legacy_juggler_bridge_1 = requir...
from .local_persister import LocalPersister
#!/usr/bin/env python u""" gfz_isdc_dealiasing_ftp.py Written by Tyler Sutterley (10/2020) Syncs GRACE Level-1b dealiasing products from the GFZ Information System and Data Center (ISDC) Optionally outputs as monthly tar files CALLING SEQUENCE: python gfz_isdc_dealiasing_ftp.py --year=2015 --release=RL06 --tar...
# Copyright 2017 The Nuclio 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
var AV = require('leanengine'), xbique = require('./task/xbique'), xbiqueArti = require('./task/xbiqueArti'); /** * 一个简单的云代码方法 */ AV.Cloud.define('xbieque', function(request) { xbique.spiderDef(); return 'Hello world!'; }); AV.Cloud.define('xbiqueArti', function(request) { xbiqueArti....
var moment = require("../../moment"); /************************************************** Norwegian bokmål *************************************************/ exports["lang:nb"] = { setUp : function (cb) { moment.lang('nb'); cb(); }, tearDown : function (cb) { ...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const exerciseSchema = new Schema({ type: { type: String, }, name: { type: String, }, distance: { type: Number }, duration: { type: Number }, weight: { type: Number }, sets: { type: Number }, reps: ...
# Generated by Django 2.2.2 on 2019-06-06 19:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('PeerShakeWeb', '0003_auto_20190606_1446'), ] operations = [ migrations.RemoveField( model_name='chromeextension', na...
var gulp = require('gulp'), runSequence = require('run-sequence'), gulpPlugins = require('gulp-load-plugins')(), buffer = require('vinyl-buffer'), source = require('vinyl-source-stream'); var paths = { entries: [ { in: './src/public/src/js/app.js', out: 'app.js' } ], build: { ...
""" test_bundle_asset """ import secrets import logging import json from starfish.asset import DataAsset from starfish.asset import BundleAsset TEST_ASSET_COUNT = 4 def test_init(): bundle = BundleAsset.create('Bundle Asset') assert(bundle) bundle = BundleAsset.create('test') assert(bundle) ...
(function(d){ const l = d['ja'] = d['ja'] || {}; l.dictionary=Object.assign( l.dictionary||{}, {"%0 of %1":"","Align center":"中央揃え","Align left":"左揃え","Align right":"右揃え","Block quote":"ブロッククオート(引用)",Bold:"ボールド","Bulleted List":"箇条書きリスト",Cancel:"キャンセル","Centered image":"中央寄せ画像","Change image text alternative":"画像の代替テ...
import SimpleSliderView from '../../static/simple-photo/slider-view'; global.document.getElementById = jest.fn(); global.document.getElementById.mockImplementation(() => { return { src: '', innerHTML: '' }; }); describe('SimpleView', () => { let simpleSliderView = null; beforeEach(() =...
/** * @license * Copyright 2016 Google Inc. * * 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 ...
// Rename this file to config.js before running the bot module.exports = { DISCORD_TOKEN: "YOUR_TOKEN_HERE", POLLING_INTERVAL: 5000, } ;
import { createAction } from "@reduxjs/toolkit"; const addListRequest = createAction("contacts/addRequest"); const addListSuccess = createAction("contacts/addSuccess"); const addListError = createAction("contacts/addError"); const removeListRequest = createAction("contacts/removeRequest"); const removeListSuccess = c...
import { Observable } from "rxjs"; import Handle from "./handle"; import addQixMethods from "../util/add-qix-methods"; import setObsTemp from "../util/set-obs-temp"; export default class GenericObject extends Handle { constructor(session, handle) { super(session, handle); this.layout$ = (() => { ...
var express = require('express'); var router = express.Router(); var crypto = require('crypto'); /* GET home page. */ router.get('/', function(req, res) { res.render('usecrypto', { title: '加密字符串示例' }); }); router.post('/',function(req, res){ var userName = req.body.txtUserName, userPwd = req.body.txtUserPwd;...
import React from "react"; import axiosWithAuth from "../../Utils/axiosWithAuth"; import { Link } from "react-router-dom"; import { Card, CardBody, Container, Col, Button, Row } from "shards-react"; export default function ReflectionCard(props) { const deleteReflect = e => { e.preventDefault(); console.log(...
import {createStore, applyMiddleware, compose, combineReducers} from "redux"; import thunk from "redux-thunk"; import logger from "redux-logger"; import {rpcReducer} from "./rpc/store"; import {connect} from "react-redux"; import { TextContainer, redact, dispatcher } from "./frontendlib"; import {bookReducer} fro...
import React from 'react'; import ListItem from '@material-ui/core/ListItem'; import Divider from '@material-ui/core/Divider'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; import Avatar from '@material-ui/core/Avatar'; import TimeAgo from 'rea...
$(document).ready(function(){ $('.bun-slide').hide(); $('.dumpling-slide').hide(); $('.vegetarian-slide').hide(); $('#buns').click(function(){ $('.bun-slide').show(); $('.dumpling-slide').hide(); $('.vegetarian-slide').hide(); $('.all-slide').hide(); }) $('#dumpl...
'use strict'; // Changing the color of the box /* const square = document.querySelector('.square'); console.log(square) // let square = document.getElementsByClassName('square') square[0].style.backgroundColor = 'blue'; */ // Changing the text in movie list /* const lis = document.querySelectorAll('.fav-movie'); co...
function randomNumber(array) { return Math.floor(Math.random() * array.length); } function randomColNRow(rowStart, rowEnd, colStart, colEnd, orientation) { const possibleCols = []; const possibleRows = []; if (orientation === 'horizontal') { // walls on even cells only for (let number = rowStart; numbe...
import React from 'react'; import Moment from 'react-moment'; // LOCAL IMPORTS import './Loungemessage.css'; export default function Message({ message, user, handleDelete }) { // STATE VARIABLES // ------------------ return ( <div className="message-wrapper" data-id={messag...
#!/usr/bin/env python """Batch process all folders of images stacks and save focus stack. Assumes the following folder structure of stacks of .jpg images: .\ |--batch_process_stacks.py |--eyestack_1\ |--mask.jpg (optional: if absent, uses color selector GUI) |--img_001.jpg |--img_002.jpg |... |--eyestac...
// Script to the calendar drop-down function $(document).ready(function () { $("#form-deadline").datepicker({ format: 'yyyy-mm-dd' }); $(".date-edit").datepicker({ format: 'yyyy-mm-dd' }); $('#form-deadline').change(function () { }); $('.date-edit').change(function () { ...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var Commands = require('./Commands'); var SetTransform = require('../../renderer/canvas/utils/SetTransform'); /** * Renders this Gam...
// Data from http://www.usgovernmentspending.com/federal_budget_detail_2015bs22015n_303380817060653231405089_252_051_054_376 // All dollar values are nominal and expressed in billions // The line items are in the `activities` array. That's an array of objects. Each object // should have a `name` string, a `spending` n...
//noncmd script
const food = ['aaple', 'pizza','pear'] console.log(food[1])
// @inheritedComponent ButtonBase import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { fade, withStyles } from '@material-ui/core/styles'; import ButtonBase from '@material-ui/core/ButtonBase'; import { capitalize } from '@material-ui/core/utils'; export const styles =...
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), copy: { includes: { src: '_includes/head.raw.html', dest: '_includes/head.html' } }, less: { ...
import { TestBed } from '@angular/core/testing'; import { CurrencyService } from './currency.service'; describe('CurrencyService', function () { beforeEach(function () { return TestBed.configureTestingModule({}); }); it('should be created', function () { var service = TestBed.get(CurrencyService); ...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import ClickOutside from './components/ClickOutside'; import Content from './components/Content'; import Dropdown from './components/Dropdown'; import Loading from './co...
(window.webpackJsonp=window.webpackJsonp||[]).push([[422],{3960:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return i}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&...
# Modify this file as needed from imblearn.over_sampling import RandomOverSampler from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor, GradientBoostingRegressor, GradientBoostingClassifier, AdaBoostClassifier, AdaBoostRegressor from sklearn.linear_model import LinearRegression, ElasticNet from s...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
'use strict'; var async = require('async'); var audit = require('nsp/lib/auditPackage'); var join = require('path').join; module.exports = { name: 'audit', description: 'Audit npm packages across repos', example: 'bosco audit -r <repoPattern>', cmd: cmd }; function cmd(bosco, args, next) { var re...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Checks if the two values are within the given `tolerance` of each other. * * @function Phaser.Math.Within * ...
/** * Created by Moment on 2016/10/30. */ import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const state = { count: 0 } const mutations = { INCREMENT(state) { state.count++ } } const actions = { incrementAsync({commit}) { setTimeout(() => { commit('INCREMENT')...
import api from "../api"; import axios from "axios"; import { GET_ALL_PATIENTS, GET_WOUNDS_FOR_SELECTED_PATIENT, CLEAR_WOUNDS_LIST, RESOLVE_WOUND, LOADING } from "./types"; // Get all patients export const getAllPatients = () => dispatch => { dispatch(setLoading()); api .getListOfPatientsAPI() .t...
# comment out N00,N01,Nt assignments in run_rom.py # replace with N00 += a, N01 += b, Nt += c combs = [(-1,-1,0),(-1,-1,-1),(-1,-1,-2),(-1,-1,-3),\ (-2,-1,0),(-2,-1,-1),(-2,-1,-2),(-2,-1,-3),\ (-2,-2,0),(-2,-2,-1),(-2,-2,-2),(-2,-2,-3),\ (-2,-3,0),(-2,-3,-1),(-2,-3,-2),(-2,-3,-3),\ ...
import React from 'react'; import {Slider} from 'baseui/slider'; import {styled} from 'baseui'; const TickBar = styled('div', ({$theme}) => ({ display: 'flex', justifyContent: 'space-between', alignItems: 'center', paddingRight: $theme.sizing.scale600, paddingLeft: $theme.sizing.scale600, paddingBottom: $t...
/** * @file MixPagePuller.js * @description 统一管理页面的上拉、下拉事件框架 */ import wepy from 'wepy'; export default class MixPagePuller extends wepy.mixin { data = { }; onLoad() { console.log(`${this.$name} loaded.`); } };
jQuery.noConflict(); (function($) { $(document).ready(function() { $('li.menu-parent').click(function(event) { if ($(window).width() < 1200) { console.log($(window).width()) if (!$(this).hasClass('open')) { //open //close others ...
import React, { Component } from "react"; import "./Header.css"; import { Fade } from "react-reveal"; import { NavLink, Link } from "react-router-dom"; import { greeting, settings } from "../../portfolio.js"; import SeoHeader from "../seoHeader/SeoHeader"; const onMouseEnter = (event, color) => { const el = event.ta...
import bookshelf from '../db'; import Todo from './todo'; /** * User model. */ let User = bookshelf.Model.extend({ tableName: 'users', hasTimestamps: true, todos: () => { return this.hasMany(Todo); } }); export default User;
const chalk = require('chalk'); const path = require('path'); const fs = require('fs-extra'); const inquirer = require('inquirer'); const emoji = require('node-emoji'); const { spawnSync, spawn } = require('child_process'); const frameworkConfigMapping = require('./framework-config-mapping'); const args = require('yarg...
import React from "react"; import { TransitionGroup, CSSTransition } from "react-transition-group"; import PropTypes from "prop-types"; import Loader from "react-loader"; import styles from "./ContactList.module.css"; import slideTransition from "../../transitions/slideContact.module.css"; import ContactListEl from "./...
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/qui-avatar-cell/qui-avatar-cell"],{"41f4":function(t,e,n){"use strict";n.r(e);var a=n("9252"),u=n("ce29");for(var r in u)"default"!==r&&function(t){n.d(e,t,(function(){return u[t]}))}(r);n("ab8d");var i,o=n("f0c5"),l=Object(o["a"])(u["default"],a["b...
import React from 'react'; import './style.css' function Footer() { return ( <> <footer className="footer"> <div className="container text-center"> <a href="https://www.linkedin.com/in/mariahelblingprofile/" target="blank"><i className="fab fa-linkedin"></i></a> <a hr...
const path = require(`path`) const { createFilePath } = require(`gatsby-source-filesystem`) exports.onCreateNode = ({ node, getNode, actions }) => { const { createNodeField } = actions if (node.internal.type === `MarkdownRemark`) { const slug = createFilePath({ node, getNode, basePath: `markdown` }) ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const lisk_framework_1 = require("lisk-framework"); const lisk_utils_1 = require("@liskhq/lisk-utils"); const express = require("express"); const cors = require("cors"); const rateLimit = require("express-rate-limit"); const controllers = requ...
import json import os import re from loader.Database import DBManager, DBTableMetadata MOTION_FIELDS = { 'name': DBTableMetadata.TEXT+DBTableMetadata.PK, 'state': DBTableMetadata.TEXT, 'ref': DBTableMetadata.INT, 'startTime': DBTableMetadata.REAL, 'stopTime': DBTableMetadata.REA...
const allVersions = require('./all-versions') const versionSatisfiesRange = require('./version-satisfies-range') // return an array of versions that an article's product versions encompasses function getApplicableVersions (frontmatterVersions, filepath) { if (typeof frontmatterVersions === 'undefined') { throw n...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ DETR model and criterion classes. """ import torch import torch.nn.functional as F from torch import nn from util import box_ops from util.misc import (NestedTensor, nested_tensor_from_tensor_list, accuracy, get_world_siz...
var React = require('react'); var warning = require('react/lib/warning'); var invariant = require('react/lib/invariant'); var ExecutionEnvironment = require('react/lib/ExecutionEnvironment'); var mergeProperties = require('../helpers/mergeProperties'); var goBack = require('../helpers/goBack'); var replaceWith = requir...
/* Copyright (c) 2017 Intel 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 applicable law or agreed to in ...
'use strict' const _isFinite = require('lodash/isFinite') module.exports = (btState = {}, ts) => { const { from } = btState return _isFinite(ts) && _isFinite(from) && ts < from }
const mongoose = require("mongoose"); const PageSchema = require("./page.schema.server"); let PageModel = mongoose.model("PageModel", PageSchema); PageModel.createPage = createPage; PageModel.findAllPagesForWebsite = findAllPagesForWebsite; PageModel.findPageById = findPageById; PageModel.updatePage = updatePage; Page...
// @flow import { expect } from 'chai'; import getDroppableOver from '../../../src/state/get-droppable-over'; import getDimension from '../../utils/get-dimension-util'; import type { Dimension, DimensionMap, DroppableId, Position } from '../../../src/types'; const droppable1: Dimension = getDimension({ top: 0, lef...
budget = float(input()) flour_price = float(input()) eggs_price = flour_price * 0.75 milk_liter_price = flour_price + (flour_price * 0.25) colored_eggs_count = 0 bread_count = 0 price_for_one_bread = eggs_price + flour_price + (milk_liter_price / 4) while True: if price_for_one_bread > budget: break br...
# Copyright 2012 IBM Corp. # # 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 agree...
//header is wider with keep what is there and add date and time to it document.getElementById("currentDay").innerText = moment().format('MMMM Do YYYY, h:mm:ss a'); console.log(moment().format('MMMM Do YYYY, h:mm:ss a')); //line blocks under header and spaced on center //On top is the date and then each block has a tim...
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./library','sap/ui/core/Control','sap/ui/core/PopupSupport'],function(q,a,C,P){"use str...
import React from 'react'; function RvizComponent(props) { return ( <div> <img style={{width:"320px",height:"240px"}} src={props.src}/> </div> ); } export default RvizComponent;
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/enums/hotel_date_selection_type.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impo...
// A way of safely requiring nodejs stuff in the render process // rather than opening up safety problems with contextIsolation: true // We can keep contextIsolation: false in src/index.js and still get access here. // See https://stackoverflow.com/questions/54544519/electron-require-is-not-defined window.ipcRenderer =...
'use strict' const have = require('have2').with({ uuid: require('moysklad-type-matchers/types/uuid'), href: require('moysklad-type-matchers/types/href'), ref: require('moysklad-type-matchers/types/ref') }) module.exports = function getAttr (...args) { let { entity, attrId, href, ref } = have.strict(args, [ ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/posts.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************...
# Copyright 2020 Huawei Technologies Co., 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...
from decimal import Decimal from unittest import TestCase from hummingbot.connector.exchange.liquid.liquid_in_flight_order import LiquidInFlightOrder from hummingbot.core.event.events import OrderType, TradeType class LiquidInFlightOrderTests(TestCase): def setUp(self): super().setUp() self.base...
import pytest from fixture.application import Application import jsonpickle import os.path import importlib import json from fixture.db import DbFixture fixture = None target = None def load_config(file): global target if target is None: config_file = os.path.join(os.path.dirname(os.path.abspath(__f...
function AddressBook() { this.contacts = []; this.initialComplete = false; } //编写getInitialContacts函数并使其带有异步特征 AddressBook.prototype.getInitialContacts = function(cb) { var self =this; //使用setTimeout来做使其带有异步特征 setTimeout(function() { //这是函数运行结束后要做的事情 self.initialComplete = true; if(cb) { retur...
import path from 'path' import ExtractCssChunksPlugin from 'extract-css-chunks-webpack-plugin' import { wrapArray } from '@nuxt/utils' import PostcssConfig from './postcss' export default class StyleLoader { constructor(options, nuxt, { isServer, perfLoader }) { this.isServer = isServer this.perfLoader = p...
# Micropython code example for Digi International Xbee3 # 802.15.4 module interface to TE Weather Shield MS8607 # digital barometric pressure and humidity sensor over I2C # from micropython import const import utime import ustruct import machine # list of commands in hex for MS8607 pressure sensor c_re...
import time import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from . import utils def build_targets( pred_corners, target, num_keypoints, num_anchors, num_classes, nH, nW, noobject_scale, object_scale, sil_thresh, seen, ): nB = ta...
import _ from 'underscore'; import lodashOrderBy from 'lodash/orderBy'; import moment from 'moment'; import CONST from '../CONST'; import * as User from './actions/User'; /** * Get the unicode code of an emoji in base 16. * @param {String} input * @returns {String} */ function getEmojiUnicode(input) { if (inpu...
var group__group__scb__spi__macros__rx__fifo__status = [ [ "CY_SCB_SPI_RX_TRIGGER", "group__group__scb__spi__macros__rx__fifo__status.html#gaaa87359ee2a7bd8e448ba5417558e8bf", null ], [ "CY_SCB_SPI_RX_NOT_EMPTY", "group__group__scb__spi__macros__rx__fifo__status.html#ga635fed2d6204ec644ad4ce4c8122350c", null ],...
function accountController($scope) { console.log('accountCtrl'); const vm = $scope; console.log('vmCurrentUser: ', vm.currentUser); } angular.module('fullStackTemplate').controller('accountController', accountController);
import Mail from '../../lib/Mail'; import { format, parseISO } from 'date-fns'; import pt from 'date-fns/locale/pt'; class CancellationMail { get key() { return 'CancellationMail'; } async handle({ data }) { const { appointment } = data; console.log('a fila executou') await...
'use strict'; var Js_dict = require("bs-platform/lib/js/js_dict.js"); var Js_json = require("bs-platform/lib/js/js_json.js"); var Belt_Option = require("bs-platform/lib/js/belt_Option.js"); var SecurityLevel = { }; var Accessible = { }; var AccessControl = { }; var AuthenticationType = { }; var BiometryType = { }...
export default class bookmarkStart extends require('../model'){ parse(){ super.parse(...arguments) this.wDoc.parseContext.bookmark[this.wXml.attr('w:id')]=this.wXml.attr('w:name') } getName(){ return this.wXml.attr('w:name') } static get type(){return 'bookmarkStart'} }
'use strict'; const qs = require('querystring'); const crypto = require('crypto'); const { $read } = require('@alicloud/http-core-sdk'); const uuid = require('uuid/v4'); class StsBase { constructor(config) { if (!config) { throw new Error('config must be passed in'); } const endpoint = config.end...
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
var interpolate = require('util').format, condense = require('./condenser') module.exports = function (file, dir, content, callback) { condense(dir, file, content, function (e, condense) { if(e) throw e var types = {} var tags = [] parse(content, condense, tags, types) tags = tags.sort(f...
""" Helper class for total jacobian computation. """ from collections import OrderedDict, defaultdict from copy import deepcopy import pprint import sys import time import traceback import numpy as np try: from petsc4py import PETSc from openmdao.vectors.petsc_vector import PETScVector except ImportError: ...
// YAML - Core - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed) /** * Version triplet. */ exports.version = '0.2.2' // --- Helpers /** * Return 'near "context"' where context * is replaced by a chunk of _str_. * * @param {string} str * @return {string} * @api public */ function context(str...
var User = require('./user.model.js'); module.exports = function(app){ const route = '/api/user'; // Sign In app.get(route, function(req, res) { var user = req.query; if(!user.email || !user.password) { res.status(500).send('Need email and password.'); return; } // Query database to check for u...
from flask import Flask from flask_bootstrap import Bootstrap app = Flask(__name__) Bootstrap(app) import web.page __all__ = "app"
# Copyright (c) 2012-2019, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** # Resource specification version: 10.2.0 from . import AWSObject from . import AWSProperty from .validators import boolean from .validators import i...
'use strict'; angular.module('characterDetail',['ngRoute','core.characters']);
import React from "react"; import { useParams } from "react-router-dom"; import ReplyList from "../components/ReplyList"; import ReplyForm from "../components/ReplyForm"; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/core/Paper"; import Auth from "../utils/auth"; import { useQuery } from ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.debounceCollect = debounceCollect; var _rxjs = require("rxjs"); function debounceCollect(fn, wait) { var timer; var queue = {}; var idx = 0; return function debounced() { for (var _len = arguments.length, args = new Ar...
import logging import yaml from ceph.utils import get_ceph_versions, get_public_network from utility.utils import get_latest_container_image_tag log = logging.getLogger(__name__) def run(ceph_cluster, **kw): log.info("Running test") ceph_nodes = kw.get("ceph_nodes") log.info("Running ceph ansible test"...
(function () { 'use strict'; /** * @ngdoc service * @name umbraco.services.umbDataFormatter * @description A helper object used to format/transform JSON Umbraco data, mostly used for persisting data to the server **/ function umbDataFormatter() { /** * maps the display pro...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ setup.py ~~~~~~~~ no description available :license: see LICENSE for more details. """ import codecs import os import re from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): """Taken from pypa pip se...
import React from "react"; import Layout from "../components/layout"; import SEO from "../components/seo"; // import dogIllustration from "../images/dog-illustration.svg"; function AboutPage() { return ( <Layout> <SEO keywords={[`gatsby`, `tailwind`, `react`, `tailwindcss`]} title='About' /> <sec...
if (process.env.IMAGE_TRANSFORMER_ENABLED) { const findEyes = require('../helpers/findEyes') const { flareEyes } = require('../helpers/flareEyes') const { sunGlasses: sunglasses, eyeBlock: eyeblock, addHat: addhat, addStupidHat: addstupidhat, addBand: addband } = require('../helpers/sunGlasses...