text
stringlengths
3
1.05M
import re def food(api, date): if not api.is_current_week(date): return [] if not api.is_today(date): raise NotImplementedError("Tranquilo currently only supports menus for today") if not api.soup: return [] response = api.requests.get('https://tranquilo.se') soup = api.sou...
import React from 'react'; import { TypeChooser } from 'react-stockcharts/lib/helper'; import { ContentSection } from 'lib/ContentSection'; import { Row } from 'lib/Row'; import { Section } from 'lib/Section'; import { CandleStickChartWithClickHandlerCallback } from 'lib/charts/CandleStickChartWithClickHandlerCallba...
from math import pi from bokeh.plotting import figure, show, output_file output_file('ovals.html') p = figure(width=400, height=400) p.oval(x=[1, 2, 3], y=[1, 2, 3], width=0.2, height=40, color="#CAB2D6", angle=pi/3, height_units="screen") show(p)
exports.artifacts = require('./artifacts.js'); exports.bitbucket = require('./bitbucket.js'); exports.cloudfoundry = require('./cloudfoundry.js'); exports.github = require('./github.js'); exports.pipelines = require('./pipelines.js'); exports.watchdog = require('./watchdog.js');
/***************************************************************************** * FILE: app_base.js * DATE: 6 September 2014 * AUTHOR: Nathan Swain * COPYRIGHT: (c) Brigham Young University 2014 * LICENSE: BSD 2-Clause *****************************************************************************/ /...
define({ "_widgetLabel": "Geoduomenų apdorojimas", "_featureAction_ReceiveFeatureSet": "Nustatyti įvestį ", "requiredInfo": "būtina.", "drawnOnMap": "Rezultatas nupieštas žemėlapyje.", "noToolConfig": "Iš anksto sukonfigūruotos geoduomenų apdorojimo užduoties nėra.", "useUrlForGPInput": "URL", "useUploadF...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../../../../../native_client/build/common.gypi', ], 'targets': [ { 'target_name': 'ppruntime_lib', 'type': 'no...
import asyncio import pickle import threading from abc import ABC, abstractmethod from multiprocessing.synchronize import Event from typing import Optional class Broker(ABC): """ An abtract Broker interface used to define custom functionality. Every Broker class must inherit from this interface and overri...
(self.webpackChunkoh_my_scripts=self.webpackChunkoh_my_scripts||[]).push([[270],{8008:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,l=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=l.next()).done;)o.push(n.value)}catch(e){...
module.exports = function(router, passport) { router.post('/register', passport.authenticate('local-signup'), function(req, res) { res.status(200).json({ user: req.user.email }); }); router.post('/login', passport.authenticate('local-login'), function(re...
from frowns.MDL import mdlin from frowns.Utils import SaturatedRings from frowns.perception import RingDetection, BasicAromaticity, sssr #transforms = [RingDetection.sssr, BasicAromaticity.aromatize] file = open("data/really_bad_saturation.mol") reader = mdlin(file) m = reader.next() print len(m.cycles) #file = open(...
function restoreRow ( oTable, nRow ) { var aData = oTable.fnGetData(nRow); var jqTds = $('>td', nRow); for ( var i=0, iLen=jqTds.length ; i<iLen ; i++ ) { oTable.fnUpdate( aData[i], nRow, i, false ); } oTable.fnDraw(); } function editRow ( oTable, nRow ) { var aData = oTable.fnGetData(nRow); va...
import numpy as np from mrcnn import model as modellib, utils from mrcnn import visualize from mrcnn.model import log import matplotlib.pyplot as plt import scipy.ndimage as ndimage import skimage, skimage.color from .image_tools import * from .metrics import * from vis.losses import ActivationMaximization from vis.opt...
// core function function Bubbles(container, self, options) { // options options = typeof options !== "undefined" ? options : {}; animationTime = options.animationTime || 200; // how long it takes to animate chat bubble, also set in CSS typeSpeed = options.typeSpeed || 5; // delay per character, to simu...
# -*- coding: utf-8 -*- # # Copyright (c) 2021, Ingram Micro # All rights reserved. # from reports.nce_promos.entrypoint import generate, HEADERS TIER_RQL_TA_2 = 'and(eq(product.id,PRD-814-505-018),eq(account.id,TA-2))' TIER_RQL_TA_1 = 'and(eq(product.id,PRD-814-505-018),eq(account.id,TA-1))' AFTER_DATE = '2021-12-01...
# Copyright 2017 Google 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 by applicable law or ag...
'use strict' export default function (err, state) { throw err }
/* global QUnit */ sap.ui.define([ "sap/ui/fl/Utils", "sap/ui/fl/registry/ChangeRegistry", "sap/ui/rta/command/CommandFactory", "sap/ui/rta/command/FlexCommand", "sap/ui/dt/DesignTime", "sap/ui/dt/ElementDesignTimeMetadata", "sap/ui/dt/OverlayRegistry", "sap/ui/dt/ElementOverlay", "sap/ui/model/json/JSONModel...
# Copyright 2019 Atalaya Tech, 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 or agreed to in writing, ...
import React from 'react'; import { waitFor } from '@testing-library/react'; import '@folio/stripes-erm-components/test/jest/__mock__'; import { renderWithIntl, TestForm } from '@folio/stripes-erm-components/test/jest/helpers'; import { Field } from 'react-final-form'; import { KeyValue } from '@folio/stripes-testing';...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ // This icon file is generated by build/generate.ts // tslint:disable /** @type {?} */ export const GooglePlusSquareFill = { name: 'google-plus-square', ...
// flow-typed signature: 1ef367da1bb1b9d6ec1962296ee3afc0 // flow-typed version: 2f1ddf67d5/lodash_v4.x.x/flow_>=v0.104.x declare module "lodash" { declare type Path = $ReadOnlyArray<string | number> | string | number; declare type __CurriedFunction1<A, R, AA: A> = (...r: [AA]) => R; declare type CurriedFunction...
/* * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ /* * This version of the DomAdapter is for use on non-browser platforms, where there are no * nativeElement...
# -*- coding: utf-8 -*- # Copyright (c) 2021, Gopi and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestProductModuleInfo(unittest.TestCase): pass
import React, { Component } from 'react'; export default class NotFoundPage extends Component { render() { return ( <div> <h1>404 - Page Not Found</h1> </div> ); } }
require("source-map-support").install(); exports.id = "index"; exports.modules = { /***/ "../client/src/modules/products/containers/Vendor.jsx": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var babel_runtime_helpers_...
import { hot } from 'react-hot-loader/root'; import React, { useState } from 'react'; import { ThemeProvider } from 'styled-components'; import AppRouter from '@routes/Router'; import { Checkbox, Drawer, BurgerButton, Reboot, Typography, Link, Navigation, } from '@components'; import { LightTheme, DarkThe...
def egcd(m,n): #Assume m>n if n>m: (m,n)=(n,m) if m%n==0: return str(n) else: diff=m-n return(egcd(max(n,diff),min(n,diff))) print(egcd(int(input('Number 1\n')),int(input('Number 2\n'))))
""" the module for Kagamiz Contest System (https://kcs.miz-miz.biz/) """ import json import urllib.parse from logging import getLogger from typing import * import bs4 import requests import onlinejudge._implementation.utils as utils import onlinejudge.type from onlinejudge.type import * logger = getLogger(__name__)...
# Copyright 2019 Patrick Kidger. 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 applicable law o...
// @flow import AsyncStorage from '@react-native-community/async-storage' import { asObject, asString } from 'cleaners' import { createInputModal } from 'edge-components' import { type EdgeAccount } from 'edge-core-js/types' import * as React from 'react' import { FlatList, Image, Platform, TouchableOpacity, View } fr...
/* eslint-disable no-console */ import { register } from "register-service-worker"; if (process.env.NODE_ENV === "production") { register(`${process.env.BASE_URL}service-worker.js`, { ready() { // console.log("App is being served from cache by a service worker."); }, registered...
define([ 'templates/error.html' ], function(error) { function make(id, skin, title, body) { return error({ id: id, skin: skin, title: title, body: body }); } return make; });
//*******************************************************************************************// // // // Download Free Evaluation Version From: https://bytescout.com/download/web-installer // // ...
""" Unit and regression tests for geometric.errors module """ import pytest import os, shutil import geometric from geometric.errors import EngineError, GeomOptNotConvergedError, LinearTorsionError from geometric.errors import Psi4EngineError, QChemEngineError, TeraChemEngineError, ConicalIntersectionEngineError, \ ...
import React, { useState, useRef, useEffect} from "react"; import Form from "./components/Form"; import FilterButton from "./components/FilterButton"; import Todo from "./components/Todo"; import Grid from "@material-ui/core/Grid"; import List from "@material-ui/core/List"; import { useTodos } from "./components/store...
/* * Aviation Weather Module for MagicMirror2 (MMM-aviationwx) * - Displays weather from METAR reports and FAA delay information where available * - U.S. airports only * * METAR Code Quick Reference: * http://chesapeakesportpilot.com/wp-content/uploads/2015/03/military_wx_codes.pdf * * Copyright 2017 Stuart Lo...
import { resolve } from "path"; import webpack from "webpack"; // import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer"; import merge from "webpack-merge" const ROOT = __dirname const BASE_CONFIG = { mode: "production", entry: { // jsonx: resolve(ROOT, "src/index.ts"), jsonx: resolve(ROOT, "lib/esm/ind...
/* generated from Designfiles Public by generate_data_designfles */ require ('wh.compat.base'); /*! LOAD: wh.compat.base !*/ // Experimental, ask Mark (function($) { if(!window.$wh) window.$wh={}; // for debugging/$wh.drawTextualContentBounds var __dbgoverlays = []; /** @short textual content bounds using Boundin...
import React, { Component } from "react"; import Expo from "expo"; //import { View } from "react-native"; import {Container,Item,Input,Header,Body,Content, Title,Button, Text} from "native-base"; //import { Field, reduxForm } from "redux-form"; import { Field, reduxForm } from 'redux-form/immutable' import DateInput f...
var callbackArguments = []; var argument1 = function callback(a,b,c) { callbackArguments.push(JSON.stringify(arguments)) argument2[1] = [0,969,49,969] base_0[6] = 122 return a+b-c }; var argument2 = false; var argument3 = {"":"","s?":"3","e":2.8579119300878533e+307}; var argument4 = function callback(a,b,c) { c...
/** @license React v16.5.0 * react-dom-server.node.development.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (funct...
// Copyright (C) 2017 Valerie Young. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-scripts-static-semantics-early-errors description: Early error when referencing privatename that has not been declared in class. info: | Static Semantics: Early Errors Scr...
const cheerio = require('cheerio'); const expect = require('chai').expect; const prettyPrint = require('marko-prettyprint').prettyPrintAST; const markoCompiler = require('marko/compiler'); let CompileContext; let Builder; try { // v3 paths CompileContext = require('marko/compiler/CompileContext'); Builder ...
'use strict'; angular.module('diseaseOntology.diseaseView', ['ngRoute', 'ngSanitize']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/post/:postId', { templateUrl: 'posts/view/post_view.html', controller: 'diseaseViewCtrl' }); }]) .controller('diseaseViewCtrl', ['$rootScope',...
import React from 'react' import { shallow } from 'enzyme' import StHorizontalTabs from './StHorizontalTabs' describe('<StHorizontalTabs />', () => { it('renders without crashing', () => { shallow(<StHorizontalTabs />) }) })
var data = { "body": "<path d=\"M23 4.27l-2 2V19a2 2 0 0 1-2 2H6.27l-2 2L3 21.72L21.72 3L23 4.27M5 3h14.18l-2 2h-1.4c-.11 1-.95 1.79-1.98 1.79h-2v2c0 .56-.45 1-1 1h-2v2h1.58l-1.83 1.83L5 10.29v6.89l-2 2V5c0-1.11.89-2 2-2m6.8 16v-1.21c-.63 0-1.2-.29-1.57-.75L8.27 19h3.53m4-6.21v3h1c.89 0 1.94.59 2.2 1.39V8.27l-3.67 3.6...
import { createGlobalStyle } from 'styled-components'; const GlobalStyle = createGlobalStyle` html, body { height: 100%; width: 100%; } body { font-family: 'GT Walsheim Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple...
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from collections import Counter from datetime import timedelta fr...
angular.module('commServices', []).factory('comm', commFnc); commFnc.$inject = ['$http', '$q']; function commFnc($http, $q) { var comm = { loadImages: loadImages, loadAllImages: loadAllImages, uploadImage: uploadImage, loadPres: loadPres, savePres: savePres, ...
const expect = require("chai").expect; const abiDecoder = require("../index.js"); // Test Params const testABI = [{"inputs": [{"type": "address", "name": ""}], "constant": true, "name": "isInstantiation", "payable": false, "outputs": [{"type": "bool", "name": ""}], "type": "function"}, {"inputs": [{"type": "address[]"...
__author__ = 'chira' # Create a list. elements = [] # Append empty lists in first three indexes. elements.append([]) elements.append([]) elements.append([]) # Add elements to empty lists. elements[0].append(1) elements[0].append(2) elements[1].append(3) elements[1].append(4) elements[1].append(5) ...
/* * Yang Shuai Copyright (c) 2021 https://yangbuyi.top. */ module.exports = { root: true, parserOptions: { parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, node: true, es6: true, }, extends: ['plugin:vue/recommended', 'eslint:recommended'], // add your custom...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.3-master-4413f14 */ !function(e,r,o){"use strict";!function(){function e(e,o,n){function a(e,r){try{r&&e.css(u(r))}catch(o){n.error(o.message)}}function s(e){var r=c(e);return i(r)}function i(r,n){n=n||!1;var t=e.PALETTES[r.p...
const diwali = require('celeb-diwali'); console.log(diwali.getRandomWish()); console.log(diwali.sendRandomWish("Shreya")); console.log(diwali.sendDiwaliWish("Shreya","Vinit"));
import cv2 import os import random import time import torch import torch.backends.cudnn as cudnn import models from utils.logger import Logger import myexman from utils import utils import sys import torch.multiprocessing as mp import torch.distributed as dist import socket from torchvision import transforms,datasets f...
# -*- coding: utf-8 -*- from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class ActionConfig(AppConfig): name = 'action' verbose_name = _('Actions, Conditions, Filters, Emails')
// @ts-check // Module ui/about-respec // A simple about dialog with pointer to the help import { getIntlData } from "../core/utils.js"; import { html } from "../core/import-maps.js"; import { ui } from "../core/ui.js"; const localizationStrings = { en: { about_respec: "About", }, zh: { about_respec: "关于...
import React, { memo } from 'react'; import Link from 'next/link'; import { TabView, TabPanel } from '../../lib/tabview/TabView'; import { useLiveEditorTabs } from '../common/liveeditor'; import { CodeHighlight } from '../common/codehighlight'; const ProgressSpinnerDoc = memo(() => { const sources = { ...
import { test } from "uvu"; // eslint-disable-next-line no-unused-vars import { equal, is, ok, throws, type, not, match } from "uvu/assert"; import { compare } from "../../../ops/helpers/shallow-compare.js"; import { tokenizer as ct } from "../dist/codsen-tokenizer.esm.js"; test.only("01", () => { let gathered = []...
const cacheKey = 'v1'; self.addEventListener('install', event => { event.waitUntil( fetch('/') .then(response => { caches.open(cacheKey) .then(cache => { cache.put('/', response); self.skipWaiting(); }); }) ); }); self.addEventListener('activate',...
module.exports={D:{"4":0,"5":0,"6":0.007828,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0.023484,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0.101764,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0.023484,"41":0,"42":0,"43":0...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_serving/apis/prediction_log.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
import React from 'react'; import { Card } from '@material-ui/core'; import styled from 'styled-components'; import {GraphPage} from '../Graph' const StyledCard = styled(Card)` width: 90%; /* height: 27.5vh; */ display: flex; flex-direction:column; justify-content:ce margin: 10% 0 0 10%; `; const ImageBox ...
/// Copyright (c) 2009 Microsoft Corporation /// /// Redistribution and use in source and binary forms, with or without modification, are permitted provided /// that the following conditions are met: /// * Redistributions of source code must retain the above copyright notice, this list of conditions and /// ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './EmptyList.module.scss'; import emptyIcon from '../../../assets/images/ico-empty.svg'; import Button from '../../atoms/Button/Button'; class EmptyList extends Component { static propTypes = { autogenerateFn: Pro...
!function(L){"use strict";var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},t=function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r=function(e,t...
/** * Universal module definition */ (function (root, factory) { if (typeof exports === 'object') { factory(exports); // Commonjs } else if (typeof define === 'function' && define.amd) { define(['exports'], factory); // AMD } else { root.pithy = {}; factory(root.p...
/** * hilojs 2.0.2 for commonjs * Copyright 2016 alibaba.com * Licensed under the MIT License */ var Hilo = require('../core/Hilo'); var Class = require('../core/Class'); var View = require('./View'); var Drawable = require('./Drawable'); /** * @language=en * <iframe src='../../../examples/Bitmap.html?noHeader...
import asyncio import json import traceback from datetime import datetime, timedelta from nonebot import require from nonebot.adapters.cqhttp import Bot from nonebot.log import logger from ..bilibili.activity import ActivityList, H5Activity, activity_list from ..common import CONF, get_bot, send_exception_to_su from ...
/*! * B-JUI v1.2 (http://b-jui.com) * Git@OSC (http://git.oschina.net/xknaan/B-JUI) * Copyright 2014 K'naan (xknaan@163.com). * Licensed under Apache (http://www.apache.org/licenses/LICENSE-2.0) */ /* ======================================================================== * B-JUI: bjui-slidebar.js v1....
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'colordialog', 'et', { clear: 'Eemalda', highlight: 'Näidis', options: 'Värvi valikud', selected: 'Valitud värv', ti...
"""Better update handling Revision ID: 7783c1dc58f7 Revises: 9518199afc55 Create Date: 2019-10-15 20:53:42.038406 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '7783c1dc58f7' down_revision = '9518199afc55' branch_labe...
import React, {Component} from 'react'; import Banner from './Banner'; import Info from './Info'; import styled from 'styled-components'; import {Container} from './styles/header.sc'; export default class Header extends Component { render() { return ( <Container> <Banner /> ...
var links2 = [{"source": 0, "target": 28}, {"source": 1, "target": 29}, {"source": 1, "target": 30}, {"source": 2, "target": 31}, {"source": 2, "target": 32}, {"source": 4, "target": 33}, {"source": 4, "target": 34}, {"source": 4, "target": 35}, {"source": 4, "target": 36}, {"source": 4, "target": 37}, {"source": 4, "t...
# Copyright 2020 The Cirq Developers # # 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 ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Component, ElementRef, forwardRef } from '@angular/core'; import { base } from './base'; export class calendar_monthMetaData { } calendar_monthMetaData.XTYPE = 'calenda...
module.exports = new Date(1972, 1, 4)
from ai4water import Model from ai4water.datasets import busan_beach data = busan_beach() model = Model( model={'RandomForestRegressor': {}}, cross_validator={'TimeSeriesSplit': {'n_splits': 5}}, val_metric="r2" ) tssplit_score = model.cross_val_score(data=data) model = Model( model={'RandomForest...
"""Classes representing basic geometry primitives used in scenes.""" import math from .raycast_base import HitRecord _EPS = 0.0000001 class Primitive(): """Base class for geometry primitives.""" material = None #pylint: disable=no-self-use def intersect(self, _): """Checks whether given ...
import React from "react"; import { Switch, Route, Redirect } from "react-router-dom"; // creates a beautiful scrollbar import PerfectScrollbar from "perfect-scrollbar"; import "perfect-scrollbar/css/perfect-scrollbar.css"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core c...
import { connect } from 'react-redux'; import { fetchGenres, fetchAllMovies } from '../ducks/movies'; import App from './App'; const mapStateToProps = (state) => ({ isLoading: state.ui.isLoading }); const mapDispatchToProps = (dispatch) => ({ onLoad: () => { dispatch(fetchGenres()); return dispatch(fetchAllMovi...
#!/usr/bin/env python from distutils.core import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.txt'), encoding='utf-8') as f: long_description = f.read() classifiers=[ # Pick your license as you wish (should match "license" ...
'use strict'; const url = require('url'); const httpCodes = require('./http_codes'); /*! * Simplifies HTTP response codes and headers. Exposed as $Rest.respond below. * * @param {Object} ravelInstance - A `ravel instance`. * @param {Object} request - Koa.js request. * @param {Object} response - Koa.js response. ...
from rest_framework import routers from . import views class TenancyRootView(routers.APIRootView): """ Tenancy API root view """ def get_view_name(self): return 'Tenancy' router = routers.DefaultRouter() router.APIRootView = TenancyRootView # Field choices router.register('_choices', views...
const { spawnAsync } = require('./util'); const fs = require('fs'); const pwd = process.env.PWD; console.log('pwd', pwd); spawnAsync('sh', [`./install.sh`, pwd], { stdio: 'inherit' }).catch((err) => { console.log(err); }).then(err => { process.exit(0); });
# -*- coding: utf-8 -*- ''' Setup of Python virtualenv sandboxes. .. versionadded:: 0.17.0 ''' from __future__ import absolute_import # Import Python libs import logging import os # Import Salt libs import salt.version import salt.utils import salt.utils.platform from salt.exceptions import CommandExecutionError, Co...
# Copyright 2013 Red Hat, 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 by...
import { Meteor } from 'meteor/meteor'; import { Match, check } from 'meteor/check'; import { Random } from 'meteor/random'; import _ from 'underscore'; import { Uploads } from '../../../models'; import { Rooms } from '../../../models/server/raw'; import { callbacks } from '../../../callbacks'; import { FileUpload } f...
import React, { Component } from 'react'; import shortid from 'shortid' export default class ViewOriginal extends Component { render() { return( <div > <h3>The video</h3><h3><b>{this.props.fakeLink}</b></h3><h3> was linked to the following video(s):</h3> { this.props.originalLinks != null ...
import React from "react"; import { BrowserRouter, Switch, Route } from "react-router-dom"; import { Home, Purchased, PaymentList } from "components/pages"; const NavigationProvider = () => ( <BrowserRouter> <Switch> <Route path="/purchased" exact> <Purchased /> </Route> <Route path="/l...
import React from "react" import Footer from "../components/footer" import SEO from "../components/seo" import Card from "../components/card" import Tags from "../components/tags" import { Link } from "gatsby" import Img from "gatsby-image" import { motion } from "framer-motion" export const containerIn = { hidden:...
import { configureStore } from "@reduxjs/toolkit"; import { persistStore, persistReducer, FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER, } from "redux-persist"; import storage from "redux-persist/lib/storage"; import authReducer from "./auth/auth-slice"; import summaries from "./calendar/summaries/s...
const sizeDefinitions = {}; sizeDefinitions.b = 1; sizeDefinitions.kb = 1000 * sizeDefinitions.b; sizeDefinitions.mb = 1000 * sizeDefinitions.kb; sizeDefinitions.gb = 1000 * sizeDefinitions.mb; sizeDefinitions.tb = 1000 * sizeDefinitions.gb; const bytes = { pretty(toSize) { let sizeKey; const sizes = Object....
var options = { manager: require("../../../src/managers/inventory/inventory-summary-manager"), model: require("dl-models").inventory.InventorySummary, util: require("../../data-util/inventory/inventory-summary-data-util"), validator: require("dl-models").validator.inventory.inventorySummary, createD...
define([], function() { function determineMutationObserver(window) { // This enables server side rendering if (typeof window === 'undefined') { // Stub observe function to avoid error return function() { return { observe: function() {} }; } } else { retur...
import sys import logging from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from datetime import datetime import pandas as PD def read_sm_csv(csv_fname): """ Parse the SuperMAG CSV format data record *csv_fname*. For each station, store the information in pandas :class:`DataFrame`. R...
""" ABF2 Header Reader - A pure-python ABF file reader which uses no external libraries by Scott Harden. PURPOSE: This class is not feature rich, but it aims to demonstrate how to read ABF header and data without any external libraries. This should be very easy to port to other languages. A more advanced i...
function set_client_time_zone() { var timezone = jstz.determine(); var time_zone = timezone.name(); $.ajax({ type:'POST', data:{time_zone:time_zone}, url: ajax_plugin_url+"handle_set_client_time_zone/", success: function(response) { } ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const logger = require('simple-node-logger').createSimpleLogger({ timestampFormat: 'YYYY-MM-DD HH:mm:ss.SSS', }); logger.setLevel(process.env.LOG_LEVEL || 'info'); exports.default = logger; //# sourceMappingURL=logger.js.map