text
stringlengths
3
1.05M
import { h } from 'vue' export default { name: "BatteryHighLight", vendor: "Ph", type: "", tags: ["battery","high","light"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-battery-high-light","inn...
#pragma once #include <cstdint> #include "size_units.h" #include "stream_utils.h" #include "symbol_type_info.h" namespace dlg_help_utils::process { class process_environment_block; } namespace dlg_help_utils::stream_stack_dump { class mini_dump_memory_walker; } namespace dlg_help_utils::heap { class nt...
tinyMCE.addI18n('tt.simple',{"underline_desc":"\u5e95\u7dda (Ctrl+U)","italic_desc":"\u659c\u9ad4 (Ctrl+I)","bold_desc":"\u7c97\u9ad4 (Ctrl+B)",dd:"\u540d\u8a5e\u89e3\u91cb",dt:"\u540d\u8a5e\u5b9a\u7fa9",samp:"\u7a0b\u5f0f\u7bc4\u4f8b",code:"\u4ee3\u78bc",blockquote:"\u5f15\u7528",h6:"\u6a19\u984c 6",h5:"\u6a19\u984c 5...
/* * Copyright 2008 Juan Lang * Copyright 2010 Andrey Turkin * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
import os from pathlib import Path from typing import Dict, List import xlsxwriter from xlsxwriter.workbook import Workbook from xlsxwriter.worksheet import Worksheet from strictdoc.backend.sdoc.models.document import Document from strictdoc.backend.sdoc.models.requirement import Requirement from strictdoc.core.docum...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('prop-types'), require('react'), require('aphrodite'), require('react-scrolllock'), require('aphrodite/no-important'), require('react-transition-group'), require('react-dom')) : typeof define ...
function contentArea() { var ASPECT_RATIO = 1.33; }
class ObjectAccess: def __init__(self, acc, who_access='anyone', role='writer'): self.google_acc = acc email = None if "@" in who_access: email = who_access who_access = "user" self.__body = {'type': who_access, 'role': role} if email is not None: ...
import aws from 'aws-sdk' aws.config.update({region: 'eu-west-2'}) aws.config.apiVersions = { cloudformation: '2010-05-15', iam: '2010-05-08', s3: '2006-03-01', sns: '2010-03-31', sts: '2011-06-15' } export async function assumeRole(roleArn) { let sts = new aws.STS() let currentAuth = await sts.getCallerIdentit...
import datetime import time import unittest import os import json from typing import List from returns.result import Success, Result from libraries.general_end_functions import EndFunctionsHelper, get_price_gecko from libraries.models.price_getter_dao import ValueWithName from libraries.models.supported_chains import...
/* code automatically generated by bin2c -- DO NOT EDIT */ { /* #include'ing this file in a C program is equivalent to calling if (luaL_loadfile(L,"https.lua")==0) lua_call(L, 0, LUA_MULTRET); */ /* https.lua */ static const unsigned char B1[]={ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x...
# Copyright (c) 2019 NVIDIA Corporation from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F import nemo from .parts.jasper import JasperBlock, init_weights, jasper_activations from nemo.backends.pytorch.nm import TrainableNM from nemo.core.neural_types import * from nemo.uti...
# Import the fib task from gwexample package from gwvolman.tasks import fibonacci if __name__ == '__main__': # Distribute the a task to calculate the fibonacci number of 25 async_result = fibonacci.delay(26) # Print the result of fib call print(async_result.get())
/** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * * See: https://www.gatsbyjs.org/docs/ssr-apis/ */ import "firebase/auth" import "firebase/firestore"
import svelte from 'rollup-plugin-svelte'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import livereload from 'rollup-plugin-livereload'; import json from 'rollup-plugin-json'; import { terser } from 'rollup-plugin-terser'; import { scss } from '@kazzkiq/svelte-prepr...
# pylint: disable=unused-argument import flux import pytest def test_no_keepalive_session(client): session = client.report_session_start() flux.current_timeline.sleep(3600) assert session.refresh().status == 'RUNNING' assert not session.refresh().is_abandoned def test_keepalive_expiration(client, in...
/* * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights * reserved. * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Soft...
const {WebhookUpdateOptions} = require("../../../utils/CallbackUtil.js") module.exports = async (d) => { const data = d.util.openFunc(d); if (data.err) return d.error(data.err); const option = WebhookUpdateOptions.includes(data.inside.inside); if (!option) return d.aoiError.fnError(d, 'custom', {insi...
# coding: utf-8 import datetime import numpy as np from ...models.transition.linear import ConstantVelocity from ...predictor.particle import ParticlePredictor from ...types.particle import Particle from ...types.prediction import ParticleStatePrediction from ...types.state import ParticleState def test_particle():...
from setuptools import setup, find_packages from os.path import join, splitext, basename, dirname from glob import glob # Read version number. exec(open('src/experimentator/__version__.py').read()) def read(*names, **kwargs): return open(join(dirname(__file__), *names), encoding=kwargs.get('encoding', 'utf8'))....
from django.test import TestCase from .models import ( People, Planet, Film, Species, Vehicle, Starship ) from .renderers import WookieeRenderer import json class TestAllEndpoints(TestCase): """ Test ALL the endpoints """ fixtures = [ "planets.json", "people.json", ...
import sys import os.path as osp pjpath = osp.dirname(osp.realpath(__file__)) sys.path.append(pjpath) __APPNAME__ = "EISeg" __VERSION__ = "0.3.0.3" import os import cv2 for k, v in os.environ.items(): if k.startswith("QT_") and "cv2" in v: del os.environ[k]
#!/usr/bin/env python #coding: utf-8 from licant.modules import submodule from licant.cxx_modules import application, doit from licant.scripter import scriptq scriptq.execute("../../gxx.g.py") application("target", sources = ["main.cpp"], include_paths = ["../.."], modules = [ submodule("gxx", "posix"), submo...
// Disable auto scroll restoration on chrome 43 onwards if ('scrollRestoration' in history) { // Back off, browser, I got this... history.scrollRestoration = 'manual'; } // Constants for dealing with dynamic book links const FRONT_VIEW = "FRONT"; const WEB_VIEW = "WEB"; // reads the url and goes to the appropr...
# Copyright 2017 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...
# -*- coding: utf-8 -*- import logging from modularodm import exceptions, StoredObject from modularodm.fields import IntegerField from modularodm.query.query import RawQuery as Q from tests.base import ModularOdmTestCase logger = logging.getLogger(__name__) class BasicQueryTestCase(ModularOdmTestCase): COUNT ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AriaLabelPropType=void 0;var r=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,o(n(647)).default)({"aria-label":r.default.string,"aria-labelledby":r.default.st...
import autolens as al import autolens.plot as aplt plotter = aplt.MatPlot2D() plotter = aplt.MatPlot2D() grid = al.Grid.uniform(shape_2d=(100, 100), pixel_scales=0.05, sub_size=2) lens_galaxy = al.Galaxy( redshift=0.5, light=al.lp.SphericalExponential(centre=(0.0, 0.0), intensity=1.0), light_1...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * Refer 13.1; * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode * FunctionDeclaration or FunctionExpression. * * @path ch13/13.1/13.1-27-s.js * @description Strict Mode - SyntaxEr...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Order Schema */ var OrderSchema = new Schema({ // name: { // type: String, // default: '', // required: 'Please fill Order name', // trim: true // }, shipping: { required: 'P...
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class AlibabacategorySpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from .forms import MenuItemAdminForm from .models import MenuItem, ViewLink, WebLink from django.conf.urls import include, url from django.contrib import admin from mptt.admin import MPTTModelAdmin from thecut.authorship.admin import Autho...
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{uQcF:function(t,o,r){"use strict";r.r(o),r.d(o,"ion_fab",(function(){return e})),r.d(o,"ion_fab_button",(function(){return s})),r.d(o,"ion_fab_list",(function(){return c}));var i=r("wEJo"),a=r("E/Mt"),n=r("74mu");const e=class{constructor(t){Object(i.o)(this,t),...
import axios from 'axios' const BASE_URL = process.env.REACT_APP_WORDPRESS_BASE_URL const OAUTH_URL = process.env.REACT_APP_WORDPRESS_OAUTH_URL const ENDPOINT_URL = process.env.REACT_APP_WORDPRESS_ENDPOINT_URL const CLIENT_ID = process.env.REACT_APP_WORDPRESS_CLIENT_ID function postUrl(id) { return `${ENDPOINT_URL}...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst', 'rb') as f: readme = f.read().decode('utf-8') with open('requirements.txt') as f: requires = f.readlines() setup( name='greenswitch', version='0.0.13', description=u'Battle proven ...
# Copyright 2013 - Red Hat, 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 writ...
# -*- coding: utf-8 -*- from airflow.api.common.experimental.trigger_dag import trigger_dag from airflow.hooks.postgres_hook import PostgresHook from airflow.models import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.operators.python_operator import PythonOperator from airflow.utils impor...
from typing import Dict, List from prodict import Prodict as pdict from collections import MutableMapping from .lib.http import add_http_handler from .log import logger from .lib.helpers import without_none from .constants import ENRICHER, HANDLER, LISTENER from .rpc.server import AsyncRPCMethods from .sync_runner imp...
import Job from 'core/job'; import { set } from 'lodash'; import Express from 'express'; import Validation from 'core/validation'; import { instanceOf } from 'support/helpers'; // import Authorization from 'core/authorization'; class Router { constructor () { this._childs = []; this._routes = []; this._p...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "LinkedLists.h" int main (int argc, const char * argv[]) { struct Person *head, *tail, *curr; head = NULL; int i; for (i = 1; i <= 4; i++) { curr = malloc(sizeof(struct Person)); curr->num = i; printf("Enter your name: "); fgets(curr->...
# Generated by Django 3.2.6 on 2021-10-04 03:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('leagues', '0003_auto_20211003_2257'), ] operations = [ migrations.AlterField( model_name='matchup', name='slug', ...
/* * File: movies.js * Project: moovee * File Created: Wednesday, 20th May 2020 9:45:46 pm * Author: Adithya Sreyaj * ----- * Last Modified: Wednesday, 20th May 2020 10:54:51 pm * Modified By: Adithya Sreyaj<adi.sreyaj@gmail.com> * ----- */ import { ADD_MOVIES } from '../actions'; const initialState = { movi...
import sys from setuptools import setup, find_packages REQUIRES = [ 'six>=1.11.0' ] setup( name='pytimesheetcalculator', version='1.0', description='Python-based Time Sheet Calculator', license='Apache License 2.0', url='', author='Benjamen R. Meyer', author_email='bm_witness@yahoo.com...
from datetime import date from uk_election_timetables.elections import NorthernIrelandAssemblyElection # Reference election: nia.belfast-east.2017-03-02 def test_publish_date_northern_ireland_assembly(): publish_date = NorthernIrelandAssemblyElection(date(2017, 3, 2)).sopn_publish_date assert publish_date ==...
# -*- coding: utf-8 -*- from xTool.codec.pb_codec import ProtocCodec from .codec_pb2 import Request class TestProtocCodec: def test_encode(self): request = Request() request.message = "hello world" value_codec = ProtocCodec.encode(request) assert value_codec == b'\n\x0bhello world...
var searchData= [ ['ul_5fbid_5fforward',['ul_bid_forward',['../structxorif__cc__config.html#a516a252f5b4a7f6f1178ac9e7cfb3c86',1,'xorif_cc_config']]], ['ul_5fctrl_5fbase_5foffset',['ul_ctrl_base_offset',['../structxorif__cc__alloc.html#a2ad131678b51b167f6239b400462c9cd',1,'xorif_cc_alloc']]], ['ul_5fctrl_5fbase_5...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class NameOuterIdPair(object): def __init__(self): self._name = None self._outer_id = None @property def name(self): return self._name @name.setter def name(se...
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
from setuptools import setup from os import path import updog this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='updog', version=updog.version, url='https://github.com/s-razoes/updog'...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
#Autogenerated schema from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Sequence, String, ) # could be done using a nestedSequence class CellWatch(Serialisable): tagname = "cellWatch" r = String() def __init__(self, r=None, ...
#pragma once #include <atomic> namespace fusion { struct fixed_arena_t { void* buffer; std::atomic<size_t> size; size_t capacity; fixed_arena_t(size_t capacity); ~fixed_arena_t(); void* allocate(size_t size, size_t align); template<class T> T* all...
import React, { useContext } from 'react' import styled from 'styled-components' import { observer } from 'mobx-react-lite' import { Button, Modal, ModalBody, ModalFooter } from 'reactstrap' import ErrorBoundary from '../../shared/ErrorBoundary' import storeContext from '../../../storeContext' import Page from './Page...
/* * jquant1.c * * Copyright (C) 1991-1996, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains 1-pass color quantization (color mapping) routines. * These routines provide mappin...
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ...
class Foo: def __init__(self, x, y, z): self.x = x self.y = y self.z = z def foo(): x = 1 y = 2 z = 3 return Foo(x, y, z)<caret>
const HTMLPlugin = require('html-webpack-plugin'); // 把外链的标签,变成内联的 class InlineSourcePlugin { constructor({match}) { this.reg = match; } processTag(tag, compilation) { let newTag, url; if (tag.tagName === 'link' && this.reg.test(tag.attributes.href)) { newTag = { tagName: 'style', ...
# qubit number=3 # total number=54 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
"""setuptools for geog0111 Scientific Computing, UCL https://github.com/profLewis/geog0111 """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long ...
function tabuada() { var num = document.getElementById('num') var tab = document.getElementById('seltab') if (num.value.length == 0) { window.alert('Por favor, digite um número') } else { numero = Number(num.value) tab.innerHTML = '' for (var c = 1;c <= 10;c++) { ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Mar 28 16:56:06 2016 @author: shekhar """ import MySQLdb as mdb import sys Y='Y' N='N' sess_dict={} instr_dict={} dir_dict={} sess_dict[Y]={} sess_dict[N]={} instr_dict[Y]={} instr_dict[N]={} dir_dict[Y]={} dir_dict[N]={} def pSession(sess): allct...
# myproject/sitemaps.py from django.contrib.sitemaps import Sitemap from django.urls import reverse from blog.models import Post class BlogPostSitemap(Sitemap): """ ブログ記事のサイトマップ """ changefreq = "never" priority = 0.5 def items(self): return Post.objects.filter(is_public=True) ...
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Test a Fast R-CNN network on an imdb (image database).""" from fast...
# Generated by Django 3.0.6 on 2020-06-14 03:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('formy_app', '0004_auto_20200529_0345'), ] operations = [ migrations.AddField( model_name='spreadsheet', name='track_...
import React from "react"; import injectSheet from 'react-jss' import colorFromFlavour from 'utils/colorFromFlavour' const styles = { Loader: { margin: '4px', }, } let Loader = ({ classes, flavour, size = 32 }) => ( // <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg classN...
import os import types import json from inspect import currentframe, getframeinfo from pathlib import Path this_file = getframeinfo(currentframe()).filename parent_dir = str(Path(this_file).resolve().parent.parent) auth_file = os.path.join(parent_dir,'db_auth.json') db_fp = open(auth_file, 'r') # types.SimpleNamespac...
import pyomo.environ as pyo import numpy as np import pytest from omlt.block import OmltBlock from omlt.neuralnet.nn_formulation import FullSpaceNNFormulation from omlt.io.keras_reader import load_keras_sequential from omlt.neuralnet.network_definition import NetworkDefinition from omlt.neuralnet.layer import DenseLay...
import wget import time import os import urllib from urllib.request import Request, urlopen import tensorflow as tf import bs4 from bs4 import BeautifulSoup import os import datetime import urllib.request import urllib.parse import requests as req import getpass as gp import numpy as np import pandas as pd import sys i...
//@ts-check 'use strict'; //const webpack = require('webpack'); const path = require('path'); //const nodeExternals = require('webpack-node-externals'); //const IgnoreEmitPlugin = require('ignore-emit-webpack-plugin'); //const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-webpack-plugin'); /**@ty...
def st_deljiteljev(n): rezultat = 0 if n ** 0.5 == n**0.5//1: rezultat = 1 i = 1 while i < n**0.5: if n % i == 0: rezultat += 2 i += 1 return rezultat print(st_deljiteljev(2800054)) i = 2 n = 1 while st_deljiteljev(n) < 500: n += i i += 1 print(n) ...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jan 28 10:58:13 2019 @author: arlind """ import ai_analysis.join_data_different_sources as ds import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QMenu, QVBoxLayout, QSizePolicy, QMessageBox, QWidget, QPushButton,QInputDialog,QListWidget...
import axios from 'axios' const GET_ALL_USERS = 'GET_ALL_USERS' const getAllUsers = users => { return { type: GET_ALL_USERS, users } } export const getAllUsersfromServer = () => { return async dispatch => { try { const {data} = await axios.get('/api/users') dispatch(getAllUsers(data)) ...
""" configuration object used to serialize and deserialize user data """ import logging from dataclasses import dataclass, field from typing import Any, Dict, List import marshmallow_dataclass import marshmallow from IPy import IP from marshmallow import ValidationError from marshmallow.validate import Validator from ...
# coding: utf-8 """ Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from sunshine_conversations_client.configuration import Configuration from sunshine_conversations_client.undefine...
import sky from './sky-line.vue'; sky.install = function (app) { app.component(sky.name, sky); }; export default sky;
define([ "qunit", "../dist/inputmask/dependencyLibs/inputmask.dependencyLib", "../dist/inputmask/inputmask.extensions", "prototypeExtensions", "simulator" ], function (qunit, $, Inputmask) { qunit.module("Alternations"); qunit.test("\"9{1,2}C|S A{1,3} 9{4}\" - ankitajain32", function (assert) { var $fixture =...
# Python "backend" code to generate individual cluster files for each # region. These files contain the information that is displayed in # the table below the map on the web page. # This script is meant to be called from "master_backend.py" but can be # run separately from the command line. # # "generate_d...
//// [constructSignatureAssignabilityInInheritance3.ts] // checking subtype relations for function types as it relates to contextual signature instantiation // error cases module Errors { class Base { foo: string; } class Derived extends Base { bar: string; } class Derived2 extends Derived { baz: string; ...
// @flow import { openDialog } from '../../../base/dialog'; import { IconLiveStreaming } from '../../../base/icons'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet'; import { getLocalParticipant, isLocalParticipantModerator } from '../../../base/participants'; import { AbstractButton, ty...
import gulp from "gulp"; import babel from "gulp-babel"; import concat from "gulp-concat"; import inject from "gulp-inject"; import gutil from "gulp-util"; import imagemin from "gulp-imagemin"; import autoprefixer from "gulp-autoprefixer"; import del from "del"; import sass from "gulp-sass"; import header from "gulp-he...
( function () { /** * OpenEXR loader currently supports uncompressed, ZIP(S), RLE, PIZ and DWA/B compression. * Supports reading as UnsignedByte, HalfFloat and Float type data texture. * * Referred to the original Industrial Light & Magic OpenEXR implementation and the TinyEXR / Syoyo Fujita * implementation, so...
/* * i386 specific structures for linux-user * * Copyright (c) 2013 Fabrice Bellard * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at you...
Meteor.methods({ 'livechat:returnAsInquiry'(rid, departmentId) { if (!Meteor.userId() || !RocketChat.authz.hasPermission(Meteor.userId(), 'view-l-room')) { throw new Meteor.Error('error-not-allowed', 'Not allowed', { method: 'livechat:saveDepartment' }); } return RocketChat.Livechat.returnRoomAsInquiry(rid, ...
from gameball.exceptions.gameball_exception import GameballException from datetime import datetime import gameball.utils class playerObject(object): def __init__( self, player_unique_id, player_attributes, email = None, mobile = None, referrer_code = None,...
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from .find_elements import * from time import sleep def initializeMetamask(driver, findElements, metamaskConfig): # Load metamask, check if the account is already set up firstT...
// When the user scrolls down 20px from the top of the document, show the button window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { document.getElementById("myBtn").style.display = "block"; } else { doc...
import random while True: n=random.randint(0,100) i = 7 g = 0 print("\t\t\t\t ##### welcome to game of guessing the number #####\n") print("Rules are as follows:") print("1)Tere pass sirf 7 chances hai.\n2)Wo number 0 se 100 ke beech me hai.\nChal ab suru krte hai\n") while i >= 1: #...
from django.test import TestCase, override_settings from common import context_processors, utils class UtilsTest(TestCase): def test_clear_text(self): """Should remove combining marks from text""" sp = utils.clear_text("São Paulo") rand = utils.clear_text("ç~ã`é´â^ô") self.assert...
"""Openai Gym utilities.""" from random import random from argparse import Namespace from collections import namedtuple, deque from itertools import imap, islice, count, repeat, starmap import numpy as np from .transition import Transition from .discount import run_review def run_gym(env, agent): """Run a gym ...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:47:17 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DACoreDAVGlue.framework/DACoreDAVGlue * classdump-dyld is licensed und...
from .scenes import intro from .scenes import game from .scenes import lobby from .util import next_frame, show_text, start_timer
define(['durandal/app', 'knockout'], function (app, ko) { var self = {}; self.searchText = ko.observable(); self.isBusy = ko.observable(false); self.isBusyIoc = ko.observable(false); self.isBusyDb = ko.observable(false); self.iocs = ko.observable([]); self.dbIocs = ko.observable([]); se...
import Login from "views/Login.js"; import Reset from "views/Reset.js"; import ResetPassword from "views/ResetPassword"; const loginRoutes = [ { path: "/login", name: "Login", icon: "fas fa-user", component: Login, layout: "/misc", }, { path: "/reset", name: "Reset", icon: "fas fa...
/* eslint-disable no-await-in-loop */ const ConnectionClient = require('./connection-client'); /** * Execute a query using batch/statement infrastructure * Batch must already be created. * @param {Object} config * @param {import('../models/index')} models * @param {import('./webhooks')} webhooks * @param {string...
import discord import traceback import psutil import os from datetime import datetime from discord.ext.commands import errors from utils import default async def send_cmd_help(ctx): if ctx.invoked_subcommand: _help = await ctx.bot.formatter.format_help_for(ctx, ctx.invoked_subcommand) else: _...
""" The class for an FPL team. Contains a set of players. Is able to check that it obeys all constraints. """ from operator import itemgetter from math import floor import numpy as np from .player import CandidatePlayer, Player from .utils import get_player, NEXT_GAMEWEEK, CURRENT_SEASON, fetcher # how many players d...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:52:03 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/EmailDaemon.framework/EmailDaemon * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
import { createVNode as _createVNode } from "vue"; function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.ge...