text
stringlengths
3
1.05M
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'fakeobjects', 'de-ch', { anchor: 'Anker', flash: 'Flash-Animation', hiddenfield: 'Verstecktes Feld', iframe: 'IFrame', unkno...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppComponent = undefined; var _dec, _class; var _core = require('@angular/core'); var _quote = require('./quote.service'); var _randomQuote = require('./random-quote.component'); function _classCallCheck(instance, Constructor) ...
module.exports.render = render function render (data) { return { subject: `Invalid username for account ${data.accountUri}`, /** * Text version */ text: `Hi, We're sorry to inform you that the username for account ${data.accountUri} is not allowed after changes to username policy. ...
export class Matrix { constructor() { this.grid = []; } forEach(callback) { this.grid.forEach((column, x) => { column.forEach((value, y) => { callback(value, x, y); }); }); } get(x, y) { const col = this.grid[x]; if (c...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'far'; var iconName = 'hashtag'; var width = 448; var height = 512; var ligatures = []; var unicode = 'f292'; var svgPathData = 'M443.524 190.109l4.286-24c1.313-7.355-4.342-14.109-11.813-14.109h-89.045l18.909-105.89c1.313-7.355-4....
#! /usr/bin/env python3 import os from setuptools import setup, find_packages PACKAGE = 'riotctrl' LICENSE = 'MIT' URL = 'https://github.com/RIOT-OS/riotctrl' def get_version(package): """ Extract package version without importing file Importing cause issues with coverage, (modules can be removed fr...
#!/usr/bin/env python import glob import hashlib import json import os import re import signal from datetime import datetime, timedelta, timezone from threading import Lock import rospy from std_msgs.msg import Float64, String from sensor_msgs.msg import NavSatFix, BatteryState from eams_msgs.msg import State, Mission...
(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{697:function(t,s,a){"use strict";a.r(s);var n=a(5),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h3",{attrs:{id:""}},[a("a",{staticClass:"header-anchor",a...
# Copyright 2015 The TensorFlow 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 applica...
YUI({ modules: { 'visualizer-component-dropdown': { fullpath: 'components/dropdown/dropdown.js' }, 'visualizer-component-dialog': { fullpath: 'components/dialog/dialog.js' }, 'visualizer-component-spinner': { fullpath: 'components/spinner.js' }, 'visualizer-component-cale...
// [START maps_control_positioning] function initMap() { const map = new google.maps.Map(document.getElementById("map"), { zoom: 12, center: { lat: -28.643387, lng: 153.612224 }, mapTypeControl: true, mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, position:...
# Set of helper functions to manipulate the OpenAPI files that define our REST # API's specification. import os import re from typing import Any, Dict, List, Optional, Set OPENAPI_SPEC_PATH = os.path.abspath(os.path.join( os.path.dirname(__file__), '../openapi/zulip.yaml')) # A list of exceptions we allow whe...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useSwitch; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var React = _interopRequireWildcard(req...
// Copyright 2015 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. /** * @fileoverview 'settings-search-engine-entry' is a component for showing a * search engine with its name, domain and query URL. */ Polymer({ is:...
function my_function000(){ //67758335127936445372948731018792uCliRgExnPRVWGxWDIGjrsHLYafHpMeY } function my_function940(){ //53913103059382620027336839804761oEvoAxFrtIrTHeVLCoerfGMNkJTTRpsh } function my_function340(){ //05833671846960330329611437653146hYBNeEFhaObYDdJypHepaNGtHeUctmEE } function my_function390(){ /...
import { getSession } from "next-auth/client"; import mongodb from "mongodb"; import { connectToDatabase } from "../../../../util/mongodb"; import nextConnect from "next-connect"; import multer from "multer"; import fs from "fs"; import path from "path"; const fileStorage = multer.diskStorage({ destination: "images"...
/* wysihtml5 v0.3.0 https://github.com/xing/wysihtml5 Author: Christopher Blum (https://github.com/tiff) Copyright (C) 2012 XING AG Licensed under the MIT license (MIT) Rangy, a cross-browser JavaScript range and selection library https://code.google.com/p/rangy/ Copyright 2011, Tim Down Licensed under the...
var gulp = require('gulp') var sass = require('gulp-sass') var minify = require('gulp-cssmin') var rename = require('gulp-rename') var autoprefixer = require('gulp-autoprefixer') gulp.task('sass', () => { return gulp.src('./src/index.scss') .pipe(sass().on('error', sass.logError)) .pipe(autoprefixer()) ....
import{mexico} from './salarios.js' const salariosMx = mexico.map( function(persona){ return persona.salary; } ); const salariosMxSorted= salariosMx.sort( function(SalaryA,SalaryB){ return SalaryA-SalaryB; } ); function esPar(numero){ return numero%2===0; } function calcularMedianaArit...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("xgplayer")); else if(typeof define === 'function' && define.amd) define(["xgplayer"], factory); else if(typeof exports === 'object') exports["xgplayer-m4a"...
# -*- coding: utf-8 -*- import numpy as np def multi_vertical_crop(img, pieces=3): """按列对图片进行切割。首先找出目标片段所在的列,这个需要按需调整筛选条件。 然后,筛选出边界点,即cutpoints。因为边界点的下一点即是新的片段的起始点, 所以有了pieces个边界点后,就可以进行切割了。 Args: img: PIL.Image object pieces: number of pieces Returns: list of PIL.Image...
import React, {Fragment} from 'react' import ReactDOM from 'react-dom' import { NavLink, Link, BrowserRouter as Router, Route, Switch, } from 'react-router-dom' import { ApolloProvider } from 'react-apollo' import ApolloClient from 'apollo-boost' import FeedPage from './components/FeedPage' import DraftsPage...
from setuptools import setup, find_packages import os import django_slick_admin_login CLASSIFIERS = [ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language...
//// [commentsExternalModules_1.ts] /**This is on import declaration*/ import extMod = require("commentsExternalModules_0"); extMod.m1.fooExport(); var newVar = new extMod.m1.m2.c(); extMod.m4.fooExport(); var newVar2 = new extMod.m4.m2.c(); //// [commentsExternalModules_0.js] define(["require", "exports"], function(...
export const errors = { abandonedHeadElementChild: { reason: 'Unexpected metadata element after head', description: 'Unexpected element after head. Expected the element before `</head>`', url: false }, abruptClosingOfEmptyComment: { reason: 'Unexpected abruptly closed empty comment', des...
/** * @author hefuxiang@agree.com.cn * Date: 2017.04.03 */ ( /* <global> */function (undefined) { (function (factory) { "use strict"; // amd module if (typeof define === "function" && define.amd) { define(["jquery", "widget"], factory); } // global else { factory(); } }) (function ($, widge...
/* * 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 u...
/* global define */ define(['backbone', 'underscore', 'jquery', 'text!template/main.html', 'js/itemCollection', 'js/userCollection', 'js/orderCollection', 'js/itemView', 'js/userView', 'js/orderView', 'js/itemDialogView', 'js/userDialogView', 'js/orderDialogView', 'js/alertView', 'bootstrap'], fu...
const config = { apiKey: 'AIzaSyDTxZPMK9N1lqN0R-wouwi3tM_S20Sm3sw', authDomain: 'its-biryani-time.firebaseapp.com', databaseURL: 'https://its-biryani-time.firebaseio.com', projectId: 'its-biryani-time', storageBucket: 'its-biryani-time.appspot.com', messagingSenderId: '852186675899' } export default { confi...
# -*- coding: utf-8 -*- import os,copy,json from utility import * log = logger(__name__) class Map(): def __init__(self, map_dir): log.info('マップ読み込み中...') self.map_dir = map_dir self.len = 0 # [msec] self.level = None self.njs = None self.org_offset = None se...
import datetime import json import pydgraph # Create a client stub. def create_client_stub(): return pydgraph.DgraphClientStub('localhost:9080') # Create a client. def create_client(client_stub): return pydgraph.DgraphClient(client_stub) client_stub = create_client_stub() client = create_client(client_st...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withA11y } from '@storybook/addon-a11y'; import { array, boolean, number, optionsKnob as options, text, withKnobs } from '@storybook/addon-knobs'; import OCUniform from '../uniform'; import OCFile from './file'; import unif...
/** * @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, Component, ViewEncapsulation, ElementRef, Input, Optional, ContentChildren, Directive, Change...
'use strict' /** * Modules * Node * @constant */ const path = require('path') /** * Modules * External * @constant */ const appRootPath = require('app-root-path') /** * Modules * Internal * @constant */ const packageJson = require(path.join(appRootPath['path'], 'package.json')) /** * Manifest * @glo...
import React from 'react' import clsx from 'clsx'; import { useEffect, useMemo, useState } from 'react'; import { Redirect, useLocation, useParams } from 'react-router-dom'; import { observer } from 'mobx-react'; import { useStore } from '../../../stores'; import Day from './day'; import Details from './details'; impor...
import numpy as np class IActFunc: def __init__(self): pass def activate(self, x: np.array) -> np.array: raise
from PIL import Image import os img_dir = './results/market_APS/test_latest/images' save_dir = './results/market_APS/test_latest/images_crop' if not os.path.exists(save_dir): os.mkdir(save_dir) cnt = 0 for item in os.listdir(img_dir): if not item.endswith('.jpg') and not item.endswith('.png'): continue cnt = cn...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("wafer-fetch",[],t):"object"==typeof exports?exports["wafer-fetch"]=t():(e.wafer=e.wafer||{},e.wafer.wafers=e.wafer.wafers||{},e.wafer.wafers["wafer-fetch"]=t())}("undefined"!=typeof self?sel...
'use strict'; const replace = (buf, a, b) => { if (!Buffer.isBuffer(buf)) buf = Buffer(buf); const idx = buf.indexOf(a); if (idx === -1) return buf; if (!Buffer.isBuffer(b)) b = Buffer(b); const before = buf.slice(0, idx); const after = replace(buf.slice(idx + a.length), a, b); const len = idx + b.lengt...
import sys import os import time import re from PyQt5.QtCore import QThread import numpy as np def qimage_to_array(img): ''' Converts a QImage to a 3d numpy array Args: img - PyQt.QtGui.QImage Returns: arr - numpy.ndarray, shape(h, w, 4) ''' img = img.convertToFormat(4) w...
var sortRankKeys = require('./sort-rank-keys'); var async = require('async'); function pickFirstUnusedCollectiveNoun(usedDb, collectivesByRank, done) { var ranks = sortRankKeys(Object.keys(collectivesByRank)); async.detect(ranks, collectiveAtRankIsUnused, searchDone); function collectiveAtRankIsUnused(rank, che...
#!/usr/bin/python -tt # -*- coding: utf-8 -*- # (c) 2012, Afterburn <http://github.com/afterburn> # (c) 2013, Aaron Bull Schaefer <aaron@elasticdog.com> # (c) 2015, Jonathan Lestrelin <jonathan.lestrelin@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # i...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
const Schema = require('mongoose').Schema; module.exports = new Schema({ description: { type: String, required: true }, quantity: { type: Number, required: true }, unitPrice: { type: Number, required: true }, rowPrice: { type: Number, required: true }, orderId: { type: Schema.ObjectId, required: tr...
const router = require("express").Router(); const path = require("path"); router.get("/notes",(req, res) => { res.sendFile(path.join(__dirname, '../public/notes.html')); }) router.get("*",(req, res) => { res.sendFile(path.join(__dirname, '../public/index.html')); }) module.exports = router;
import { isReceivingData } from './queries' import { isReceivingMutationResult } from './mutations' import keyBy from 'lodash/keyBy' import get from 'lodash/get' import isEqual from 'lodash/isEqual' const storeDocument = (state, document) => { const type = document._type if (!type) { throw new Error('Document ...
module.exports = { reject: ['dargs', 'chalk', 'github-username'], };
// tipsy, facebook style tooltips for jquery // version 1.0.0a // (c) 2008-2010 jason frame [jason@onehackoranother.com] // released under the MIT license /* * Nuxeo WARN: This script has been patched for: * - https://jira.nuxeo.com/browse/ NXP-13855 * * Please re-apply any patch when upgrading this script. */ ...
import React from "react"; import SubMenu from "./SubMenu/SubMenu"; import {AnchorLink} from "gatsby-plugin-anchor-links"; import styled from "styled-components"; import {theme} from "../../../styles/theme"; const NavBar = ({links, className, onClick}) => { return ( <StyledNav className={className}> ...
"use strict"; var Message = require("./Message"); function ErrorMessage() { Message.call(this, 11); this.code = null; this.message = null; } ErrorMessage.prototype.stream = function (stream) { Message.prototype.stream.call(this, stream); this.code = stream.streamWord(this.code); this.messag...
import { errorLoading } from '../../../../../utils/asyncInjectors'; export default (cb) => { System.import('containers/Websites/Section/AboutUs/AboutUs1') .then(cb) .catch(errorLoading); };
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GiGolfTee = function GiGolfTee (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M256 25C163.7 25 89 99.66 89 192c0 92.3 74.7 167 167 167s167-74.7 167-167c0-92.34-74.7-167-167...
/* eslint-disable flowtype/require-valid-file-annotation */ import React, { Component } from 'react'; import Dialog, { DialogContent, DialogTitle, } from 'material-ui/Dialog'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; //import Slide from 'material-ui/transitions/Slide...
import express from "express"; import User from "../model/user.js"; import md5 from "blueimp-md5"; import {user_md5_key} from "../config.js"; import formidable from "formidable"; import config from "../config"; import path from "path"; const router = express.Router(); // const s_key = "@#@%$#WEEWWR322dssdaE3$Gs"; ro...
/* Language: Roboconf Author: Vincent Zurczak <vzurczak@linagora.com> Description: Syntax highlighting for Roboconf's DSL Website: http://roboconf.net Category: config */ function roboconf(hljs) { const IDENTIFIER = '[a-zA-Z-_][^\\n{]+\\{'; const PROPERTY = { className: 'attribute', begin: /[a-zA-Z-_]+/, ...
module.exports = api => { api.chainWebpack(webpackConfig => { // 通过 webpack-chain 修改 webpack 配置 webpackConfig.module .rule('md').test(/\.md$/).use('qing-markdown-loader').loader('qing-markdown-loader') }) }
/** * @file */ (function ($, window, document) { 'use strict'; $(document).ready(function () { var metadata = $("#edit-group-page-meta-data"); if (metadata.length) { var checkbox = metadata.find("#edit-field-manual-date-value"); var inputboxes = metadata.find("input.form-date, input.form-time...
const userModel = require('../models/userModel'); const responseModel = require('../models/responseModel'); const authModel = require('../models/authenticationModel'); const pairingModel = require('../models/pairingModel'); const rx = require ('rxjs'); require('rxjs/add/observable/of'); exports.addUser = async functio...
import { Router } from 'express'; import * as DatabaseController from '../controllers/database.controller'; const router = new Router(); // Get all collections router.route('/database/collections').get(DatabaseController.getCollections); //export default router; module.exports = router;
from requests import get from selectorlib import Extractor def _pishop(pishop_url): extractor = Extractor.from_yaml_string(""" name: css: h1.productView-title xpath: null type: Text price: css: 'div.productView-price span.price' xpath: null type: Text """...
import logging import pytest from ocs_ci.framework.testlib import ( MCGTest, on_prem_platform_required, skipif_ocs_version, tier1, tier2, tier3, tier4, tier4a, ) from ocs_ci.ocs.bucket_utils import sync_object_directory, verify_s3_object_integrity from ocs_ci.framework.pytest_customizat...
import os from . import makeprefs, dummyarchive from testtools import TestCase from testtools.matchers import Contains from mock import Mock, patch from StringIO import StringIO class FetchCommandTest(TestCase): def setUp(self): super(FetchCommandTest, self).setUp() self.prefs = makeprefs() ...
const express = require('express') const router = express.Router() // Add your routes here - above the module.exports line router.post("/juggling-balls-answer", function(req,res){ var jugglingBalls = req.session.data['juggling-balls'] if (jugglingBalls == "3 or more"){ res.redirect("/juggling-tricks") } e...
let ene; function preload() { ene = createVideo(['./NRender_A.mp4']); } function setup(){ createCanvas(1080, 1080); ene.play(); ene.loop(); ene.volume(0); ene.hide(); } function draw() { background(0); image(ene, 0, 0); }
const { test } = require('@kmamal/testing') const { createTests: createTestCasesForUnstableSort } = require('./test-cases-for-unstable-sort') const createTests = (name) => { createTestCasesForUnstableSort(name) const S = require(`../${name}`) test(`array.sorting.${name}.stability`, (t) => { const arr = Array.fr...
webpackJsonp([15],{1380:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=o(1383);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(r).default}})},1383:function(e,t,o){"use strict";function n(e){return e&&e.__esM...
const path = require('path'); const {StylableWebpackPlugin} = require('@stylable/webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'); const Dotenv = require('dotenv-webpack'); const webpack = require('webpack'); c...
import unittest from lexer import (Boolean, Literal, Number, ObjectKey, Tag, Token, TokenError, lex) from parser_ import parse class LexerTest(unittest.TestCase): def test_lex_ints(self): s = "123 456 1" self.assertEqual(lex(s), [Number(123), Number(456), Number(1)]) def ...
import traverseTreeBreadthFirst from "../src/traverse-tree-breadth-first"; const tree = node(1, [node(2, [node(3), node(4)]), node(5, [node(6)])]); describe("traverseTree", () => { test("traverse tree breadth-first", () => { let values = [...traverseTreeBreadthFirst(tree)].map((node) => node.value); expect(...
# Copyright (c) 2016 Canonical 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 ...
# -*- coding: utf-8 -*- def tables(): import pandas as pd from pathlib import Path from pkg_resources import resource_listdir, resource_filename __data_files = resource_listdir('pyannotables.data', '') __full_data_files = {Path(filename).stem.split('.')[0].split('datafile_')[1]: resource_file...
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const merge = require('webpack-merge'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const webpack = require('webpack'); const baseConfig = require('./webpack.base.config.js'); const extractSass = new ExtractTextPlugin({ filename: "[nam...
/* Copyright (C) 2016 NooBaa */ // location actions. export const REQUEST_LOCATION = 'REQUEST_LOCATION'; export const REFRESH_LOCATION = 'REFRESH_LOCATION'; export const CHANGE_LOCATION = 'CHANGE_LOCATION'; // Session related actions export const RESTORE_SESSION = 'RESTORE_SESSION'; export const COMPLETE_RESTORE_SESS...
export const pi = Math.PI; export const sqrt8 = Math.sqrt(8); export const sqrt2 = Math.sqrt(2);
#Program asks for user input to determine color to shine. import time, sys import RPi.GPIO as GPIO redPin = 35 #Set to appropriate GPIO greenPin = 33 #Should be set in the bluePin = 37 #GPIO.BOARD format def blink(pin): GPIO.setmode(GPIO.BOARD) GPIO.setup(pin, GPIO.OUT) GPIO.output(pin, GPIO.LOW)...
var button = document.querySelector('button'); var content = document.getElementById('content'); button.addEventListener('click', toggleDisclosure); button.addEventListener('keydown', toggleDisclosure); function toggleDisclosure(e) { var type = e.type; // If the key pressed was not Space or Enter, return if (t...
# Generated by Django 2.2 on 2019-10-09 18:19 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Item', field...
/** * Vietnamese translation for bootstrap-datepicker * An Vo <https://github.com/anvoz/> */ (function ($) { $.fn.datepicker.dates["vi"] = { days: [ "Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy", ], daysShort: ["CN", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6"...
import { Button } from 'antd' import React from 'react' import '../styles/RenterDashboard.css' import { useHistory } from 'react-router' import LoggedInNavigation from './LoggedInNavigation' const RenterDashboard=()=>{ const {push} = useHistory() const handleAvailable=(e)=>{ e.preventDefault() ...
import _plotly_utils.basevalidators class NodeValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name='node', parent_name='sankey', **kwargs): super(NodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, data_...
var BaseLayoutView = require('./BaseLayoutView'), app = require('app/app'), template = require('templates/index.hbs'), channels = require('channels'), constants = require('utils/constants'), helpers = require('../utils/helpers'), moment = require('moment'), Appointment = require('../models/A...
import React, {Component} from 'react'; import {StyleSheet} from 'react-native'; import Animated, {Easing} from 'react-native-reanimated'; import PropTypes from 'prop-types'; import _ from 'lodash'; import TouchableOpacity from '../touchableOpacity'; import {Colors} from '../../style'; import ShareTransitionContext fro...
from openeye import oechem import glob import sys def main(argv=[__name__]): ifs=oechem.oemolistream() ofs=oechem.oemolostream() #Ligand Poses path="Docking_Results/*.oeb" files=glob.glob(path) print(files) for i in files: count=0 if ifs.open(i): if ofs.open("...
import { Map } from 'immutable' let hostname = window.location.hostname let cc = __CLIENT_CONFIG__ let config = hostname.indexOf('ef.cn') > -1 ? cc.CN : cc.COM export default Map(config)
# Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
#!/usr/bin/env python # -*- coding: utf-8 -*- """PKI methods module.""" from hvac import utils from hvac.api.vault_api_base import VaultApiBase DEFAULT_MOUNT_POINT = 'pki' class Pki(VaultApiBase): """Pki Secrets Engine (API). Reference: https://www.vaultproject.io/api/secret/pki/index.html """ def ...
import React from 'react'; import { Trans } from 'react-i18next'; export default function Overview() { return ( <div> <p> <Trans i18nKey={"Contents.P1"}> Welcome to the NRQL tutorial! This brief tutorial will get you familiar with NRQL right here in your New Relic account. Already a...
import * as THREE from 'three'; import { ELEVATION_MODES } from 'Renderer/LayeredMaterial'; import { checkNodeElevationTextureValidity, insertSignificantValuesFromParent, computeMinMaxElevation } from 'Parser/XbilParser'; import CRS from 'Core/Geographic/Crs'; export const EMPTY_TEXTURE_ZOOM = -1; const pitch = new T...
'use strict'; var express = require('express'); var app = express(); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); //var nock = require('nock'); var jsonServer = require('json-server'); var router = jsonServer.router('database/db.json'); // Returns...
/// <reference types="cypress" /> import LoginPage from '../page-objects/LoginPage'; import ProductsPage from '../page-objects/ProductsPage'; import AppHeader from '../page-objects/AppHeaderPage'; import { LOGIN_USERS, PAGES } from '../support/e2eConstants'; describe('Exercise for automated atomic tests', () => { co...
(function() { 'use strict'; angular .module('dashboard.view2', []) .config(configDashViewTwo) .controller('DashViewTwoCtrl', DashViewTwoCtrl); /** * @ngInject */ function configDashViewTwo ($stateProvider) { $stateProvider.state('app.dashboard.view2', { ...
from setuptools import setup, find_packages setup( name='ping3', version='proposal', description='A pure python3 version of ICMP ping implementation using raw socket.', long_description='Ping3 is a pure python3 version of ICMP ping implementation using raw socket. Note that ICMP messages can only be se...
const fs = require("fs"); const path = require("path"); module.exports = (pathToSpec) => { const pathname = path.resolve(process.cwd(), pathToSpec); const pathExists = fs.existsSync(pathname); return new Promise((resolve, reject) => { if (pathExists) { fs.readFile(pathname, "UTF-8", (err, data) => { ...
""" Experimental utilities for doing special things you can't do with Maya GUI alone This is highly experimental, and -- unlike the rest of mGui -- is liable to C++ hard crashes Use at your own risk """
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { compose } from 'ramda'; import { createFragmentContainer } from 'react-relay'; import graphql from 'babel-plugin-relay/macro'; import withStyles from '@mui/styles/withStyles'; import inj...
import os import json import requests import tempfile import traceback from pydub import AudioSegment from excp.exception import ConnectionLostException from excp.exception import NotUnderstoodException class Google_STT: """ This class uses Google's Speech to Text engine to convert passed flac(audio) to text...
import React, { Component } from "react"; import { increaseIndex } from '../actions/promptActions' export class Prompts extends Component{ state={ keywords: [] } handleClick = () => { let arr=[ this.props.persons.persons[this.props.persons.index].name, ...
const GitHubApi = require('github') const github = new GitHubApi({ debug: true }) github.authenticate({ type: 'oauth', token: 'add-your-real-token-here' }) github.issues.edit({ owner: 'octokit', repo: 'node-github', number: 2, state: 'open' })
// const fs = require('fs-extra') module.exports = { // fs }