text
stringlengths
3
1.05M
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt4 stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/libertastrings.cpp" EMPTY=['""'] def parse_po(text): """ Parse 'po' for...
/** * @module types */ import { Type } from '../structs/Type.js' import { ItemJSON } from '../structs/ItemJSON.js' import { ItemString } from '../structs/ItemString.js' import * as stringify from '../utils/structStringify.js' import { YEvent } from '../utils/YEvent.js' import { Transaction } from '../utils/Transacti...
import React from 'react'; import PropTypes from 'prop-types'; import Panel from './Panel'; import Divider from './Divider'; export { Divider, Panel }; export default class PanelGroup extends React.Component { static defaultProps = { spacing: 1, direction: 'row', panelWidths: [], onUpdate: undefine...
import time from vue import * def test_inherit_annotations(selenium): def inherit_annotations(el): class A(VueComponent): prop: str class B(A): pass assert {"prop": str} == B.__annotations__ with selenium.app(inherit_annotations): time.sleep(0.1) de...
import { EventEmitter } from '@angular/core'; (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('js-marker-clusterer'), require('rxjs/Observable'), require('@agm/core')) : typeof define === 'function' && define.amd ? define...
var FunctionDefinition = require('../lib/tree/FunctionDefinition'), FunctionCall = require('../lib/tree/FunctionCall'), Scope = require('../lib/scope'), BinaryOp = require('../lib/tree/BinaryOp'), expect = require('chai').expect; describe('FunctionDefinition', function () { describe('.fromExpressio...
// https://www.yuque.com/hyj1991/easy-monitor/application module.exports = { // I. 必须的配置(一定要写) server: process.env.XTRANSIT_SERVER, // 填写前一节中部署的 xtransit-server 地址 appId: process.env.XTRANSIT_APPID, // 创建应用得到的应用 ID appSecret: process.env.XTRANSIT_APPSECRET, // 创建应用得到的应用 Secret // II. 比较重要的可选配置(不知道怎么配置的别传任何值)...
from birthday_greetings.main import reader_csv_file def test_open_csv_file(): mocker.patch('builtins.open', ) first_line = reader_csv_file() assert ['last_name', 'first_name', 'date_of_birth', 'email'] == first_line
/* * Thickbox 3.1 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ if ( typeof tb_pathToImage != 'string' ) { var tb_pathToImage = thickboxL10n.loadingAnimation; } if...
""" The MIT License (MIT) Copyright (c) 2021-present tag-epic 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 restriction, including without limitation the rights to use, copy, modify, me...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator remove leading StrWhiteSpaceChar esid: sec-parseint-string-radix description: "StrWhiteSpaceChar :: FF (U+000C)" ---*/ assert.sameValue(parseInt("\u000C1"), parseInt...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > The [[Value]] property of the newly constructed object is set by following steps: 1. Call ToNumber(year) 2. Call ToNumber(month) 3. If date is supplied u...
# -*- coding: utf-8 -*- """ Created on Wed Dec 14 23:06:30 2016 @author: Stuart """ from share1 import ShareAnalysis1 class ShareAnalysis1Dot1(ShareAnalysis1): def get_interpolation_mode(self): return "Marmander (Cubic Spline)"
var fs = require('fs') var path = require('path') // add bash completions to your // yargs-powered applications. module.exports = function (yargs, usage) { var self = { completionKey: 'get-yargs-completions' } // get a list of completion commands. self.getCompletion = function (done) { var completion...
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ubuntu/catkin_ws/src/devel/include;/home/ubuntu/catkin_ws/src/utilities/urg_node/include".split(';') if "/home/ubuntu/catkin_ws/src/devel/include;/home/ubuntu/catkin_ws/src/utilities/urg_node/inc...
/*! jQuery UI - v1.8.19 - 2012-04-16 * https://github.com/jquery/jquery-ui * Includes: jquery.ui.datepicker-af.js, jquery.ui.datepicker-ar-DZ.js, jquery.ui.datepicker-ar.js, jquery.ui.datepicker-az.js, jquery.ui.datepicker-bg.js, jquery.ui.datepicker-bs.js, jquery.ui.datepicker-ca.js, jquery.ui.datepicker-cs.js, jquery...
$(function(){ $.extend($.fn.tree.methods, { getLevel:function(jq,target){ var l = $(target).parentsUntil("ul.tree","ul"); return l.length+1; } }); insftrameworkTree(); }) function insftrameworkTree(){ $("#speTree").tree({ url:'insframework/getMachine',//请求路径 ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
//Global Variables var pattern = []; var progress = 0; var gamePlaying = false; var tonePlaying = false; var volume = 0.5; //must be between 0.0 and 1.0 var guessCounter = 0; var numTries = 3; //number of tries var clueHoldTime = 400; //how long to hold each clue's light/sound var timer = 0; var time = 10; var startT...
import React from 'react'; import { SafeAreaView, Text } from 'react-native'; export default function App() { return ( <SafeAreaView> <Text>Hello World</Text> </SafeAreaView> ); }
from functools import wraps from flask_jwt_extended import verify_jwt_in_request, get_jwt_claims from flask import abort def admin_required(fn): @wraps(fn) def wrapper(*args, **kwargs): verify_jwt_in_request() claims = get_jwt_claims() if claims["role"] != "Admin": abort(40...
########## 1.2.1. Redução de dimensionalidade usando Análise Discriminante Linear ########## # LinearDiscriminantAnalysis pode ser usado para realizar a redução de dimensionalidade supervisionada, projetando os dados de entrada para um subespaço linear que consiste nas direções que maximizam a separação entre clas...
from flask import Blueprint bp = Blueprint('cmdb', __name__) from app.cmdb import routes
function getComp() { return import('@/views/layout/Layout') } export const asyncRoute = { /* *权限管理后台 */ '/tree' : () => getComp(), 'menuTree' : () => import('@/views/permissionManage/tree/menuTree'), /* *运营管理 */ '/home' : () => getComp(), 'index' : () => import('@/views/operationManage/...
import { PET_API_BASE } from "../constants"; import { updatePetSchedule } from "../constants/pet"; import { createAction } from "redux-api-middleware"; export const updatePetScheduleAction = ( petId, eventId, name = null, time = null, portion = null, enabled = null ) => { const body = JSON.stringify({ ...
import React, { useState, useContext, Fragment, useEffect } from 'react'; import { useHistory, Link } from 'react-router-dom'; import * as feather from 'feather-icons'; import './Auth.css'; import { AuthContext } from '../../context/AuthContext'; import LoadingSpinner from '../../shared/ui/LoadingSpinner'; import Erro...
# Test characteristic read/write/notify from both GATTS and GATTC. import sys sys.path.append("") from micropython import const import time, machine import uasyncio as asyncio import aioble import bluetooth TIMEOUT_MS = 5000 SERVICE_UUID = bluetooth.UUID("A5A5A5A5-FFFF-9999-1111-5A5A5A5A5A5A") CHAR_UUID = bluetoo...
/* eslint no-use-before-define:0 */ 'use strict'; const assert = require('assert'); const MediaTrackSender = require('../../../../../lib/media/track/sender'); const Document = require('../../../../lib/document'); describe('MediaTrackSender', () => { before(() => { global.document = global.document || new Docume...
import { bindable, bindingMode, containerless, customElement, inlineView, computedFrom } from 'aurelia-framework'; import 'aurelia-event-aggregator'; import { U as UIInternal } from './ui-internal.js'; import { _ as __decorate, a as __metadata } from './_tslib.js'; import { B as BasePanel } from './base-panel.js'; var...
from . import segment from .merge import * from .format_conversion import *
/* eslint-disable */ // In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on the "N+1" visit to a p...
const { AbstractLevelBubbleHandler } = require('../../src/handlers/abstract-level-bubble-handler') class Handler extends AbstractLevelBubbleHandler {} describe('@livy/util/lib/handlers/abstract-level-bubble-handler', () => { it('should expose a default "level" and "bubble" option', async () => { const handler...
'use strict'; module.exports = function (oAppData) { var _ = require('underscore'), TextUtils = require('%PathToCoreWebclientModule%/js/utils/Text.js'), App = require('%PathToCoreWebclientModule%/js/App.js'), Settings = require('modules/%ModuleName%/js/Settings.js'), bAdminUser =...
import json from argparse import Namespace from pathlib import PurePath def get_arg_groups(args, parser): arg_groups = {} for group in parser._action_groups: group_dict = { a.dest: getattr(args, a.dest, None) for a in group._group_actions } arg_groups[group.title] = Namespa...
/* * Js-Test-Driver Test Suite for Generic JavaScript language tests * http://code.google.com/p/js-test-driver */ TestCase("Arithmetics", { cpu: null, setUp: function () { this.cpu = new DCPU16.PC(); }, tearDown: function () { }, testAdd: function () { expectAsserts(4); // if the source is chang...
import React from 'react' function PublicProfile() { return <div>Profile Picture</div> } export default PublicProfile
function View2dCanvasLayer(dom, opt) { CS(this, dom, opt); this.viewObjects = {}; } CE(View2dCanvasLayer, View2dCanvasBase); Object.assign(View2dCanvasLayer.prototype, { init: function () { CS(this, "init"); var o = this.context.circle(0, 0, 10).attr({ fill: "red"//仅仅用来测试,没有实际...
/** * Copyright 2019 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...
!function(e){var n={};function A(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,A),r.l=!0,r.exports}A.m=e,A.c=n,A.d=function(e,n,t){A.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
(function ($, root, undefined) { $(function () { 'use strict'; // DOM ready, take it away var slidewidth = $('.slidedown').width(); var slidedown = $( '.slidedown' ); var stage = $('.stage'); var activatoricon = $('.menu-activator').find('i'); var header = $('header'); var pagethumbnail = $('.page-...
# # Copyright (c) 2021, Neptune Labs Sp. z o.o. # # 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 agr...
import sys from DataAccess import DownloadData def main(Dir, Startdate, Enddate, latlim, lonlim, cores=False, Waitbar = 1, hdf_library = None, remove_hdf = 1): """ This function downloads MOD11 daily data for the specified time interval, and spatial extent. Keyword arguments: Dir -- 'C:/file/to/p...
/* Ported to JavaScript by Lazar Laszlo 2011 lazarsoft@gmail.com, www.lazarsoft.info */ /* * * Copyright 2007 ZXing 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 * * ...
var path = require('path') module.exports = { // Webpack aliases aliases: { quasar: path.resolve(__dirname, '../node_modules/quasar-framework/'), src: path.resolve(__dirname, '../src'), assets: path.resolve(__dirname, '../src/assets'), '@': path.resolve(__dirname, '../src/components'), variable...
// SCENE VARIABLES var renderer = null, scene = null, camera = null, root = null, robot_idle = null, group = null; // VARIABLES FOR THE GAME var gameOn = false, difficult = 2; // VARIABLES FOR THE ROBOTS var robots_mixers = [], robots = [], robot_mixer = {}, animations = [], robotNames = 1, anim...
from habmapslib import MapTracker, HabMapsMessage import time mt = MapTracker.MapTracker(id="hb-basestation-1", mqtt_url="localhost", mqtt_port=1883, user='habmaps', password='root') mt.startAlive() while True:...
'use strict'; // https://adventofcode.com/2017/day/5 // https://adventofcode.com/2017/day/5/input const { readFileSync } = require('fs'); function getInput () { // return [0, 3, 0, 1, -3]; return readFileSync(__filename.replace('.js', '-input'), 'utf-8') .split(/[\n\r]+/) .map(Number); } // First Star: {...
import functools import logging import math import os import signal import sys import threading import time from concurrent.futures import Future, ThreadPoolExecutor from contextlib import contextmanager from typing import Any, Generator, Iterable, Set, Optional, cast from urllib.parse import urlparse import pendulum ...
"use strict"; const emoji_list = JSON.parse("{\"2614\":\"2614\",\"2615\":\"2615\",\"2648\":\"2648\",\"2649\":\"2649\",\"2650\":\"2650\",\"2651\":\"2651\",\"2652\":\"2652\",\"2653\":\"2653\",\"2693\":\"2693\",\"2705\":\"2705\",\"2728\":\"2728\",\"2753\":\"2753\",\"2754\":\"2754\",\"2755\":\"2755\",\"2757\":\"2757\",\"27...
import { validatorFactory } from '../../../utils/reduxForm'; const schema = { firstName: { presence: { message: '^First name cannot be blank', }, }, lastName: { presence: { message: '^Last name cannot be blank', }, }, email: { presence: { message: '^Email cannot be blank...
// Use this file to change prototype configuration. // Note: prototype config can be overridden using environment variables (eg on heroku) module.exports = { // Service name used in header. Eg: 'Renew your passport' serviceName: 'FIRE IT UP! - handover documentation', // Default port that prototype runs on p...
# -*- coding: utf-8 -*- # Copyright (c) 2020, Shivam Mishra and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class TagLabel(Document): pass
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '../../StyledIconBase'; export var Steam2 = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElement(St...
#!/usr/bin/env node const cli = require('./src/cli'); const settings = require('./package.json'); const util = require('./src/util'); const run = require('./src/run'); const inquire = require('inquirer'); const argv = require('minimist')(process.argv, { boolean: ['help', 'version', 'trace'], string: ['url', '...
export default function authHeader() { const user = JSON.parse(localStorage.getItem("user")); if (user && user.accessToken) { // For Spring Boot back-end // return { Authorization: "Bearer " + user.accessToken }; // for Node.js Express back-end return { "x-access-token": user.a...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2019 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
/*! * isobject <https://github.com/jonschlinkert/isobject> * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; module.exports = function isObject(val) { return val != null && typeof val === 'object' && Array.isArray(val) === false; };
cordova.define("cordova-plugin-vibration.notification", function(require, exports, module) { /* * * 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...
import manifest from "../manifest.json"; const tryRequire = (path) => { try { return require(`${path}`); } catch (err) { return {}; } }; let resources = {}; if (manifest.languages) { manifest.languages.forEach((e) => { resources = { ...resources, [e.code]: { translation: { ...tr...
/* ________________________________________________ / \ | _________________________________________ | | | | | | | KMCODES BlackList System By KINGMAN | ...
import numpy as np import picos as pic from scipy.linalg import solve_discrete_are class ControlLaw: def __init__(self, K): self.K = K def __call__(self, x): raise NotImplementedError def to_dict(self): data = self.__dict__.copy() data['name'] = self.__class__.__name__ ...
import numpy from controller import calculation from scipy.stats import spearmanr import logging # Computes the Embedding Coherence Test (ECT) on a bias specification def embedding_coherence_test(t1, t2, a1, a2): logging.info("Eval-Engine: ECT started") # Transform vector sets in lists attributes_dict = {...
from operators.upload_to_s3 import UploadToS3Operator __all__ = [ 'UploadToS3Operator' ]
import ApplicationSerializer from './application'; export default ApplicationSerializer.extend({ serialize(snapshot, options) { let data = this._super(snapshot, options); let otp_href = snapshot.get('currentOtpConfiguration.data.links.self'); if(otp_href) { data.current_otp_configuration = otp_hre...
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
# Generated by Django 2.0.5 on 2018-06-06 11:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('it_purchase_app', '0021_purchase_price_quoted'), ] operations = [ migrations.AlterField( model_name='purchase', name...
# Copyright (c) 2018, DjaoDjin inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/ui/rta/command/BaseCommand','sap/ui/fl/descriptorRelated/api/DescriptorInlineChangeFactory','sap/ui/fl/descriptorR...
# https://www.acmicpc.net/problem/15684 def dfs(cur, cnt, num): global res if cnt == num: if check(): res = min(res, cnt) return if cur == size: return x = cur % (N - 1) + 1 y = cur // (N - 1) + 1 if graph[y][x] == [0,0] and graph[y][x + 1] == [0,0]: ...
const shell = require('shelljs'); shell.cp('-R', 'public/*', 'dist/');
import { ModelBuilder } from '../model/model.builder'; const builder = new ModelBuilder(); export function modelFactory() { return builder.build(); }
import Step from './step.vue' import Steps from './steps.vue' export { Step, Steps }
export * from './auth'; export * from './nav'; export * from './fromAddress'; // https://github.com/reduxjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
{ let COLOR_KEY = 'color_index'; let view = { el: '#color-selector', template: `\${data.map((c, idx) => \`<div class="\${c.active ? 'active' : ''}" data-idx=\${idx} style="background:rgba(\${c._r}, \${c._g}, \${c._b})"></div>\`).join('')}`, render(data) { el(this.el).innerHTM...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import axios from "axios"; import BlogItem from "../blogs/blog-item"; import BlogModal from "../modals/blog-modal"; class Blog extends Component { constructor() { ...
module.exports={title:"Bulma",slug:"bulma",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bulma</title><path d="M11.25 0l-6 6 -1.5 10.5 7.5 7.5 9 -6 -6 -6 4.5 -4.5 -7.5 -7.5Z"/></svg>',get path(){return this.svg.match(/<path\s+d="([^"]*)/)[1]},source:"https://github.com/jgthms/bulma/...
"use strict"; // Using a unique object to compare by reference. const traverseDocOnExitStackMarker = {}; function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) { const docsStack = [doc]; while (docsStack.length !== 0) { const doc = docsStack.pop(); if (doc === traverseDocOnExitStack...
/** * @param {string} s * @param {string} t * @return {boolean} */ var isIsomorphic = function(s, t) { let mapA = {} let mapB = {} for (let i = 0; i < s.length; i++) { if (mapA[s[i]]) { if (t[i] !== mapA[s[i]]) { return false } } else { mapA[s[i]] = t[i] } if (mapB[t...
import requests import pandas as pd RKI_XLSX = 'https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Daten/Fallzahlen_Kum_Tab.xlsx?__blob=publicationFile' MUC_STATS = 'https://www.muenchen.de/rathaus/Stadtverwaltung/Referat-fuer-Gesundheit-und-Umwelt/Infektionsschutz/Neuartiges_Coronavirus.html' XPATH = '//*[@...
""" AWS SecretsManager tests """ import sys from moto import mock_secretsmanager import boto3 from epsagon.trace import trace_factory from epsagon.events.botocore import BotocoreSecretsManagerEvent TEST_SECRET_NAME = "test-secret-name" TEST_SECRET_VALUE_STRING = "test_secret_value" def setup_function(): trace_fac...
/** * `components/index.js` exists simply as a 'central export' for our components. * This way, we can import all of our components from the same place, rather than * having to figure out which file they belong to! */ export {default as Navbar} from './navbar' export {default as UserHome} from './user-home' export ...
/*! Copyright 2015 Baidu Inc. All Rights Reserved. */ ; (function () { var m = void 0, n = !0, q = null, r = !1; function s(a) { return function () { return a } } var u = { t1: +new Date, t2: 0, t3: 0, t4: 0 }, y = ["search!"], ga = 3, ha...
(function(global) { "use strict"; function testGlobalLeak(desc, that) { if (that === void 0) { return false; } if (that === global) { return true; } if ({}.toString.call(that) === '[object Window]') { return true; } return desc + ' leaked as: ' + that; } function test_GLOBAL_LEAKS_FROM_GLOBAL_FU...
define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var reservedKeywords = exports.reserved...
# coding=utf-8 # Copyright 2018 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 app...
describe("Ext.Class", function() { var emptyFn = function(){}, defaultInitConfig = function(config) { this.initConfig(config); }, cls, sub, fn, subClass, parentClass, mixinClass1, mixinClass2, o; beforeEach(function() { fn = function(){}; mix...
function getOwnerContext(){return document.body}(function($){if(!window.breeze){breeze={}}breeze.getBreezeContextPath=function(){var head=document.getElementsByTagName("head")[0]||document.documentElement,scripts=head.getElementsByTagName("script");for(var i=0,script,src,matcher;script=scripts[i];i++){if((src=script.sr...
"""Generates the torsion drive inputs from the molecules selected by DANCE.""" import gzip import json import logging import tempfile from collections import defaultdict from typing import Dict, List import cmiles from openeye import oechem from openforcefield.topology import Molecule, Topology from openforcefield.typ...
with open("mynewtextfile.txt","w+") as f: f.writelines("\nOtus we are learning python\nOtus we are learning python\nOtus we are learning python") f.seek(0) print(f.readlines()) print("Is readable:", f.readable()) print("Is writeable:", f.writable()) print("File no:", f.fileno()) print("Is co...
// @flow /** * Map data */ export type Coordinate = [number, number] export type Coordinates = Coordinate[] export type LatLng = { lat: number, lng: number } export type LonLat = {lat: number, lon: number} export type Point = {x: number, y: number} export type Location = { label: string, position: LonLat ...
function faceAPISend(cmdin, datax){ bootbox.dialog({ message: '<div class="text-center"><i class="glyphicon glyphicon-refresh"></i> Processing...</div>', size:'small' }); $.getJSON( 'face', { 'c':cmdin, 'n':datax }, function(datax){ bootbox.hideAll(); if (typeof datax.cmd !== "undefined"){ ...
import RingBuffer from "ringbufferjs"; import { handleError } from "./utils"; export default class Speakers { volume = 1; constructor({ onBufferUnderrun }) { this.onBufferUnderrun = onBufferUnderrun; this.bufferSize = 8192; this.buffer = new RingBuffer(this.bufferSize * 2); } start() { // Audi...
const mongoose = require('mongoose'); console.log('----------- userSchema added ----------------'); mongoose.connect('mongodb://localhost/Project_Tech', {useNewUrlParser: true}); mongoose.set('useCreateIndex', true); const userSchema = new mongoose.Schema({ name: { type: String, }, age: { type: Number,...
import os, sys, inspect class Armando(object): """ Main class for Armando platform, which exports utility methods used either by Armando modules or custom subprojects @author: Fabio "BlackLight" Manganiello <blacklight86@gmail.com> """ @classmethod def get_base_dir(cls): " Get the base...
var nativefier = require('nativefier').default; // possible options, defaults unless specified otherwise var options = { //nativefier -n ProtonMail -a x64 --tray --single-instance --internal-urls "(http(s)?:\/\/.)?(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)?(protonmail.com)" beta.protonmail.com name: 'Microsoft Planner', ...
let enumController = require('../controller/enumController'); let healthFacilityController = require('../controller/healthFacilityController'); /** * Function that sets up the routes. * @param {Object} server Restify's server. * @return {function} Function that sets up the routes. */ module.exports = (serv...
/* Every and then some Arrays also come with the standard methods every and some. Both take a predicate function that, when called with an array element as argument, returns true or false. Just like && returns a true value only when the expressions on both sides are true, every returns true only when the predicate ret...
var path = require('path'); module.exports = { entry: path.resolve(__dirname, 'src/app/app.js'), output: { path: path.resolve(__dirname, 'build'), filename: 'bundle.js' }, module: { loaders: [{ test: /\.js$/, loader: 'babel' }] } };
webpackJsonp([20],{ /***/ 522: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__page_manager__ = __webpack_require__(88); function _classCallCheck(instance,...
module.exports={A:{A:{"2":"J E F G A B jB"},B:{"1":"P S T U V W X Y Z a b c Q H d","2":"C K L D M N O"},C:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB dB JB eB KB LB R MB NB OB PB QB RB SB TB UB VB WB XB YB ZB P S T lB U V W X Y Z a b c Q H d","2":"kB cB I e J E F G A B C K L D M N O f g h i j k l m n o p q r s t...